From 9a6f3e50fb87015ee121220be3f7176dcf1461c0 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Fri, 26 Jan 2018 12:20:55 +0100 Subject: [PATCH 001/437] Remove bool1 --- .../VectorGenerator.cs | 2 +- src/Unity.Mathematics.Tests/TestBool1.cs | 57 - src/Unity.Mathematics.Tests/TestBool2.cs | 10 +- src/Unity.Mathematics.Tests/TestBool3.cs | 20 +- src/Unity.Mathematics.Tests/TestBool4.cs | 26 +- .../Unity.Mathematics.Tests.csproj | 1 - .../Unity.Mathematics.csproj | 1 - src/Unity.Mathematics/bool1.cs | 58 - src/Unity.Mathematics/bool2.cs | 9 +- src/Unity.Mathematics/bool2.gen.cs | 604 +- src/Unity.Mathematics/bool3.cs | 12 +- src/Unity.Mathematics/bool3.gen.cs | 2068 +++--- src/Unity.Mathematics/bool4.cs | 15 +- src/Unity.Mathematics/bool4.gen.cs | 5764 ++++++++-------- src/Unity.Mathematics/float2.gen.cs | 688 +- src/Unity.Mathematics/float3.gen.cs | 2152 +++--- src/Unity.Mathematics/float4.cs | 5 +- src/Unity.Mathematics/float4.gen.cs | 5848 ++++++++-------- src/Unity.Mathematics/int2.gen.cs | 758 +-- src/Unity.Mathematics/int3.gen.cs | 2222 +++---- src/Unity.Mathematics/int4.gen.cs | 5918 ++++++++--------- src/Unity.Mathematics/uint2.gen.cs | 746 +-- src/Unity.Mathematics/uint3.gen.cs | 2210 +++--- src/Unity.Mathematics/uint4.gen.cs | 5906 ++++++++-------- 24 files changed, 17499 insertions(+), 17601 deletions(-) delete mode 100644 src/Unity.Mathematics.Tests/TestBool1.cs delete mode 100644 src/Unity.Mathematics/bool1.cs diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index c282f824..3de0ed13 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -38,7 +38,7 @@ private struct GeneratorJob new GeneratorJob { indexOperatorReturnType = "float", typeNames = floatTypes, features = Features.Arithmetic | Features.UnaryNegation }, new GeneratorJob { indexOperatorReturnType = "int", typeNames = intTypes, features = Features.All }, new GeneratorJob { indexOperatorReturnType = "uint", typeNames = uintTypes, features = Features.All & ~Features.UnaryNegation }, - new GeneratorJob { indexOperatorReturnType = "bool1", typeNames = boolTypes, features = Features.BitwiseLogic }, + new GeneratorJob { indexOperatorReturnType = "bool", typeNames = boolTypes, features = Features.BitwiseLogic }, }; private VectorGenerator(GeneratorJob job) diff --git a/src/Unity.Mathematics.Tests/TestBool1.cs b/src/Unity.Mathematics.Tests/TestBool1.cs deleted file mode 100644 index 1121d121..00000000 --- a/src/Unity.Mathematics.Tests/TestBool1.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using NUnit.Framework; - -namespace Unity.Mathematics.Tests -{ - [TestFixture] - class TestBool1 - { - [Test] - public void bool1_Constructor_CreateEqualObjects_ReturnSameValue( - [Values(false, true)] bool value) - { - bool1 firstValue = new bool1(value); - bool1 secondValue = new bool1(value); - Assert.AreEqual(firstValue, secondValue); - Assert.AreNotSame(firstValue, secondValue); - } - - [Test] - public void bool1_Constructor_CreateDifferentObjects_ReturnDifferentValue( - [Values(false, true)] bool value) - { - bool1 firstValue = new bool1(value); - bool1 secondValue = new bool1(!value); - Assert.AreNotEqual(firstValue, secondValue); - Assert.AreNotSame(firstValue, secondValue); - } - - [Test] - public void bool1_OperatorBool_CompareWithOriginalValue_ReturnOriginalValue( - [Values(false, true)] bool value) - { - bool1 testValue = new bool1(value); - Assert.AreEqual(value, (bool)testValue); - } - - [Test] - public void bool1_OperatorBool1_CompareCastBoolWithObject_ReturnSameValue( - [Values(false, true)] bool value) - { - bool1 testValue = new bool1(value); - Assert.AreEqual((bool1)value, testValue); - } - - [Test] - public void bool1_ToString_PrintValue_SameStringAsNativeType( - [Values(false, true)] bool value) - { - bool1 testValue = new bool1(value); - Assert.AreEqual(testValue.ToString(), value.ToString()); - } - } -} diff --git a/src/Unity.Mathematics.Tests/TestBool2.cs b/src/Unity.Mathematics.Tests/TestBool2.cs index af7612a2..88a1467c 100644 --- a/src/Unity.Mathematics.Tests/TestBool2.cs +++ b/src/Unity.Mathematics.Tests/TestBool2.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -15,8 +15,8 @@ public void bool2_ConstructorOneArgument_CreateNewObject_CheckAgainstOriginalVal [Values(false, true)] bool originalValue) { bool2 testValue = new bool2(originalValue); - Assert.AreEqual(testValue.x, (bool1)originalValue); - Assert.AreEqual(testValue.y, (bool1)originalValue); + Assert.AreEqual(testValue.x, originalValue); + Assert.AreEqual(testValue.y, originalValue); } [Test] @@ -25,8 +25,8 @@ public void bool2_ConstructorTwoArguments_CreateNewObject_CheckAgainstOriginalVa [Values(false, true)] bool secondArgument) { bool2 testValue = new bool2(firstArgument, secondArgument); - Assert.AreEqual(testValue.x, (bool1)firstArgument); - Assert.AreEqual(testValue.y, (bool1)secondArgument); + Assert.AreEqual(testValue.x, firstArgument); + Assert.AreEqual(testValue.y, secondArgument); } [Test] diff --git a/src/Unity.Mathematics.Tests/TestBool3.cs b/src/Unity.Mathematics.Tests/TestBool3.cs index 9c774431..77bc91ed 100644 --- a/src/Unity.Mathematics.Tests/TestBool3.cs +++ b/src/Unity.Mathematics.Tests/TestBool3.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -15,9 +15,9 @@ public void bool3_ConstructorOneArgument_CreateNewObject_CheckAgainstOriginalVal [Values(false, true)] bool originalValue) { bool3 testValue = new bool3(originalValue); - Assert.AreEqual(testValue.x, (bool1)originalValue); - Assert.AreEqual(testValue.y, (bool1)originalValue); - Assert.AreEqual(testValue.z, (bool1)originalValue); + Assert.AreEqual(testValue.x, originalValue); + Assert.AreEqual(testValue.y, originalValue); + Assert.AreEqual(testValue.z, originalValue); } [Test] @@ -28,9 +28,9 @@ public void bool3_ConstructorTwoArguments_CreateNewObject_CheckAgainstOriginalVa { bool2 xy = new bool2(firstArgument, secondArgument); bool3 testValue = new bool3(xy, thirdArgument); - Assert.AreEqual(testValue.x, (bool1)firstArgument); - Assert.AreEqual(testValue.y, (bool1)secondArgument); - Assert.AreEqual(testValue.z, (bool1)thirdArgument); + Assert.AreEqual(testValue.x, firstArgument); + Assert.AreEqual(testValue.y, secondArgument); + Assert.AreEqual(testValue.z, thirdArgument); } [Test] @@ -40,9 +40,9 @@ public void bool3_ConstructorThreeArguments_CreateNewObject_CheckAgainstOriginal [Values(false, true)] bool thirdArgument) { bool3 testValue = new bool3(firstArgument, secondArgument, thirdArgument); - Assert.AreEqual(testValue.x, (bool1)firstArgument); - Assert.AreEqual(testValue.y, (bool1)secondArgument); - Assert.AreEqual(testValue.z, (bool1)thirdArgument); + Assert.AreEqual(testValue.x, firstArgument); + Assert.AreEqual(testValue.y, secondArgument); + Assert.AreEqual(testValue.z, thirdArgument); } [Test] diff --git a/src/Unity.Mathematics.Tests/TestBool4.cs b/src/Unity.Mathematics.Tests/TestBool4.cs index 9f322a67..93568c39 100644 --- a/src/Unity.Mathematics.Tests/TestBool4.cs +++ b/src/Unity.Mathematics.Tests/TestBool4.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -15,10 +15,10 @@ public void bool4_ConstructorOneArgument_CreateNewObject_CheckAgainstOriginalVal [Values(false, true)] bool originalValue) { bool4 testValue = new bool4(originalValue); - Assert.AreEqual(testValue.x, (bool1)originalValue); - Assert.AreEqual(testValue.y, (bool1)originalValue); - Assert.AreEqual(testValue.z, (bool1)originalValue); - Assert.AreEqual(testValue.w, (bool1)originalValue); + Assert.AreEqual(testValue.x, originalValue); + Assert.AreEqual(testValue.y, originalValue); + Assert.AreEqual(testValue.z, originalValue); + Assert.AreEqual(testValue.w, originalValue); } [Test] @@ -30,10 +30,10 @@ public void bool4_ConstructorTwoArguments_CreateNewObject_CheckAgainstOriginalVa { bool3 xyz = new bool3(firstArgument, secondArgument, thirdArgument); bool4 testValue = new bool4(xyz, fourthArgument); - Assert.AreEqual(testValue.x, (bool1)firstArgument); - Assert.AreEqual(testValue.y, (bool1)secondArgument); - Assert.AreEqual(testValue.z, (bool1)thirdArgument); - Assert.AreEqual(testValue.w, (bool1)fourthArgument); + Assert.AreEqual(testValue.x, firstArgument); + Assert.AreEqual(testValue.y, secondArgument); + Assert.AreEqual(testValue.z, thirdArgument); + Assert.AreEqual(testValue.w, fourthArgument); } [Test] @@ -44,10 +44,10 @@ public void bool4_ConstructorFourArguments_CreateNewObject_CheckAgainstOriginalV [Values(false, true)] bool fourthArgument) { bool4 testValue = new bool4(firstArgument, secondArgument, thirdArgument, fourthArgument); - Assert.AreEqual(testValue.x, (bool1)firstArgument); - Assert.AreEqual(testValue.y, (bool1)secondArgument); - Assert.AreEqual(testValue.z, (bool1)thirdArgument); - Assert.AreEqual(testValue.w, (bool1)fourthArgument); + Assert.AreEqual(testValue.x, firstArgument); + Assert.AreEqual(testValue.y, secondArgument); + Assert.AreEqual(testValue.z, thirdArgument); + Assert.AreEqual(testValue.w, fourthArgument); } [Test] diff --git a/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj b/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj index 3eddef8b..8051c253 100644 --- a/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj +++ b/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj @@ -44,7 +44,6 @@ - diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index f423e7c3..b4c2ecae 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -59,7 +59,6 @@ - diff --git a/src/Unity.Mathematics/bool1.cs b/src/Unity.Mathematics/bool1.cs deleted file mode 100644 index 601b0802..00000000 --- a/src/Unity.Mathematics/bool1.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System; - -namespace Unity.Mathematics -{ - /// - /// A bool compatible for marshalling with native code. - /// - public struct bool1 : IEquatable - { - private readonly int _value; - - public bool1(bool value) - { - this._value = value ? 1 : 0; - } - - public static implicit operator bool(bool1 value) - { - return value._value != 0; - } - - public static implicit operator bool1(bool value) - { - return new bool1(value); - } - - public bool Equals(bool1 other) - { - return _value == other._value; - } - - public override bool Equals(object obj) - { - if (ReferenceEquals(null, obj)) return false; - return obj is bool1 && Equals((bool1)obj); - } - - public override int GetHashCode() - { - return _value; - } - - public static bool operator ==(bool1 left, bool1 right) - { - return left.Equals(right); - } - - public static bool operator !=(bool1 left, bool1 right) - { - return !left.Equals(right); - } - - public override string ToString() - { - return ((bool)this).ToString(); - } - } -} diff --git a/src/Unity.Mathematics/bool2.cs b/src/Unity.Mathematics/bool2.cs index d3cafe83..c9f66992 100644 --- a/src/Unity.Mathematics/bool2.cs +++ b/src/Unity.Mathematics/bool2.cs @@ -1,5 +1,6 @@ -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; using System.Diagnostics; +using System.Runtime.InteropServices; #pragma warning disable 0660, 0661 @@ -20,8 +21,10 @@ public DebuggerProxy(bool2 vec) } } - public bool1 x; - public bool1 y; + [MarshalAs(UnmanagedType.U1)] // Allow this struct to be passed to a dynamic delegate and marshal correctly + public bool x; + [MarshalAs(UnmanagedType.U1)] + public bool y; [MethodImpl((MethodImplOptions)0x100)] // agressive inline public bool2(bool val) diff --git a/src/Unity.Mathematics/bool2.gen.cs b/src/Unity.Mathematics/bool2.gen.cs index ffbe0357..2dbc2842 100644 --- a/src/Unity.Mathematics/bool2.gen.cs +++ b/src/Unity.Mathematics/bool2.gen.cs @@ -1,302 +1,302 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct bool2 : System.IEquatable - { - - // equal - [MethodImpl(0x100)] - public static bool2 operator == (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator == (bool2 lhs, bool rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - [MethodImpl(0x100)] - public static bool2 operator == (bool lhs, bool2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } - - // not equal - [MethodImpl(0x100)] - public static bool2 operator != (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator != (bool2 lhs, bool rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - [MethodImpl(0x100)] - public static bool2 operator != (bool lhs, bool2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } - - // Equals - [MethodImpl(0x100)] - public bool Equals(bool2 rhs) { return x == rhs.x && y == rhs.y; } - - // [int index] - unsafe public bool1 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (bool1* array = &x) { return array[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (bool1* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(0x100)] - public static bool2 operator & (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x & rhs.x, lhs.y & rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator & (bool2 lhs, bool rhs) { return new bool2 (lhs.x & rhs, lhs.y & rhs); } - [MethodImpl(0x100)] - public static bool2 operator & (bool lhs, bool2 rhs) { return new bool2 (lhs & rhs.x, lhs & rhs.y); } - - // operator | - [MethodImpl(0x100)] - public static bool2 operator | (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x | rhs.x, lhs.y | rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator | (bool2 lhs, bool rhs) { return new bool2 (lhs.x | rhs, lhs.y | rhs); } - [MethodImpl(0x100)] - public static bool2 operator | (bool lhs, bool2 rhs) { return new bool2 (lhs | rhs.x, lhs | rhs.y); } - - // operator ^ - [MethodImpl(0x100)] - public static bool2 operator ^ (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator ^ (bool2 lhs, bool rhs) { return new bool2 (lhs.x ^ rhs, lhs.y ^ rhs); } - [MethodImpl(0x100)] - public static bool2 operator ^ (bool lhs, bool2 rhs) { return new bool2 (lhs ^ rhs.x, lhs ^ rhs.y); } - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxx - { - [MethodImpl(0x100)] - get { return new bool4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxy - { - [MethodImpl(0x100)] - get { return new bool4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyx - { - [MethodImpl(0x100)] - get { return new bool4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyy - { - [MethodImpl(0x100)] - get { return new bool4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxx - { - [MethodImpl(0x100)] - get { return new bool4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxy - { - [MethodImpl(0x100)] - get { return new bool4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyx - { - [MethodImpl(0x100)] - get { return new bool4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyy - { - [MethodImpl(0x100)] - get { return new bool4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxx - { - [MethodImpl(0x100)] - get { return new bool4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxy - { - [MethodImpl(0x100)] - get { return new bool4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyx - { - [MethodImpl(0x100)] - get { return new bool4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyy - { - [MethodImpl(0x100)] - get { return new bool4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxx - { - [MethodImpl(0x100)] - get { return new bool4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxy - { - [MethodImpl(0x100)] - get { return new bool4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyx - { - [MethodImpl(0x100)] - get { return new bool4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyy - { - [MethodImpl(0x100)] - get { return new bool4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxx - { - [MethodImpl(0x100)] - get { return new bool3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxy - { - [MethodImpl(0x100)] - get { return new bool3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyx - { - [MethodImpl(0x100)] - get { return new bool3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyy - { - [MethodImpl(0x100)] - get { return new bool3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxx - { - [MethodImpl(0x100)] - get { return new bool3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxy - { - [MethodImpl(0x100)] - get { return new bool3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyx - { - [MethodImpl(0x100)] - get { return new bool3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyy - { - [MethodImpl(0x100)] - get { return new bool3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xx - { - [MethodImpl(0x100)] - get { return new bool2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xy - { - [MethodImpl(0x100)] - get { return new bool2(x, y); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yx - { - [MethodImpl(0x100)] - get { return new bool2(y, x); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yy - { - [MethodImpl(0x100)] - get { return new bool2(y, y); } - } - - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct bool2 : System.IEquatable + { + + // equal + [MethodImpl(0x100)] + public static bool2 operator == (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator == (bool2 lhs, bool rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } + [MethodImpl(0x100)] + public static bool2 operator == (bool lhs, bool2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } + + // not equal + [MethodImpl(0x100)] + public static bool2 operator != (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator != (bool2 lhs, bool rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } + [MethodImpl(0x100)] + public static bool2 operator != (bool lhs, bool2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } + + // Equals + [MethodImpl(0x100)] + public bool Equals(bool2 rhs) { return x == rhs.x && y == rhs.y; } + + // [int index] + unsafe public bool this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (bool2* array = &this) { return ((bool*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (bool* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(0x100)] + public static bool2 operator & (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x & rhs.x, lhs.y & rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator & (bool2 lhs, bool rhs) { return new bool2 (lhs.x & rhs, lhs.y & rhs); } + [MethodImpl(0x100)] + public static bool2 operator & (bool lhs, bool2 rhs) { return new bool2 (lhs & rhs.x, lhs & rhs.y); } + + // operator | + [MethodImpl(0x100)] + public static bool2 operator | (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x | rhs.x, lhs.y | rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator | (bool2 lhs, bool rhs) { return new bool2 (lhs.x | rhs, lhs.y | rhs); } + [MethodImpl(0x100)] + public static bool2 operator | (bool lhs, bool2 rhs) { return new bool2 (lhs | rhs.x, lhs | rhs.y); } + + // operator ^ + [MethodImpl(0x100)] + public static bool2 operator ^ (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator ^ (bool2 lhs, bool rhs) { return new bool2 (lhs.x ^ rhs, lhs.y ^ rhs); } + [MethodImpl(0x100)] + public static bool2 operator ^ (bool lhs, bool2 rhs) { return new bool2 (lhs ^ rhs.x, lhs ^ rhs.y); } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxx + { + [MethodImpl(0x100)] + get { return new bool4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxy + { + [MethodImpl(0x100)] + get { return new bool4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyx + { + [MethodImpl(0x100)] + get { return new bool4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyy + { + [MethodImpl(0x100)] + get { return new bool4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxx + { + [MethodImpl(0x100)] + get { return new bool4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxy + { + [MethodImpl(0x100)] + get { return new bool4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyx + { + [MethodImpl(0x100)] + get { return new bool4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyy + { + [MethodImpl(0x100)] + get { return new bool4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxx + { + [MethodImpl(0x100)] + get { return new bool4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxy + { + [MethodImpl(0x100)] + get { return new bool4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyx + { + [MethodImpl(0x100)] + get { return new bool4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyy + { + [MethodImpl(0x100)] + get { return new bool4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxx + { + [MethodImpl(0x100)] + get { return new bool4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxy + { + [MethodImpl(0x100)] + get { return new bool4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyx + { + [MethodImpl(0x100)] + get { return new bool4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyy + { + [MethodImpl(0x100)] + get { return new bool4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxx + { + [MethodImpl(0x100)] + get { return new bool3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxy + { + [MethodImpl(0x100)] + get { return new bool3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyx + { + [MethodImpl(0x100)] + get { return new bool3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyy + { + [MethodImpl(0x100)] + get { return new bool3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxx + { + [MethodImpl(0x100)] + get { return new bool3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxy + { + [MethodImpl(0x100)] + get { return new bool3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyx + { + [MethodImpl(0x100)] + get { return new bool3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyy + { + [MethodImpl(0x100)] + get { return new bool3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xx + { + [MethodImpl(0x100)] + get { return new bool2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xy + { + [MethodImpl(0x100)] + get { return new bool2(x, y); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yx + { + [MethodImpl(0x100)] + get { return new bool2(y, x); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yy + { + [MethodImpl(0x100)] + get { return new bool2(y, y); } + } + + + } +} diff --git a/src/Unity.Mathematics/bool3.cs b/src/Unity.Mathematics/bool3.cs index 19677926..1180df85 100644 --- a/src/Unity.Mathematics/bool3.cs +++ b/src/Unity.Mathematics/bool3.cs @@ -1,5 +1,6 @@ -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; using System.Diagnostics; +using System.Runtime.InteropServices; #pragma warning disable 0660, 0661 @@ -22,9 +23,12 @@ public DebuggerProxy(bool3 vec) } } - public bool1 x; - public bool1 y; - public bool1 z; + [MarshalAs(UnmanagedType.U1)] // Allow this struct to be passed to a dynamic delegate and marshal correctly + public bool x; + [MarshalAs(UnmanagedType.U1)] + public bool y; + [MarshalAs(UnmanagedType.U1)] + public bool z; [MethodImpl((MethodImplOptions)0x100)] // agressive inline public bool3(bool val) { x = y = z = val; } diff --git a/src/Unity.Mathematics/bool3.gen.cs b/src/Unity.Mathematics/bool3.gen.cs index daaf1beb..1fe1bf29 100644 --- a/src/Unity.Mathematics/bool3.gen.cs +++ b/src/Unity.Mathematics/bool3.gen.cs @@ -1,1034 +1,1034 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct bool3 : System.IEquatable - { - - // equal - [MethodImpl(0x100)] - public static bool3 operator == (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator == (bool3 lhs, bool rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - [MethodImpl(0x100)] - public static bool3 operator == (bool lhs, bool3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } - - // not equal - [MethodImpl(0x100)] - public static bool3 operator != (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator != (bool3 lhs, bool rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - [MethodImpl(0x100)] - public static bool3 operator != (bool lhs, bool3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } - - // Equals - [MethodImpl(0x100)] - public bool Equals(bool3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } - - // [int index] - unsafe public bool1 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (bool1* array = &x) { return array[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (bool1* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(0x100)] - public static bool3 operator & (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator & (bool3 lhs, bool rhs) { return new bool3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } - [MethodImpl(0x100)] - public static bool3 operator & (bool lhs, bool3 rhs) { return new bool3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } - - // operator | - [MethodImpl(0x100)] - public static bool3 operator | (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator | (bool3 lhs, bool rhs) { return new bool3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } - [MethodImpl(0x100)] - public static bool3 operator | (bool lhs, bool3 rhs) { return new bool3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } - - // operator ^ - [MethodImpl(0x100)] - public static bool3 operator ^ (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator ^ (bool3 lhs, bool rhs) { return new bool3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } - [MethodImpl(0x100)] - public static bool3 operator ^ (bool lhs, bool3 rhs) { return new bool3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxx - { - [MethodImpl(0x100)] - get { return new bool4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxy - { - [MethodImpl(0x100)] - get { return new bool4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxz - { - [MethodImpl(0x100)] - get { return new bool4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyx - { - [MethodImpl(0x100)] - get { return new bool4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyy - { - [MethodImpl(0x100)] - get { return new bool4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyz - { - [MethodImpl(0x100)] - get { return new bool4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzx - { - [MethodImpl(0x100)] - get { return new bool4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzy - { - [MethodImpl(0x100)] - get { return new bool4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzz - { - [MethodImpl(0x100)] - get { return new bool4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxx - { - [MethodImpl(0x100)] - get { return new bool4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxy - { - [MethodImpl(0x100)] - get { return new bool4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxz - { - [MethodImpl(0x100)] - get { return new bool4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyx - { - [MethodImpl(0x100)] - get { return new bool4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyy - { - [MethodImpl(0x100)] - get { return new bool4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyz - { - [MethodImpl(0x100)] - get { return new bool4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzx - { - [MethodImpl(0x100)] - get { return new bool4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzy - { - [MethodImpl(0x100)] - get { return new bool4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzz - { - [MethodImpl(0x100)] - get { return new bool4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxx - { - [MethodImpl(0x100)] - get { return new bool4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxy - { - [MethodImpl(0x100)] - get { return new bool4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxz - { - [MethodImpl(0x100)] - get { return new bool4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyx - { - [MethodImpl(0x100)] - get { return new bool4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyy - { - [MethodImpl(0x100)] - get { return new bool4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyz - { - [MethodImpl(0x100)] - get { return new bool4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzx - { - [MethodImpl(0x100)] - get { return new bool4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzy - { - [MethodImpl(0x100)] - get { return new bool4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzz - { - [MethodImpl(0x100)] - get { return new bool4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxx - { - [MethodImpl(0x100)] - get { return new bool4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxy - { - [MethodImpl(0x100)] - get { return new bool4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxz - { - [MethodImpl(0x100)] - get { return new bool4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyx - { - [MethodImpl(0x100)] - get { return new bool4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyy - { - [MethodImpl(0x100)] - get { return new bool4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyz - { - [MethodImpl(0x100)] - get { return new bool4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzx - { - [MethodImpl(0x100)] - get { return new bool4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzy - { - [MethodImpl(0x100)] - get { return new bool4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzz - { - [MethodImpl(0x100)] - get { return new bool4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxx - { - [MethodImpl(0x100)] - get { return new bool4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxy - { - [MethodImpl(0x100)] - get { return new bool4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxz - { - [MethodImpl(0x100)] - get { return new bool4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyx - { - [MethodImpl(0x100)] - get { return new bool4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyy - { - [MethodImpl(0x100)] - get { return new bool4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyz - { - [MethodImpl(0x100)] - get { return new bool4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzx - { - [MethodImpl(0x100)] - get { return new bool4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzy - { - [MethodImpl(0x100)] - get { return new bool4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzz - { - [MethodImpl(0x100)] - get { return new bool4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxx - { - [MethodImpl(0x100)] - get { return new bool4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxy - { - [MethodImpl(0x100)] - get { return new bool4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxz - { - [MethodImpl(0x100)] - get { return new bool4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyx - { - [MethodImpl(0x100)] - get { return new bool4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyy - { - [MethodImpl(0x100)] - get { return new bool4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyz - { - [MethodImpl(0x100)] - get { return new bool4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzx - { - [MethodImpl(0x100)] - get { return new bool4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzy - { - [MethodImpl(0x100)] - get { return new bool4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzz - { - [MethodImpl(0x100)] - get { return new bool4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxx - { - [MethodImpl(0x100)] - get { return new bool4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxy - { - [MethodImpl(0x100)] - get { return new bool4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxz - { - [MethodImpl(0x100)] - get { return new bool4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyx - { - [MethodImpl(0x100)] - get { return new bool4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyy - { - [MethodImpl(0x100)] - get { return new bool4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyz - { - [MethodImpl(0x100)] - get { return new bool4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzx - { - [MethodImpl(0x100)] - get { return new bool4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzy - { - [MethodImpl(0x100)] - get { return new bool4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzz - { - [MethodImpl(0x100)] - get { return new bool4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxx - { - [MethodImpl(0x100)] - get { return new bool4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxy - { - [MethodImpl(0x100)] - get { return new bool4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxz - { - [MethodImpl(0x100)] - get { return new bool4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyx - { - [MethodImpl(0x100)] - get { return new bool4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyy - { - [MethodImpl(0x100)] - get { return new bool4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyz - { - [MethodImpl(0x100)] - get { return new bool4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzx - { - [MethodImpl(0x100)] - get { return new bool4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzy - { - [MethodImpl(0x100)] - get { return new bool4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzz - { - [MethodImpl(0x100)] - get { return new bool4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxx - { - [MethodImpl(0x100)] - get { return new bool4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxy - { - [MethodImpl(0x100)] - get { return new bool4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxz - { - [MethodImpl(0x100)] - get { return new bool4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyx - { - [MethodImpl(0x100)] - get { return new bool4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyy - { - [MethodImpl(0x100)] - get { return new bool4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyz - { - [MethodImpl(0x100)] - get { return new bool4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzx - { - [MethodImpl(0x100)] - get { return new bool4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzy - { - [MethodImpl(0x100)] - get { return new bool4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzz - { - [MethodImpl(0x100)] - get { return new bool4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxx - { - [MethodImpl(0x100)] - get { return new bool3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxy - { - [MethodImpl(0x100)] - get { return new bool3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxz - { - [MethodImpl(0x100)] - get { return new bool3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyx - { - [MethodImpl(0x100)] - get { return new bool3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyy - { - [MethodImpl(0x100)] - get { return new bool3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyz - { - [MethodImpl(0x100)] - get { return new bool3(x, y, z); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzx - { - [MethodImpl(0x100)] - get { return new bool3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzy - { - [MethodImpl(0x100)] - get { return new bool3(x, z, y); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzz - { - [MethodImpl(0x100)] - get { return new bool3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxx - { - [MethodImpl(0x100)] - get { return new bool3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxy - { - [MethodImpl(0x100)] - get { return new bool3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxz - { - [MethodImpl(0x100)] - get { return new bool3(y, x, z); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyx - { - [MethodImpl(0x100)] - get { return new bool3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyy - { - [MethodImpl(0x100)] - get { return new bool3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyz - { - [MethodImpl(0x100)] - get { return new bool3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzx - { - [MethodImpl(0x100)] - get { return new bool3(y, z, x); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzy - { - [MethodImpl(0x100)] - get { return new bool3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzz - { - [MethodImpl(0x100)] - get { return new bool3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxx - { - [MethodImpl(0x100)] - get { return new bool3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxy - { - [MethodImpl(0x100)] - get { return new bool3(z, x, y); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxz - { - [MethodImpl(0x100)] - get { return new bool3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyx - { - [MethodImpl(0x100)] - get { return new bool3(z, y, x); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyy - { - [MethodImpl(0x100)] - get { return new bool3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyz - { - [MethodImpl(0x100)] - get { return new bool3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzx - { - [MethodImpl(0x100)] - get { return new bool3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzy - { - [MethodImpl(0x100)] - get { return new bool3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzz - { - [MethodImpl(0x100)] - get { return new bool3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xx - { - [MethodImpl(0x100)] - get { return new bool2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xy - { - [MethodImpl(0x100)] - get { return new bool2(x, y); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xz - { - [MethodImpl(0x100)] - get { return new bool2(x, z); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yx - { - [MethodImpl(0x100)] - get { return new bool2(y, x); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yy - { - [MethodImpl(0x100)] - get { return new bool2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yz - { - [MethodImpl(0x100)] - get { return new bool2(y, z); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zx - { - [MethodImpl(0x100)] - get { return new bool2(z, x); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zy - { - [MethodImpl(0x100)] - get { return new bool2(z, y); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zz - { - [MethodImpl(0x100)] - get { return new bool2(z, z); } - } - - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct bool3 : System.IEquatable + { + + // equal + [MethodImpl(0x100)] + public static bool3 operator == (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator == (bool3 lhs, bool rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } + [MethodImpl(0x100)] + public static bool3 operator == (bool lhs, bool3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } + + // not equal + [MethodImpl(0x100)] + public static bool3 operator != (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator != (bool3 lhs, bool rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } + [MethodImpl(0x100)] + public static bool3 operator != (bool lhs, bool3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } + + // Equals + [MethodImpl(0x100)] + public bool Equals(bool3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } + + // [int index] + unsafe public bool this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (bool3* array = &this) { return ((bool*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (bool* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(0x100)] + public static bool3 operator & (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator & (bool3 lhs, bool rhs) { return new bool3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } + [MethodImpl(0x100)] + public static bool3 operator & (bool lhs, bool3 rhs) { return new bool3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } + + // operator | + [MethodImpl(0x100)] + public static bool3 operator | (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator | (bool3 lhs, bool rhs) { return new bool3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } + [MethodImpl(0x100)] + public static bool3 operator | (bool lhs, bool3 rhs) { return new bool3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } + + // operator ^ + [MethodImpl(0x100)] + public static bool3 operator ^ (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator ^ (bool3 lhs, bool rhs) { return new bool3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } + [MethodImpl(0x100)] + public static bool3 operator ^ (bool lhs, bool3 rhs) { return new bool3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxx + { + [MethodImpl(0x100)] + get { return new bool4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxy + { + [MethodImpl(0x100)] + get { return new bool4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxz + { + [MethodImpl(0x100)] + get { return new bool4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyx + { + [MethodImpl(0x100)] + get { return new bool4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyy + { + [MethodImpl(0x100)] + get { return new bool4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyz + { + [MethodImpl(0x100)] + get { return new bool4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxzx + { + [MethodImpl(0x100)] + get { return new bool4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxzy + { + [MethodImpl(0x100)] + get { return new bool4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxzz + { + [MethodImpl(0x100)] + get { return new bool4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxx + { + [MethodImpl(0x100)] + get { return new bool4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxy + { + [MethodImpl(0x100)] + get { return new bool4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxz + { + [MethodImpl(0x100)] + get { return new bool4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyx + { + [MethodImpl(0x100)] + get { return new bool4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyy + { + [MethodImpl(0x100)] + get { return new bool4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyz + { + [MethodImpl(0x100)] + get { return new bool4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyzx + { + [MethodImpl(0x100)] + get { return new bool4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyzy + { + [MethodImpl(0x100)] + get { return new bool4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyzz + { + [MethodImpl(0x100)] + get { return new bool4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzxx + { + [MethodImpl(0x100)] + get { return new bool4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzxy + { + [MethodImpl(0x100)] + get { return new bool4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzxz + { + [MethodImpl(0x100)] + get { return new bool4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzyx + { + [MethodImpl(0x100)] + get { return new bool4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzyy + { + [MethodImpl(0x100)] + get { return new bool4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzyz + { + [MethodImpl(0x100)] + get { return new bool4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzzx + { + [MethodImpl(0x100)] + get { return new bool4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzzy + { + [MethodImpl(0x100)] + get { return new bool4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzzz + { + [MethodImpl(0x100)] + get { return new bool4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxx + { + [MethodImpl(0x100)] + get { return new bool4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxy + { + [MethodImpl(0x100)] + get { return new bool4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxz + { + [MethodImpl(0x100)] + get { return new bool4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyx + { + [MethodImpl(0x100)] + get { return new bool4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyy + { + [MethodImpl(0x100)] + get { return new bool4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyz + { + [MethodImpl(0x100)] + get { return new bool4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxzx + { + [MethodImpl(0x100)] + get { return new bool4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxzy + { + [MethodImpl(0x100)] + get { return new bool4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxzz + { + [MethodImpl(0x100)] + get { return new bool4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxx + { + [MethodImpl(0x100)] + get { return new bool4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxy + { + [MethodImpl(0x100)] + get { return new bool4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxz + { + [MethodImpl(0x100)] + get { return new bool4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyx + { + [MethodImpl(0x100)] + get { return new bool4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyy + { + [MethodImpl(0x100)] + get { return new bool4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyz + { + [MethodImpl(0x100)] + get { return new bool4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyzx + { + [MethodImpl(0x100)] + get { return new bool4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyzy + { + [MethodImpl(0x100)] + get { return new bool4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyzz + { + [MethodImpl(0x100)] + get { return new bool4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzxx + { + [MethodImpl(0x100)] + get { return new bool4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzxy + { + [MethodImpl(0x100)] + get { return new bool4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzxz + { + [MethodImpl(0x100)] + get { return new bool4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzyx + { + [MethodImpl(0x100)] + get { return new bool4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzyy + { + [MethodImpl(0x100)] + get { return new bool4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzyz + { + [MethodImpl(0x100)] + get { return new bool4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzzx + { + [MethodImpl(0x100)] + get { return new bool4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzzy + { + [MethodImpl(0x100)] + get { return new bool4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzzz + { + [MethodImpl(0x100)] + get { return new bool4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxxx + { + [MethodImpl(0x100)] + get { return new bool4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxxy + { + [MethodImpl(0x100)] + get { return new bool4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxxz + { + [MethodImpl(0x100)] + get { return new bool4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxyx + { + [MethodImpl(0x100)] + get { return new bool4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxyy + { + [MethodImpl(0x100)] + get { return new bool4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxyz + { + [MethodImpl(0x100)] + get { return new bool4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxzx + { + [MethodImpl(0x100)] + get { return new bool4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxzy + { + [MethodImpl(0x100)] + get { return new bool4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxzz + { + [MethodImpl(0x100)] + get { return new bool4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyxx + { + [MethodImpl(0x100)] + get { return new bool4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyxy + { + [MethodImpl(0x100)] + get { return new bool4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyxz + { + [MethodImpl(0x100)] + get { return new bool4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyyx + { + [MethodImpl(0x100)] + get { return new bool4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyyy + { + [MethodImpl(0x100)] + get { return new bool4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyyz + { + [MethodImpl(0x100)] + get { return new bool4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyzx + { + [MethodImpl(0x100)] + get { return new bool4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyzy + { + [MethodImpl(0x100)] + get { return new bool4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyzz + { + [MethodImpl(0x100)] + get { return new bool4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzxx + { + [MethodImpl(0x100)] + get { return new bool4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzxy + { + [MethodImpl(0x100)] + get { return new bool4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzxz + { + [MethodImpl(0x100)] + get { return new bool4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzyx + { + [MethodImpl(0x100)] + get { return new bool4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzyy + { + [MethodImpl(0x100)] + get { return new bool4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzyz + { + [MethodImpl(0x100)] + get { return new bool4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzzx + { + [MethodImpl(0x100)] + get { return new bool4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzzy + { + [MethodImpl(0x100)] + get { return new bool4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzzz + { + [MethodImpl(0x100)] + get { return new bool4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxx + { + [MethodImpl(0x100)] + get { return new bool3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxy + { + [MethodImpl(0x100)] + get { return new bool3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxz + { + [MethodImpl(0x100)] + get { return new bool3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyx + { + [MethodImpl(0x100)] + get { return new bool3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyy + { + [MethodImpl(0x100)] + get { return new bool3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyz + { + [MethodImpl(0x100)] + get { return new bool3(x, y, z); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xzx + { + [MethodImpl(0x100)] + get { return new bool3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xzy + { + [MethodImpl(0x100)] + get { return new bool3(x, z, y); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xzz + { + [MethodImpl(0x100)] + get { return new bool3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxx + { + [MethodImpl(0x100)] + get { return new bool3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxy + { + [MethodImpl(0x100)] + get { return new bool3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxz + { + [MethodImpl(0x100)] + get { return new bool3(y, x, z); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyx + { + [MethodImpl(0x100)] + get { return new bool3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyy + { + [MethodImpl(0x100)] + get { return new bool3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyz + { + [MethodImpl(0x100)] + get { return new bool3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yzx + { + [MethodImpl(0x100)] + get { return new bool3(y, z, x); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yzy + { + [MethodImpl(0x100)] + get { return new bool3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yzz + { + [MethodImpl(0x100)] + get { return new bool3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zxx + { + [MethodImpl(0x100)] + get { return new bool3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zxy + { + [MethodImpl(0x100)] + get { return new bool3(z, x, y); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zxz + { + [MethodImpl(0x100)] + get { return new bool3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zyx + { + [MethodImpl(0x100)] + get { return new bool3(z, y, x); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zyy + { + [MethodImpl(0x100)] + get { return new bool3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zyz + { + [MethodImpl(0x100)] + get { return new bool3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zzx + { + [MethodImpl(0x100)] + get { return new bool3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zzy + { + [MethodImpl(0x100)] + get { return new bool3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zzz + { + [MethodImpl(0x100)] + get { return new bool3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xx + { + [MethodImpl(0x100)] + get { return new bool2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xy + { + [MethodImpl(0x100)] + get { return new bool2(x, y); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xz + { + [MethodImpl(0x100)] + get { return new bool2(x, z); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yx + { + [MethodImpl(0x100)] + get { return new bool2(y, x); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yy + { + [MethodImpl(0x100)] + get { return new bool2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yz + { + [MethodImpl(0x100)] + get { return new bool2(y, z); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 zx + { + [MethodImpl(0x100)] + get { return new bool2(z, x); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 zy + { + [MethodImpl(0x100)] + get { return new bool2(z, y); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 zz + { + [MethodImpl(0x100)] + get { return new bool2(z, z); } + } + + + } +} diff --git a/src/Unity.Mathematics/bool4.cs b/src/Unity.Mathematics/bool4.cs index 6fcfc21b..155518d0 100644 --- a/src/Unity.Mathematics/bool4.cs +++ b/src/Unity.Mathematics/bool4.cs @@ -1,5 +1,6 @@ -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; using System.Diagnostics; +using System.Runtime.InteropServices; #pragma warning disable 0660, 0661 @@ -24,10 +25,14 @@ public DebuggerProxy(bool4 vec) } } - public bool1 x; - public bool1 y; - public bool1 z; - public bool1 w; + [MarshalAs(UnmanagedType.U1)] // Allow this struct to be passed to a dynamic delegate and marshal correctly + public bool x; + [MarshalAs(UnmanagedType.U1)] + public bool y; + [MarshalAs(UnmanagedType.U1)] + public bool z; + [MarshalAs(UnmanagedType.U1)] + public bool w; [MethodImpl((MethodImplOptions)0x100)] // agressive inline public bool4(bool x, bool y, bool z, bool w) diff --git a/src/Unity.Mathematics/bool4.gen.cs b/src/Unity.Mathematics/bool4.gen.cs index 79b9fac7..f7e81e23 100644 --- a/src/Unity.Mathematics/bool4.gen.cs +++ b/src/Unity.Mathematics/bool4.gen.cs @@ -1,2882 +1,2882 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct bool4 : System.IEquatable - { - - // equal - [MethodImpl(0x100)] - public static bool4 operator == (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator == (bool4 lhs, bool rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - [MethodImpl(0x100)] - public static bool4 operator == (bool lhs, bool4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } - - // not equal - [MethodImpl(0x100)] - public static bool4 operator != (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator != (bool4 lhs, bool rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - [MethodImpl(0x100)] - public static bool4 operator != (bool lhs, bool4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } - - // Equals - [MethodImpl(0x100)] - public bool Equals(bool4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } - - // [int index] - unsafe public bool1 this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (bool1* array = &x) { return array[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (bool1* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(0x100)] - public static bool4 operator & (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator & (bool4 lhs, bool rhs) { return new bool4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } - [MethodImpl(0x100)] - public static bool4 operator & (bool lhs, bool4 rhs) { return new bool4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } - - // operator | - [MethodImpl(0x100)] - public static bool4 operator | (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator | (bool4 lhs, bool rhs) { return new bool4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } - [MethodImpl(0x100)] - public static bool4 operator | (bool lhs, bool4 rhs) { return new bool4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } - - // operator ^ - [MethodImpl(0x100)] - public static bool4 operator ^ (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator ^ (bool4 lhs, bool rhs) { return new bool4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } - [MethodImpl(0x100)] - public static bool4 operator ^ (bool lhs, bool4 rhs) { return new bool4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxx - { - [MethodImpl(0x100)] - get { return new bool4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxy - { - [MethodImpl(0x100)] - get { return new bool4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxz - { - [MethodImpl(0x100)] - get { return new bool4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxw - { - [MethodImpl(0x100)] - get { return new bool4(x, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyx - { - [MethodImpl(0x100)] - get { return new bool4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyy - { - [MethodImpl(0x100)] - get { return new bool4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyz - { - [MethodImpl(0x100)] - get { return new bool4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyw - { - [MethodImpl(0x100)] - get { return new bool4(x, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzx - { - [MethodImpl(0x100)] - get { return new bool4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzy - { - [MethodImpl(0x100)] - get { return new bool4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzz - { - [MethodImpl(0x100)] - get { return new bool4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzw - { - [MethodImpl(0x100)] - get { return new bool4(x, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxwx - { - [MethodImpl(0x100)] - get { return new bool4(x, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxwy - { - [MethodImpl(0x100)] - get { return new bool4(x, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxwz - { - [MethodImpl(0x100)] - get { return new bool4(x, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxww - { - [MethodImpl(0x100)] - get { return new bool4(x, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxx - { - [MethodImpl(0x100)] - get { return new bool4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxy - { - [MethodImpl(0x100)] - get { return new bool4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxz - { - [MethodImpl(0x100)] - get { return new bool4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxw - { - [MethodImpl(0x100)] - get { return new bool4(x, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyx - { - [MethodImpl(0x100)] - get { return new bool4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyy - { - [MethodImpl(0x100)] - get { return new bool4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyz - { - [MethodImpl(0x100)] - get { return new bool4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyw - { - [MethodImpl(0x100)] - get { return new bool4(x, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzx - { - [MethodImpl(0x100)] - get { return new bool4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzy - { - [MethodImpl(0x100)] - get { return new bool4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzz - { - [MethodImpl(0x100)] - get { return new bool4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzw - { - [MethodImpl(0x100)] - get { return new bool4(x, y, z, w); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xywx - { - [MethodImpl(0x100)] - get { return new bool4(x, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xywy - { - [MethodImpl(0x100)] - get { return new bool4(x, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xywz - { - [MethodImpl(0x100)] - get { return new bool4(x, y, w, z); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyww - { - [MethodImpl(0x100)] - get { return new bool4(x, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxx - { - [MethodImpl(0x100)] - get { return new bool4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxy - { - [MethodImpl(0x100)] - get { return new bool4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxz - { - [MethodImpl(0x100)] - get { return new bool4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxw - { - [MethodImpl(0x100)] - get { return new bool4(x, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyx - { - [MethodImpl(0x100)] - get { return new bool4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyy - { - [MethodImpl(0x100)] - get { return new bool4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyz - { - [MethodImpl(0x100)] - get { return new bool4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyw - { - [MethodImpl(0x100)] - get { return new bool4(x, z, y, w); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzx - { - [MethodImpl(0x100)] - get { return new bool4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzy - { - [MethodImpl(0x100)] - get { return new bool4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzz - { - [MethodImpl(0x100)] - get { return new bool4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzw - { - [MethodImpl(0x100)] - get { return new bool4(x, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzwx - { - [MethodImpl(0x100)] - get { return new bool4(x, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzwy - { - [MethodImpl(0x100)] - get { return new bool4(x, z, w, y); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzwz - { - [MethodImpl(0x100)] - get { return new bool4(x, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzww - { - [MethodImpl(0x100)] - get { return new bool4(x, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwxx - { - [MethodImpl(0x100)] - get { return new bool4(x, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwxy - { - [MethodImpl(0x100)] - get { return new bool4(x, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwxz - { - [MethodImpl(0x100)] - get { return new bool4(x, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwxw - { - [MethodImpl(0x100)] - get { return new bool4(x, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwyx - { - [MethodImpl(0x100)] - get { return new bool4(x, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwyy - { - [MethodImpl(0x100)] - get { return new bool4(x, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwyz - { - [MethodImpl(0x100)] - get { return new bool4(x, w, y, z); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwyw - { - [MethodImpl(0x100)] - get { return new bool4(x, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwzx - { - [MethodImpl(0x100)] - get { return new bool4(x, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwzy - { - [MethodImpl(0x100)] - get { return new bool4(x, w, z, y); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwzz - { - [MethodImpl(0x100)] - get { return new bool4(x, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwzw - { - [MethodImpl(0x100)] - get { return new bool4(x, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwwx - { - [MethodImpl(0x100)] - get { return new bool4(x, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwwy - { - [MethodImpl(0x100)] - get { return new bool4(x, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwwz - { - [MethodImpl(0x100)] - get { return new bool4(x, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwww - { - [MethodImpl(0x100)] - get { return new bool4(x, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxx - { - [MethodImpl(0x100)] - get { return new bool4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxy - { - [MethodImpl(0x100)] - get { return new bool4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxz - { - [MethodImpl(0x100)] - get { return new bool4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxw - { - [MethodImpl(0x100)] - get { return new bool4(y, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyx - { - [MethodImpl(0x100)] - get { return new bool4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyy - { - [MethodImpl(0x100)] - get { return new bool4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyz - { - [MethodImpl(0x100)] - get { return new bool4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyw - { - [MethodImpl(0x100)] - get { return new bool4(y, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzx - { - [MethodImpl(0x100)] - get { return new bool4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzy - { - [MethodImpl(0x100)] - get { return new bool4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzz - { - [MethodImpl(0x100)] - get { return new bool4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzw - { - [MethodImpl(0x100)] - get { return new bool4(y, x, z, w); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxwx - { - [MethodImpl(0x100)] - get { return new bool4(y, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxwy - { - [MethodImpl(0x100)] - get { return new bool4(y, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxwz - { - [MethodImpl(0x100)] - get { return new bool4(y, x, w, z); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxww - { - [MethodImpl(0x100)] - get { return new bool4(y, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxx - { - [MethodImpl(0x100)] - get { return new bool4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxy - { - [MethodImpl(0x100)] - get { return new bool4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxz - { - [MethodImpl(0x100)] - get { return new bool4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxw - { - [MethodImpl(0x100)] - get { return new bool4(y, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyx - { - [MethodImpl(0x100)] - get { return new bool4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyy - { - [MethodImpl(0x100)] - get { return new bool4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyz - { - [MethodImpl(0x100)] - get { return new bool4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyw - { - [MethodImpl(0x100)] - get { return new bool4(y, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzx - { - [MethodImpl(0x100)] - get { return new bool4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzy - { - [MethodImpl(0x100)] - get { return new bool4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzz - { - [MethodImpl(0x100)] - get { return new bool4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzw - { - [MethodImpl(0x100)] - get { return new bool4(y, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yywx - { - [MethodImpl(0x100)] - get { return new bool4(y, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yywy - { - [MethodImpl(0x100)] - get { return new bool4(y, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yywz - { - [MethodImpl(0x100)] - get { return new bool4(y, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyww - { - [MethodImpl(0x100)] - get { return new bool4(y, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxx - { - [MethodImpl(0x100)] - get { return new bool4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxy - { - [MethodImpl(0x100)] - get { return new bool4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxz - { - [MethodImpl(0x100)] - get { return new bool4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxw - { - [MethodImpl(0x100)] - get { return new bool4(y, z, x, w); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyx - { - [MethodImpl(0x100)] - get { return new bool4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyy - { - [MethodImpl(0x100)] - get { return new bool4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyz - { - [MethodImpl(0x100)] - get { return new bool4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyw - { - [MethodImpl(0x100)] - get { return new bool4(y, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzx - { - [MethodImpl(0x100)] - get { return new bool4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzy - { - [MethodImpl(0x100)] - get { return new bool4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzz - { - [MethodImpl(0x100)] - get { return new bool4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzw - { - [MethodImpl(0x100)] - get { return new bool4(y, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzwx - { - [MethodImpl(0x100)] - get { return new bool4(y, z, w, x); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzwy - { - [MethodImpl(0x100)] - get { return new bool4(y, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzwz - { - [MethodImpl(0x100)] - get { return new bool4(y, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzww - { - [MethodImpl(0x100)] - get { return new bool4(y, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywxx - { - [MethodImpl(0x100)] - get { return new bool4(y, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywxy - { - [MethodImpl(0x100)] - get { return new bool4(y, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywxz - { - [MethodImpl(0x100)] - get { return new bool4(y, w, x, z); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywxw - { - [MethodImpl(0x100)] - get { return new bool4(y, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywyx - { - [MethodImpl(0x100)] - get { return new bool4(y, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywyy - { - [MethodImpl(0x100)] - get { return new bool4(y, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywyz - { - [MethodImpl(0x100)] - get { return new bool4(y, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywyw - { - [MethodImpl(0x100)] - get { return new bool4(y, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywzx - { - [MethodImpl(0x100)] - get { return new bool4(y, w, z, x); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywzy - { - [MethodImpl(0x100)] - get { return new bool4(y, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywzz - { - [MethodImpl(0x100)] - get { return new bool4(y, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywzw - { - [MethodImpl(0x100)] - get { return new bool4(y, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywwx - { - [MethodImpl(0x100)] - get { return new bool4(y, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywwy - { - [MethodImpl(0x100)] - get { return new bool4(y, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywwz - { - [MethodImpl(0x100)] - get { return new bool4(y, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywww - { - [MethodImpl(0x100)] - get { return new bool4(y, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxx - { - [MethodImpl(0x100)] - get { return new bool4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxy - { - [MethodImpl(0x100)] - get { return new bool4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxz - { - [MethodImpl(0x100)] - get { return new bool4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxw - { - [MethodImpl(0x100)] - get { return new bool4(z, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyx - { - [MethodImpl(0x100)] - get { return new bool4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyy - { - [MethodImpl(0x100)] - get { return new bool4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyz - { - [MethodImpl(0x100)] - get { return new bool4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyw - { - [MethodImpl(0x100)] - get { return new bool4(z, x, y, w); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzx - { - [MethodImpl(0x100)] - get { return new bool4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzy - { - [MethodImpl(0x100)] - get { return new bool4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzz - { - [MethodImpl(0x100)] - get { return new bool4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzw - { - [MethodImpl(0x100)] - get { return new bool4(z, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxwx - { - [MethodImpl(0x100)] - get { return new bool4(z, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxwy - { - [MethodImpl(0x100)] - get { return new bool4(z, x, w, y); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxwz - { - [MethodImpl(0x100)] - get { return new bool4(z, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxww - { - [MethodImpl(0x100)] - get { return new bool4(z, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxx - { - [MethodImpl(0x100)] - get { return new bool4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxy - { - [MethodImpl(0x100)] - get { return new bool4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxz - { - [MethodImpl(0x100)] - get { return new bool4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxw - { - [MethodImpl(0x100)] - get { return new bool4(z, y, x, w); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyx - { - [MethodImpl(0x100)] - get { return new bool4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyy - { - [MethodImpl(0x100)] - get { return new bool4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyz - { - [MethodImpl(0x100)] - get { return new bool4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyw - { - [MethodImpl(0x100)] - get { return new bool4(z, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzx - { - [MethodImpl(0x100)] - get { return new bool4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzy - { - [MethodImpl(0x100)] - get { return new bool4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzz - { - [MethodImpl(0x100)] - get { return new bool4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzw - { - [MethodImpl(0x100)] - get { return new bool4(z, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zywx - { - [MethodImpl(0x100)] - get { return new bool4(z, y, w, x); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zywy - { - [MethodImpl(0x100)] - get { return new bool4(z, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zywz - { - [MethodImpl(0x100)] - get { return new bool4(z, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyww - { - [MethodImpl(0x100)] - get { return new bool4(z, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxx - { - [MethodImpl(0x100)] - get { return new bool4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxy - { - [MethodImpl(0x100)] - get { return new bool4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxz - { - [MethodImpl(0x100)] - get { return new bool4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxw - { - [MethodImpl(0x100)] - get { return new bool4(z, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyx - { - [MethodImpl(0x100)] - get { return new bool4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyy - { - [MethodImpl(0x100)] - get { return new bool4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyz - { - [MethodImpl(0x100)] - get { return new bool4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyw - { - [MethodImpl(0x100)] - get { return new bool4(z, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzx - { - [MethodImpl(0x100)] - get { return new bool4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzy - { - [MethodImpl(0x100)] - get { return new bool4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzz - { - [MethodImpl(0x100)] - get { return new bool4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzw - { - [MethodImpl(0x100)] - get { return new bool4(z, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzwx - { - [MethodImpl(0x100)] - get { return new bool4(z, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzwy - { - [MethodImpl(0x100)] - get { return new bool4(z, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzwz - { - [MethodImpl(0x100)] - get { return new bool4(z, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzww - { - [MethodImpl(0x100)] - get { return new bool4(z, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwxx - { - [MethodImpl(0x100)] - get { return new bool4(z, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwxy - { - [MethodImpl(0x100)] - get { return new bool4(z, w, x, y); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwxz - { - [MethodImpl(0x100)] - get { return new bool4(z, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwxw - { - [MethodImpl(0x100)] - get { return new bool4(z, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwyx - { - [MethodImpl(0x100)] - get { return new bool4(z, w, y, x); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwyy - { - [MethodImpl(0x100)] - get { return new bool4(z, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwyz - { - [MethodImpl(0x100)] - get { return new bool4(z, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwyw - { - [MethodImpl(0x100)] - get { return new bool4(z, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwzx - { - [MethodImpl(0x100)] - get { return new bool4(z, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwzy - { - [MethodImpl(0x100)] - get { return new bool4(z, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwzz - { - [MethodImpl(0x100)] - get { return new bool4(z, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwzw - { - [MethodImpl(0x100)] - get { return new bool4(z, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwwx - { - [MethodImpl(0x100)] - get { return new bool4(z, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwwy - { - [MethodImpl(0x100)] - get { return new bool4(z, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwwz - { - [MethodImpl(0x100)] - get { return new bool4(z, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwww - { - [MethodImpl(0x100)] - get { return new bool4(z, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxxx - { - [MethodImpl(0x100)] - get { return new bool4(w, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxxy - { - [MethodImpl(0x100)] - get { return new bool4(w, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxxz - { - [MethodImpl(0x100)] - get { return new bool4(w, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxxw - { - [MethodImpl(0x100)] - get { return new bool4(w, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxyx - { - [MethodImpl(0x100)] - get { return new bool4(w, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxyy - { - [MethodImpl(0x100)] - get { return new bool4(w, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxyz - { - [MethodImpl(0x100)] - get { return new bool4(w, x, y, z); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxyw - { - [MethodImpl(0x100)] - get { return new bool4(w, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxzx - { - [MethodImpl(0x100)] - get { return new bool4(w, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxzy - { - [MethodImpl(0x100)] - get { return new bool4(w, x, z, y); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxzz - { - [MethodImpl(0x100)] - get { return new bool4(w, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxzw - { - [MethodImpl(0x100)] - get { return new bool4(w, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxwx - { - [MethodImpl(0x100)] - get { return new bool4(w, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxwy - { - [MethodImpl(0x100)] - get { return new bool4(w, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxwz - { - [MethodImpl(0x100)] - get { return new bool4(w, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxww - { - [MethodImpl(0x100)] - get { return new bool4(w, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyxx - { - [MethodImpl(0x100)] - get { return new bool4(w, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyxy - { - [MethodImpl(0x100)] - get { return new bool4(w, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyxz - { - [MethodImpl(0x100)] - get { return new bool4(w, y, x, z); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyxw - { - [MethodImpl(0x100)] - get { return new bool4(w, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyyx - { - [MethodImpl(0x100)] - get { return new bool4(w, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyyy - { - [MethodImpl(0x100)] - get { return new bool4(w, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyyz - { - [MethodImpl(0x100)] - get { return new bool4(w, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyyw - { - [MethodImpl(0x100)] - get { return new bool4(w, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyzx - { - [MethodImpl(0x100)] - get { return new bool4(w, y, z, x); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyzy - { - [MethodImpl(0x100)] - get { return new bool4(w, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyzz - { - [MethodImpl(0x100)] - get { return new bool4(w, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyzw - { - [MethodImpl(0x100)] - get { return new bool4(w, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wywx - { - [MethodImpl(0x100)] - get { return new bool4(w, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wywy - { - [MethodImpl(0x100)] - get { return new bool4(w, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wywz - { - [MethodImpl(0x100)] - get { return new bool4(w, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyww - { - [MethodImpl(0x100)] - get { return new bool4(w, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzxx - { - [MethodImpl(0x100)] - get { return new bool4(w, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzxy - { - [MethodImpl(0x100)] - get { return new bool4(w, z, x, y); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzxz - { - [MethodImpl(0x100)] - get { return new bool4(w, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzxw - { - [MethodImpl(0x100)] - get { return new bool4(w, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzyx - { - [MethodImpl(0x100)] - get { return new bool4(w, z, y, x); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzyy - { - [MethodImpl(0x100)] - get { return new bool4(w, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzyz - { - [MethodImpl(0x100)] - get { return new bool4(w, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzyw - { - [MethodImpl(0x100)] - get { return new bool4(w, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzzx - { - [MethodImpl(0x100)] - get { return new bool4(w, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzzy - { - [MethodImpl(0x100)] - get { return new bool4(w, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzzz - { - [MethodImpl(0x100)] - get { return new bool4(w, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzzw - { - [MethodImpl(0x100)] - get { return new bool4(w, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzwx - { - [MethodImpl(0x100)] - get { return new bool4(w, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzwy - { - [MethodImpl(0x100)] - get { return new bool4(w, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzwz - { - [MethodImpl(0x100)] - get { return new bool4(w, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzww - { - [MethodImpl(0x100)] - get { return new bool4(w, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwxx - { - [MethodImpl(0x100)] - get { return new bool4(w, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwxy - { - [MethodImpl(0x100)] - get { return new bool4(w, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwxz - { - [MethodImpl(0x100)] - get { return new bool4(w, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwxw - { - [MethodImpl(0x100)] - get { return new bool4(w, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwyx - { - [MethodImpl(0x100)] - get { return new bool4(w, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwyy - { - [MethodImpl(0x100)] - get { return new bool4(w, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwyz - { - [MethodImpl(0x100)] - get { return new bool4(w, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwyw - { - [MethodImpl(0x100)] - get { return new bool4(w, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwzx - { - [MethodImpl(0x100)] - get { return new bool4(w, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwzy - { - [MethodImpl(0x100)] - get { return new bool4(w, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwzz - { - [MethodImpl(0x100)] - get { return new bool4(w, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwzw - { - [MethodImpl(0x100)] - get { return new bool4(w, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwwx - { - [MethodImpl(0x100)] - get { return new bool4(w, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwwy - { - [MethodImpl(0x100)] - get { return new bool4(w, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwwz - { - [MethodImpl(0x100)] - get { return new bool4(w, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwww - { - [MethodImpl(0x100)] - get { return new bool4(w, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxx - { - [MethodImpl(0x100)] - get { return new bool3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxy - { - [MethodImpl(0x100)] - get { return new bool3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxz - { - [MethodImpl(0x100)] - get { return new bool3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxw - { - [MethodImpl(0x100)] - get { return new bool3(x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyx - { - [MethodImpl(0x100)] - get { return new bool3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyy - { - [MethodImpl(0x100)] - get { return new bool3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyz - { - [MethodImpl(0x100)] - get { return new bool3(x, y, z); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyw - { - [MethodImpl(0x100)] - get { return new bool3(x, y, w); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzx - { - [MethodImpl(0x100)] - get { return new bool3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzy - { - [MethodImpl(0x100)] - get { return new bool3(x, z, y); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzz - { - [MethodImpl(0x100)] - get { return new bool3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzw - { - [MethodImpl(0x100)] - get { return new bool3(x, z, w); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xwx - { - [MethodImpl(0x100)] - get { return new bool3(x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xwy - { - [MethodImpl(0x100)] - get { return new bool3(x, w, y); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xwz - { - [MethodImpl(0x100)] - get { return new bool3(x, w, z); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xww - { - [MethodImpl(0x100)] - get { return new bool3(x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxx - { - [MethodImpl(0x100)] - get { return new bool3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxy - { - [MethodImpl(0x100)] - get { return new bool3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxz - { - [MethodImpl(0x100)] - get { return new bool3(y, x, z); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxw - { - [MethodImpl(0x100)] - get { return new bool3(y, x, w); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyx - { - [MethodImpl(0x100)] - get { return new bool3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyy - { - [MethodImpl(0x100)] - get { return new bool3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyz - { - [MethodImpl(0x100)] - get { return new bool3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyw - { - [MethodImpl(0x100)] - get { return new bool3(y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzx - { - [MethodImpl(0x100)] - get { return new bool3(y, z, x); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzy - { - [MethodImpl(0x100)] - get { return new bool3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzz - { - [MethodImpl(0x100)] - get { return new bool3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzw - { - [MethodImpl(0x100)] - get { return new bool3(y, z, w); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 ywx - { - [MethodImpl(0x100)] - get { return new bool3(y, w, x); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 ywy - { - [MethodImpl(0x100)] - get { return new bool3(y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 ywz - { - [MethodImpl(0x100)] - get { return new bool3(y, w, z); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yww - { - [MethodImpl(0x100)] - get { return new bool3(y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxx - { - [MethodImpl(0x100)] - get { return new bool3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxy - { - [MethodImpl(0x100)] - get { return new bool3(z, x, y); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxz - { - [MethodImpl(0x100)] - get { return new bool3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxw - { - [MethodImpl(0x100)] - get { return new bool3(z, x, w); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyx - { - [MethodImpl(0x100)] - get { return new bool3(z, y, x); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyy - { - [MethodImpl(0x100)] - get { return new bool3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyz - { - [MethodImpl(0x100)] - get { return new bool3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyw - { - [MethodImpl(0x100)] - get { return new bool3(z, y, w); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzx - { - [MethodImpl(0x100)] - get { return new bool3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzy - { - [MethodImpl(0x100)] - get { return new bool3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzz - { - [MethodImpl(0x100)] - get { return new bool3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzw - { - [MethodImpl(0x100)] - get { return new bool3(z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zwx - { - [MethodImpl(0x100)] - get { return new bool3(z, w, x); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zwy - { - [MethodImpl(0x100)] - get { return new bool3(z, w, y); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zwz - { - [MethodImpl(0x100)] - get { return new bool3(z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zww - { - [MethodImpl(0x100)] - get { return new bool3(z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wxx - { - [MethodImpl(0x100)] - get { return new bool3(w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wxy - { - [MethodImpl(0x100)] - get { return new bool3(w, x, y); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wxz - { - [MethodImpl(0x100)] - get { return new bool3(w, x, z); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wxw - { - [MethodImpl(0x100)] - get { return new bool3(w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wyx - { - [MethodImpl(0x100)] - get { return new bool3(w, y, x); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wyy - { - [MethodImpl(0x100)] - get { return new bool3(w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wyz - { - [MethodImpl(0x100)] - get { return new bool3(w, y, z); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wyw - { - [MethodImpl(0x100)] - get { return new bool3(w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wzx - { - [MethodImpl(0x100)] - get { return new bool3(w, z, x); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wzy - { - [MethodImpl(0x100)] - get { return new bool3(w, z, y); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wzz - { - [MethodImpl(0x100)] - get { return new bool3(w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wzw - { - [MethodImpl(0x100)] - get { return new bool3(w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wwx - { - [MethodImpl(0x100)] - get { return new bool3(w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wwy - { - [MethodImpl(0x100)] - get { return new bool3(w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wwz - { - [MethodImpl(0x100)] - get { return new bool3(w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 www - { - [MethodImpl(0x100)] - get { return new bool3(w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xx - { - [MethodImpl(0x100)] - get { return new bool2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xy - { - [MethodImpl(0x100)] - get { return new bool2(x, y); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xz - { - [MethodImpl(0x100)] - get { return new bool2(x, z); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xw - { - [MethodImpl(0x100)] - get { return new bool2(x, w); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yx - { - [MethodImpl(0x100)] - get { return new bool2(y, x); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yy - { - [MethodImpl(0x100)] - get { return new bool2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yz - { - [MethodImpl(0x100)] - get { return new bool2(y, z); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yw - { - [MethodImpl(0x100)] - get { return new bool2(y, w); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zx - { - [MethodImpl(0x100)] - get { return new bool2(z, x); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zy - { - [MethodImpl(0x100)] - get { return new bool2(z, y); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zz - { - [MethodImpl(0x100)] - get { return new bool2(z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zw - { - [MethodImpl(0x100)] - get { return new bool2(z, w); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 wx - { - [MethodImpl(0x100)] - get { return new bool2(w, x); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 wy - { - [MethodImpl(0x100)] - get { return new bool2(w, y); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 wz - { - [MethodImpl(0x100)] - get { return new bool2(w, z); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 ww - { - [MethodImpl(0x100)] - get { return new bool2(w, w); } - } - - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct bool4 : System.IEquatable + { + + // equal + [MethodImpl(0x100)] + public static bool4 operator == (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator == (bool4 lhs, bool rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } + [MethodImpl(0x100)] + public static bool4 operator == (bool lhs, bool4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } + + // not equal + [MethodImpl(0x100)] + public static bool4 operator != (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator != (bool4 lhs, bool rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } + [MethodImpl(0x100)] + public static bool4 operator != (bool lhs, bool4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } + + // Equals + [MethodImpl(0x100)] + public bool Equals(bool4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } + + // [int index] + unsafe public bool this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (bool4* array = &this) { return ((bool*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (bool* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(0x100)] + public static bool4 operator & (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator & (bool4 lhs, bool rhs) { return new bool4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } + [MethodImpl(0x100)] + public static bool4 operator & (bool lhs, bool4 rhs) { return new bool4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } + + // operator | + [MethodImpl(0x100)] + public static bool4 operator | (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator | (bool4 lhs, bool rhs) { return new bool4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } + [MethodImpl(0x100)] + public static bool4 operator | (bool lhs, bool4 rhs) { return new bool4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } + + // operator ^ + [MethodImpl(0x100)] + public static bool4 operator ^ (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator ^ (bool4 lhs, bool rhs) { return new bool4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } + [MethodImpl(0x100)] + public static bool4 operator ^ (bool lhs, bool4 rhs) { return new bool4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxx + { + [MethodImpl(0x100)] + get { return new bool4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxy + { + [MethodImpl(0x100)] + get { return new bool4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxz + { + [MethodImpl(0x100)] + get { return new bool4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxw + { + [MethodImpl(0x100)] + get { return new bool4(x, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyx + { + [MethodImpl(0x100)] + get { return new bool4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyy + { + [MethodImpl(0x100)] + get { return new bool4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyz + { + [MethodImpl(0x100)] + get { return new bool4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyw + { + [MethodImpl(0x100)] + get { return new bool4(x, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxzx + { + [MethodImpl(0x100)] + get { return new bool4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxzy + { + [MethodImpl(0x100)] + get { return new bool4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxzz + { + [MethodImpl(0x100)] + get { return new bool4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxzw + { + [MethodImpl(0x100)] + get { return new bool4(x, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxwx + { + [MethodImpl(0x100)] + get { return new bool4(x, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxwy + { + [MethodImpl(0x100)] + get { return new bool4(x, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxwz + { + [MethodImpl(0x100)] + get { return new bool4(x, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxww + { + [MethodImpl(0x100)] + get { return new bool4(x, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxx + { + [MethodImpl(0x100)] + get { return new bool4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxy + { + [MethodImpl(0x100)] + get { return new bool4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxz + { + [MethodImpl(0x100)] + get { return new bool4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxw + { + [MethodImpl(0x100)] + get { return new bool4(x, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyx + { + [MethodImpl(0x100)] + get { return new bool4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyy + { + [MethodImpl(0x100)] + get { return new bool4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyz + { + [MethodImpl(0x100)] + get { return new bool4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyw + { + [MethodImpl(0x100)] + get { return new bool4(x, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyzx + { + [MethodImpl(0x100)] + get { return new bool4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyzy + { + [MethodImpl(0x100)] + get { return new bool4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyzz + { + [MethodImpl(0x100)] + get { return new bool4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyzw + { + [MethodImpl(0x100)] + get { return new bool4(x, y, z, w); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xywx + { + [MethodImpl(0x100)] + get { return new bool4(x, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xywy + { + [MethodImpl(0x100)] + get { return new bool4(x, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xywz + { + [MethodImpl(0x100)] + get { return new bool4(x, y, w, z); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyww + { + [MethodImpl(0x100)] + get { return new bool4(x, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzxx + { + [MethodImpl(0x100)] + get { return new bool4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzxy + { + [MethodImpl(0x100)] + get { return new bool4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzxz + { + [MethodImpl(0x100)] + get { return new bool4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzxw + { + [MethodImpl(0x100)] + get { return new bool4(x, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzyx + { + [MethodImpl(0x100)] + get { return new bool4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzyy + { + [MethodImpl(0x100)] + get { return new bool4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzyz + { + [MethodImpl(0x100)] + get { return new bool4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzyw + { + [MethodImpl(0x100)] + get { return new bool4(x, z, y, w); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzzx + { + [MethodImpl(0x100)] + get { return new bool4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzzy + { + [MethodImpl(0x100)] + get { return new bool4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzzz + { + [MethodImpl(0x100)] + get { return new bool4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzzw + { + [MethodImpl(0x100)] + get { return new bool4(x, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzwx + { + [MethodImpl(0x100)] + get { return new bool4(x, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzwy + { + [MethodImpl(0x100)] + get { return new bool4(x, z, w, y); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzwz + { + [MethodImpl(0x100)] + get { return new bool4(x, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzww + { + [MethodImpl(0x100)] + get { return new bool4(x, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwxx + { + [MethodImpl(0x100)] + get { return new bool4(x, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwxy + { + [MethodImpl(0x100)] + get { return new bool4(x, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwxz + { + [MethodImpl(0x100)] + get { return new bool4(x, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwxw + { + [MethodImpl(0x100)] + get { return new bool4(x, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwyx + { + [MethodImpl(0x100)] + get { return new bool4(x, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwyy + { + [MethodImpl(0x100)] + get { return new bool4(x, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwyz + { + [MethodImpl(0x100)] + get { return new bool4(x, w, y, z); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwyw + { + [MethodImpl(0x100)] + get { return new bool4(x, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwzx + { + [MethodImpl(0x100)] + get { return new bool4(x, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwzy + { + [MethodImpl(0x100)] + get { return new bool4(x, w, z, y); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwzz + { + [MethodImpl(0x100)] + get { return new bool4(x, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwzw + { + [MethodImpl(0x100)] + get { return new bool4(x, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwwx + { + [MethodImpl(0x100)] + get { return new bool4(x, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwwy + { + [MethodImpl(0x100)] + get { return new bool4(x, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwwz + { + [MethodImpl(0x100)] + get { return new bool4(x, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwww + { + [MethodImpl(0x100)] + get { return new bool4(x, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxx + { + [MethodImpl(0x100)] + get { return new bool4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxy + { + [MethodImpl(0x100)] + get { return new bool4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxz + { + [MethodImpl(0x100)] + get { return new bool4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxw + { + [MethodImpl(0x100)] + get { return new bool4(y, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyx + { + [MethodImpl(0x100)] + get { return new bool4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyy + { + [MethodImpl(0x100)] + get { return new bool4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyz + { + [MethodImpl(0x100)] + get { return new bool4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyw + { + [MethodImpl(0x100)] + get { return new bool4(y, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxzx + { + [MethodImpl(0x100)] + get { return new bool4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxzy + { + [MethodImpl(0x100)] + get { return new bool4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxzz + { + [MethodImpl(0x100)] + get { return new bool4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxzw + { + [MethodImpl(0x100)] + get { return new bool4(y, x, z, w); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxwx + { + [MethodImpl(0x100)] + get { return new bool4(y, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxwy + { + [MethodImpl(0x100)] + get { return new bool4(y, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxwz + { + [MethodImpl(0x100)] + get { return new bool4(y, x, w, z); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxww + { + [MethodImpl(0x100)] + get { return new bool4(y, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxx + { + [MethodImpl(0x100)] + get { return new bool4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxy + { + [MethodImpl(0x100)] + get { return new bool4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxz + { + [MethodImpl(0x100)] + get { return new bool4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxw + { + [MethodImpl(0x100)] + get { return new bool4(y, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyx + { + [MethodImpl(0x100)] + get { return new bool4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyy + { + [MethodImpl(0x100)] + get { return new bool4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyz + { + [MethodImpl(0x100)] + get { return new bool4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyw + { + [MethodImpl(0x100)] + get { return new bool4(y, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyzx + { + [MethodImpl(0x100)] + get { return new bool4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyzy + { + [MethodImpl(0x100)] + get { return new bool4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyzz + { + [MethodImpl(0x100)] + get { return new bool4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyzw + { + [MethodImpl(0x100)] + get { return new bool4(y, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yywx + { + [MethodImpl(0x100)] + get { return new bool4(y, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yywy + { + [MethodImpl(0x100)] + get { return new bool4(y, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yywz + { + [MethodImpl(0x100)] + get { return new bool4(y, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyww + { + [MethodImpl(0x100)] + get { return new bool4(y, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzxx + { + [MethodImpl(0x100)] + get { return new bool4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzxy + { + [MethodImpl(0x100)] + get { return new bool4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzxz + { + [MethodImpl(0x100)] + get { return new bool4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzxw + { + [MethodImpl(0x100)] + get { return new bool4(y, z, x, w); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzyx + { + [MethodImpl(0x100)] + get { return new bool4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzyy + { + [MethodImpl(0x100)] + get { return new bool4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzyz + { + [MethodImpl(0x100)] + get { return new bool4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzyw + { + [MethodImpl(0x100)] + get { return new bool4(y, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzzx + { + [MethodImpl(0x100)] + get { return new bool4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzzy + { + [MethodImpl(0x100)] + get { return new bool4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzzz + { + [MethodImpl(0x100)] + get { return new bool4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzzw + { + [MethodImpl(0x100)] + get { return new bool4(y, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzwx + { + [MethodImpl(0x100)] + get { return new bool4(y, z, w, x); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzwy + { + [MethodImpl(0x100)] + get { return new bool4(y, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzwz + { + [MethodImpl(0x100)] + get { return new bool4(y, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzww + { + [MethodImpl(0x100)] + get { return new bool4(y, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywxx + { + [MethodImpl(0x100)] + get { return new bool4(y, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywxy + { + [MethodImpl(0x100)] + get { return new bool4(y, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywxz + { + [MethodImpl(0x100)] + get { return new bool4(y, w, x, z); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywxw + { + [MethodImpl(0x100)] + get { return new bool4(y, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywyx + { + [MethodImpl(0x100)] + get { return new bool4(y, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywyy + { + [MethodImpl(0x100)] + get { return new bool4(y, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywyz + { + [MethodImpl(0x100)] + get { return new bool4(y, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywyw + { + [MethodImpl(0x100)] + get { return new bool4(y, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywzx + { + [MethodImpl(0x100)] + get { return new bool4(y, w, z, x); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywzy + { + [MethodImpl(0x100)] + get { return new bool4(y, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywzz + { + [MethodImpl(0x100)] + get { return new bool4(y, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywzw + { + [MethodImpl(0x100)] + get { return new bool4(y, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywwx + { + [MethodImpl(0x100)] + get { return new bool4(y, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywwy + { + [MethodImpl(0x100)] + get { return new bool4(y, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywwz + { + [MethodImpl(0x100)] + get { return new bool4(y, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywww + { + [MethodImpl(0x100)] + get { return new bool4(y, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxxx + { + [MethodImpl(0x100)] + get { return new bool4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxxy + { + [MethodImpl(0x100)] + get { return new bool4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxxz + { + [MethodImpl(0x100)] + get { return new bool4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxxw + { + [MethodImpl(0x100)] + get { return new bool4(z, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxyx + { + [MethodImpl(0x100)] + get { return new bool4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxyy + { + [MethodImpl(0x100)] + get { return new bool4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxyz + { + [MethodImpl(0x100)] + get { return new bool4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxyw + { + [MethodImpl(0x100)] + get { return new bool4(z, x, y, w); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxzx + { + [MethodImpl(0x100)] + get { return new bool4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxzy + { + [MethodImpl(0x100)] + get { return new bool4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxzz + { + [MethodImpl(0x100)] + get { return new bool4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxzw + { + [MethodImpl(0x100)] + get { return new bool4(z, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxwx + { + [MethodImpl(0x100)] + get { return new bool4(z, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxwy + { + [MethodImpl(0x100)] + get { return new bool4(z, x, w, y); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxwz + { + [MethodImpl(0x100)] + get { return new bool4(z, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxww + { + [MethodImpl(0x100)] + get { return new bool4(z, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyxx + { + [MethodImpl(0x100)] + get { return new bool4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyxy + { + [MethodImpl(0x100)] + get { return new bool4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyxz + { + [MethodImpl(0x100)] + get { return new bool4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyxw + { + [MethodImpl(0x100)] + get { return new bool4(z, y, x, w); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyyx + { + [MethodImpl(0x100)] + get { return new bool4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyyy + { + [MethodImpl(0x100)] + get { return new bool4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyyz + { + [MethodImpl(0x100)] + get { return new bool4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyyw + { + [MethodImpl(0x100)] + get { return new bool4(z, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyzx + { + [MethodImpl(0x100)] + get { return new bool4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyzy + { + [MethodImpl(0x100)] + get { return new bool4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyzz + { + [MethodImpl(0x100)] + get { return new bool4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyzw + { + [MethodImpl(0x100)] + get { return new bool4(z, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zywx + { + [MethodImpl(0x100)] + get { return new bool4(z, y, w, x); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zywy + { + [MethodImpl(0x100)] + get { return new bool4(z, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zywz + { + [MethodImpl(0x100)] + get { return new bool4(z, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyww + { + [MethodImpl(0x100)] + get { return new bool4(z, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzxx + { + [MethodImpl(0x100)] + get { return new bool4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzxy + { + [MethodImpl(0x100)] + get { return new bool4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzxz + { + [MethodImpl(0x100)] + get { return new bool4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzxw + { + [MethodImpl(0x100)] + get { return new bool4(z, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzyx + { + [MethodImpl(0x100)] + get { return new bool4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzyy + { + [MethodImpl(0x100)] + get { return new bool4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzyz + { + [MethodImpl(0x100)] + get { return new bool4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzyw + { + [MethodImpl(0x100)] + get { return new bool4(z, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzzx + { + [MethodImpl(0x100)] + get { return new bool4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzzy + { + [MethodImpl(0x100)] + get { return new bool4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzzz + { + [MethodImpl(0x100)] + get { return new bool4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzzw + { + [MethodImpl(0x100)] + get { return new bool4(z, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzwx + { + [MethodImpl(0x100)] + get { return new bool4(z, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzwy + { + [MethodImpl(0x100)] + get { return new bool4(z, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzwz + { + [MethodImpl(0x100)] + get { return new bool4(z, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzww + { + [MethodImpl(0x100)] + get { return new bool4(z, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwxx + { + [MethodImpl(0x100)] + get { return new bool4(z, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwxy + { + [MethodImpl(0x100)] + get { return new bool4(z, w, x, y); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwxz + { + [MethodImpl(0x100)] + get { return new bool4(z, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwxw + { + [MethodImpl(0x100)] + get { return new bool4(z, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwyx + { + [MethodImpl(0x100)] + get { return new bool4(z, w, y, x); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwyy + { + [MethodImpl(0x100)] + get { return new bool4(z, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwyz + { + [MethodImpl(0x100)] + get { return new bool4(z, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwyw + { + [MethodImpl(0x100)] + get { return new bool4(z, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwzx + { + [MethodImpl(0x100)] + get { return new bool4(z, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwzy + { + [MethodImpl(0x100)] + get { return new bool4(z, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwzz + { + [MethodImpl(0x100)] + get { return new bool4(z, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwzw + { + [MethodImpl(0x100)] + get { return new bool4(z, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwwx + { + [MethodImpl(0x100)] + get { return new bool4(z, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwwy + { + [MethodImpl(0x100)] + get { return new bool4(z, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwwz + { + [MethodImpl(0x100)] + get { return new bool4(z, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwww + { + [MethodImpl(0x100)] + get { return new bool4(z, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxxx + { + [MethodImpl(0x100)] + get { return new bool4(w, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxxy + { + [MethodImpl(0x100)] + get { return new bool4(w, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxxz + { + [MethodImpl(0x100)] + get { return new bool4(w, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxxw + { + [MethodImpl(0x100)] + get { return new bool4(w, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxyx + { + [MethodImpl(0x100)] + get { return new bool4(w, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxyy + { + [MethodImpl(0x100)] + get { return new bool4(w, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxyz + { + [MethodImpl(0x100)] + get { return new bool4(w, x, y, z); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxyw + { + [MethodImpl(0x100)] + get { return new bool4(w, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxzx + { + [MethodImpl(0x100)] + get { return new bool4(w, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxzy + { + [MethodImpl(0x100)] + get { return new bool4(w, x, z, y); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxzz + { + [MethodImpl(0x100)] + get { return new bool4(w, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxzw + { + [MethodImpl(0x100)] + get { return new bool4(w, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxwx + { + [MethodImpl(0x100)] + get { return new bool4(w, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxwy + { + [MethodImpl(0x100)] + get { return new bool4(w, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxwz + { + [MethodImpl(0x100)] + get { return new bool4(w, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxww + { + [MethodImpl(0x100)] + get { return new bool4(w, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyxx + { + [MethodImpl(0x100)] + get { return new bool4(w, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyxy + { + [MethodImpl(0x100)] + get { return new bool4(w, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyxz + { + [MethodImpl(0x100)] + get { return new bool4(w, y, x, z); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyxw + { + [MethodImpl(0x100)] + get { return new bool4(w, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyyx + { + [MethodImpl(0x100)] + get { return new bool4(w, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyyy + { + [MethodImpl(0x100)] + get { return new bool4(w, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyyz + { + [MethodImpl(0x100)] + get { return new bool4(w, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyyw + { + [MethodImpl(0x100)] + get { return new bool4(w, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyzx + { + [MethodImpl(0x100)] + get { return new bool4(w, y, z, x); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyzy + { + [MethodImpl(0x100)] + get { return new bool4(w, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyzz + { + [MethodImpl(0x100)] + get { return new bool4(w, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyzw + { + [MethodImpl(0x100)] + get { return new bool4(w, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wywx + { + [MethodImpl(0x100)] + get { return new bool4(w, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wywy + { + [MethodImpl(0x100)] + get { return new bool4(w, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wywz + { + [MethodImpl(0x100)] + get { return new bool4(w, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyww + { + [MethodImpl(0x100)] + get { return new bool4(w, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzxx + { + [MethodImpl(0x100)] + get { return new bool4(w, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzxy + { + [MethodImpl(0x100)] + get { return new bool4(w, z, x, y); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzxz + { + [MethodImpl(0x100)] + get { return new bool4(w, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzxw + { + [MethodImpl(0x100)] + get { return new bool4(w, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzyx + { + [MethodImpl(0x100)] + get { return new bool4(w, z, y, x); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzyy + { + [MethodImpl(0x100)] + get { return new bool4(w, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzyz + { + [MethodImpl(0x100)] + get { return new bool4(w, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzyw + { + [MethodImpl(0x100)] + get { return new bool4(w, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzzx + { + [MethodImpl(0x100)] + get { return new bool4(w, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzzy + { + [MethodImpl(0x100)] + get { return new bool4(w, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzzz + { + [MethodImpl(0x100)] + get { return new bool4(w, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzzw + { + [MethodImpl(0x100)] + get { return new bool4(w, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzwx + { + [MethodImpl(0x100)] + get { return new bool4(w, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzwy + { + [MethodImpl(0x100)] + get { return new bool4(w, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzwz + { + [MethodImpl(0x100)] + get { return new bool4(w, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzww + { + [MethodImpl(0x100)] + get { return new bool4(w, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwxx + { + [MethodImpl(0x100)] + get { return new bool4(w, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwxy + { + [MethodImpl(0x100)] + get { return new bool4(w, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwxz + { + [MethodImpl(0x100)] + get { return new bool4(w, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwxw + { + [MethodImpl(0x100)] + get { return new bool4(w, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwyx + { + [MethodImpl(0x100)] + get { return new bool4(w, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwyy + { + [MethodImpl(0x100)] + get { return new bool4(w, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwyz + { + [MethodImpl(0x100)] + get { return new bool4(w, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwyw + { + [MethodImpl(0x100)] + get { return new bool4(w, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwzx + { + [MethodImpl(0x100)] + get { return new bool4(w, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwzy + { + [MethodImpl(0x100)] + get { return new bool4(w, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwzz + { + [MethodImpl(0x100)] + get { return new bool4(w, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwzw + { + [MethodImpl(0x100)] + get { return new bool4(w, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwwx + { + [MethodImpl(0x100)] + get { return new bool4(w, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwwy + { + [MethodImpl(0x100)] + get { return new bool4(w, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwwz + { + [MethodImpl(0x100)] + get { return new bool4(w, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwww + { + [MethodImpl(0x100)] + get { return new bool4(w, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxx + { + [MethodImpl(0x100)] + get { return new bool3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxy + { + [MethodImpl(0x100)] + get { return new bool3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxz + { + [MethodImpl(0x100)] + get { return new bool3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxw + { + [MethodImpl(0x100)] + get { return new bool3(x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyx + { + [MethodImpl(0x100)] + get { return new bool3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyy + { + [MethodImpl(0x100)] + get { return new bool3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyz + { + [MethodImpl(0x100)] + get { return new bool3(x, y, z); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyw + { + [MethodImpl(0x100)] + get { return new bool3(x, y, w); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xzx + { + [MethodImpl(0x100)] + get { return new bool3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xzy + { + [MethodImpl(0x100)] + get { return new bool3(x, z, y); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xzz + { + [MethodImpl(0x100)] + get { return new bool3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xzw + { + [MethodImpl(0x100)] + get { return new bool3(x, z, w); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xwx + { + [MethodImpl(0x100)] + get { return new bool3(x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xwy + { + [MethodImpl(0x100)] + get { return new bool3(x, w, y); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xwz + { + [MethodImpl(0x100)] + get { return new bool3(x, w, z); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xww + { + [MethodImpl(0x100)] + get { return new bool3(x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxx + { + [MethodImpl(0x100)] + get { return new bool3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxy + { + [MethodImpl(0x100)] + get { return new bool3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxz + { + [MethodImpl(0x100)] + get { return new bool3(y, x, z); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxw + { + [MethodImpl(0x100)] + get { return new bool3(y, x, w); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyx + { + [MethodImpl(0x100)] + get { return new bool3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyy + { + [MethodImpl(0x100)] + get { return new bool3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyz + { + [MethodImpl(0x100)] + get { return new bool3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyw + { + [MethodImpl(0x100)] + get { return new bool3(y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yzx + { + [MethodImpl(0x100)] + get { return new bool3(y, z, x); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yzy + { + [MethodImpl(0x100)] + get { return new bool3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yzz + { + [MethodImpl(0x100)] + get { return new bool3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yzw + { + [MethodImpl(0x100)] + get { return new bool3(y, z, w); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 ywx + { + [MethodImpl(0x100)] + get { return new bool3(y, w, x); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 ywy + { + [MethodImpl(0x100)] + get { return new bool3(y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 ywz + { + [MethodImpl(0x100)] + get { return new bool3(y, w, z); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yww + { + [MethodImpl(0x100)] + get { return new bool3(y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zxx + { + [MethodImpl(0x100)] + get { return new bool3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zxy + { + [MethodImpl(0x100)] + get { return new bool3(z, x, y); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zxz + { + [MethodImpl(0x100)] + get { return new bool3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zxw + { + [MethodImpl(0x100)] + get { return new bool3(z, x, w); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zyx + { + [MethodImpl(0x100)] + get { return new bool3(z, y, x); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zyy + { + [MethodImpl(0x100)] + get { return new bool3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zyz + { + [MethodImpl(0x100)] + get { return new bool3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zyw + { + [MethodImpl(0x100)] + get { return new bool3(z, y, w); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zzx + { + [MethodImpl(0x100)] + get { return new bool3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zzy + { + [MethodImpl(0x100)] + get { return new bool3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zzz + { + [MethodImpl(0x100)] + get { return new bool3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zzw + { + [MethodImpl(0x100)] + get { return new bool3(z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zwx + { + [MethodImpl(0x100)] + get { return new bool3(z, w, x); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zwy + { + [MethodImpl(0x100)] + get { return new bool3(z, w, y); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zwz + { + [MethodImpl(0x100)] + get { return new bool3(z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zww + { + [MethodImpl(0x100)] + get { return new bool3(z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wxx + { + [MethodImpl(0x100)] + get { return new bool3(w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wxy + { + [MethodImpl(0x100)] + get { return new bool3(w, x, y); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wxz + { + [MethodImpl(0x100)] + get { return new bool3(w, x, z); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wxw + { + [MethodImpl(0x100)] + get { return new bool3(w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wyx + { + [MethodImpl(0x100)] + get { return new bool3(w, y, x); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wyy + { + [MethodImpl(0x100)] + get { return new bool3(w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wyz + { + [MethodImpl(0x100)] + get { return new bool3(w, y, z); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wyw + { + [MethodImpl(0x100)] + get { return new bool3(w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wzx + { + [MethodImpl(0x100)] + get { return new bool3(w, z, x); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wzy + { + [MethodImpl(0x100)] + get { return new bool3(w, z, y); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wzz + { + [MethodImpl(0x100)] + get { return new bool3(w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wzw + { + [MethodImpl(0x100)] + get { return new bool3(w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wwx + { + [MethodImpl(0x100)] + get { return new bool3(w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wwy + { + [MethodImpl(0x100)] + get { return new bool3(w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wwz + { + [MethodImpl(0x100)] + get { return new bool3(w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 www + { + [MethodImpl(0x100)] + get { return new bool3(w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xx + { + [MethodImpl(0x100)] + get { return new bool2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xy + { + [MethodImpl(0x100)] + get { return new bool2(x, y); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xz + { + [MethodImpl(0x100)] + get { return new bool2(x, z); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xw + { + [MethodImpl(0x100)] + get { return new bool2(x, w); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yx + { + [MethodImpl(0x100)] + get { return new bool2(y, x); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yy + { + [MethodImpl(0x100)] + get { return new bool2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yz + { + [MethodImpl(0x100)] + get { return new bool2(y, z); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yw + { + [MethodImpl(0x100)] + get { return new bool2(y, w); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 zx + { + [MethodImpl(0x100)] + get { return new bool2(z, x); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 zy + { + [MethodImpl(0x100)] + get { return new bool2(z, y); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 zz + { + [MethodImpl(0x100)] + get { return new bool2(z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 zw + { + [MethodImpl(0x100)] + get { return new bool2(z, w); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 wx + { + [MethodImpl(0x100)] + get { return new bool2(w, x); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 wy + { + [MethodImpl(0x100)] + get { return new bool2(w, y); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 wz + { + [MethodImpl(0x100)] + get { return new bool2(w, z); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 ww + { + [MethodImpl(0x100)] + get { return new bool2(w, w); } + } + + + } +} diff --git a/src/Unity.Mathematics/float2.gen.cs b/src/Unity.Mathematics/float2.gen.cs index 74b94584..31a88a8d 100644 --- a/src/Unity.Mathematics/float2.gen.cs +++ b/src/Unity.Mathematics/float2.gen.cs @@ -1,344 +1,344 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct float2 : System.IEquatable - { - - // mul - [MethodImpl(0x100)] - public static float2 operator * (float2 lhs, float2 rhs) { return new float2 (lhs.x * rhs.x, lhs.y * rhs.y); } - [MethodImpl(0x100)] - public static float2 operator * (float2 lhs, float rhs) { return new float2 (lhs.x * rhs, lhs.y * rhs); } - [MethodImpl(0x100)] - public static float2 operator * (float lhs, float2 rhs) { return new float2 (lhs * rhs.x, lhs * rhs.y); } - - // add - [MethodImpl(0x100)] - public static float2 operator + (float2 lhs, float2 rhs) { return new float2 (lhs.x + rhs.x, lhs.y + rhs.y); } - [MethodImpl(0x100)] - public static float2 operator + (float2 lhs, float rhs) { return new float2 (lhs.x + rhs, lhs.y + rhs); } - [MethodImpl(0x100)] - public static float2 operator + (float lhs, float2 rhs) { return new float2 (lhs + rhs.x, lhs + rhs.y); } - - // sub - [MethodImpl(0x100)] - public static float2 operator - (float2 lhs, float2 rhs) { return new float2 (lhs.x - rhs.x, lhs.y - rhs.y); } - [MethodImpl(0x100)] - public static float2 operator - (float2 lhs, float rhs) { return new float2 (lhs.x - rhs, lhs.y - rhs); } - [MethodImpl(0x100)] - public static float2 operator - (float lhs, float2 rhs) { return new float2 (lhs - rhs.x, lhs - rhs.y); } - - // div - [MethodImpl(0x100)] - public static float2 operator / (float2 lhs, float2 rhs) { return new float2 (lhs.x / rhs.x, lhs.y / rhs.y); } - [MethodImpl(0x100)] - public static float2 operator / (float2 lhs, float rhs) { return new float2 (lhs.x / rhs, lhs.y / rhs); } - [MethodImpl(0x100)] - public static float2 operator / (float lhs, float2 rhs) { return new float2 (lhs / rhs.x, lhs / rhs.y); } - - // smaller - [MethodImpl(0x100)] - public static bool2 operator < (float2 lhs, float2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator < (float2 lhs, float rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } - [MethodImpl(0x100)] - public static bool2 operator < (float lhs, float2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator <= (float2 lhs, float2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator <= (float2 lhs, float rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } - [MethodImpl(0x100)] - public static bool2 operator <= (float lhs, float2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } - - // greater - [MethodImpl(0x100)] - public static bool2 operator > (float2 lhs, float2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator > (float2 lhs, float rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } - [MethodImpl(0x100)] - public static bool2 operator > (float lhs, float2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator >= (float2 lhs, float2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator >= (float2 lhs, float rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } - [MethodImpl(0x100)] - public static bool2 operator >= (float lhs, float2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } - - // neg - [MethodImpl(0x100)] - public static float2 operator - (float2 val) { return new float2 (-val.x, -val.y); } - // plus - [MethodImpl(0x100)] - public static float2 operator + (float2 val) { return new float2 (+val.x, +val.y); } - // equal - [MethodImpl(0x100)] - public static bool2 operator == (float2 lhs, float2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator == (float2 lhs, float rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - [MethodImpl(0x100)] - public static bool2 operator == (float lhs, float2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } - - // not equal - [MethodImpl(0x100)] - public static bool2 operator != (float2 lhs, float2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator != (float2 lhs, float rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - [MethodImpl(0x100)] - public static bool2 operator != (float lhs, float2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } - - // Equals - [MethodImpl(0x100)] - public bool Equals(float2 rhs) { return x == rhs.x && y == rhs.y; } - - // [int index] - unsafe public float this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (float2* array = &this) { return ((float*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (float2* array = &this) { ((float*)array)[index] = value; } - } - } - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxx - { - [MethodImpl(0x100)] - get { return new float4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxy - { - [MethodImpl(0x100)] - get { return new float4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyx - { - [MethodImpl(0x100)] - get { return new float4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyy - { - [MethodImpl(0x100)] - get { return new float4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxx - { - [MethodImpl(0x100)] - get { return new float4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxy - { - [MethodImpl(0x100)] - get { return new float4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyx - { - [MethodImpl(0x100)] - get { return new float4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyy - { - [MethodImpl(0x100)] - get { return new float4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxx - { - [MethodImpl(0x100)] - get { return new float4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxy - { - [MethodImpl(0x100)] - get { return new float4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyx - { - [MethodImpl(0x100)] - get { return new float4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyy - { - [MethodImpl(0x100)] - get { return new float4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxx - { - [MethodImpl(0x100)] - get { return new float4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxy - { - [MethodImpl(0x100)] - get { return new float4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyx - { - [MethodImpl(0x100)] - get { return new float4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyy - { - [MethodImpl(0x100)] - get { return new float4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxx - { - [MethodImpl(0x100)] - get { return new float3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxy - { - [MethodImpl(0x100)] - get { return new float3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyx - { - [MethodImpl(0x100)] - get { return new float3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyy - { - [MethodImpl(0x100)] - get { return new float3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxx - { - [MethodImpl(0x100)] - get { return new float3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxy - { - [MethodImpl(0x100)] - get { return new float3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyx - { - [MethodImpl(0x100)] - get { return new float3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyy - { - [MethodImpl(0x100)] - get { return new float3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xx - { - [MethodImpl(0x100)] - get { return new float2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xy - { - [MethodImpl(0x100)] - get { return new float2(x, y); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yx - { - [MethodImpl(0x100)] - get { return new float2(y, x); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yy - { - [MethodImpl(0x100)] - get { return new float2(y, y); } - } - - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct float2 : System.IEquatable + { + + // mul + [MethodImpl(0x100)] + public static float2 operator * (float2 lhs, float2 rhs) { return new float2 (lhs.x * rhs.x, lhs.y * rhs.y); } + [MethodImpl(0x100)] + public static float2 operator * (float2 lhs, float rhs) { return new float2 (lhs.x * rhs, lhs.y * rhs); } + [MethodImpl(0x100)] + public static float2 operator * (float lhs, float2 rhs) { return new float2 (lhs * rhs.x, lhs * rhs.y); } + + // add + [MethodImpl(0x100)] + public static float2 operator + (float2 lhs, float2 rhs) { return new float2 (lhs.x + rhs.x, lhs.y + rhs.y); } + [MethodImpl(0x100)] + public static float2 operator + (float2 lhs, float rhs) { return new float2 (lhs.x + rhs, lhs.y + rhs); } + [MethodImpl(0x100)] + public static float2 operator + (float lhs, float2 rhs) { return new float2 (lhs + rhs.x, lhs + rhs.y); } + + // sub + [MethodImpl(0x100)] + public static float2 operator - (float2 lhs, float2 rhs) { return new float2 (lhs.x - rhs.x, lhs.y - rhs.y); } + [MethodImpl(0x100)] + public static float2 operator - (float2 lhs, float rhs) { return new float2 (lhs.x - rhs, lhs.y - rhs); } + [MethodImpl(0x100)] + public static float2 operator - (float lhs, float2 rhs) { return new float2 (lhs - rhs.x, lhs - rhs.y); } + + // div + [MethodImpl(0x100)] + public static float2 operator / (float2 lhs, float2 rhs) { return new float2 (lhs.x / rhs.x, lhs.y / rhs.y); } + [MethodImpl(0x100)] + public static float2 operator / (float2 lhs, float rhs) { return new float2 (lhs.x / rhs, lhs.y / rhs); } + [MethodImpl(0x100)] + public static float2 operator / (float lhs, float2 rhs) { return new float2 (lhs / rhs.x, lhs / rhs.y); } + + // smaller + [MethodImpl(0x100)] + public static bool2 operator < (float2 lhs, float2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator < (float2 lhs, float rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } + [MethodImpl(0x100)] + public static bool2 operator < (float lhs, float2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator <= (float2 lhs, float2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator <= (float2 lhs, float rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } + [MethodImpl(0x100)] + public static bool2 operator <= (float lhs, float2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } + + // greater + [MethodImpl(0x100)] + public static bool2 operator > (float2 lhs, float2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator > (float2 lhs, float rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } + [MethodImpl(0x100)] + public static bool2 operator > (float lhs, float2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator >= (float2 lhs, float2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator >= (float2 lhs, float rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } + [MethodImpl(0x100)] + public static bool2 operator >= (float lhs, float2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } + + // neg + [MethodImpl(0x100)] + public static float2 operator - (float2 val) { return new float2 (-val.x, -val.y); } + // plus + [MethodImpl(0x100)] + public static float2 operator + (float2 val) { return new float2 (+val.x, +val.y); } + // equal + [MethodImpl(0x100)] + public static bool2 operator == (float2 lhs, float2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator == (float2 lhs, float rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } + [MethodImpl(0x100)] + public static bool2 operator == (float lhs, float2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } + + // not equal + [MethodImpl(0x100)] + public static bool2 operator != (float2 lhs, float2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator != (float2 lhs, float rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } + [MethodImpl(0x100)] + public static bool2 operator != (float lhs, float2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } + + // Equals + [MethodImpl(0x100)] + public bool Equals(float2 rhs) { return x == rhs.x && y == rhs.y; } + + // [int index] + unsafe public float this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (float2* array = &this) { return ((float*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (float* array = &x) { array[index] = value; } + } + } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxx + { + [MethodImpl(0x100)] + get { return new float4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxy + { + [MethodImpl(0x100)] + get { return new float4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyx + { + [MethodImpl(0x100)] + get { return new float4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyy + { + [MethodImpl(0x100)] + get { return new float4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxx + { + [MethodImpl(0x100)] + get { return new float4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxy + { + [MethodImpl(0x100)] + get { return new float4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyx + { + [MethodImpl(0x100)] + get { return new float4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyy + { + [MethodImpl(0x100)] + get { return new float4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxx + { + [MethodImpl(0x100)] + get { return new float4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxy + { + [MethodImpl(0x100)] + get { return new float4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyx + { + [MethodImpl(0x100)] + get { return new float4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyy + { + [MethodImpl(0x100)] + get { return new float4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxx + { + [MethodImpl(0x100)] + get { return new float4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxy + { + [MethodImpl(0x100)] + get { return new float4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyx + { + [MethodImpl(0x100)] + get { return new float4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyy + { + [MethodImpl(0x100)] + get { return new float4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxx + { + [MethodImpl(0x100)] + get { return new float3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxy + { + [MethodImpl(0x100)] + get { return new float3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyx + { + [MethodImpl(0x100)] + get { return new float3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyy + { + [MethodImpl(0x100)] + get { return new float3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxx + { + [MethodImpl(0x100)] + get { return new float3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxy + { + [MethodImpl(0x100)] + get { return new float3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyx + { + [MethodImpl(0x100)] + get { return new float3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyy + { + [MethodImpl(0x100)] + get { return new float3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xx + { + [MethodImpl(0x100)] + get { return new float2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xy + { + [MethodImpl(0x100)] + get { return new float2(x, y); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yx + { + [MethodImpl(0x100)] + get { return new float2(y, x); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yy + { + [MethodImpl(0x100)] + get { return new float2(y, y); } + } + + + } +} diff --git a/src/Unity.Mathematics/float3.gen.cs b/src/Unity.Mathematics/float3.gen.cs index 3a65999f..e7d84113 100644 --- a/src/Unity.Mathematics/float3.gen.cs +++ b/src/Unity.Mathematics/float3.gen.cs @@ -1,1076 +1,1076 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct float3 : System.IEquatable - { - - // mul - [MethodImpl(0x100)] - public static float3 operator * (float3 lhs, float3 rhs) { return new float3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } - [MethodImpl(0x100)] - public static float3 operator * (float3 lhs, float rhs) { return new float3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } - [MethodImpl(0x100)] - public static float3 operator * (float lhs, float3 rhs) { return new float3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } - - // add - [MethodImpl(0x100)] - public static float3 operator + (float3 lhs, float3 rhs) { return new float3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } - [MethodImpl(0x100)] - public static float3 operator + (float3 lhs, float rhs) { return new float3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } - [MethodImpl(0x100)] - public static float3 operator + (float lhs, float3 rhs) { return new float3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } - - // sub - [MethodImpl(0x100)] - public static float3 operator - (float3 lhs, float3 rhs) { return new float3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } - [MethodImpl(0x100)] - public static float3 operator - (float3 lhs, float rhs) { return new float3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } - [MethodImpl(0x100)] - public static float3 operator - (float lhs, float3 rhs) { return new float3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } - - // div - [MethodImpl(0x100)] - public static float3 operator / (float3 lhs, float3 rhs) { return new float3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } - [MethodImpl(0x100)] - public static float3 operator / (float3 lhs, float rhs) { return new float3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } - [MethodImpl(0x100)] - public static float3 operator / (float lhs, float3 rhs) { return new float3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } - - // smaller - [MethodImpl(0x100)] - public static bool3 operator < (float3 lhs, float3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator < (float3 lhs, float rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } - [MethodImpl(0x100)] - public static bool3 operator < (float lhs, float3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator <= (float3 lhs, float3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator <= (float3 lhs, float rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } - [MethodImpl(0x100)] - public static bool3 operator <= (float lhs, float3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } - - // greater - [MethodImpl(0x100)] - public static bool3 operator > (float3 lhs, float3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator > (float3 lhs, float rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } - [MethodImpl(0x100)] - public static bool3 operator > (float lhs, float3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator >= (float3 lhs, float3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator >= (float3 lhs, float rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } - [MethodImpl(0x100)] - public static bool3 operator >= (float lhs, float3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } - - // neg - [MethodImpl(0x100)] - public static float3 operator - (float3 val) { return new float3 (-val.x, -val.y, -val.z); } - // plus - [MethodImpl(0x100)] - public static float3 operator + (float3 val) { return new float3 (+val.x, +val.y, +val.z); } - // equal - [MethodImpl(0x100)] - public static bool3 operator == (float3 lhs, float3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator == (float3 lhs, float rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - [MethodImpl(0x100)] - public static bool3 operator == (float lhs, float3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } - - // not equal - [MethodImpl(0x100)] - public static bool3 operator != (float3 lhs, float3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator != (float3 lhs, float rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - [MethodImpl(0x100)] - public static bool3 operator != (float lhs, float3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } - - // Equals - [MethodImpl(0x100)] - public bool Equals(float3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } - - // [int index] - unsafe public float this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (float3* array = &this) { return ((float*)array) [index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (float3* array = &this) { ((float*)array)[index] = value; } - } - } - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxx - { - [MethodImpl(0x100)] - get { return new float4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxy - { - [MethodImpl(0x100)] - get { return new float4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxz - { - [MethodImpl(0x100)] - get { return new float4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyx - { - [MethodImpl(0x100)] - get { return new float4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyy - { - [MethodImpl(0x100)] - get { return new float4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyz - { - [MethodImpl(0x100)] - get { return new float4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzx - { - [MethodImpl(0x100)] - get { return new float4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzy - { - [MethodImpl(0x100)] - get { return new float4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzz - { - [MethodImpl(0x100)] - get { return new float4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxx - { - [MethodImpl(0x100)] - get { return new float4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxy - { - [MethodImpl(0x100)] - get { return new float4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxz - { - [MethodImpl(0x100)] - get { return new float4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyx - { - [MethodImpl(0x100)] - get { return new float4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyy - { - [MethodImpl(0x100)] - get { return new float4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyz - { - [MethodImpl(0x100)] - get { return new float4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzx - { - [MethodImpl(0x100)] - get { return new float4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzy - { - [MethodImpl(0x100)] - get { return new float4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzz - { - [MethodImpl(0x100)] - get { return new float4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxx - { - [MethodImpl(0x100)] - get { return new float4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxy - { - [MethodImpl(0x100)] - get { return new float4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxz - { - [MethodImpl(0x100)] - get { return new float4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyx - { - [MethodImpl(0x100)] - get { return new float4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyy - { - [MethodImpl(0x100)] - get { return new float4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyz - { - [MethodImpl(0x100)] - get { return new float4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzx - { - [MethodImpl(0x100)] - get { return new float4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzy - { - [MethodImpl(0x100)] - get { return new float4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzz - { - [MethodImpl(0x100)] - get { return new float4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxx - { - [MethodImpl(0x100)] - get { return new float4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxy - { - [MethodImpl(0x100)] - get { return new float4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxz - { - [MethodImpl(0x100)] - get { return new float4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyx - { - [MethodImpl(0x100)] - get { return new float4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyy - { - [MethodImpl(0x100)] - get { return new float4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyz - { - [MethodImpl(0x100)] - get { return new float4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzx - { - [MethodImpl(0x100)] - get { return new float4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzy - { - [MethodImpl(0x100)] - get { return new float4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzz - { - [MethodImpl(0x100)] - get { return new float4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxx - { - [MethodImpl(0x100)] - get { return new float4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxy - { - [MethodImpl(0x100)] - get { return new float4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxz - { - [MethodImpl(0x100)] - get { return new float4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyx - { - [MethodImpl(0x100)] - get { return new float4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyy - { - [MethodImpl(0x100)] - get { return new float4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyz - { - [MethodImpl(0x100)] - get { return new float4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzx - { - [MethodImpl(0x100)] - get { return new float4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzy - { - [MethodImpl(0x100)] - get { return new float4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzz - { - [MethodImpl(0x100)] - get { return new float4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxx - { - [MethodImpl(0x100)] - get { return new float4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxy - { - [MethodImpl(0x100)] - get { return new float4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxz - { - [MethodImpl(0x100)] - get { return new float4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyx - { - [MethodImpl(0x100)] - get { return new float4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyy - { - [MethodImpl(0x100)] - get { return new float4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyz - { - [MethodImpl(0x100)] - get { return new float4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzx - { - [MethodImpl(0x100)] - get { return new float4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzy - { - [MethodImpl(0x100)] - get { return new float4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzz - { - [MethodImpl(0x100)] - get { return new float4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxx - { - [MethodImpl(0x100)] - get { return new float4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxy - { - [MethodImpl(0x100)] - get { return new float4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxz - { - [MethodImpl(0x100)] - get { return new float4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyx - { - [MethodImpl(0x100)] - get { return new float4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyy - { - [MethodImpl(0x100)] - get { return new float4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyz - { - [MethodImpl(0x100)] - get { return new float4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzx - { - [MethodImpl(0x100)] - get { return new float4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzy - { - [MethodImpl(0x100)] - get { return new float4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzz - { - [MethodImpl(0x100)] - get { return new float4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxx - { - [MethodImpl(0x100)] - get { return new float4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxy - { - [MethodImpl(0x100)] - get { return new float4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxz - { - [MethodImpl(0x100)] - get { return new float4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyx - { - [MethodImpl(0x100)] - get { return new float4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyy - { - [MethodImpl(0x100)] - get { return new float4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyz - { - [MethodImpl(0x100)] - get { return new float4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzx - { - [MethodImpl(0x100)] - get { return new float4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzy - { - [MethodImpl(0x100)] - get { return new float4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzz - { - [MethodImpl(0x100)] - get { return new float4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxx - { - [MethodImpl(0x100)] - get { return new float4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxy - { - [MethodImpl(0x100)] - get { return new float4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxz - { - [MethodImpl(0x100)] - get { return new float4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyx - { - [MethodImpl(0x100)] - get { return new float4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyy - { - [MethodImpl(0x100)] - get { return new float4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyz - { - [MethodImpl(0x100)] - get { return new float4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzx - { - [MethodImpl(0x100)] - get { return new float4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzy - { - [MethodImpl(0x100)] - get { return new float4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzz - { - [MethodImpl(0x100)] - get { return new float4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxx - { - [MethodImpl(0x100)] - get { return new float3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxy - { - [MethodImpl(0x100)] - get { return new float3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxz - { - [MethodImpl(0x100)] - get { return new float3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyx - { - [MethodImpl(0x100)] - get { return new float3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyy - { - [MethodImpl(0x100)] - get { return new float3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyz - { - [MethodImpl(0x100)] - get { return new float3(x, y, z); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzx - { - [MethodImpl(0x100)] - get { return new float3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzy - { - [MethodImpl(0x100)] - get { return new float3(x, z, y); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzz - { - [MethodImpl(0x100)] - get { return new float3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxx - { - [MethodImpl(0x100)] - get { return new float3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxy - { - [MethodImpl(0x100)] - get { return new float3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxz - { - [MethodImpl(0x100)] - get { return new float3(y, x, z); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyx - { - [MethodImpl(0x100)] - get { return new float3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyy - { - [MethodImpl(0x100)] - get { return new float3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyz - { - [MethodImpl(0x100)] - get { return new float3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzx - { - [MethodImpl(0x100)] - get { return new float3(y, z, x); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzy - { - [MethodImpl(0x100)] - get { return new float3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzz - { - [MethodImpl(0x100)] - get { return new float3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxx - { - [MethodImpl(0x100)] - get { return new float3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxy - { - [MethodImpl(0x100)] - get { return new float3(z, x, y); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxz - { - [MethodImpl(0x100)] - get { return new float3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyx - { - [MethodImpl(0x100)] - get { return new float3(z, y, x); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyy - { - [MethodImpl(0x100)] - get { return new float3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyz - { - [MethodImpl(0x100)] - get { return new float3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzx - { - [MethodImpl(0x100)] - get { return new float3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzy - { - [MethodImpl(0x100)] - get { return new float3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzz - { - [MethodImpl(0x100)] - get { return new float3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xx - { - [MethodImpl(0x100)] - get { return new float2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xy - { - [MethodImpl(0x100)] - get { return new float2(x, y); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xz - { - [MethodImpl(0x100)] - get { return new float2(x, z); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yx - { - [MethodImpl(0x100)] - get { return new float2(y, x); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yy - { - [MethodImpl(0x100)] - get { return new float2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yz - { - [MethodImpl(0x100)] - get { return new float2(y, z); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zx - { - [MethodImpl(0x100)] - get { return new float2(z, x); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zy - { - [MethodImpl(0x100)] - get { return new float2(z, y); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zz - { - [MethodImpl(0x100)] - get { return new float2(z, z); } - } - - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct float3 : System.IEquatable + { + + // mul + [MethodImpl(0x100)] + public static float3 operator * (float3 lhs, float3 rhs) { return new float3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } + [MethodImpl(0x100)] + public static float3 operator * (float3 lhs, float rhs) { return new float3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } + [MethodImpl(0x100)] + public static float3 operator * (float lhs, float3 rhs) { return new float3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } + + // add + [MethodImpl(0x100)] + public static float3 operator + (float3 lhs, float3 rhs) { return new float3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } + [MethodImpl(0x100)] + public static float3 operator + (float3 lhs, float rhs) { return new float3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } + [MethodImpl(0x100)] + public static float3 operator + (float lhs, float3 rhs) { return new float3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } + + // sub + [MethodImpl(0x100)] + public static float3 operator - (float3 lhs, float3 rhs) { return new float3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } + [MethodImpl(0x100)] + public static float3 operator - (float3 lhs, float rhs) { return new float3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } + [MethodImpl(0x100)] + public static float3 operator - (float lhs, float3 rhs) { return new float3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } + + // div + [MethodImpl(0x100)] + public static float3 operator / (float3 lhs, float3 rhs) { return new float3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } + [MethodImpl(0x100)] + public static float3 operator / (float3 lhs, float rhs) { return new float3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } + [MethodImpl(0x100)] + public static float3 operator / (float lhs, float3 rhs) { return new float3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } + + // smaller + [MethodImpl(0x100)] + public static bool3 operator < (float3 lhs, float3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator < (float3 lhs, float rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } + [MethodImpl(0x100)] + public static bool3 operator < (float lhs, float3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator <= (float3 lhs, float3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator <= (float3 lhs, float rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } + [MethodImpl(0x100)] + public static bool3 operator <= (float lhs, float3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } + + // greater + [MethodImpl(0x100)] + public static bool3 operator > (float3 lhs, float3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator > (float3 lhs, float rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } + [MethodImpl(0x100)] + public static bool3 operator > (float lhs, float3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator >= (float3 lhs, float3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator >= (float3 lhs, float rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } + [MethodImpl(0x100)] + public static bool3 operator >= (float lhs, float3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } + + // neg + [MethodImpl(0x100)] + public static float3 operator - (float3 val) { return new float3 (-val.x, -val.y, -val.z); } + // plus + [MethodImpl(0x100)] + public static float3 operator + (float3 val) { return new float3 (+val.x, +val.y, +val.z); } + // equal + [MethodImpl(0x100)] + public static bool3 operator == (float3 lhs, float3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator == (float3 lhs, float rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } + [MethodImpl(0x100)] + public static bool3 operator == (float lhs, float3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } + + // not equal + [MethodImpl(0x100)] + public static bool3 operator != (float3 lhs, float3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator != (float3 lhs, float rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } + [MethodImpl(0x100)] + public static bool3 operator != (float lhs, float3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } + + // Equals + [MethodImpl(0x100)] + public bool Equals(float3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } + + // [int index] + unsafe public float this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (float3* array = &this) { return ((float*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (float* array = &x) { array[index] = value; } + } + } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxx + { + [MethodImpl(0x100)] + get { return new float4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxy + { + [MethodImpl(0x100)] + get { return new float4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxz + { + [MethodImpl(0x100)] + get { return new float4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyx + { + [MethodImpl(0x100)] + get { return new float4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyy + { + [MethodImpl(0x100)] + get { return new float4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyz + { + [MethodImpl(0x100)] + get { return new float4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxzx + { + [MethodImpl(0x100)] + get { return new float4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxzy + { + [MethodImpl(0x100)] + get { return new float4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxzz + { + [MethodImpl(0x100)] + get { return new float4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxx + { + [MethodImpl(0x100)] + get { return new float4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxy + { + [MethodImpl(0x100)] + get { return new float4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxz + { + [MethodImpl(0x100)] + get { return new float4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyx + { + [MethodImpl(0x100)] + get { return new float4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyy + { + [MethodImpl(0x100)] + get { return new float4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyz + { + [MethodImpl(0x100)] + get { return new float4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyzx + { + [MethodImpl(0x100)] + get { return new float4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyzy + { + [MethodImpl(0x100)] + get { return new float4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyzz + { + [MethodImpl(0x100)] + get { return new float4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzxx + { + [MethodImpl(0x100)] + get { return new float4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzxy + { + [MethodImpl(0x100)] + get { return new float4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzxz + { + [MethodImpl(0x100)] + get { return new float4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzyx + { + [MethodImpl(0x100)] + get { return new float4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzyy + { + [MethodImpl(0x100)] + get { return new float4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzyz + { + [MethodImpl(0x100)] + get { return new float4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzzx + { + [MethodImpl(0x100)] + get { return new float4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzzy + { + [MethodImpl(0x100)] + get { return new float4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzzz + { + [MethodImpl(0x100)] + get { return new float4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxx + { + [MethodImpl(0x100)] + get { return new float4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxy + { + [MethodImpl(0x100)] + get { return new float4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxz + { + [MethodImpl(0x100)] + get { return new float4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyx + { + [MethodImpl(0x100)] + get { return new float4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyy + { + [MethodImpl(0x100)] + get { return new float4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyz + { + [MethodImpl(0x100)] + get { return new float4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxzx + { + [MethodImpl(0x100)] + get { return new float4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxzy + { + [MethodImpl(0x100)] + get { return new float4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxzz + { + [MethodImpl(0x100)] + get { return new float4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxx + { + [MethodImpl(0x100)] + get { return new float4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxy + { + [MethodImpl(0x100)] + get { return new float4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxz + { + [MethodImpl(0x100)] + get { return new float4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyx + { + [MethodImpl(0x100)] + get { return new float4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyy + { + [MethodImpl(0x100)] + get { return new float4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyz + { + [MethodImpl(0x100)] + get { return new float4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyzx + { + [MethodImpl(0x100)] + get { return new float4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyzy + { + [MethodImpl(0x100)] + get { return new float4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyzz + { + [MethodImpl(0x100)] + get { return new float4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzxx + { + [MethodImpl(0x100)] + get { return new float4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzxy + { + [MethodImpl(0x100)] + get { return new float4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzxz + { + [MethodImpl(0x100)] + get { return new float4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzyx + { + [MethodImpl(0x100)] + get { return new float4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzyy + { + [MethodImpl(0x100)] + get { return new float4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzyz + { + [MethodImpl(0x100)] + get { return new float4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzzx + { + [MethodImpl(0x100)] + get { return new float4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzzy + { + [MethodImpl(0x100)] + get { return new float4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzzz + { + [MethodImpl(0x100)] + get { return new float4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxxx + { + [MethodImpl(0x100)] + get { return new float4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxxy + { + [MethodImpl(0x100)] + get { return new float4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxxz + { + [MethodImpl(0x100)] + get { return new float4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxyx + { + [MethodImpl(0x100)] + get { return new float4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxyy + { + [MethodImpl(0x100)] + get { return new float4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxyz + { + [MethodImpl(0x100)] + get { return new float4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxzx + { + [MethodImpl(0x100)] + get { return new float4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxzy + { + [MethodImpl(0x100)] + get { return new float4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxzz + { + [MethodImpl(0x100)] + get { return new float4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyxx + { + [MethodImpl(0x100)] + get { return new float4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyxy + { + [MethodImpl(0x100)] + get { return new float4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyxz + { + [MethodImpl(0x100)] + get { return new float4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyyx + { + [MethodImpl(0x100)] + get { return new float4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyyy + { + [MethodImpl(0x100)] + get { return new float4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyyz + { + [MethodImpl(0x100)] + get { return new float4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyzx + { + [MethodImpl(0x100)] + get { return new float4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyzy + { + [MethodImpl(0x100)] + get { return new float4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyzz + { + [MethodImpl(0x100)] + get { return new float4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzxx + { + [MethodImpl(0x100)] + get { return new float4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzxy + { + [MethodImpl(0x100)] + get { return new float4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzxz + { + [MethodImpl(0x100)] + get { return new float4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzyx + { + [MethodImpl(0x100)] + get { return new float4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzyy + { + [MethodImpl(0x100)] + get { return new float4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzyz + { + [MethodImpl(0x100)] + get { return new float4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzzx + { + [MethodImpl(0x100)] + get { return new float4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzzy + { + [MethodImpl(0x100)] + get { return new float4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzzz + { + [MethodImpl(0x100)] + get { return new float4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxx + { + [MethodImpl(0x100)] + get { return new float3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxy + { + [MethodImpl(0x100)] + get { return new float3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxz + { + [MethodImpl(0x100)] + get { return new float3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyx + { + [MethodImpl(0x100)] + get { return new float3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyy + { + [MethodImpl(0x100)] + get { return new float3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyz + { + [MethodImpl(0x100)] + get { return new float3(x, y, z); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xzx + { + [MethodImpl(0x100)] + get { return new float3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xzy + { + [MethodImpl(0x100)] + get { return new float3(x, z, y); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xzz + { + [MethodImpl(0x100)] + get { return new float3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxx + { + [MethodImpl(0x100)] + get { return new float3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxy + { + [MethodImpl(0x100)] + get { return new float3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxz + { + [MethodImpl(0x100)] + get { return new float3(y, x, z); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyx + { + [MethodImpl(0x100)] + get { return new float3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyy + { + [MethodImpl(0x100)] + get { return new float3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyz + { + [MethodImpl(0x100)] + get { return new float3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yzx + { + [MethodImpl(0x100)] + get { return new float3(y, z, x); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yzy + { + [MethodImpl(0x100)] + get { return new float3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yzz + { + [MethodImpl(0x100)] + get { return new float3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zxx + { + [MethodImpl(0x100)] + get { return new float3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zxy + { + [MethodImpl(0x100)] + get { return new float3(z, x, y); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zxz + { + [MethodImpl(0x100)] + get { return new float3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zyx + { + [MethodImpl(0x100)] + get { return new float3(z, y, x); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zyy + { + [MethodImpl(0x100)] + get { return new float3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zyz + { + [MethodImpl(0x100)] + get { return new float3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zzx + { + [MethodImpl(0x100)] + get { return new float3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zzy + { + [MethodImpl(0x100)] + get { return new float3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zzz + { + [MethodImpl(0x100)] + get { return new float3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xx + { + [MethodImpl(0x100)] + get { return new float2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xy + { + [MethodImpl(0x100)] + get { return new float2(x, y); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xz + { + [MethodImpl(0x100)] + get { return new float2(x, z); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yx + { + [MethodImpl(0x100)] + get { return new float2(y, x); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yy + { + [MethodImpl(0x100)] + get { return new float2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yz + { + [MethodImpl(0x100)] + get { return new float2(y, z); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 zx + { + [MethodImpl(0x100)] + get { return new float2(z, x); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 zy + { + [MethodImpl(0x100)] + get { return new float2(z, y); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 zz + { + [MethodImpl(0x100)] + get { return new float2(z, z); } + } + + + } +} diff --git a/src/Unity.Mathematics/float4.cs b/src/Unity.Mathematics/float4.cs index 47c042e4..f26d8dbf 100644 --- a/src/Unity.Mathematics/float4.cs +++ b/src/Unity.Mathematics/float4.cs @@ -1,4 +1,5 @@ -using System; +using System; +using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Diagnostics; @@ -40,6 +41,8 @@ public float4(float x, float y, float z, float w) this.w = w; } + + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public float4(float val) { x = y = z = w = val; } diff --git a/src/Unity.Mathematics/float4.gen.cs b/src/Unity.Mathematics/float4.gen.cs index 52056f1b..9c6142fc 100644 --- a/src/Unity.Mathematics/float4.gen.cs +++ b/src/Unity.Mathematics/float4.gen.cs @@ -1,2924 +1,2924 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct float4 : System.IEquatable - { - - // mul - [MethodImpl(0x100)] - public static float4 operator * (float4 lhs, float4 rhs) { return new float4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } - [MethodImpl(0x100)] - public static float4 operator * (float4 lhs, float rhs) { return new float4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } - [MethodImpl(0x100)] - public static float4 operator * (float lhs, float4 rhs) { return new float4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } - - // add - [MethodImpl(0x100)] - public static float4 operator + (float4 lhs, float4 rhs) { return new float4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } - [MethodImpl(0x100)] - public static float4 operator + (float4 lhs, float rhs) { return new float4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } - [MethodImpl(0x100)] - public static float4 operator + (float lhs, float4 rhs) { return new float4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } - - // sub - [MethodImpl(0x100)] - public static float4 operator - (float4 lhs, float4 rhs) { return new float4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } - [MethodImpl(0x100)] - public static float4 operator - (float4 lhs, float rhs) { return new float4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } - [MethodImpl(0x100)] - public static float4 operator - (float lhs, float4 rhs) { return new float4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } - - // div - [MethodImpl(0x100)] - public static float4 operator / (float4 lhs, float4 rhs) { return new float4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } - [MethodImpl(0x100)] - public static float4 operator / (float4 lhs, float rhs) { return new float4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } - [MethodImpl(0x100)] - public static float4 operator / (float lhs, float4 rhs) { return new float4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } - - // smaller - [MethodImpl(0x100)] - public static bool4 operator < (float4 lhs, float4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator < (float4 lhs, float rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } - [MethodImpl(0x100)] - public static bool4 operator < (float lhs, float4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator <= (float4 lhs, float4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator <= (float4 lhs, float rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } - [MethodImpl(0x100)] - public static bool4 operator <= (float lhs, float4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } - - // greater - [MethodImpl(0x100)] - public static bool4 operator > (float4 lhs, float4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator > (float4 lhs, float rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } - [MethodImpl(0x100)] - public static bool4 operator > (float lhs, float4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator >= (float4 lhs, float4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator >= (float4 lhs, float rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } - [MethodImpl(0x100)] - public static bool4 operator >= (float lhs, float4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } - - // neg - [MethodImpl(0x100)] - public static float4 operator - (float4 val) { return new float4 (-val.x, -val.y, -val.z, -val.w); } - // plus - [MethodImpl(0x100)] - public static float4 operator + (float4 val) { return new float4 (+val.x, +val.y, +val.z, +val.w); } - // equal - [MethodImpl(0x100)] - public static bool4 operator == (float4 lhs, float4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator == (float4 lhs, float rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - [MethodImpl(0x100)] - public static bool4 operator == (float lhs, float4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } - - // not equal - [MethodImpl(0x100)] - public static bool4 operator != (float4 lhs, float4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator != (float4 lhs, float rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - [MethodImpl(0x100)] - public static bool4 operator != (float lhs, float4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } - - // Equals - [MethodImpl(0x100)] - public bool Equals(float4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } - - // [int index] - unsafe public float this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (float4* array = &this) { return ((float*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (float4* array = &this) { ((float*)array)[index] = value; } - } - } - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxx - { - [MethodImpl(0x100)] - get { return new float4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxy - { - [MethodImpl(0x100)] - get { return new float4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxz - { - [MethodImpl(0x100)] - get { return new float4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxw - { - [MethodImpl(0x100)] - get { return new float4(x, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyx - { - [MethodImpl(0x100)] - get { return new float4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyy - { - [MethodImpl(0x100)] - get { return new float4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyz - { - [MethodImpl(0x100)] - get { return new float4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyw - { - [MethodImpl(0x100)] - get { return new float4(x, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzx - { - [MethodImpl(0x100)] - get { return new float4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzy - { - [MethodImpl(0x100)] - get { return new float4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzz - { - [MethodImpl(0x100)] - get { return new float4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzw - { - [MethodImpl(0x100)] - get { return new float4(x, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxwx - { - [MethodImpl(0x100)] - get { return new float4(x, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxwy - { - [MethodImpl(0x100)] - get { return new float4(x, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxwz - { - [MethodImpl(0x100)] - get { return new float4(x, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxww - { - [MethodImpl(0x100)] - get { return new float4(x, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxx - { - [MethodImpl(0x100)] - get { return new float4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxy - { - [MethodImpl(0x100)] - get { return new float4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxz - { - [MethodImpl(0x100)] - get { return new float4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxw - { - [MethodImpl(0x100)] - get { return new float4(x, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyx - { - [MethodImpl(0x100)] - get { return new float4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyy - { - [MethodImpl(0x100)] - get { return new float4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyz - { - [MethodImpl(0x100)] - get { return new float4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyw - { - [MethodImpl(0x100)] - get { return new float4(x, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzx - { - [MethodImpl(0x100)] - get { return new float4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzy - { - [MethodImpl(0x100)] - get { return new float4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzz - { - [MethodImpl(0x100)] - get { return new float4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzw - { - [MethodImpl(0x100)] - get { return new float4(x, y, z, w); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xywx - { - [MethodImpl(0x100)] - get { return new float4(x, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xywy - { - [MethodImpl(0x100)] - get { return new float4(x, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xywz - { - [MethodImpl(0x100)] - get { return new float4(x, y, w, z); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyww - { - [MethodImpl(0x100)] - get { return new float4(x, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxx - { - [MethodImpl(0x100)] - get { return new float4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxy - { - [MethodImpl(0x100)] - get { return new float4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxz - { - [MethodImpl(0x100)] - get { return new float4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxw - { - [MethodImpl(0x100)] - get { return new float4(x, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyx - { - [MethodImpl(0x100)] - get { return new float4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyy - { - [MethodImpl(0x100)] - get { return new float4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyz - { - [MethodImpl(0x100)] - get { return new float4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyw - { - [MethodImpl(0x100)] - get { return new float4(x, z, y, w); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzx - { - [MethodImpl(0x100)] - get { return new float4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzy - { - [MethodImpl(0x100)] - get { return new float4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzz - { - [MethodImpl(0x100)] - get { return new float4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzw - { - [MethodImpl(0x100)] - get { return new float4(x, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzwx - { - [MethodImpl(0x100)] - get { return new float4(x, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzwy - { - [MethodImpl(0x100)] - get { return new float4(x, z, w, y); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzwz - { - [MethodImpl(0x100)] - get { return new float4(x, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzww - { - [MethodImpl(0x100)] - get { return new float4(x, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwxx - { - [MethodImpl(0x100)] - get { return new float4(x, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwxy - { - [MethodImpl(0x100)] - get { return new float4(x, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwxz - { - [MethodImpl(0x100)] - get { return new float4(x, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwxw - { - [MethodImpl(0x100)] - get { return new float4(x, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwyx - { - [MethodImpl(0x100)] - get { return new float4(x, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwyy - { - [MethodImpl(0x100)] - get { return new float4(x, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwyz - { - [MethodImpl(0x100)] - get { return new float4(x, w, y, z); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwyw - { - [MethodImpl(0x100)] - get { return new float4(x, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwzx - { - [MethodImpl(0x100)] - get { return new float4(x, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwzy - { - [MethodImpl(0x100)] - get { return new float4(x, w, z, y); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwzz - { - [MethodImpl(0x100)] - get { return new float4(x, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwzw - { - [MethodImpl(0x100)] - get { return new float4(x, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwwx - { - [MethodImpl(0x100)] - get { return new float4(x, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwwy - { - [MethodImpl(0x100)] - get { return new float4(x, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwwz - { - [MethodImpl(0x100)] - get { return new float4(x, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwww - { - [MethodImpl(0x100)] - get { return new float4(x, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxx - { - [MethodImpl(0x100)] - get { return new float4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxy - { - [MethodImpl(0x100)] - get { return new float4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxz - { - [MethodImpl(0x100)] - get { return new float4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxw - { - [MethodImpl(0x100)] - get { return new float4(y, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyx - { - [MethodImpl(0x100)] - get { return new float4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyy - { - [MethodImpl(0x100)] - get { return new float4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyz - { - [MethodImpl(0x100)] - get { return new float4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyw - { - [MethodImpl(0x100)] - get { return new float4(y, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzx - { - [MethodImpl(0x100)] - get { return new float4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzy - { - [MethodImpl(0x100)] - get { return new float4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzz - { - [MethodImpl(0x100)] - get { return new float4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzw - { - [MethodImpl(0x100)] - get { return new float4(y, x, z, w); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxwx - { - [MethodImpl(0x100)] - get { return new float4(y, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxwy - { - [MethodImpl(0x100)] - get { return new float4(y, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxwz - { - [MethodImpl(0x100)] - get { return new float4(y, x, w, z); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxww - { - [MethodImpl(0x100)] - get { return new float4(y, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxx - { - [MethodImpl(0x100)] - get { return new float4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxy - { - [MethodImpl(0x100)] - get { return new float4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxz - { - [MethodImpl(0x100)] - get { return new float4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxw - { - [MethodImpl(0x100)] - get { return new float4(y, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyx - { - [MethodImpl(0x100)] - get { return new float4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyy - { - [MethodImpl(0x100)] - get { return new float4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyz - { - [MethodImpl(0x100)] - get { return new float4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyw - { - [MethodImpl(0x100)] - get { return new float4(y, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzx - { - [MethodImpl(0x100)] - get { return new float4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzy - { - [MethodImpl(0x100)] - get { return new float4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzz - { - [MethodImpl(0x100)] - get { return new float4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzw - { - [MethodImpl(0x100)] - get { return new float4(y, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yywx - { - [MethodImpl(0x100)] - get { return new float4(y, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yywy - { - [MethodImpl(0x100)] - get { return new float4(y, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yywz - { - [MethodImpl(0x100)] - get { return new float4(y, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyww - { - [MethodImpl(0x100)] - get { return new float4(y, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxx - { - [MethodImpl(0x100)] - get { return new float4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxy - { - [MethodImpl(0x100)] - get { return new float4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxz - { - [MethodImpl(0x100)] - get { return new float4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxw - { - [MethodImpl(0x100)] - get { return new float4(y, z, x, w); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyx - { - [MethodImpl(0x100)] - get { return new float4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyy - { - [MethodImpl(0x100)] - get { return new float4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyz - { - [MethodImpl(0x100)] - get { return new float4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyw - { - [MethodImpl(0x100)] - get { return new float4(y, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzx - { - [MethodImpl(0x100)] - get { return new float4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzy - { - [MethodImpl(0x100)] - get { return new float4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzz - { - [MethodImpl(0x100)] - get { return new float4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzw - { - [MethodImpl(0x100)] - get { return new float4(y, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzwx - { - [MethodImpl(0x100)] - get { return new float4(y, z, w, x); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzwy - { - [MethodImpl(0x100)] - get { return new float4(y, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzwz - { - [MethodImpl(0x100)] - get { return new float4(y, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzww - { - [MethodImpl(0x100)] - get { return new float4(y, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywxx - { - [MethodImpl(0x100)] - get { return new float4(y, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywxy - { - [MethodImpl(0x100)] - get { return new float4(y, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywxz - { - [MethodImpl(0x100)] - get { return new float4(y, w, x, z); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywxw - { - [MethodImpl(0x100)] - get { return new float4(y, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywyx - { - [MethodImpl(0x100)] - get { return new float4(y, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywyy - { - [MethodImpl(0x100)] - get { return new float4(y, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywyz - { - [MethodImpl(0x100)] - get { return new float4(y, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywyw - { - [MethodImpl(0x100)] - get { return new float4(y, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywzx - { - [MethodImpl(0x100)] - get { return new float4(y, w, z, x); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywzy - { - [MethodImpl(0x100)] - get { return new float4(y, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywzz - { - [MethodImpl(0x100)] - get { return new float4(y, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywzw - { - [MethodImpl(0x100)] - get { return new float4(y, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywwx - { - [MethodImpl(0x100)] - get { return new float4(y, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywwy - { - [MethodImpl(0x100)] - get { return new float4(y, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywwz - { - [MethodImpl(0x100)] - get { return new float4(y, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywww - { - [MethodImpl(0x100)] - get { return new float4(y, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxx - { - [MethodImpl(0x100)] - get { return new float4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxy - { - [MethodImpl(0x100)] - get { return new float4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxz - { - [MethodImpl(0x100)] - get { return new float4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxw - { - [MethodImpl(0x100)] - get { return new float4(z, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyx - { - [MethodImpl(0x100)] - get { return new float4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyy - { - [MethodImpl(0x100)] - get { return new float4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyz - { - [MethodImpl(0x100)] - get { return new float4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyw - { - [MethodImpl(0x100)] - get { return new float4(z, x, y, w); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzx - { - [MethodImpl(0x100)] - get { return new float4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzy - { - [MethodImpl(0x100)] - get { return new float4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzz - { - [MethodImpl(0x100)] - get { return new float4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzw - { - [MethodImpl(0x100)] - get { return new float4(z, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxwx - { - [MethodImpl(0x100)] - get { return new float4(z, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxwy - { - [MethodImpl(0x100)] - get { return new float4(z, x, w, y); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxwz - { - [MethodImpl(0x100)] - get { return new float4(z, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxww - { - [MethodImpl(0x100)] - get { return new float4(z, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxx - { - [MethodImpl(0x100)] - get { return new float4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxy - { - [MethodImpl(0x100)] - get { return new float4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxz - { - [MethodImpl(0x100)] - get { return new float4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxw - { - [MethodImpl(0x100)] - get { return new float4(z, y, x, w); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyx - { - [MethodImpl(0x100)] - get { return new float4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyy - { - [MethodImpl(0x100)] - get { return new float4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyz - { - [MethodImpl(0x100)] - get { return new float4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyw - { - [MethodImpl(0x100)] - get { return new float4(z, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzx - { - [MethodImpl(0x100)] - get { return new float4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzy - { - [MethodImpl(0x100)] - get { return new float4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzz - { - [MethodImpl(0x100)] - get { return new float4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzw - { - [MethodImpl(0x100)] - get { return new float4(z, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zywx - { - [MethodImpl(0x100)] - get { return new float4(z, y, w, x); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zywy - { - [MethodImpl(0x100)] - get { return new float4(z, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zywz - { - [MethodImpl(0x100)] - get { return new float4(z, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyww - { - [MethodImpl(0x100)] - get { return new float4(z, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxx - { - [MethodImpl(0x100)] - get { return new float4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxy - { - [MethodImpl(0x100)] - get { return new float4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxz - { - [MethodImpl(0x100)] - get { return new float4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxw - { - [MethodImpl(0x100)] - get { return new float4(z, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyx - { - [MethodImpl(0x100)] - get { return new float4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyy - { - [MethodImpl(0x100)] - get { return new float4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyz - { - [MethodImpl(0x100)] - get { return new float4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyw - { - [MethodImpl(0x100)] - get { return new float4(z, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzx - { - [MethodImpl(0x100)] - get { return new float4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzy - { - [MethodImpl(0x100)] - get { return new float4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzz - { - [MethodImpl(0x100)] - get { return new float4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzw - { - [MethodImpl(0x100)] - get { return new float4(z, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzwx - { - [MethodImpl(0x100)] - get { return new float4(z, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzwy - { - [MethodImpl(0x100)] - get { return new float4(z, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzwz - { - [MethodImpl(0x100)] - get { return new float4(z, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzww - { - [MethodImpl(0x100)] - get { return new float4(z, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwxx - { - [MethodImpl(0x100)] - get { return new float4(z, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwxy - { - [MethodImpl(0x100)] - get { return new float4(z, w, x, y); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwxz - { - [MethodImpl(0x100)] - get { return new float4(z, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwxw - { - [MethodImpl(0x100)] - get { return new float4(z, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwyx - { - [MethodImpl(0x100)] - get { return new float4(z, w, y, x); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwyy - { - [MethodImpl(0x100)] - get { return new float4(z, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwyz - { - [MethodImpl(0x100)] - get { return new float4(z, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwyw - { - [MethodImpl(0x100)] - get { return new float4(z, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwzx - { - [MethodImpl(0x100)] - get { return new float4(z, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwzy - { - [MethodImpl(0x100)] - get { return new float4(z, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwzz - { - [MethodImpl(0x100)] - get { return new float4(z, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwzw - { - [MethodImpl(0x100)] - get { return new float4(z, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwwx - { - [MethodImpl(0x100)] - get { return new float4(z, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwwy - { - [MethodImpl(0x100)] - get { return new float4(z, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwwz - { - [MethodImpl(0x100)] - get { return new float4(z, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwww - { - [MethodImpl(0x100)] - get { return new float4(z, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxxx - { - [MethodImpl(0x100)] - get { return new float4(w, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxxy - { - [MethodImpl(0x100)] - get { return new float4(w, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxxz - { - [MethodImpl(0x100)] - get { return new float4(w, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxxw - { - [MethodImpl(0x100)] - get { return new float4(w, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxyx - { - [MethodImpl(0x100)] - get { return new float4(w, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxyy - { - [MethodImpl(0x100)] - get { return new float4(w, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxyz - { - [MethodImpl(0x100)] - get { return new float4(w, x, y, z); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxyw - { - [MethodImpl(0x100)] - get { return new float4(w, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxzx - { - [MethodImpl(0x100)] - get { return new float4(w, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxzy - { - [MethodImpl(0x100)] - get { return new float4(w, x, z, y); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxzz - { - [MethodImpl(0x100)] - get { return new float4(w, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxzw - { - [MethodImpl(0x100)] - get { return new float4(w, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxwx - { - [MethodImpl(0x100)] - get { return new float4(w, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxwy - { - [MethodImpl(0x100)] - get { return new float4(w, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxwz - { - [MethodImpl(0x100)] - get { return new float4(w, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxww - { - [MethodImpl(0x100)] - get { return new float4(w, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyxx - { - [MethodImpl(0x100)] - get { return new float4(w, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyxy - { - [MethodImpl(0x100)] - get { return new float4(w, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyxz - { - [MethodImpl(0x100)] - get { return new float4(w, y, x, z); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyxw - { - [MethodImpl(0x100)] - get { return new float4(w, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyyx - { - [MethodImpl(0x100)] - get { return new float4(w, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyyy - { - [MethodImpl(0x100)] - get { return new float4(w, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyyz - { - [MethodImpl(0x100)] - get { return new float4(w, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyyw - { - [MethodImpl(0x100)] - get { return new float4(w, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyzx - { - [MethodImpl(0x100)] - get { return new float4(w, y, z, x); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyzy - { - [MethodImpl(0x100)] - get { return new float4(w, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyzz - { - [MethodImpl(0x100)] - get { return new float4(w, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyzw - { - [MethodImpl(0x100)] - get { return new float4(w, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wywx - { - [MethodImpl(0x100)] - get { return new float4(w, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wywy - { - [MethodImpl(0x100)] - get { return new float4(w, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wywz - { - [MethodImpl(0x100)] - get { return new float4(w, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyww - { - [MethodImpl(0x100)] - get { return new float4(w, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzxx - { - [MethodImpl(0x100)] - get { return new float4(w, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzxy - { - [MethodImpl(0x100)] - get { return new float4(w, z, x, y); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzxz - { - [MethodImpl(0x100)] - get { return new float4(w, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzxw - { - [MethodImpl(0x100)] - get { return new float4(w, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzyx - { - [MethodImpl(0x100)] - get { return new float4(w, z, y, x); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzyy - { - [MethodImpl(0x100)] - get { return new float4(w, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzyz - { - [MethodImpl(0x100)] - get { return new float4(w, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzyw - { - [MethodImpl(0x100)] - get { return new float4(w, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzzx - { - [MethodImpl(0x100)] - get { return new float4(w, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzzy - { - [MethodImpl(0x100)] - get { return new float4(w, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzzz - { - [MethodImpl(0x100)] - get { return new float4(w, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzzw - { - [MethodImpl(0x100)] - get { return new float4(w, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzwx - { - [MethodImpl(0x100)] - get { return new float4(w, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzwy - { - [MethodImpl(0x100)] - get { return new float4(w, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzwz - { - [MethodImpl(0x100)] - get { return new float4(w, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzww - { - [MethodImpl(0x100)] - get { return new float4(w, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwxx - { - [MethodImpl(0x100)] - get { return new float4(w, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwxy - { - [MethodImpl(0x100)] - get { return new float4(w, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwxz - { - [MethodImpl(0x100)] - get { return new float4(w, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwxw - { - [MethodImpl(0x100)] - get { return new float4(w, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwyx - { - [MethodImpl(0x100)] - get { return new float4(w, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwyy - { - [MethodImpl(0x100)] - get { return new float4(w, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwyz - { - [MethodImpl(0x100)] - get { return new float4(w, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwyw - { - [MethodImpl(0x100)] - get { return new float4(w, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwzx - { - [MethodImpl(0x100)] - get { return new float4(w, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwzy - { - [MethodImpl(0x100)] - get { return new float4(w, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwzz - { - [MethodImpl(0x100)] - get { return new float4(w, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwzw - { - [MethodImpl(0x100)] - get { return new float4(w, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwwx - { - [MethodImpl(0x100)] - get { return new float4(w, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwwy - { - [MethodImpl(0x100)] - get { return new float4(w, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwwz - { - [MethodImpl(0x100)] - get { return new float4(w, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwww - { - [MethodImpl(0x100)] - get { return new float4(w, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxx - { - [MethodImpl(0x100)] - get { return new float3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxy - { - [MethodImpl(0x100)] - get { return new float3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxz - { - [MethodImpl(0x100)] - get { return new float3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxw - { - [MethodImpl(0x100)] - get { return new float3(x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyx - { - [MethodImpl(0x100)] - get { return new float3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyy - { - [MethodImpl(0x100)] - get { return new float3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyz - { - [MethodImpl(0x100)] - get { return new float3(x, y, z); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyw - { - [MethodImpl(0x100)] - get { return new float3(x, y, w); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzx - { - [MethodImpl(0x100)] - get { return new float3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzy - { - [MethodImpl(0x100)] - get { return new float3(x, z, y); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzz - { - [MethodImpl(0x100)] - get { return new float3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzw - { - [MethodImpl(0x100)] - get { return new float3(x, z, w); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xwx - { - [MethodImpl(0x100)] - get { return new float3(x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xwy - { - [MethodImpl(0x100)] - get { return new float3(x, w, y); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xwz - { - [MethodImpl(0x100)] - get { return new float3(x, w, z); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xww - { - [MethodImpl(0x100)] - get { return new float3(x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxx - { - [MethodImpl(0x100)] - get { return new float3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxy - { - [MethodImpl(0x100)] - get { return new float3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxz - { - [MethodImpl(0x100)] - get { return new float3(y, x, z); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxw - { - [MethodImpl(0x100)] - get { return new float3(y, x, w); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyx - { - [MethodImpl(0x100)] - get { return new float3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyy - { - [MethodImpl(0x100)] - get { return new float3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyz - { - [MethodImpl(0x100)] - get { return new float3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyw - { - [MethodImpl(0x100)] - get { return new float3(y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzx - { - [MethodImpl(0x100)] - get { return new float3(y, z, x); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzy - { - [MethodImpl(0x100)] - get { return new float3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzz - { - [MethodImpl(0x100)] - get { return new float3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzw - { - [MethodImpl(0x100)] - get { return new float3(y, z, w); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 ywx - { - [MethodImpl(0x100)] - get { return new float3(y, w, x); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 ywy - { - [MethodImpl(0x100)] - get { return new float3(y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 ywz - { - [MethodImpl(0x100)] - get { return new float3(y, w, z); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yww - { - [MethodImpl(0x100)] - get { return new float3(y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxx - { - [MethodImpl(0x100)] - get { return new float3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxy - { - [MethodImpl(0x100)] - get { return new float3(z, x, y); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxz - { - [MethodImpl(0x100)] - get { return new float3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxw - { - [MethodImpl(0x100)] - get { return new float3(z, x, w); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyx - { - [MethodImpl(0x100)] - get { return new float3(z, y, x); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyy - { - [MethodImpl(0x100)] - get { return new float3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyz - { - [MethodImpl(0x100)] - get { return new float3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyw - { - [MethodImpl(0x100)] - get { return new float3(z, y, w); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzx - { - [MethodImpl(0x100)] - get { return new float3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzy - { - [MethodImpl(0x100)] - get { return new float3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzz - { - [MethodImpl(0x100)] - get { return new float3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzw - { - [MethodImpl(0x100)] - get { return new float3(z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zwx - { - [MethodImpl(0x100)] - get { return new float3(z, w, x); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zwy - { - [MethodImpl(0x100)] - get { return new float3(z, w, y); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zwz - { - [MethodImpl(0x100)] - get { return new float3(z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zww - { - [MethodImpl(0x100)] - get { return new float3(z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wxx - { - [MethodImpl(0x100)] - get { return new float3(w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wxy - { - [MethodImpl(0x100)] - get { return new float3(w, x, y); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wxz - { - [MethodImpl(0x100)] - get { return new float3(w, x, z); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wxw - { - [MethodImpl(0x100)] - get { return new float3(w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wyx - { - [MethodImpl(0x100)] - get { return new float3(w, y, x); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wyy - { - [MethodImpl(0x100)] - get { return new float3(w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wyz - { - [MethodImpl(0x100)] - get { return new float3(w, y, z); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wyw - { - [MethodImpl(0x100)] - get { return new float3(w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wzx - { - [MethodImpl(0x100)] - get { return new float3(w, z, x); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wzy - { - [MethodImpl(0x100)] - get { return new float3(w, z, y); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wzz - { - [MethodImpl(0x100)] - get { return new float3(w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wzw - { - [MethodImpl(0x100)] - get { return new float3(w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wwx - { - [MethodImpl(0x100)] - get { return new float3(w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wwy - { - [MethodImpl(0x100)] - get { return new float3(w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wwz - { - [MethodImpl(0x100)] - get { return new float3(w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 www - { - [MethodImpl(0x100)] - get { return new float3(w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xx - { - [MethodImpl(0x100)] - get { return new float2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xy - { - [MethodImpl(0x100)] - get { return new float2(x, y); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xz - { - [MethodImpl(0x100)] - get { return new float2(x, z); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xw - { - [MethodImpl(0x100)] - get { return new float2(x, w); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yx - { - [MethodImpl(0x100)] - get { return new float2(y, x); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yy - { - [MethodImpl(0x100)] - get { return new float2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yz - { - [MethodImpl(0x100)] - get { return new float2(y, z); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yw - { - [MethodImpl(0x100)] - get { return new float2(y, w); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zx - { - [MethodImpl(0x100)] - get { return new float2(z, x); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zy - { - [MethodImpl(0x100)] - get { return new float2(z, y); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zz - { - [MethodImpl(0x100)] - get { return new float2(z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zw - { - [MethodImpl(0x100)] - get { return new float2(z, w); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 wx - { - [MethodImpl(0x100)] - get { return new float2(w, x); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 wy - { - [MethodImpl(0x100)] - get { return new float2(w, y); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 wz - { - [MethodImpl(0x100)] - get { return new float2(w, z); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 ww - { - [MethodImpl(0x100)] - get { return new float2(w, w); } - } - - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct float4 : System.IEquatable + { + + // mul + [MethodImpl(0x100)] + public static float4 operator * (float4 lhs, float4 rhs) { return new float4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } + [MethodImpl(0x100)] + public static float4 operator * (float4 lhs, float rhs) { return new float4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } + [MethodImpl(0x100)] + public static float4 operator * (float lhs, float4 rhs) { return new float4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } + + // add + [MethodImpl(0x100)] + public static float4 operator + (float4 lhs, float4 rhs) { return new float4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } + [MethodImpl(0x100)] + public static float4 operator + (float4 lhs, float rhs) { return new float4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } + [MethodImpl(0x100)] + public static float4 operator + (float lhs, float4 rhs) { return new float4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } + + // sub + [MethodImpl(0x100)] + public static float4 operator - (float4 lhs, float4 rhs) { return new float4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } + [MethodImpl(0x100)] + public static float4 operator - (float4 lhs, float rhs) { return new float4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } + [MethodImpl(0x100)] + public static float4 operator - (float lhs, float4 rhs) { return new float4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } + + // div + [MethodImpl(0x100)] + public static float4 operator / (float4 lhs, float4 rhs) { return new float4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } + [MethodImpl(0x100)] + public static float4 operator / (float4 lhs, float rhs) { return new float4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } + [MethodImpl(0x100)] + public static float4 operator / (float lhs, float4 rhs) { return new float4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } + + // smaller + [MethodImpl(0x100)] + public static bool4 operator < (float4 lhs, float4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator < (float4 lhs, float rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } + [MethodImpl(0x100)] + public static bool4 operator < (float lhs, float4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator <= (float4 lhs, float4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator <= (float4 lhs, float rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } + [MethodImpl(0x100)] + public static bool4 operator <= (float lhs, float4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } + + // greater + [MethodImpl(0x100)] + public static bool4 operator > (float4 lhs, float4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator > (float4 lhs, float rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } + [MethodImpl(0x100)] + public static bool4 operator > (float lhs, float4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator >= (float4 lhs, float4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator >= (float4 lhs, float rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } + [MethodImpl(0x100)] + public static bool4 operator >= (float lhs, float4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } + + // neg + [MethodImpl(0x100)] + public static float4 operator - (float4 val) { return new float4 (-val.x, -val.y, -val.z, -val.w); } + // plus + [MethodImpl(0x100)] + public static float4 operator + (float4 val) { return new float4 (+val.x, +val.y, +val.z, +val.w); } + // equal + [MethodImpl(0x100)] + public static bool4 operator == (float4 lhs, float4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator == (float4 lhs, float rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } + [MethodImpl(0x100)] + public static bool4 operator == (float lhs, float4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } + + // not equal + [MethodImpl(0x100)] + public static bool4 operator != (float4 lhs, float4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator != (float4 lhs, float rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } + [MethodImpl(0x100)] + public static bool4 operator != (float lhs, float4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } + + // Equals + [MethodImpl(0x100)] + public bool Equals(float4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } + + // [int index] + unsafe public float this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (float4* array = &this) { return ((float*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (float* array = &x) { array[index] = value; } + } + } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxx + { + [MethodImpl(0x100)] + get { return new float4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxy + { + [MethodImpl(0x100)] + get { return new float4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxz + { + [MethodImpl(0x100)] + get { return new float4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxw + { + [MethodImpl(0x100)] + get { return new float4(x, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyx + { + [MethodImpl(0x100)] + get { return new float4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyy + { + [MethodImpl(0x100)] + get { return new float4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyz + { + [MethodImpl(0x100)] + get { return new float4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyw + { + [MethodImpl(0x100)] + get { return new float4(x, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxzx + { + [MethodImpl(0x100)] + get { return new float4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxzy + { + [MethodImpl(0x100)] + get { return new float4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxzz + { + [MethodImpl(0x100)] + get { return new float4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxzw + { + [MethodImpl(0x100)] + get { return new float4(x, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxwx + { + [MethodImpl(0x100)] + get { return new float4(x, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxwy + { + [MethodImpl(0x100)] + get { return new float4(x, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxwz + { + [MethodImpl(0x100)] + get { return new float4(x, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxww + { + [MethodImpl(0x100)] + get { return new float4(x, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxx + { + [MethodImpl(0x100)] + get { return new float4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxy + { + [MethodImpl(0x100)] + get { return new float4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxz + { + [MethodImpl(0x100)] + get { return new float4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxw + { + [MethodImpl(0x100)] + get { return new float4(x, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyx + { + [MethodImpl(0x100)] + get { return new float4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyy + { + [MethodImpl(0x100)] + get { return new float4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyz + { + [MethodImpl(0x100)] + get { return new float4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyw + { + [MethodImpl(0x100)] + get { return new float4(x, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyzx + { + [MethodImpl(0x100)] + get { return new float4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyzy + { + [MethodImpl(0x100)] + get { return new float4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyzz + { + [MethodImpl(0x100)] + get { return new float4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyzw + { + [MethodImpl(0x100)] + get { return new float4(x, y, z, w); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xywx + { + [MethodImpl(0x100)] + get { return new float4(x, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xywy + { + [MethodImpl(0x100)] + get { return new float4(x, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xywz + { + [MethodImpl(0x100)] + get { return new float4(x, y, w, z); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyww + { + [MethodImpl(0x100)] + get { return new float4(x, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzxx + { + [MethodImpl(0x100)] + get { return new float4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzxy + { + [MethodImpl(0x100)] + get { return new float4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzxz + { + [MethodImpl(0x100)] + get { return new float4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzxw + { + [MethodImpl(0x100)] + get { return new float4(x, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzyx + { + [MethodImpl(0x100)] + get { return new float4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzyy + { + [MethodImpl(0x100)] + get { return new float4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzyz + { + [MethodImpl(0x100)] + get { return new float4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzyw + { + [MethodImpl(0x100)] + get { return new float4(x, z, y, w); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzzx + { + [MethodImpl(0x100)] + get { return new float4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzzy + { + [MethodImpl(0x100)] + get { return new float4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzzz + { + [MethodImpl(0x100)] + get { return new float4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzzw + { + [MethodImpl(0x100)] + get { return new float4(x, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzwx + { + [MethodImpl(0x100)] + get { return new float4(x, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzwy + { + [MethodImpl(0x100)] + get { return new float4(x, z, w, y); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzwz + { + [MethodImpl(0x100)] + get { return new float4(x, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzww + { + [MethodImpl(0x100)] + get { return new float4(x, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwxx + { + [MethodImpl(0x100)] + get { return new float4(x, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwxy + { + [MethodImpl(0x100)] + get { return new float4(x, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwxz + { + [MethodImpl(0x100)] + get { return new float4(x, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwxw + { + [MethodImpl(0x100)] + get { return new float4(x, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwyx + { + [MethodImpl(0x100)] + get { return new float4(x, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwyy + { + [MethodImpl(0x100)] + get { return new float4(x, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwyz + { + [MethodImpl(0x100)] + get { return new float4(x, w, y, z); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwyw + { + [MethodImpl(0x100)] + get { return new float4(x, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwzx + { + [MethodImpl(0x100)] + get { return new float4(x, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwzy + { + [MethodImpl(0x100)] + get { return new float4(x, w, z, y); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwzz + { + [MethodImpl(0x100)] + get { return new float4(x, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwzw + { + [MethodImpl(0x100)] + get { return new float4(x, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwwx + { + [MethodImpl(0x100)] + get { return new float4(x, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwwy + { + [MethodImpl(0x100)] + get { return new float4(x, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwwz + { + [MethodImpl(0x100)] + get { return new float4(x, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwww + { + [MethodImpl(0x100)] + get { return new float4(x, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxx + { + [MethodImpl(0x100)] + get { return new float4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxy + { + [MethodImpl(0x100)] + get { return new float4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxz + { + [MethodImpl(0x100)] + get { return new float4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxw + { + [MethodImpl(0x100)] + get { return new float4(y, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyx + { + [MethodImpl(0x100)] + get { return new float4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyy + { + [MethodImpl(0x100)] + get { return new float4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyz + { + [MethodImpl(0x100)] + get { return new float4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyw + { + [MethodImpl(0x100)] + get { return new float4(y, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxzx + { + [MethodImpl(0x100)] + get { return new float4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxzy + { + [MethodImpl(0x100)] + get { return new float4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxzz + { + [MethodImpl(0x100)] + get { return new float4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxzw + { + [MethodImpl(0x100)] + get { return new float4(y, x, z, w); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxwx + { + [MethodImpl(0x100)] + get { return new float4(y, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxwy + { + [MethodImpl(0x100)] + get { return new float4(y, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxwz + { + [MethodImpl(0x100)] + get { return new float4(y, x, w, z); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxww + { + [MethodImpl(0x100)] + get { return new float4(y, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxx + { + [MethodImpl(0x100)] + get { return new float4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxy + { + [MethodImpl(0x100)] + get { return new float4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxz + { + [MethodImpl(0x100)] + get { return new float4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxw + { + [MethodImpl(0x100)] + get { return new float4(y, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyx + { + [MethodImpl(0x100)] + get { return new float4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyy + { + [MethodImpl(0x100)] + get { return new float4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyz + { + [MethodImpl(0x100)] + get { return new float4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyw + { + [MethodImpl(0x100)] + get { return new float4(y, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyzx + { + [MethodImpl(0x100)] + get { return new float4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyzy + { + [MethodImpl(0x100)] + get { return new float4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyzz + { + [MethodImpl(0x100)] + get { return new float4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyzw + { + [MethodImpl(0x100)] + get { return new float4(y, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yywx + { + [MethodImpl(0x100)] + get { return new float4(y, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yywy + { + [MethodImpl(0x100)] + get { return new float4(y, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yywz + { + [MethodImpl(0x100)] + get { return new float4(y, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyww + { + [MethodImpl(0x100)] + get { return new float4(y, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzxx + { + [MethodImpl(0x100)] + get { return new float4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzxy + { + [MethodImpl(0x100)] + get { return new float4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzxz + { + [MethodImpl(0x100)] + get { return new float4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzxw + { + [MethodImpl(0x100)] + get { return new float4(y, z, x, w); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzyx + { + [MethodImpl(0x100)] + get { return new float4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzyy + { + [MethodImpl(0x100)] + get { return new float4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzyz + { + [MethodImpl(0x100)] + get { return new float4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzyw + { + [MethodImpl(0x100)] + get { return new float4(y, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzzx + { + [MethodImpl(0x100)] + get { return new float4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzzy + { + [MethodImpl(0x100)] + get { return new float4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzzz + { + [MethodImpl(0x100)] + get { return new float4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzzw + { + [MethodImpl(0x100)] + get { return new float4(y, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzwx + { + [MethodImpl(0x100)] + get { return new float4(y, z, w, x); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzwy + { + [MethodImpl(0x100)] + get { return new float4(y, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzwz + { + [MethodImpl(0x100)] + get { return new float4(y, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzww + { + [MethodImpl(0x100)] + get { return new float4(y, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywxx + { + [MethodImpl(0x100)] + get { return new float4(y, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywxy + { + [MethodImpl(0x100)] + get { return new float4(y, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywxz + { + [MethodImpl(0x100)] + get { return new float4(y, w, x, z); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywxw + { + [MethodImpl(0x100)] + get { return new float4(y, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywyx + { + [MethodImpl(0x100)] + get { return new float4(y, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywyy + { + [MethodImpl(0x100)] + get { return new float4(y, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywyz + { + [MethodImpl(0x100)] + get { return new float4(y, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywyw + { + [MethodImpl(0x100)] + get { return new float4(y, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywzx + { + [MethodImpl(0x100)] + get { return new float4(y, w, z, x); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywzy + { + [MethodImpl(0x100)] + get { return new float4(y, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywzz + { + [MethodImpl(0x100)] + get { return new float4(y, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywzw + { + [MethodImpl(0x100)] + get { return new float4(y, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywwx + { + [MethodImpl(0x100)] + get { return new float4(y, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywwy + { + [MethodImpl(0x100)] + get { return new float4(y, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywwz + { + [MethodImpl(0x100)] + get { return new float4(y, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywww + { + [MethodImpl(0x100)] + get { return new float4(y, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxxx + { + [MethodImpl(0x100)] + get { return new float4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxxy + { + [MethodImpl(0x100)] + get { return new float4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxxz + { + [MethodImpl(0x100)] + get { return new float4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxxw + { + [MethodImpl(0x100)] + get { return new float4(z, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxyx + { + [MethodImpl(0x100)] + get { return new float4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxyy + { + [MethodImpl(0x100)] + get { return new float4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxyz + { + [MethodImpl(0x100)] + get { return new float4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxyw + { + [MethodImpl(0x100)] + get { return new float4(z, x, y, w); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxzx + { + [MethodImpl(0x100)] + get { return new float4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxzy + { + [MethodImpl(0x100)] + get { return new float4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxzz + { + [MethodImpl(0x100)] + get { return new float4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxzw + { + [MethodImpl(0x100)] + get { return new float4(z, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxwx + { + [MethodImpl(0x100)] + get { return new float4(z, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxwy + { + [MethodImpl(0x100)] + get { return new float4(z, x, w, y); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxwz + { + [MethodImpl(0x100)] + get { return new float4(z, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxww + { + [MethodImpl(0x100)] + get { return new float4(z, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyxx + { + [MethodImpl(0x100)] + get { return new float4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyxy + { + [MethodImpl(0x100)] + get { return new float4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyxz + { + [MethodImpl(0x100)] + get { return new float4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyxw + { + [MethodImpl(0x100)] + get { return new float4(z, y, x, w); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyyx + { + [MethodImpl(0x100)] + get { return new float4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyyy + { + [MethodImpl(0x100)] + get { return new float4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyyz + { + [MethodImpl(0x100)] + get { return new float4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyyw + { + [MethodImpl(0x100)] + get { return new float4(z, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyzx + { + [MethodImpl(0x100)] + get { return new float4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyzy + { + [MethodImpl(0x100)] + get { return new float4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyzz + { + [MethodImpl(0x100)] + get { return new float4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyzw + { + [MethodImpl(0x100)] + get { return new float4(z, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zywx + { + [MethodImpl(0x100)] + get { return new float4(z, y, w, x); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zywy + { + [MethodImpl(0x100)] + get { return new float4(z, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zywz + { + [MethodImpl(0x100)] + get { return new float4(z, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyww + { + [MethodImpl(0x100)] + get { return new float4(z, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzxx + { + [MethodImpl(0x100)] + get { return new float4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzxy + { + [MethodImpl(0x100)] + get { return new float4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzxz + { + [MethodImpl(0x100)] + get { return new float4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzxw + { + [MethodImpl(0x100)] + get { return new float4(z, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzyx + { + [MethodImpl(0x100)] + get { return new float4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzyy + { + [MethodImpl(0x100)] + get { return new float4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzyz + { + [MethodImpl(0x100)] + get { return new float4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzyw + { + [MethodImpl(0x100)] + get { return new float4(z, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzzx + { + [MethodImpl(0x100)] + get { return new float4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzzy + { + [MethodImpl(0x100)] + get { return new float4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzzz + { + [MethodImpl(0x100)] + get { return new float4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzzw + { + [MethodImpl(0x100)] + get { return new float4(z, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzwx + { + [MethodImpl(0x100)] + get { return new float4(z, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzwy + { + [MethodImpl(0x100)] + get { return new float4(z, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzwz + { + [MethodImpl(0x100)] + get { return new float4(z, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzww + { + [MethodImpl(0x100)] + get { return new float4(z, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwxx + { + [MethodImpl(0x100)] + get { return new float4(z, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwxy + { + [MethodImpl(0x100)] + get { return new float4(z, w, x, y); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwxz + { + [MethodImpl(0x100)] + get { return new float4(z, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwxw + { + [MethodImpl(0x100)] + get { return new float4(z, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwyx + { + [MethodImpl(0x100)] + get { return new float4(z, w, y, x); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwyy + { + [MethodImpl(0x100)] + get { return new float4(z, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwyz + { + [MethodImpl(0x100)] + get { return new float4(z, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwyw + { + [MethodImpl(0x100)] + get { return new float4(z, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwzx + { + [MethodImpl(0x100)] + get { return new float4(z, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwzy + { + [MethodImpl(0x100)] + get { return new float4(z, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwzz + { + [MethodImpl(0x100)] + get { return new float4(z, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwzw + { + [MethodImpl(0x100)] + get { return new float4(z, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwwx + { + [MethodImpl(0x100)] + get { return new float4(z, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwwy + { + [MethodImpl(0x100)] + get { return new float4(z, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwwz + { + [MethodImpl(0x100)] + get { return new float4(z, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwww + { + [MethodImpl(0x100)] + get { return new float4(z, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxxx + { + [MethodImpl(0x100)] + get { return new float4(w, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxxy + { + [MethodImpl(0x100)] + get { return new float4(w, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxxz + { + [MethodImpl(0x100)] + get { return new float4(w, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxxw + { + [MethodImpl(0x100)] + get { return new float4(w, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxyx + { + [MethodImpl(0x100)] + get { return new float4(w, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxyy + { + [MethodImpl(0x100)] + get { return new float4(w, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxyz + { + [MethodImpl(0x100)] + get { return new float4(w, x, y, z); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxyw + { + [MethodImpl(0x100)] + get { return new float4(w, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxzx + { + [MethodImpl(0x100)] + get { return new float4(w, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxzy + { + [MethodImpl(0x100)] + get { return new float4(w, x, z, y); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxzz + { + [MethodImpl(0x100)] + get { return new float4(w, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxzw + { + [MethodImpl(0x100)] + get { return new float4(w, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxwx + { + [MethodImpl(0x100)] + get { return new float4(w, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxwy + { + [MethodImpl(0x100)] + get { return new float4(w, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxwz + { + [MethodImpl(0x100)] + get { return new float4(w, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxww + { + [MethodImpl(0x100)] + get { return new float4(w, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyxx + { + [MethodImpl(0x100)] + get { return new float4(w, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyxy + { + [MethodImpl(0x100)] + get { return new float4(w, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyxz + { + [MethodImpl(0x100)] + get { return new float4(w, y, x, z); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyxw + { + [MethodImpl(0x100)] + get { return new float4(w, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyyx + { + [MethodImpl(0x100)] + get { return new float4(w, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyyy + { + [MethodImpl(0x100)] + get { return new float4(w, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyyz + { + [MethodImpl(0x100)] + get { return new float4(w, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyyw + { + [MethodImpl(0x100)] + get { return new float4(w, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyzx + { + [MethodImpl(0x100)] + get { return new float4(w, y, z, x); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyzy + { + [MethodImpl(0x100)] + get { return new float4(w, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyzz + { + [MethodImpl(0x100)] + get { return new float4(w, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyzw + { + [MethodImpl(0x100)] + get { return new float4(w, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wywx + { + [MethodImpl(0x100)] + get { return new float4(w, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wywy + { + [MethodImpl(0x100)] + get { return new float4(w, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wywz + { + [MethodImpl(0x100)] + get { return new float4(w, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyww + { + [MethodImpl(0x100)] + get { return new float4(w, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzxx + { + [MethodImpl(0x100)] + get { return new float4(w, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzxy + { + [MethodImpl(0x100)] + get { return new float4(w, z, x, y); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzxz + { + [MethodImpl(0x100)] + get { return new float4(w, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzxw + { + [MethodImpl(0x100)] + get { return new float4(w, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzyx + { + [MethodImpl(0x100)] + get { return new float4(w, z, y, x); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzyy + { + [MethodImpl(0x100)] + get { return new float4(w, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzyz + { + [MethodImpl(0x100)] + get { return new float4(w, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzyw + { + [MethodImpl(0x100)] + get { return new float4(w, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzzx + { + [MethodImpl(0x100)] + get { return new float4(w, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzzy + { + [MethodImpl(0x100)] + get { return new float4(w, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzzz + { + [MethodImpl(0x100)] + get { return new float4(w, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzzw + { + [MethodImpl(0x100)] + get { return new float4(w, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzwx + { + [MethodImpl(0x100)] + get { return new float4(w, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzwy + { + [MethodImpl(0x100)] + get { return new float4(w, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzwz + { + [MethodImpl(0x100)] + get { return new float4(w, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzww + { + [MethodImpl(0x100)] + get { return new float4(w, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwxx + { + [MethodImpl(0x100)] + get { return new float4(w, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwxy + { + [MethodImpl(0x100)] + get { return new float4(w, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwxz + { + [MethodImpl(0x100)] + get { return new float4(w, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwxw + { + [MethodImpl(0x100)] + get { return new float4(w, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwyx + { + [MethodImpl(0x100)] + get { return new float4(w, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwyy + { + [MethodImpl(0x100)] + get { return new float4(w, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwyz + { + [MethodImpl(0x100)] + get { return new float4(w, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwyw + { + [MethodImpl(0x100)] + get { return new float4(w, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwzx + { + [MethodImpl(0x100)] + get { return new float4(w, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwzy + { + [MethodImpl(0x100)] + get { return new float4(w, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwzz + { + [MethodImpl(0x100)] + get { return new float4(w, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwzw + { + [MethodImpl(0x100)] + get { return new float4(w, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwwx + { + [MethodImpl(0x100)] + get { return new float4(w, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwwy + { + [MethodImpl(0x100)] + get { return new float4(w, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwwz + { + [MethodImpl(0x100)] + get { return new float4(w, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwww + { + [MethodImpl(0x100)] + get { return new float4(w, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxx + { + [MethodImpl(0x100)] + get { return new float3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxy + { + [MethodImpl(0x100)] + get { return new float3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxz + { + [MethodImpl(0x100)] + get { return new float3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxw + { + [MethodImpl(0x100)] + get { return new float3(x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyx + { + [MethodImpl(0x100)] + get { return new float3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyy + { + [MethodImpl(0x100)] + get { return new float3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyz + { + [MethodImpl(0x100)] + get { return new float3(x, y, z); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyw + { + [MethodImpl(0x100)] + get { return new float3(x, y, w); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xzx + { + [MethodImpl(0x100)] + get { return new float3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xzy + { + [MethodImpl(0x100)] + get { return new float3(x, z, y); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xzz + { + [MethodImpl(0x100)] + get { return new float3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xzw + { + [MethodImpl(0x100)] + get { return new float3(x, z, w); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xwx + { + [MethodImpl(0x100)] + get { return new float3(x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xwy + { + [MethodImpl(0x100)] + get { return new float3(x, w, y); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xwz + { + [MethodImpl(0x100)] + get { return new float3(x, w, z); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xww + { + [MethodImpl(0x100)] + get { return new float3(x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxx + { + [MethodImpl(0x100)] + get { return new float3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxy + { + [MethodImpl(0x100)] + get { return new float3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxz + { + [MethodImpl(0x100)] + get { return new float3(y, x, z); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxw + { + [MethodImpl(0x100)] + get { return new float3(y, x, w); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyx + { + [MethodImpl(0x100)] + get { return new float3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyy + { + [MethodImpl(0x100)] + get { return new float3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyz + { + [MethodImpl(0x100)] + get { return new float3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyw + { + [MethodImpl(0x100)] + get { return new float3(y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yzx + { + [MethodImpl(0x100)] + get { return new float3(y, z, x); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yzy + { + [MethodImpl(0x100)] + get { return new float3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yzz + { + [MethodImpl(0x100)] + get { return new float3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yzw + { + [MethodImpl(0x100)] + get { return new float3(y, z, w); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 ywx + { + [MethodImpl(0x100)] + get { return new float3(y, w, x); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 ywy + { + [MethodImpl(0x100)] + get { return new float3(y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 ywz + { + [MethodImpl(0x100)] + get { return new float3(y, w, z); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yww + { + [MethodImpl(0x100)] + get { return new float3(y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zxx + { + [MethodImpl(0x100)] + get { return new float3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zxy + { + [MethodImpl(0x100)] + get { return new float3(z, x, y); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zxz + { + [MethodImpl(0x100)] + get { return new float3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zxw + { + [MethodImpl(0x100)] + get { return new float3(z, x, w); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zyx + { + [MethodImpl(0x100)] + get { return new float3(z, y, x); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zyy + { + [MethodImpl(0x100)] + get { return new float3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zyz + { + [MethodImpl(0x100)] + get { return new float3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zyw + { + [MethodImpl(0x100)] + get { return new float3(z, y, w); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zzx + { + [MethodImpl(0x100)] + get { return new float3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zzy + { + [MethodImpl(0x100)] + get { return new float3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zzz + { + [MethodImpl(0x100)] + get { return new float3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zzw + { + [MethodImpl(0x100)] + get { return new float3(z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zwx + { + [MethodImpl(0x100)] + get { return new float3(z, w, x); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zwy + { + [MethodImpl(0x100)] + get { return new float3(z, w, y); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zwz + { + [MethodImpl(0x100)] + get { return new float3(z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zww + { + [MethodImpl(0x100)] + get { return new float3(z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wxx + { + [MethodImpl(0x100)] + get { return new float3(w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wxy + { + [MethodImpl(0x100)] + get { return new float3(w, x, y); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wxz + { + [MethodImpl(0x100)] + get { return new float3(w, x, z); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wxw + { + [MethodImpl(0x100)] + get { return new float3(w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wyx + { + [MethodImpl(0x100)] + get { return new float3(w, y, x); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wyy + { + [MethodImpl(0x100)] + get { return new float3(w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wyz + { + [MethodImpl(0x100)] + get { return new float3(w, y, z); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wyw + { + [MethodImpl(0x100)] + get { return new float3(w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wzx + { + [MethodImpl(0x100)] + get { return new float3(w, z, x); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wzy + { + [MethodImpl(0x100)] + get { return new float3(w, z, y); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wzz + { + [MethodImpl(0x100)] + get { return new float3(w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wzw + { + [MethodImpl(0x100)] + get { return new float3(w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wwx + { + [MethodImpl(0x100)] + get { return new float3(w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wwy + { + [MethodImpl(0x100)] + get { return new float3(w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wwz + { + [MethodImpl(0x100)] + get { return new float3(w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 www + { + [MethodImpl(0x100)] + get { return new float3(w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xx + { + [MethodImpl(0x100)] + get { return new float2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xy + { + [MethodImpl(0x100)] + get { return new float2(x, y); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xz + { + [MethodImpl(0x100)] + get { return new float2(x, z); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xw + { + [MethodImpl(0x100)] + get { return new float2(x, w); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yx + { + [MethodImpl(0x100)] + get { return new float2(y, x); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yy + { + [MethodImpl(0x100)] + get { return new float2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yz + { + [MethodImpl(0x100)] + get { return new float2(y, z); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yw + { + [MethodImpl(0x100)] + get { return new float2(y, w); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 zx + { + [MethodImpl(0x100)] + get { return new float2(z, x); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 zy + { + [MethodImpl(0x100)] + get { return new float2(z, y); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 zz + { + [MethodImpl(0x100)] + get { return new float2(z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 zw + { + [MethodImpl(0x100)] + get { return new float2(z, w); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 wx + { + [MethodImpl(0x100)] + get { return new float2(w, x); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 wy + { + [MethodImpl(0x100)] + get { return new float2(w, y); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 wz + { + [MethodImpl(0x100)] + get { return new float2(w, z); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 ww + { + [MethodImpl(0x100)] + get { return new float2(w, w); } + } + + + } +} diff --git a/src/Unity.Mathematics/int2.gen.cs b/src/Unity.Mathematics/int2.gen.cs index e41b3d1a..b63f0bb1 100644 --- a/src/Unity.Mathematics/int2.gen.cs +++ b/src/Unity.Mathematics/int2.gen.cs @@ -1,379 +1,379 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct int2 : System.IEquatable - { - - // mul - [MethodImpl(0x100)] - public static int2 operator * (int2 lhs, int2 rhs) { return new int2 (lhs.x * rhs.x, lhs.y * rhs.y); } - [MethodImpl(0x100)] - public static int2 operator * (int2 lhs, int rhs) { return new int2 (lhs.x * rhs, lhs.y * rhs); } - [MethodImpl(0x100)] - public static int2 operator * (int lhs, int2 rhs) { return new int2 (lhs * rhs.x, lhs * rhs.y); } - - // add - [MethodImpl(0x100)] - public static int2 operator + (int2 lhs, int2 rhs) { return new int2 (lhs.x + rhs.x, lhs.y + rhs.y); } - [MethodImpl(0x100)] - public static int2 operator + (int2 lhs, int rhs) { return new int2 (lhs.x + rhs, lhs.y + rhs); } - [MethodImpl(0x100)] - public static int2 operator + (int lhs, int2 rhs) { return new int2 (lhs + rhs.x, lhs + rhs.y); } - - // sub - [MethodImpl(0x100)] - public static int2 operator - (int2 lhs, int2 rhs) { return new int2 (lhs.x - rhs.x, lhs.y - rhs.y); } - [MethodImpl(0x100)] - public static int2 operator - (int2 lhs, int rhs) { return new int2 (lhs.x - rhs, lhs.y - rhs); } - [MethodImpl(0x100)] - public static int2 operator - (int lhs, int2 rhs) { return new int2 (lhs - rhs.x, lhs - rhs.y); } - - // div - [MethodImpl(0x100)] - public static int2 operator / (int2 lhs, int2 rhs) { return new int2 (lhs.x / rhs.x, lhs.y / rhs.y); } - [MethodImpl(0x100)] - public static int2 operator / (int2 lhs, int rhs) { return new int2 (lhs.x / rhs, lhs.y / rhs); } - [MethodImpl(0x100)] - public static int2 operator / (int lhs, int2 rhs) { return new int2 (lhs / rhs.x, lhs / rhs.y); } - - // smaller - [MethodImpl(0x100)] - public static bool2 operator < (int2 lhs, int2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator < (int2 lhs, int rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } - [MethodImpl(0x100)] - public static bool2 operator < (int lhs, int2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator <= (int2 lhs, int2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator <= (int2 lhs, int rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } - [MethodImpl(0x100)] - public static bool2 operator <= (int lhs, int2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } - - // greater - [MethodImpl(0x100)] - public static bool2 operator > (int2 lhs, int2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator > (int2 lhs, int rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } - [MethodImpl(0x100)] - public static bool2 operator > (int lhs, int2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator >= (int2 lhs, int2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator >= (int2 lhs, int rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } - [MethodImpl(0x100)] - public static bool2 operator >= (int lhs, int2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } - - // neg - [MethodImpl(0x100)] - public static int2 operator - (int2 val) { return new int2 (-val.x, -val.y); } - // plus - [MethodImpl(0x100)] - public static int2 operator + (int2 val) { return new int2 (+val.x, +val.y); } - // left shift - [MethodImpl(0x100)] - public static int2 operator << (int2 lhs, int rhs) { return new int2 (lhs.x << rhs, lhs.y << rhs); } - - // right shift - [MethodImpl(0x100)] - public static int2 operator >> (int2 lhs, int rhs) { return new int2 (lhs.x >> rhs, lhs.y >> rhs); } - - // equal - [MethodImpl(0x100)] - public static bool2 operator == (int2 lhs, int2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator == (int2 lhs, int rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - [MethodImpl(0x100)] - public static bool2 operator == (int lhs, int2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } - - // not equal - [MethodImpl(0x100)] - public static bool2 operator != (int2 lhs, int2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator != (int2 lhs, int rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - [MethodImpl(0x100)] - public static bool2 operator != (int lhs, int2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } - - // Equals - [MethodImpl(0x100)] - public bool Equals(int2 rhs) { return x == rhs.x && y == rhs.y; } - - // [int index] - unsafe public int this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (int* array = &x) { return array[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (int* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(0x100)] - public static int2 operator & (int2 lhs, int2 rhs) { return new int2 (lhs.x & rhs.x, lhs.y & rhs.y); } - [MethodImpl(0x100)] - public static int2 operator & (int2 lhs, int rhs) { return new int2 (lhs.x & rhs, lhs.y & rhs); } - [MethodImpl(0x100)] - public static int2 operator & (int lhs, int2 rhs) { return new int2 (lhs & rhs.x, lhs & rhs.y); } - - // operator | - [MethodImpl(0x100)] - public static int2 operator | (int2 lhs, int2 rhs) { return new int2 (lhs.x | rhs.x, lhs.y | rhs.y); } - [MethodImpl(0x100)] - public static int2 operator | (int2 lhs, int rhs) { return new int2 (lhs.x | rhs, lhs.y | rhs); } - [MethodImpl(0x100)] - public static int2 operator | (int lhs, int2 rhs) { return new int2 (lhs | rhs.x, lhs | rhs.y); } - - // operator ^ - [MethodImpl(0x100)] - public static int2 operator ^ (int2 lhs, int2 rhs) { return new int2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } - [MethodImpl(0x100)] - public static int2 operator ^ (int2 lhs, int rhs) { return new int2 (lhs.x ^ rhs, lhs.y ^ rhs); } - [MethodImpl(0x100)] - public static int2 operator ^ (int lhs, int2 rhs) { return new int2 (lhs ^ rhs.x, lhs ^ rhs.y); } - - // operator ~ - [MethodImpl(0x100)] - public static int2 operator ~ (int2 val) { return new int2 (~val.x, ~val.y); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxx - { - [MethodImpl(0x100)] - get { return new int4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxy - { - [MethodImpl(0x100)] - get { return new int4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyx - { - [MethodImpl(0x100)] - get { return new int4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyy - { - [MethodImpl(0x100)] - get { return new int4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxx - { - [MethodImpl(0x100)] - get { return new int4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxy - { - [MethodImpl(0x100)] - get { return new int4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyx - { - [MethodImpl(0x100)] - get { return new int4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyy - { - [MethodImpl(0x100)] - get { return new int4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxx - { - [MethodImpl(0x100)] - get { return new int4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxy - { - [MethodImpl(0x100)] - get { return new int4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyx - { - [MethodImpl(0x100)] - get { return new int4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyy - { - [MethodImpl(0x100)] - get { return new int4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxx - { - [MethodImpl(0x100)] - get { return new int4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxy - { - [MethodImpl(0x100)] - get { return new int4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyx - { - [MethodImpl(0x100)] - get { return new int4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyy - { - [MethodImpl(0x100)] - get { return new int4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxx - { - [MethodImpl(0x100)] - get { return new int3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxy - { - [MethodImpl(0x100)] - get { return new int3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyx - { - [MethodImpl(0x100)] - get { return new int3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyy - { - [MethodImpl(0x100)] - get { return new int3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxx - { - [MethodImpl(0x100)] - get { return new int3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxy - { - [MethodImpl(0x100)] - get { return new int3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyx - { - [MethodImpl(0x100)] - get { return new int3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyy - { - [MethodImpl(0x100)] - get { return new int3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xx - { - [MethodImpl(0x100)] - get { return new int2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xy - { - [MethodImpl(0x100)] - get { return new int2(x, y); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yx - { - [MethodImpl(0x100)] - get { return new int2(y, x); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yy - { - [MethodImpl(0x100)] - get { return new int2(y, y); } - } - - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct int2 : System.IEquatable + { + + // mul + [MethodImpl(0x100)] + public static int2 operator * (int2 lhs, int2 rhs) { return new int2 (lhs.x * rhs.x, lhs.y * rhs.y); } + [MethodImpl(0x100)] + public static int2 operator * (int2 lhs, int rhs) { return new int2 (lhs.x * rhs, lhs.y * rhs); } + [MethodImpl(0x100)] + public static int2 operator * (int lhs, int2 rhs) { return new int2 (lhs * rhs.x, lhs * rhs.y); } + + // add + [MethodImpl(0x100)] + public static int2 operator + (int2 lhs, int2 rhs) { return new int2 (lhs.x + rhs.x, lhs.y + rhs.y); } + [MethodImpl(0x100)] + public static int2 operator + (int2 lhs, int rhs) { return new int2 (lhs.x + rhs, lhs.y + rhs); } + [MethodImpl(0x100)] + public static int2 operator + (int lhs, int2 rhs) { return new int2 (lhs + rhs.x, lhs + rhs.y); } + + // sub + [MethodImpl(0x100)] + public static int2 operator - (int2 lhs, int2 rhs) { return new int2 (lhs.x - rhs.x, lhs.y - rhs.y); } + [MethodImpl(0x100)] + public static int2 operator - (int2 lhs, int rhs) { return new int2 (lhs.x - rhs, lhs.y - rhs); } + [MethodImpl(0x100)] + public static int2 operator - (int lhs, int2 rhs) { return new int2 (lhs - rhs.x, lhs - rhs.y); } + + // div + [MethodImpl(0x100)] + public static int2 operator / (int2 lhs, int2 rhs) { return new int2 (lhs.x / rhs.x, lhs.y / rhs.y); } + [MethodImpl(0x100)] + public static int2 operator / (int2 lhs, int rhs) { return new int2 (lhs.x / rhs, lhs.y / rhs); } + [MethodImpl(0x100)] + public static int2 operator / (int lhs, int2 rhs) { return new int2 (lhs / rhs.x, lhs / rhs.y); } + + // smaller + [MethodImpl(0x100)] + public static bool2 operator < (int2 lhs, int2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator < (int2 lhs, int rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } + [MethodImpl(0x100)] + public static bool2 operator < (int lhs, int2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator <= (int2 lhs, int2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator <= (int2 lhs, int rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } + [MethodImpl(0x100)] + public static bool2 operator <= (int lhs, int2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } + + // greater + [MethodImpl(0x100)] + public static bool2 operator > (int2 lhs, int2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator > (int2 lhs, int rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } + [MethodImpl(0x100)] + public static bool2 operator > (int lhs, int2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator >= (int2 lhs, int2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator >= (int2 lhs, int rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } + [MethodImpl(0x100)] + public static bool2 operator >= (int lhs, int2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } + + // neg + [MethodImpl(0x100)] + public static int2 operator - (int2 val) { return new int2 (-val.x, -val.y); } + // plus + [MethodImpl(0x100)] + public static int2 operator + (int2 val) { return new int2 (+val.x, +val.y); } + // left shift + [MethodImpl(0x100)] + public static int2 operator << (int2 lhs, int rhs) { return new int2 (lhs.x << rhs, lhs.y << rhs); } + + // right shift + [MethodImpl(0x100)] + public static int2 operator >> (int2 lhs, int rhs) { return new int2 (lhs.x >> rhs, lhs.y >> rhs); } + + // equal + [MethodImpl(0x100)] + public static bool2 operator == (int2 lhs, int2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator == (int2 lhs, int rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } + [MethodImpl(0x100)] + public static bool2 operator == (int lhs, int2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } + + // not equal + [MethodImpl(0x100)] + public static bool2 operator != (int2 lhs, int2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator != (int2 lhs, int rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } + [MethodImpl(0x100)] + public static bool2 operator != (int lhs, int2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } + + // Equals + [MethodImpl(0x100)] + public bool Equals(int2 rhs) { return x == rhs.x && y == rhs.y; } + + // [int index] + unsafe public int this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (int2* array = &this) { return ((int*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (int* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(0x100)] + public static int2 operator & (int2 lhs, int2 rhs) { return new int2 (lhs.x & rhs.x, lhs.y & rhs.y); } + [MethodImpl(0x100)] + public static int2 operator & (int2 lhs, int rhs) { return new int2 (lhs.x & rhs, lhs.y & rhs); } + [MethodImpl(0x100)] + public static int2 operator & (int lhs, int2 rhs) { return new int2 (lhs & rhs.x, lhs & rhs.y); } + + // operator | + [MethodImpl(0x100)] + public static int2 operator | (int2 lhs, int2 rhs) { return new int2 (lhs.x | rhs.x, lhs.y | rhs.y); } + [MethodImpl(0x100)] + public static int2 operator | (int2 lhs, int rhs) { return new int2 (lhs.x | rhs, lhs.y | rhs); } + [MethodImpl(0x100)] + public static int2 operator | (int lhs, int2 rhs) { return new int2 (lhs | rhs.x, lhs | rhs.y); } + + // operator ^ + [MethodImpl(0x100)] + public static int2 operator ^ (int2 lhs, int2 rhs) { return new int2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } + [MethodImpl(0x100)] + public static int2 operator ^ (int2 lhs, int rhs) { return new int2 (lhs.x ^ rhs, lhs.y ^ rhs); } + [MethodImpl(0x100)] + public static int2 operator ^ (int lhs, int2 rhs) { return new int2 (lhs ^ rhs.x, lhs ^ rhs.y); } + + // operator ~ + [MethodImpl(0x100)] + public static int2 operator ~ (int2 val) { return new int2 (~val.x, ~val.y); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxx + { + [MethodImpl(0x100)] + get { return new int4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxy + { + [MethodImpl(0x100)] + get { return new int4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyx + { + [MethodImpl(0x100)] + get { return new int4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyy + { + [MethodImpl(0x100)] + get { return new int4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxx + { + [MethodImpl(0x100)] + get { return new int4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxy + { + [MethodImpl(0x100)] + get { return new int4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyx + { + [MethodImpl(0x100)] + get { return new int4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyy + { + [MethodImpl(0x100)] + get { return new int4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxx + { + [MethodImpl(0x100)] + get { return new int4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxy + { + [MethodImpl(0x100)] + get { return new int4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyx + { + [MethodImpl(0x100)] + get { return new int4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyy + { + [MethodImpl(0x100)] + get { return new int4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxx + { + [MethodImpl(0x100)] + get { return new int4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxy + { + [MethodImpl(0x100)] + get { return new int4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyx + { + [MethodImpl(0x100)] + get { return new int4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyy + { + [MethodImpl(0x100)] + get { return new int4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxx + { + [MethodImpl(0x100)] + get { return new int3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxy + { + [MethodImpl(0x100)] + get { return new int3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyx + { + [MethodImpl(0x100)] + get { return new int3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyy + { + [MethodImpl(0x100)] + get { return new int3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxx + { + [MethodImpl(0x100)] + get { return new int3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxy + { + [MethodImpl(0x100)] + get { return new int3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyx + { + [MethodImpl(0x100)] + get { return new int3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyy + { + [MethodImpl(0x100)] + get { return new int3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xx + { + [MethodImpl(0x100)] + get { return new int2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xy + { + [MethodImpl(0x100)] + get { return new int2(x, y); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yx + { + [MethodImpl(0x100)] + get { return new int2(y, x); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yy + { + [MethodImpl(0x100)] + get { return new int2(y, y); } + } + + + } +} diff --git a/src/Unity.Mathematics/int3.gen.cs b/src/Unity.Mathematics/int3.gen.cs index 1a22730b..6d6f7919 100644 --- a/src/Unity.Mathematics/int3.gen.cs +++ b/src/Unity.Mathematics/int3.gen.cs @@ -1,1111 +1,1111 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct int3 : System.IEquatable - { - - // mul - [MethodImpl(0x100)] - public static int3 operator * (int3 lhs, int3 rhs) { return new int3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } - [MethodImpl(0x100)] - public static int3 operator * (int3 lhs, int rhs) { return new int3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } - [MethodImpl(0x100)] - public static int3 operator * (int lhs, int3 rhs) { return new int3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } - - // add - [MethodImpl(0x100)] - public static int3 operator + (int3 lhs, int3 rhs) { return new int3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } - [MethodImpl(0x100)] - public static int3 operator + (int3 lhs, int rhs) { return new int3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } - [MethodImpl(0x100)] - public static int3 operator + (int lhs, int3 rhs) { return new int3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } - - // sub - [MethodImpl(0x100)] - public static int3 operator - (int3 lhs, int3 rhs) { return new int3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } - [MethodImpl(0x100)] - public static int3 operator - (int3 lhs, int rhs) { return new int3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } - [MethodImpl(0x100)] - public static int3 operator - (int lhs, int3 rhs) { return new int3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } - - // div - [MethodImpl(0x100)] - public static int3 operator / (int3 lhs, int3 rhs) { return new int3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } - [MethodImpl(0x100)] - public static int3 operator / (int3 lhs, int rhs) { return new int3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } - [MethodImpl(0x100)] - public static int3 operator / (int lhs, int3 rhs) { return new int3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } - - // smaller - [MethodImpl(0x100)] - public static bool3 operator < (int3 lhs, int3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator < (int3 lhs, int rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } - [MethodImpl(0x100)] - public static bool3 operator < (int lhs, int3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator <= (int3 lhs, int3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator <= (int3 lhs, int rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } - [MethodImpl(0x100)] - public static bool3 operator <= (int lhs, int3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } - - // greater - [MethodImpl(0x100)] - public static bool3 operator > (int3 lhs, int3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator > (int3 lhs, int rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } - [MethodImpl(0x100)] - public static bool3 operator > (int lhs, int3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator >= (int3 lhs, int3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator >= (int3 lhs, int rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } - [MethodImpl(0x100)] - public static bool3 operator >= (int lhs, int3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } - - // neg - [MethodImpl(0x100)] - public static int3 operator - (int3 val) { return new int3 (-val.x, -val.y, -val.z); } - // plus - [MethodImpl(0x100)] - public static int3 operator + (int3 val) { return new int3 (+val.x, +val.y, +val.z); } - // left shift - [MethodImpl(0x100)] - public static int3 operator << (int3 lhs, int rhs) { return new int3 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs); } - - // right shift - [MethodImpl(0x100)] - public static int3 operator >> (int3 lhs, int rhs) { return new int3 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs); } - - // equal - [MethodImpl(0x100)] - public static bool3 operator == (int3 lhs, int3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator == (int3 lhs, int rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - [MethodImpl(0x100)] - public static bool3 operator == (int lhs, int3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } - - // not equal - [MethodImpl(0x100)] - public static bool3 operator != (int3 lhs, int3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator != (int3 lhs, int rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - [MethodImpl(0x100)] - public static bool3 operator != (int lhs, int3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } - - // Equals - [MethodImpl(0x100)] - public bool Equals(int3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } - - // [int index] - unsafe public int this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (int* array = &x) { return array[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (int* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(0x100)] - public static int3 operator & (int3 lhs, int3 rhs) { return new int3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } - [MethodImpl(0x100)] - public static int3 operator & (int3 lhs, int rhs) { return new int3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } - [MethodImpl(0x100)] - public static int3 operator & (int lhs, int3 rhs) { return new int3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } - - // operator | - [MethodImpl(0x100)] - public static int3 operator | (int3 lhs, int3 rhs) { return new int3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } - [MethodImpl(0x100)] - public static int3 operator | (int3 lhs, int rhs) { return new int3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } - [MethodImpl(0x100)] - public static int3 operator | (int lhs, int3 rhs) { return new int3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } - - // operator ^ - [MethodImpl(0x100)] - public static int3 operator ^ (int3 lhs, int3 rhs) { return new int3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } - [MethodImpl(0x100)] - public static int3 operator ^ (int3 lhs, int rhs) { return new int3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } - [MethodImpl(0x100)] - public static int3 operator ^ (int lhs, int3 rhs) { return new int3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } - - // operator ~ - [MethodImpl(0x100)] - public static int3 operator ~ (int3 val) { return new int3 (~val.x, ~val.y, ~val.z); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxx - { - [MethodImpl(0x100)] - get { return new int4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxy - { - [MethodImpl(0x100)] - get { return new int4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxz - { - [MethodImpl(0x100)] - get { return new int4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyx - { - [MethodImpl(0x100)] - get { return new int4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyy - { - [MethodImpl(0x100)] - get { return new int4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyz - { - [MethodImpl(0x100)] - get { return new int4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzx - { - [MethodImpl(0x100)] - get { return new int4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzy - { - [MethodImpl(0x100)] - get { return new int4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzz - { - [MethodImpl(0x100)] - get { return new int4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxx - { - [MethodImpl(0x100)] - get { return new int4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxy - { - [MethodImpl(0x100)] - get { return new int4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxz - { - [MethodImpl(0x100)] - get { return new int4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyx - { - [MethodImpl(0x100)] - get { return new int4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyy - { - [MethodImpl(0x100)] - get { return new int4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyz - { - [MethodImpl(0x100)] - get { return new int4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzx - { - [MethodImpl(0x100)] - get { return new int4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzy - { - [MethodImpl(0x100)] - get { return new int4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzz - { - [MethodImpl(0x100)] - get { return new int4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxx - { - [MethodImpl(0x100)] - get { return new int4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxy - { - [MethodImpl(0x100)] - get { return new int4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxz - { - [MethodImpl(0x100)] - get { return new int4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyx - { - [MethodImpl(0x100)] - get { return new int4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyy - { - [MethodImpl(0x100)] - get { return new int4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyz - { - [MethodImpl(0x100)] - get { return new int4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzx - { - [MethodImpl(0x100)] - get { return new int4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzy - { - [MethodImpl(0x100)] - get { return new int4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzz - { - [MethodImpl(0x100)] - get { return new int4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxx - { - [MethodImpl(0x100)] - get { return new int4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxy - { - [MethodImpl(0x100)] - get { return new int4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxz - { - [MethodImpl(0x100)] - get { return new int4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyx - { - [MethodImpl(0x100)] - get { return new int4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyy - { - [MethodImpl(0x100)] - get { return new int4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyz - { - [MethodImpl(0x100)] - get { return new int4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzx - { - [MethodImpl(0x100)] - get { return new int4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzy - { - [MethodImpl(0x100)] - get { return new int4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzz - { - [MethodImpl(0x100)] - get { return new int4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxx - { - [MethodImpl(0x100)] - get { return new int4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxy - { - [MethodImpl(0x100)] - get { return new int4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxz - { - [MethodImpl(0x100)] - get { return new int4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyx - { - [MethodImpl(0x100)] - get { return new int4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyy - { - [MethodImpl(0x100)] - get { return new int4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyz - { - [MethodImpl(0x100)] - get { return new int4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzx - { - [MethodImpl(0x100)] - get { return new int4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzy - { - [MethodImpl(0x100)] - get { return new int4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzz - { - [MethodImpl(0x100)] - get { return new int4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxx - { - [MethodImpl(0x100)] - get { return new int4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxy - { - [MethodImpl(0x100)] - get { return new int4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxz - { - [MethodImpl(0x100)] - get { return new int4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyx - { - [MethodImpl(0x100)] - get { return new int4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyy - { - [MethodImpl(0x100)] - get { return new int4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyz - { - [MethodImpl(0x100)] - get { return new int4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzx - { - [MethodImpl(0x100)] - get { return new int4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzy - { - [MethodImpl(0x100)] - get { return new int4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzz - { - [MethodImpl(0x100)] - get { return new int4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxx - { - [MethodImpl(0x100)] - get { return new int4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxy - { - [MethodImpl(0x100)] - get { return new int4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxz - { - [MethodImpl(0x100)] - get { return new int4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyx - { - [MethodImpl(0x100)] - get { return new int4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyy - { - [MethodImpl(0x100)] - get { return new int4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyz - { - [MethodImpl(0x100)] - get { return new int4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzx - { - [MethodImpl(0x100)] - get { return new int4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzy - { - [MethodImpl(0x100)] - get { return new int4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzz - { - [MethodImpl(0x100)] - get { return new int4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxx - { - [MethodImpl(0x100)] - get { return new int4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxy - { - [MethodImpl(0x100)] - get { return new int4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxz - { - [MethodImpl(0x100)] - get { return new int4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyx - { - [MethodImpl(0x100)] - get { return new int4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyy - { - [MethodImpl(0x100)] - get { return new int4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyz - { - [MethodImpl(0x100)] - get { return new int4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzx - { - [MethodImpl(0x100)] - get { return new int4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzy - { - [MethodImpl(0x100)] - get { return new int4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzz - { - [MethodImpl(0x100)] - get { return new int4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxx - { - [MethodImpl(0x100)] - get { return new int4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxy - { - [MethodImpl(0x100)] - get { return new int4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxz - { - [MethodImpl(0x100)] - get { return new int4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyx - { - [MethodImpl(0x100)] - get { return new int4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyy - { - [MethodImpl(0x100)] - get { return new int4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyz - { - [MethodImpl(0x100)] - get { return new int4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzx - { - [MethodImpl(0x100)] - get { return new int4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzy - { - [MethodImpl(0x100)] - get { return new int4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzz - { - [MethodImpl(0x100)] - get { return new int4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxx - { - [MethodImpl(0x100)] - get { return new int3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxy - { - [MethodImpl(0x100)] - get { return new int3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxz - { - [MethodImpl(0x100)] - get { return new int3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyx - { - [MethodImpl(0x100)] - get { return new int3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyy - { - [MethodImpl(0x100)] - get { return new int3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyz - { - [MethodImpl(0x100)] - get { return new int3(x, y, z); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzx - { - [MethodImpl(0x100)] - get { return new int3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzy - { - [MethodImpl(0x100)] - get { return new int3(x, z, y); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzz - { - [MethodImpl(0x100)] - get { return new int3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxx - { - [MethodImpl(0x100)] - get { return new int3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxy - { - [MethodImpl(0x100)] - get { return new int3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxz - { - [MethodImpl(0x100)] - get { return new int3(y, x, z); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyx - { - [MethodImpl(0x100)] - get { return new int3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyy - { - [MethodImpl(0x100)] - get { return new int3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyz - { - [MethodImpl(0x100)] - get { return new int3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzx - { - [MethodImpl(0x100)] - get { return new int3(y, z, x); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzy - { - [MethodImpl(0x100)] - get { return new int3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzz - { - [MethodImpl(0x100)] - get { return new int3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxx - { - [MethodImpl(0x100)] - get { return new int3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxy - { - [MethodImpl(0x100)] - get { return new int3(z, x, y); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxz - { - [MethodImpl(0x100)] - get { return new int3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyx - { - [MethodImpl(0x100)] - get { return new int3(z, y, x); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyy - { - [MethodImpl(0x100)] - get { return new int3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyz - { - [MethodImpl(0x100)] - get { return new int3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzx - { - [MethodImpl(0x100)] - get { return new int3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzy - { - [MethodImpl(0x100)] - get { return new int3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzz - { - [MethodImpl(0x100)] - get { return new int3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xx - { - [MethodImpl(0x100)] - get { return new int2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xy - { - [MethodImpl(0x100)] - get { return new int2(x, y); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xz - { - [MethodImpl(0x100)] - get { return new int2(x, z); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yx - { - [MethodImpl(0x100)] - get { return new int2(y, x); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yy - { - [MethodImpl(0x100)] - get { return new int2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yz - { - [MethodImpl(0x100)] - get { return new int2(y, z); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zx - { - [MethodImpl(0x100)] - get { return new int2(z, x); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zy - { - [MethodImpl(0x100)] - get { return new int2(z, y); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zz - { - [MethodImpl(0x100)] - get { return new int2(z, z); } - } - - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct int3 : System.IEquatable + { + + // mul + [MethodImpl(0x100)] + public static int3 operator * (int3 lhs, int3 rhs) { return new int3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } + [MethodImpl(0x100)] + public static int3 operator * (int3 lhs, int rhs) { return new int3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } + [MethodImpl(0x100)] + public static int3 operator * (int lhs, int3 rhs) { return new int3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } + + // add + [MethodImpl(0x100)] + public static int3 operator + (int3 lhs, int3 rhs) { return new int3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } + [MethodImpl(0x100)] + public static int3 operator + (int3 lhs, int rhs) { return new int3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } + [MethodImpl(0x100)] + public static int3 operator + (int lhs, int3 rhs) { return new int3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } + + // sub + [MethodImpl(0x100)] + public static int3 operator - (int3 lhs, int3 rhs) { return new int3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } + [MethodImpl(0x100)] + public static int3 operator - (int3 lhs, int rhs) { return new int3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } + [MethodImpl(0x100)] + public static int3 operator - (int lhs, int3 rhs) { return new int3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } + + // div + [MethodImpl(0x100)] + public static int3 operator / (int3 lhs, int3 rhs) { return new int3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } + [MethodImpl(0x100)] + public static int3 operator / (int3 lhs, int rhs) { return new int3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } + [MethodImpl(0x100)] + public static int3 operator / (int lhs, int3 rhs) { return new int3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } + + // smaller + [MethodImpl(0x100)] + public static bool3 operator < (int3 lhs, int3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator < (int3 lhs, int rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } + [MethodImpl(0x100)] + public static bool3 operator < (int lhs, int3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator <= (int3 lhs, int3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator <= (int3 lhs, int rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } + [MethodImpl(0x100)] + public static bool3 operator <= (int lhs, int3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } + + // greater + [MethodImpl(0x100)] + public static bool3 operator > (int3 lhs, int3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator > (int3 lhs, int rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } + [MethodImpl(0x100)] + public static bool3 operator > (int lhs, int3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator >= (int3 lhs, int3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator >= (int3 lhs, int rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } + [MethodImpl(0x100)] + public static bool3 operator >= (int lhs, int3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } + + // neg + [MethodImpl(0x100)] + public static int3 operator - (int3 val) { return new int3 (-val.x, -val.y, -val.z); } + // plus + [MethodImpl(0x100)] + public static int3 operator + (int3 val) { return new int3 (+val.x, +val.y, +val.z); } + // left shift + [MethodImpl(0x100)] + public static int3 operator << (int3 lhs, int rhs) { return new int3 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs); } + + // right shift + [MethodImpl(0x100)] + public static int3 operator >> (int3 lhs, int rhs) { return new int3 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs); } + + // equal + [MethodImpl(0x100)] + public static bool3 operator == (int3 lhs, int3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator == (int3 lhs, int rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } + [MethodImpl(0x100)] + public static bool3 operator == (int lhs, int3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } + + // not equal + [MethodImpl(0x100)] + public static bool3 operator != (int3 lhs, int3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator != (int3 lhs, int rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } + [MethodImpl(0x100)] + public static bool3 operator != (int lhs, int3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } + + // Equals + [MethodImpl(0x100)] + public bool Equals(int3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } + + // [int index] + unsafe public int this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (int3* array = &this) { return ((int*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (int* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(0x100)] + public static int3 operator & (int3 lhs, int3 rhs) { return new int3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } + [MethodImpl(0x100)] + public static int3 operator & (int3 lhs, int rhs) { return new int3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } + [MethodImpl(0x100)] + public static int3 operator & (int lhs, int3 rhs) { return new int3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } + + // operator | + [MethodImpl(0x100)] + public static int3 operator | (int3 lhs, int3 rhs) { return new int3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } + [MethodImpl(0x100)] + public static int3 operator | (int3 lhs, int rhs) { return new int3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } + [MethodImpl(0x100)] + public static int3 operator | (int lhs, int3 rhs) { return new int3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } + + // operator ^ + [MethodImpl(0x100)] + public static int3 operator ^ (int3 lhs, int3 rhs) { return new int3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } + [MethodImpl(0x100)] + public static int3 operator ^ (int3 lhs, int rhs) { return new int3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } + [MethodImpl(0x100)] + public static int3 operator ^ (int lhs, int3 rhs) { return new int3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } + + // operator ~ + [MethodImpl(0x100)] + public static int3 operator ~ (int3 val) { return new int3 (~val.x, ~val.y, ~val.z); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxx + { + [MethodImpl(0x100)] + get { return new int4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxy + { + [MethodImpl(0x100)] + get { return new int4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxz + { + [MethodImpl(0x100)] + get { return new int4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyx + { + [MethodImpl(0x100)] + get { return new int4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyy + { + [MethodImpl(0x100)] + get { return new int4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyz + { + [MethodImpl(0x100)] + get { return new int4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxzx + { + [MethodImpl(0x100)] + get { return new int4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxzy + { + [MethodImpl(0x100)] + get { return new int4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxzz + { + [MethodImpl(0x100)] + get { return new int4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxx + { + [MethodImpl(0x100)] + get { return new int4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxy + { + [MethodImpl(0x100)] + get { return new int4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxz + { + [MethodImpl(0x100)] + get { return new int4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyx + { + [MethodImpl(0x100)] + get { return new int4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyy + { + [MethodImpl(0x100)] + get { return new int4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyz + { + [MethodImpl(0x100)] + get { return new int4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyzx + { + [MethodImpl(0x100)] + get { return new int4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyzy + { + [MethodImpl(0x100)] + get { return new int4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyzz + { + [MethodImpl(0x100)] + get { return new int4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzxx + { + [MethodImpl(0x100)] + get { return new int4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzxy + { + [MethodImpl(0x100)] + get { return new int4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzxz + { + [MethodImpl(0x100)] + get { return new int4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzyx + { + [MethodImpl(0x100)] + get { return new int4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzyy + { + [MethodImpl(0x100)] + get { return new int4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzyz + { + [MethodImpl(0x100)] + get { return new int4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzzx + { + [MethodImpl(0x100)] + get { return new int4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzzy + { + [MethodImpl(0x100)] + get { return new int4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzzz + { + [MethodImpl(0x100)] + get { return new int4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxx + { + [MethodImpl(0x100)] + get { return new int4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxy + { + [MethodImpl(0x100)] + get { return new int4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxz + { + [MethodImpl(0x100)] + get { return new int4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyx + { + [MethodImpl(0x100)] + get { return new int4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyy + { + [MethodImpl(0x100)] + get { return new int4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyz + { + [MethodImpl(0x100)] + get { return new int4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxzx + { + [MethodImpl(0x100)] + get { return new int4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxzy + { + [MethodImpl(0x100)] + get { return new int4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxzz + { + [MethodImpl(0x100)] + get { return new int4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxx + { + [MethodImpl(0x100)] + get { return new int4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxy + { + [MethodImpl(0x100)] + get { return new int4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxz + { + [MethodImpl(0x100)] + get { return new int4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyx + { + [MethodImpl(0x100)] + get { return new int4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyy + { + [MethodImpl(0x100)] + get { return new int4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyz + { + [MethodImpl(0x100)] + get { return new int4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyzx + { + [MethodImpl(0x100)] + get { return new int4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyzy + { + [MethodImpl(0x100)] + get { return new int4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyzz + { + [MethodImpl(0x100)] + get { return new int4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzxx + { + [MethodImpl(0x100)] + get { return new int4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzxy + { + [MethodImpl(0x100)] + get { return new int4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzxz + { + [MethodImpl(0x100)] + get { return new int4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzyx + { + [MethodImpl(0x100)] + get { return new int4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzyy + { + [MethodImpl(0x100)] + get { return new int4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzyz + { + [MethodImpl(0x100)] + get { return new int4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzzx + { + [MethodImpl(0x100)] + get { return new int4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzzy + { + [MethodImpl(0x100)] + get { return new int4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzzz + { + [MethodImpl(0x100)] + get { return new int4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxxx + { + [MethodImpl(0x100)] + get { return new int4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxxy + { + [MethodImpl(0x100)] + get { return new int4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxxz + { + [MethodImpl(0x100)] + get { return new int4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxyx + { + [MethodImpl(0x100)] + get { return new int4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxyy + { + [MethodImpl(0x100)] + get { return new int4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxyz + { + [MethodImpl(0x100)] + get { return new int4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxzx + { + [MethodImpl(0x100)] + get { return new int4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxzy + { + [MethodImpl(0x100)] + get { return new int4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxzz + { + [MethodImpl(0x100)] + get { return new int4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyxx + { + [MethodImpl(0x100)] + get { return new int4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyxy + { + [MethodImpl(0x100)] + get { return new int4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyxz + { + [MethodImpl(0x100)] + get { return new int4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyyx + { + [MethodImpl(0x100)] + get { return new int4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyyy + { + [MethodImpl(0x100)] + get { return new int4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyyz + { + [MethodImpl(0x100)] + get { return new int4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyzx + { + [MethodImpl(0x100)] + get { return new int4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyzy + { + [MethodImpl(0x100)] + get { return new int4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyzz + { + [MethodImpl(0x100)] + get { return new int4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzxx + { + [MethodImpl(0x100)] + get { return new int4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzxy + { + [MethodImpl(0x100)] + get { return new int4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzxz + { + [MethodImpl(0x100)] + get { return new int4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzyx + { + [MethodImpl(0x100)] + get { return new int4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzyy + { + [MethodImpl(0x100)] + get { return new int4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzyz + { + [MethodImpl(0x100)] + get { return new int4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzzx + { + [MethodImpl(0x100)] + get { return new int4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzzy + { + [MethodImpl(0x100)] + get { return new int4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzzz + { + [MethodImpl(0x100)] + get { return new int4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxx + { + [MethodImpl(0x100)] + get { return new int3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxy + { + [MethodImpl(0x100)] + get { return new int3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxz + { + [MethodImpl(0x100)] + get { return new int3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyx + { + [MethodImpl(0x100)] + get { return new int3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyy + { + [MethodImpl(0x100)] + get { return new int3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyz + { + [MethodImpl(0x100)] + get { return new int3(x, y, z); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xzx + { + [MethodImpl(0x100)] + get { return new int3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xzy + { + [MethodImpl(0x100)] + get { return new int3(x, z, y); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xzz + { + [MethodImpl(0x100)] + get { return new int3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxx + { + [MethodImpl(0x100)] + get { return new int3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxy + { + [MethodImpl(0x100)] + get { return new int3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxz + { + [MethodImpl(0x100)] + get { return new int3(y, x, z); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyx + { + [MethodImpl(0x100)] + get { return new int3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyy + { + [MethodImpl(0x100)] + get { return new int3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyz + { + [MethodImpl(0x100)] + get { return new int3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yzx + { + [MethodImpl(0x100)] + get { return new int3(y, z, x); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yzy + { + [MethodImpl(0x100)] + get { return new int3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yzz + { + [MethodImpl(0x100)] + get { return new int3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zxx + { + [MethodImpl(0x100)] + get { return new int3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zxy + { + [MethodImpl(0x100)] + get { return new int3(z, x, y); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zxz + { + [MethodImpl(0x100)] + get { return new int3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zyx + { + [MethodImpl(0x100)] + get { return new int3(z, y, x); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zyy + { + [MethodImpl(0x100)] + get { return new int3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zyz + { + [MethodImpl(0x100)] + get { return new int3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zzx + { + [MethodImpl(0x100)] + get { return new int3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zzy + { + [MethodImpl(0x100)] + get { return new int3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zzz + { + [MethodImpl(0x100)] + get { return new int3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xx + { + [MethodImpl(0x100)] + get { return new int2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xy + { + [MethodImpl(0x100)] + get { return new int2(x, y); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xz + { + [MethodImpl(0x100)] + get { return new int2(x, z); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yx + { + [MethodImpl(0x100)] + get { return new int2(y, x); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yy + { + [MethodImpl(0x100)] + get { return new int2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yz + { + [MethodImpl(0x100)] + get { return new int2(y, z); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 zx + { + [MethodImpl(0x100)] + get { return new int2(z, x); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 zy + { + [MethodImpl(0x100)] + get { return new int2(z, y); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 zz + { + [MethodImpl(0x100)] + get { return new int2(z, z); } + } + + + } +} diff --git a/src/Unity.Mathematics/int4.gen.cs b/src/Unity.Mathematics/int4.gen.cs index e7052933..9053f2a0 100644 --- a/src/Unity.Mathematics/int4.gen.cs +++ b/src/Unity.Mathematics/int4.gen.cs @@ -1,2959 +1,2959 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct int4 : System.IEquatable - { - - // mul - [MethodImpl(0x100)] - public static int4 operator * (int4 lhs, int4 rhs) { return new int4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } - [MethodImpl(0x100)] - public static int4 operator * (int4 lhs, int rhs) { return new int4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } - [MethodImpl(0x100)] - public static int4 operator * (int lhs, int4 rhs) { return new int4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } - - // add - [MethodImpl(0x100)] - public static int4 operator + (int4 lhs, int4 rhs) { return new int4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } - [MethodImpl(0x100)] - public static int4 operator + (int4 lhs, int rhs) { return new int4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } - [MethodImpl(0x100)] - public static int4 operator + (int lhs, int4 rhs) { return new int4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } - - // sub - [MethodImpl(0x100)] - public static int4 operator - (int4 lhs, int4 rhs) { return new int4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } - [MethodImpl(0x100)] - public static int4 operator - (int4 lhs, int rhs) { return new int4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } - [MethodImpl(0x100)] - public static int4 operator - (int lhs, int4 rhs) { return new int4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } - - // div - [MethodImpl(0x100)] - public static int4 operator / (int4 lhs, int4 rhs) { return new int4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } - [MethodImpl(0x100)] - public static int4 operator / (int4 lhs, int rhs) { return new int4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } - [MethodImpl(0x100)] - public static int4 operator / (int lhs, int4 rhs) { return new int4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } - - // smaller - [MethodImpl(0x100)] - public static bool4 operator < (int4 lhs, int4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator < (int4 lhs, int rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } - [MethodImpl(0x100)] - public static bool4 operator < (int lhs, int4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator <= (int4 lhs, int4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator <= (int4 lhs, int rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } - [MethodImpl(0x100)] - public static bool4 operator <= (int lhs, int4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } - - // greater - [MethodImpl(0x100)] - public static bool4 operator > (int4 lhs, int4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator > (int4 lhs, int rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } - [MethodImpl(0x100)] - public static bool4 operator > (int lhs, int4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator >= (int4 lhs, int4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator >= (int4 lhs, int rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } - [MethodImpl(0x100)] - public static bool4 operator >= (int lhs, int4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } - - // neg - [MethodImpl(0x100)] - public static int4 operator - (int4 val) { return new int4 (-val.x, -val.y, -val.z, -val.w); } - // plus - [MethodImpl(0x100)] - public static int4 operator + (int4 val) { return new int4 (+val.x, +val.y, +val.z, +val.w); } - // left shift - [MethodImpl(0x100)] - public static int4 operator << (int4 lhs, int rhs) { return new int4 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs, lhs.w << rhs); } - - // right shift - [MethodImpl(0x100)] - public static int4 operator >> (int4 lhs, int rhs) { return new int4 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs, lhs.w >> rhs); } - - // equal - [MethodImpl(0x100)] - public static bool4 operator == (int4 lhs, int4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator == (int4 lhs, int rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - [MethodImpl(0x100)] - public static bool4 operator == (int lhs, int4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } - - // not equal - [MethodImpl(0x100)] - public static bool4 operator != (int4 lhs, int4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator != (int4 lhs, int rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - [MethodImpl(0x100)] - public static bool4 operator != (int lhs, int4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } - - // Equals - [MethodImpl(0x100)] - public bool Equals(int4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } - - // [int index] - unsafe public int this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (int* array = &x) { return array[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (int* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(0x100)] - public static int4 operator & (int4 lhs, int4 rhs) { return new int4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } - [MethodImpl(0x100)] - public static int4 operator & (int4 lhs, int rhs) { return new int4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } - [MethodImpl(0x100)] - public static int4 operator & (int lhs, int4 rhs) { return new int4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } - - // operator | - [MethodImpl(0x100)] - public static int4 operator | (int4 lhs, int4 rhs) { return new int4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } - [MethodImpl(0x100)] - public static int4 operator | (int4 lhs, int rhs) { return new int4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } - [MethodImpl(0x100)] - public static int4 operator | (int lhs, int4 rhs) { return new int4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } - - // operator ^ - [MethodImpl(0x100)] - public static int4 operator ^ (int4 lhs, int4 rhs) { return new int4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } - [MethodImpl(0x100)] - public static int4 operator ^ (int4 lhs, int rhs) { return new int4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } - [MethodImpl(0x100)] - public static int4 operator ^ (int lhs, int4 rhs) { return new int4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } - - // operator ~ - [MethodImpl(0x100)] - public static int4 operator ~ (int4 val) { return new int4 (~val.x, ~val.y, ~val.z, ~val.w); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxx - { - [MethodImpl(0x100)] - get { return new int4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxy - { - [MethodImpl(0x100)] - get { return new int4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxz - { - [MethodImpl(0x100)] - get { return new int4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxw - { - [MethodImpl(0x100)] - get { return new int4(x, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyx - { - [MethodImpl(0x100)] - get { return new int4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyy - { - [MethodImpl(0x100)] - get { return new int4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyz - { - [MethodImpl(0x100)] - get { return new int4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyw - { - [MethodImpl(0x100)] - get { return new int4(x, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzx - { - [MethodImpl(0x100)] - get { return new int4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzy - { - [MethodImpl(0x100)] - get { return new int4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzz - { - [MethodImpl(0x100)] - get { return new int4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzw - { - [MethodImpl(0x100)] - get { return new int4(x, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxwx - { - [MethodImpl(0x100)] - get { return new int4(x, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxwy - { - [MethodImpl(0x100)] - get { return new int4(x, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxwz - { - [MethodImpl(0x100)] - get { return new int4(x, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxww - { - [MethodImpl(0x100)] - get { return new int4(x, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxx - { - [MethodImpl(0x100)] - get { return new int4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxy - { - [MethodImpl(0x100)] - get { return new int4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxz - { - [MethodImpl(0x100)] - get { return new int4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxw - { - [MethodImpl(0x100)] - get { return new int4(x, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyx - { - [MethodImpl(0x100)] - get { return new int4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyy - { - [MethodImpl(0x100)] - get { return new int4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyz - { - [MethodImpl(0x100)] - get { return new int4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyw - { - [MethodImpl(0x100)] - get { return new int4(x, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzx - { - [MethodImpl(0x100)] - get { return new int4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzy - { - [MethodImpl(0x100)] - get { return new int4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzz - { - [MethodImpl(0x100)] - get { return new int4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzw - { - [MethodImpl(0x100)] - get { return new int4(x, y, z, w); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xywx - { - [MethodImpl(0x100)] - get { return new int4(x, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xywy - { - [MethodImpl(0x100)] - get { return new int4(x, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xywz - { - [MethodImpl(0x100)] - get { return new int4(x, y, w, z); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyww - { - [MethodImpl(0x100)] - get { return new int4(x, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxx - { - [MethodImpl(0x100)] - get { return new int4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxy - { - [MethodImpl(0x100)] - get { return new int4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxz - { - [MethodImpl(0x100)] - get { return new int4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxw - { - [MethodImpl(0x100)] - get { return new int4(x, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyx - { - [MethodImpl(0x100)] - get { return new int4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyy - { - [MethodImpl(0x100)] - get { return new int4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyz - { - [MethodImpl(0x100)] - get { return new int4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyw - { - [MethodImpl(0x100)] - get { return new int4(x, z, y, w); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzx - { - [MethodImpl(0x100)] - get { return new int4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzy - { - [MethodImpl(0x100)] - get { return new int4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzz - { - [MethodImpl(0x100)] - get { return new int4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzw - { - [MethodImpl(0x100)] - get { return new int4(x, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzwx - { - [MethodImpl(0x100)] - get { return new int4(x, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzwy - { - [MethodImpl(0x100)] - get { return new int4(x, z, w, y); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzwz - { - [MethodImpl(0x100)] - get { return new int4(x, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzww - { - [MethodImpl(0x100)] - get { return new int4(x, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwxx - { - [MethodImpl(0x100)] - get { return new int4(x, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwxy - { - [MethodImpl(0x100)] - get { return new int4(x, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwxz - { - [MethodImpl(0x100)] - get { return new int4(x, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwxw - { - [MethodImpl(0x100)] - get { return new int4(x, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwyx - { - [MethodImpl(0x100)] - get { return new int4(x, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwyy - { - [MethodImpl(0x100)] - get { return new int4(x, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwyz - { - [MethodImpl(0x100)] - get { return new int4(x, w, y, z); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwyw - { - [MethodImpl(0x100)] - get { return new int4(x, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwzx - { - [MethodImpl(0x100)] - get { return new int4(x, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwzy - { - [MethodImpl(0x100)] - get { return new int4(x, w, z, y); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwzz - { - [MethodImpl(0x100)] - get { return new int4(x, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwzw - { - [MethodImpl(0x100)] - get { return new int4(x, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwwx - { - [MethodImpl(0x100)] - get { return new int4(x, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwwy - { - [MethodImpl(0x100)] - get { return new int4(x, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwwz - { - [MethodImpl(0x100)] - get { return new int4(x, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwww - { - [MethodImpl(0x100)] - get { return new int4(x, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxx - { - [MethodImpl(0x100)] - get { return new int4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxy - { - [MethodImpl(0x100)] - get { return new int4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxz - { - [MethodImpl(0x100)] - get { return new int4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxw - { - [MethodImpl(0x100)] - get { return new int4(y, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyx - { - [MethodImpl(0x100)] - get { return new int4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyy - { - [MethodImpl(0x100)] - get { return new int4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyz - { - [MethodImpl(0x100)] - get { return new int4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyw - { - [MethodImpl(0x100)] - get { return new int4(y, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzx - { - [MethodImpl(0x100)] - get { return new int4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzy - { - [MethodImpl(0x100)] - get { return new int4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzz - { - [MethodImpl(0x100)] - get { return new int4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzw - { - [MethodImpl(0x100)] - get { return new int4(y, x, z, w); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxwx - { - [MethodImpl(0x100)] - get { return new int4(y, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxwy - { - [MethodImpl(0x100)] - get { return new int4(y, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxwz - { - [MethodImpl(0x100)] - get { return new int4(y, x, w, z); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxww - { - [MethodImpl(0x100)] - get { return new int4(y, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxx - { - [MethodImpl(0x100)] - get { return new int4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxy - { - [MethodImpl(0x100)] - get { return new int4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxz - { - [MethodImpl(0x100)] - get { return new int4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxw - { - [MethodImpl(0x100)] - get { return new int4(y, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyx - { - [MethodImpl(0x100)] - get { return new int4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyy - { - [MethodImpl(0x100)] - get { return new int4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyz - { - [MethodImpl(0x100)] - get { return new int4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyw - { - [MethodImpl(0x100)] - get { return new int4(y, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzx - { - [MethodImpl(0x100)] - get { return new int4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzy - { - [MethodImpl(0x100)] - get { return new int4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzz - { - [MethodImpl(0x100)] - get { return new int4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzw - { - [MethodImpl(0x100)] - get { return new int4(y, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yywx - { - [MethodImpl(0x100)] - get { return new int4(y, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yywy - { - [MethodImpl(0x100)] - get { return new int4(y, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yywz - { - [MethodImpl(0x100)] - get { return new int4(y, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyww - { - [MethodImpl(0x100)] - get { return new int4(y, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxx - { - [MethodImpl(0x100)] - get { return new int4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxy - { - [MethodImpl(0x100)] - get { return new int4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxz - { - [MethodImpl(0x100)] - get { return new int4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxw - { - [MethodImpl(0x100)] - get { return new int4(y, z, x, w); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyx - { - [MethodImpl(0x100)] - get { return new int4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyy - { - [MethodImpl(0x100)] - get { return new int4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyz - { - [MethodImpl(0x100)] - get { return new int4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyw - { - [MethodImpl(0x100)] - get { return new int4(y, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzx - { - [MethodImpl(0x100)] - get { return new int4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzy - { - [MethodImpl(0x100)] - get { return new int4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzz - { - [MethodImpl(0x100)] - get { return new int4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzw - { - [MethodImpl(0x100)] - get { return new int4(y, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzwx - { - [MethodImpl(0x100)] - get { return new int4(y, z, w, x); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzwy - { - [MethodImpl(0x100)] - get { return new int4(y, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzwz - { - [MethodImpl(0x100)] - get { return new int4(y, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzww - { - [MethodImpl(0x100)] - get { return new int4(y, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywxx - { - [MethodImpl(0x100)] - get { return new int4(y, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywxy - { - [MethodImpl(0x100)] - get { return new int4(y, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywxz - { - [MethodImpl(0x100)] - get { return new int4(y, w, x, z); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywxw - { - [MethodImpl(0x100)] - get { return new int4(y, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywyx - { - [MethodImpl(0x100)] - get { return new int4(y, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywyy - { - [MethodImpl(0x100)] - get { return new int4(y, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywyz - { - [MethodImpl(0x100)] - get { return new int4(y, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywyw - { - [MethodImpl(0x100)] - get { return new int4(y, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywzx - { - [MethodImpl(0x100)] - get { return new int4(y, w, z, x); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywzy - { - [MethodImpl(0x100)] - get { return new int4(y, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywzz - { - [MethodImpl(0x100)] - get { return new int4(y, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywzw - { - [MethodImpl(0x100)] - get { return new int4(y, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywwx - { - [MethodImpl(0x100)] - get { return new int4(y, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywwy - { - [MethodImpl(0x100)] - get { return new int4(y, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywwz - { - [MethodImpl(0x100)] - get { return new int4(y, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywww - { - [MethodImpl(0x100)] - get { return new int4(y, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxx - { - [MethodImpl(0x100)] - get { return new int4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxy - { - [MethodImpl(0x100)] - get { return new int4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxz - { - [MethodImpl(0x100)] - get { return new int4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxw - { - [MethodImpl(0x100)] - get { return new int4(z, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyx - { - [MethodImpl(0x100)] - get { return new int4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyy - { - [MethodImpl(0x100)] - get { return new int4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyz - { - [MethodImpl(0x100)] - get { return new int4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyw - { - [MethodImpl(0x100)] - get { return new int4(z, x, y, w); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzx - { - [MethodImpl(0x100)] - get { return new int4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzy - { - [MethodImpl(0x100)] - get { return new int4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzz - { - [MethodImpl(0x100)] - get { return new int4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzw - { - [MethodImpl(0x100)] - get { return new int4(z, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxwx - { - [MethodImpl(0x100)] - get { return new int4(z, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxwy - { - [MethodImpl(0x100)] - get { return new int4(z, x, w, y); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxwz - { - [MethodImpl(0x100)] - get { return new int4(z, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxww - { - [MethodImpl(0x100)] - get { return new int4(z, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxx - { - [MethodImpl(0x100)] - get { return new int4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxy - { - [MethodImpl(0x100)] - get { return new int4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxz - { - [MethodImpl(0x100)] - get { return new int4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxw - { - [MethodImpl(0x100)] - get { return new int4(z, y, x, w); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyx - { - [MethodImpl(0x100)] - get { return new int4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyy - { - [MethodImpl(0x100)] - get { return new int4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyz - { - [MethodImpl(0x100)] - get { return new int4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyw - { - [MethodImpl(0x100)] - get { return new int4(z, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzx - { - [MethodImpl(0x100)] - get { return new int4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzy - { - [MethodImpl(0x100)] - get { return new int4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzz - { - [MethodImpl(0x100)] - get { return new int4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzw - { - [MethodImpl(0x100)] - get { return new int4(z, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zywx - { - [MethodImpl(0x100)] - get { return new int4(z, y, w, x); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zywy - { - [MethodImpl(0x100)] - get { return new int4(z, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zywz - { - [MethodImpl(0x100)] - get { return new int4(z, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyww - { - [MethodImpl(0x100)] - get { return new int4(z, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxx - { - [MethodImpl(0x100)] - get { return new int4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxy - { - [MethodImpl(0x100)] - get { return new int4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxz - { - [MethodImpl(0x100)] - get { return new int4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxw - { - [MethodImpl(0x100)] - get { return new int4(z, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyx - { - [MethodImpl(0x100)] - get { return new int4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyy - { - [MethodImpl(0x100)] - get { return new int4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyz - { - [MethodImpl(0x100)] - get { return new int4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyw - { - [MethodImpl(0x100)] - get { return new int4(z, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzx - { - [MethodImpl(0x100)] - get { return new int4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzy - { - [MethodImpl(0x100)] - get { return new int4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzz - { - [MethodImpl(0x100)] - get { return new int4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzw - { - [MethodImpl(0x100)] - get { return new int4(z, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzwx - { - [MethodImpl(0x100)] - get { return new int4(z, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzwy - { - [MethodImpl(0x100)] - get { return new int4(z, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzwz - { - [MethodImpl(0x100)] - get { return new int4(z, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzww - { - [MethodImpl(0x100)] - get { return new int4(z, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwxx - { - [MethodImpl(0x100)] - get { return new int4(z, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwxy - { - [MethodImpl(0x100)] - get { return new int4(z, w, x, y); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwxz - { - [MethodImpl(0x100)] - get { return new int4(z, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwxw - { - [MethodImpl(0x100)] - get { return new int4(z, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwyx - { - [MethodImpl(0x100)] - get { return new int4(z, w, y, x); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwyy - { - [MethodImpl(0x100)] - get { return new int4(z, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwyz - { - [MethodImpl(0x100)] - get { return new int4(z, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwyw - { - [MethodImpl(0x100)] - get { return new int4(z, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwzx - { - [MethodImpl(0x100)] - get { return new int4(z, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwzy - { - [MethodImpl(0x100)] - get { return new int4(z, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwzz - { - [MethodImpl(0x100)] - get { return new int4(z, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwzw - { - [MethodImpl(0x100)] - get { return new int4(z, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwwx - { - [MethodImpl(0x100)] - get { return new int4(z, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwwy - { - [MethodImpl(0x100)] - get { return new int4(z, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwwz - { - [MethodImpl(0x100)] - get { return new int4(z, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwww - { - [MethodImpl(0x100)] - get { return new int4(z, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxxx - { - [MethodImpl(0x100)] - get { return new int4(w, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxxy - { - [MethodImpl(0x100)] - get { return new int4(w, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxxz - { - [MethodImpl(0x100)] - get { return new int4(w, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxxw - { - [MethodImpl(0x100)] - get { return new int4(w, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxyx - { - [MethodImpl(0x100)] - get { return new int4(w, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxyy - { - [MethodImpl(0x100)] - get { return new int4(w, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxyz - { - [MethodImpl(0x100)] - get { return new int4(w, x, y, z); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxyw - { - [MethodImpl(0x100)] - get { return new int4(w, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxzx - { - [MethodImpl(0x100)] - get { return new int4(w, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxzy - { - [MethodImpl(0x100)] - get { return new int4(w, x, z, y); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxzz - { - [MethodImpl(0x100)] - get { return new int4(w, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxzw - { - [MethodImpl(0x100)] - get { return new int4(w, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxwx - { - [MethodImpl(0x100)] - get { return new int4(w, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxwy - { - [MethodImpl(0x100)] - get { return new int4(w, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxwz - { - [MethodImpl(0x100)] - get { return new int4(w, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxww - { - [MethodImpl(0x100)] - get { return new int4(w, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyxx - { - [MethodImpl(0x100)] - get { return new int4(w, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyxy - { - [MethodImpl(0x100)] - get { return new int4(w, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyxz - { - [MethodImpl(0x100)] - get { return new int4(w, y, x, z); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyxw - { - [MethodImpl(0x100)] - get { return new int4(w, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyyx - { - [MethodImpl(0x100)] - get { return new int4(w, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyyy - { - [MethodImpl(0x100)] - get { return new int4(w, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyyz - { - [MethodImpl(0x100)] - get { return new int4(w, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyyw - { - [MethodImpl(0x100)] - get { return new int4(w, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyzx - { - [MethodImpl(0x100)] - get { return new int4(w, y, z, x); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyzy - { - [MethodImpl(0x100)] - get { return new int4(w, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyzz - { - [MethodImpl(0x100)] - get { return new int4(w, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyzw - { - [MethodImpl(0x100)] - get { return new int4(w, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wywx - { - [MethodImpl(0x100)] - get { return new int4(w, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wywy - { - [MethodImpl(0x100)] - get { return new int4(w, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wywz - { - [MethodImpl(0x100)] - get { return new int4(w, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyww - { - [MethodImpl(0x100)] - get { return new int4(w, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzxx - { - [MethodImpl(0x100)] - get { return new int4(w, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzxy - { - [MethodImpl(0x100)] - get { return new int4(w, z, x, y); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzxz - { - [MethodImpl(0x100)] - get { return new int4(w, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzxw - { - [MethodImpl(0x100)] - get { return new int4(w, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzyx - { - [MethodImpl(0x100)] - get { return new int4(w, z, y, x); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzyy - { - [MethodImpl(0x100)] - get { return new int4(w, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzyz - { - [MethodImpl(0x100)] - get { return new int4(w, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzyw - { - [MethodImpl(0x100)] - get { return new int4(w, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzzx - { - [MethodImpl(0x100)] - get { return new int4(w, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzzy - { - [MethodImpl(0x100)] - get { return new int4(w, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzzz - { - [MethodImpl(0x100)] - get { return new int4(w, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzzw - { - [MethodImpl(0x100)] - get { return new int4(w, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzwx - { - [MethodImpl(0x100)] - get { return new int4(w, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzwy - { - [MethodImpl(0x100)] - get { return new int4(w, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzwz - { - [MethodImpl(0x100)] - get { return new int4(w, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzww - { - [MethodImpl(0x100)] - get { return new int4(w, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwxx - { - [MethodImpl(0x100)] - get { return new int4(w, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwxy - { - [MethodImpl(0x100)] - get { return new int4(w, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwxz - { - [MethodImpl(0x100)] - get { return new int4(w, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwxw - { - [MethodImpl(0x100)] - get { return new int4(w, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwyx - { - [MethodImpl(0x100)] - get { return new int4(w, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwyy - { - [MethodImpl(0x100)] - get { return new int4(w, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwyz - { - [MethodImpl(0x100)] - get { return new int4(w, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwyw - { - [MethodImpl(0x100)] - get { return new int4(w, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwzx - { - [MethodImpl(0x100)] - get { return new int4(w, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwzy - { - [MethodImpl(0x100)] - get { return new int4(w, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwzz - { - [MethodImpl(0x100)] - get { return new int4(w, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwzw - { - [MethodImpl(0x100)] - get { return new int4(w, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwwx - { - [MethodImpl(0x100)] - get { return new int4(w, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwwy - { - [MethodImpl(0x100)] - get { return new int4(w, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwwz - { - [MethodImpl(0x100)] - get { return new int4(w, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwww - { - [MethodImpl(0x100)] - get { return new int4(w, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxx - { - [MethodImpl(0x100)] - get { return new int3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxy - { - [MethodImpl(0x100)] - get { return new int3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxz - { - [MethodImpl(0x100)] - get { return new int3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxw - { - [MethodImpl(0x100)] - get { return new int3(x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyx - { - [MethodImpl(0x100)] - get { return new int3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyy - { - [MethodImpl(0x100)] - get { return new int3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyz - { - [MethodImpl(0x100)] - get { return new int3(x, y, z); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyw - { - [MethodImpl(0x100)] - get { return new int3(x, y, w); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzx - { - [MethodImpl(0x100)] - get { return new int3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzy - { - [MethodImpl(0x100)] - get { return new int3(x, z, y); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzz - { - [MethodImpl(0x100)] - get { return new int3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzw - { - [MethodImpl(0x100)] - get { return new int3(x, z, w); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xwx - { - [MethodImpl(0x100)] - get { return new int3(x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xwy - { - [MethodImpl(0x100)] - get { return new int3(x, w, y); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xwz - { - [MethodImpl(0x100)] - get { return new int3(x, w, z); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xww - { - [MethodImpl(0x100)] - get { return new int3(x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxx - { - [MethodImpl(0x100)] - get { return new int3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxy - { - [MethodImpl(0x100)] - get { return new int3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxz - { - [MethodImpl(0x100)] - get { return new int3(y, x, z); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxw - { - [MethodImpl(0x100)] - get { return new int3(y, x, w); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyx - { - [MethodImpl(0x100)] - get { return new int3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyy - { - [MethodImpl(0x100)] - get { return new int3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyz - { - [MethodImpl(0x100)] - get { return new int3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyw - { - [MethodImpl(0x100)] - get { return new int3(y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzx - { - [MethodImpl(0x100)] - get { return new int3(y, z, x); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzy - { - [MethodImpl(0x100)] - get { return new int3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzz - { - [MethodImpl(0x100)] - get { return new int3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzw - { - [MethodImpl(0x100)] - get { return new int3(y, z, w); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 ywx - { - [MethodImpl(0x100)] - get { return new int3(y, w, x); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 ywy - { - [MethodImpl(0x100)] - get { return new int3(y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 ywz - { - [MethodImpl(0x100)] - get { return new int3(y, w, z); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yww - { - [MethodImpl(0x100)] - get { return new int3(y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxx - { - [MethodImpl(0x100)] - get { return new int3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxy - { - [MethodImpl(0x100)] - get { return new int3(z, x, y); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxz - { - [MethodImpl(0x100)] - get { return new int3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxw - { - [MethodImpl(0x100)] - get { return new int3(z, x, w); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyx - { - [MethodImpl(0x100)] - get { return new int3(z, y, x); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyy - { - [MethodImpl(0x100)] - get { return new int3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyz - { - [MethodImpl(0x100)] - get { return new int3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyw - { - [MethodImpl(0x100)] - get { return new int3(z, y, w); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzx - { - [MethodImpl(0x100)] - get { return new int3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzy - { - [MethodImpl(0x100)] - get { return new int3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzz - { - [MethodImpl(0x100)] - get { return new int3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzw - { - [MethodImpl(0x100)] - get { return new int3(z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zwx - { - [MethodImpl(0x100)] - get { return new int3(z, w, x); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zwy - { - [MethodImpl(0x100)] - get { return new int3(z, w, y); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zwz - { - [MethodImpl(0x100)] - get { return new int3(z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zww - { - [MethodImpl(0x100)] - get { return new int3(z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wxx - { - [MethodImpl(0x100)] - get { return new int3(w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wxy - { - [MethodImpl(0x100)] - get { return new int3(w, x, y); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wxz - { - [MethodImpl(0x100)] - get { return new int3(w, x, z); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wxw - { - [MethodImpl(0x100)] - get { return new int3(w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wyx - { - [MethodImpl(0x100)] - get { return new int3(w, y, x); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wyy - { - [MethodImpl(0x100)] - get { return new int3(w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wyz - { - [MethodImpl(0x100)] - get { return new int3(w, y, z); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wyw - { - [MethodImpl(0x100)] - get { return new int3(w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wzx - { - [MethodImpl(0x100)] - get { return new int3(w, z, x); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wzy - { - [MethodImpl(0x100)] - get { return new int3(w, z, y); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wzz - { - [MethodImpl(0x100)] - get { return new int3(w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wzw - { - [MethodImpl(0x100)] - get { return new int3(w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wwx - { - [MethodImpl(0x100)] - get { return new int3(w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wwy - { - [MethodImpl(0x100)] - get { return new int3(w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wwz - { - [MethodImpl(0x100)] - get { return new int3(w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 www - { - [MethodImpl(0x100)] - get { return new int3(w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xx - { - [MethodImpl(0x100)] - get { return new int2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xy - { - [MethodImpl(0x100)] - get { return new int2(x, y); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xz - { - [MethodImpl(0x100)] - get { return new int2(x, z); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xw - { - [MethodImpl(0x100)] - get { return new int2(x, w); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yx - { - [MethodImpl(0x100)] - get { return new int2(y, x); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yy - { - [MethodImpl(0x100)] - get { return new int2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yz - { - [MethodImpl(0x100)] - get { return new int2(y, z); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yw - { - [MethodImpl(0x100)] - get { return new int2(y, w); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zx - { - [MethodImpl(0x100)] - get { return new int2(z, x); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zy - { - [MethodImpl(0x100)] - get { return new int2(z, y); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zz - { - [MethodImpl(0x100)] - get { return new int2(z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zw - { - [MethodImpl(0x100)] - get { return new int2(z, w); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 wx - { - [MethodImpl(0x100)] - get { return new int2(w, x); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 wy - { - [MethodImpl(0x100)] - get { return new int2(w, y); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 wz - { - [MethodImpl(0x100)] - get { return new int2(w, z); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 ww - { - [MethodImpl(0x100)] - get { return new int2(w, w); } - } - - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct int4 : System.IEquatable + { + + // mul + [MethodImpl(0x100)] + public static int4 operator * (int4 lhs, int4 rhs) { return new int4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } + [MethodImpl(0x100)] + public static int4 operator * (int4 lhs, int rhs) { return new int4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } + [MethodImpl(0x100)] + public static int4 operator * (int lhs, int4 rhs) { return new int4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } + + // add + [MethodImpl(0x100)] + public static int4 operator + (int4 lhs, int4 rhs) { return new int4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } + [MethodImpl(0x100)] + public static int4 operator + (int4 lhs, int rhs) { return new int4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } + [MethodImpl(0x100)] + public static int4 operator + (int lhs, int4 rhs) { return new int4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } + + // sub + [MethodImpl(0x100)] + public static int4 operator - (int4 lhs, int4 rhs) { return new int4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } + [MethodImpl(0x100)] + public static int4 operator - (int4 lhs, int rhs) { return new int4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } + [MethodImpl(0x100)] + public static int4 operator - (int lhs, int4 rhs) { return new int4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } + + // div + [MethodImpl(0x100)] + public static int4 operator / (int4 lhs, int4 rhs) { return new int4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } + [MethodImpl(0x100)] + public static int4 operator / (int4 lhs, int rhs) { return new int4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } + [MethodImpl(0x100)] + public static int4 operator / (int lhs, int4 rhs) { return new int4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } + + // smaller + [MethodImpl(0x100)] + public static bool4 operator < (int4 lhs, int4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator < (int4 lhs, int rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } + [MethodImpl(0x100)] + public static bool4 operator < (int lhs, int4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator <= (int4 lhs, int4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator <= (int4 lhs, int rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } + [MethodImpl(0x100)] + public static bool4 operator <= (int lhs, int4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } + + // greater + [MethodImpl(0x100)] + public static bool4 operator > (int4 lhs, int4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator > (int4 lhs, int rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } + [MethodImpl(0x100)] + public static bool4 operator > (int lhs, int4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator >= (int4 lhs, int4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator >= (int4 lhs, int rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } + [MethodImpl(0x100)] + public static bool4 operator >= (int lhs, int4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } + + // neg + [MethodImpl(0x100)] + public static int4 operator - (int4 val) { return new int4 (-val.x, -val.y, -val.z, -val.w); } + // plus + [MethodImpl(0x100)] + public static int4 operator + (int4 val) { return new int4 (+val.x, +val.y, +val.z, +val.w); } + // left shift + [MethodImpl(0x100)] + public static int4 operator << (int4 lhs, int rhs) { return new int4 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs, lhs.w << rhs); } + + // right shift + [MethodImpl(0x100)] + public static int4 operator >> (int4 lhs, int rhs) { return new int4 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs, lhs.w >> rhs); } + + // equal + [MethodImpl(0x100)] + public static bool4 operator == (int4 lhs, int4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator == (int4 lhs, int rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } + [MethodImpl(0x100)] + public static bool4 operator == (int lhs, int4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } + + // not equal + [MethodImpl(0x100)] + public static bool4 operator != (int4 lhs, int4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator != (int4 lhs, int rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } + [MethodImpl(0x100)] + public static bool4 operator != (int lhs, int4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } + + // Equals + [MethodImpl(0x100)] + public bool Equals(int4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } + + // [int index] + unsafe public int this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (int4* array = &this) { return ((int*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (int* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(0x100)] + public static int4 operator & (int4 lhs, int4 rhs) { return new int4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } + [MethodImpl(0x100)] + public static int4 operator & (int4 lhs, int rhs) { return new int4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } + [MethodImpl(0x100)] + public static int4 operator & (int lhs, int4 rhs) { return new int4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } + + // operator | + [MethodImpl(0x100)] + public static int4 operator | (int4 lhs, int4 rhs) { return new int4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } + [MethodImpl(0x100)] + public static int4 operator | (int4 lhs, int rhs) { return new int4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } + [MethodImpl(0x100)] + public static int4 operator | (int lhs, int4 rhs) { return new int4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } + + // operator ^ + [MethodImpl(0x100)] + public static int4 operator ^ (int4 lhs, int4 rhs) { return new int4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } + [MethodImpl(0x100)] + public static int4 operator ^ (int4 lhs, int rhs) { return new int4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } + [MethodImpl(0x100)] + public static int4 operator ^ (int lhs, int4 rhs) { return new int4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } + + // operator ~ + [MethodImpl(0x100)] + public static int4 operator ~ (int4 val) { return new int4 (~val.x, ~val.y, ~val.z, ~val.w); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxx + { + [MethodImpl(0x100)] + get { return new int4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxy + { + [MethodImpl(0x100)] + get { return new int4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxz + { + [MethodImpl(0x100)] + get { return new int4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxw + { + [MethodImpl(0x100)] + get { return new int4(x, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyx + { + [MethodImpl(0x100)] + get { return new int4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyy + { + [MethodImpl(0x100)] + get { return new int4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyz + { + [MethodImpl(0x100)] + get { return new int4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyw + { + [MethodImpl(0x100)] + get { return new int4(x, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxzx + { + [MethodImpl(0x100)] + get { return new int4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxzy + { + [MethodImpl(0x100)] + get { return new int4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxzz + { + [MethodImpl(0x100)] + get { return new int4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxzw + { + [MethodImpl(0x100)] + get { return new int4(x, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxwx + { + [MethodImpl(0x100)] + get { return new int4(x, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxwy + { + [MethodImpl(0x100)] + get { return new int4(x, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxwz + { + [MethodImpl(0x100)] + get { return new int4(x, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxww + { + [MethodImpl(0x100)] + get { return new int4(x, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxx + { + [MethodImpl(0x100)] + get { return new int4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxy + { + [MethodImpl(0x100)] + get { return new int4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxz + { + [MethodImpl(0x100)] + get { return new int4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxw + { + [MethodImpl(0x100)] + get { return new int4(x, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyx + { + [MethodImpl(0x100)] + get { return new int4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyy + { + [MethodImpl(0x100)] + get { return new int4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyz + { + [MethodImpl(0x100)] + get { return new int4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyw + { + [MethodImpl(0x100)] + get { return new int4(x, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyzx + { + [MethodImpl(0x100)] + get { return new int4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyzy + { + [MethodImpl(0x100)] + get { return new int4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyzz + { + [MethodImpl(0x100)] + get { return new int4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyzw + { + [MethodImpl(0x100)] + get { return new int4(x, y, z, w); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xywx + { + [MethodImpl(0x100)] + get { return new int4(x, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xywy + { + [MethodImpl(0x100)] + get { return new int4(x, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xywz + { + [MethodImpl(0x100)] + get { return new int4(x, y, w, z); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyww + { + [MethodImpl(0x100)] + get { return new int4(x, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzxx + { + [MethodImpl(0x100)] + get { return new int4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzxy + { + [MethodImpl(0x100)] + get { return new int4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzxz + { + [MethodImpl(0x100)] + get { return new int4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzxw + { + [MethodImpl(0x100)] + get { return new int4(x, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzyx + { + [MethodImpl(0x100)] + get { return new int4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzyy + { + [MethodImpl(0x100)] + get { return new int4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzyz + { + [MethodImpl(0x100)] + get { return new int4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzyw + { + [MethodImpl(0x100)] + get { return new int4(x, z, y, w); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzzx + { + [MethodImpl(0x100)] + get { return new int4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzzy + { + [MethodImpl(0x100)] + get { return new int4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzzz + { + [MethodImpl(0x100)] + get { return new int4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzzw + { + [MethodImpl(0x100)] + get { return new int4(x, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzwx + { + [MethodImpl(0x100)] + get { return new int4(x, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzwy + { + [MethodImpl(0x100)] + get { return new int4(x, z, w, y); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzwz + { + [MethodImpl(0x100)] + get { return new int4(x, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzww + { + [MethodImpl(0x100)] + get { return new int4(x, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwxx + { + [MethodImpl(0x100)] + get { return new int4(x, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwxy + { + [MethodImpl(0x100)] + get { return new int4(x, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwxz + { + [MethodImpl(0x100)] + get { return new int4(x, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwxw + { + [MethodImpl(0x100)] + get { return new int4(x, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwyx + { + [MethodImpl(0x100)] + get { return new int4(x, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwyy + { + [MethodImpl(0x100)] + get { return new int4(x, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwyz + { + [MethodImpl(0x100)] + get { return new int4(x, w, y, z); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwyw + { + [MethodImpl(0x100)] + get { return new int4(x, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwzx + { + [MethodImpl(0x100)] + get { return new int4(x, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwzy + { + [MethodImpl(0x100)] + get { return new int4(x, w, z, y); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwzz + { + [MethodImpl(0x100)] + get { return new int4(x, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwzw + { + [MethodImpl(0x100)] + get { return new int4(x, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwwx + { + [MethodImpl(0x100)] + get { return new int4(x, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwwy + { + [MethodImpl(0x100)] + get { return new int4(x, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwwz + { + [MethodImpl(0x100)] + get { return new int4(x, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwww + { + [MethodImpl(0x100)] + get { return new int4(x, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxx + { + [MethodImpl(0x100)] + get { return new int4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxy + { + [MethodImpl(0x100)] + get { return new int4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxz + { + [MethodImpl(0x100)] + get { return new int4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxw + { + [MethodImpl(0x100)] + get { return new int4(y, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyx + { + [MethodImpl(0x100)] + get { return new int4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyy + { + [MethodImpl(0x100)] + get { return new int4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyz + { + [MethodImpl(0x100)] + get { return new int4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyw + { + [MethodImpl(0x100)] + get { return new int4(y, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxzx + { + [MethodImpl(0x100)] + get { return new int4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxzy + { + [MethodImpl(0x100)] + get { return new int4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxzz + { + [MethodImpl(0x100)] + get { return new int4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxzw + { + [MethodImpl(0x100)] + get { return new int4(y, x, z, w); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxwx + { + [MethodImpl(0x100)] + get { return new int4(y, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxwy + { + [MethodImpl(0x100)] + get { return new int4(y, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxwz + { + [MethodImpl(0x100)] + get { return new int4(y, x, w, z); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxww + { + [MethodImpl(0x100)] + get { return new int4(y, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxx + { + [MethodImpl(0x100)] + get { return new int4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxy + { + [MethodImpl(0x100)] + get { return new int4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxz + { + [MethodImpl(0x100)] + get { return new int4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxw + { + [MethodImpl(0x100)] + get { return new int4(y, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyx + { + [MethodImpl(0x100)] + get { return new int4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyy + { + [MethodImpl(0x100)] + get { return new int4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyz + { + [MethodImpl(0x100)] + get { return new int4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyw + { + [MethodImpl(0x100)] + get { return new int4(y, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyzx + { + [MethodImpl(0x100)] + get { return new int4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyzy + { + [MethodImpl(0x100)] + get { return new int4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyzz + { + [MethodImpl(0x100)] + get { return new int4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyzw + { + [MethodImpl(0x100)] + get { return new int4(y, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yywx + { + [MethodImpl(0x100)] + get { return new int4(y, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yywy + { + [MethodImpl(0x100)] + get { return new int4(y, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yywz + { + [MethodImpl(0x100)] + get { return new int4(y, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyww + { + [MethodImpl(0x100)] + get { return new int4(y, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzxx + { + [MethodImpl(0x100)] + get { return new int4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzxy + { + [MethodImpl(0x100)] + get { return new int4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzxz + { + [MethodImpl(0x100)] + get { return new int4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzxw + { + [MethodImpl(0x100)] + get { return new int4(y, z, x, w); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzyx + { + [MethodImpl(0x100)] + get { return new int4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzyy + { + [MethodImpl(0x100)] + get { return new int4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzyz + { + [MethodImpl(0x100)] + get { return new int4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzyw + { + [MethodImpl(0x100)] + get { return new int4(y, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzzx + { + [MethodImpl(0x100)] + get { return new int4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzzy + { + [MethodImpl(0x100)] + get { return new int4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzzz + { + [MethodImpl(0x100)] + get { return new int4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzzw + { + [MethodImpl(0x100)] + get { return new int4(y, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzwx + { + [MethodImpl(0x100)] + get { return new int4(y, z, w, x); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzwy + { + [MethodImpl(0x100)] + get { return new int4(y, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzwz + { + [MethodImpl(0x100)] + get { return new int4(y, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzww + { + [MethodImpl(0x100)] + get { return new int4(y, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywxx + { + [MethodImpl(0x100)] + get { return new int4(y, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywxy + { + [MethodImpl(0x100)] + get { return new int4(y, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywxz + { + [MethodImpl(0x100)] + get { return new int4(y, w, x, z); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywxw + { + [MethodImpl(0x100)] + get { return new int4(y, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywyx + { + [MethodImpl(0x100)] + get { return new int4(y, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywyy + { + [MethodImpl(0x100)] + get { return new int4(y, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywyz + { + [MethodImpl(0x100)] + get { return new int4(y, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywyw + { + [MethodImpl(0x100)] + get { return new int4(y, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywzx + { + [MethodImpl(0x100)] + get { return new int4(y, w, z, x); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywzy + { + [MethodImpl(0x100)] + get { return new int4(y, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywzz + { + [MethodImpl(0x100)] + get { return new int4(y, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywzw + { + [MethodImpl(0x100)] + get { return new int4(y, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywwx + { + [MethodImpl(0x100)] + get { return new int4(y, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywwy + { + [MethodImpl(0x100)] + get { return new int4(y, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywwz + { + [MethodImpl(0x100)] + get { return new int4(y, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywww + { + [MethodImpl(0x100)] + get { return new int4(y, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxxx + { + [MethodImpl(0x100)] + get { return new int4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxxy + { + [MethodImpl(0x100)] + get { return new int4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxxz + { + [MethodImpl(0x100)] + get { return new int4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxxw + { + [MethodImpl(0x100)] + get { return new int4(z, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxyx + { + [MethodImpl(0x100)] + get { return new int4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxyy + { + [MethodImpl(0x100)] + get { return new int4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxyz + { + [MethodImpl(0x100)] + get { return new int4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxyw + { + [MethodImpl(0x100)] + get { return new int4(z, x, y, w); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxzx + { + [MethodImpl(0x100)] + get { return new int4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxzy + { + [MethodImpl(0x100)] + get { return new int4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxzz + { + [MethodImpl(0x100)] + get { return new int4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxzw + { + [MethodImpl(0x100)] + get { return new int4(z, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxwx + { + [MethodImpl(0x100)] + get { return new int4(z, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxwy + { + [MethodImpl(0x100)] + get { return new int4(z, x, w, y); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxwz + { + [MethodImpl(0x100)] + get { return new int4(z, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxww + { + [MethodImpl(0x100)] + get { return new int4(z, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyxx + { + [MethodImpl(0x100)] + get { return new int4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyxy + { + [MethodImpl(0x100)] + get { return new int4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyxz + { + [MethodImpl(0x100)] + get { return new int4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyxw + { + [MethodImpl(0x100)] + get { return new int4(z, y, x, w); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyyx + { + [MethodImpl(0x100)] + get { return new int4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyyy + { + [MethodImpl(0x100)] + get { return new int4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyyz + { + [MethodImpl(0x100)] + get { return new int4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyyw + { + [MethodImpl(0x100)] + get { return new int4(z, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyzx + { + [MethodImpl(0x100)] + get { return new int4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyzy + { + [MethodImpl(0x100)] + get { return new int4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyzz + { + [MethodImpl(0x100)] + get { return new int4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyzw + { + [MethodImpl(0x100)] + get { return new int4(z, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zywx + { + [MethodImpl(0x100)] + get { return new int4(z, y, w, x); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zywy + { + [MethodImpl(0x100)] + get { return new int4(z, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zywz + { + [MethodImpl(0x100)] + get { return new int4(z, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyww + { + [MethodImpl(0x100)] + get { return new int4(z, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzxx + { + [MethodImpl(0x100)] + get { return new int4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzxy + { + [MethodImpl(0x100)] + get { return new int4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzxz + { + [MethodImpl(0x100)] + get { return new int4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzxw + { + [MethodImpl(0x100)] + get { return new int4(z, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzyx + { + [MethodImpl(0x100)] + get { return new int4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzyy + { + [MethodImpl(0x100)] + get { return new int4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzyz + { + [MethodImpl(0x100)] + get { return new int4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzyw + { + [MethodImpl(0x100)] + get { return new int4(z, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzzx + { + [MethodImpl(0x100)] + get { return new int4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzzy + { + [MethodImpl(0x100)] + get { return new int4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzzz + { + [MethodImpl(0x100)] + get { return new int4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzzw + { + [MethodImpl(0x100)] + get { return new int4(z, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzwx + { + [MethodImpl(0x100)] + get { return new int4(z, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzwy + { + [MethodImpl(0x100)] + get { return new int4(z, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzwz + { + [MethodImpl(0x100)] + get { return new int4(z, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzww + { + [MethodImpl(0x100)] + get { return new int4(z, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwxx + { + [MethodImpl(0x100)] + get { return new int4(z, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwxy + { + [MethodImpl(0x100)] + get { return new int4(z, w, x, y); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwxz + { + [MethodImpl(0x100)] + get { return new int4(z, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwxw + { + [MethodImpl(0x100)] + get { return new int4(z, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwyx + { + [MethodImpl(0x100)] + get { return new int4(z, w, y, x); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwyy + { + [MethodImpl(0x100)] + get { return new int4(z, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwyz + { + [MethodImpl(0x100)] + get { return new int4(z, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwyw + { + [MethodImpl(0x100)] + get { return new int4(z, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwzx + { + [MethodImpl(0x100)] + get { return new int4(z, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwzy + { + [MethodImpl(0x100)] + get { return new int4(z, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwzz + { + [MethodImpl(0x100)] + get { return new int4(z, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwzw + { + [MethodImpl(0x100)] + get { return new int4(z, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwwx + { + [MethodImpl(0x100)] + get { return new int4(z, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwwy + { + [MethodImpl(0x100)] + get { return new int4(z, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwwz + { + [MethodImpl(0x100)] + get { return new int4(z, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwww + { + [MethodImpl(0x100)] + get { return new int4(z, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxxx + { + [MethodImpl(0x100)] + get { return new int4(w, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxxy + { + [MethodImpl(0x100)] + get { return new int4(w, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxxz + { + [MethodImpl(0x100)] + get { return new int4(w, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxxw + { + [MethodImpl(0x100)] + get { return new int4(w, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxyx + { + [MethodImpl(0x100)] + get { return new int4(w, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxyy + { + [MethodImpl(0x100)] + get { return new int4(w, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxyz + { + [MethodImpl(0x100)] + get { return new int4(w, x, y, z); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxyw + { + [MethodImpl(0x100)] + get { return new int4(w, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxzx + { + [MethodImpl(0x100)] + get { return new int4(w, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxzy + { + [MethodImpl(0x100)] + get { return new int4(w, x, z, y); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxzz + { + [MethodImpl(0x100)] + get { return new int4(w, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxzw + { + [MethodImpl(0x100)] + get { return new int4(w, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxwx + { + [MethodImpl(0x100)] + get { return new int4(w, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxwy + { + [MethodImpl(0x100)] + get { return new int4(w, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxwz + { + [MethodImpl(0x100)] + get { return new int4(w, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxww + { + [MethodImpl(0x100)] + get { return new int4(w, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyxx + { + [MethodImpl(0x100)] + get { return new int4(w, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyxy + { + [MethodImpl(0x100)] + get { return new int4(w, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyxz + { + [MethodImpl(0x100)] + get { return new int4(w, y, x, z); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyxw + { + [MethodImpl(0x100)] + get { return new int4(w, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyyx + { + [MethodImpl(0x100)] + get { return new int4(w, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyyy + { + [MethodImpl(0x100)] + get { return new int4(w, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyyz + { + [MethodImpl(0x100)] + get { return new int4(w, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyyw + { + [MethodImpl(0x100)] + get { return new int4(w, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyzx + { + [MethodImpl(0x100)] + get { return new int4(w, y, z, x); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyzy + { + [MethodImpl(0x100)] + get { return new int4(w, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyzz + { + [MethodImpl(0x100)] + get { return new int4(w, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyzw + { + [MethodImpl(0x100)] + get { return new int4(w, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wywx + { + [MethodImpl(0x100)] + get { return new int4(w, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wywy + { + [MethodImpl(0x100)] + get { return new int4(w, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wywz + { + [MethodImpl(0x100)] + get { return new int4(w, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyww + { + [MethodImpl(0x100)] + get { return new int4(w, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzxx + { + [MethodImpl(0x100)] + get { return new int4(w, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzxy + { + [MethodImpl(0x100)] + get { return new int4(w, z, x, y); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzxz + { + [MethodImpl(0x100)] + get { return new int4(w, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzxw + { + [MethodImpl(0x100)] + get { return new int4(w, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzyx + { + [MethodImpl(0x100)] + get { return new int4(w, z, y, x); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzyy + { + [MethodImpl(0x100)] + get { return new int4(w, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzyz + { + [MethodImpl(0x100)] + get { return new int4(w, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzyw + { + [MethodImpl(0x100)] + get { return new int4(w, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzzx + { + [MethodImpl(0x100)] + get { return new int4(w, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzzy + { + [MethodImpl(0x100)] + get { return new int4(w, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzzz + { + [MethodImpl(0x100)] + get { return new int4(w, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzzw + { + [MethodImpl(0x100)] + get { return new int4(w, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzwx + { + [MethodImpl(0x100)] + get { return new int4(w, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzwy + { + [MethodImpl(0x100)] + get { return new int4(w, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzwz + { + [MethodImpl(0x100)] + get { return new int4(w, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzww + { + [MethodImpl(0x100)] + get { return new int4(w, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwxx + { + [MethodImpl(0x100)] + get { return new int4(w, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwxy + { + [MethodImpl(0x100)] + get { return new int4(w, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwxz + { + [MethodImpl(0x100)] + get { return new int4(w, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwxw + { + [MethodImpl(0x100)] + get { return new int4(w, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwyx + { + [MethodImpl(0x100)] + get { return new int4(w, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwyy + { + [MethodImpl(0x100)] + get { return new int4(w, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwyz + { + [MethodImpl(0x100)] + get { return new int4(w, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwyw + { + [MethodImpl(0x100)] + get { return new int4(w, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwzx + { + [MethodImpl(0x100)] + get { return new int4(w, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwzy + { + [MethodImpl(0x100)] + get { return new int4(w, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwzz + { + [MethodImpl(0x100)] + get { return new int4(w, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwzw + { + [MethodImpl(0x100)] + get { return new int4(w, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwwx + { + [MethodImpl(0x100)] + get { return new int4(w, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwwy + { + [MethodImpl(0x100)] + get { return new int4(w, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwwz + { + [MethodImpl(0x100)] + get { return new int4(w, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwww + { + [MethodImpl(0x100)] + get { return new int4(w, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxx + { + [MethodImpl(0x100)] + get { return new int3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxy + { + [MethodImpl(0x100)] + get { return new int3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxz + { + [MethodImpl(0x100)] + get { return new int3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxw + { + [MethodImpl(0x100)] + get { return new int3(x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyx + { + [MethodImpl(0x100)] + get { return new int3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyy + { + [MethodImpl(0x100)] + get { return new int3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyz + { + [MethodImpl(0x100)] + get { return new int3(x, y, z); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyw + { + [MethodImpl(0x100)] + get { return new int3(x, y, w); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xzx + { + [MethodImpl(0x100)] + get { return new int3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xzy + { + [MethodImpl(0x100)] + get { return new int3(x, z, y); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xzz + { + [MethodImpl(0x100)] + get { return new int3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xzw + { + [MethodImpl(0x100)] + get { return new int3(x, z, w); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xwx + { + [MethodImpl(0x100)] + get { return new int3(x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xwy + { + [MethodImpl(0x100)] + get { return new int3(x, w, y); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xwz + { + [MethodImpl(0x100)] + get { return new int3(x, w, z); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xww + { + [MethodImpl(0x100)] + get { return new int3(x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxx + { + [MethodImpl(0x100)] + get { return new int3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxy + { + [MethodImpl(0x100)] + get { return new int3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxz + { + [MethodImpl(0x100)] + get { return new int3(y, x, z); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxw + { + [MethodImpl(0x100)] + get { return new int3(y, x, w); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyx + { + [MethodImpl(0x100)] + get { return new int3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyy + { + [MethodImpl(0x100)] + get { return new int3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyz + { + [MethodImpl(0x100)] + get { return new int3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyw + { + [MethodImpl(0x100)] + get { return new int3(y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yzx + { + [MethodImpl(0x100)] + get { return new int3(y, z, x); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yzy + { + [MethodImpl(0x100)] + get { return new int3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yzz + { + [MethodImpl(0x100)] + get { return new int3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yzw + { + [MethodImpl(0x100)] + get { return new int3(y, z, w); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 ywx + { + [MethodImpl(0x100)] + get { return new int3(y, w, x); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 ywy + { + [MethodImpl(0x100)] + get { return new int3(y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 ywz + { + [MethodImpl(0x100)] + get { return new int3(y, w, z); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yww + { + [MethodImpl(0x100)] + get { return new int3(y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zxx + { + [MethodImpl(0x100)] + get { return new int3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zxy + { + [MethodImpl(0x100)] + get { return new int3(z, x, y); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zxz + { + [MethodImpl(0x100)] + get { return new int3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zxw + { + [MethodImpl(0x100)] + get { return new int3(z, x, w); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zyx + { + [MethodImpl(0x100)] + get { return new int3(z, y, x); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zyy + { + [MethodImpl(0x100)] + get { return new int3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zyz + { + [MethodImpl(0x100)] + get { return new int3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zyw + { + [MethodImpl(0x100)] + get { return new int3(z, y, w); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zzx + { + [MethodImpl(0x100)] + get { return new int3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zzy + { + [MethodImpl(0x100)] + get { return new int3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zzz + { + [MethodImpl(0x100)] + get { return new int3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zzw + { + [MethodImpl(0x100)] + get { return new int3(z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zwx + { + [MethodImpl(0x100)] + get { return new int3(z, w, x); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zwy + { + [MethodImpl(0x100)] + get { return new int3(z, w, y); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zwz + { + [MethodImpl(0x100)] + get { return new int3(z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zww + { + [MethodImpl(0x100)] + get { return new int3(z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wxx + { + [MethodImpl(0x100)] + get { return new int3(w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wxy + { + [MethodImpl(0x100)] + get { return new int3(w, x, y); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wxz + { + [MethodImpl(0x100)] + get { return new int3(w, x, z); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wxw + { + [MethodImpl(0x100)] + get { return new int3(w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wyx + { + [MethodImpl(0x100)] + get { return new int3(w, y, x); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wyy + { + [MethodImpl(0x100)] + get { return new int3(w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wyz + { + [MethodImpl(0x100)] + get { return new int3(w, y, z); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wyw + { + [MethodImpl(0x100)] + get { return new int3(w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wzx + { + [MethodImpl(0x100)] + get { return new int3(w, z, x); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wzy + { + [MethodImpl(0x100)] + get { return new int3(w, z, y); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wzz + { + [MethodImpl(0x100)] + get { return new int3(w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wzw + { + [MethodImpl(0x100)] + get { return new int3(w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wwx + { + [MethodImpl(0x100)] + get { return new int3(w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wwy + { + [MethodImpl(0x100)] + get { return new int3(w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wwz + { + [MethodImpl(0x100)] + get { return new int3(w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 www + { + [MethodImpl(0x100)] + get { return new int3(w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xx + { + [MethodImpl(0x100)] + get { return new int2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xy + { + [MethodImpl(0x100)] + get { return new int2(x, y); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xz + { + [MethodImpl(0x100)] + get { return new int2(x, z); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xw + { + [MethodImpl(0x100)] + get { return new int2(x, w); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yx + { + [MethodImpl(0x100)] + get { return new int2(y, x); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yy + { + [MethodImpl(0x100)] + get { return new int2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yz + { + [MethodImpl(0x100)] + get { return new int2(y, z); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yw + { + [MethodImpl(0x100)] + get { return new int2(y, w); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 zx + { + [MethodImpl(0x100)] + get { return new int2(z, x); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 zy + { + [MethodImpl(0x100)] + get { return new int2(z, y); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 zz + { + [MethodImpl(0x100)] + get { return new int2(z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 zw + { + [MethodImpl(0x100)] + get { return new int2(z, w); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 wx + { + [MethodImpl(0x100)] + get { return new int2(w, x); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 wy + { + [MethodImpl(0x100)] + get { return new int2(w, y); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 wz + { + [MethodImpl(0x100)] + get { return new int2(w, z); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 ww + { + [MethodImpl(0x100)] + get { return new int2(w, w); } + } + + + } +} diff --git a/src/Unity.Mathematics/uint2.gen.cs b/src/Unity.Mathematics/uint2.gen.cs index b15a6e50..3b49e317 100644 --- a/src/Unity.Mathematics/uint2.gen.cs +++ b/src/Unity.Mathematics/uint2.gen.cs @@ -1,373 +1,373 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct uint2 : System.IEquatable - { - - // mul - [MethodImpl(0x100)] - public static uint2 operator * (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x * rhs.x, lhs.y * rhs.y); } - [MethodImpl(0x100)] - public static uint2 operator * (uint2 lhs, uint rhs) { return new uint2 (lhs.x * rhs, lhs.y * rhs); } - [MethodImpl(0x100)] - public static uint2 operator * (uint lhs, uint2 rhs) { return new uint2 (lhs * rhs.x, lhs * rhs.y); } - - // add - [MethodImpl(0x100)] - public static uint2 operator + (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x + rhs.x, lhs.y + rhs.y); } - [MethodImpl(0x100)] - public static uint2 operator + (uint2 lhs, uint rhs) { return new uint2 (lhs.x + rhs, lhs.y + rhs); } - [MethodImpl(0x100)] - public static uint2 operator + (uint lhs, uint2 rhs) { return new uint2 (lhs + rhs.x, lhs + rhs.y); } - - // sub - [MethodImpl(0x100)] - public static uint2 operator - (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x - rhs.x, lhs.y - rhs.y); } - [MethodImpl(0x100)] - public static uint2 operator - (uint2 lhs, uint rhs) { return new uint2 (lhs.x - rhs, lhs.y - rhs); } - [MethodImpl(0x100)] - public static uint2 operator - (uint lhs, uint2 rhs) { return new uint2 (lhs - rhs.x, lhs - rhs.y); } - - // div - [MethodImpl(0x100)] - public static uint2 operator / (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x / rhs.x, lhs.y / rhs.y); } - [MethodImpl(0x100)] - public static uint2 operator / (uint2 lhs, uint rhs) { return new uint2 (lhs.x / rhs, lhs.y / rhs); } - [MethodImpl(0x100)] - public static uint2 operator / (uint lhs, uint2 rhs) { return new uint2 (lhs / rhs.x, lhs / rhs.y); } - - // smaller - [MethodImpl(0x100)] - public static bool2 operator < (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator < (uint2 lhs, uint rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } - [MethodImpl(0x100)] - public static bool2 operator < (uint lhs, uint2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator <= (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator <= (uint2 lhs, uint rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } - [MethodImpl(0x100)] - public static bool2 operator <= (uint lhs, uint2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } - - // greater - [MethodImpl(0x100)] - public static bool2 operator > (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator > (uint2 lhs, uint rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } - [MethodImpl(0x100)] - public static bool2 operator > (uint lhs, uint2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator >= (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator >= (uint2 lhs, uint rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } - [MethodImpl(0x100)] - public static bool2 operator >= (uint lhs, uint2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } - - // left shift - [MethodImpl(0x100)] - public static uint2 operator << (uint2 lhs, int rhs) { return new uint2 (lhs.x << rhs, lhs.y << rhs); } - - // right shift - [MethodImpl(0x100)] - public static uint2 operator >> (uint2 lhs, int rhs) { return new uint2 (lhs.x >> rhs, lhs.y >> rhs); } - - // equal - [MethodImpl(0x100)] - public static bool2 operator == (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator == (uint2 lhs, uint rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - [MethodImpl(0x100)] - public static bool2 operator == (uint lhs, uint2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } - - // not equal - [MethodImpl(0x100)] - public static bool2 operator != (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - [MethodImpl(0x100)] - public static bool2 operator != (uint2 lhs, uint rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - [MethodImpl(0x100)] - public static bool2 operator != (uint lhs, uint2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } - - // Equals - [MethodImpl(0x100)] - public bool Equals(uint2 rhs) { return x == rhs.x && y == rhs.y; } - - // [int index] - unsafe public uint this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (uint* array = &x) { return array[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (uint* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(0x100)] - public static uint2 operator & (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x & rhs.x, lhs.y & rhs.y); } - [MethodImpl(0x100)] - public static uint2 operator & (uint2 lhs, uint rhs) { return new uint2 (lhs.x & rhs, lhs.y & rhs); } - [MethodImpl(0x100)] - public static uint2 operator & (uint lhs, uint2 rhs) { return new uint2 (lhs & rhs.x, lhs & rhs.y); } - - // operator | - [MethodImpl(0x100)] - public static uint2 operator | (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x | rhs.x, lhs.y | rhs.y); } - [MethodImpl(0x100)] - public static uint2 operator | (uint2 lhs, uint rhs) { return new uint2 (lhs.x | rhs, lhs.y | rhs); } - [MethodImpl(0x100)] - public static uint2 operator | (uint lhs, uint2 rhs) { return new uint2 (lhs | rhs.x, lhs | rhs.y); } - - // operator ^ - [MethodImpl(0x100)] - public static uint2 operator ^ (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } - [MethodImpl(0x100)] - public static uint2 operator ^ (uint2 lhs, uint rhs) { return new uint2 (lhs.x ^ rhs, lhs.y ^ rhs); } - [MethodImpl(0x100)] - public static uint2 operator ^ (uint lhs, uint2 rhs) { return new uint2 (lhs ^ rhs.x, lhs ^ rhs.y); } - - // operator ~ - [MethodImpl(0x100)] - public static uint2 operator ~ (uint2 val) { return new uint2 (~val.x, ~val.y); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxx - { - [MethodImpl(0x100)] - get { return new uint4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxy - { - [MethodImpl(0x100)] - get { return new uint4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyx - { - [MethodImpl(0x100)] - get { return new uint4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyy - { - [MethodImpl(0x100)] - get { return new uint4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxx - { - [MethodImpl(0x100)] - get { return new uint4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxy - { - [MethodImpl(0x100)] - get { return new uint4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyx - { - [MethodImpl(0x100)] - get { return new uint4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyy - { - [MethodImpl(0x100)] - get { return new uint4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxx - { - [MethodImpl(0x100)] - get { return new uint4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxy - { - [MethodImpl(0x100)] - get { return new uint4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyx - { - [MethodImpl(0x100)] - get { return new uint4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyy - { - [MethodImpl(0x100)] - get { return new uint4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxx - { - [MethodImpl(0x100)] - get { return new uint4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxy - { - [MethodImpl(0x100)] - get { return new uint4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyx - { - [MethodImpl(0x100)] - get { return new uint4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyy - { - [MethodImpl(0x100)] - get { return new uint4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxx - { - [MethodImpl(0x100)] - get { return new uint3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxy - { - [MethodImpl(0x100)] - get { return new uint3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyx - { - [MethodImpl(0x100)] - get { return new uint3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyy - { - [MethodImpl(0x100)] - get { return new uint3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxx - { - [MethodImpl(0x100)] - get { return new uint3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxy - { - [MethodImpl(0x100)] - get { return new uint3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyx - { - [MethodImpl(0x100)] - get { return new uint3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyy - { - [MethodImpl(0x100)] - get { return new uint3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xx - { - [MethodImpl(0x100)] - get { return new uint2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xy - { - [MethodImpl(0x100)] - get { return new uint2(x, y); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yx - { - [MethodImpl(0x100)] - get { return new uint2(y, x); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yy - { - [MethodImpl(0x100)] - get { return new uint2(y, y); } - } - - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct uint2 : System.IEquatable + { + + // mul + [MethodImpl(0x100)] + public static uint2 operator * (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x * rhs.x, lhs.y * rhs.y); } + [MethodImpl(0x100)] + public static uint2 operator * (uint2 lhs, uint rhs) { return new uint2 (lhs.x * rhs, lhs.y * rhs); } + [MethodImpl(0x100)] + public static uint2 operator * (uint lhs, uint2 rhs) { return new uint2 (lhs * rhs.x, lhs * rhs.y); } + + // add + [MethodImpl(0x100)] + public static uint2 operator + (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x + rhs.x, lhs.y + rhs.y); } + [MethodImpl(0x100)] + public static uint2 operator + (uint2 lhs, uint rhs) { return new uint2 (lhs.x + rhs, lhs.y + rhs); } + [MethodImpl(0x100)] + public static uint2 operator + (uint lhs, uint2 rhs) { return new uint2 (lhs + rhs.x, lhs + rhs.y); } + + // sub + [MethodImpl(0x100)] + public static uint2 operator - (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x - rhs.x, lhs.y - rhs.y); } + [MethodImpl(0x100)] + public static uint2 operator - (uint2 lhs, uint rhs) { return new uint2 (lhs.x - rhs, lhs.y - rhs); } + [MethodImpl(0x100)] + public static uint2 operator - (uint lhs, uint2 rhs) { return new uint2 (lhs - rhs.x, lhs - rhs.y); } + + // div + [MethodImpl(0x100)] + public static uint2 operator / (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x / rhs.x, lhs.y / rhs.y); } + [MethodImpl(0x100)] + public static uint2 operator / (uint2 lhs, uint rhs) { return new uint2 (lhs.x / rhs, lhs.y / rhs); } + [MethodImpl(0x100)] + public static uint2 operator / (uint lhs, uint2 rhs) { return new uint2 (lhs / rhs.x, lhs / rhs.y); } + + // smaller + [MethodImpl(0x100)] + public static bool2 operator < (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator < (uint2 lhs, uint rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } + [MethodImpl(0x100)] + public static bool2 operator < (uint lhs, uint2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator <= (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator <= (uint2 lhs, uint rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } + [MethodImpl(0x100)] + public static bool2 operator <= (uint lhs, uint2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } + + // greater + [MethodImpl(0x100)] + public static bool2 operator > (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator > (uint2 lhs, uint rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } + [MethodImpl(0x100)] + public static bool2 operator > (uint lhs, uint2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator >= (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator >= (uint2 lhs, uint rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } + [MethodImpl(0x100)] + public static bool2 operator >= (uint lhs, uint2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } + + // left shift + [MethodImpl(0x100)] + public static uint2 operator << (uint2 lhs, int rhs) { return new uint2 (lhs.x << rhs, lhs.y << rhs); } + + // right shift + [MethodImpl(0x100)] + public static uint2 operator >> (uint2 lhs, int rhs) { return new uint2 (lhs.x >> rhs, lhs.y >> rhs); } + + // equal + [MethodImpl(0x100)] + public static bool2 operator == (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator == (uint2 lhs, uint rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } + [MethodImpl(0x100)] + public static bool2 operator == (uint lhs, uint2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } + + // not equal + [MethodImpl(0x100)] + public static bool2 operator != (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } + [MethodImpl(0x100)] + public static bool2 operator != (uint2 lhs, uint rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } + [MethodImpl(0x100)] + public static bool2 operator != (uint lhs, uint2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } + + // Equals + [MethodImpl(0x100)] + public bool Equals(uint2 rhs) { return x == rhs.x && y == rhs.y; } + + // [int index] + unsafe public uint this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (uint2* array = &this) { return ((uint*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (uint* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(0x100)] + public static uint2 operator & (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x & rhs.x, lhs.y & rhs.y); } + [MethodImpl(0x100)] + public static uint2 operator & (uint2 lhs, uint rhs) { return new uint2 (lhs.x & rhs, lhs.y & rhs); } + [MethodImpl(0x100)] + public static uint2 operator & (uint lhs, uint2 rhs) { return new uint2 (lhs & rhs.x, lhs & rhs.y); } + + // operator | + [MethodImpl(0x100)] + public static uint2 operator | (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x | rhs.x, lhs.y | rhs.y); } + [MethodImpl(0x100)] + public static uint2 operator | (uint2 lhs, uint rhs) { return new uint2 (lhs.x | rhs, lhs.y | rhs); } + [MethodImpl(0x100)] + public static uint2 operator | (uint lhs, uint2 rhs) { return new uint2 (lhs | rhs.x, lhs | rhs.y); } + + // operator ^ + [MethodImpl(0x100)] + public static uint2 operator ^ (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } + [MethodImpl(0x100)] + public static uint2 operator ^ (uint2 lhs, uint rhs) { return new uint2 (lhs.x ^ rhs, lhs.y ^ rhs); } + [MethodImpl(0x100)] + public static uint2 operator ^ (uint lhs, uint2 rhs) { return new uint2 (lhs ^ rhs.x, lhs ^ rhs.y); } + + // operator ~ + [MethodImpl(0x100)] + public static uint2 operator ~ (uint2 val) { return new uint2 (~val.x, ~val.y); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxx + { + [MethodImpl(0x100)] + get { return new uint4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxy + { + [MethodImpl(0x100)] + get { return new uint4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyx + { + [MethodImpl(0x100)] + get { return new uint4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyy + { + [MethodImpl(0x100)] + get { return new uint4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxx + { + [MethodImpl(0x100)] + get { return new uint4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxy + { + [MethodImpl(0x100)] + get { return new uint4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyx + { + [MethodImpl(0x100)] + get { return new uint4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyy + { + [MethodImpl(0x100)] + get { return new uint4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxx + { + [MethodImpl(0x100)] + get { return new uint4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxy + { + [MethodImpl(0x100)] + get { return new uint4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyx + { + [MethodImpl(0x100)] + get { return new uint4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyy + { + [MethodImpl(0x100)] + get { return new uint4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxx + { + [MethodImpl(0x100)] + get { return new uint4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxy + { + [MethodImpl(0x100)] + get { return new uint4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyx + { + [MethodImpl(0x100)] + get { return new uint4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyy + { + [MethodImpl(0x100)] + get { return new uint4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxx + { + [MethodImpl(0x100)] + get { return new uint3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxy + { + [MethodImpl(0x100)] + get { return new uint3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyx + { + [MethodImpl(0x100)] + get { return new uint3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyy + { + [MethodImpl(0x100)] + get { return new uint3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxx + { + [MethodImpl(0x100)] + get { return new uint3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxy + { + [MethodImpl(0x100)] + get { return new uint3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyx + { + [MethodImpl(0x100)] + get { return new uint3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyy + { + [MethodImpl(0x100)] + get { return new uint3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xx + { + [MethodImpl(0x100)] + get { return new uint2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xy + { + [MethodImpl(0x100)] + get { return new uint2(x, y); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yx + { + [MethodImpl(0x100)] + get { return new uint2(y, x); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yy + { + [MethodImpl(0x100)] + get { return new uint2(y, y); } + } + + + } +} diff --git a/src/Unity.Mathematics/uint3.gen.cs b/src/Unity.Mathematics/uint3.gen.cs index 6cbe73e3..c04695b7 100644 --- a/src/Unity.Mathematics/uint3.gen.cs +++ b/src/Unity.Mathematics/uint3.gen.cs @@ -1,1105 +1,1105 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct uint3 : System.IEquatable - { - - // mul - [MethodImpl(0x100)] - public static uint3 operator * (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } - [MethodImpl(0x100)] - public static uint3 operator * (uint3 lhs, uint rhs) { return new uint3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } - [MethodImpl(0x100)] - public static uint3 operator * (uint lhs, uint3 rhs) { return new uint3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } - - // add - [MethodImpl(0x100)] - public static uint3 operator + (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } - [MethodImpl(0x100)] - public static uint3 operator + (uint3 lhs, uint rhs) { return new uint3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } - [MethodImpl(0x100)] - public static uint3 operator + (uint lhs, uint3 rhs) { return new uint3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } - - // sub - [MethodImpl(0x100)] - public static uint3 operator - (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } - [MethodImpl(0x100)] - public static uint3 operator - (uint3 lhs, uint rhs) { return new uint3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } - [MethodImpl(0x100)] - public static uint3 operator - (uint lhs, uint3 rhs) { return new uint3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } - - // div - [MethodImpl(0x100)] - public static uint3 operator / (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } - [MethodImpl(0x100)] - public static uint3 operator / (uint3 lhs, uint rhs) { return new uint3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } - [MethodImpl(0x100)] - public static uint3 operator / (uint lhs, uint3 rhs) { return new uint3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } - - // smaller - [MethodImpl(0x100)] - public static bool3 operator < (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator < (uint3 lhs, uint rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } - [MethodImpl(0x100)] - public static bool3 operator < (uint lhs, uint3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator <= (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator <= (uint3 lhs, uint rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } - [MethodImpl(0x100)] - public static bool3 operator <= (uint lhs, uint3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } - - // greater - [MethodImpl(0x100)] - public static bool3 operator > (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator > (uint3 lhs, uint rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } - [MethodImpl(0x100)] - public static bool3 operator > (uint lhs, uint3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator >= (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator >= (uint3 lhs, uint rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } - [MethodImpl(0x100)] - public static bool3 operator >= (uint lhs, uint3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } - - // left shift - [MethodImpl(0x100)] - public static uint3 operator << (uint3 lhs, int rhs) { return new uint3 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs); } - - // right shift - [MethodImpl(0x100)] - public static uint3 operator >> (uint3 lhs, int rhs) { return new uint3 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs); } - - // equal - [MethodImpl(0x100)] - public static bool3 operator == (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator == (uint3 lhs, uint rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - [MethodImpl(0x100)] - public static bool3 operator == (uint lhs, uint3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } - - // not equal - [MethodImpl(0x100)] - public static bool3 operator != (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - [MethodImpl(0x100)] - public static bool3 operator != (uint3 lhs, uint rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - [MethodImpl(0x100)] - public static bool3 operator != (uint lhs, uint3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } - - // Equals - [MethodImpl(0x100)] - public bool Equals(uint3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } - - // [int index] - unsafe public uint this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (uint* array = &x) { return array[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (uint* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(0x100)] - public static uint3 operator & (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } - [MethodImpl(0x100)] - public static uint3 operator & (uint3 lhs, uint rhs) { return new uint3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } - [MethodImpl(0x100)] - public static uint3 operator & (uint lhs, uint3 rhs) { return new uint3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } - - // operator | - [MethodImpl(0x100)] - public static uint3 operator | (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } - [MethodImpl(0x100)] - public static uint3 operator | (uint3 lhs, uint rhs) { return new uint3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } - [MethodImpl(0x100)] - public static uint3 operator | (uint lhs, uint3 rhs) { return new uint3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } - - // operator ^ - [MethodImpl(0x100)] - public static uint3 operator ^ (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } - [MethodImpl(0x100)] - public static uint3 operator ^ (uint3 lhs, uint rhs) { return new uint3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } - [MethodImpl(0x100)] - public static uint3 operator ^ (uint lhs, uint3 rhs) { return new uint3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } - - // operator ~ - [MethodImpl(0x100)] - public static uint3 operator ~ (uint3 val) { return new uint3 (~val.x, ~val.y, ~val.z); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxx - { - [MethodImpl(0x100)] - get { return new uint4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxy - { - [MethodImpl(0x100)] - get { return new uint4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxz - { - [MethodImpl(0x100)] - get { return new uint4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyx - { - [MethodImpl(0x100)] - get { return new uint4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyy - { - [MethodImpl(0x100)] - get { return new uint4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyz - { - [MethodImpl(0x100)] - get { return new uint4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzx - { - [MethodImpl(0x100)] - get { return new uint4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzy - { - [MethodImpl(0x100)] - get { return new uint4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzz - { - [MethodImpl(0x100)] - get { return new uint4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxx - { - [MethodImpl(0x100)] - get { return new uint4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxy - { - [MethodImpl(0x100)] - get { return new uint4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxz - { - [MethodImpl(0x100)] - get { return new uint4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyx - { - [MethodImpl(0x100)] - get { return new uint4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyy - { - [MethodImpl(0x100)] - get { return new uint4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyz - { - [MethodImpl(0x100)] - get { return new uint4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzx - { - [MethodImpl(0x100)] - get { return new uint4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzy - { - [MethodImpl(0x100)] - get { return new uint4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzz - { - [MethodImpl(0x100)] - get { return new uint4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxx - { - [MethodImpl(0x100)] - get { return new uint4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxy - { - [MethodImpl(0x100)] - get { return new uint4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxz - { - [MethodImpl(0x100)] - get { return new uint4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyx - { - [MethodImpl(0x100)] - get { return new uint4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyy - { - [MethodImpl(0x100)] - get { return new uint4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyz - { - [MethodImpl(0x100)] - get { return new uint4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzx - { - [MethodImpl(0x100)] - get { return new uint4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzy - { - [MethodImpl(0x100)] - get { return new uint4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzz - { - [MethodImpl(0x100)] - get { return new uint4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxx - { - [MethodImpl(0x100)] - get { return new uint4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxy - { - [MethodImpl(0x100)] - get { return new uint4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxz - { - [MethodImpl(0x100)] - get { return new uint4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyx - { - [MethodImpl(0x100)] - get { return new uint4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyy - { - [MethodImpl(0x100)] - get { return new uint4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyz - { - [MethodImpl(0x100)] - get { return new uint4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzx - { - [MethodImpl(0x100)] - get { return new uint4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzy - { - [MethodImpl(0x100)] - get { return new uint4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzz - { - [MethodImpl(0x100)] - get { return new uint4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxx - { - [MethodImpl(0x100)] - get { return new uint4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxy - { - [MethodImpl(0x100)] - get { return new uint4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxz - { - [MethodImpl(0x100)] - get { return new uint4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyx - { - [MethodImpl(0x100)] - get { return new uint4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyy - { - [MethodImpl(0x100)] - get { return new uint4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyz - { - [MethodImpl(0x100)] - get { return new uint4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzx - { - [MethodImpl(0x100)] - get { return new uint4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzy - { - [MethodImpl(0x100)] - get { return new uint4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzz - { - [MethodImpl(0x100)] - get { return new uint4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxx - { - [MethodImpl(0x100)] - get { return new uint4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxy - { - [MethodImpl(0x100)] - get { return new uint4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxz - { - [MethodImpl(0x100)] - get { return new uint4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyx - { - [MethodImpl(0x100)] - get { return new uint4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyy - { - [MethodImpl(0x100)] - get { return new uint4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyz - { - [MethodImpl(0x100)] - get { return new uint4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzx - { - [MethodImpl(0x100)] - get { return new uint4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzy - { - [MethodImpl(0x100)] - get { return new uint4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzz - { - [MethodImpl(0x100)] - get { return new uint4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxx - { - [MethodImpl(0x100)] - get { return new uint4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxy - { - [MethodImpl(0x100)] - get { return new uint4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxz - { - [MethodImpl(0x100)] - get { return new uint4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyx - { - [MethodImpl(0x100)] - get { return new uint4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyy - { - [MethodImpl(0x100)] - get { return new uint4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyz - { - [MethodImpl(0x100)] - get { return new uint4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzx - { - [MethodImpl(0x100)] - get { return new uint4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzy - { - [MethodImpl(0x100)] - get { return new uint4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzz - { - [MethodImpl(0x100)] - get { return new uint4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxx - { - [MethodImpl(0x100)] - get { return new uint4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxy - { - [MethodImpl(0x100)] - get { return new uint4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxz - { - [MethodImpl(0x100)] - get { return new uint4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyx - { - [MethodImpl(0x100)] - get { return new uint4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyy - { - [MethodImpl(0x100)] - get { return new uint4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyz - { - [MethodImpl(0x100)] - get { return new uint4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzx - { - [MethodImpl(0x100)] - get { return new uint4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzy - { - [MethodImpl(0x100)] - get { return new uint4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzz - { - [MethodImpl(0x100)] - get { return new uint4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxx - { - [MethodImpl(0x100)] - get { return new uint4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxy - { - [MethodImpl(0x100)] - get { return new uint4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxz - { - [MethodImpl(0x100)] - get { return new uint4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyx - { - [MethodImpl(0x100)] - get { return new uint4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyy - { - [MethodImpl(0x100)] - get { return new uint4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyz - { - [MethodImpl(0x100)] - get { return new uint4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzx - { - [MethodImpl(0x100)] - get { return new uint4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzy - { - [MethodImpl(0x100)] - get { return new uint4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzz - { - [MethodImpl(0x100)] - get { return new uint4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxx - { - [MethodImpl(0x100)] - get { return new uint3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxy - { - [MethodImpl(0x100)] - get { return new uint3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxz - { - [MethodImpl(0x100)] - get { return new uint3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyx - { - [MethodImpl(0x100)] - get { return new uint3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyy - { - [MethodImpl(0x100)] - get { return new uint3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyz - { - [MethodImpl(0x100)] - get { return new uint3(x, y, z); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzx - { - [MethodImpl(0x100)] - get { return new uint3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzy - { - [MethodImpl(0x100)] - get { return new uint3(x, z, y); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzz - { - [MethodImpl(0x100)] - get { return new uint3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxx - { - [MethodImpl(0x100)] - get { return new uint3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxy - { - [MethodImpl(0x100)] - get { return new uint3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxz - { - [MethodImpl(0x100)] - get { return new uint3(y, x, z); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyx - { - [MethodImpl(0x100)] - get { return new uint3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyy - { - [MethodImpl(0x100)] - get { return new uint3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyz - { - [MethodImpl(0x100)] - get { return new uint3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzx - { - [MethodImpl(0x100)] - get { return new uint3(y, z, x); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzy - { - [MethodImpl(0x100)] - get { return new uint3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzz - { - [MethodImpl(0x100)] - get { return new uint3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxx - { - [MethodImpl(0x100)] - get { return new uint3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxy - { - [MethodImpl(0x100)] - get { return new uint3(z, x, y); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxz - { - [MethodImpl(0x100)] - get { return new uint3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyx - { - [MethodImpl(0x100)] - get { return new uint3(z, y, x); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyy - { - [MethodImpl(0x100)] - get { return new uint3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyz - { - [MethodImpl(0x100)] - get { return new uint3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzx - { - [MethodImpl(0x100)] - get { return new uint3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzy - { - [MethodImpl(0x100)] - get { return new uint3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzz - { - [MethodImpl(0x100)] - get { return new uint3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xx - { - [MethodImpl(0x100)] - get { return new uint2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xy - { - [MethodImpl(0x100)] - get { return new uint2(x, y); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xz - { - [MethodImpl(0x100)] - get { return new uint2(x, z); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yx - { - [MethodImpl(0x100)] - get { return new uint2(y, x); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yy - { - [MethodImpl(0x100)] - get { return new uint2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yz - { - [MethodImpl(0x100)] - get { return new uint2(y, z); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zx - { - [MethodImpl(0x100)] - get { return new uint2(z, x); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zy - { - [MethodImpl(0x100)] - get { return new uint2(z, y); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zz - { - [MethodImpl(0x100)] - get { return new uint2(z, z); } - } - - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct uint3 : System.IEquatable + { + + // mul + [MethodImpl(0x100)] + public static uint3 operator * (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } + [MethodImpl(0x100)] + public static uint3 operator * (uint3 lhs, uint rhs) { return new uint3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } + [MethodImpl(0x100)] + public static uint3 operator * (uint lhs, uint3 rhs) { return new uint3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } + + // add + [MethodImpl(0x100)] + public static uint3 operator + (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } + [MethodImpl(0x100)] + public static uint3 operator + (uint3 lhs, uint rhs) { return new uint3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } + [MethodImpl(0x100)] + public static uint3 operator + (uint lhs, uint3 rhs) { return new uint3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } + + // sub + [MethodImpl(0x100)] + public static uint3 operator - (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } + [MethodImpl(0x100)] + public static uint3 operator - (uint3 lhs, uint rhs) { return new uint3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } + [MethodImpl(0x100)] + public static uint3 operator - (uint lhs, uint3 rhs) { return new uint3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } + + // div + [MethodImpl(0x100)] + public static uint3 operator / (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } + [MethodImpl(0x100)] + public static uint3 operator / (uint3 lhs, uint rhs) { return new uint3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } + [MethodImpl(0x100)] + public static uint3 operator / (uint lhs, uint3 rhs) { return new uint3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } + + // smaller + [MethodImpl(0x100)] + public static bool3 operator < (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator < (uint3 lhs, uint rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } + [MethodImpl(0x100)] + public static bool3 operator < (uint lhs, uint3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator <= (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator <= (uint3 lhs, uint rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } + [MethodImpl(0x100)] + public static bool3 operator <= (uint lhs, uint3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } + + // greater + [MethodImpl(0x100)] + public static bool3 operator > (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator > (uint3 lhs, uint rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } + [MethodImpl(0x100)] + public static bool3 operator > (uint lhs, uint3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator >= (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator >= (uint3 lhs, uint rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } + [MethodImpl(0x100)] + public static bool3 operator >= (uint lhs, uint3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } + + // left shift + [MethodImpl(0x100)] + public static uint3 operator << (uint3 lhs, int rhs) { return new uint3 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs); } + + // right shift + [MethodImpl(0x100)] + public static uint3 operator >> (uint3 lhs, int rhs) { return new uint3 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs); } + + // equal + [MethodImpl(0x100)] + public static bool3 operator == (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator == (uint3 lhs, uint rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } + [MethodImpl(0x100)] + public static bool3 operator == (uint lhs, uint3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } + + // not equal + [MethodImpl(0x100)] + public static bool3 operator != (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } + [MethodImpl(0x100)] + public static bool3 operator != (uint3 lhs, uint rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } + [MethodImpl(0x100)] + public static bool3 operator != (uint lhs, uint3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } + + // Equals + [MethodImpl(0x100)] + public bool Equals(uint3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } + + // [int index] + unsafe public uint this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (uint3* array = &this) { return ((uint*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (uint* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(0x100)] + public static uint3 operator & (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } + [MethodImpl(0x100)] + public static uint3 operator & (uint3 lhs, uint rhs) { return new uint3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } + [MethodImpl(0x100)] + public static uint3 operator & (uint lhs, uint3 rhs) { return new uint3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } + + // operator | + [MethodImpl(0x100)] + public static uint3 operator | (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } + [MethodImpl(0x100)] + public static uint3 operator | (uint3 lhs, uint rhs) { return new uint3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } + [MethodImpl(0x100)] + public static uint3 operator | (uint lhs, uint3 rhs) { return new uint3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } + + // operator ^ + [MethodImpl(0x100)] + public static uint3 operator ^ (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } + [MethodImpl(0x100)] + public static uint3 operator ^ (uint3 lhs, uint rhs) { return new uint3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } + [MethodImpl(0x100)] + public static uint3 operator ^ (uint lhs, uint3 rhs) { return new uint3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } + + // operator ~ + [MethodImpl(0x100)] + public static uint3 operator ~ (uint3 val) { return new uint3 (~val.x, ~val.y, ~val.z); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxx + { + [MethodImpl(0x100)] + get { return new uint4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxy + { + [MethodImpl(0x100)] + get { return new uint4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxz + { + [MethodImpl(0x100)] + get { return new uint4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyx + { + [MethodImpl(0x100)] + get { return new uint4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyy + { + [MethodImpl(0x100)] + get { return new uint4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyz + { + [MethodImpl(0x100)] + get { return new uint4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxzx + { + [MethodImpl(0x100)] + get { return new uint4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxzy + { + [MethodImpl(0x100)] + get { return new uint4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxzz + { + [MethodImpl(0x100)] + get { return new uint4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxx + { + [MethodImpl(0x100)] + get { return new uint4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxy + { + [MethodImpl(0x100)] + get { return new uint4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxz + { + [MethodImpl(0x100)] + get { return new uint4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyx + { + [MethodImpl(0x100)] + get { return new uint4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyy + { + [MethodImpl(0x100)] + get { return new uint4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyz + { + [MethodImpl(0x100)] + get { return new uint4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyzx + { + [MethodImpl(0x100)] + get { return new uint4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyzy + { + [MethodImpl(0x100)] + get { return new uint4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyzz + { + [MethodImpl(0x100)] + get { return new uint4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzxx + { + [MethodImpl(0x100)] + get { return new uint4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzxy + { + [MethodImpl(0x100)] + get { return new uint4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzxz + { + [MethodImpl(0x100)] + get { return new uint4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzyx + { + [MethodImpl(0x100)] + get { return new uint4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzyy + { + [MethodImpl(0x100)] + get { return new uint4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzyz + { + [MethodImpl(0x100)] + get { return new uint4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzzx + { + [MethodImpl(0x100)] + get { return new uint4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzzy + { + [MethodImpl(0x100)] + get { return new uint4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzzz + { + [MethodImpl(0x100)] + get { return new uint4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxx + { + [MethodImpl(0x100)] + get { return new uint4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxy + { + [MethodImpl(0x100)] + get { return new uint4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxz + { + [MethodImpl(0x100)] + get { return new uint4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyx + { + [MethodImpl(0x100)] + get { return new uint4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyy + { + [MethodImpl(0x100)] + get { return new uint4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyz + { + [MethodImpl(0x100)] + get { return new uint4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxzx + { + [MethodImpl(0x100)] + get { return new uint4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxzy + { + [MethodImpl(0x100)] + get { return new uint4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxzz + { + [MethodImpl(0x100)] + get { return new uint4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxx + { + [MethodImpl(0x100)] + get { return new uint4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxy + { + [MethodImpl(0x100)] + get { return new uint4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxz + { + [MethodImpl(0x100)] + get { return new uint4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyx + { + [MethodImpl(0x100)] + get { return new uint4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyy + { + [MethodImpl(0x100)] + get { return new uint4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyz + { + [MethodImpl(0x100)] + get { return new uint4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyzx + { + [MethodImpl(0x100)] + get { return new uint4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyzy + { + [MethodImpl(0x100)] + get { return new uint4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyzz + { + [MethodImpl(0x100)] + get { return new uint4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzxx + { + [MethodImpl(0x100)] + get { return new uint4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzxy + { + [MethodImpl(0x100)] + get { return new uint4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzxz + { + [MethodImpl(0x100)] + get { return new uint4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzyx + { + [MethodImpl(0x100)] + get { return new uint4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzyy + { + [MethodImpl(0x100)] + get { return new uint4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzyz + { + [MethodImpl(0x100)] + get { return new uint4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzzx + { + [MethodImpl(0x100)] + get { return new uint4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzzy + { + [MethodImpl(0x100)] + get { return new uint4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzzz + { + [MethodImpl(0x100)] + get { return new uint4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxxx + { + [MethodImpl(0x100)] + get { return new uint4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxxy + { + [MethodImpl(0x100)] + get { return new uint4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxxz + { + [MethodImpl(0x100)] + get { return new uint4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxyx + { + [MethodImpl(0x100)] + get { return new uint4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxyy + { + [MethodImpl(0x100)] + get { return new uint4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxyz + { + [MethodImpl(0x100)] + get { return new uint4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxzx + { + [MethodImpl(0x100)] + get { return new uint4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxzy + { + [MethodImpl(0x100)] + get { return new uint4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxzz + { + [MethodImpl(0x100)] + get { return new uint4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyxx + { + [MethodImpl(0x100)] + get { return new uint4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyxy + { + [MethodImpl(0x100)] + get { return new uint4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyxz + { + [MethodImpl(0x100)] + get { return new uint4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyyx + { + [MethodImpl(0x100)] + get { return new uint4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyyy + { + [MethodImpl(0x100)] + get { return new uint4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyyz + { + [MethodImpl(0x100)] + get { return new uint4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyzx + { + [MethodImpl(0x100)] + get { return new uint4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyzy + { + [MethodImpl(0x100)] + get { return new uint4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyzz + { + [MethodImpl(0x100)] + get { return new uint4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzxx + { + [MethodImpl(0x100)] + get { return new uint4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzxy + { + [MethodImpl(0x100)] + get { return new uint4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzxz + { + [MethodImpl(0x100)] + get { return new uint4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzyx + { + [MethodImpl(0x100)] + get { return new uint4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzyy + { + [MethodImpl(0x100)] + get { return new uint4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzyz + { + [MethodImpl(0x100)] + get { return new uint4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzzx + { + [MethodImpl(0x100)] + get { return new uint4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzzy + { + [MethodImpl(0x100)] + get { return new uint4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzzz + { + [MethodImpl(0x100)] + get { return new uint4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxx + { + [MethodImpl(0x100)] + get { return new uint3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxy + { + [MethodImpl(0x100)] + get { return new uint3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxz + { + [MethodImpl(0x100)] + get { return new uint3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyx + { + [MethodImpl(0x100)] + get { return new uint3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyy + { + [MethodImpl(0x100)] + get { return new uint3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyz + { + [MethodImpl(0x100)] + get { return new uint3(x, y, z); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xzx + { + [MethodImpl(0x100)] + get { return new uint3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xzy + { + [MethodImpl(0x100)] + get { return new uint3(x, z, y); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xzz + { + [MethodImpl(0x100)] + get { return new uint3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxx + { + [MethodImpl(0x100)] + get { return new uint3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxy + { + [MethodImpl(0x100)] + get { return new uint3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxz + { + [MethodImpl(0x100)] + get { return new uint3(y, x, z); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyx + { + [MethodImpl(0x100)] + get { return new uint3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyy + { + [MethodImpl(0x100)] + get { return new uint3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyz + { + [MethodImpl(0x100)] + get { return new uint3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yzx + { + [MethodImpl(0x100)] + get { return new uint3(y, z, x); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yzy + { + [MethodImpl(0x100)] + get { return new uint3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yzz + { + [MethodImpl(0x100)] + get { return new uint3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zxx + { + [MethodImpl(0x100)] + get { return new uint3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zxy + { + [MethodImpl(0x100)] + get { return new uint3(z, x, y); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zxz + { + [MethodImpl(0x100)] + get { return new uint3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zyx + { + [MethodImpl(0x100)] + get { return new uint3(z, y, x); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zyy + { + [MethodImpl(0x100)] + get { return new uint3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zyz + { + [MethodImpl(0x100)] + get { return new uint3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zzx + { + [MethodImpl(0x100)] + get { return new uint3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zzy + { + [MethodImpl(0x100)] + get { return new uint3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zzz + { + [MethodImpl(0x100)] + get { return new uint3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xx + { + [MethodImpl(0x100)] + get { return new uint2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xy + { + [MethodImpl(0x100)] + get { return new uint2(x, y); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xz + { + [MethodImpl(0x100)] + get { return new uint2(x, z); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yx + { + [MethodImpl(0x100)] + get { return new uint2(y, x); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yy + { + [MethodImpl(0x100)] + get { return new uint2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yz + { + [MethodImpl(0x100)] + get { return new uint2(y, z); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 zx + { + [MethodImpl(0x100)] + get { return new uint2(z, x); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 zy + { + [MethodImpl(0x100)] + get { return new uint2(z, y); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 zz + { + [MethodImpl(0x100)] + get { return new uint2(z, z); } + } + + + } +} diff --git a/src/Unity.Mathematics/uint4.gen.cs b/src/Unity.Mathematics/uint4.gen.cs index 082d34bb..8a1b73f7 100644 --- a/src/Unity.Mathematics/uint4.gen.cs +++ b/src/Unity.Mathematics/uint4.gen.cs @@ -1,2953 +1,2953 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct uint4 : System.IEquatable - { - - // mul - [MethodImpl(0x100)] - public static uint4 operator * (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } - [MethodImpl(0x100)] - public static uint4 operator * (uint4 lhs, uint rhs) { return new uint4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } - [MethodImpl(0x100)] - public static uint4 operator * (uint lhs, uint4 rhs) { return new uint4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } - - // add - [MethodImpl(0x100)] - public static uint4 operator + (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } - [MethodImpl(0x100)] - public static uint4 operator + (uint4 lhs, uint rhs) { return new uint4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } - [MethodImpl(0x100)] - public static uint4 operator + (uint lhs, uint4 rhs) { return new uint4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } - - // sub - [MethodImpl(0x100)] - public static uint4 operator - (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } - [MethodImpl(0x100)] - public static uint4 operator - (uint4 lhs, uint rhs) { return new uint4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } - [MethodImpl(0x100)] - public static uint4 operator - (uint lhs, uint4 rhs) { return new uint4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } - - // div - [MethodImpl(0x100)] - public static uint4 operator / (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } - [MethodImpl(0x100)] - public static uint4 operator / (uint4 lhs, uint rhs) { return new uint4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } - [MethodImpl(0x100)] - public static uint4 operator / (uint lhs, uint4 rhs) { return new uint4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } - - // smaller - [MethodImpl(0x100)] - public static bool4 operator < (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator < (uint4 lhs, uint rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } - [MethodImpl(0x100)] - public static bool4 operator < (uint lhs, uint4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator <= (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator <= (uint4 lhs, uint rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } - [MethodImpl(0x100)] - public static bool4 operator <= (uint lhs, uint4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } - - // greater - [MethodImpl(0x100)] - public static bool4 operator > (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator > (uint4 lhs, uint rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } - [MethodImpl(0x100)] - public static bool4 operator > (uint lhs, uint4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator >= (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator >= (uint4 lhs, uint rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } - [MethodImpl(0x100)] - public static bool4 operator >= (uint lhs, uint4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } - - // left shift - [MethodImpl(0x100)] - public static uint4 operator << (uint4 lhs, int rhs) { return new uint4 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs, lhs.w << rhs); } - - // right shift - [MethodImpl(0x100)] - public static uint4 operator >> (uint4 lhs, int rhs) { return new uint4 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs, lhs.w >> rhs); } - - // equal - [MethodImpl(0x100)] - public static bool4 operator == (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator == (uint4 lhs, uint rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - [MethodImpl(0x100)] - public static bool4 operator == (uint lhs, uint4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } - - // not equal - [MethodImpl(0x100)] - public static bool4 operator != (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - [MethodImpl(0x100)] - public static bool4 operator != (uint4 lhs, uint rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - [MethodImpl(0x100)] - public static bool4 operator != (uint lhs, uint4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } - - // Equals - [MethodImpl(0x100)] - public bool Equals(uint4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } - - // [int index] - unsafe public uint this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (uint* array = &x) { return array[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (uint* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(0x100)] - public static uint4 operator & (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } - [MethodImpl(0x100)] - public static uint4 operator & (uint4 lhs, uint rhs) { return new uint4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } - [MethodImpl(0x100)] - public static uint4 operator & (uint lhs, uint4 rhs) { return new uint4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } - - // operator | - [MethodImpl(0x100)] - public static uint4 operator | (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } - [MethodImpl(0x100)] - public static uint4 operator | (uint4 lhs, uint rhs) { return new uint4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } - [MethodImpl(0x100)] - public static uint4 operator | (uint lhs, uint4 rhs) { return new uint4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } - - // operator ^ - [MethodImpl(0x100)] - public static uint4 operator ^ (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } - [MethodImpl(0x100)] - public static uint4 operator ^ (uint4 lhs, uint rhs) { return new uint4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } - [MethodImpl(0x100)] - public static uint4 operator ^ (uint lhs, uint4 rhs) { return new uint4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } - - // operator ~ - [MethodImpl(0x100)] - public static uint4 operator ~ (uint4 val) { return new uint4 (~val.x, ~val.y, ~val.z, ~val.w); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxx - { - [MethodImpl(0x100)] - get { return new uint4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxy - { - [MethodImpl(0x100)] - get { return new uint4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxz - { - [MethodImpl(0x100)] - get { return new uint4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxw - { - [MethodImpl(0x100)] - get { return new uint4(x, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyx - { - [MethodImpl(0x100)] - get { return new uint4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyy - { - [MethodImpl(0x100)] - get { return new uint4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyz - { - [MethodImpl(0x100)] - get { return new uint4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyw - { - [MethodImpl(0x100)] - get { return new uint4(x, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzx - { - [MethodImpl(0x100)] - get { return new uint4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzy - { - [MethodImpl(0x100)] - get { return new uint4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzz - { - [MethodImpl(0x100)] - get { return new uint4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzw - { - [MethodImpl(0x100)] - get { return new uint4(x, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxwx - { - [MethodImpl(0x100)] - get { return new uint4(x, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxwy - { - [MethodImpl(0x100)] - get { return new uint4(x, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxwz - { - [MethodImpl(0x100)] - get { return new uint4(x, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxww - { - [MethodImpl(0x100)] - get { return new uint4(x, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxx - { - [MethodImpl(0x100)] - get { return new uint4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxy - { - [MethodImpl(0x100)] - get { return new uint4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxz - { - [MethodImpl(0x100)] - get { return new uint4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxw - { - [MethodImpl(0x100)] - get { return new uint4(x, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyx - { - [MethodImpl(0x100)] - get { return new uint4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyy - { - [MethodImpl(0x100)] - get { return new uint4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyz - { - [MethodImpl(0x100)] - get { return new uint4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyw - { - [MethodImpl(0x100)] - get { return new uint4(x, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzx - { - [MethodImpl(0x100)] - get { return new uint4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzy - { - [MethodImpl(0x100)] - get { return new uint4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzz - { - [MethodImpl(0x100)] - get { return new uint4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzw - { - [MethodImpl(0x100)] - get { return new uint4(x, y, z, w); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xywx - { - [MethodImpl(0x100)] - get { return new uint4(x, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xywy - { - [MethodImpl(0x100)] - get { return new uint4(x, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xywz - { - [MethodImpl(0x100)] - get { return new uint4(x, y, w, z); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyww - { - [MethodImpl(0x100)] - get { return new uint4(x, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxx - { - [MethodImpl(0x100)] - get { return new uint4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxy - { - [MethodImpl(0x100)] - get { return new uint4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxz - { - [MethodImpl(0x100)] - get { return new uint4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxw - { - [MethodImpl(0x100)] - get { return new uint4(x, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyx - { - [MethodImpl(0x100)] - get { return new uint4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyy - { - [MethodImpl(0x100)] - get { return new uint4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyz - { - [MethodImpl(0x100)] - get { return new uint4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyw - { - [MethodImpl(0x100)] - get { return new uint4(x, z, y, w); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzx - { - [MethodImpl(0x100)] - get { return new uint4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzy - { - [MethodImpl(0x100)] - get { return new uint4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzz - { - [MethodImpl(0x100)] - get { return new uint4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzw - { - [MethodImpl(0x100)] - get { return new uint4(x, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzwx - { - [MethodImpl(0x100)] - get { return new uint4(x, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzwy - { - [MethodImpl(0x100)] - get { return new uint4(x, z, w, y); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzwz - { - [MethodImpl(0x100)] - get { return new uint4(x, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzww - { - [MethodImpl(0x100)] - get { return new uint4(x, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwxx - { - [MethodImpl(0x100)] - get { return new uint4(x, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwxy - { - [MethodImpl(0x100)] - get { return new uint4(x, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwxz - { - [MethodImpl(0x100)] - get { return new uint4(x, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwxw - { - [MethodImpl(0x100)] - get { return new uint4(x, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwyx - { - [MethodImpl(0x100)] - get { return new uint4(x, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwyy - { - [MethodImpl(0x100)] - get { return new uint4(x, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwyz - { - [MethodImpl(0x100)] - get { return new uint4(x, w, y, z); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwyw - { - [MethodImpl(0x100)] - get { return new uint4(x, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwzx - { - [MethodImpl(0x100)] - get { return new uint4(x, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwzy - { - [MethodImpl(0x100)] - get { return new uint4(x, w, z, y); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwzz - { - [MethodImpl(0x100)] - get { return new uint4(x, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwzw - { - [MethodImpl(0x100)] - get { return new uint4(x, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwwx - { - [MethodImpl(0x100)] - get { return new uint4(x, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwwy - { - [MethodImpl(0x100)] - get { return new uint4(x, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwwz - { - [MethodImpl(0x100)] - get { return new uint4(x, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwww - { - [MethodImpl(0x100)] - get { return new uint4(x, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxx - { - [MethodImpl(0x100)] - get { return new uint4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxy - { - [MethodImpl(0x100)] - get { return new uint4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxz - { - [MethodImpl(0x100)] - get { return new uint4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxw - { - [MethodImpl(0x100)] - get { return new uint4(y, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyx - { - [MethodImpl(0x100)] - get { return new uint4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyy - { - [MethodImpl(0x100)] - get { return new uint4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyz - { - [MethodImpl(0x100)] - get { return new uint4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyw - { - [MethodImpl(0x100)] - get { return new uint4(y, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzx - { - [MethodImpl(0x100)] - get { return new uint4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzy - { - [MethodImpl(0x100)] - get { return new uint4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzz - { - [MethodImpl(0x100)] - get { return new uint4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzw - { - [MethodImpl(0x100)] - get { return new uint4(y, x, z, w); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxwx - { - [MethodImpl(0x100)] - get { return new uint4(y, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxwy - { - [MethodImpl(0x100)] - get { return new uint4(y, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxwz - { - [MethodImpl(0x100)] - get { return new uint4(y, x, w, z); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxww - { - [MethodImpl(0x100)] - get { return new uint4(y, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxx - { - [MethodImpl(0x100)] - get { return new uint4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxy - { - [MethodImpl(0x100)] - get { return new uint4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxz - { - [MethodImpl(0x100)] - get { return new uint4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxw - { - [MethodImpl(0x100)] - get { return new uint4(y, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyx - { - [MethodImpl(0x100)] - get { return new uint4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyy - { - [MethodImpl(0x100)] - get { return new uint4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyz - { - [MethodImpl(0x100)] - get { return new uint4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyw - { - [MethodImpl(0x100)] - get { return new uint4(y, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzx - { - [MethodImpl(0x100)] - get { return new uint4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzy - { - [MethodImpl(0x100)] - get { return new uint4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzz - { - [MethodImpl(0x100)] - get { return new uint4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzw - { - [MethodImpl(0x100)] - get { return new uint4(y, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yywx - { - [MethodImpl(0x100)] - get { return new uint4(y, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yywy - { - [MethodImpl(0x100)] - get { return new uint4(y, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yywz - { - [MethodImpl(0x100)] - get { return new uint4(y, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyww - { - [MethodImpl(0x100)] - get { return new uint4(y, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxx - { - [MethodImpl(0x100)] - get { return new uint4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxy - { - [MethodImpl(0x100)] - get { return new uint4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxz - { - [MethodImpl(0x100)] - get { return new uint4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxw - { - [MethodImpl(0x100)] - get { return new uint4(y, z, x, w); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyx - { - [MethodImpl(0x100)] - get { return new uint4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyy - { - [MethodImpl(0x100)] - get { return new uint4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyz - { - [MethodImpl(0x100)] - get { return new uint4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyw - { - [MethodImpl(0x100)] - get { return new uint4(y, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzx - { - [MethodImpl(0x100)] - get { return new uint4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzy - { - [MethodImpl(0x100)] - get { return new uint4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzz - { - [MethodImpl(0x100)] - get { return new uint4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzw - { - [MethodImpl(0x100)] - get { return new uint4(y, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzwx - { - [MethodImpl(0x100)] - get { return new uint4(y, z, w, x); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzwy - { - [MethodImpl(0x100)] - get { return new uint4(y, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzwz - { - [MethodImpl(0x100)] - get { return new uint4(y, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzww - { - [MethodImpl(0x100)] - get { return new uint4(y, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywxx - { - [MethodImpl(0x100)] - get { return new uint4(y, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywxy - { - [MethodImpl(0x100)] - get { return new uint4(y, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywxz - { - [MethodImpl(0x100)] - get { return new uint4(y, w, x, z); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywxw - { - [MethodImpl(0x100)] - get { return new uint4(y, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywyx - { - [MethodImpl(0x100)] - get { return new uint4(y, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywyy - { - [MethodImpl(0x100)] - get { return new uint4(y, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywyz - { - [MethodImpl(0x100)] - get { return new uint4(y, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywyw - { - [MethodImpl(0x100)] - get { return new uint4(y, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywzx - { - [MethodImpl(0x100)] - get { return new uint4(y, w, z, x); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywzy - { - [MethodImpl(0x100)] - get { return new uint4(y, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywzz - { - [MethodImpl(0x100)] - get { return new uint4(y, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywzw - { - [MethodImpl(0x100)] - get { return new uint4(y, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywwx - { - [MethodImpl(0x100)] - get { return new uint4(y, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywwy - { - [MethodImpl(0x100)] - get { return new uint4(y, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywwz - { - [MethodImpl(0x100)] - get { return new uint4(y, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywww - { - [MethodImpl(0x100)] - get { return new uint4(y, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxx - { - [MethodImpl(0x100)] - get { return new uint4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxy - { - [MethodImpl(0x100)] - get { return new uint4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxz - { - [MethodImpl(0x100)] - get { return new uint4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxw - { - [MethodImpl(0x100)] - get { return new uint4(z, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyx - { - [MethodImpl(0x100)] - get { return new uint4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyy - { - [MethodImpl(0x100)] - get { return new uint4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyz - { - [MethodImpl(0x100)] - get { return new uint4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyw - { - [MethodImpl(0x100)] - get { return new uint4(z, x, y, w); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzx - { - [MethodImpl(0x100)] - get { return new uint4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzy - { - [MethodImpl(0x100)] - get { return new uint4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzz - { - [MethodImpl(0x100)] - get { return new uint4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzw - { - [MethodImpl(0x100)] - get { return new uint4(z, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxwx - { - [MethodImpl(0x100)] - get { return new uint4(z, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxwy - { - [MethodImpl(0x100)] - get { return new uint4(z, x, w, y); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxwz - { - [MethodImpl(0x100)] - get { return new uint4(z, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxww - { - [MethodImpl(0x100)] - get { return new uint4(z, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxx - { - [MethodImpl(0x100)] - get { return new uint4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxy - { - [MethodImpl(0x100)] - get { return new uint4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxz - { - [MethodImpl(0x100)] - get { return new uint4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxw - { - [MethodImpl(0x100)] - get { return new uint4(z, y, x, w); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyx - { - [MethodImpl(0x100)] - get { return new uint4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyy - { - [MethodImpl(0x100)] - get { return new uint4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyz - { - [MethodImpl(0x100)] - get { return new uint4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyw - { - [MethodImpl(0x100)] - get { return new uint4(z, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzx - { - [MethodImpl(0x100)] - get { return new uint4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzy - { - [MethodImpl(0x100)] - get { return new uint4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzz - { - [MethodImpl(0x100)] - get { return new uint4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzw - { - [MethodImpl(0x100)] - get { return new uint4(z, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zywx - { - [MethodImpl(0x100)] - get { return new uint4(z, y, w, x); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zywy - { - [MethodImpl(0x100)] - get { return new uint4(z, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zywz - { - [MethodImpl(0x100)] - get { return new uint4(z, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyww - { - [MethodImpl(0x100)] - get { return new uint4(z, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxx - { - [MethodImpl(0x100)] - get { return new uint4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxy - { - [MethodImpl(0x100)] - get { return new uint4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxz - { - [MethodImpl(0x100)] - get { return new uint4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxw - { - [MethodImpl(0x100)] - get { return new uint4(z, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyx - { - [MethodImpl(0x100)] - get { return new uint4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyy - { - [MethodImpl(0x100)] - get { return new uint4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyz - { - [MethodImpl(0x100)] - get { return new uint4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyw - { - [MethodImpl(0x100)] - get { return new uint4(z, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzx - { - [MethodImpl(0x100)] - get { return new uint4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzy - { - [MethodImpl(0x100)] - get { return new uint4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzz - { - [MethodImpl(0x100)] - get { return new uint4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzw - { - [MethodImpl(0x100)] - get { return new uint4(z, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzwx - { - [MethodImpl(0x100)] - get { return new uint4(z, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzwy - { - [MethodImpl(0x100)] - get { return new uint4(z, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzwz - { - [MethodImpl(0x100)] - get { return new uint4(z, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzww - { - [MethodImpl(0x100)] - get { return new uint4(z, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwxx - { - [MethodImpl(0x100)] - get { return new uint4(z, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwxy - { - [MethodImpl(0x100)] - get { return new uint4(z, w, x, y); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwxz - { - [MethodImpl(0x100)] - get { return new uint4(z, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwxw - { - [MethodImpl(0x100)] - get { return new uint4(z, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwyx - { - [MethodImpl(0x100)] - get { return new uint4(z, w, y, x); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwyy - { - [MethodImpl(0x100)] - get { return new uint4(z, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwyz - { - [MethodImpl(0x100)] - get { return new uint4(z, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwyw - { - [MethodImpl(0x100)] - get { return new uint4(z, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwzx - { - [MethodImpl(0x100)] - get { return new uint4(z, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwzy - { - [MethodImpl(0x100)] - get { return new uint4(z, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwzz - { - [MethodImpl(0x100)] - get { return new uint4(z, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwzw - { - [MethodImpl(0x100)] - get { return new uint4(z, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwwx - { - [MethodImpl(0x100)] - get { return new uint4(z, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwwy - { - [MethodImpl(0x100)] - get { return new uint4(z, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwwz - { - [MethodImpl(0x100)] - get { return new uint4(z, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwww - { - [MethodImpl(0x100)] - get { return new uint4(z, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxxx - { - [MethodImpl(0x100)] - get { return new uint4(w, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxxy - { - [MethodImpl(0x100)] - get { return new uint4(w, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxxz - { - [MethodImpl(0x100)] - get { return new uint4(w, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxxw - { - [MethodImpl(0x100)] - get { return new uint4(w, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxyx - { - [MethodImpl(0x100)] - get { return new uint4(w, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxyy - { - [MethodImpl(0x100)] - get { return new uint4(w, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxyz - { - [MethodImpl(0x100)] - get { return new uint4(w, x, y, z); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxyw - { - [MethodImpl(0x100)] - get { return new uint4(w, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxzx - { - [MethodImpl(0x100)] - get { return new uint4(w, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxzy - { - [MethodImpl(0x100)] - get { return new uint4(w, x, z, y); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxzz - { - [MethodImpl(0x100)] - get { return new uint4(w, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxzw - { - [MethodImpl(0x100)] - get { return new uint4(w, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxwx - { - [MethodImpl(0x100)] - get { return new uint4(w, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxwy - { - [MethodImpl(0x100)] - get { return new uint4(w, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxwz - { - [MethodImpl(0x100)] - get { return new uint4(w, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxww - { - [MethodImpl(0x100)] - get { return new uint4(w, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyxx - { - [MethodImpl(0x100)] - get { return new uint4(w, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyxy - { - [MethodImpl(0x100)] - get { return new uint4(w, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyxz - { - [MethodImpl(0x100)] - get { return new uint4(w, y, x, z); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyxw - { - [MethodImpl(0x100)] - get { return new uint4(w, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyyx - { - [MethodImpl(0x100)] - get { return new uint4(w, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyyy - { - [MethodImpl(0x100)] - get { return new uint4(w, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyyz - { - [MethodImpl(0x100)] - get { return new uint4(w, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyyw - { - [MethodImpl(0x100)] - get { return new uint4(w, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyzx - { - [MethodImpl(0x100)] - get { return new uint4(w, y, z, x); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyzy - { - [MethodImpl(0x100)] - get { return new uint4(w, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyzz - { - [MethodImpl(0x100)] - get { return new uint4(w, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyzw - { - [MethodImpl(0x100)] - get { return new uint4(w, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wywx - { - [MethodImpl(0x100)] - get { return new uint4(w, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wywy - { - [MethodImpl(0x100)] - get { return new uint4(w, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wywz - { - [MethodImpl(0x100)] - get { return new uint4(w, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyww - { - [MethodImpl(0x100)] - get { return new uint4(w, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzxx - { - [MethodImpl(0x100)] - get { return new uint4(w, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzxy - { - [MethodImpl(0x100)] - get { return new uint4(w, z, x, y); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzxz - { - [MethodImpl(0x100)] - get { return new uint4(w, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzxw - { - [MethodImpl(0x100)] - get { return new uint4(w, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzyx - { - [MethodImpl(0x100)] - get { return new uint4(w, z, y, x); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzyy - { - [MethodImpl(0x100)] - get { return new uint4(w, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzyz - { - [MethodImpl(0x100)] - get { return new uint4(w, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzyw - { - [MethodImpl(0x100)] - get { return new uint4(w, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzzx - { - [MethodImpl(0x100)] - get { return new uint4(w, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzzy - { - [MethodImpl(0x100)] - get { return new uint4(w, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzzz - { - [MethodImpl(0x100)] - get { return new uint4(w, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzzw - { - [MethodImpl(0x100)] - get { return new uint4(w, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzwx - { - [MethodImpl(0x100)] - get { return new uint4(w, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzwy - { - [MethodImpl(0x100)] - get { return new uint4(w, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzwz - { - [MethodImpl(0x100)] - get { return new uint4(w, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzww - { - [MethodImpl(0x100)] - get { return new uint4(w, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwxx - { - [MethodImpl(0x100)] - get { return new uint4(w, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwxy - { - [MethodImpl(0x100)] - get { return new uint4(w, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwxz - { - [MethodImpl(0x100)] - get { return new uint4(w, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwxw - { - [MethodImpl(0x100)] - get { return new uint4(w, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwyx - { - [MethodImpl(0x100)] - get { return new uint4(w, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwyy - { - [MethodImpl(0x100)] - get { return new uint4(w, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwyz - { - [MethodImpl(0x100)] - get { return new uint4(w, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwyw - { - [MethodImpl(0x100)] - get { return new uint4(w, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwzx - { - [MethodImpl(0x100)] - get { return new uint4(w, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwzy - { - [MethodImpl(0x100)] - get { return new uint4(w, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwzz - { - [MethodImpl(0x100)] - get { return new uint4(w, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwzw - { - [MethodImpl(0x100)] - get { return new uint4(w, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwwx - { - [MethodImpl(0x100)] - get { return new uint4(w, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwwy - { - [MethodImpl(0x100)] - get { return new uint4(w, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwwz - { - [MethodImpl(0x100)] - get { return new uint4(w, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwww - { - [MethodImpl(0x100)] - get { return new uint4(w, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxx - { - [MethodImpl(0x100)] - get { return new uint3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxy - { - [MethodImpl(0x100)] - get { return new uint3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxz - { - [MethodImpl(0x100)] - get { return new uint3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxw - { - [MethodImpl(0x100)] - get { return new uint3(x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyx - { - [MethodImpl(0x100)] - get { return new uint3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyy - { - [MethodImpl(0x100)] - get { return new uint3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyz - { - [MethodImpl(0x100)] - get { return new uint3(x, y, z); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyw - { - [MethodImpl(0x100)] - get { return new uint3(x, y, w); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzx - { - [MethodImpl(0x100)] - get { return new uint3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzy - { - [MethodImpl(0x100)] - get { return new uint3(x, z, y); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzz - { - [MethodImpl(0x100)] - get { return new uint3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzw - { - [MethodImpl(0x100)] - get { return new uint3(x, z, w); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xwx - { - [MethodImpl(0x100)] - get { return new uint3(x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xwy - { - [MethodImpl(0x100)] - get { return new uint3(x, w, y); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xwz - { - [MethodImpl(0x100)] - get { return new uint3(x, w, z); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xww - { - [MethodImpl(0x100)] - get { return new uint3(x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxx - { - [MethodImpl(0x100)] - get { return new uint3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxy - { - [MethodImpl(0x100)] - get { return new uint3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxz - { - [MethodImpl(0x100)] - get { return new uint3(y, x, z); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxw - { - [MethodImpl(0x100)] - get { return new uint3(y, x, w); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyx - { - [MethodImpl(0x100)] - get { return new uint3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyy - { - [MethodImpl(0x100)] - get { return new uint3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyz - { - [MethodImpl(0x100)] - get { return new uint3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyw - { - [MethodImpl(0x100)] - get { return new uint3(y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzx - { - [MethodImpl(0x100)] - get { return new uint3(y, z, x); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzy - { - [MethodImpl(0x100)] - get { return new uint3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzz - { - [MethodImpl(0x100)] - get { return new uint3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzw - { - [MethodImpl(0x100)] - get { return new uint3(y, z, w); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 ywx - { - [MethodImpl(0x100)] - get { return new uint3(y, w, x); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 ywy - { - [MethodImpl(0x100)] - get { return new uint3(y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 ywz - { - [MethodImpl(0x100)] - get { return new uint3(y, w, z); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yww - { - [MethodImpl(0x100)] - get { return new uint3(y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxx - { - [MethodImpl(0x100)] - get { return new uint3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxy - { - [MethodImpl(0x100)] - get { return new uint3(z, x, y); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxz - { - [MethodImpl(0x100)] - get { return new uint3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxw - { - [MethodImpl(0x100)] - get { return new uint3(z, x, w); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyx - { - [MethodImpl(0x100)] - get { return new uint3(z, y, x); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyy - { - [MethodImpl(0x100)] - get { return new uint3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyz - { - [MethodImpl(0x100)] - get { return new uint3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyw - { - [MethodImpl(0x100)] - get { return new uint3(z, y, w); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzx - { - [MethodImpl(0x100)] - get { return new uint3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzy - { - [MethodImpl(0x100)] - get { return new uint3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzz - { - [MethodImpl(0x100)] - get { return new uint3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzw - { - [MethodImpl(0x100)] - get { return new uint3(z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zwx - { - [MethodImpl(0x100)] - get { return new uint3(z, w, x); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zwy - { - [MethodImpl(0x100)] - get { return new uint3(z, w, y); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zwz - { - [MethodImpl(0x100)] - get { return new uint3(z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zww - { - [MethodImpl(0x100)] - get { return new uint3(z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wxx - { - [MethodImpl(0x100)] - get { return new uint3(w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wxy - { - [MethodImpl(0x100)] - get { return new uint3(w, x, y); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wxz - { - [MethodImpl(0x100)] - get { return new uint3(w, x, z); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wxw - { - [MethodImpl(0x100)] - get { return new uint3(w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wyx - { - [MethodImpl(0x100)] - get { return new uint3(w, y, x); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wyy - { - [MethodImpl(0x100)] - get { return new uint3(w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wyz - { - [MethodImpl(0x100)] - get { return new uint3(w, y, z); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wyw - { - [MethodImpl(0x100)] - get { return new uint3(w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wzx - { - [MethodImpl(0x100)] - get { return new uint3(w, z, x); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wzy - { - [MethodImpl(0x100)] - get { return new uint3(w, z, y); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wzz - { - [MethodImpl(0x100)] - get { return new uint3(w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wzw - { - [MethodImpl(0x100)] - get { return new uint3(w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wwx - { - [MethodImpl(0x100)] - get { return new uint3(w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wwy - { - [MethodImpl(0x100)] - get { return new uint3(w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wwz - { - [MethodImpl(0x100)] - get { return new uint3(w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 www - { - [MethodImpl(0x100)] - get { return new uint3(w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xx - { - [MethodImpl(0x100)] - get { return new uint2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xy - { - [MethodImpl(0x100)] - get { return new uint2(x, y); } - [MethodImpl(0x100)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xz - { - [MethodImpl(0x100)] - get { return new uint2(x, z); } - [MethodImpl(0x100)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xw - { - [MethodImpl(0x100)] - get { return new uint2(x, w); } - [MethodImpl(0x100)] - set { x = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yx - { - [MethodImpl(0x100)] - get { return new uint2(y, x); } - [MethodImpl(0x100)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yy - { - [MethodImpl(0x100)] - get { return new uint2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yz - { - [MethodImpl(0x100)] - get { return new uint2(y, z); } - [MethodImpl(0x100)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yw - { - [MethodImpl(0x100)] - get { return new uint2(y, w); } - [MethodImpl(0x100)] - set { y = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zx - { - [MethodImpl(0x100)] - get { return new uint2(z, x); } - [MethodImpl(0x100)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zy - { - [MethodImpl(0x100)] - get { return new uint2(z, y); } - [MethodImpl(0x100)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zz - { - [MethodImpl(0x100)] - get { return new uint2(z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zw - { - [MethodImpl(0x100)] - get { return new uint2(z, w); } - [MethodImpl(0x100)] - set { z = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 wx - { - [MethodImpl(0x100)] - get { return new uint2(w, x); } - [MethodImpl(0x100)] - set { w = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 wy - { - [MethodImpl(0x100)] - get { return new uint2(w, y); } - [MethodImpl(0x100)] - set { w = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 wz - { - [MethodImpl(0x100)] - get { return new uint2(w, z); } - [MethodImpl(0x100)] - set { w = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 ww - { - [MethodImpl(0x100)] - get { return new uint2(w, w); } - } - - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct uint4 : System.IEquatable + { + + // mul + [MethodImpl(0x100)] + public static uint4 operator * (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } + [MethodImpl(0x100)] + public static uint4 operator * (uint4 lhs, uint rhs) { return new uint4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } + [MethodImpl(0x100)] + public static uint4 operator * (uint lhs, uint4 rhs) { return new uint4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } + + // add + [MethodImpl(0x100)] + public static uint4 operator + (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } + [MethodImpl(0x100)] + public static uint4 operator + (uint4 lhs, uint rhs) { return new uint4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } + [MethodImpl(0x100)] + public static uint4 operator + (uint lhs, uint4 rhs) { return new uint4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } + + // sub + [MethodImpl(0x100)] + public static uint4 operator - (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } + [MethodImpl(0x100)] + public static uint4 operator - (uint4 lhs, uint rhs) { return new uint4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } + [MethodImpl(0x100)] + public static uint4 operator - (uint lhs, uint4 rhs) { return new uint4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } + + // div + [MethodImpl(0x100)] + public static uint4 operator / (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } + [MethodImpl(0x100)] + public static uint4 operator / (uint4 lhs, uint rhs) { return new uint4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } + [MethodImpl(0x100)] + public static uint4 operator / (uint lhs, uint4 rhs) { return new uint4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } + + // smaller + [MethodImpl(0x100)] + public static bool4 operator < (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator < (uint4 lhs, uint rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } + [MethodImpl(0x100)] + public static bool4 operator < (uint lhs, uint4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator <= (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator <= (uint4 lhs, uint rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } + [MethodImpl(0x100)] + public static bool4 operator <= (uint lhs, uint4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } + + // greater + [MethodImpl(0x100)] + public static bool4 operator > (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator > (uint4 lhs, uint rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } + [MethodImpl(0x100)] + public static bool4 operator > (uint lhs, uint4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator >= (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator >= (uint4 lhs, uint rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } + [MethodImpl(0x100)] + public static bool4 operator >= (uint lhs, uint4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } + + // left shift + [MethodImpl(0x100)] + public static uint4 operator << (uint4 lhs, int rhs) { return new uint4 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs, lhs.w << rhs); } + + // right shift + [MethodImpl(0x100)] + public static uint4 operator >> (uint4 lhs, int rhs) { return new uint4 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs, lhs.w >> rhs); } + + // equal + [MethodImpl(0x100)] + public static bool4 operator == (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator == (uint4 lhs, uint rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } + [MethodImpl(0x100)] + public static bool4 operator == (uint lhs, uint4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } + + // not equal + [MethodImpl(0x100)] + public static bool4 operator != (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } + [MethodImpl(0x100)] + public static bool4 operator != (uint4 lhs, uint rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } + [MethodImpl(0x100)] + public static bool4 operator != (uint lhs, uint4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } + + // Equals + [MethodImpl(0x100)] + public bool Equals(uint4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } + + // [int index] + unsafe public uint this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (uint4* array = &this) { return ((uint*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (uint* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(0x100)] + public static uint4 operator & (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } + [MethodImpl(0x100)] + public static uint4 operator & (uint4 lhs, uint rhs) { return new uint4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } + [MethodImpl(0x100)] + public static uint4 operator & (uint lhs, uint4 rhs) { return new uint4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } + + // operator | + [MethodImpl(0x100)] + public static uint4 operator | (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } + [MethodImpl(0x100)] + public static uint4 operator | (uint4 lhs, uint rhs) { return new uint4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } + [MethodImpl(0x100)] + public static uint4 operator | (uint lhs, uint4 rhs) { return new uint4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } + + // operator ^ + [MethodImpl(0x100)] + public static uint4 operator ^ (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } + [MethodImpl(0x100)] + public static uint4 operator ^ (uint4 lhs, uint rhs) { return new uint4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } + [MethodImpl(0x100)] + public static uint4 operator ^ (uint lhs, uint4 rhs) { return new uint4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } + + // operator ~ + [MethodImpl(0x100)] + public static uint4 operator ~ (uint4 val) { return new uint4 (~val.x, ~val.y, ~val.z, ~val.w); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxx + { + [MethodImpl(0x100)] + get { return new uint4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxy + { + [MethodImpl(0x100)] + get { return new uint4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxz + { + [MethodImpl(0x100)] + get { return new uint4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxw + { + [MethodImpl(0x100)] + get { return new uint4(x, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyx + { + [MethodImpl(0x100)] + get { return new uint4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyy + { + [MethodImpl(0x100)] + get { return new uint4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyz + { + [MethodImpl(0x100)] + get { return new uint4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyw + { + [MethodImpl(0x100)] + get { return new uint4(x, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxzx + { + [MethodImpl(0x100)] + get { return new uint4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxzy + { + [MethodImpl(0x100)] + get { return new uint4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxzz + { + [MethodImpl(0x100)] + get { return new uint4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxzw + { + [MethodImpl(0x100)] + get { return new uint4(x, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxwx + { + [MethodImpl(0x100)] + get { return new uint4(x, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxwy + { + [MethodImpl(0x100)] + get { return new uint4(x, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxwz + { + [MethodImpl(0x100)] + get { return new uint4(x, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxww + { + [MethodImpl(0x100)] + get { return new uint4(x, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxx + { + [MethodImpl(0x100)] + get { return new uint4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxy + { + [MethodImpl(0x100)] + get { return new uint4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxz + { + [MethodImpl(0x100)] + get { return new uint4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxw + { + [MethodImpl(0x100)] + get { return new uint4(x, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyx + { + [MethodImpl(0x100)] + get { return new uint4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyy + { + [MethodImpl(0x100)] + get { return new uint4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyz + { + [MethodImpl(0x100)] + get { return new uint4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyw + { + [MethodImpl(0x100)] + get { return new uint4(x, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyzx + { + [MethodImpl(0x100)] + get { return new uint4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyzy + { + [MethodImpl(0x100)] + get { return new uint4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyzz + { + [MethodImpl(0x100)] + get { return new uint4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyzw + { + [MethodImpl(0x100)] + get { return new uint4(x, y, z, w); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xywx + { + [MethodImpl(0x100)] + get { return new uint4(x, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xywy + { + [MethodImpl(0x100)] + get { return new uint4(x, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xywz + { + [MethodImpl(0x100)] + get { return new uint4(x, y, w, z); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyww + { + [MethodImpl(0x100)] + get { return new uint4(x, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzxx + { + [MethodImpl(0x100)] + get { return new uint4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzxy + { + [MethodImpl(0x100)] + get { return new uint4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzxz + { + [MethodImpl(0x100)] + get { return new uint4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzxw + { + [MethodImpl(0x100)] + get { return new uint4(x, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzyx + { + [MethodImpl(0x100)] + get { return new uint4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzyy + { + [MethodImpl(0x100)] + get { return new uint4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzyz + { + [MethodImpl(0x100)] + get { return new uint4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzyw + { + [MethodImpl(0x100)] + get { return new uint4(x, z, y, w); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzzx + { + [MethodImpl(0x100)] + get { return new uint4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzzy + { + [MethodImpl(0x100)] + get { return new uint4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzzz + { + [MethodImpl(0x100)] + get { return new uint4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzzw + { + [MethodImpl(0x100)] + get { return new uint4(x, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzwx + { + [MethodImpl(0x100)] + get { return new uint4(x, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzwy + { + [MethodImpl(0x100)] + get { return new uint4(x, z, w, y); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzwz + { + [MethodImpl(0x100)] + get { return new uint4(x, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzww + { + [MethodImpl(0x100)] + get { return new uint4(x, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwxx + { + [MethodImpl(0x100)] + get { return new uint4(x, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwxy + { + [MethodImpl(0x100)] + get { return new uint4(x, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwxz + { + [MethodImpl(0x100)] + get { return new uint4(x, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwxw + { + [MethodImpl(0x100)] + get { return new uint4(x, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwyx + { + [MethodImpl(0x100)] + get { return new uint4(x, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwyy + { + [MethodImpl(0x100)] + get { return new uint4(x, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwyz + { + [MethodImpl(0x100)] + get { return new uint4(x, w, y, z); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwyw + { + [MethodImpl(0x100)] + get { return new uint4(x, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwzx + { + [MethodImpl(0x100)] + get { return new uint4(x, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwzy + { + [MethodImpl(0x100)] + get { return new uint4(x, w, z, y); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwzz + { + [MethodImpl(0x100)] + get { return new uint4(x, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwzw + { + [MethodImpl(0x100)] + get { return new uint4(x, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwwx + { + [MethodImpl(0x100)] + get { return new uint4(x, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwwy + { + [MethodImpl(0x100)] + get { return new uint4(x, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwwz + { + [MethodImpl(0x100)] + get { return new uint4(x, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwww + { + [MethodImpl(0x100)] + get { return new uint4(x, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxx + { + [MethodImpl(0x100)] + get { return new uint4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxy + { + [MethodImpl(0x100)] + get { return new uint4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxz + { + [MethodImpl(0x100)] + get { return new uint4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxw + { + [MethodImpl(0x100)] + get { return new uint4(y, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyx + { + [MethodImpl(0x100)] + get { return new uint4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyy + { + [MethodImpl(0x100)] + get { return new uint4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyz + { + [MethodImpl(0x100)] + get { return new uint4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyw + { + [MethodImpl(0x100)] + get { return new uint4(y, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxzx + { + [MethodImpl(0x100)] + get { return new uint4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxzy + { + [MethodImpl(0x100)] + get { return new uint4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxzz + { + [MethodImpl(0x100)] + get { return new uint4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxzw + { + [MethodImpl(0x100)] + get { return new uint4(y, x, z, w); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxwx + { + [MethodImpl(0x100)] + get { return new uint4(y, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxwy + { + [MethodImpl(0x100)] + get { return new uint4(y, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxwz + { + [MethodImpl(0x100)] + get { return new uint4(y, x, w, z); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxww + { + [MethodImpl(0x100)] + get { return new uint4(y, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxx + { + [MethodImpl(0x100)] + get { return new uint4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxy + { + [MethodImpl(0x100)] + get { return new uint4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxz + { + [MethodImpl(0x100)] + get { return new uint4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxw + { + [MethodImpl(0x100)] + get { return new uint4(y, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyx + { + [MethodImpl(0x100)] + get { return new uint4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyy + { + [MethodImpl(0x100)] + get { return new uint4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyz + { + [MethodImpl(0x100)] + get { return new uint4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyw + { + [MethodImpl(0x100)] + get { return new uint4(y, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyzx + { + [MethodImpl(0x100)] + get { return new uint4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyzy + { + [MethodImpl(0x100)] + get { return new uint4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyzz + { + [MethodImpl(0x100)] + get { return new uint4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyzw + { + [MethodImpl(0x100)] + get { return new uint4(y, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yywx + { + [MethodImpl(0x100)] + get { return new uint4(y, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yywy + { + [MethodImpl(0x100)] + get { return new uint4(y, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yywz + { + [MethodImpl(0x100)] + get { return new uint4(y, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyww + { + [MethodImpl(0x100)] + get { return new uint4(y, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzxx + { + [MethodImpl(0x100)] + get { return new uint4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzxy + { + [MethodImpl(0x100)] + get { return new uint4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzxz + { + [MethodImpl(0x100)] + get { return new uint4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzxw + { + [MethodImpl(0x100)] + get { return new uint4(y, z, x, w); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzyx + { + [MethodImpl(0x100)] + get { return new uint4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzyy + { + [MethodImpl(0x100)] + get { return new uint4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzyz + { + [MethodImpl(0x100)] + get { return new uint4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzyw + { + [MethodImpl(0x100)] + get { return new uint4(y, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzzx + { + [MethodImpl(0x100)] + get { return new uint4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzzy + { + [MethodImpl(0x100)] + get { return new uint4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzzz + { + [MethodImpl(0x100)] + get { return new uint4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzzw + { + [MethodImpl(0x100)] + get { return new uint4(y, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzwx + { + [MethodImpl(0x100)] + get { return new uint4(y, z, w, x); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzwy + { + [MethodImpl(0x100)] + get { return new uint4(y, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzwz + { + [MethodImpl(0x100)] + get { return new uint4(y, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzww + { + [MethodImpl(0x100)] + get { return new uint4(y, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywxx + { + [MethodImpl(0x100)] + get { return new uint4(y, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywxy + { + [MethodImpl(0x100)] + get { return new uint4(y, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywxz + { + [MethodImpl(0x100)] + get { return new uint4(y, w, x, z); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywxw + { + [MethodImpl(0x100)] + get { return new uint4(y, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywyx + { + [MethodImpl(0x100)] + get { return new uint4(y, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywyy + { + [MethodImpl(0x100)] + get { return new uint4(y, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywyz + { + [MethodImpl(0x100)] + get { return new uint4(y, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywyw + { + [MethodImpl(0x100)] + get { return new uint4(y, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywzx + { + [MethodImpl(0x100)] + get { return new uint4(y, w, z, x); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywzy + { + [MethodImpl(0x100)] + get { return new uint4(y, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywzz + { + [MethodImpl(0x100)] + get { return new uint4(y, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywzw + { + [MethodImpl(0x100)] + get { return new uint4(y, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywwx + { + [MethodImpl(0x100)] + get { return new uint4(y, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywwy + { + [MethodImpl(0x100)] + get { return new uint4(y, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywwz + { + [MethodImpl(0x100)] + get { return new uint4(y, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywww + { + [MethodImpl(0x100)] + get { return new uint4(y, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxxx + { + [MethodImpl(0x100)] + get { return new uint4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxxy + { + [MethodImpl(0x100)] + get { return new uint4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxxz + { + [MethodImpl(0x100)] + get { return new uint4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxxw + { + [MethodImpl(0x100)] + get { return new uint4(z, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxyx + { + [MethodImpl(0x100)] + get { return new uint4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxyy + { + [MethodImpl(0x100)] + get { return new uint4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxyz + { + [MethodImpl(0x100)] + get { return new uint4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxyw + { + [MethodImpl(0x100)] + get { return new uint4(z, x, y, w); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxzx + { + [MethodImpl(0x100)] + get { return new uint4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxzy + { + [MethodImpl(0x100)] + get { return new uint4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxzz + { + [MethodImpl(0x100)] + get { return new uint4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxzw + { + [MethodImpl(0x100)] + get { return new uint4(z, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxwx + { + [MethodImpl(0x100)] + get { return new uint4(z, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxwy + { + [MethodImpl(0x100)] + get { return new uint4(z, x, w, y); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxwz + { + [MethodImpl(0x100)] + get { return new uint4(z, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxww + { + [MethodImpl(0x100)] + get { return new uint4(z, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyxx + { + [MethodImpl(0x100)] + get { return new uint4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyxy + { + [MethodImpl(0x100)] + get { return new uint4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyxz + { + [MethodImpl(0x100)] + get { return new uint4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyxw + { + [MethodImpl(0x100)] + get { return new uint4(z, y, x, w); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyyx + { + [MethodImpl(0x100)] + get { return new uint4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyyy + { + [MethodImpl(0x100)] + get { return new uint4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyyz + { + [MethodImpl(0x100)] + get { return new uint4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyyw + { + [MethodImpl(0x100)] + get { return new uint4(z, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyzx + { + [MethodImpl(0x100)] + get { return new uint4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyzy + { + [MethodImpl(0x100)] + get { return new uint4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyzz + { + [MethodImpl(0x100)] + get { return new uint4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyzw + { + [MethodImpl(0x100)] + get { return new uint4(z, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zywx + { + [MethodImpl(0x100)] + get { return new uint4(z, y, w, x); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zywy + { + [MethodImpl(0x100)] + get { return new uint4(z, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zywz + { + [MethodImpl(0x100)] + get { return new uint4(z, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyww + { + [MethodImpl(0x100)] + get { return new uint4(z, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzxx + { + [MethodImpl(0x100)] + get { return new uint4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzxy + { + [MethodImpl(0x100)] + get { return new uint4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzxz + { + [MethodImpl(0x100)] + get { return new uint4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzxw + { + [MethodImpl(0x100)] + get { return new uint4(z, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzyx + { + [MethodImpl(0x100)] + get { return new uint4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzyy + { + [MethodImpl(0x100)] + get { return new uint4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzyz + { + [MethodImpl(0x100)] + get { return new uint4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzyw + { + [MethodImpl(0x100)] + get { return new uint4(z, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzzx + { + [MethodImpl(0x100)] + get { return new uint4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzzy + { + [MethodImpl(0x100)] + get { return new uint4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzzz + { + [MethodImpl(0x100)] + get { return new uint4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzzw + { + [MethodImpl(0x100)] + get { return new uint4(z, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzwx + { + [MethodImpl(0x100)] + get { return new uint4(z, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzwy + { + [MethodImpl(0x100)] + get { return new uint4(z, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzwz + { + [MethodImpl(0x100)] + get { return new uint4(z, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzww + { + [MethodImpl(0x100)] + get { return new uint4(z, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwxx + { + [MethodImpl(0x100)] + get { return new uint4(z, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwxy + { + [MethodImpl(0x100)] + get { return new uint4(z, w, x, y); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwxz + { + [MethodImpl(0x100)] + get { return new uint4(z, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwxw + { + [MethodImpl(0x100)] + get { return new uint4(z, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwyx + { + [MethodImpl(0x100)] + get { return new uint4(z, w, y, x); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwyy + { + [MethodImpl(0x100)] + get { return new uint4(z, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwyz + { + [MethodImpl(0x100)] + get { return new uint4(z, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwyw + { + [MethodImpl(0x100)] + get { return new uint4(z, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwzx + { + [MethodImpl(0x100)] + get { return new uint4(z, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwzy + { + [MethodImpl(0x100)] + get { return new uint4(z, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwzz + { + [MethodImpl(0x100)] + get { return new uint4(z, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwzw + { + [MethodImpl(0x100)] + get { return new uint4(z, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwwx + { + [MethodImpl(0x100)] + get { return new uint4(z, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwwy + { + [MethodImpl(0x100)] + get { return new uint4(z, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwwz + { + [MethodImpl(0x100)] + get { return new uint4(z, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwww + { + [MethodImpl(0x100)] + get { return new uint4(z, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxxx + { + [MethodImpl(0x100)] + get { return new uint4(w, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxxy + { + [MethodImpl(0x100)] + get { return new uint4(w, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxxz + { + [MethodImpl(0x100)] + get { return new uint4(w, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxxw + { + [MethodImpl(0x100)] + get { return new uint4(w, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxyx + { + [MethodImpl(0x100)] + get { return new uint4(w, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxyy + { + [MethodImpl(0x100)] + get { return new uint4(w, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxyz + { + [MethodImpl(0x100)] + get { return new uint4(w, x, y, z); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxyw + { + [MethodImpl(0x100)] + get { return new uint4(w, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxzx + { + [MethodImpl(0x100)] + get { return new uint4(w, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxzy + { + [MethodImpl(0x100)] + get { return new uint4(w, x, z, y); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxzz + { + [MethodImpl(0x100)] + get { return new uint4(w, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxzw + { + [MethodImpl(0x100)] + get { return new uint4(w, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxwx + { + [MethodImpl(0x100)] + get { return new uint4(w, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxwy + { + [MethodImpl(0x100)] + get { return new uint4(w, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxwz + { + [MethodImpl(0x100)] + get { return new uint4(w, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxww + { + [MethodImpl(0x100)] + get { return new uint4(w, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyxx + { + [MethodImpl(0x100)] + get { return new uint4(w, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyxy + { + [MethodImpl(0x100)] + get { return new uint4(w, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyxz + { + [MethodImpl(0x100)] + get { return new uint4(w, y, x, z); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyxw + { + [MethodImpl(0x100)] + get { return new uint4(w, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyyx + { + [MethodImpl(0x100)] + get { return new uint4(w, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyyy + { + [MethodImpl(0x100)] + get { return new uint4(w, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyyz + { + [MethodImpl(0x100)] + get { return new uint4(w, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyyw + { + [MethodImpl(0x100)] + get { return new uint4(w, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyzx + { + [MethodImpl(0x100)] + get { return new uint4(w, y, z, x); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyzy + { + [MethodImpl(0x100)] + get { return new uint4(w, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyzz + { + [MethodImpl(0x100)] + get { return new uint4(w, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyzw + { + [MethodImpl(0x100)] + get { return new uint4(w, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wywx + { + [MethodImpl(0x100)] + get { return new uint4(w, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wywy + { + [MethodImpl(0x100)] + get { return new uint4(w, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wywz + { + [MethodImpl(0x100)] + get { return new uint4(w, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyww + { + [MethodImpl(0x100)] + get { return new uint4(w, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzxx + { + [MethodImpl(0x100)] + get { return new uint4(w, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzxy + { + [MethodImpl(0x100)] + get { return new uint4(w, z, x, y); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzxz + { + [MethodImpl(0x100)] + get { return new uint4(w, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzxw + { + [MethodImpl(0x100)] + get { return new uint4(w, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzyx + { + [MethodImpl(0x100)] + get { return new uint4(w, z, y, x); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzyy + { + [MethodImpl(0x100)] + get { return new uint4(w, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzyz + { + [MethodImpl(0x100)] + get { return new uint4(w, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzyw + { + [MethodImpl(0x100)] + get { return new uint4(w, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzzx + { + [MethodImpl(0x100)] + get { return new uint4(w, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzzy + { + [MethodImpl(0x100)] + get { return new uint4(w, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzzz + { + [MethodImpl(0x100)] + get { return new uint4(w, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzzw + { + [MethodImpl(0x100)] + get { return new uint4(w, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzwx + { + [MethodImpl(0x100)] + get { return new uint4(w, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzwy + { + [MethodImpl(0x100)] + get { return new uint4(w, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzwz + { + [MethodImpl(0x100)] + get { return new uint4(w, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzww + { + [MethodImpl(0x100)] + get { return new uint4(w, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwxx + { + [MethodImpl(0x100)] + get { return new uint4(w, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwxy + { + [MethodImpl(0x100)] + get { return new uint4(w, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwxz + { + [MethodImpl(0x100)] + get { return new uint4(w, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwxw + { + [MethodImpl(0x100)] + get { return new uint4(w, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwyx + { + [MethodImpl(0x100)] + get { return new uint4(w, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwyy + { + [MethodImpl(0x100)] + get { return new uint4(w, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwyz + { + [MethodImpl(0x100)] + get { return new uint4(w, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwyw + { + [MethodImpl(0x100)] + get { return new uint4(w, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwzx + { + [MethodImpl(0x100)] + get { return new uint4(w, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwzy + { + [MethodImpl(0x100)] + get { return new uint4(w, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwzz + { + [MethodImpl(0x100)] + get { return new uint4(w, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwzw + { + [MethodImpl(0x100)] + get { return new uint4(w, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwwx + { + [MethodImpl(0x100)] + get { return new uint4(w, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwwy + { + [MethodImpl(0x100)] + get { return new uint4(w, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwwz + { + [MethodImpl(0x100)] + get { return new uint4(w, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwww + { + [MethodImpl(0x100)] + get { return new uint4(w, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxx + { + [MethodImpl(0x100)] + get { return new uint3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxy + { + [MethodImpl(0x100)] + get { return new uint3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxz + { + [MethodImpl(0x100)] + get { return new uint3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxw + { + [MethodImpl(0x100)] + get { return new uint3(x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyx + { + [MethodImpl(0x100)] + get { return new uint3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyy + { + [MethodImpl(0x100)] + get { return new uint3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyz + { + [MethodImpl(0x100)] + get { return new uint3(x, y, z); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyw + { + [MethodImpl(0x100)] + get { return new uint3(x, y, w); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xzx + { + [MethodImpl(0x100)] + get { return new uint3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xzy + { + [MethodImpl(0x100)] + get { return new uint3(x, z, y); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xzz + { + [MethodImpl(0x100)] + get { return new uint3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xzw + { + [MethodImpl(0x100)] + get { return new uint3(x, z, w); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xwx + { + [MethodImpl(0x100)] + get { return new uint3(x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xwy + { + [MethodImpl(0x100)] + get { return new uint3(x, w, y); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xwz + { + [MethodImpl(0x100)] + get { return new uint3(x, w, z); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xww + { + [MethodImpl(0x100)] + get { return new uint3(x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxx + { + [MethodImpl(0x100)] + get { return new uint3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxy + { + [MethodImpl(0x100)] + get { return new uint3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxz + { + [MethodImpl(0x100)] + get { return new uint3(y, x, z); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxw + { + [MethodImpl(0x100)] + get { return new uint3(y, x, w); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyx + { + [MethodImpl(0x100)] + get { return new uint3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyy + { + [MethodImpl(0x100)] + get { return new uint3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyz + { + [MethodImpl(0x100)] + get { return new uint3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyw + { + [MethodImpl(0x100)] + get { return new uint3(y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yzx + { + [MethodImpl(0x100)] + get { return new uint3(y, z, x); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yzy + { + [MethodImpl(0x100)] + get { return new uint3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yzz + { + [MethodImpl(0x100)] + get { return new uint3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yzw + { + [MethodImpl(0x100)] + get { return new uint3(y, z, w); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 ywx + { + [MethodImpl(0x100)] + get { return new uint3(y, w, x); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 ywy + { + [MethodImpl(0x100)] + get { return new uint3(y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 ywz + { + [MethodImpl(0x100)] + get { return new uint3(y, w, z); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yww + { + [MethodImpl(0x100)] + get { return new uint3(y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zxx + { + [MethodImpl(0x100)] + get { return new uint3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zxy + { + [MethodImpl(0x100)] + get { return new uint3(z, x, y); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zxz + { + [MethodImpl(0x100)] + get { return new uint3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zxw + { + [MethodImpl(0x100)] + get { return new uint3(z, x, w); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zyx + { + [MethodImpl(0x100)] + get { return new uint3(z, y, x); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zyy + { + [MethodImpl(0x100)] + get { return new uint3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zyz + { + [MethodImpl(0x100)] + get { return new uint3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zyw + { + [MethodImpl(0x100)] + get { return new uint3(z, y, w); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zzx + { + [MethodImpl(0x100)] + get { return new uint3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zzy + { + [MethodImpl(0x100)] + get { return new uint3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zzz + { + [MethodImpl(0x100)] + get { return new uint3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zzw + { + [MethodImpl(0x100)] + get { return new uint3(z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zwx + { + [MethodImpl(0x100)] + get { return new uint3(z, w, x); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zwy + { + [MethodImpl(0x100)] + get { return new uint3(z, w, y); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zwz + { + [MethodImpl(0x100)] + get { return new uint3(z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zww + { + [MethodImpl(0x100)] + get { return new uint3(z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wxx + { + [MethodImpl(0x100)] + get { return new uint3(w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wxy + { + [MethodImpl(0x100)] + get { return new uint3(w, x, y); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wxz + { + [MethodImpl(0x100)] + get { return new uint3(w, x, z); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wxw + { + [MethodImpl(0x100)] + get { return new uint3(w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wyx + { + [MethodImpl(0x100)] + get { return new uint3(w, y, x); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wyy + { + [MethodImpl(0x100)] + get { return new uint3(w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wyz + { + [MethodImpl(0x100)] + get { return new uint3(w, y, z); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wyw + { + [MethodImpl(0x100)] + get { return new uint3(w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wzx + { + [MethodImpl(0x100)] + get { return new uint3(w, z, x); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wzy + { + [MethodImpl(0x100)] + get { return new uint3(w, z, y); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wzz + { + [MethodImpl(0x100)] + get { return new uint3(w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wzw + { + [MethodImpl(0x100)] + get { return new uint3(w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wwx + { + [MethodImpl(0x100)] + get { return new uint3(w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wwy + { + [MethodImpl(0x100)] + get { return new uint3(w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wwz + { + [MethodImpl(0x100)] + get { return new uint3(w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 www + { + [MethodImpl(0x100)] + get { return new uint3(w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xx + { + [MethodImpl(0x100)] + get { return new uint2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xy + { + [MethodImpl(0x100)] + get { return new uint2(x, y); } + [MethodImpl(0x100)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xz + { + [MethodImpl(0x100)] + get { return new uint2(x, z); } + [MethodImpl(0x100)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xw + { + [MethodImpl(0x100)] + get { return new uint2(x, w); } + [MethodImpl(0x100)] + set { x = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yx + { + [MethodImpl(0x100)] + get { return new uint2(y, x); } + [MethodImpl(0x100)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yy + { + [MethodImpl(0x100)] + get { return new uint2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yz + { + [MethodImpl(0x100)] + get { return new uint2(y, z); } + [MethodImpl(0x100)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yw + { + [MethodImpl(0x100)] + get { return new uint2(y, w); } + [MethodImpl(0x100)] + set { y = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 zx + { + [MethodImpl(0x100)] + get { return new uint2(z, x); } + [MethodImpl(0x100)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 zy + { + [MethodImpl(0x100)] + get { return new uint2(z, y); } + [MethodImpl(0x100)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 zz + { + [MethodImpl(0x100)] + get { return new uint2(z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 zw + { + [MethodImpl(0x100)] + get { return new uint2(z, w); } + [MethodImpl(0x100)] + set { z = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 wx + { + [MethodImpl(0x100)] + get { return new uint2(w, x); } + [MethodImpl(0x100)] + set { w = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 wy + { + [MethodImpl(0x100)] + get { return new uint2(w, y); } + [MethodImpl(0x100)] + set { w = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 wz + { + [MethodImpl(0x100)] + get { return new uint2(w, z); } + [MethodImpl(0x100)] + set { w = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 ww + { + [MethodImpl(0x100)] + get { return new uint2(w, w); } + } + + + } +} From c0478e0c1f46a0c8d5016b2e8cf4ab94efe29735 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Wed, 9 May 2018 21:16:03 +0200 Subject: [PATCH 002/437] Fix bool1 compilation after merge --- src/Unity.Mathematics/math.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 651bf0c6..587e2fc6 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -452,7 +452,7 @@ public static float4 smoothstep(float4 a, float4 b, float4 x) [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static bool2 lessThan(float2 x, float2 y) { return x < y; } [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static bool1 lessThan(float x, float y) { return x < y; } + public static bool lessThan(float x, float y) { return x < y; } [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static bool4 lessThanEqual(float4 x, float4 y) { return x <= y; } @@ -461,7 +461,7 @@ public static float4 smoothstep(float4 a, float4 b, float4 x) [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static bool2 lessThanEqual(float2 x, float2 y) { return x <= y; } [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static bool1 lessThanEqual(float x, float y) { return x <= y; } + public static bool lessThanEqual(float x, float y) { return x <= y; } [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static bool4 greaterThan(float4 x, float4 y) { return x > y; } @@ -470,7 +470,7 @@ public static float4 smoothstep(float4 a, float4 b, float4 x) [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static bool2 greaterThan(float2 x, float2 y) { return x > y; } [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static bool1 greaterThan(float x, float y) { return x > y; } + public static bool greaterThan(float x, float y) { return x > y; } [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static bool4 greaterThanEqual(float4 x, float4 y) { return x >= y; } @@ -479,7 +479,7 @@ public static float4 smoothstep(float4 a, float4 b, float4 x) [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static bool2 greaterThanEqual(float2 x, float2 y) { return x >= y; } [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static bool1 greaterThanEqual(float x, float y) { return x >= y; } + public static bool greaterThanEqual(float x, float y) { return x >= y; } [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static bool4 equal(float4 x, float4 y) { return x == y; } @@ -488,7 +488,7 @@ public static float4 smoothstep(float4 a, float4 b, float4 x) [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static bool2 equal(float2 x, float2 y) { return x == y; } [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static bool1 equal(float x, float y) { return x == y; } + public static bool equal(float x, float y) { return x == y; } [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static bool4 notEqual(float4 x, float4 y) { return x != y; } @@ -497,7 +497,7 @@ public static float4 smoothstep(float4 a, float4 b, float4 x) [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static bool2 notEqual(float2 x, float2 y) { return x != y; } [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static bool1 notEqual(float x, float y) { return x != y; } + public static bool notEqual(float x, float y) { return x != y; } [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float3 up() { return new float3(0.0f,1.0f,0.0f); } From b725e194ce6109a2aef32c712ea260dedd276ca1 Mon Sep 17 00:00:00 2001 From: Fabrizio Perria Date: Tue, 22 May 2018 14:52:43 +0200 Subject: [PATCH 003/437] Delete hanging meta files --- src/Unity.Mathematics.Tests/TestBool1.cs.meta | 11 ----------- src/Unity.Mathematics/bool1.cs.meta | 11 ----------- 2 files changed, 22 deletions(-) delete mode 100644 src/Unity.Mathematics.Tests/TestBool1.cs.meta delete mode 100644 src/Unity.Mathematics/bool1.cs.meta diff --git a/src/Unity.Mathematics.Tests/TestBool1.cs.meta b/src/Unity.Mathematics.Tests/TestBool1.cs.meta deleted file mode 100644 index 9ca32d2f..00000000 --- a/src/Unity.Mathematics.Tests/TestBool1.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 8810c9cc2e89190479e291a13c8e8d9b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/src/Unity.Mathematics/bool1.cs.meta b/src/Unity.Mathematics/bool1.cs.meta deleted file mode 100644 index 187ee017..00000000 --- a/src/Unity.Mathematics/bool1.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f22724f32112b004f9503adef124973a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: From b4c3863483ca156c72c70a527595904f4a1be22e Mon Sep 17 00:00:00 2001 From: Keijiro Takahashi Date: Fri, 25 May 2018 14:57:50 +0900 Subject: [PATCH 004/437] Fix argument order of step function --- src/Unity.Mathematics/math.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 587e2fc6..69c72594 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -418,13 +418,13 @@ public static float4 smoothstep(float4 a, float4 b, float4 x) //Step [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float step(float a, float b) { return select(0.0f, 1.0f, a >= b); } + public static float step(float a, float b) { return select(0.0f, 1.0f, b >= a); } [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float2 step(float2 a, float2 b) { return select(0.0f, 1.0f, a >= b); } + public static float2 step(float2 a, float2 b) { return select(0.0f, 1.0f, b >= a); } [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float3 step(float3 a, float3 b) { return select(0.0f, 1.0f, a >= b); } + public static float3 step(float3 a, float3 b) { return select(0.0f, 1.0f, b >= a); } [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float4 step(float4 a, float4 b) { return select(0.0f, 1.0f, a >= b); } + public static float4 step(float4 a, float4 b) { return select(0.0f, 1.0f, b >= a); } [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float reflect(float i, float n) { return i - 2f * n * dot(i, n); } From 2697fcb20569c2853ee717018430f6c3f1c8bf17 Mon Sep 17 00:00:00 2001 From: runes Date: Mon, 28 May 2018 10:52:16 +0200 Subject: [PATCH 005/437] [MethodImpl((MethodImplOptions)0x100)] -> [MethodImpl(MethodImplOptions.AggressiveInlining)] --- .../VectorGenerator.cs | 12 +- src/Unity.Mathematics/IntFloatUnion.cs | 10 +- src/Unity.Mathematics/bool2.cs | 6 +- src/Unity.Mathematics/bool2.gen.cs | 92 +- src/Unity.Mathematics/bool3.cs | 8 +- src/Unity.Mathematics/bool3.gen.cs | 290 +++--- src/Unity.Mathematics/bool4.cs | 8 +- src/Unity.Mathematics/bool4.gen.cs | 824 ++++++++-------- src/Unity.Mathematics/float2.cs | 14 +- src/Unity.Mathematics/float2.gen.cs | 126 +-- src/Unity.Mathematics/float3.cs | 16 +- src/Unity.Mathematics/float3.gen.cs | 324 +++---- src/Unity.Mathematics/float4.cs | 28 +- src/Unity.Mathematics/float4.gen.cs | 858 ++++++++--------- src/Unity.Mathematics/int2.cs | 10 +- src/Unity.Mathematics/int2.gen.cs | 150 +-- src/Unity.Mathematics/int3.cs | 12 +- src/Unity.Mathematics/int3.gen.cs | 348 +++---- src/Unity.Mathematics/int4.cs | 12 +- src/Unity.Mathematics/int4.gen.cs | 882 +++++++++--------- src/Unity.Mathematics/math.cs | 268 +++--- src/Unity.Mathematics/mathextended.cs | 86 +- src/Unity.Mathematics/matrix.cs | 8 +- src/Unity.Mathematics/uint2.cs | 12 +- src/Unity.Mathematics/uint2.gen.cs | 146 +-- src/Unity.Mathematics/uint3.cs | 12 +- src/Unity.Mathematics/uint3.gen.cs | 344 +++---- src/Unity.Mathematics/uint4.cs | 14 +- src/Unity.Mathematics/uint4.gen.cs | 878 ++++++++--------- 29 files changed, 2899 insertions(+), 2899 deletions(-) diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index 3de0ed13..f025808a 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -181,7 +181,7 @@ void GenerateBinaryOperatorScalarRhs(int count, string op, int resultCount, stri void GenerateBinaryOperator(int lhsTypeIndex, int rhsTypeIndex, string op, int resultCount, string resultType, StringBuilder str) { - str.Append("\t\t[MethodImpl(0x100)]\n"); + str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); str.AppendFormat("\t\tpublic static {0} operator {1} ({2} lhs, {3} rhs)", resultType, op, m_Types[lhsTypeIndex], m_Types[rhsTypeIndex]); str.Append(" { "); str.AppendFormat("return new {0} (", resultType); @@ -250,7 +250,7 @@ void GenerateIndexOperator(int count, string vectorType, string indexOperatorRet void GenerateEquals(int resultCount, string resultType, StringBuilder str) { - str.Append("\t\t[MethodImpl(0x100)]\n"); + str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); str.AppendFormat("\t\tpublic bool Equals({0} rhs) ", resultType); str.Append(" { "); str.AppendFormat("return ", resultType); @@ -268,7 +268,7 @@ void GenerateEquals(int resultCount, string resultType, StringBuilder str) void GenerateShiftOperator(int lhsTypeIndex, string op, int resultCount, string resultType, StringBuilder str) { - str.Append("\t\t[MethodImpl(0x100)]\n"); + str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); str.AppendFormat("\t\tpublic static {0} operator {1} ({2} lhs, int rhs)", resultType, op, m_Types[lhsTypeIndex - 1]); str.Append(" { "); str.AppendFormat("return new {0} (", resultType); @@ -296,7 +296,7 @@ void GenerateShiftOperator(int lhsTypeIndex, string op, int resultCount, string void GenerateUnaryOperator(int count, string op, StringBuilder str) { - str.Append("\t\t[MethodImpl(0x100)]\n"); + str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); str.AppendFormat("\t\tpublic static {0} operator {1} ({0} val)", m_Types[count - 1], op); str.Append(" { "); str.AppendFormat("return new {0} (", m_Types[count - 1]); @@ -401,7 +401,7 @@ void GenerateSwizzles(int[] swizzle, StringBuilder str) str.Append("\n\t\t{"); if (swizzle.Length != 1) { - str.AppendFormat("\n\t\t\t[MethodImpl(0x100)]"); + str.AppendFormat("\n\t\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]"); str.Append("\n\t\t\tget { return new "); str.Append(m_Types[swizzle.Length - 1]); str.Append('('); @@ -425,7 +425,7 @@ void GenerateSwizzles(int[] swizzle, StringBuilder str) //Setter if (allowSetter) { - str.AppendFormat("\n\t\t\t[MethodImpl(0x100)]"); + str.AppendFormat("\n\t\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]"); str.Append("\n\t\t\tset { "); for (int i = 0; i < swizzle.Length; i++) { diff --git a/src/Unity.Mathematics/IntFloatUnion.cs b/src/Unity.Mathematics/IntFloatUnion.cs index 67a38653..5e8c7364 100644 --- a/src/Unity.Mathematics/IntFloatUnion.cs +++ b/src/Unity.Mathematics/IntFloatUnion.cs @@ -1,4 +1,4 @@ -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; using System.Runtime.CompilerServices; namespace Unity.Mathematics @@ -11,27 +11,27 @@ internal struct IntFloatUnion [FieldOffset(0)] public float floatValue; - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public IntFloatUnion(float value) { intValue = 0; floatValue = (float)value; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public IntFloatUnion(int value) { floatValue = 0; intValue = (int)value; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int ToInt(float value) { return new IntFloatUnion(value).intValue; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float ToFloat(int value) { return new IntFloatUnion(value).floatValue; diff --git a/src/Unity.Mathematics/bool2.cs b/src/Unity.Mathematics/bool2.cs index c9f66992..e7d22479 100644 --- a/src/Unity.Mathematics/bool2.cs +++ b/src/Unity.Mathematics/bool2.cs @@ -26,20 +26,20 @@ public DebuggerProxy(bool2 vec) [MarshalAs(UnmanagedType.U1)] public bool y; - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2(bool val) { x = y = val; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2(bool x, bool y) { this.x = x; this.y = y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool2(bool d) { return new bool2(d); diff --git a/src/Unity.Mathematics/bool2.gen.cs b/src/Unity.Mathematics/bool2.gen.cs index 2dbc2842..defa6578 100644 --- a/src/Unity.Mathematics/bool2.gen.cs +++ b/src/Unity.Mathematics/bool2.gen.cs @@ -7,23 +7,23 @@ public partial struct bool2 : System.IEquatable { // equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (bool2 lhs, bool rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (bool lhs, bool2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } // not equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (bool2 lhs, bool rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (bool lhs, bool2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } // Equals - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool2 rhs) { return x == rhs.x && y == rhs.y; } // [int index] @@ -48,32 +48,32 @@ unsafe public bool this[int index] } // operator & - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator & (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x & rhs.x, lhs.y & rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator & (bool2 lhs, bool rhs) { return new bool2 (lhs.x & rhs, lhs.y & rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator & (bool lhs, bool2 rhs) { return new bool2 (lhs & rhs.x, lhs & rhs.y); } // operator | - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator | (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x | rhs.x, lhs.y | rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator | (bool2 lhs, bool rhs) { return new bool2 (lhs.x | rhs, lhs.y | rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator | (bool lhs, bool2 rhs) { return new bool2 (lhs | rhs.x, lhs | rhs.y); } // operator ^ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator ^ (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator ^ (bool2 lhs, bool rhs) { return new bool2 (lhs.x ^ rhs, lhs.y ^ rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator ^ (bool lhs, bool2 rhs) { return new bool2 (lhs ^ rhs.x, lhs ^ rhs.y); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, x, x); } } @@ -81,7 +81,7 @@ public bool4 xxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, x, y); } } @@ -89,7 +89,7 @@ public bool4 xxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, y, x); } } @@ -97,7 +97,7 @@ public bool4 xxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, y, y); } } @@ -105,7 +105,7 @@ public bool4 xxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, x, x); } } @@ -113,7 +113,7 @@ public bool4 xyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, x, y); } } @@ -121,7 +121,7 @@ public bool4 xyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, y, x); } } @@ -129,7 +129,7 @@ public bool4 xyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, y, y); } } @@ -137,7 +137,7 @@ public bool4 xyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, x, x); } } @@ -145,7 +145,7 @@ public bool4 yxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, x, y); } } @@ -153,7 +153,7 @@ public bool4 yxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, y, x); } } @@ -161,7 +161,7 @@ public bool4 yxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, y, y); } } @@ -169,7 +169,7 @@ public bool4 yxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, x, x); } } @@ -177,7 +177,7 @@ public bool4 yyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, x, y); } } @@ -185,7 +185,7 @@ public bool4 yyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, y, x); } } @@ -193,7 +193,7 @@ public bool4 yyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, y, y); } } @@ -201,7 +201,7 @@ public bool4 yyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, x, x); } } @@ -209,7 +209,7 @@ public bool3 xxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, x, y); } } @@ -217,7 +217,7 @@ public bool3 xxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, y, x); } } @@ -225,7 +225,7 @@ public bool3 xyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, y, y); } } @@ -233,7 +233,7 @@ public bool3 xyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, x, x); } } @@ -241,7 +241,7 @@ public bool3 yxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, x, y); } } @@ -249,7 +249,7 @@ public bool3 yxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, y, x); } } @@ -257,7 +257,7 @@ public bool3 yyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, y, y); } } @@ -265,7 +265,7 @@ public bool3 yyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(x, x); } } @@ -273,9 +273,9 @@ public bool2 xx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; } } @@ -283,9 +283,9 @@ public bool2 xy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; } } @@ -293,7 +293,7 @@ public bool2 yx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(y, y); } } diff --git a/src/Unity.Mathematics/bool3.cs b/src/Unity.Mathematics/bool3.cs index 1180df85..2ba827c5 100644 --- a/src/Unity.Mathematics/bool3.cs +++ b/src/Unity.Mathematics/bool3.cs @@ -30,10 +30,10 @@ public DebuggerProxy(bool3 vec) [MarshalAs(UnmanagedType.U1)] public bool z; - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3(bool val) { x = y = z = val; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3(bool x, bool y, bool z) { this.x = x; @@ -41,7 +41,7 @@ public bool3(bool x, bool y, bool z) this.z = z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3(bool2 xy, bool z) { this.x = xy.x; @@ -49,7 +49,7 @@ public bool3(bool2 xy, bool z) this.z = z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool3(bool d) { return new bool3(d); diff --git a/src/Unity.Mathematics/bool3.gen.cs b/src/Unity.Mathematics/bool3.gen.cs index 1fe1bf29..77ea9f95 100644 --- a/src/Unity.Mathematics/bool3.gen.cs +++ b/src/Unity.Mathematics/bool3.gen.cs @@ -7,23 +7,23 @@ public partial struct bool3 : System.IEquatable { // equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (bool3 lhs, bool rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (bool lhs, bool3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } // not equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (bool3 lhs, bool rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (bool lhs, bool3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } // Equals - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } // [int index] @@ -48,32 +48,32 @@ unsafe public bool this[int index] } // operator & - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator & (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator & (bool3 lhs, bool rhs) { return new bool3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator & (bool lhs, bool3 rhs) { return new bool3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } // operator | - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator | (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator | (bool3 lhs, bool rhs) { return new bool3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator | (bool lhs, bool3 rhs) { return new bool3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } // operator ^ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator ^ (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator ^ (bool3 lhs, bool rhs) { return new bool3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator ^ (bool lhs, bool3 rhs) { return new bool3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, x, x); } } @@ -81,7 +81,7 @@ public bool4 xxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, x, y); } } @@ -89,7 +89,7 @@ public bool4 xxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, x, z); } } @@ -97,7 +97,7 @@ public bool4 xxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, y, x); } } @@ -105,7 +105,7 @@ public bool4 xxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, y, y); } } @@ -113,7 +113,7 @@ public bool4 xxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, y, z); } } @@ -121,7 +121,7 @@ public bool4 xxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, z, x); } } @@ -129,7 +129,7 @@ public bool4 xxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, z, y); } } @@ -137,7 +137,7 @@ public bool4 xxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, z, z); } } @@ -145,7 +145,7 @@ public bool4 xxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, x, x); } } @@ -153,7 +153,7 @@ public bool4 xyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, x, y); } } @@ -161,7 +161,7 @@ public bool4 xyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, x, z); } } @@ -169,7 +169,7 @@ public bool4 xyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, y, x); } } @@ -177,7 +177,7 @@ public bool4 xyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, y, y); } } @@ -185,7 +185,7 @@ public bool4 xyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, y, z); } } @@ -193,7 +193,7 @@ public bool4 xyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, z, x); } } @@ -201,7 +201,7 @@ public bool4 xyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, z, y); } } @@ -209,7 +209,7 @@ public bool4 xyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, z, z); } } @@ -217,7 +217,7 @@ public bool4 xyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, x, x); } } @@ -225,7 +225,7 @@ public bool4 xzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, x, y); } } @@ -233,7 +233,7 @@ public bool4 xzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, x, z); } } @@ -241,7 +241,7 @@ public bool4 xzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, y, x); } } @@ -249,7 +249,7 @@ public bool4 xzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, y, y); } } @@ -257,7 +257,7 @@ public bool4 xzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, y, z); } } @@ -265,7 +265,7 @@ public bool4 xzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, z, x); } } @@ -273,7 +273,7 @@ public bool4 xzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, z, y); } } @@ -281,7 +281,7 @@ public bool4 xzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, z, z); } } @@ -289,7 +289,7 @@ public bool4 xzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, x, x); } } @@ -297,7 +297,7 @@ public bool4 yxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, x, y); } } @@ -305,7 +305,7 @@ public bool4 yxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, x, z); } } @@ -313,7 +313,7 @@ public bool4 yxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, y, x); } } @@ -321,7 +321,7 @@ public bool4 yxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, y, y); } } @@ -329,7 +329,7 @@ public bool4 yxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, y, z); } } @@ -337,7 +337,7 @@ public bool4 yxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, z, x); } } @@ -345,7 +345,7 @@ public bool4 yxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, z, y); } } @@ -353,7 +353,7 @@ public bool4 yxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, z, z); } } @@ -361,7 +361,7 @@ public bool4 yxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, x, x); } } @@ -369,7 +369,7 @@ public bool4 yyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, x, y); } } @@ -377,7 +377,7 @@ public bool4 yyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, x, z); } } @@ -385,7 +385,7 @@ public bool4 yyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, y, x); } } @@ -393,7 +393,7 @@ public bool4 yyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, y, y); } } @@ -401,7 +401,7 @@ public bool4 yyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, y, z); } } @@ -409,7 +409,7 @@ public bool4 yyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, z, x); } } @@ -417,7 +417,7 @@ public bool4 yyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, z, y); } } @@ -425,7 +425,7 @@ public bool4 yyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, z, z); } } @@ -433,7 +433,7 @@ public bool4 yyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, x, x); } } @@ -441,7 +441,7 @@ public bool4 yzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, x, y); } } @@ -449,7 +449,7 @@ public bool4 yzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, x, z); } } @@ -457,7 +457,7 @@ public bool4 yzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, y, x); } } @@ -465,7 +465,7 @@ public bool4 yzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, y, y); } } @@ -473,7 +473,7 @@ public bool4 yzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, y, z); } } @@ -481,7 +481,7 @@ public bool4 yzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, z, x); } } @@ -489,7 +489,7 @@ public bool4 yzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, z, y); } } @@ -497,7 +497,7 @@ public bool4 yzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, z, z); } } @@ -505,7 +505,7 @@ public bool4 yzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, x, x); } } @@ -513,7 +513,7 @@ public bool4 zxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, x, y); } } @@ -521,7 +521,7 @@ public bool4 zxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, x, z); } } @@ -529,7 +529,7 @@ public bool4 zxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, y, x); } } @@ -537,7 +537,7 @@ public bool4 zxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, y, y); } } @@ -545,7 +545,7 @@ public bool4 zxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, y, z); } } @@ -553,7 +553,7 @@ public bool4 zxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, z, x); } } @@ -561,7 +561,7 @@ public bool4 zxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, z, y); } } @@ -569,7 +569,7 @@ public bool4 zxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, z, z); } } @@ -577,7 +577,7 @@ public bool4 zxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, x, x); } } @@ -585,7 +585,7 @@ public bool4 zyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, x, y); } } @@ -593,7 +593,7 @@ public bool4 zyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, x, z); } } @@ -601,7 +601,7 @@ public bool4 zyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, y, x); } } @@ -609,7 +609,7 @@ public bool4 zyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, y, y); } } @@ -617,7 +617,7 @@ public bool4 zyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, y, z); } } @@ -625,7 +625,7 @@ public bool4 zyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, z, x); } } @@ -633,7 +633,7 @@ public bool4 zyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, z, y); } } @@ -641,7 +641,7 @@ public bool4 zyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, z, z); } } @@ -649,7 +649,7 @@ public bool4 zyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, x, x); } } @@ -657,7 +657,7 @@ public bool4 zzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, x, y); } } @@ -665,7 +665,7 @@ public bool4 zzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, x, z); } } @@ -673,7 +673,7 @@ public bool4 zzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, y, x); } } @@ -681,7 +681,7 @@ public bool4 zzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, y, y); } } @@ -689,7 +689,7 @@ public bool4 zzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, y, z); } } @@ -697,7 +697,7 @@ public bool4 zzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, z, x); } } @@ -705,7 +705,7 @@ public bool4 zzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, z, y); } } @@ -713,7 +713,7 @@ public bool4 zzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, z, z); } } @@ -721,7 +721,7 @@ public bool4 zzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, x, x); } } @@ -729,7 +729,7 @@ public bool3 xxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, x, y); } } @@ -737,7 +737,7 @@ public bool3 xxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, x, z); } } @@ -745,7 +745,7 @@ public bool3 xxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, y, x); } } @@ -753,7 +753,7 @@ public bool3 xyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, y, y); } } @@ -761,9 +761,9 @@ public bool3 xyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; z = value.z; } } @@ -771,7 +771,7 @@ public bool3 xyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, z, x); } } @@ -779,9 +779,9 @@ public bool3 xzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; y = value.z; } } @@ -789,7 +789,7 @@ public bool3 xzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, z, z); } } @@ -797,7 +797,7 @@ public bool3 xzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, x, x); } } @@ -805,7 +805,7 @@ public bool3 yxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, x, y); } } @@ -813,9 +813,9 @@ public bool3 yxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; z = value.z; } } @@ -823,7 +823,7 @@ public bool3 yxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, y, x); } } @@ -831,7 +831,7 @@ public bool3 yyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, y, y); } } @@ -839,7 +839,7 @@ public bool3 yyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, y, z); } } @@ -847,9 +847,9 @@ public bool3 yyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; x = value.z; } } @@ -857,7 +857,7 @@ public bool3 yzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, z, y); } } @@ -865,7 +865,7 @@ public bool3 yzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, z, z); } } @@ -873,7 +873,7 @@ public bool3 yzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, x, x); } } @@ -881,9 +881,9 @@ public bool3 zxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; y = value.z; } } @@ -891,7 +891,7 @@ public bool3 zxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, x, z); } } @@ -899,9 +899,9 @@ public bool3 zxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; x = value.z; } } @@ -909,7 +909,7 @@ public bool3 zyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, y, y); } } @@ -917,7 +917,7 @@ public bool3 zyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, y, z); } } @@ -925,7 +925,7 @@ public bool3 zyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, z, x); } } @@ -933,7 +933,7 @@ public bool3 zzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, z, y); } } @@ -941,7 +941,7 @@ public bool3 zzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, z, z); } } @@ -949,7 +949,7 @@ public bool3 zzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(x, x); } } @@ -957,9 +957,9 @@ public bool2 xx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; } } @@ -967,9 +967,9 @@ public bool2 xy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; } } @@ -977,9 +977,9 @@ public bool2 xz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; } } @@ -987,7 +987,7 @@ public bool2 yx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(y, y); } } @@ -995,9 +995,9 @@ public bool2 yy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; } } @@ -1005,9 +1005,9 @@ public bool2 yz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 zx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; } } @@ -1015,9 +1015,9 @@ public bool2 zx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 zy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; } } @@ -1025,7 +1025,7 @@ public bool2 zy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 zz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(z, z); } } diff --git a/src/Unity.Mathematics/bool4.cs b/src/Unity.Mathematics/bool4.cs index 155518d0..b8926c67 100644 --- a/src/Unity.Mathematics/bool4.cs +++ b/src/Unity.Mathematics/bool4.cs @@ -34,7 +34,7 @@ public DebuggerProxy(bool4 vec) [MarshalAs(UnmanagedType.U1)] public bool w; - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4(bool x, bool y, bool z, bool w) { this.x = x; @@ -43,19 +43,19 @@ public bool4(bool x, bool y, bool z, bool w) this.w = w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4(bool val) { x = y = z = w = val; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4(bool3 xyz, bool w) { x = xyz.x; y = xyz.y; z = xyz.z; this.w = w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool4(bool d) { return new bool4(d); diff --git a/src/Unity.Mathematics/bool4.gen.cs b/src/Unity.Mathematics/bool4.gen.cs index f7e81e23..b0be51c1 100644 --- a/src/Unity.Mathematics/bool4.gen.cs +++ b/src/Unity.Mathematics/bool4.gen.cs @@ -7,23 +7,23 @@ public partial struct bool4 : System.IEquatable { // equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (bool4 lhs, bool rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (bool lhs, bool4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } // not equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (bool4 lhs, bool rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (bool lhs, bool4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } // Equals - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } // [int index] @@ -48,32 +48,32 @@ unsafe public bool this[int index] } // operator & - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator & (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator & (bool4 lhs, bool rhs) { return new bool4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator & (bool lhs, bool4 rhs) { return new bool4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } // operator | - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator | (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator | (bool4 lhs, bool rhs) { return new bool4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator | (bool lhs, bool4 rhs) { return new bool4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } // operator ^ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator ^ (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator ^ (bool4 lhs, bool rhs) { return new bool4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator ^ (bool lhs, bool4 rhs) { return new bool4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, x, x); } } @@ -81,7 +81,7 @@ public bool4 xxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, x, y); } } @@ -89,7 +89,7 @@ public bool4 xxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, x, z); } } @@ -97,7 +97,7 @@ public bool4 xxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, x, w); } } @@ -105,7 +105,7 @@ public bool4 xxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, y, x); } } @@ -113,7 +113,7 @@ public bool4 xxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, y, y); } } @@ -121,7 +121,7 @@ public bool4 xxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, y, z); } } @@ -129,7 +129,7 @@ public bool4 xxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, y, w); } } @@ -137,7 +137,7 @@ public bool4 xxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, z, x); } } @@ -145,7 +145,7 @@ public bool4 xxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, z, y); } } @@ -153,7 +153,7 @@ public bool4 xxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, z, z); } } @@ -161,7 +161,7 @@ public bool4 xxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, z, w); } } @@ -169,7 +169,7 @@ public bool4 xxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, w, x); } } @@ -177,7 +177,7 @@ public bool4 xxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, w, y); } } @@ -185,7 +185,7 @@ public bool4 xxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, w, z); } } @@ -193,7 +193,7 @@ public bool4 xxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, x, w, w); } } @@ -201,7 +201,7 @@ public bool4 xxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, x, x); } } @@ -209,7 +209,7 @@ public bool4 xyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, x, y); } } @@ -217,7 +217,7 @@ public bool4 xyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, x, z); } } @@ -225,7 +225,7 @@ public bool4 xyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, x, w); } } @@ -233,7 +233,7 @@ public bool4 xyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, y, x); } } @@ -241,7 +241,7 @@ public bool4 xyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, y, y); } } @@ -249,7 +249,7 @@ public bool4 xyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, y, z); } } @@ -257,7 +257,7 @@ public bool4 xyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, y, w); } } @@ -265,7 +265,7 @@ public bool4 xyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, z, x); } } @@ -273,7 +273,7 @@ public bool4 xyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, z, y); } } @@ -281,7 +281,7 @@ public bool4 xyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, z, z); } } @@ -289,9 +289,9 @@ public bool4 xyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; z = value.z; w = value.w; } } @@ -299,7 +299,7 @@ public bool4 xyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, w, x); } } @@ -307,7 +307,7 @@ public bool4 xywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, w, y); } } @@ -315,9 +315,9 @@ public bool4 xywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; w = value.z; z = value.w; } } @@ -325,7 +325,7 @@ public bool4 xywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, y, w, w); } } @@ -333,7 +333,7 @@ public bool4 xyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, x, x); } } @@ -341,7 +341,7 @@ public bool4 xzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, x, y); } } @@ -349,7 +349,7 @@ public bool4 xzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, x, z); } } @@ -357,7 +357,7 @@ public bool4 xzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, x, w); } } @@ -365,7 +365,7 @@ public bool4 xzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, y, x); } } @@ -373,7 +373,7 @@ public bool4 xzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, y, y); } } @@ -381,7 +381,7 @@ public bool4 xzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, y, z); } } @@ -389,9 +389,9 @@ public bool4 xzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; y = value.z; w = value.w; } } @@ -399,7 +399,7 @@ public bool4 xzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, z, x); } } @@ -407,7 +407,7 @@ public bool4 xzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, z, y); } } @@ -415,7 +415,7 @@ public bool4 xzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, z, z); } } @@ -423,7 +423,7 @@ public bool4 xzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, z, w); } } @@ -431,7 +431,7 @@ public bool4 xzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, w, x); } } @@ -439,9 +439,9 @@ public bool4 xzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; w = value.z; y = value.w; } } @@ -449,7 +449,7 @@ public bool4 xzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, w, z); } } @@ -457,7 +457,7 @@ public bool4 xzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, z, w, w); } } @@ -465,7 +465,7 @@ public bool4 xzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, x, x); } } @@ -473,7 +473,7 @@ public bool4 xwxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, x, y); } } @@ -481,7 +481,7 @@ public bool4 xwxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, x, z); } } @@ -489,7 +489,7 @@ public bool4 xwxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, x, w); } } @@ -497,7 +497,7 @@ public bool4 xwxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, y, x); } } @@ -505,7 +505,7 @@ public bool4 xwyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, y, y); } } @@ -513,9 +513,9 @@ public bool4 xwyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; y = value.z; z = value.w; } } @@ -523,7 +523,7 @@ public bool4 xwyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, y, w); } } @@ -531,7 +531,7 @@ public bool4 xwyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, z, x); } } @@ -539,9 +539,9 @@ public bool4 xwzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; z = value.z; y = value.w; } } @@ -549,7 +549,7 @@ public bool4 xwzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, z, z); } } @@ -557,7 +557,7 @@ public bool4 xwzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, z, w); } } @@ -565,7 +565,7 @@ public bool4 xwzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, w, x); } } @@ -573,7 +573,7 @@ public bool4 xwwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, w, y); } } @@ -581,7 +581,7 @@ public bool4 xwwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, w, z); } } @@ -589,7 +589,7 @@ public bool4 xwwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(x, w, w, w); } } @@ -597,7 +597,7 @@ public bool4 xwww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, x, x); } } @@ -605,7 +605,7 @@ public bool4 yxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, x, y); } } @@ -613,7 +613,7 @@ public bool4 yxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, x, z); } } @@ -621,7 +621,7 @@ public bool4 yxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, x, w); } } @@ -629,7 +629,7 @@ public bool4 yxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, y, x); } } @@ -637,7 +637,7 @@ public bool4 yxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, y, y); } } @@ -645,7 +645,7 @@ public bool4 yxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, y, z); } } @@ -653,7 +653,7 @@ public bool4 yxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, y, w); } } @@ -661,7 +661,7 @@ public bool4 yxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, z, x); } } @@ -669,7 +669,7 @@ public bool4 yxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, z, y); } } @@ -677,7 +677,7 @@ public bool4 yxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, z, z); } } @@ -685,9 +685,9 @@ public bool4 yxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; z = value.z; w = value.w; } } @@ -695,7 +695,7 @@ public bool4 yxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, w, x); } } @@ -703,7 +703,7 @@ public bool4 yxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, w, y); } } @@ -711,9 +711,9 @@ public bool4 yxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; w = value.z; z = value.w; } } @@ -721,7 +721,7 @@ public bool4 yxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, x, w, w); } } @@ -729,7 +729,7 @@ public bool4 yxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, x, x); } } @@ -737,7 +737,7 @@ public bool4 yyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, x, y); } } @@ -745,7 +745,7 @@ public bool4 yyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, x, z); } } @@ -753,7 +753,7 @@ public bool4 yyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, x, w); } } @@ -761,7 +761,7 @@ public bool4 yyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, y, x); } } @@ -769,7 +769,7 @@ public bool4 yyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, y, y); } } @@ -777,7 +777,7 @@ public bool4 yyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, y, z); } } @@ -785,7 +785,7 @@ public bool4 yyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, y, w); } } @@ -793,7 +793,7 @@ public bool4 yyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, z, x); } } @@ -801,7 +801,7 @@ public bool4 yyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, z, y); } } @@ -809,7 +809,7 @@ public bool4 yyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, z, z); } } @@ -817,7 +817,7 @@ public bool4 yyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, z, w); } } @@ -825,7 +825,7 @@ public bool4 yyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, w, x); } } @@ -833,7 +833,7 @@ public bool4 yywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, w, y); } } @@ -841,7 +841,7 @@ public bool4 yywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, w, z); } } @@ -849,7 +849,7 @@ public bool4 yywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, y, w, w); } } @@ -857,7 +857,7 @@ public bool4 yyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, x, x); } } @@ -865,7 +865,7 @@ public bool4 yzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, x, y); } } @@ -873,7 +873,7 @@ public bool4 yzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, x, z); } } @@ -881,9 +881,9 @@ public bool4 yzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; x = value.z; w = value.w; } } @@ -891,7 +891,7 @@ public bool4 yzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, y, x); } } @@ -899,7 +899,7 @@ public bool4 yzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, y, y); } } @@ -907,7 +907,7 @@ public bool4 yzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, y, z); } } @@ -915,7 +915,7 @@ public bool4 yzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, y, w); } } @@ -923,7 +923,7 @@ public bool4 yzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, z, x); } } @@ -931,7 +931,7 @@ public bool4 yzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, z, y); } } @@ -939,7 +939,7 @@ public bool4 yzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, z, z); } } @@ -947,7 +947,7 @@ public bool4 yzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, z, w); } } @@ -955,9 +955,9 @@ public bool4 yzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; w = value.z; x = value.w; } } @@ -965,7 +965,7 @@ public bool4 yzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, w, y); } } @@ -973,7 +973,7 @@ public bool4 yzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, w, z); } } @@ -981,7 +981,7 @@ public bool4 yzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, z, w, w); } } @@ -989,7 +989,7 @@ public bool4 yzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, x, x); } } @@ -997,7 +997,7 @@ public bool4 ywxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, x, y); } } @@ -1005,9 +1005,9 @@ public bool4 ywxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; x = value.z; z = value.w; } } @@ -1015,7 +1015,7 @@ public bool4 ywxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, x, w); } } @@ -1023,7 +1023,7 @@ public bool4 ywxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, y, x); } } @@ -1031,7 +1031,7 @@ public bool4 ywyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, y, y); } } @@ -1039,7 +1039,7 @@ public bool4 ywyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, y, z); } } @@ -1047,7 +1047,7 @@ public bool4 ywyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, y, w); } } @@ -1055,9 +1055,9 @@ public bool4 ywyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; z = value.z; x = value.w; } } @@ -1065,7 +1065,7 @@ public bool4 ywzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, z, y); } } @@ -1073,7 +1073,7 @@ public bool4 ywzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, z, z); } } @@ -1081,7 +1081,7 @@ public bool4 ywzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, z, w); } } @@ -1089,7 +1089,7 @@ public bool4 ywzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, w, x); } } @@ -1097,7 +1097,7 @@ public bool4 ywwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, w, y); } } @@ -1105,7 +1105,7 @@ public bool4 ywwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, w, z); } } @@ -1113,7 +1113,7 @@ public bool4 ywwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(y, w, w, w); } } @@ -1121,7 +1121,7 @@ public bool4 ywww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, x, x); } } @@ -1129,7 +1129,7 @@ public bool4 zxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, x, y); } } @@ -1137,7 +1137,7 @@ public bool4 zxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, x, z); } } @@ -1145,7 +1145,7 @@ public bool4 zxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, x, w); } } @@ -1153,7 +1153,7 @@ public bool4 zxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, y, x); } } @@ -1161,7 +1161,7 @@ public bool4 zxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, y, y); } } @@ -1169,7 +1169,7 @@ public bool4 zxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, y, z); } } @@ -1177,9 +1177,9 @@ public bool4 zxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; y = value.z; w = value.w; } } @@ -1187,7 +1187,7 @@ public bool4 zxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, z, x); } } @@ -1195,7 +1195,7 @@ public bool4 zxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, z, y); } } @@ -1203,7 +1203,7 @@ public bool4 zxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, z, z); } } @@ -1211,7 +1211,7 @@ public bool4 zxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, z, w); } } @@ -1219,7 +1219,7 @@ public bool4 zxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, w, x); } } @@ -1227,9 +1227,9 @@ public bool4 zxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; w = value.z; y = value.w; } } @@ -1237,7 +1237,7 @@ public bool4 zxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, w, z); } } @@ -1245,7 +1245,7 @@ public bool4 zxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, x, w, w); } } @@ -1253,7 +1253,7 @@ public bool4 zxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, x, x); } } @@ -1261,7 +1261,7 @@ public bool4 zyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, x, y); } } @@ -1269,7 +1269,7 @@ public bool4 zyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, x, z); } } @@ -1277,9 +1277,9 @@ public bool4 zyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; x = value.z; w = value.w; } } @@ -1287,7 +1287,7 @@ public bool4 zyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, y, x); } } @@ -1295,7 +1295,7 @@ public bool4 zyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, y, y); } } @@ -1303,7 +1303,7 @@ public bool4 zyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, y, z); } } @@ -1311,7 +1311,7 @@ public bool4 zyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, y, w); } } @@ -1319,7 +1319,7 @@ public bool4 zyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, z, x); } } @@ -1327,7 +1327,7 @@ public bool4 zyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, z, y); } } @@ -1335,7 +1335,7 @@ public bool4 zyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, z, z); } } @@ -1343,7 +1343,7 @@ public bool4 zyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, z, w); } } @@ -1351,9 +1351,9 @@ public bool4 zyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; w = value.z; x = value.w; } } @@ -1361,7 +1361,7 @@ public bool4 zywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, w, y); } } @@ -1369,7 +1369,7 @@ public bool4 zywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, w, z); } } @@ -1377,7 +1377,7 @@ public bool4 zywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, y, w, w); } } @@ -1385,7 +1385,7 @@ public bool4 zyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, x, x); } } @@ -1393,7 +1393,7 @@ public bool4 zzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, x, y); } } @@ -1401,7 +1401,7 @@ public bool4 zzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, x, z); } } @@ -1409,7 +1409,7 @@ public bool4 zzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, x, w); } } @@ -1417,7 +1417,7 @@ public bool4 zzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, y, x); } } @@ -1425,7 +1425,7 @@ public bool4 zzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, y, y); } } @@ -1433,7 +1433,7 @@ public bool4 zzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, y, z); } } @@ -1441,7 +1441,7 @@ public bool4 zzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, y, w); } } @@ -1449,7 +1449,7 @@ public bool4 zzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, z, x); } } @@ -1457,7 +1457,7 @@ public bool4 zzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, z, y); } } @@ -1465,7 +1465,7 @@ public bool4 zzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, z, z); } } @@ -1473,7 +1473,7 @@ public bool4 zzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, z, w); } } @@ -1481,7 +1481,7 @@ public bool4 zzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, w, x); } } @@ -1489,7 +1489,7 @@ public bool4 zzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, w, y); } } @@ -1497,7 +1497,7 @@ public bool4 zzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, w, z); } } @@ -1505,7 +1505,7 @@ public bool4 zzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, z, w, w); } } @@ -1513,7 +1513,7 @@ public bool4 zzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, x, x); } } @@ -1521,9 +1521,9 @@ public bool4 zwxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; x = value.z; y = value.w; } } @@ -1531,7 +1531,7 @@ public bool4 zwxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, x, z); } } @@ -1539,7 +1539,7 @@ public bool4 zwxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, x, w); } } @@ -1547,9 +1547,9 @@ public bool4 zwxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; y = value.z; x = value.w; } } @@ -1557,7 +1557,7 @@ public bool4 zwyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, y, y); } } @@ -1565,7 +1565,7 @@ public bool4 zwyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, y, z); } } @@ -1573,7 +1573,7 @@ public bool4 zwyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, y, w); } } @@ -1581,7 +1581,7 @@ public bool4 zwyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, z, x); } } @@ -1589,7 +1589,7 @@ public bool4 zwzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, z, y); } } @@ -1597,7 +1597,7 @@ public bool4 zwzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, z, z); } } @@ -1605,7 +1605,7 @@ public bool4 zwzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, z, w); } } @@ -1613,7 +1613,7 @@ public bool4 zwzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, w, x); } } @@ -1621,7 +1621,7 @@ public bool4 zwwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, w, y); } } @@ -1629,7 +1629,7 @@ public bool4 zwwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, w, z); } } @@ -1637,7 +1637,7 @@ public bool4 zwwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(z, w, w, w); } } @@ -1645,7 +1645,7 @@ public bool4 zwww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, x, x); } } @@ -1653,7 +1653,7 @@ public bool4 wxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, x, y); } } @@ -1661,7 +1661,7 @@ public bool4 wxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, x, z); } } @@ -1669,7 +1669,7 @@ public bool4 wxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, x, w); } } @@ -1677,7 +1677,7 @@ public bool4 wxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, y, x); } } @@ -1685,7 +1685,7 @@ public bool4 wxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, y, y); } } @@ -1693,9 +1693,9 @@ public bool4 wxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; y = value.z; z = value.w; } } @@ -1703,7 +1703,7 @@ public bool4 wxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, y, w); } } @@ -1711,7 +1711,7 @@ public bool4 wxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, z, x); } } @@ -1719,9 +1719,9 @@ public bool4 wxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; z = value.z; y = value.w; } } @@ -1729,7 +1729,7 @@ public bool4 wxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, z, z); } } @@ -1737,7 +1737,7 @@ public bool4 wxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, z, w); } } @@ -1745,7 +1745,7 @@ public bool4 wxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, w, x); } } @@ -1753,7 +1753,7 @@ public bool4 wxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, w, y); } } @@ -1761,7 +1761,7 @@ public bool4 wxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, w, z); } } @@ -1769,7 +1769,7 @@ public bool4 wxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, x, w, w); } } @@ -1777,7 +1777,7 @@ public bool4 wxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, x, x); } } @@ -1785,7 +1785,7 @@ public bool4 wyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, x, y); } } @@ -1793,9 +1793,9 @@ public bool4 wyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; x = value.z; z = value.w; } } @@ -1803,7 +1803,7 @@ public bool4 wyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, x, w); } } @@ -1811,7 +1811,7 @@ public bool4 wyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, y, x); } } @@ -1819,7 +1819,7 @@ public bool4 wyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, y, y); } } @@ -1827,7 +1827,7 @@ public bool4 wyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, y, z); } } @@ -1835,7 +1835,7 @@ public bool4 wyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, y, w); } } @@ -1843,9 +1843,9 @@ public bool4 wyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; z = value.z; x = value.w; } } @@ -1853,7 +1853,7 @@ public bool4 wyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, z, y); } } @@ -1861,7 +1861,7 @@ public bool4 wyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, z, z); } } @@ -1869,7 +1869,7 @@ public bool4 wyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, z, w); } } @@ -1877,7 +1877,7 @@ public bool4 wyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, w, x); } } @@ -1885,7 +1885,7 @@ public bool4 wywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, w, y); } } @@ -1893,7 +1893,7 @@ public bool4 wywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, w, z); } } @@ -1901,7 +1901,7 @@ public bool4 wywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, y, w, w); } } @@ -1909,7 +1909,7 @@ public bool4 wyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, x, x); } } @@ -1917,9 +1917,9 @@ public bool4 wzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; x = value.z; y = value.w; } } @@ -1927,7 +1927,7 @@ public bool4 wzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, x, z); } } @@ -1935,7 +1935,7 @@ public bool4 wzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, x, w); } } @@ -1943,9 +1943,9 @@ public bool4 wzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; y = value.z; x = value.w; } } @@ -1953,7 +1953,7 @@ public bool4 wzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, y, y); } } @@ -1961,7 +1961,7 @@ public bool4 wzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, y, z); } } @@ -1969,7 +1969,7 @@ public bool4 wzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, y, w); } } @@ -1977,7 +1977,7 @@ public bool4 wzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, z, x); } } @@ -1985,7 +1985,7 @@ public bool4 wzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, z, y); } } @@ -1993,7 +1993,7 @@ public bool4 wzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, z, z); } } @@ -2001,7 +2001,7 @@ public bool4 wzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, z, w); } } @@ -2009,7 +2009,7 @@ public bool4 wzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, w, x); } } @@ -2017,7 +2017,7 @@ public bool4 wzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, w, y); } } @@ -2025,7 +2025,7 @@ public bool4 wzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, w, z); } } @@ -2033,7 +2033,7 @@ public bool4 wzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, z, w, w); } } @@ -2041,7 +2041,7 @@ public bool4 wzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, x, x); } } @@ -2049,7 +2049,7 @@ public bool4 wwxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, x, y); } } @@ -2057,7 +2057,7 @@ public bool4 wwxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, x, z); } } @@ -2065,7 +2065,7 @@ public bool4 wwxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, x, w); } } @@ -2073,7 +2073,7 @@ public bool4 wwxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, y, x); } } @@ -2081,7 +2081,7 @@ public bool4 wwyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, y, y); } } @@ -2089,7 +2089,7 @@ public bool4 wwyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, y, z); } } @@ -2097,7 +2097,7 @@ public bool4 wwyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, y, w); } } @@ -2105,7 +2105,7 @@ public bool4 wwyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, z, x); } } @@ -2113,7 +2113,7 @@ public bool4 wwzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, z, y); } } @@ -2121,7 +2121,7 @@ public bool4 wwzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, z, z); } } @@ -2129,7 +2129,7 @@ public bool4 wwzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, z, w); } } @@ -2137,7 +2137,7 @@ public bool4 wwzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, w, x); } } @@ -2145,7 +2145,7 @@ public bool4 wwwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, w, y); } } @@ -2153,7 +2153,7 @@ public bool4 wwwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, w, z); } } @@ -2161,7 +2161,7 @@ public bool4 wwwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool4(w, w, w, w); } } @@ -2169,7 +2169,7 @@ public bool4 wwww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, x, x); } } @@ -2177,7 +2177,7 @@ public bool3 xxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, x, y); } } @@ -2185,7 +2185,7 @@ public bool3 xxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, x, z); } } @@ -2193,7 +2193,7 @@ public bool3 xxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, x, w); } } @@ -2201,7 +2201,7 @@ public bool3 xxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, y, x); } } @@ -2209,7 +2209,7 @@ public bool3 xyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, y, y); } } @@ -2217,9 +2217,9 @@ public bool3 xyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; z = value.z; } } @@ -2227,9 +2227,9 @@ public bool3 xyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; w = value.z; } } @@ -2237,7 +2237,7 @@ public bool3 xyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, z, x); } } @@ -2245,9 +2245,9 @@ public bool3 xzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; y = value.z; } } @@ -2255,7 +2255,7 @@ public bool3 xzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, z, z); } } @@ -2263,9 +2263,9 @@ public bool3 xzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; w = value.z; } } @@ -2273,7 +2273,7 @@ public bool3 xzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, w, x); } } @@ -2281,9 +2281,9 @@ public bool3 xwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; y = value.z; } } @@ -2291,9 +2291,9 @@ public bool3 xwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; z = value.z; } } @@ -2301,7 +2301,7 @@ public bool3 xwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(x, w, w); } } @@ -2309,7 +2309,7 @@ public bool3 xww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, x, x); } } @@ -2317,7 +2317,7 @@ public bool3 yxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, x, y); } } @@ -2325,9 +2325,9 @@ public bool3 yxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; z = value.z; } } @@ -2335,9 +2335,9 @@ public bool3 yxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; w = value.z; } } @@ -2345,7 +2345,7 @@ public bool3 yxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, y, x); } } @@ -2353,7 +2353,7 @@ public bool3 yyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, y, y); } } @@ -2361,7 +2361,7 @@ public bool3 yyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, y, z); } } @@ -2369,7 +2369,7 @@ public bool3 yyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, y, w); } } @@ -2377,9 +2377,9 @@ public bool3 yyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; x = value.z; } } @@ -2387,7 +2387,7 @@ public bool3 yzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, z, y); } } @@ -2395,7 +2395,7 @@ public bool3 yzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, z, z); } } @@ -2403,9 +2403,9 @@ public bool3 yzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; w = value.z; } } @@ -2413,9 +2413,9 @@ public bool3 yzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 ywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; x = value.z; } } @@ -2423,7 +2423,7 @@ public bool3 ywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 ywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, w, y); } } @@ -2431,9 +2431,9 @@ public bool3 ywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 ywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; z = value.z; } } @@ -2441,7 +2441,7 @@ public bool3 ywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(y, w, w); } } @@ -2449,7 +2449,7 @@ public bool3 yww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, x, x); } } @@ -2457,9 +2457,9 @@ public bool3 zxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; y = value.z; } } @@ -2467,7 +2467,7 @@ public bool3 zxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, x, z); } } @@ -2475,9 +2475,9 @@ public bool3 zxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; w = value.z; } } @@ -2485,9 +2485,9 @@ public bool3 zxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; x = value.z; } } @@ -2495,7 +2495,7 @@ public bool3 zyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, y, y); } } @@ -2503,7 +2503,7 @@ public bool3 zyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, y, z); } } @@ -2511,9 +2511,9 @@ public bool3 zyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; w = value.z; } } @@ -2521,7 +2521,7 @@ public bool3 zyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, z, x); } } @@ -2529,7 +2529,7 @@ public bool3 zzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, z, y); } } @@ -2537,7 +2537,7 @@ public bool3 zzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, z, z); } } @@ -2545,7 +2545,7 @@ public bool3 zzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, z, w); } } @@ -2553,9 +2553,9 @@ public bool3 zzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; x = value.z; } } @@ -2563,9 +2563,9 @@ public bool3 zwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; y = value.z; } } @@ -2573,7 +2573,7 @@ public bool3 zwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, w, z); } } @@ -2581,7 +2581,7 @@ public bool3 zwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(z, w, w); } } @@ -2589,7 +2589,7 @@ public bool3 zww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, x, x); } } @@ -2597,9 +2597,9 @@ public bool3 wxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; y = value.z; } } @@ -2607,9 +2607,9 @@ public bool3 wxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; z = value.z; } } @@ -2617,7 +2617,7 @@ public bool3 wxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, x, w); } } @@ -2625,9 +2625,9 @@ public bool3 wxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; x = value.z; } } @@ -2635,7 +2635,7 @@ public bool3 wyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, y, y); } } @@ -2643,9 +2643,9 @@ public bool3 wyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; z = value.z; } } @@ -2653,7 +2653,7 @@ public bool3 wyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, y, w); } } @@ -2661,9 +2661,9 @@ public bool3 wyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; x = value.z; } } @@ -2671,9 +2671,9 @@ public bool3 wzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; y = value.z; } } @@ -2681,7 +2681,7 @@ public bool3 wzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, z, z); } } @@ -2689,7 +2689,7 @@ public bool3 wzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, z, w); } } @@ -2697,7 +2697,7 @@ public bool3 wzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, w, x); } } @@ -2705,7 +2705,7 @@ public bool3 wwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, w, y); } } @@ -2713,7 +2713,7 @@ public bool3 wwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, w, z); } } @@ -2721,7 +2721,7 @@ public bool3 wwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 www { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool3(w, w, w); } } @@ -2729,7 +2729,7 @@ public bool3 www [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(x, x); } } @@ -2737,9 +2737,9 @@ public bool2 xx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; } } @@ -2747,9 +2747,9 @@ public bool2 xy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; } } @@ -2757,9 +2757,9 @@ public bool2 xz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; } } @@ -2767,9 +2767,9 @@ public bool2 xw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; } } @@ -2777,7 +2777,7 @@ public bool2 yx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(y, y); } } @@ -2785,9 +2785,9 @@ public bool2 yy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; } } @@ -2795,9 +2795,9 @@ public bool2 yz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; } } @@ -2805,9 +2805,9 @@ public bool2 yw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 zx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; } } @@ -2815,9 +2815,9 @@ public bool2 zx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 zy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; } } @@ -2825,7 +2825,7 @@ public bool2 zy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 zz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(z, z); } } @@ -2833,9 +2833,9 @@ public bool2 zz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 zw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; } } @@ -2843,9 +2843,9 @@ public bool2 zw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 wx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; } } @@ -2853,9 +2853,9 @@ public bool2 wx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 wy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; } } @@ -2863,9 +2863,9 @@ public bool2 wy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 wz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; } } @@ -2873,7 +2873,7 @@ public bool2 wz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 ww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new bool2(w, w); } } diff --git a/src/Unity.Mathematics/float2.cs b/src/Unity.Mathematics/float2.cs index aef9193e..335df640 100644 --- a/src/Unity.Mathematics/float2.cs +++ b/src/Unity.Mathematics/float2.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Runtime.CompilerServices; using System.Diagnostics; @@ -25,28 +25,28 @@ public DebuggerProxy(float2 vec) public float x; public float y; - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(float x, float y) { this.x = x; this.y = y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(float val) { x = y = val; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(int val) { x = y = val; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(int2 val) { x = val.x; y = val.y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2(float d) { return new float2(d); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2(int2 d) { return new float2(d.x, d.y); } public override string ToString() diff --git a/src/Unity.Mathematics/float2.gen.cs b/src/Unity.Mathematics/float2.gen.cs index 31a88a8d..6e37f210 100644 --- a/src/Unity.Mathematics/float2.gen.cs +++ b/src/Unity.Mathematics/float2.gen.cs @@ -7,89 +7,89 @@ public partial struct float2 : System.IEquatable { // mul - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator * (float2 lhs, float2 rhs) { return new float2 (lhs.x * rhs.x, lhs.y * rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator * (float2 lhs, float rhs) { return new float2 (lhs.x * rhs, lhs.y * rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator * (float lhs, float2 rhs) { return new float2 (lhs * rhs.x, lhs * rhs.y); } // add - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator + (float2 lhs, float2 rhs) { return new float2 (lhs.x + rhs.x, lhs.y + rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator + (float2 lhs, float rhs) { return new float2 (lhs.x + rhs, lhs.y + rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator + (float lhs, float2 rhs) { return new float2 (lhs + rhs.x, lhs + rhs.y); } // sub - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator - (float2 lhs, float2 rhs) { return new float2 (lhs.x - rhs.x, lhs.y - rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator - (float2 lhs, float rhs) { return new float2 (lhs.x - rhs, lhs.y - rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator - (float lhs, float2 rhs) { return new float2 (lhs - rhs.x, lhs - rhs.y); } // div - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator / (float2 lhs, float2 rhs) { return new float2 (lhs.x / rhs.x, lhs.y / rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator / (float2 lhs, float rhs) { return new float2 (lhs.x / rhs, lhs.y / rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator / (float lhs, float2 rhs) { return new float2 (lhs / rhs.x, lhs / rhs.y); } // smaller - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (float2 lhs, float2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (float2 lhs, float rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (float lhs, float2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (float2 lhs, float2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (float2 lhs, float rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (float lhs, float2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } // greater - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (float2 lhs, float2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (float2 lhs, float rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (float lhs, float2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (float2 lhs, float2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (float2 lhs, float rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (float lhs, float2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } // neg - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator - (float2 val) { return new float2 (-val.x, -val.y); } // plus - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator + (float2 val) { return new float2 (+val.x, +val.y); } // equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (float2 lhs, float2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (float2 lhs, float rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (float lhs, float2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } // not equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (float2 lhs, float2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (float2 lhs, float rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (float lhs, float2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } // Equals - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float2 rhs) { return x == rhs.x && y == rhs.y; } // [int index] @@ -115,7 +115,7 @@ unsafe public float this[int index] [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, x, x); } } @@ -123,7 +123,7 @@ public float4 xxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, x, y); } } @@ -131,7 +131,7 @@ public float4 xxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, y, x); } } @@ -139,7 +139,7 @@ public float4 xxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, y, y); } } @@ -147,7 +147,7 @@ public float4 xxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, x, x); } } @@ -155,7 +155,7 @@ public float4 xyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, x, y); } } @@ -163,7 +163,7 @@ public float4 xyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, y, x); } } @@ -171,7 +171,7 @@ public float4 xyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, y, y); } } @@ -179,7 +179,7 @@ public float4 xyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, x, x); } } @@ -187,7 +187,7 @@ public float4 yxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, x, y); } } @@ -195,7 +195,7 @@ public float4 yxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, y, x); } } @@ -203,7 +203,7 @@ public float4 yxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, y, y); } } @@ -211,7 +211,7 @@ public float4 yxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, x, x); } } @@ -219,7 +219,7 @@ public float4 yyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, x, y); } } @@ -227,7 +227,7 @@ public float4 yyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, y, x); } } @@ -235,7 +235,7 @@ public float4 yyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, y, y); } } @@ -243,7 +243,7 @@ public float4 yyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, x, x); } } @@ -251,7 +251,7 @@ public float3 xxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, x, y); } } @@ -259,7 +259,7 @@ public float3 xxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, y, x); } } @@ -267,7 +267,7 @@ public float3 xyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, y, y); } } @@ -275,7 +275,7 @@ public float3 xyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, x, x); } } @@ -283,7 +283,7 @@ public float3 yxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, x, y); } } @@ -291,7 +291,7 @@ public float3 yxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, y, x); } } @@ -299,7 +299,7 @@ public float3 yyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, y, y); } } @@ -307,7 +307,7 @@ public float3 yyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(x, x); } } @@ -315,9 +315,9 @@ public float2 xx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; } } @@ -325,9 +325,9 @@ public float2 xy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; } } @@ -335,7 +335,7 @@ public float2 yx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(y, y); } } diff --git a/src/Unity.Mathematics/float3.cs b/src/Unity.Mathematics/float3.cs index 75147e1b..2b82c53f 100644 --- a/src/Unity.Mathematics/float3.cs +++ b/src/Unity.Mathematics/float3.cs @@ -27,7 +27,7 @@ public DebuggerProxy(float3 vec) public float y; public float z; - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(float x, float y, float z) { this.x = x; @@ -35,10 +35,10 @@ public float3(float x, float y, float z) this.z = z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(float val) { x = y = z = val; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(float2 xy, float z) { this.x = xy.x; @@ -46,7 +46,7 @@ public float3(float2 xy, float z) this.z = z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(float x, float2 yz) { this.x = x; @@ -54,10 +54,10 @@ public float3(float x, float2 yz) this.z = yz.y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(int val) { x = y = z = val; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(int3 val) { x = val.x; @@ -65,10 +65,10 @@ public float3(int3 val) z = val.z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3(float d) { return new float3(d); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3(int3 d) { return new float3(d.x, d.y, d.z); } public override string ToString() diff --git a/src/Unity.Mathematics/float3.gen.cs b/src/Unity.Mathematics/float3.gen.cs index e7d84113..53671527 100644 --- a/src/Unity.Mathematics/float3.gen.cs +++ b/src/Unity.Mathematics/float3.gen.cs @@ -7,89 +7,89 @@ public partial struct float3 : System.IEquatable { // mul - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator * (float3 lhs, float3 rhs) { return new float3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator * (float3 lhs, float rhs) { return new float3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator * (float lhs, float3 rhs) { return new float3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } // add - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator + (float3 lhs, float3 rhs) { return new float3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator + (float3 lhs, float rhs) { return new float3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator + (float lhs, float3 rhs) { return new float3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } // sub - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator - (float3 lhs, float3 rhs) { return new float3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator - (float3 lhs, float rhs) { return new float3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator - (float lhs, float3 rhs) { return new float3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } // div - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator / (float3 lhs, float3 rhs) { return new float3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator / (float3 lhs, float rhs) { return new float3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator / (float lhs, float3 rhs) { return new float3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } // smaller - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (float3 lhs, float3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (float3 lhs, float rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (float lhs, float3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (float3 lhs, float3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (float3 lhs, float rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (float lhs, float3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } // greater - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (float3 lhs, float3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (float3 lhs, float rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (float lhs, float3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (float3 lhs, float3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (float3 lhs, float rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (float lhs, float3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } // neg - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator - (float3 val) { return new float3 (-val.x, -val.y, -val.z); } // plus - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator + (float3 val) { return new float3 (+val.x, +val.y, +val.z); } // equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (float3 lhs, float3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (float3 lhs, float rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (float lhs, float3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } // not equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (float3 lhs, float3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (float3 lhs, float rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (float lhs, float3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } // Equals - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } // [int index] @@ -115,7 +115,7 @@ unsafe public float this[int index] [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, x, x); } } @@ -123,7 +123,7 @@ public float4 xxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, x, y); } } @@ -131,7 +131,7 @@ public float4 xxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, x, z); } } @@ -139,7 +139,7 @@ public float4 xxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, y, x); } } @@ -147,7 +147,7 @@ public float4 xxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, y, y); } } @@ -155,7 +155,7 @@ public float4 xxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, y, z); } } @@ -163,7 +163,7 @@ public float4 xxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, z, x); } } @@ -171,7 +171,7 @@ public float4 xxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, z, y); } } @@ -179,7 +179,7 @@ public float4 xxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, z, z); } } @@ -187,7 +187,7 @@ public float4 xxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, x, x); } } @@ -195,7 +195,7 @@ public float4 xyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, x, y); } } @@ -203,7 +203,7 @@ public float4 xyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, x, z); } } @@ -211,7 +211,7 @@ public float4 xyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, y, x); } } @@ -219,7 +219,7 @@ public float4 xyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, y, y); } } @@ -227,7 +227,7 @@ public float4 xyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, y, z); } } @@ -235,7 +235,7 @@ public float4 xyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, z, x); } } @@ -243,7 +243,7 @@ public float4 xyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, z, y); } } @@ -251,7 +251,7 @@ public float4 xyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, z, z); } } @@ -259,7 +259,7 @@ public float4 xyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, x, x); } } @@ -267,7 +267,7 @@ public float4 xzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, x, y); } } @@ -275,7 +275,7 @@ public float4 xzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, x, z); } } @@ -283,7 +283,7 @@ public float4 xzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, y, x); } } @@ -291,7 +291,7 @@ public float4 xzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, y, y); } } @@ -299,7 +299,7 @@ public float4 xzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, y, z); } } @@ -307,7 +307,7 @@ public float4 xzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, z, x); } } @@ -315,7 +315,7 @@ public float4 xzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, z, y); } } @@ -323,7 +323,7 @@ public float4 xzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, z, z); } } @@ -331,7 +331,7 @@ public float4 xzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, x, x); } } @@ -339,7 +339,7 @@ public float4 yxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, x, y); } } @@ -347,7 +347,7 @@ public float4 yxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, x, z); } } @@ -355,7 +355,7 @@ public float4 yxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, y, x); } } @@ -363,7 +363,7 @@ public float4 yxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, y, y); } } @@ -371,7 +371,7 @@ public float4 yxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, y, z); } } @@ -379,7 +379,7 @@ public float4 yxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, z, x); } } @@ -387,7 +387,7 @@ public float4 yxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, z, y); } } @@ -395,7 +395,7 @@ public float4 yxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, z, z); } } @@ -403,7 +403,7 @@ public float4 yxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, x, x); } } @@ -411,7 +411,7 @@ public float4 yyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, x, y); } } @@ -419,7 +419,7 @@ public float4 yyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, x, z); } } @@ -427,7 +427,7 @@ public float4 yyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, y, x); } } @@ -435,7 +435,7 @@ public float4 yyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, y, y); } } @@ -443,7 +443,7 @@ public float4 yyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, y, z); } } @@ -451,7 +451,7 @@ public float4 yyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, z, x); } } @@ -459,7 +459,7 @@ public float4 yyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, z, y); } } @@ -467,7 +467,7 @@ public float4 yyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, z, z); } } @@ -475,7 +475,7 @@ public float4 yyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, x, x); } } @@ -483,7 +483,7 @@ public float4 yzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, x, y); } } @@ -491,7 +491,7 @@ public float4 yzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, x, z); } } @@ -499,7 +499,7 @@ public float4 yzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, y, x); } } @@ -507,7 +507,7 @@ public float4 yzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, y, y); } } @@ -515,7 +515,7 @@ public float4 yzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, y, z); } } @@ -523,7 +523,7 @@ public float4 yzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, z, x); } } @@ -531,7 +531,7 @@ public float4 yzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, z, y); } } @@ -539,7 +539,7 @@ public float4 yzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, z, z); } } @@ -547,7 +547,7 @@ public float4 yzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, x, x); } } @@ -555,7 +555,7 @@ public float4 zxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, x, y); } } @@ -563,7 +563,7 @@ public float4 zxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, x, z); } } @@ -571,7 +571,7 @@ public float4 zxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, y, x); } } @@ -579,7 +579,7 @@ public float4 zxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, y, y); } } @@ -587,7 +587,7 @@ public float4 zxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, y, z); } } @@ -595,7 +595,7 @@ public float4 zxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, z, x); } } @@ -603,7 +603,7 @@ public float4 zxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, z, y); } } @@ -611,7 +611,7 @@ public float4 zxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, z, z); } } @@ -619,7 +619,7 @@ public float4 zxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, x, x); } } @@ -627,7 +627,7 @@ public float4 zyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, x, y); } } @@ -635,7 +635,7 @@ public float4 zyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, x, z); } } @@ -643,7 +643,7 @@ public float4 zyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, y, x); } } @@ -651,7 +651,7 @@ public float4 zyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, y, y); } } @@ -659,7 +659,7 @@ public float4 zyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, y, z); } } @@ -667,7 +667,7 @@ public float4 zyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, z, x); } } @@ -675,7 +675,7 @@ public float4 zyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, z, y); } } @@ -683,7 +683,7 @@ public float4 zyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, z, z); } } @@ -691,7 +691,7 @@ public float4 zyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, x, x); } } @@ -699,7 +699,7 @@ public float4 zzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, x, y); } } @@ -707,7 +707,7 @@ public float4 zzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, x, z); } } @@ -715,7 +715,7 @@ public float4 zzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, y, x); } } @@ -723,7 +723,7 @@ public float4 zzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, y, y); } } @@ -731,7 +731,7 @@ public float4 zzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, y, z); } } @@ -739,7 +739,7 @@ public float4 zzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, z, x); } } @@ -747,7 +747,7 @@ public float4 zzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, z, y); } } @@ -755,7 +755,7 @@ public float4 zzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, z, z); } } @@ -763,7 +763,7 @@ public float4 zzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, x, x); } } @@ -771,7 +771,7 @@ public float3 xxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, x, y); } } @@ -779,7 +779,7 @@ public float3 xxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, x, z); } } @@ -787,7 +787,7 @@ public float3 xxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, y, x); } } @@ -795,7 +795,7 @@ public float3 xyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, y, y); } } @@ -803,9 +803,9 @@ public float3 xyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; z = value.z; } } @@ -813,7 +813,7 @@ public float3 xyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, z, x); } } @@ -821,9 +821,9 @@ public float3 xzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; y = value.z; } } @@ -831,7 +831,7 @@ public float3 xzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, z, z); } } @@ -839,7 +839,7 @@ public float3 xzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, x, x); } } @@ -847,7 +847,7 @@ public float3 yxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, x, y); } } @@ -855,9 +855,9 @@ public float3 yxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; z = value.z; } } @@ -865,7 +865,7 @@ public float3 yxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, y, x); } } @@ -873,7 +873,7 @@ public float3 yyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, y, y); } } @@ -881,7 +881,7 @@ public float3 yyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, y, z); } } @@ -889,9 +889,9 @@ public float3 yyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; x = value.z; } } @@ -899,7 +899,7 @@ public float3 yzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, z, y); } } @@ -907,7 +907,7 @@ public float3 yzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, z, z); } } @@ -915,7 +915,7 @@ public float3 yzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, x, x); } } @@ -923,9 +923,9 @@ public float3 zxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; y = value.z; } } @@ -933,7 +933,7 @@ public float3 zxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, x, z); } } @@ -941,9 +941,9 @@ public float3 zxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; x = value.z; } } @@ -951,7 +951,7 @@ public float3 zyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, y, y); } } @@ -959,7 +959,7 @@ public float3 zyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, y, z); } } @@ -967,7 +967,7 @@ public float3 zyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, z, x); } } @@ -975,7 +975,7 @@ public float3 zzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, z, y); } } @@ -983,7 +983,7 @@ public float3 zzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, z, z); } } @@ -991,7 +991,7 @@ public float3 zzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(x, x); } } @@ -999,9 +999,9 @@ public float2 xx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; } } @@ -1009,9 +1009,9 @@ public float2 xy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; } } @@ -1019,9 +1019,9 @@ public float2 xz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; } } @@ -1029,7 +1029,7 @@ public float2 yx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(y, y); } } @@ -1037,9 +1037,9 @@ public float2 yy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; } } @@ -1047,9 +1047,9 @@ public float2 yz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 zx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; } } @@ -1057,9 +1057,9 @@ public float2 zx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 zy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; } } @@ -1067,7 +1067,7 @@ public float2 zy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 zz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(z, z); } } diff --git a/src/Unity.Mathematics/float4.cs b/src/Unity.Mathematics/float4.cs index 38d9274b..759a225d 100644 --- a/src/Unity.Mathematics/float4.cs +++ b/src/Unity.Mathematics/float4.cs @@ -32,7 +32,7 @@ public DebuggerProxy(float4 vec) public float z; public float w; - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float4 xyzw) { this.x = xyzw.x; @@ -41,7 +41,7 @@ public float4(float4 xyzw) this.w = xyzw.w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float x, float y, float z, float w) { this.x = x; @@ -52,10 +52,10 @@ public float4(float x, float y, float z, float w) - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float val) { x = y = z = w = val; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float2 xy, float2 zw) { this.x = xy.x; @@ -64,7 +64,7 @@ public float4(float2 xy, float2 zw) this.w = zw.y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float2 xy, float z, float w) { this.x = xy.x; @@ -73,7 +73,7 @@ public float4(float2 xy, float z, float w) this.w = w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float x, float2 yz, float w) { this.x = x; @@ -82,7 +82,7 @@ public float4(float x, float2 yz, float w) this.w = w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float x, float3 yzw) { this.x = x; @@ -91,7 +91,7 @@ public float4(float x, float3 yzw) this.w = yzw.z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float x, float y, float2 zw) { this.x = x; @@ -100,7 +100,7 @@ public float4(float x, float y, float2 zw) this.w = zw.y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float3 xyz, float w) { this.x = xyz.x; @@ -109,10 +109,10 @@ public float4(float3 xyz, float w) this.w = w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(int val) { x = y = z = w = val; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(int4 val) { x = val.x; @@ -121,7 +121,7 @@ public float4(int4 val) w = val.w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(bool4 val) { x = val.x ? 1.0f : 0.0f; @@ -130,10 +130,10 @@ public float4(bool4 val) w = val.w ? 1.0f : 0.0f; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4(float d) { return new float4(d); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4(int4 d) { return new float4(d.x, d.y, d.z, d.w); } public override string ToString() diff --git a/src/Unity.Mathematics/float4.gen.cs b/src/Unity.Mathematics/float4.gen.cs index 9c6142fc..2f946b4b 100644 --- a/src/Unity.Mathematics/float4.gen.cs +++ b/src/Unity.Mathematics/float4.gen.cs @@ -7,89 +7,89 @@ public partial struct float4 : System.IEquatable { // mul - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator * (float4 lhs, float4 rhs) { return new float4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator * (float4 lhs, float rhs) { return new float4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator * (float lhs, float4 rhs) { return new float4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } // add - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator + (float4 lhs, float4 rhs) { return new float4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator + (float4 lhs, float rhs) { return new float4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator + (float lhs, float4 rhs) { return new float4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } // sub - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator - (float4 lhs, float4 rhs) { return new float4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator - (float4 lhs, float rhs) { return new float4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator - (float lhs, float4 rhs) { return new float4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } // div - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator / (float4 lhs, float4 rhs) { return new float4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator / (float4 lhs, float rhs) { return new float4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator / (float lhs, float4 rhs) { return new float4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } // smaller - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (float4 lhs, float4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (float4 lhs, float rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (float lhs, float4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (float4 lhs, float4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (float4 lhs, float rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (float lhs, float4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } // greater - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (float4 lhs, float4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (float4 lhs, float rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (float lhs, float4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (float4 lhs, float4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (float4 lhs, float rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (float lhs, float4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } // neg - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator - (float4 val) { return new float4 (-val.x, -val.y, -val.z, -val.w); } // plus - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator + (float4 val) { return new float4 (+val.x, +val.y, +val.z, +val.w); } // equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (float4 lhs, float4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (float4 lhs, float rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (float lhs, float4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } // not equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (float4 lhs, float4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (float4 lhs, float rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (float lhs, float4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } // Equals - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } // [int index] @@ -115,7 +115,7 @@ unsafe public float this[int index] [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, x, x); } } @@ -123,7 +123,7 @@ public float4 xxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, x, y); } } @@ -131,7 +131,7 @@ public float4 xxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, x, z); } } @@ -139,7 +139,7 @@ public float4 xxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, x, w); } } @@ -147,7 +147,7 @@ public float4 xxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, y, x); } } @@ -155,7 +155,7 @@ public float4 xxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, y, y); } } @@ -163,7 +163,7 @@ public float4 xxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, y, z); } } @@ -171,7 +171,7 @@ public float4 xxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, y, w); } } @@ -179,7 +179,7 @@ public float4 xxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, z, x); } } @@ -187,7 +187,7 @@ public float4 xxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, z, y); } } @@ -195,7 +195,7 @@ public float4 xxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, z, z); } } @@ -203,7 +203,7 @@ public float4 xxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, z, w); } } @@ -211,7 +211,7 @@ public float4 xxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, w, x); } } @@ -219,7 +219,7 @@ public float4 xxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, w, y); } } @@ -227,7 +227,7 @@ public float4 xxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, w, z); } } @@ -235,7 +235,7 @@ public float4 xxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, x, w, w); } } @@ -243,7 +243,7 @@ public float4 xxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, x, x); } } @@ -251,7 +251,7 @@ public float4 xyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, x, y); } } @@ -259,7 +259,7 @@ public float4 xyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, x, z); } } @@ -267,7 +267,7 @@ public float4 xyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, x, w); } } @@ -275,7 +275,7 @@ public float4 xyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, y, x); } } @@ -283,7 +283,7 @@ public float4 xyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, y, y); } } @@ -291,7 +291,7 @@ public float4 xyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, y, z); } } @@ -299,7 +299,7 @@ public float4 xyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, y, w); } } @@ -307,7 +307,7 @@ public float4 xyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, z, x); } } @@ -315,7 +315,7 @@ public float4 xyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, z, y); } } @@ -323,7 +323,7 @@ public float4 xyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, z, z); } } @@ -331,9 +331,9 @@ public float4 xyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; z = value.z; w = value.w; } } @@ -341,7 +341,7 @@ public float4 xyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, w, x); } } @@ -349,7 +349,7 @@ public float4 xywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, w, y); } } @@ -357,9 +357,9 @@ public float4 xywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; w = value.z; z = value.w; } } @@ -367,7 +367,7 @@ public float4 xywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, y, w, w); } } @@ -375,7 +375,7 @@ public float4 xyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, x, x); } } @@ -383,7 +383,7 @@ public float4 xzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, x, y); } } @@ -391,7 +391,7 @@ public float4 xzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, x, z); } } @@ -399,7 +399,7 @@ public float4 xzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, x, w); } } @@ -407,7 +407,7 @@ public float4 xzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, y, x); } } @@ -415,7 +415,7 @@ public float4 xzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, y, y); } } @@ -423,7 +423,7 @@ public float4 xzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, y, z); } } @@ -431,9 +431,9 @@ public float4 xzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; y = value.z; w = value.w; } } @@ -441,7 +441,7 @@ public float4 xzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, z, x); } } @@ -449,7 +449,7 @@ public float4 xzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, z, y); } } @@ -457,7 +457,7 @@ public float4 xzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, z, z); } } @@ -465,7 +465,7 @@ public float4 xzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, z, w); } } @@ -473,7 +473,7 @@ public float4 xzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, w, x); } } @@ -481,9 +481,9 @@ public float4 xzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; w = value.z; y = value.w; } } @@ -491,7 +491,7 @@ public float4 xzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, w, z); } } @@ -499,7 +499,7 @@ public float4 xzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, z, w, w); } } @@ -507,7 +507,7 @@ public float4 xzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, x, x); } } @@ -515,7 +515,7 @@ public float4 xwxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, x, y); } } @@ -523,7 +523,7 @@ public float4 xwxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, x, z); } } @@ -531,7 +531,7 @@ public float4 xwxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, x, w); } } @@ -539,7 +539,7 @@ public float4 xwxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, y, x); } } @@ -547,7 +547,7 @@ public float4 xwyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, y, y); } } @@ -555,9 +555,9 @@ public float4 xwyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; y = value.z; z = value.w; } } @@ -565,7 +565,7 @@ public float4 xwyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, y, w); } } @@ -573,7 +573,7 @@ public float4 xwyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, z, x); } } @@ -581,9 +581,9 @@ public float4 xwzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; z = value.z; y = value.w; } } @@ -591,7 +591,7 @@ public float4 xwzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, z, z); } } @@ -599,7 +599,7 @@ public float4 xwzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, z, w); } } @@ -607,7 +607,7 @@ public float4 xwzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, w, x); } } @@ -615,7 +615,7 @@ public float4 xwwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, w, y); } } @@ -623,7 +623,7 @@ public float4 xwwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, w, z); } } @@ -631,7 +631,7 @@ public float4 xwwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(x, w, w, w); } } @@ -639,7 +639,7 @@ public float4 xwww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, x, x); } } @@ -647,7 +647,7 @@ public float4 yxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, x, y); } } @@ -655,7 +655,7 @@ public float4 yxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, x, z); } } @@ -663,7 +663,7 @@ public float4 yxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, x, w); } } @@ -671,7 +671,7 @@ public float4 yxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, y, x); } } @@ -679,7 +679,7 @@ public float4 yxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, y, y); } } @@ -687,7 +687,7 @@ public float4 yxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, y, z); } } @@ -695,7 +695,7 @@ public float4 yxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, y, w); } } @@ -703,7 +703,7 @@ public float4 yxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, z, x); } } @@ -711,7 +711,7 @@ public float4 yxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, z, y); } } @@ -719,7 +719,7 @@ public float4 yxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, z, z); } } @@ -727,9 +727,9 @@ public float4 yxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; z = value.z; w = value.w; } } @@ -737,7 +737,7 @@ public float4 yxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, w, x); } } @@ -745,7 +745,7 @@ public float4 yxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, w, y); } } @@ -753,9 +753,9 @@ public float4 yxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; w = value.z; z = value.w; } } @@ -763,7 +763,7 @@ public float4 yxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, x, w, w); } } @@ -771,7 +771,7 @@ public float4 yxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, x, x); } } @@ -779,7 +779,7 @@ public float4 yyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, x, y); } } @@ -787,7 +787,7 @@ public float4 yyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, x, z); } } @@ -795,7 +795,7 @@ public float4 yyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, x, w); } } @@ -803,7 +803,7 @@ public float4 yyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, y, x); } } @@ -811,7 +811,7 @@ public float4 yyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, y, y); } } @@ -819,7 +819,7 @@ public float4 yyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, y, z); } } @@ -827,7 +827,7 @@ public float4 yyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, y, w); } } @@ -835,7 +835,7 @@ public float4 yyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, z, x); } } @@ -843,7 +843,7 @@ public float4 yyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, z, y); } } @@ -851,7 +851,7 @@ public float4 yyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, z, z); } } @@ -859,7 +859,7 @@ public float4 yyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, z, w); } } @@ -867,7 +867,7 @@ public float4 yyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, w, x); } } @@ -875,7 +875,7 @@ public float4 yywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, w, y); } } @@ -883,7 +883,7 @@ public float4 yywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, w, z); } } @@ -891,7 +891,7 @@ public float4 yywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, y, w, w); } } @@ -899,7 +899,7 @@ public float4 yyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, x, x); } } @@ -907,7 +907,7 @@ public float4 yzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, x, y); } } @@ -915,7 +915,7 @@ public float4 yzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, x, z); } } @@ -923,9 +923,9 @@ public float4 yzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; x = value.z; w = value.w; } } @@ -933,7 +933,7 @@ public float4 yzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, y, x); } } @@ -941,7 +941,7 @@ public float4 yzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, y, y); } } @@ -949,7 +949,7 @@ public float4 yzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, y, z); } } @@ -957,7 +957,7 @@ public float4 yzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, y, w); } } @@ -965,7 +965,7 @@ public float4 yzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, z, x); } } @@ -973,7 +973,7 @@ public float4 yzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, z, y); } } @@ -981,7 +981,7 @@ public float4 yzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, z, z); } } @@ -989,7 +989,7 @@ public float4 yzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, z, w); } } @@ -997,9 +997,9 @@ public float4 yzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; w = value.z; x = value.w; } } @@ -1007,7 +1007,7 @@ public float4 yzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, w, y); } } @@ -1015,7 +1015,7 @@ public float4 yzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, w, z); } } @@ -1023,7 +1023,7 @@ public float4 yzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, z, w, w); } } @@ -1031,7 +1031,7 @@ public float4 yzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, x, x); } } @@ -1039,7 +1039,7 @@ public float4 ywxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, x, y); } } @@ -1047,9 +1047,9 @@ public float4 ywxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; x = value.z; z = value.w; } } @@ -1057,7 +1057,7 @@ public float4 ywxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, x, w); } } @@ -1065,7 +1065,7 @@ public float4 ywxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, y, x); } } @@ -1073,7 +1073,7 @@ public float4 ywyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, y, y); } } @@ -1081,7 +1081,7 @@ public float4 ywyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, y, z); } } @@ -1089,7 +1089,7 @@ public float4 ywyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, y, w); } } @@ -1097,9 +1097,9 @@ public float4 ywyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; z = value.z; x = value.w; } } @@ -1107,7 +1107,7 @@ public float4 ywzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, z, y); } } @@ -1115,7 +1115,7 @@ public float4 ywzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, z, z); } } @@ -1123,7 +1123,7 @@ public float4 ywzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, z, w); } } @@ -1131,7 +1131,7 @@ public float4 ywzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, w, x); } } @@ -1139,7 +1139,7 @@ public float4 ywwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, w, y); } } @@ -1147,7 +1147,7 @@ public float4 ywwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, w, z); } } @@ -1155,7 +1155,7 @@ public float4 ywwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(y, w, w, w); } } @@ -1163,7 +1163,7 @@ public float4 ywww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, x, x); } } @@ -1171,7 +1171,7 @@ public float4 zxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, x, y); } } @@ -1179,7 +1179,7 @@ public float4 zxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, x, z); } } @@ -1187,7 +1187,7 @@ public float4 zxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, x, w); } } @@ -1195,7 +1195,7 @@ public float4 zxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, y, x); } } @@ -1203,7 +1203,7 @@ public float4 zxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, y, y); } } @@ -1211,7 +1211,7 @@ public float4 zxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, y, z); } } @@ -1219,9 +1219,9 @@ public float4 zxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; y = value.z; w = value.w; } } @@ -1229,7 +1229,7 @@ public float4 zxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, z, x); } } @@ -1237,7 +1237,7 @@ public float4 zxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, z, y); } } @@ -1245,7 +1245,7 @@ public float4 zxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, z, z); } } @@ -1253,7 +1253,7 @@ public float4 zxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, z, w); } } @@ -1261,7 +1261,7 @@ public float4 zxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, w, x); } } @@ -1269,9 +1269,9 @@ public float4 zxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; w = value.z; y = value.w; } } @@ -1279,7 +1279,7 @@ public float4 zxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, w, z); } } @@ -1287,7 +1287,7 @@ public float4 zxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, x, w, w); } } @@ -1295,7 +1295,7 @@ public float4 zxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, x, x); } } @@ -1303,7 +1303,7 @@ public float4 zyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, x, y); } } @@ -1311,7 +1311,7 @@ public float4 zyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, x, z); } } @@ -1319,9 +1319,9 @@ public float4 zyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; x = value.z; w = value.w; } } @@ -1329,7 +1329,7 @@ public float4 zyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, y, x); } } @@ -1337,7 +1337,7 @@ public float4 zyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, y, y); } } @@ -1345,7 +1345,7 @@ public float4 zyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, y, z); } } @@ -1353,7 +1353,7 @@ public float4 zyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, y, w); } } @@ -1361,7 +1361,7 @@ public float4 zyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, z, x); } } @@ -1369,7 +1369,7 @@ public float4 zyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, z, y); } } @@ -1377,7 +1377,7 @@ public float4 zyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, z, z); } } @@ -1385,7 +1385,7 @@ public float4 zyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, z, w); } } @@ -1393,9 +1393,9 @@ public float4 zyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; w = value.z; x = value.w; } } @@ -1403,7 +1403,7 @@ public float4 zywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, w, y); } } @@ -1411,7 +1411,7 @@ public float4 zywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, w, z); } } @@ -1419,7 +1419,7 @@ public float4 zywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, y, w, w); } } @@ -1427,7 +1427,7 @@ public float4 zyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, x, x); } } @@ -1435,7 +1435,7 @@ public float4 zzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, x, y); } } @@ -1443,7 +1443,7 @@ public float4 zzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, x, z); } } @@ -1451,7 +1451,7 @@ public float4 zzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, x, w); } } @@ -1459,7 +1459,7 @@ public float4 zzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, y, x); } } @@ -1467,7 +1467,7 @@ public float4 zzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, y, y); } } @@ -1475,7 +1475,7 @@ public float4 zzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, y, z); } } @@ -1483,7 +1483,7 @@ public float4 zzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, y, w); } } @@ -1491,7 +1491,7 @@ public float4 zzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, z, x); } } @@ -1499,7 +1499,7 @@ public float4 zzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, z, y); } } @@ -1507,7 +1507,7 @@ public float4 zzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, z, z); } } @@ -1515,7 +1515,7 @@ public float4 zzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, z, w); } } @@ -1523,7 +1523,7 @@ public float4 zzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, w, x); } } @@ -1531,7 +1531,7 @@ public float4 zzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, w, y); } } @@ -1539,7 +1539,7 @@ public float4 zzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, w, z); } } @@ -1547,7 +1547,7 @@ public float4 zzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, z, w, w); } } @@ -1555,7 +1555,7 @@ public float4 zzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, x, x); } } @@ -1563,9 +1563,9 @@ public float4 zwxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; x = value.z; y = value.w; } } @@ -1573,7 +1573,7 @@ public float4 zwxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, x, z); } } @@ -1581,7 +1581,7 @@ public float4 zwxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, x, w); } } @@ -1589,9 +1589,9 @@ public float4 zwxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; y = value.z; x = value.w; } } @@ -1599,7 +1599,7 @@ public float4 zwyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, y, y); } } @@ -1607,7 +1607,7 @@ public float4 zwyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, y, z); } } @@ -1615,7 +1615,7 @@ public float4 zwyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, y, w); } } @@ -1623,7 +1623,7 @@ public float4 zwyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, z, x); } } @@ -1631,7 +1631,7 @@ public float4 zwzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, z, y); } } @@ -1639,7 +1639,7 @@ public float4 zwzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, z, z); } } @@ -1647,7 +1647,7 @@ public float4 zwzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, z, w); } } @@ -1655,7 +1655,7 @@ public float4 zwzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, w, x); } } @@ -1663,7 +1663,7 @@ public float4 zwwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, w, y); } } @@ -1671,7 +1671,7 @@ public float4 zwwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, w, z); } } @@ -1679,7 +1679,7 @@ public float4 zwwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(z, w, w, w); } } @@ -1687,7 +1687,7 @@ public float4 zwww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, x, x); } } @@ -1695,7 +1695,7 @@ public float4 wxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, x, y); } } @@ -1703,7 +1703,7 @@ public float4 wxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, x, z); } } @@ -1711,7 +1711,7 @@ public float4 wxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, x, w); } } @@ -1719,7 +1719,7 @@ public float4 wxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, y, x); } } @@ -1727,7 +1727,7 @@ public float4 wxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, y, y); } } @@ -1735,9 +1735,9 @@ public float4 wxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; y = value.z; z = value.w; } } @@ -1745,7 +1745,7 @@ public float4 wxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, y, w); } } @@ -1753,7 +1753,7 @@ public float4 wxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, z, x); } } @@ -1761,9 +1761,9 @@ public float4 wxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; z = value.z; y = value.w; } } @@ -1771,7 +1771,7 @@ public float4 wxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, z, z); } } @@ -1779,7 +1779,7 @@ public float4 wxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, z, w); } } @@ -1787,7 +1787,7 @@ public float4 wxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, w, x); } } @@ -1795,7 +1795,7 @@ public float4 wxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, w, y); } } @@ -1803,7 +1803,7 @@ public float4 wxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, w, z); } } @@ -1811,7 +1811,7 @@ public float4 wxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, x, w, w); } } @@ -1819,7 +1819,7 @@ public float4 wxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, x, x); } } @@ -1827,7 +1827,7 @@ public float4 wyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, x, y); } } @@ -1835,9 +1835,9 @@ public float4 wyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; x = value.z; z = value.w; } } @@ -1845,7 +1845,7 @@ public float4 wyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, x, w); } } @@ -1853,7 +1853,7 @@ public float4 wyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, y, x); } } @@ -1861,7 +1861,7 @@ public float4 wyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, y, y); } } @@ -1869,7 +1869,7 @@ public float4 wyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, y, z); } } @@ -1877,7 +1877,7 @@ public float4 wyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, y, w); } } @@ -1885,9 +1885,9 @@ public float4 wyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; z = value.z; x = value.w; } } @@ -1895,7 +1895,7 @@ public float4 wyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, z, y); } } @@ -1903,7 +1903,7 @@ public float4 wyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, z, z); } } @@ -1911,7 +1911,7 @@ public float4 wyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, z, w); } } @@ -1919,7 +1919,7 @@ public float4 wyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, w, x); } } @@ -1927,7 +1927,7 @@ public float4 wywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, w, y); } } @@ -1935,7 +1935,7 @@ public float4 wywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, w, z); } } @@ -1943,7 +1943,7 @@ public float4 wywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, y, w, w); } } @@ -1951,7 +1951,7 @@ public float4 wyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, x, x); } } @@ -1959,9 +1959,9 @@ public float4 wzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; x = value.z; y = value.w; } } @@ -1969,7 +1969,7 @@ public float4 wzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, x, z); } } @@ -1977,7 +1977,7 @@ public float4 wzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, x, w); } } @@ -1985,9 +1985,9 @@ public float4 wzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; y = value.z; x = value.w; } } @@ -1995,7 +1995,7 @@ public float4 wzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, y, y); } } @@ -2003,7 +2003,7 @@ public float4 wzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, y, z); } } @@ -2011,7 +2011,7 @@ public float4 wzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, y, w); } } @@ -2019,7 +2019,7 @@ public float4 wzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, z, x); } } @@ -2027,7 +2027,7 @@ public float4 wzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, z, y); } } @@ -2035,7 +2035,7 @@ public float4 wzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, z, z); } } @@ -2043,7 +2043,7 @@ public float4 wzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, z, w); } } @@ -2051,7 +2051,7 @@ public float4 wzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, w, x); } } @@ -2059,7 +2059,7 @@ public float4 wzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, w, y); } } @@ -2067,7 +2067,7 @@ public float4 wzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, w, z); } } @@ -2075,7 +2075,7 @@ public float4 wzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, z, w, w); } } @@ -2083,7 +2083,7 @@ public float4 wzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, x, x); } } @@ -2091,7 +2091,7 @@ public float4 wwxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, x, y); } } @@ -2099,7 +2099,7 @@ public float4 wwxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, x, z); } } @@ -2107,7 +2107,7 @@ public float4 wwxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, x, w); } } @@ -2115,7 +2115,7 @@ public float4 wwxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, y, x); } } @@ -2123,7 +2123,7 @@ public float4 wwyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, y, y); } } @@ -2131,7 +2131,7 @@ public float4 wwyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, y, z); } } @@ -2139,7 +2139,7 @@ public float4 wwyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, y, w); } } @@ -2147,7 +2147,7 @@ public float4 wwyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, z, x); } } @@ -2155,7 +2155,7 @@ public float4 wwzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, z, y); } } @@ -2163,7 +2163,7 @@ public float4 wwzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, z, z); } } @@ -2171,7 +2171,7 @@ public float4 wwzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, z, w); } } @@ -2179,7 +2179,7 @@ public float4 wwzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, w, x); } } @@ -2187,7 +2187,7 @@ public float4 wwwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, w, y); } } @@ -2195,7 +2195,7 @@ public float4 wwwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, w, z); } } @@ -2203,7 +2203,7 @@ public float4 wwwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float4(w, w, w, w); } } @@ -2211,7 +2211,7 @@ public float4 wwww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, x, x); } } @@ -2219,7 +2219,7 @@ public float3 xxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, x, y); } } @@ -2227,7 +2227,7 @@ public float3 xxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, x, z); } } @@ -2235,7 +2235,7 @@ public float3 xxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, x, w); } } @@ -2243,7 +2243,7 @@ public float3 xxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, y, x); } } @@ -2251,7 +2251,7 @@ public float3 xyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, y, y); } } @@ -2259,9 +2259,9 @@ public float3 xyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; z = value.z; } } @@ -2269,9 +2269,9 @@ public float3 xyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; w = value.z; } } @@ -2279,7 +2279,7 @@ public float3 xyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, z, x); } } @@ -2287,9 +2287,9 @@ public float3 xzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; y = value.z; } } @@ -2297,7 +2297,7 @@ public float3 xzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, z, z); } } @@ -2305,9 +2305,9 @@ public float3 xzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; w = value.z; } } @@ -2315,7 +2315,7 @@ public float3 xzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, w, x); } } @@ -2323,9 +2323,9 @@ public float3 xwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; y = value.z; } } @@ -2333,9 +2333,9 @@ public float3 xwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; z = value.z; } } @@ -2343,7 +2343,7 @@ public float3 xwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(x, w, w); } } @@ -2351,7 +2351,7 @@ public float3 xww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, x, x); } } @@ -2359,7 +2359,7 @@ public float3 yxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, x, y); } } @@ -2367,9 +2367,9 @@ public float3 yxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; z = value.z; } } @@ -2377,9 +2377,9 @@ public float3 yxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; w = value.z; } } @@ -2387,7 +2387,7 @@ public float3 yxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, y, x); } } @@ -2395,7 +2395,7 @@ public float3 yyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, y, y); } } @@ -2403,7 +2403,7 @@ public float3 yyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, y, z); } } @@ -2411,7 +2411,7 @@ public float3 yyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, y, w); } } @@ -2419,9 +2419,9 @@ public float3 yyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; x = value.z; } } @@ -2429,7 +2429,7 @@ public float3 yzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, z, y); } } @@ -2437,7 +2437,7 @@ public float3 yzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, z, z); } } @@ -2445,9 +2445,9 @@ public float3 yzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; w = value.z; } } @@ -2455,9 +2455,9 @@ public float3 yzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 ywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; x = value.z; } } @@ -2465,7 +2465,7 @@ public float3 ywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 ywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, w, y); } } @@ -2473,9 +2473,9 @@ public float3 ywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 ywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; z = value.z; } } @@ -2483,7 +2483,7 @@ public float3 ywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(y, w, w); } } @@ -2491,7 +2491,7 @@ public float3 yww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, x, x); } } @@ -2499,9 +2499,9 @@ public float3 zxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; y = value.z; } } @@ -2509,7 +2509,7 @@ public float3 zxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, x, z); } } @@ -2517,9 +2517,9 @@ public float3 zxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; w = value.z; } } @@ -2527,9 +2527,9 @@ public float3 zxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; x = value.z; } } @@ -2537,7 +2537,7 @@ public float3 zyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, y, y); } } @@ -2545,7 +2545,7 @@ public float3 zyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, y, z); } } @@ -2553,9 +2553,9 @@ public float3 zyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; w = value.z; } } @@ -2563,7 +2563,7 @@ public float3 zyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, z, x); } } @@ -2571,7 +2571,7 @@ public float3 zzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, z, y); } } @@ -2579,7 +2579,7 @@ public float3 zzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, z, z); } } @@ -2587,7 +2587,7 @@ public float3 zzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, z, w); } } @@ -2595,9 +2595,9 @@ public float3 zzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; x = value.z; } } @@ -2605,9 +2605,9 @@ public float3 zwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; y = value.z; } } @@ -2615,7 +2615,7 @@ public float3 zwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, w, z); } } @@ -2623,7 +2623,7 @@ public float3 zwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(z, w, w); } } @@ -2631,7 +2631,7 @@ public float3 zww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, x, x); } } @@ -2639,9 +2639,9 @@ public float3 wxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; y = value.z; } } @@ -2649,9 +2649,9 @@ public float3 wxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; z = value.z; } } @@ -2659,7 +2659,7 @@ public float3 wxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, x, w); } } @@ -2667,9 +2667,9 @@ public float3 wxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; x = value.z; } } @@ -2677,7 +2677,7 @@ public float3 wyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, y, y); } } @@ -2685,9 +2685,9 @@ public float3 wyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; z = value.z; } } @@ -2695,7 +2695,7 @@ public float3 wyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, y, w); } } @@ -2703,9 +2703,9 @@ public float3 wyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; x = value.z; } } @@ -2713,9 +2713,9 @@ public float3 wzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; y = value.z; } } @@ -2723,7 +2723,7 @@ public float3 wzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, z, z); } } @@ -2731,7 +2731,7 @@ public float3 wzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, z, w); } } @@ -2739,7 +2739,7 @@ public float3 wzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, w, x); } } @@ -2747,7 +2747,7 @@ public float3 wwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, w, y); } } @@ -2755,7 +2755,7 @@ public float3 wwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, w, z); } } @@ -2763,7 +2763,7 @@ public float3 wwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 www { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float3(w, w, w); } } @@ -2771,7 +2771,7 @@ public float3 www [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(x, x); } } @@ -2779,9 +2779,9 @@ public float2 xx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; } } @@ -2789,9 +2789,9 @@ public float2 xy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; } } @@ -2799,9 +2799,9 @@ public float2 xz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; } } @@ -2809,9 +2809,9 @@ public float2 xw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; } } @@ -2819,7 +2819,7 @@ public float2 yx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(y, y); } } @@ -2827,9 +2827,9 @@ public float2 yy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; } } @@ -2837,9 +2837,9 @@ public float2 yz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; } } @@ -2847,9 +2847,9 @@ public float2 yw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 zx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; } } @@ -2857,9 +2857,9 @@ public float2 zx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 zy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; } } @@ -2867,7 +2867,7 @@ public float2 zy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 zz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(z, z); } } @@ -2875,9 +2875,9 @@ public float2 zz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 zw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; } } @@ -2885,9 +2885,9 @@ public float2 zw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 wx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; } } @@ -2895,9 +2895,9 @@ public float2 wx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 wy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; } } @@ -2905,9 +2905,9 @@ public float2 wy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 wz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; } } @@ -2915,7 +2915,7 @@ public float2 wz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 ww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new float2(w, w); } } diff --git a/src/Unity.Mathematics/int2.cs b/src/Unity.Mathematics/int2.cs index e8fd92c8..e8f46751 100644 --- a/src/Unity.Mathematics/int2.cs +++ b/src/Unity.Mathematics/int2.cs @@ -24,26 +24,26 @@ public DebuggerProxy(int2 vec) public int x; public int y; - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(int val) { x = y = val; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(int x, int y) { this.x = x; this.y = y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(float2 val) { x = (int)val.x; y = (int)val.y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int2(int d) { return new int2(d); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2(float2 d) { return new int2((int)d.x, (int)d.y); } public override string ToString() diff --git a/src/Unity.Mathematics/int2.gen.cs b/src/Unity.Mathematics/int2.gen.cs index b63f0bb1..5f962a0b 100644 --- a/src/Unity.Mathematics/int2.gen.cs +++ b/src/Unity.Mathematics/int2.gen.cs @@ -7,97 +7,97 @@ public partial struct int2 : System.IEquatable { // mul - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator * (int2 lhs, int2 rhs) { return new int2 (lhs.x * rhs.x, lhs.y * rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator * (int2 lhs, int rhs) { return new int2 (lhs.x * rhs, lhs.y * rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator * (int lhs, int2 rhs) { return new int2 (lhs * rhs.x, lhs * rhs.y); } // add - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator + (int2 lhs, int2 rhs) { return new int2 (lhs.x + rhs.x, lhs.y + rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator + (int2 lhs, int rhs) { return new int2 (lhs.x + rhs, lhs.y + rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator + (int lhs, int2 rhs) { return new int2 (lhs + rhs.x, lhs + rhs.y); } // sub - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator - (int2 lhs, int2 rhs) { return new int2 (lhs.x - rhs.x, lhs.y - rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator - (int2 lhs, int rhs) { return new int2 (lhs.x - rhs, lhs.y - rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator - (int lhs, int2 rhs) { return new int2 (lhs - rhs.x, lhs - rhs.y); } // div - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator / (int2 lhs, int2 rhs) { return new int2 (lhs.x / rhs.x, lhs.y / rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator / (int2 lhs, int rhs) { return new int2 (lhs.x / rhs, lhs.y / rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator / (int lhs, int2 rhs) { return new int2 (lhs / rhs.x, lhs / rhs.y); } // smaller - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (int2 lhs, int2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (int2 lhs, int rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (int lhs, int2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (int2 lhs, int2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (int2 lhs, int rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (int lhs, int2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } // greater - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (int2 lhs, int2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (int2 lhs, int rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (int lhs, int2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (int2 lhs, int2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (int2 lhs, int rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (int lhs, int2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } // neg - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator - (int2 val) { return new int2 (-val.x, -val.y); } // plus - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator + (int2 val) { return new int2 (+val.x, +val.y); } // left shift - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator << (int2 lhs, int rhs) { return new int2 (lhs.x << rhs, lhs.y << rhs); } // right shift - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator >> (int2 lhs, int rhs) { return new int2 (lhs.x >> rhs, lhs.y >> rhs); } // equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (int2 lhs, int2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (int2 lhs, int rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (int lhs, int2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } // not equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (int2 lhs, int2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (int2 lhs, int rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (int lhs, int2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } // Equals - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int2 rhs) { return x == rhs.x && y == rhs.y; } // [int index] @@ -122,35 +122,35 @@ unsafe public int this[int index] } // operator & - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator & (int2 lhs, int2 rhs) { return new int2 (lhs.x & rhs.x, lhs.y & rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator & (int2 lhs, int rhs) { return new int2 (lhs.x & rhs, lhs.y & rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator & (int lhs, int2 rhs) { return new int2 (lhs & rhs.x, lhs & rhs.y); } // operator | - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator | (int2 lhs, int2 rhs) { return new int2 (lhs.x | rhs.x, lhs.y | rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator | (int2 lhs, int rhs) { return new int2 (lhs.x | rhs, lhs.y | rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator | (int lhs, int2 rhs) { return new int2 (lhs | rhs.x, lhs | rhs.y); } // operator ^ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator ^ (int2 lhs, int2 rhs) { return new int2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator ^ (int2 lhs, int rhs) { return new int2 (lhs.x ^ rhs, lhs.y ^ rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator ^ (int lhs, int2 rhs) { return new int2 (lhs ^ rhs.x, lhs ^ rhs.y); } // operator ~ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator ~ (int2 val) { return new int2 (~val.x, ~val.y); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, x, x); } } @@ -158,7 +158,7 @@ public int4 xxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, x, y); } } @@ -166,7 +166,7 @@ public int4 xxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, y, x); } } @@ -174,7 +174,7 @@ public int4 xxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, y, y); } } @@ -182,7 +182,7 @@ public int4 xxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, x, x); } } @@ -190,7 +190,7 @@ public int4 xyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, x, y); } } @@ -198,7 +198,7 @@ public int4 xyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, y, x); } } @@ -206,7 +206,7 @@ public int4 xyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, y, y); } } @@ -214,7 +214,7 @@ public int4 xyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, x, x); } } @@ -222,7 +222,7 @@ public int4 yxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, x, y); } } @@ -230,7 +230,7 @@ public int4 yxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, y, x); } } @@ -238,7 +238,7 @@ public int4 yxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, y, y); } } @@ -246,7 +246,7 @@ public int4 yxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, x, x); } } @@ -254,7 +254,7 @@ public int4 yyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, x, y); } } @@ -262,7 +262,7 @@ public int4 yyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, y, x); } } @@ -270,7 +270,7 @@ public int4 yyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, y, y); } } @@ -278,7 +278,7 @@ public int4 yyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, x, x); } } @@ -286,7 +286,7 @@ public int3 xxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, x, y); } } @@ -294,7 +294,7 @@ public int3 xxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, y, x); } } @@ -302,7 +302,7 @@ public int3 xyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, y, y); } } @@ -310,7 +310,7 @@ public int3 xyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, x, x); } } @@ -318,7 +318,7 @@ public int3 yxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, x, y); } } @@ -326,7 +326,7 @@ public int3 yxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, y, x); } } @@ -334,7 +334,7 @@ public int3 yyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, y, y); } } @@ -342,7 +342,7 @@ public int3 yyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(x, x); } } @@ -350,9 +350,9 @@ public int2 xx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; } } @@ -360,9 +360,9 @@ public int2 xy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; } } @@ -370,7 +370,7 @@ public int2 yx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(y, y); } } diff --git a/src/Unity.Mathematics/int3.cs b/src/Unity.Mathematics/int3.cs index 70994e30..a3edb034 100644 --- a/src/Unity.Mathematics/int3.cs +++ b/src/Unity.Mathematics/int3.cs @@ -27,10 +27,10 @@ public DebuggerProxy(int3 vec) public int y; public int z; - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(int val) { x = y = z = val; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(int x, int y, int z) { this.x = x; @@ -38,7 +38,7 @@ public int3(int x, int y, int z) this.z = z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(int2 xy, int z) { this.x = xy.x; @@ -46,7 +46,7 @@ public int3(int2 xy, int z) this.z = z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(float3 val) { x = (int)val.x; @@ -54,9 +54,9 @@ public int3(float3 val) z = (int)val.z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int3(int d) { return new int3(d); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3(float3 d) { return new int3((int)d.x, (int)d.y, (int)d.z); } public override string ToString() diff --git a/src/Unity.Mathematics/int3.gen.cs b/src/Unity.Mathematics/int3.gen.cs index 6d6f7919..c8ea47a3 100644 --- a/src/Unity.Mathematics/int3.gen.cs +++ b/src/Unity.Mathematics/int3.gen.cs @@ -7,97 +7,97 @@ public partial struct int3 : System.IEquatable { // mul - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator * (int3 lhs, int3 rhs) { return new int3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator * (int3 lhs, int rhs) { return new int3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator * (int lhs, int3 rhs) { return new int3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } // add - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator + (int3 lhs, int3 rhs) { return new int3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator + (int3 lhs, int rhs) { return new int3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator + (int lhs, int3 rhs) { return new int3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } // sub - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator - (int3 lhs, int3 rhs) { return new int3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator - (int3 lhs, int rhs) { return new int3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator - (int lhs, int3 rhs) { return new int3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } // div - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator / (int3 lhs, int3 rhs) { return new int3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator / (int3 lhs, int rhs) { return new int3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator / (int lhs, int3 rhs) { return new int3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } // smaller - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (int3 lhs, int3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (int3 lhs, int rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (int lhs, int3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (int3 lhs, int3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (int3 lhs, int rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (int lhs, int3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } // greater - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (int3 lhs, int3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (int3 lhs, int rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (int lhs, int3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (int3 lhs, int3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (int3 lhs, int rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (int lhs, int3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } // neg - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator - (int3 val) { return new int3 (-val.x, -val.y, -val.z); } // plus - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator + (int3 val) { return new int3 (+val.x, +val.y, +val.z); } // left shift - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator << (int3 lhs, int rhs) { return new int3 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs); } // right shift - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator >> (int3 lhs, int rhs) { return new int3 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs); } // equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (int3 lhs, int3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (int3 lhs, int rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (int lhs, int3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } // not equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (int3 lhs, int3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (int3 lhs, int rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (int lhs, int3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } // Equals - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } // [int index] @@ -122,35 +122,35 @@ unsafe public int this[int index] } // operator & - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator & (int3 lhs, int3 rhs) { return new int3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator & (int3 lhs, int rhs) { return new int3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator & (int lhs, int3 rhs) { return new int3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } // operator | - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator | (int3 lhs, int3 rhs) { return new int3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator | (int3 lhs, int rhs) { return new int3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator | (int lhs, int3 rhs) { return new int3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } // operator ^ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator ^ (int3 lhs, int3 rhs) { return new int3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator ^ (int3 lhs, int rhs) { return new int3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator ^ (int lhs, int3 rhs) { return new int3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } // operator ~ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator ~ (int3 val) { return new int3 (~val.x, ~val.y, ~val.z); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, x, x); } } @@ -158,7 +158,7 @@ public int4 xxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, x, y); } } @@ -166,7 +166,7 @@ public int4 xxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, x, z); } } @@ -174,7 +174,7 @@ public int4 xxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, y, x); } } @@ -182,7 +182,7 @@ public int4 xxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, y, y); } } @@ -190,7 +190,7 @@ public int4 xxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, y, z); } } @@ -198,7 +198,7 @@ public int4 xxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, z, x); } } @@ -206,7 +206,7 @@ public int4 xxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, z, y); } } @@ -214,7 +214,7 @@ public int4 xxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, z, z); } } @@ -222,7 +222,7 @@ public int4 xxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, x, x); } } @@ -230,7 +230,7 @@ public int4 xyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, x, y); } } @@ -238,7 +238,7 @@ public int4 xyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, x, z); } } @@ -246,7 +246,7 @@ public int4 xyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, y, x); } } @@ -254,7 +254,7 @@ public int4 xyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, y, y); } } @@ -262,7 +262,7 @@ public int4 xyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, y, z); } } @@ -270,7 +270,7 @@ public int4 xyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, z, x); } } @@ -278,7 +278,7 @@ public int4 xyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, z, y); } } @@ -286,7 +286,7 @@ public int4 xyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, z, z); } } @@ -294,7 +294,7 @@ public int4 xyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, x, x); } } @@ -302,7 +302,7 @@ public int4 xzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, x, y); } } @@ -310,7 +310,7 @@ public int4 xzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, x, z); } } @@ -318,7 +318,7 @@ public int4 xzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, y, x); } } @@ -326,7 +326,7 @@ public int4 xzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, y, y); } } @@ -334,7 +334,7 @@ public int4 xzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, y, z); } } @@ -342,7 +342,7 @@ public int4 xzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, z, x); } } @@ -350,7 +350,7 @@ public int4 xzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, z, y); } } @@ -358,7 +358,7 @@ public int4 xzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, z, z); } } @@ -366,7 +366,7 @@ public int4 xzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, x, x); } } @@ -374,7 +374,7 @@ public int4 yxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, x, y); } } @@ -382,7 +382,7 @@ public int4 yxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, x, z); } } @@ -390,7 +390,7 @@ public int4 yxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, y, x); } } @@ -398,7 +398,7 @@ public int4 yxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, y, y); } } @@ -406,7 +406,7 @@ public int4 yxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, y, z); } } @@ -414,7 +414,7 @@ public int4 yxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, z, x); } } @@ -422,7 +422,7 @@ public int4 yxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, z, y); } } @@ -430,7 +430,7 @@ public int4 yxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, z, z); } } @@ -438,7 +438,7 @@ public int4 yxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, x, x); } } @@ -446,7 +446,7 @@ public int4 yyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, x, y); } } @@ -454,7 +454,7 @@ public int4 yyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, x, z); } } @@ -462,7 +462,7 @@ public int4 yyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, y, x); } } @@ -470,7 +470,7 @@ public int4 yyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, y, y); } } @@ -478,7 +478,7 @@ public int4 yyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, y, z); } } @@ -486,7 +486,7 @@ public int4 yyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, z, x); } } @@ -494,7 +494,7 @@ public int4 yyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, z, y); } } @@ -502,7 +502,7 @@ public int4 yyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, z, z); } } @@ -510,7 +510,7 @@ public int4 yyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, x, x); } } @@ -518,7 +518,7 @@ public int4 yzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, x, y); } } @@ -526,7 +526,7 @@ public int4 yzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, x, z); } } @@ -534,7 +534,7 @@ public int4 yzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, y, x); } } @@ -542,7 +542,7 @@ public int4 yzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, y, y); } } @@ -550,7 +550,7 @@ public int4 yzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, y, z); } } @@ -558,7 +558,7 @@ public int4 yzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, z, x); } } @@ -566,7 +566,7 @@ public int4 yzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, z, y); } } @@ -574,7 +574,7 @@ public int4 yzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, z, z); } } @@ -582,7 +582,7 @@ public int4 yzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, x, x); } } @@ -590,7 +590,7 @@ public int4 zxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, x, y); } } @@ -598,7 +598,7 @@ public int4 zxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, x, z); } } @@ -606,7 +606,7 @@ public int4 zxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, y, x); } } @@ -614,7 +614,7 @@ public int4 zxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, y, y); } } @@ -622,7 +622,7 @@ public int4 zxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, y, z); } } @@ -630,7 +630,7 @@ public int4 zxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, z, x); } } @@ -638,7 +638,7 @@ public int4 zxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, z, y); } } @@ -646,7 +646,7 @@ public int4 zxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, z, z); } } @@ -654,7 +654,7 @@ public int4 zxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, x, x); } } @@ -662,7 +662,7 @@ public int4 zyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, x, y); } } @@ -670,7 +670,7 @@ public int4 zyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, x, z); } } @@ -678,7 +678,7 @@ public int4 zyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, y, x); } } @@ -686,7 +686,7 @@ public int4 zyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, y, y); } } @@ -694,7 +694,7 @@ public int4 zyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, y, z); } } @@ -702,7 +702,7 @@ public int4 zyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, z, x); } } @@ -710,7 +710,7 @@ public int4 zyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, z, y); } } @@ -718,7 +718,7 @@ public int4 zyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, z, z); } } @@ -726,7 +726,7 @@ public int4 zyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, x, x); } } @@ -734,7 +734,7 @@ public int4 zzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, x, y); } } @@ -742,7 +742,7 @@ public int4 zzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, x, z); } } @@ -750,7 +750,7 @@ public int4 zzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, y, x); } } @@ -758,7 +758,7 @@ public int4 zzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, y, y); } } @@ -766,7 +766,7 @@ public int4 zzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, y, z); } } @@ -774,7 +774,7 @@ public int4 zzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, z, x); } } @@ -782,7 +782,7 @@ public int4 zzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, z, y); } } @@ -790,7 +790,7 @@ public int4 zzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, z, z); } } @@ -798,7 +798,7 @@ public int4 zzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, x, x); } } @@ -806,7 +806,7 @@ public int3 xxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, x, y); } } @@ -814,7 +814,7 @@ public int3 xxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, x, z); } } @@ -822,7 +822,7 @@ public int3 xxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, y, x); } } @@ -830,7 +830,7 @@ public int3 xyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, y, y); } } @@ -838,9 +838,9 @@ public int3 xyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; z = value.z; } } @@ -848,7 +848,7 @@ public int3 xyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, z, x); } } @@ -856,9 +856,9 @@ public int3 xzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; y = value.z; } } @@ -866,7 +866,7 @@ public int3 xzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, z, z); } } @@ -874,7 +874,7 @@ public int3 xzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, x, x); } } @@ -882,7 +882,7 @@ public int3 yxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, x, y); } } @@ -890,9 +890,9 @@ public int3 yxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; z = value.z; } } @@ -900,7 +900,7 @@ public int3 yxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, y, x); } } @@ -908,7 +908,7 @@ public int3 yyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, y, y); } } @@ -916,7 +916,7 @@ public int3 yyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, y, z); } } @@ -924,9 +924,9 @@ public int3 yyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; x = value.z; } } @@ -934,7 +934,7 @@ public int3 yzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, z, y); } } @@ -942,7 +942,7 @@ public int3 yzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, z, z); } } @@ -950,7 +950,7 @@ public int3 yzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, x, x); } } @@ -958,9 +958,9 @@ public int3 zxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; y = value.z; } } @@ -968,7 +968,7 @@ public int3 zxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, x, z); } } @@ -976,9 +976,9 @@ public int3 zxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; x = value.z; } } @@ -986,7 +986,7 @@ public int3 zyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, y, y); } } @@ -994,7 +994,7 @@ public int3 zyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, y, z); } } @@ -1002,7 +1002,7 @@ public int3 zyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, z, x); } } @@ -1010,7 +1010,7 @@ public int3 zzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, z, y); } } @@ -1018,7 +1018,7 @@ public int3 zzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, z, z); } } @@ -1026,7 +1026,7 @@ public int3 zzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(x, x); } } @@ -1034,9 +1034,9 @@ public int2 xx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; } } @@ -1044,9 +1044,9 @@ public int2 xy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; } } @@ -1054,9 +1054,9 @@ public int2 xz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; } } @@ -1064,7 +1064,7 @@ public int2 yx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(y, y); } } @@ -1072,9 +1072,9 @@ public int2 yy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; } } @@ -1082,9 +1082,9 @@ public int2 yz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 zx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; } } @@ -1092,9 +1092,9 @@ public int2 zx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 zy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; } } @@ -1102,7 +1102,7 @@ public int2 zy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 zz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(z, z); } } diff --git a/src/Unity.Mathematics/int4.cs b/src/Unity.Mathematics/int4.cs index e25100ea..063178c5 100644 --- a/src/Unity.Mathematics/int4.cs +++ b/src/Unity.Mathematics/int4.cs @@ -30,7 +30,7 @@ public DebuggerProxy(int4 vec) public int z; public int w; - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(int x, int y, int z, int w) { this.x = x; @@ -39,17 +39,17 @@ public int4(int x, int y, int z, int w) this.w = w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(int val) { x = y = z = w = val; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(int3 xyz, int w) { this.x = xyz.x; this.y = xyz.y; this.z = xyz.z; this.w = w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(float4 val) { x = (int)val.x; y = (int)val.y; z = (int)val.z; w = (int)val.w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int4(int d) { return new int4(d); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4(float4 d) { return new int4((int)d.x, (int)d.y, (int)d.z, (int)d.w); } public override string ToString() diff --git a/src/Unity.Mathematics/int4.gen.cs b/src/Unity.Mathematics/int4.gen.cs index 9053f2a0..99ccc52a 100644 --- a/src/Unity.Mathematics/int4.gen.cs +++ b/src/Unity.Mathematics/int4.gen.cs @@ -7,97 +7,97 @@ public partial struct int4 : System.IEquatable { // mul - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator * (int4 lhs, int4 rhs) { return new int4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator * (int4 lhs, int rhs) { return new int4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator * (int lhs, int4 rhs) { return new int4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } // add - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator + (int4 lhs, int4 rhs) { return new int4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator + (int4 lhs, int rhs) { return new int4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator + (int lhs, int4 rhs) { return new int4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } // sub - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator - (int4 lhs, int4 rhs) { return new int4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator - (int4 lhs, int rhs) { return new int4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator - (int lhs, int4 rhs) { return new int4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } // div - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator / (int4 lhs, int4 rhs) { return new int4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator / (int4 lhs, int rhs) { return new int4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator / (int lhs, int4 rhs) { return new int4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } // smaller - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (int4 lhs, int4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (int4 lhs, int rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (int lhs, int4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (int4 lhs, int4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (int4 lhs, int rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (int lhs, int4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } // greater - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (int4 lhs, int4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (int4 lhs, int rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (int lhs, int4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (int4 lhs, int4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (int4 lhs, int rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (int lhs, int4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } // neg - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator - (int4 val) { return new int4 (-val.x, -val.y, -val.z, -val.w); } // plus - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator + (int4 val) { return new int4 (+val.x, +val.y, +val.z, +val.w); } // left shift - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator << (int4 lhs, int rhs) { return new int4 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs, lhs.w << rhs); } // right shift - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator >> (int4 lhs, int rhs) { return new int4 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs, lhs.w >> rhs); } // equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (int4 lhs, int4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (int4 lhs, int rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (int lhs, int4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } // not equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (int4 lhs, int4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (int4 lhs, int rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (int lhs, int4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } // Equals - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } // [int index] @@ -122,35 +122,35 @@ unsafe public int this[int index] } // operator & - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator & (int4 lhs, int4 rhs) { return new int4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator & (int4 lhs, int rhs) { return new int4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator & (int lhs, int4 rhs) { return new int4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } // operator | - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator | (int4 lhs, int4 rhs) { return new int4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator | (int4 lhs, int rhs) { return new int4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator | (int lhs, int4 rhs) { return new int4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } // operator ^ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator ^ (int4 lhs, int4 rhs) { return new int4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator ^ (int4 lhs, int rhs) { return new int4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator ^ (int lhs, int4 rhs) { return new int4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } // operator ~ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator ~ (int4 val) { return new int4 (~val.x, ~val.y, ~val.z, ~val.w); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, x, x); } } @@ -158,7 +158,7 @@ public int4 xxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, x, y); } } @@ -166,7 +166,7 @@ public int4 xxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, x, z); } } @@ -174,7 +174,7 @@ public int4 xxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, x, w); } } @@ -182,7 +182,7 @@ public int4 xxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, y, x); } } @@ -190,7 +190,7 @@ public int4 xxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, y, y); } } @@ -198,7 +198,7 @@ public int4 xxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, y, z); } } @@ -206,7 +206,7 @@ public int4 xxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, y, w); } } @@ -214,7 +214,7 @@ public int4 xxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, z, x); } } @@ -222,7 +222,7 @@ public int4 xxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, z, y); } } @@ -230,7 +230,7 @@ public int4 xxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, z, z); } } @@ -238,7 +238,7 @@ public int4 xxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, z, w); } } @@ -246,7 +246,7 @@ public int4 xxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, w, x); } } @@ -254,7 +254,7 @@ public int4 xxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, w, y); } } @@ -262,7 +262,7 @@ public int4 xxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, w, z); } } @@ -270,7 +270,7 @@ public int4 xxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, x, w, w); } } @@ -278,7 +278,7 @@ public int4 xxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, x, x); } } @@ -286,7 +286,7 @@ public int4 xyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, x, y); } } @@ -294,7 +294,7 @@ public int4 xyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, x, z); } } @@ -302,7 +302,7 @@ public int4 xyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, x, w); } } @@ -310,7 +310,7 @@ public int4 xyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, y, x); } } @@ -318,7 +318,7 @@ public int4 xyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, y, y); } } @@ -326,7 +326,7 @@ public int4 xyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, y, z); } } @@ -334,7 +334,7 @@ public int4 xyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, y, w); } } @@ -342,7 +342,7 @@ public int4 xyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, z, x); } } @@ -350,7 +350,7 @@ public int4 xyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, z, y); } } @@ -358,7 +358,7 @@ public int4 xyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, z, z); } } @@ -366,9 +366,9 @@ public int4 xyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; z = value.z; w = value.w; } } @@ -376,7 +376,7 @@ public int4 xyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, w, x); } } @@ -384,7 +384,7 @@ public int4 xywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, w, y); } } @@ -392,9 +392,9 @@ public int4 xywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; w = value.z; z = value.w; } } @@ -402,7 +402,7 @@ public int4 xywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, y, w, w); } } @@ -410,7 +410,7 @@ public int4 xyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, x, x); } } @@ -418,7 +418,7 @@ public int4 xzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, x, y); } } @@ -426,7 +426,7 @@ public int4 xzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, x, z); } } @@ -434,7 +434,7 @@ public int4 xzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, x, w); } } @@ -442,7 +442,7 @@ public int4 xzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, y, x); } } @@ -450,7 +450,7 @@ public int4 xzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, y, y); } } @@ -458,7 +458,7 @@ public int4 xzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, y, z); } } @@ -466,9 +466,9 @@ public int4 xzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; y = value.z; w = value.w; } } @@ -476,7 +476,7 @@ public int4 xzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, z, x); } } @@ -484,7 +484,7 @@ public int4 xzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, z, y); } } @@ -492,7 +492,7 @@ public int4 xzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, z, z); } } @@ -500,7 +500,7 @@ public int4 xzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, z, w); } } @@ -508,7 +508,7 @@ public int4 xzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, w, x); } } @@ -516,9 +516,9 @@ public int4 xzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; w = value.z; y = value.w; } } @@ -526,7 +526,7 @@ public int4 xzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, w, z); } } @@ -534,7 +534,7 @@ public int4 xzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, z, w, w); } } @@ -542,7 +542,7 @@ public int4 xzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, x, x); } } @@ -550,7 +550,7 @@ public int4 xwxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, x, y); } } @@ -558,7 +558,7 @@ public int4 xwxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, x, z); } } @@ -566,7 +566,7 @@ public int4 xwxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, x, w); } } @@ -574,7 +574,7 @@ public int4 xwxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, y, x); } } @@ -582,7 +582,7 @@ public int4 xwyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, y, y); } } @@ -590,9 +590,9 @@ public int4 xwyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; y = value.z; z = value.w; } } @@ -600,7 +600,7 @@ public int4 xwyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, y, w); } } @@ -608,7 +608,7 @@ public int4 xwyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, z, x); } } @@ -616,9 +616,9 @@ public int4 xwzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; z = value.z; y = value.w; } } @@ -626,7 +626,7 @@ public int4 xwzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, z, z); } } @@ -634,7 +634,7 @@ public int4 xwzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, z, w); } } @@ -642,7 +642,7 @@ public int4 xwzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, w, x); } } @@ -650,7 +650,7 @@ public int4 xwwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, w, y); } } @@ -658,7 +658,7 @@ public int4 xwwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, w, z); } } @@ -666,7 +666,7 @@ public int4 xwwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(x, w, w, w); } } @@ -674,7 +674,7 @@ public int4 xwww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, x, x); } } @@ -682,7 +682,7 @@ public int4 yxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, x, y); } } @@ -690,7 +690,7 @@ public int4 yxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, x, z); } } @@ -698,7 +698,7 @@ public int4 yxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, x, w); } } @@ -706,7 +706,7 @@ public int4 yxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, y, x); } } @@ -714,7 +714,7 @@ public int4 yxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, y, y); } } @@ -722,7 +722,7 @@ public int4 yxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, y, z); } } @@ -730,7 +730,7 @@ public int4 yxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, y, w); } } @@ -738,7 +738,7 @@ public int4 yxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, z, x); } } @@ -746,7 +746,7 @@ public int4 yxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, z, y); } } @@ -754,7 +754,7 @@ public int4 yxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, z, z); } } @@ -762,9 +762,9 @@ public int4 yxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; z = value.z; w = value.w; } } @@ -772,7 +772,7 @@ public int4 yxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, w, x); } } @@ -780,7 +780,7 @@ public int4 yxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, w, y); } } @@ -788,9 +788,9 @@ public int4 yxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; w = value.z; z = value.w; } } @@ -798,7 +798,7 @@ public int4 yxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, x, w, w); } } @@ -806,7 +806,7 @@ public int4 yxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, x, x); } } @@ -814,7 +814,7 @@ public int4 yyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, x, y); } } @@ -822,7 +822,7 @@ public int4 yyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, x, z); } } @@ -830,7 +830,7 @@ public int4 yyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, x, w); } } @@ -838,7 +838,7 @@ public int4 yyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, y, x); } } @@ -846,7 +846,7 @@ public int4 yyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, y, y); } } @@ -854,7 +854,7 @@ public int4 yyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, y, z); } } @@ -862,7 +862,7 @@ public int4 yyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, y, w); } } @@ -870,7 +870,7 @@ public int4 yyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, z, x); } } @@ -878,7 +878,7 @@ public int4 yyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, z, y); } } @@ -886,7 +886,7 @@ public int4 yyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, z, z); } } @@ -894,7 +894,7 @@ public int4 yyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, z, w); } } @@ -902,7 +902,7 @@ public int4 yyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, w, x); } } @@ -910,7 +910,7 @@ public int4 yywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, w, y); } } @@ -918,7 +918,7 @@ public int4 yywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, w, z); } } @@ -926,7 +926,7 @@ public int4 yywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, y, w, w); } } @@ -934,7 +934,7 @@ public int4 yyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, x, x); } } @@ -942,7 +942,7 @@ public int4 yzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, x, y); } } @@ -950,7 +950,7 @@ public int4 yzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, x, z); } } @@ -958,9 +958,9 @@ public int4 yzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; x = value.z; w = value.w; } } @@ -968,7 +968,7 @@ public int4 yzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, y, x); } } @@ -976,7 +976,7 @@ public int4 yzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, y, y); } } @@ -984,7 +984,7 @@ public int4 yzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, y, z); } } @@ -992,7 +992,7 @@ public int4 yzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, y, w); } } @@ -1000,7 +1000,7 @@ public int4 yzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, z, x); } } @@ -1008,7 +1008,7 @@ public int4 yzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, z, y); } } @@ -1016,7 +1016,7 @@ public int4 yzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, z, z); } } @@ -1024,7 +1024,7 @@ public int4 yzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, z, w); } } @@ -1032,9 +1032,9 @@ public int4 yzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; w = value.z; x = value.w; } } @@ -1042,7 +1042,7 @@ public int4 yzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, w, y); } } @@ -1050,7 +1050,7 @@ public int4 yzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, w, z); } } @@ -1058,7 +1058,7 @@ public int4 yzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, z, w, w); } } @@ -1066,7 +1066,7 @@ public int4 yzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, x, x); } } @@ -1074,7 +1074,7 @@ public int4 ywxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, x, y); } } @@ -1082,9 +1082,9 @@ public int4 ywxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; x = value.z; z = value.w; } } @@ -1092,7 +1092,7 @@ public int4 ywxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, x, w); } } @@ -1100,7 +1100,7 @@ public int4 ywxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, y, x); } } @@ -1108,7 +1108,7 @@ public int4 ywyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, y, y); } } @@ -1116,7 +1116,7 @@ public int4 ywyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, y, z); } } @@ -1124,7 +1124,7 @@ public int4 ywyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, y, w); } } @@ -1132,9 +1132,9 @@ public int4 ywyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; z = value.z; x = value.w; } } @@ -1142,7 +1142,7 @@ public int4 ywzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, z, y); } } @@ -1150,7 +1150,7 @@ public int4 ywzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, z, z); } } @@ -1158,7 +1158,7 @@ public int4 ywzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, z, w); } } @@ -1166,7 +1166,7 @@ public int4 ywzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, w, x); } } @@ -1174,7 +1174,7 @@ public int4 ywwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, w, y); } } @@ -1182,7 +1182,7 @@ public int4 ywwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, w, z); } } @@ -1190,7 +1190,7 @@ public int4 ywwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(y, w, w, w); } } @@ -1198,7 +1198,7 @@ public int4 ywww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, x, x); } } @@ -1206,7 +1206,7 @@ public int4 zxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, x, y); } } @@ -1214,7 +1214,7 @@ public int4 zxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, x, z); } } @@ -1222,7 +1222,7 @@ public int4 zxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, x, w); } } @@ -1230,7 +1230,7 @@ public int4 zxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, y, x); } } @@ -1238,7 +1238,7 @@ public int4 zxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, y, y); } } @@ -1246,7 +1246,7 @@ public int4 zxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, y, z); } } @@ -1254,9 +1254,9 @@ public int4 zxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; y = value.z; w = value.w; } } @@ -1264,7 +1264,7 @@ public int4 zxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, z, x); } } @@ -1272,7 +1272,7 @@ public int4 zxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, z, y); } } @@ -1280,7 +1280,7 @@ public int4 zxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, z, z); } } @@ -1288,7 +1288,7 @@ public int4 zxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, z, w); } } @@ -1296,7 +1296,7 @@ public int4 zxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, w, x); } } @@ -1304,9 +1304,9 @@ public int4 zxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; w = value.z; y = value.w; } } @@ -1314,7 +1314,7 @@ public int4 zxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, w, z); } } @@ -1322,7 +1322,7 @@ public int4 zxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, x, w, w); } } @@ -1330,7 +1330,7 @@ public int4 zxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, x, x); } } @@ -1338,7 +1338,7 @@ public int4 zyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, x, y); } } @@ -1346,7 +1346,7 @@ public int4 zyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, x, z); } } @@ -1354,9 +1354,9 @@ public int4 zyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; x = value.z; w = value.w; } } @@ -1364,7 +1364,7 @@ public int4 zyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, y, x); } } @@ -1372,7 +1372,7 @@ public int4 zyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, y, y); } } @@ -1380,7 +1380,7 @@ public int4 zyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, y, z); } } @@ -1388,7 +1388,7 @@ public int4 zyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, y, w); } } @@ -1396,7 +1396,7 @@ public int4 zyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, z, x); } } @@ -1404,7 +1404,7 @@ public int4 zyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, z, y); } } @@ -1412,7 +1412,7 @@ public int4 zyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, z, z); } } @@ -1420,7 +1420,7 @@ public int4 zyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, z, w); } } @@ -1428,9 +1428,9 @@ public int4 zyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; w = value.z; x = value.w; } } @@ -1438,7 +1438,7 @@ public int4 zywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, w, y); } } @@ -1446,7 +1446,7 @@ public int4 zywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, w, z); } } @@ -1454,7 +1454,7 @@ public int4 zywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, y, w, w); } } @@ -1462,7 +1462,7 @@ public int4 zyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, x, x); } } @@ -1470,7 +1470,7 @@ public int4 zzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, x, y); } } @@ -1478,7 +1478,7 @@ public int4 zzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, x, z); } } @@ -1486,7 +1486,7 @@ public int4 zzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, x, w); } } @@ -1494,7 +1494,7 @@ public int4 zzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, y, x); } } @@ -1502,7 +1502,7 @@ public int4 zzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, y, y); } } @@ -1510,7 +1510,7 @@ public int4 zzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, y, z); } } @@ -1518,7 +1518,7 @@ public int4 zzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, y, w); } } @@ -1526,7 +1526,7 @@ public int4 zzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, z, x); } } @@ -1534,7 +1534,7 @@ public int4 zzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, z, y); } } @@ -1542,7 +1542,7 @@ public int4 zzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, z, z); } } @@ -1550,7 +1550,7 @@ public int4 zzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, z, w); } } @@ -1558,7 +1558,7 @@ public int4 zzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, w, x); } } @@ -1566,7 +1566,7 @@ public int4 zzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, w, y); } } @@ -1574,7 +1574,7 @@ public int4 zzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, w, z); } } @@ -1582,7 +1582,7 @@ public int4 zzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, z, w, w); } } @@ -1590,7 +1590,7 @@ public int4 zzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, x, x); } } @@ -1598,9 +1598,9 @@ public int4 zwxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; x = value.z; y = value.w; } } @@ -1608,7 +1608,7 @@ public int4 zwxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, x, z); } } @@ -1616,7 +1616,7 @@ public int4 zwxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, x, w); } } @@ -1624,9 +1624,9 @@ public int4 zwxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; y = value.z; x = value.w; } } @@ -1634,7 +1634,7 @@ public int4 zwyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, y, y); } } @@ -1642,7 +1642,7 @@ public int4 zwyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, y, z); } } @@ -1650,7 +1650,7 @@ public int4 zwyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, y, w); } } @@ -1658,7 +1658,7 @@ public int4 zwyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, z, x); } } @@ -1666,7 +1666,7 @@ public int4 zwzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, z, y); } } @@ -1674,7 +1674,7 @@ public int4 zwzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, z, z); } } @@ -1682,7 +1682,7 @@ public int4 zwzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, z, w); } } @@ -1690,7 +1690,7 @@ public int4 zwzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, w, x); } } @@ -1698,7 +1698,7 @@ public int4 zwwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, w, y); } } @@ -1706,7 +1706,7 @@ public int4 zwwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, w, z); } } @@ -1714,7 +1714,7 @@ public int4 zwwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(z, w, w, w); } } @@ -1722,7 +1722,7 @@ public int4 zwww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, x, x); } } @@ -1730,7 +1730,7 @@ public int4 wxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, x, y); } } @@ -1738,7 +1738,7 @@ public int4 wxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, x, z); } } @@ -1746,7 +1746,7 @@ public int4 wxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, x, w); } } @@ -1754,7 +1754,7 @@ public int4 wxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, y, x); } } @@ -1762,7 +1762,7 @@ public int4 wxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, y, y); } } @@ -1770,9 +1770,9 @@ public int4 wxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; y = value.z; z = value.w; } } @@ -1780,7 +1780,7 @@ public int4 wxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, y, w); } } @@ -1788,7 +1788,7 @@ public int4 wxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, z, x); } } @@ -1796,9 +1796,9 @@ public int4 wxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; z = value.z; y = value.w; } } @@ -1806,7 +1806,7 @@ public int4 wxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, z, z); } } @@ -1814,7 +1814,7 @@ public int4 wxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, z, w); } } @@ -1822,7 +1822,7 @@ public int4 wxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, w, x); } } @@ -1830,7 +1830,7 @@ public int4 wxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, w, y); } } @@ -1838,7 +1838,7 @@ public int4 wxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, w, z); } } @@ -1846,7 +1846,7 @@ public int4 wxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, x, w, w); } } @@ -1854,7 +1854,7 @@ public int4 wxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, x, x); } } @@ -1862,7 +1862,7 @@ public int4 wyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, x, y); } } @@ -1870,9 +1870,9 @@ public int4 wyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; x = value.z; z = value.w; } } @@ -1880,7 +1880,7 @@ public int4 wyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, x, w); } } @@ -1888,7 +1888,7 @@ public int4 wyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, y, x); } } @@ -1896,7 +1896,7 @@ public int4 wyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, y, y); } } @@ -1904,7 +1904,7 @@ public int4 wyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, y, z); } } @@ -1912,7 +1912,7 @@ public int4 wyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, y, w); } } @@ -1920,9 +1920,9 @@ public int4 wyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; z = value.z; x = value.w; } } @@ -1930,7 +1930,7 @@ public int4 wyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, z, y); } } @@ -1938,7 +1938,7 @@ public int4 wyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, z, z); } } @@ -1946,7 +1946,7 @@ public int4 wyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, z, w); } } @@ -1954,7 +1954,7 @@ public int4 wyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, w, x); } } @@ -1962,7 +1962,7 @@ public int4 wywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, w, y); } } @@ -1970,7 +1970,7 @@ public int4 wywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, w, z); } } @@ -1978,7 +1978,7 @@ public int4 wywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, y, w, w); } } @@ -1986,7 +1986,7 @@ public int4 wyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, x, x); } } @@ -1994,9 +1994,9 @@ public int4 wzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; x = value.z; y = value.w; } } @@ -2004,7 +2004,7 @@ public int4 wzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, x, z); } } @@ -2012,7 +2012,7 @@ public int4 wzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, x, w); } } @@ -2020,9 +2020,9 @@ public int4 wzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; y = value.z; x = value.w; } } @@ -2030,7 +2030,7 @@ public int4 wzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, y, y); } } @@ -2038,7 +2038,7 @@ public int4 wzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, y, z); } } @@ -2046,7 +2046,7 @@ public int4 wzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, y, w); } } @@ -2054,7 +2054,7 @@ public int4 wzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, z, x); } } @@ -2062,7 +2062,7 @@ public int4 wzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, z, y); } } @@ -2070,7 +2070,7 @@ public int4 wzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, z, z); } } @@ -2078,7 +2078,7 @@ public int4 wzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, z, w); } } @@ -2086,7 +2086,7 @@ public int4 wzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, w, x); } } @@ -2094,7 +2094,7 @@ public int4 wzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, w, y); } } @@ -2102,7 +2102,7 @@ public int4 wzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, w, z); } } @@ -2110,7 +2110,7 @@ public int4 wzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, z, w, w); } } @@ -2118,7 +2118,7 @@ public int4 wzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, x, x); } } @@ -2126,7 +2126,7 @@ public int4 wwxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, x, y); } } @@ -2134,7 +2134,7 @@ public int4 wwxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, x, z); } } @@ -2142,7 +2142,7 @@ public int4 wwxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, x, w); } } @@ -2150,7 +2150,7 @@ public int4 wwxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, y, x); } } @@ -2158,7 +2158,7 @@ public int4 wwyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, y, y); } } @@ -2166,7 +2166,7 @@ public int4 wwyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, y, z); } } @@ -2174,7 +2174,7 @@ public int4 wwyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, y, w); } } @@ -2182,7 +2182,7 @@ public int4 wwyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, z, x); } } @@ -2190,7 +2190,7 @@ public int4 wwzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, z, y); } } @@ -2198,7 +2198,7 @@ public int4 wwzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, z, z); } } @@ -2206,7 +2206,7 @@ public int4 wwzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, z, w); } } @@ -2214,7 +2214,7 @@ public int4 wwzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, w, x); } } @@ -2222,7 +2222,7 @@ public int4 wwwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, w, y); } } @@ -2230,7 +2230,7 @@ public int4 wwwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, w, z); } } @@ -2238,7 +2238,7 @@ public int4 wwwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int4(w, w, w, w); } } @@ -2246,7 +2246,7 @@ public int4 wwww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, x, x); } } @@ -2254,7 +2254,7 @@ public int3 xxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, x, y); } } @@ -2262,7 +2262,7 @@ public int3 xxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, x, z); } } @@ -2270,7 +2270,7 @@ public int3 xxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, x, w); } } @@ -2278,7 +2278,7 @@ public int3 xxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, y, x); } } @@ -2286,7 +2286,7 @@ public int3 xyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, y, y); } } @@ -2294,9 +2294,9 @@ public int3 xyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; z = value.z; } } @@ -2304,9 +2304,9 @@ public int3 xyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; w = value.z; } } @@ -2314,7 +2314,7 @@ public int3 xyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, z, x); } } @@ -2322,9 +2322,9 @@ public int3 xzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; y = value.z; } } @@ -2332,7 +2332,7 @@ public int3 xzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, z, z); } } @@ -2340,9 +2340,9 @@ public int3 xzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; w = value.z; } } @@ -2350,7 +2350,7 @@ public int3 xzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, w, x); } } @@ -2358,9 +2358,9 @@ public int3 xwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; y = value.z; } } @@ -2368,9 +2368,9 @@ public int3 xwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; z = value.z; } } @@ -2378,7 +2378,7 @@ public int3 xwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(x, w, w); } } @@ -2386,7 +2386,7 @@ public int3 xww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, x, x); } } @@ -2394,7 +2394,7 @@ public int3 yxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, x, y); } } @@ -2402,9 +2402,9 @@ public int3 yxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; z = value.z; } } @@ -2412,9 +2412,9 @@ public int3 yxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; w = value.z; } } @@ -2422,7 +2422,7 @@ public int3 yxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, y, x); } } @@ -2430,7 +2430,7 @@ public int3 yyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, y, y); } } @@ -2438,7 +2438,7 @@ public int3 yyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, y, z); } } @@ -2446,7 +2446,7 @@ public int3 yyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, y, w); } } @@ -2454,9 +2454,9 @@ public int3 yyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; x = value.z; } } @@ -2464,7 +2464,7 @@ public int3 yzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, z, y); } } @@ -2472,7 +2472,7 @@ public int3 yzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, z, z); } } @@ -2480,9 +2480,9 @@ public int3 yzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; w = value.z; } } @@ -2490,9 +2490,9 @@ public int3 yzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 ywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; x = value.z; } } @@ -2500,7 +2500,7 @@ public int3 ywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 ywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, w, y); } } @@ -2508,9 +2508,9 @@ public int3 ywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 ywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; z = value.z; } } @@ -2518,7 +2518,7 @@ public int3 ywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(y, w, w); } } @@ -2526,7 +2526,7 @@ public int3 yww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, x, x); } } @@ -2534,9 +2534,9 @@ public int3 zxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; y = value.z; } } @@ -2544,7 +2544,7 @@ public int3 zxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, x, z); } } @@ -2552,9 +2552,9 @@ public int3 zxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; w = value.z; } } @@ -2562,9 +2562,9 @@ public int3 zxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; x = value.z; } } @@ -2572,7 +2572,7 @@ public int3 zyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, y, y); } } @@ -2580,7 +2580,7 @@ public int3 zyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, y, z); } } @@ -2588,9 +2588,9 @@ public int3 zyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; w = value.z; } } @@ -2598,7 +2598,7 @@ public int3 zyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, z, x); } } @@ -2606,7 +2606,7 @@ public int3 zzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, z, y); } } @@ -2614,7 +2614,7 @@ public int3 zzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, z, z); } } @@ -2622,7 +2622,7 @@ public int3 zzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, z, w); } } @@ -2630,9 +2630,9 @@ public int3 zzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; x = value.z; } } @@ -2640,9 +2640,9 @@ public int3 zwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; y = value.z; } } @@ -2650,7 +2650,7 @@ public int3 zwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, w, z); } } @@ -2658,7 +2658,7 @@ public int3 zwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(z, w, w); } } @@ -2666,7 +2666,7 @@ public int3 zww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, x, x); } } @@ -2674,9 +2674,9 @@ public int3 wxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; y = value.z; } } @@ -2684,9 +2684,9 @@ public int3 wxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; z = value.z; } } @@ -2694,7 +2694,7 @@ public int3 wxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, x, w); } } @@ -2702,9 +2702,9 @@ public int3 wxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; x = value.z; } } @@ -2712,7 +2712,7 @@ public int3 wyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, y, y); } } @@ -2720,9 +2720,9 @@ public int3 wyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; z = value.z; } } @@ -2730,7 +2730,7 @@ public int3 wyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, y, w); } } @@ -2738,9 +2738,9 @@ public int3 wyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; x = value.z; } } @@ -2748,9 +2748,9 @@ public int3 wzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; y = value.z; } } @@ -2758,7 +2758,7 @@ public int3 wzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, z, z); } } @@ -2766,7 +2766,7 @@ public int3 wzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, z, w); } } @@ -2774,7 +2774,7 @@ public int3 wzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, w, x); } } @@ -2782,7 +2782,7 @@ public int3 wwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, w, y); } } @@ -2790,7 +2790,7 @@ public int3 wwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, w, z); } } @@ -2798,7 +2798,7 @@ public int3 wwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 www { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int3(w, w, w); } } @@ -2806,7 +2806,7 @@ public int3 www [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(x, x); } } @@ -2814,9 +2814,9 @@ public int2 xx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; } } @@ -2824,9 +2824,9 @@ public int2 xy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; } } @@ -2834,9 +2834,9 @@ public int2 xz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; } } @@ -2844,9 +2844,9 @@ public int2 xw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; } } @@ -2854,7 +2854,7 @@ public int2 yx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(y, y); } } @@ -2862,9 +2862,9 @@ public int2 yy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; } } @@ -2872,9 +2872,9 @@ public int2 yz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; } } @@ -2882,9 +2882,9 @@ public int2 yw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 zx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; } } @@ -2892,9 +2892,9 @@ public int2 zx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 zy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; } } @@ -2902,7 +2902,7 @@ public int2 zy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 zz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(z, z); } } @@ -2910,9 +2910,9 @@ public int2 zz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 zw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; } } @@ -2920,9 +2920,9 @@ public int2 zw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 wx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; } } @@ -2930,9 +2930,9 @@ public int2 wx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 wy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; } } @@ -2940,9 +2940,9 @@ public int2 wy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 wz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; } } @@ -2950,7 +2950,7 @@ public int2 wz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 ww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new int2(w, w); } } diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 69c72594..80206f2a 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -11,130 +11,130 @@ namespace Unity.Mathematics public static partial class math { // min - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float min(float a, float b) { return float.IsNaN(b) || a < b ? a : b; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 min(float2 a, float2 b) { return new float2(min(a.x, b.x), min(a.y, b.y)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 min(float3 a, float3 b) { return new float3(min(a.x, b.x), min(a.y, b.y), min(a.z, b.z)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 min(float4 a, float4 b) { return new float4(min(a.x, b.x), min(a.y, b.y), min(a.z, b.z), min(a.w, b.w)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int min(int a, int b) { return a < b ? a : b; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 min(int2 a, int2 b) { return new int2(min(a.x, b.x), min(a.y, b.y)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 min(int3 a, int3 b) { return new int3(min(a.x, b.x), min(a.y, b.y), min(a.z, b.z)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 min(int4 a, int4 b) { return new int4(min(a.x, b.x), min(a.y, b.y), min(a.z, b.z), min(a.w, b.w)); } // max [MethodImpl((MethodImplOptions) 0x100)] // agressive inline public static float max(float a, float b) { return float.IsNaN(b) || a > b ? a : b; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 max(float2 a, float2 b) { return new float2(max(a.x, b.x), max(a.y, b.y)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 max(float3 a, float3 b) { return new float3(max(a.x, b.x), max(a.y, b.y), max(a.z, b.z)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 max(float4 a, float4 b) { return new float4(max(a.x, b.x), max(a.y, b.y), max(a.z, b.z), max(a.w, b.w)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int max(int a, int b) { return a > b ? a : b; } // Use Math.Max as it is handling properly NaN - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 max(int2 a, int2 b) { return new int2(max(a.x, b.x), max(a.y, b.y)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 max(int3 a, int3 b) { return new int3(max(a.x, b.x), max(a.y, b.y), max(a.z, b.z)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 max(int4 a, int4 b) { return new int4(max(a.x, b.x), max(a.y, b.y), max(a.z, b.z), max(a.w, b.w)); } // lerp - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float lerp(float a, float b, float w) { return a + w * (b - a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 lerp(float2 a, float2 b, float w) { return a + w * (b - a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 lerp(float3 a, float3 b, float w) { return a + w * (b - a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 lerp(float4 a, float4 b, float w) { return a + w * (b - a); } // mad - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float mad(float a, float b, float c) { return a * b + c; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 mad(float2 a, float2 b, float2 c) { return a * b + c; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 mad(float3 a, float3 b, float3 c) { return a * b + c; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 mad(float4 a, float4 b, float4 c) { return a * b + c; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int mad(int a, int b, int c) { return a * b + c; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 mad(int2 a, int2 b, int2 c) { return a * b + c; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 mad(int3 a, int3 b, int3 c) { return a * b + c; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 mad(int4 a, int4 b, int4 c) { return a * b + c; } // TODO: madint version???? // clamp - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float clamp(float x, float a, float b) { return max(a, min(b, x)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 clamp(float2 x, float2 a, float2 b) { return max(a, min(b, x)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 clamp(float3 x, float3 a, float3 b) { return max(a, min(b, x)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 clamp(float4 x, float4 a, float4 b) { return max(a, min(b, x)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int clamp(int x, int a, int b) { return max(a, min(b, x)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 clamp(int2 x, int2 a, int2 b) { return max(a, min(b, x)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 clamp(int3 x, int3 a, int3 b) { return max(a, min(b, x)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 clamp(int4 x, int4 a, int4 b) { return max(a, min(b, x)); } // saturate - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float saturate(float x) { return clamp(x, 0.0F, 1.0F); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 saturate(float2 x) { return clamp(x, new float2(0.0F), new float2(1.0F)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 saturate(float3 x) { return clamp(x, new float3(0.0F), new float3(1.0F)); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 saturate(float4 x) { return clamp(x, new float4(0.0F), new float4(1.0F)); } // abs - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float abs(float a) { return max(-a, a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int abs(int a) { return max(-a, a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 abs(float2 a) { return max(-a, a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 abs(float3 a) { return max(-a, a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 abs(float4 a) { return max(-a, a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 abs(int2 a) { return max(-a, a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 abs(int3 a) { return max(-a, a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 abs(int4 a) { return max(-a, a); } // dot - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float dot(float pt1, float pt2) { return pt1 * pt2; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float dot(float2 pt1, float2 pt2) { return pt1.x * pt2.x + pt1.y * pt2.y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float dot(float3 pt1, float3 pt2) { return pt1.x * pt2.x + pt1.y * pt2.y + pt1.z * pt2.z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float dot(float4 pt1, float4 pt2) { return pt1.x * pt2.x + pt1.y * pt2.y + pt1.z * pt2.z + pt1.w * pt2.w; } // tan @@ -216,13 +216,13 @@ public static partial class math public static float4 sign(float4 f) { return new float4(sign(f.x), sign(f.y), sign(f.z), sign(f.w)); } // mix - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float mix(float a, float b, float x) { return x * (b - a) + a; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 mix(float2 a, float2 b, float2 x) { return x * (b - a) + a; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 mix(float3 a, float3 b, float3 x) { return x * (b - a) + a; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 mix(float4 a, float4 b, float4 x) { return x * (b - a) + a; } // pow @@ -268,13 +268,13 @@ public static partial class math public static float4 sqrt(float4 a) { return new float4(sqrt(a.x), sqrt(a.y), sqrt(a.z), sqrt(a.w)); } // rsqrt - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float rsqrt(float a) { return 1.0F / sqrt(a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 rsqrt(float2 a) { return 1.0f / sqrt(a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 rsqrt(float3 a) { return 1.0f / sqrt(a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 rsqrt(float4 a) { return 1.0f / sqrt(a); } // normalize @@ -328,178 +328,178 @@ public static float4 smoothstep(float4 a, float4 b, float4 x) } // any - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(bool a) { return a; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(bool2 a) { return a.x || a.y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(bool3 a) { return a.x || a.y || a.z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(bool4 a) { return a.x || a.y || a.z || a.w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(int a) { return a != 0; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(int2 a) { return a.x != 0 || a.y != 0; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(int3 a) { return a.x != 0 || a.y != 0 || a.z != 0; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(int4 a) { return a.x != 0 || a.y != 0 || a.z != 0 || a.w != 0; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(float a) { return a != 0.0F; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(float2 a) { return a.x != 0.0F || a.y != 0.0F; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(float3 a) { return a.x != 0.0F || a.y != 0.0F || a.z != 0.0F; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(float4 a) { return a.x != 0.0F || a.y != 0.0F || a.z != 0.0F || a.w != 0.0F; } // all - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(bool a) { return a; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(bool2 a) { return a.x && a.y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(bool3 a) { return a.x && a.y && a.z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(bool4 a) { return a.x && a.y && a.z && a.w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(int a) { return a != 0; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(int2 a) { return a.x != 0 && a.y != 0; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(int3 a) { return a.x != 0 && a.y != 0 && a.z != 0; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(int4 a) { return a.x != 0 && a.y != 0 && a.z != 0 && a.w != 0; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(float a) { return a != 0.0F; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(float2 a) { return a.x != 0.0F && a.y != 0.0F; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(float3 a) { return a.x != 0.0F && a.y != 0.0F && a.z != 0.0F; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(float4 a) { return a.x != 0.0F && a.y != 0.0F && a.z != 0.0F && a.w != 0.0F; } // Select - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int select(int a, int b, bool c) { return c ? b : a; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 select(int2 a, int2 b, bool c) { return c ? b : a; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 select(int3 a, int3 b, bool c) { return c ? b : a; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 select(int4 a, int4 b, bool c) { return c ? b : a; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 select(int2 a, int2 b, bool2 c) { return new int2(c.x ? b.x : a.x, c.y ? b.y : a.y); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 select(int3 a, int3 b, bool3 c) { return new int3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 select(int4 a, int4 b, bool4 c) { return new int4(c.x ? b.x : a.x, c.y ? a.y : b.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float select(float a, float b, bool c) { return c ? b : a; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 select(float2 a, float2 b, bool c) { return c ? b : a; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 select(float3 a, float3 b, bool c) { return c ? b : a; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 select(float4 a, float4 b, bool c) { return c ? b : a; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 select(float2 a, float2 b, bool2 c) { return new float2(c.x ? b.x : a.x, c.y ? b.y : a.y); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 select(float3 a, float3 b, bool3 c) { return new float3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 select(float4 a, float4 b, bool4 c) { return new float4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } //Step - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float step(float a, float b) { return select(0.0f, 1.0f, b >= a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 step(float2 a, float2 b) { return select(0.0f, 1.0f, b >= a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 step(float3 a, float3 b) { return select(0.0f, 1.0f, b >= a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 step(float4 a, float4 b) { return select(0.0f, 1.0f, b >= a); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float reflect(float i, float n) { return i - 2f * n * dot(i, n); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 reflect(float2 i, float2 n) { return i - 2f * n * dot(i, n); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 reflect(float3 i, float3 n) { return i - 2f * n * dot(i, n); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 reflect(float4 i, float4 n) { return i - 2f * n * dot(i, n); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void sincos(float x, out float s, out float c) { s = sin(x); c = cos(x); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void sincos(float2 x, out float2 s, out float2 c) { s = sin(x); c = cos(x); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void sincos(float3 x, out float3 s, out float3 c) { s = sin(x); c = cos(x); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void sincos(float4 x, out float4 s, out float4 c) { s = sin(x); c = cos(x); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 lessThan(float4 x, float4 y) { return x < y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 lessThan(float3 x, float3 y) { return x < y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 lessThan(float2 x, float2 y) { return x < y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool lessThan(float x, float y) { return x < y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 lessThanEqual(float4 x, float4 y) { return x <= y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 lessThanEqual(float3 x, float3 y) { return x <= y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 lessThanEqual(float2 x, float2 y) { return x <= y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool lessThanEqual(float x, float y) { return x <= y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 greaterThan(float4 x, float4 y) { return x > y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 greaterThan(float3 x, float3 y) { return x > y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 greaterThan(float2 x, float2 y) { return x > y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool greaterThan(float x, float y) { return x > y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 greaterThanEqual(float4 x, float4 y) { return x >= y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 greaterThanEqual(float3 x, float3 y) { return x >= y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 greaterThanEqual(float2 x, float2 y) { return x >= y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool greaterThanEqual(float x, float y) { return x >= y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 equal(float4 x, float4 y) { return x == y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 equal(float3 x, float3 y) { return x == y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 equal(float2 x, float2 y) { return x == y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool equal(float x, float y) { return x == y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 notEqual(float4 x, float4 y) { return x != y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 notEqual(float3 x, float3 y) { return x != y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 notEqual(float2 x, float2 y) { return x != y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool notEqual(float x, float y) { return x != y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 up() { return new float3(0.0f,1.0f,0.0f); } } } diff --git a/src/Unity.Mathematics/mathextended.cs b/src/Unity.Mathematics/mathextended.cs index 13bc405a..675462fb 100644 --- a/src/Unity.Mathematics/mathextended.cs +++ b/src/Unity.Mathematics/mathextended.cs @@ -1,4 +1,4 @@ -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; namespace Unity.Mathematics { @@ -7,10 +7,10 @@ public static partial class math public const float epsilon_normal = 1e-30f; - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int bool_to_int(bool value) { return value ? 1 : 0; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int bool_to_mask(bool value) { return value ? -1 : 0; } public static int count_bits(int i) @@ -54,81 +54,81 @@ public static unsafe int compress(int* output, int index, int4 val, bool4 mask) } // radians (convert from degrees to radians) - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float radians(float degrees) { return degrees * 0.0174532925f; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 radians(float2 degrees) { return degrees * 0.0174532925f; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 radians(float3 degrees) { return degrees * 0.0174532925f; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 radians(float4 degrees) { return degrees * 0.0174532925f; } // radians (convert from radians to degrees) - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float degrees(float radians) { return radians * 57.295779513f; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 degrees(float2 radians) { return radians * 57.295779513f; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 degrees(float3 radians) { return radians * 57.295779513f; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 degrees(float4 radians) { return radians * 57.295779513f; } // cmin - returns the smallest component of the vector - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cmin(float a) { return a; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cmin(float2 a) { return min(a.x, a.y); } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cmin(float3 a) { return min(min(a.x, a.y), a.z); } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cmin(float4 a) { return min(min(min(a.x, a.y), a.z), a.w); } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int cmin(int a) { return a; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int cmin(int2 a) { return min(a.x, a.y); } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int cmin(int3 a) { return min(min(a.x, a.y), a.z); } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int cmin(int4 a) { return min(min(min(a.x, a.y), a.z), a.w); } // cmax - returns the largest component of the vector - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cmax(float a) { return a; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cmax(float2 a) { return max(a.x, a.y); } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cmax(float3 a) { return max(max(a.x, a.y), a.z); } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cmax(float4 a) { return max(max(max(a.x, a.y), a.z), a.w); } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int cmax(int a) { return a; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int cmax(int2 a) { return max(a.x, a.y); } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int cmax(int3 a) { return max(max(a.x, a.y), a.z); } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int cmax(int4 a) { return max(max(max(a.x, a.y), a.z), a.w); } // csum - sums all components of the vector - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float csum(float a) { return a; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float csum(float2 a) { return a.x + a.y; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float csum(float3 a) { return a.x + a.y + a.z; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float csum(float4 a) { return a.x + a.y + a.z + a.w; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int csum(int a) { return a; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int csum(int2 a) { return a.x + a.y; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int csum(int3 a) { return a.x + a.y + a.z; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int csum(int4 a) { return a.x + a.y + a.z + a.w; } // A numeric optimization fence. @@ -138,23 +138,23 @@ public static unsafe int compress(int* output, int index, int4 val, bool4 mask) // this gives the programmer a tool to prevent specific optimization. // example: // var c = math.nfence(a + b) * c; - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float nfence(float value) { return value; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 nfence(float2 value) { return value; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 nfence(float3 value) { return value; } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 nfence(float4 value) { return value; } // fract - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float fract(float a) { return a - floor(a); } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 fract(float2 a) { return a - floor(a); } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 fract(float3 a) { return a - floor(a); } - [MethodImpl((MethodImplOptions)0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 fract(float4 a) { return a - floor(a); } #if false diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index 1caf99eb..e2619b07 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -1,4 +1,4 @@ -namespace Unity.Mathematics +namespace Unity.Mathematics { public partial struct float4x4 { @@ -215,11 +215,11 @@ public static float3x3 lookRotationToMatrix(float3 forward, float3 up) } /* @TODO: - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float determinant(float2x2 x) { throw new System.NotImplementedException(); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float determinant(float3x3 x) { throw new System.NotImplementedException(); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float determinant(float4x4 x) { throw new System.NotImplementedException(); } */ } diff --git a/src/Unity.Mathematics/uint2.cs b/src/Unity.Mathematics/uint2.cs index d2bfaa01..21ce7ea6 100644 --- a/src/Unity.Mathematics/uint2.cs +++ b/src/Unity.Mathematics/uint2.cs @@ -24,34 +24,34 @@ public DebuggerProxy(uint2 vec) public uint x; public uint y; - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(uint val) { x = y = val; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(uint x, uint y) { this.x = x; this.y = y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(int2 val) { x = (uint)val.x; y = (uint)val.y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(float2 val) { x = (uint)val.x; y = (uint)val.y; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint2(uint d) { return new uint2(d); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2(float2 d) { return new uint2(d); } public override string ToString() diff --git a/src/Unity.Mathematics/uint2.gen.cs b/src/Unity.Mathematics/uint2.gen.cs index 3b49e317..9b0562c1 100644 --- a/src/Unity.Mathematics/uint2.gen.cs +++ b/src/Unity.Mathematics/uint2.gen.cs @@ -7,91 +7,91 @@ public partial struct uint2 : System.IEquatable { // mul - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator * (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x * rhs.x, lhs.y * rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator * (uint2 lhs, uint rhs) { return new uint2 (lhs.x * rhs, lhs.y * rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator * (uint lhs, uint2 rhs) { return new uint2 (lhs * rhs.x, lhs * rhs.y); } // add - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator + (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x + rhs.x, lhs.y + rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator + (uint2 lhs, uint rhs) { return new uint2 (lhs.x + rhs, lhs.y + rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator + (uint lhs, uint2 rhs) { return new uint2 (lhs + rhs.x, lhs + rhs.y); } // sub - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator - (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x - rhs.x, lhs.y - rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator - (uint2 lhs, uint rhs) { return new uint2 (lhs.x - rhs, lhs.y - rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator - (uint lhs, uint2 rhs) { return new uint2 (lhs - rhs.x, lhs - rhs.y); } // div - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator / (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x / rhs.x, lhs.y / rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator / (uint2 lhs, uint rhs) { return new uint2 (lhs.x / rhs, lhs.y / rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator / (uint lhs, uint2 rhs) { return new uint2 (lhs / rhs.x, lhs / rhs.y); } // smaller - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (uint2 lhs, uint rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (uint lhs, uint2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (uint2 lhs, uint rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (uint lhs, uint2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } // greater - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (uint2 lhs, uint rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (uint lhs, uint2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (uint2 lhs, uint rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (uint lhs, uint2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } // left shift - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator << (uint2 lhs, int rhs) { return new uint2 (lhs.x << rhs, lhs.y << rhs); } // right shift - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator >> (uint2 lhs, int rhs) { return new uint2 (lhs.x >> rhs, lhs.y >> rhs); } // equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (uint2 lhs, uint rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (uint lhs, uint2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } // not equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (uint2 lhs, uint rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (uint lhs, uint2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } // Equals - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint2 rhs) { return x == rhs.x && y == rhs.y; } // [int index] @@ -116,35 +116,35 @@ unsafe public uint this[int index] } // operator & - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator & (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x & rhs.x, lhs.y & rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator & (uint2 lhs, uint rhs) { return new uint2 (lhs.x & rhs, lhs.y & rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator & (uint lhs, uint2 rhs) { return new uint2 (lhs & rhs.x, lhs & rhs.y); } // operator | - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator | (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x | rhs.x, lhs.y | rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator | (uint2 lhs, uint rhs) { return new uint2 (lhs.x | rhs, lhs.y | rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator | (uint lhs, uint2 rhs) { return new uint2 (lhs | rhs.x, lhs | rhs.y); } // operator ^ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator ^ (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator ^ (uint2 lhs, uint rhs) { return new uint2 (lhs.x ^ rhs, lhs.y ^ rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator ^ (uint lhs, uint2 rhs) { return new uint2 (lhs ^ rhs.x, lhs ^ rhs.y); } // operator ~ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator ~ (uint2 val) { return new uint2 (~val.x, ~val.y); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, x, x); } } @@ -152,7 +152,7 @@ public uint4 xxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, x, y); } } @@ -160,7 +160,7 @@ public uint4 xxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, y, x); } } @@ -168,7 +168,7 @@ public uint4 xxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, y, y); } } @@ -176,7 +176,7 @@ public uint4 xxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, x, x); } } @@ -184,7 +184,7 @@ public uint4 xyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, x, y); } } @@ -192,7 +192,7 @@ public uint4 xyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, y, x); } } @@ -200,7 +200,7 @@ public uint4 xyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, y, y); } } @@ -208,7 +208,7 @@ public uint4 xyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, x, x); } } @@ -216,7 +216,7 @@ public uint4 yxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, x, y); } } @@ -224,7 +224,7 @@ public uint4 yxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, y, x); } } @@ -232,7 +232,7 @@ public uint4 yxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, y, y); } } @@ -240,7 +240,7 @@ public uint4 yxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, x, x); } } @@ -248,7 +248,7 @@ public uint4 yyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, x, y); } } @@ -256,7 +256,7 @@ public uint4 yyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, y, x); } } @@ -264,7 +264,7 @@ public uint4 yyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, y, y); } } @@ -272,7 +272,7 @@ public uint4 yyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, x, x); } } @@ -280,7 +280,7 @@ public uint3 xxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, x, y); } } @@ -288,7 +288,7 @@ public uint3 xxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, y, x); } } @@ -296,7 +296,7 @@ public uint3 xyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, y, y); } } @@ -304,7 +304,7 @@ public uint3 xyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, x, x); } } @@ -312,7 +312,7 @@ public uint3 yxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, x, y); } } @@ -320,7 +320,7 @@ public uint3 yxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, y, x); } } @@ -328,7 +328,7 @@ public uint3 yyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, y, y); } } @@ -336,7 +336,7 @@ public uint3 yyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(x, x); } } @@ -344,9 +344,9 @@ public uint2 xx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; } } @@ -354,9 +354,9 @@ public uint2 xy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; } } @@ -364,7 +364,7 @@ public uint2 yx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(y, y); } } diff --git a/src/Unity.Mathematics/uint3.cs b/src/Unity.Mathematics/uint3.cs index 7a7c42c1..a535219f 100644 --- a/src/Unity.Mathematics/uint3.cs +++ b/src/Unity.Mathematics/uint3.cs @@ -27,10 +27,10 @@ public DebuggerProxy(uint3 vec) public uint y; public uint z; - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(uint val) { x = y = z = val; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(uint x, uint y, uint z) { this.x = x; @@ -38,7 +38,7 @@ public uint3(uint x, uint y, uint z) this.z = z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(uint2 xy, uint z) { this.x = xy.x; @@ -46,7 +46,7 @@ public uint3(uint2 xy, uint z) this.z = z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(float3 val) { x = (uint)val.x; @@ -54,9 +54,9 @@ public uint3(float3 val) z = (uint)val.z; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint3(uint d) { return new uint3(d); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3(float3 d) { return new uint3(d); } public override string ToString() diff --git a/src/Unity.Mathematics/uint3.gen.cs b/src/Unity.Mathematics/uint3.gen.cs index c04695b7..ad7861b6 100644 --- a/src/Unity.Mathematics/uint3.gen.cs +++ b/src/Unity.Mathematics/uint3.gen.cs @@ -7,91 +7,91 @@ public partial struct uint3 : System.IEquatable { // mul - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator * (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator * (uint3 lhs, uint rhs) { return new uint3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator * (uint lhs, uint3 rhs) { return new uint3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } // add - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator + (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator + (uint3 lhs, uint rhs) { return new uint3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator + (uint lhs, uint3 rhs) { return new uint3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } // sub - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator - (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator - (uint3 lhs, uint rhs) { return new uint3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator - (uint lhs, uint3 rhs) { return new uint3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } // div - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator / (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator / (uint3 lhs, uint rhs) { return new uint3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator / (uint lhs, uint3 rhs) { return new uint3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } // smaller - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (uint3 lhs, uint rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (uint lhs, uint3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (uint3 lhs, uint rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (uint lhs, uint3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } // greater - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (uint3 lhs, uint rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (uint lhs, uint3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (uint3 lhs, uint rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (uint lhs, uint3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } // left shift - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator << (uint3 lhs, int rhs) { return new uint3 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs); } // right shift - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator >> (uint3 lhs, int rhs) { return new uint3 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs); } // equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (uint3 lhs, uint rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (uint lhs, uint3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } // not equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (uint3 lhs, uint rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (uint lhs, uint3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } // Equals - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } // [int index] @@ -116,35 +116,35 @@ unsafe public uint this[int index] } // operator & - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator & (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator & (uint3 lhs, uint rhs) { return new uint3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator & (uint lhs, uint3 rhs) { return new uint3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } // operator | - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator | (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator | (uint3 lhs, uint rhs) { return new uint3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator | (uint lhs, uint3 rhs) { return new uint3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } // operator ^ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator ^ (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator ^ (uint3 lhs, uint rhs) { return new uint3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator ^ (uint lhs, uint3 rhs) { return new uint3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } // operator ~ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator ~ (uint3 val) { return new uint3 (~val.x, ~val.y, ~val.z); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, x, x); } } @@ -152,7 +152,7 @@ public uint4 xxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, x, y); } } @@ -160,7 +160,7 @@ public uint4 xxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, x, z); } } @@ -168,7 +168,7 @@ public uint4 xxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, y, x); } } @@ -176,7 +176,7 @@ public uint4 xxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, y, y); } } @@ -184,7 +184,7 @@ public uint4 xxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, y, z); } } @@ -192,7 +192,7 @@ public uint4 xxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, z, x); } } @@ -200,7 +200,7 @@ public uint4 xxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, z, y); } } @@ -208,7 +208,7 @@ public uint4 xxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, z, z); } } @@ -216,7 +216,7 @@ public uint4 xxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, x, x); } } @@ -224,7 +224,7 @@ public uint4 xyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, x, y); } } @@ -232,7 +232,7 @@ public uint4 xyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, x, z); } } @@ -240,7 +240,7 @@ public uint4 xyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, y, x); } } @@ -248,7 +248,7 @@ public uint4 xyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, y, y); } } @@ -256,7 +256,7 @@ public uint4 xyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, y, z); } } @@ -264,7 +264,7 @@ public uint4 xyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, z, x); } } @@ -272,7 +272,7 @@ public uint4 xyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, z, y); } } @@ -280,7 +280,7 @@ public uint4 xyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, z, z); } } @@ -288,7 +288,7 @@ public uint4 xyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, x, x); } } @@ -296,7 +296,7 @@ public uint4 xzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, x, y); } } @@ -304,7 +304,7 @@ public uint4 xzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, x, z); } } @@ -312,7 +312,7 @@ public uint4 xzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, y, x); } } @@ -320,7 +320,7 @@ public uint4 xzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, y, y); } } @@ -328,7 +328,7 @@ public uint4 xzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, y, z); } } @@ -336,7 +336,7 @@ public uint4 xzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, z, x); } } @@ -344,7 +344,7 @@ public uint4 xzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, z, y); } } @@ -352,7 +352,7 @@ public uint4 xzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, z, z); } } @@ -360,7 +360,7 @@ public uint4 xzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, x, x); } } @@ -368,7 +368,7 @@ public uint4 yxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, x, y); } } @@ -376,7 +376,7 @@ public uint4 yxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, x, z); } } @@ -384,7 +384,7 @@ public uint4 yxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, y, x); } } @@ -392,7 +392,7 @@ public uint4 yxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, y, y); } } @@ -400,7 +400,7 @@ public uint4 yxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, y, z); } } @@ -408,7 +408,7 @@ public uint4 yxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, z, x); } } @@ -416,7 +416,7 @@ public uint4 yxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, z, y); } } @@ -424,7 +424,7 @@ public uint4 yxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, z, z); } } @@ -432,7 +432,7 @@ public uint4 yxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, x, x); } } @@ -440,7 +440,7 @@ public uint4 yyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, x, y); } } @@ -448,7 +448,7 @@ public uint4 yyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, x, z); } } @@ -456,7 +456,7 @@ public uint4 yyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, y, x); } } @@ -464,7 +464,7 @@ public uint4 yyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, y, y); } } @@ -472,7 +472,7 @@ public uint4 yyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, y, z); } } @@ -480,7 +480,7 @@ public uint4 yyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, z, x); } } @@ -488,7 +488,7 @@ public uint4 yyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, z, y); } } @@ -496,7 +496,7 @@ public uint4 yyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, z, z); } } @@ -504,7 +504,7 @@ public uint4 yyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, x, x); } } @@ -512,7 +512,7 @@ public uint4 yzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, x, y); } } @@ -520,7 +520,7 @@ public uint4 yzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, x, z); } } @@ -528,7 +528,7 @@ public uint4 yzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, y, x); } } @@ -536,7 +536,7 @@ public uint4 yzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, y, y); } } @@ -544,7 +544,7 @@ public uint4 yzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, y, z); } } @@ -552,7 +552,7 @@ public uint4 yzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, z, x); } } @@ -560,7 +560,7 @@ public uint4 yzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, z, y); } } @@ -568,7 +568,7 @@ public uint4 yzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, z, z); } } @@ -576,7 +576,7 @@ public uint4 yzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, x, x); } } @@ -584,7 +584,7 @@ public uint4 zxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, x, y); } } @@ -592,7 +592,7 @@ public uint4 zxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, x, z); } } @@ -600,7 +600,7 @@ public uint4 zxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, y, x); } } @@ -608,7 +608,7 @@ public uint4 zxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, y, y); } } @@ -616,7 +616,7 @@ public uint4 zxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, y, z); } } @@ -624,7 +624,7 @@ public uint4 zxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, z, x); } } @@ -632,7 +632,7 @@ public uint4 zxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, z, y); } } @@ -640,7 +640,7 @@ public uint4 zxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, z, z); } } @@ -648,7 +648,7 @@ public uint4 zxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, x, x); } } @@ -656,7 +656,7 @@ public uint4 zyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, x, y); } } @@ -664,7 +664,7 @@ public uint4 zyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, x, z); } } @@ -672,7 +672,7 @@ public uint4 zyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, y, x); } } @@ -680,7 +680,7 @@ public uint4 zyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, y, y); } } @@ -688,7 +688,7 @@ public uint4 zyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, y, z); } } @@ -696,7 +696,7 @@ public uint4 zyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, z, x); } } @@ -704,7 +704,7 @@ public uint4 zyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, z, y); } } @@ -712,7 +712,7 @@ public uint4 zyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, z, z); } } @@ -720,7 +720,7 @@ public uint4 zyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, x, x); } } @@ -728,7 +728,7 @@ public uint4 zzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, x, y); } } @@ -736,7 +736,7 @@ public uint4 zzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, x, z); } } @@ -744,7 +744,7 @@ public uint4 zzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, y, x); } } @@ -752,7 +752,7 @@ public uint4 zzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, y, y); } } @@ -760,7 +760,7 @@ public uint4 zzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, y, z); } } @@ -768,7 +768,7 @@ public uint4 zzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, z, x); } } @@ -776,7 +776,7 @@ public uint4 zzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, z, y); } } @@ -784,7 +784,7 @@ public uint4 zzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, z, z); } } @@ -792,7 +792,7 @@ public uint4 zzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, x, x); } } @@ -800,7 +800,7 @@ public uint3 xxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, x, y); } } @@ -808,7 +808,7 @@ public uint3 xxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, x, z); } } @@ -816,7 +816,7 @@ public uint3 xxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, y, x); } } @@ -824,7 +824,7 @@ public uint3 xyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, y, y); } } @@ -832,9 +832,9 @@ public uint3 xyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; z = value.z; } } @@ -842,7 +842,7 @@ public uint3 xyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, z, x); } } @@ -850,9 +850,9 @@ public uint3 xzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; y = value.z; } } @@ -860,7 +860,7 @@ public uint3 xzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, z, z); } } @@ -868,7 +868,7 @@ public uint3 xzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, x, x); } } @@ -876,7 +876,7 @@ public uint3 yxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, x, y); } } @@ -884,9 +884,9 @@ public uint3 yxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; z = value.z; } } @@ -894,7 +894,7 @@ public uint3 yxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, y, x); } } @@ -902,7 +902,7 @@ public uint3 yyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, y, y); } } @@ -910,7 +910,7 @@ public uint3 yyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, y, z); } } @@ -918,9 +918,9 @@ public uint3 yyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; x = value.z; } } @@ -928,7 +928,7 @@ public uint3 yzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, z, y); } } @@ -936,7 +936,7 @@ public uint3 yzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, z, z); } } @@ -944,7 +944,7 @@ public uint3 yzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, x, x); } } @@ -952,9 +952,9 @@ public uint3 zxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; y = value.z; } } @@ -962,7 +962,7 @@ public uint3 zxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, x, z); } } @@ -970,9 +970,9 @@ public uint3 zxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; x = value.z; } } @@ -980,7 +980,7 @@ public uint3 zyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, y, y); } } @@ -988,7 +988,7 @@ public uint3 zyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, y, z); } } @@ -996,7 +996,7 @@ public uint3 zyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, z, x); } } @@ -1004,7 +1004,7 @@ public uint3 zzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, z, y); } } @@ -1012,7 +1012,7 @@ public uint3 zzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, z, z); } } @@ -1020,7 +1020,7 @@ public uint3 zzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(x, x); } } @@ -1028,9 +1028,9 @@ public uint2 xx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; } } @@ -1038,9 +1038,9 @@ public uint2 xy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; } } @@ -1048,9 +1048,9 @@ public uint2 xz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; } } @@ -1058,7 +1058,7 @@ public uint2 yx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(y, y); } } @@ -1066,9 +1066,9 @@ public uint2 yy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; } } @@ -1076,9 +1076,9 @@ public uint2 yz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 zx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; } } @@ -1086,9 +1086,9 @@ public uint2 zx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 zy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; } } @@ -1096,7 +1096,7 @@ public uint2 zy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 zz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(z, z); } } diff --git a/src/Unity.Mathematics/uint4.cs b/src/Unity.Mathematics/uint4.cs index a0fc0c40..7f596e8b 100644 --- a/src/Unity.Mathematics/uint4.cs +++ b/src/Unity.Mathematics/uint4.cs @@ -30,7 +30,7 @@ public DebuggerProxy(uint4 vec) public uint z; public uint w; - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(uint x, uint y, uint z, uint w) { this.x = x; @@ -39,22 +39,22 @@ public uint4(uint x, uint y, uint z, uint w) this.w = w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(uint val) { x = y = z = w = val; } // FIXME - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(uint3 xyz, uint w) { this.x = xyz.x; this.y = xyz.y; this.z = xyz.z; this.w = w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(int4 val) { x = (uint)val.x; y = (uint)val.y; z = (uint)val.z; w = (uint)val.w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(float4 val) { x = (uint)val.x; y = (uint)val.y; z = (uint)val.z; w = (uint)val.w; } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint4(uint d) { return new uint4(d); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4(float4 d) { return new uint4((uint)d.x, (uint)d.y, (uint)d.z, (uint)d.w); } public override string ToString() diff --git a/src/Unity.Mathematics/uint4.gen.cs b/src/Unity.Mathematics/uint4.gen.cs index 8a1b73f7..a6244deb 100644 --- a/src/Unity.Mathematics/uint4.gen.cs +++ b/src/Unity.Mathematics/uint4.gen.cs @@ -7,91 +7,91 @@ public partial struct uint4 : System.IEquatable { // mul - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator * (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator * (uint4 lhs, uint rhs) { return new uint4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator * (uint lhs, uint4 rhs) { return new uint4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } // add - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator + (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator + (uint4 lhs, uint rhs) { return new uint4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator + (uint lhs, uint4 rhs) { return new uint4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } // sub - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator - (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator - (uint4 lhs, uint rhs) { return new uint4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator - (uint lhs, uint4 rhs) { return new uint4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } // div - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator / (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator / (uint4 lhs, uint rhs) { return new uint4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator / (uint lhs, uint4 rhs) { return new uint4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } // smaller - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (uint4 lhs, uint rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (uint lhs, uint4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (uint4 lhs, uint rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (uint lhs, uint4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } // greater - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (uint4 lhs, uint rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (uint lhs, uint4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (uint4 lhs, uint rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (uint lhs, uint4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } // left shift - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator << (uint4 lhs, int rhs) { return new uint4 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs, lhs.w << rhs); } // right shift - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator >> (uint4 lhs, int rhs) { return new uint4 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs, lhs.w >> rhs); } // equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (uint4 lhs, uint rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (uint lhs, uint4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } // not equal - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (uint4 lhs, uint rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (uint lhs, uint4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } // Equals - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } // [int index] @@ -116,35 +116,35 @@ unsafe public uint this[int index] } // operator & - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator & (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator & (uint4 lhs, uint rhs) { return new uint4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator & (uint lhs, uint4 rhs) { return new uint4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } // operator | - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator | (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator | (uint4 lhs, uint rhs) { return new uint4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator | (uint lhs, uint4 rhs) { return new uint4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } // operator ^ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator ^ (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator ^ (uint4 lhs, uint rhs) { return new uint4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator ^ (uint lhs, uint4 rhs) { return new uint4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } // operator ~ - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator ~ (uint4 val) { return new uint4 (~val.x, ~val.y, ~val.z, ~val.w); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, x, x); } } @@ -152,7 +152,7 @@ public uint4 xxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, x, y); } } @@ -160,7 +160,7 @@ public uint4 xxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, x, z); } } @@ -168,7 +168,7 @@ public uint4 xxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, x, w); } } @@ -176,7 +176,7 @@ public uint4 xxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, y, x); } } @@ -184,7 +184,7 @@ public uint4 xxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, y, y); } } @@ -192,7 +192,7 @@ public uint4 xxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, y, z); } } @@ -200,7 +200,7 @@ public uint4 xxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, y, w); } } @@ -208,7 +208,7 @@ public uint4 xxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, z, x); } } @@ -216,7 +216,7 @@ public uint4 xxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, z, y); } } @@ -224,7 +224,7 @@ public uint4 xxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, z, z); } } @@ -232,7 +232,7 @@ public uint4 xxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, z, w); } } @@ -240,7 +240,7 @@ public uint4 xxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, w, x); } } @@ -248,7 +248,7 @@ public uint4 xxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, w, y); } } @@ -256,7 +256,7 @@ public uint4 xxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, w, z); } } @@ -264,7 +264,7 @@ public uint4 xxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, x, w, w); } } @@ -272,7 +272,7 @@ public uint4 xxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, x, x); } } @@ -280,7 +280,7 @@ public uint4 xyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, x, y); } } @@ -288,7 +288,7 @@ public uint4 xyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, x, z); } } @@ -296,7 +296,7 @@ public uint4 xyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, x, w); } } @@ -304,7 +304,7 @@ public uint4 xyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, y, x); } } @@ -312,7 +312,7 @@ public uint4 xyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, y, y); } } @@ -320,7 +320,7 @@ public uint4 xyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, y, z); } } @@ -328,7 +328,7 @@ public uint4 xyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, y, w); } } @@ -336,7 +336,7 @@ public uint4 xyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, z, x); } } @@ -344,7 +344,7 @@ public uint4 xyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, z, y); } } @@ -352,7 +352,7 @@ public uint4 xyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, z, z); } } @@ -360,9 +360,9 @@ public uint4 xyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; z = value.z; w = value.w; } } @@ -370,7 +370,7 @@ public uint4 xyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, w, x); } } @@ -378,7 +378,7 @@ public uint4 xywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, w, y); } } @@ -386,9 +386,9 @@ public uint4 xywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; w = value.z; z = value.w; } } @@ -396,7 +396,7 @@ public uint4 xywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, y, w, w); } } @@ -404,7 +404,7 @@ public uint4 xyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, x, x); } } @@ -412,7 +412,7 @@ public uint4 xzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, x, y); } } @@ -420,7 +420,7 @@ public uint4 xzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, x, z); } } @@ -428,7 +428,7 @@ public uint4 xzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, x, w); } } @@ -436,7 +436,7 @@ public uint4 xzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, y, x); } } @@ -444,7 +444,7 @@ public uint4 xzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, y, y); } } @@ -452,7 +452,7 @@ public uint4 xzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, y, z); } } @@ -460,9 +460,9 @@ public uint4 xzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; y = value.z; w = value.w; } } @@ -470,7 +470,7 @@ public uint4 xzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, z, x); } } @@ -478,7 +478,7 @@ public uint4 xzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, z, y); } } @@ -486,7 +486,7 @@ public uint4 xzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, z, z); } } @@ -494,7 +494,7 @@ public uint4 xzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, z, w); } } @@ -502,7 +502,7 @@ public uint4 xzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, w, x); } } @@ -510,9 +510,9 @@ public uint4 xzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; w = value.z; y = value.w; } } @@ -520,7 +520,7 @@ public uint4 xzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, w, z); } } @@ -528,7 +528,7 @@ public uint4 xzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, z, w, w); } } @@ -536,7 +536,7 @@ public uint4 xzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, x, x); } } @@ -544,7 +544,7 @@ public uint4 xwxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, x, y); } } @@ -552,7 +552,7 @@ public uint4 xwxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, x, z); } } @@ -560,7 +560,7 @@ public uint4 xwxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, x, w); } } @@ -568,7 +568,7 @@ public uint4 xwxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, y, x); } } @@ -576,7 +576,7 @@ public uint4 xwyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, y, y); } } @@ -584,9 +584,9 @@ public uint4 xwyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; y = value.z; z = value.w; } } @@ -594,7 +594,7 @@ public uint4 xwyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, y, w); } } @@ -602,7 +602,7 @@ public uint4 xwyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, z, x); } } @@ -610,9 +610,9 @@ public uint4 xwzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; z = value.z; y = value.w; } } @@ -620,7 +620,7 @@ public uint4 xwzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, z, z); } } @@ -628,7 +628,7 @@ public uint4 xwzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, z, w); } } @@ -636,7 +636,7 @@ public uint4 xwzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, w, x); } } @@ -644,7 +644,7 @@ public uint4 xwwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, w, y); } } @@ -652,7 +652,7 @@ public uint4 xwwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, w, z); } } @@ -660,7 +660,7 @@ public uint4 xwwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(x, w, w, w); } } @@ -668,7 +668,7 @@ public uint4 xwww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, x, x); } } @@ -676,7 +676,7 @@ public uint4 yxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, x, y); } } @@ -684,7 +684,7 @@ public uint4 yxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, x, z); } } @@ -692,7 +692,7 @@ public uint4 yxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, x, w); } } @@ -700,7 +700,7 @@ public uint4 yxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, y, x); } } @@ -708,7 +708,7 @@ public uint4 yxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, y, y); } } @@ -716,7 +716,7 @@ public uint4 yxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, y, z); } } @@ -724,7 +724,7 @@ public uint4 yxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, y, w); } } @@ -732,7 +732,7 @@ public uint4 yxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, z, x); } } @@ -740,7 +740,7 @@ public uint4 yxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, z, y); } } @@ -748,7 +748,7 @@ public uint4 yxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, z, z); } } @@ -756,9 +756,9 @@ public uint4 yxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; z = value.z; w = value.w; } } @@ -766,7 +766,7 @@ public uint4 yxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, w, x); } } @@ -774,7 +774,7 @@ public uint4 yxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, w, y); } } @@ -782,9 +782,9 @@ public uint4 yxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; w = value.z; z = value.w; } } @@ -792,7 +792,7 @@ public uint4 yxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, x, w, w); } } @@ -800,7 +800,7 @@ public uint4 yxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, x, x); } } @@ -808,7 +808,7 @@ public uint4 yyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, x, y); } } @@ -816,7 +816,7 @@ public uint4 yyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, x, z); } } @@ -824,7 +824,7 @@ public uint4 yyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, x, w); } } @@ -832,7 +832,7 @@ public uint4 yyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, y, x); } } @@ -840,7 +840,7 @@ public uint4 yyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, y, y); } } @@ -848,7 +848,7 @@ public uint4 yyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, y, z); } } @@ -856,7 +856,7 @@ public uint4 yyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, y, w); } } @@ -864,7 +864,7 @@ public uint4 yyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, z, x); } } @@ -872,7 +872,7 @@ public uint4 yyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, z, y); } } @@ -880,7 +880,7 @@ public uint4 yyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, z, z); } } @@ -888,7 +888,7 @@ public uint4 yyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, z, w); } } @@ -896,7 +896,7 @@ public uint4 yyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, w, x); } } @@ -904,7 +904,7 @@ public uint4 yywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, w, y); } } @@ -912,7 +912,7 @@ public uint4 yywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, w, z); } } @@ -920,7 +920,7 @@ public uint4 yywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, y, w, w); } } @@ -928,7 +928,7 @@ public uint4 yyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, x, x); } } @@ -936,7 +936,7 @@ public uint4 yzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, x, y); } } @@ -944,7 +944,7 @@ public uint4 yzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, x, z); } } @@ -952,9 +952,9 @@ public uint4 yzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; x = value.z; w = value.w; } } @@ -962,7 +962,7 @@ public uint4 yzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, y, x); } } @@ -970,7 +970,7 @@ public uint4 yzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, y, y); } } @@ -978,7 +978,7 @@ public uint4 yzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, y, z); } } @@ -986,7 +986,7 @@ public uint4 yzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, y, w); } } @@ -994,7 +994,7 @@ public uint4 yzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, z, x); } } @@ -1002,7 +1002,7 @@ public uint4 yzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, z, y); } } @@ -1010,7 +1010,7 @@ public uint4 yzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, z, z); } } @@ -1018,7 +1018,7 @@ public uint4 yzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, z, w); } } @@ -1026,9 +1026,9 @@ public uint4 yzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; w = value.z; x = value.w; } } @@ -1036,7 +1036,7 @@ public uint4 yzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, w, y); } } @@ -1044,7 +1044,7 @@ public uint4 yzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, w, z); } } @@ -1052,7 +1052,7 @@ public uint4 yzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, z, w, w); } } @@ -1060,7 +1060,7 @@ public uint4 yzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, x, x); } } @@ -1068,7 +1068,7 @@ public uint4 ywxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, x, y); } } @@ -1076,9 +1076,9 @@ public uint4 ywxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; x = value.z; z = value.w; } } @@ -1086,7 +1086,7 @@ public uint4 ywxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, x, w); } } @@ -1094,7 +1094,7 @@ public uint4 ywxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, y, x); } } @@ -1102,7 +1102,7 @@ public uint4 ywyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, y, y); } } @@ -1110,7 +1110,7 @@ public uint4 ywyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, y, z); } } @@ -1118,7 +1118,7 @@ public uint4 ywyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, y, w); } } @@ -1126,9 +1126,9 @@ public uint4 ywyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; z = value.z; x = value.w; } } @@ -1136,7 +1136,7 @@ public uint4 ywzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, z, y); } } @@ -1144,7 +1144,7 @@ public uint4 ywzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, z, z); } } @@ -1152,7 +1152,7 @@ public uint4 ywzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, z, w); } } @@ -1160,7 +1160,7 @@ public uint4 ywzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, w, x); } } @@ -1168,7 +1168,7 @@ public uint4 ywwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, w, y); } } @@ -1176,7 +1176,7 @@ public uint4 ywwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, w, z); } } @@ -1184,7 +1184,7 @@ public uint4 ywwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(y, w, w, w); } } @@ -1192,7 +1192,7 @@ public uint4 ywww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, x, x); } } @@ -1200,7 +1200,7 @@ public uint4 zxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, x, y); } } @@ -1208,7 +1208,7 @@ public uint4 zxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, x, z); } } @@ -1216,7 +1216,7 @@ public uint4 zxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, x, w); } } @@ -1224,7 +1224,7 @@ public uint4 zxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, y, x); } } @@ -1232,7 +1232,7 @@ public uint4 zxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, y, y); } } @@ -1240,7 +1240,7 @@ public uint4 zxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, y, z); } } @@ -1248,9 +1248,9 @@ public uint4 zxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; y = value.z; w = value.w; } } @@ -1258,7 +1258,7 @@ public uint4 zxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, z, x); } } @@ -1266,7 +1266,7 @@ public uint4 zxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, z, y); } } @@ -1274,7 +1274,7 @@ public uint4 zxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, z, z); } } @@ -1282,7 +1282,7 @@ public uint4 zxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, z, w); } } @@ -1290,7 +1290,7 @@ public uint4 zxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, w, x); } } @@ -1298,9 +1298,9 @@ public uint4 zxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; w = value.z; y = value.w; } } @@ -1308,7 +1308,7 @@ public uint4 zxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, w, z); } } @@ -1316,7 +1316,7 @@ public uint4 zxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, x, w, w); } } @@ -1324,7 +1324,7 @@ public uint4 zxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, x, x); } } @@ -1332,7 +1332,7 @@ public uint4 zyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, x, y); } } @@ -1340,7 +1340,7 @@ public uint4 zyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, x, z); } } @@ -1348,9 +1348,9 @@ public uint4 zyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; x = value.z; w = value.w; } } @@ -1358,7 +1358,7 @@ public uint4 zyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, y, x); } } @@ -1366,7 +1366,7 @@ public uint4 zyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, y, y); } } @@ -1374,7 +1374,7 @@ public uint4 zyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, y, z); } } @@ -1382,7 +1382,7 @@ public uint4 zyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, y, w); } } @@ -1390,7 +1390,7 @@ public uint4 zyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, z, x); } } @@ -1398,7 +1398,7 @@ public uint4 zyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, z, y); } } @@ -1406,7 +1406,7 @@ public uint4 zyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, z, z); } } @@ -1414,7 +1414,7 @@ public uint4 zyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, z, w); } } @@ -1422,9 +1422,9 @@ public uint4 zyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; w = value.z; x = value.w; } } @@ -1432,7 +1432,7 @@ public uint4 zywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, w, y); } } @@ -1440,7 +1440,7 @@ public uint4 zywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, w, z); } } @@ -1448,7 +1448,7 @@ public uint4 zywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, y, w, w); } } @@ -1456,7 +1456,7 @@ public uint4 zyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, x, x); } } @@ -1464,7 +1464,7 @@ public uint4 zzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, x, y); } } @@ -1472,7 +1472,7 @@ public uint4 zzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, x, z); } } @@ -1480,7 +1480,7 @@ public uint4 zzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, x, w); } } @@ -1488,7 +1488,7 @@ public uint4 zzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, y, x); } } @@ -1496,7 +1496,7 @@ public uint4 zzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, y, y); } } @@ -1504,7 +1504,7 @@ public uint4 zzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, y, z); } } @@ -1512,7 +1512,7 @@ public uint4 zzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, y, w); } } @@ -1520,7 +1520,7 @@ public uint4 zzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, z, x); } } @@ -1528,7 +1528,7 @@ public uint4 zzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, z, y); } } @@ -1536,7 +1536,7 @@ public uint4 zzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, z, z); } } @@ -1544,7 +1544,7 @@ public uint4 zzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, z, w); } } @@ -1552,7 +1552,7 @@ public uint4 zzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, w, x); } } @@ -1560,7 +1560,7 @@ public uint4 zzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, w, y); } } @@ -1568,7 +1568,7 @@ public uint4 zzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, w, z); } } @@ -1576,7 +1576,7 @@ public uint4 zzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, z, w, w); } } @@ -1584,7 +1584,7 @@ public uint4 zzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, x, x); } } @@ -1592,9 +1592,9 @@ public uint4 zwxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; x = value.z; y = value.w; } } @@ -1602,7 +1602,7 @@ public uint4 zwxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, x, z); } } @@ -1610,7 +1610,7 @@ public uint4 zwxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, x, w); } } @@ -1618,9 +1618,9 @@ public uint4 zwxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; y = value.z; x = value.w; } } @@ -1628,7 +1628,7 @@ public uint4 zwyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, y, y); } } @@ -1636,7 +1636,7 @@ public uint4 zwyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, y, z); } } @@ -1644,7 +1644,7 @@ public uint4 zwyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, y, w); } } @@ -1652,7 +1652,7 @@ public uint4 zwyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, z, x); } } @@ -1660,7 +1660,7 @@ public uint4 zwzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, z, y); } } @@ -1668,7 +1668,7 @@ public uint4 zwzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, z, z); } } @@ -1676,7 +1676,7 @@ public uint4 zwzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, z, w); } } @@ -1684,7 +1684,7 @@ public uint4 zwzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, w, x); } } @@ -1692,7 +1692,7 @@ public uint4 zwwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, w, y); } } @@ -1700,7 +1700,7 @@ public uint4 zwwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, w, z); } } @@ -1708,7 +1708,7 @@ public uint4 zwwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(z, w, w, w); } } @@ -1716,7 +1716,7 @@ public uint4 zwww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, x, x); } } @@ -1724,7 +1724,7 @@ public uint4 wxxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, x, y); } } @@ -1732,7 +1732,7 @@ public uint4 wxxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, x, z); } } @@ -1740,7 +1740,7 @@ public uint4 wxxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, x, w); } } @@ -1748,7 +1748,7 @@ public uint4 wxxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, y, x); } } @@ -1756,7 +1756,7 @@ public uint4 wxyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, y, y); } } @@ -1764,9 +1764,9 @@ public uint4 wxyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; y = value.z; z = value.w; } } @@ -1774,7 +1774,7 @@ public uint4 wxyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, y, w); } } @@ -1782,7 +1782,7 @@ public uint4 wxyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, z, x); } } @@ -1790,9 +1790,9 @@ public uint4 wxzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; z = value.z; y = value.w; } } @@ -1800,7 +1800,7 @@ public uint4 wxzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, z, z); } } @@ -1808,7 +1808,7 @@ public uint4 wxzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, z, w); } } @@ -1816,7 +1816,7 @@ public uint4 wxzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, w, x); } } @@ -1824,7 +1824,7 @@ public uint4 wxwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, w, y); } } @@ -1832,7 +1832,7 @@ public uint4 wxwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, w, z); } } @@ -1840,7 +1840,7 @@ public uint4 wxwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, x, w, w); } } @@ -1848,7 +1848,7 @@ public uint4 wxww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, x, x); } } @@ -1856,7 +1856,7 @@ public uint4 wyxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, x, y); } } @@ -1864,9 +1864,9 @@ public uint4 wyxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; x = value.z; z = value.w; } } @@ -1874,7 +1874,7 @@ public uint4 wyxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, x, w); } } @@ -1882,7 +1882,7 @@ public uint4 wyxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, y, x); } } @@ -1890,7 +1890,7 @@ public uint4 wyyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, y, y); } } @@ -1898,7 +1898,7 @@ public uint4 wyyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, y, z); } } @@ -1906,7 +1906,7 @@ public uint4 wyyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, y, w); } } @@ -1914,9 +1914,9 @@ public uint4 wyyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; z = value.z; x = value.w; } } @@ -1924,7 +1924,7 @@ public uint4 wyzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, z, y); } } @@ -1932,7 +1932,7 @@ public uint4 wyzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, z, z); } } @@ -1940,7 +1940,7 @@ public uint4 wyzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, z, w); } } @@ -1948,7 +1948,7 @@ public uint4 wyzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, w, x); } } @@ -1956,7 +1956,7 @@ public uint4 wywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, w, y); } } @@ -1964,7 +1964,7 @@ public uint4 wywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, w, z); } } @@ -1972,7 +1972,7 @@ public uint4 wywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, y, w, w); } } @@ -1980,7 +1980,7 @@ public uint4 wyww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, x, x); } } @@ -1988,9 +1988,9 @@ public uint4 wzxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; x = value.z; y = value.w; } } @@ -1998,7 +1998,7 @@ public uint4 wzxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, x, z); } } @@ -2006,7 +2006,7 @@ public uint4 wzxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, x, w); } } @@ -2014,9 +2014,9 @@ public uint4 wzxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; y = value.z; x = value.w; } } @@ -2024,7 +2024,7 @@ public uint4 wzyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, y, y); } } @@ -2032,7 +2032,7 @@ public uint4 wzyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, y, z); } } @@ -2040,7 +2040,7 @@ public uint4 wzyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, y, w); } } @@ -2048,7 +2048,7 @@ public uint4 wzyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, z, x); } } @@ -2056,7 +2056,7 @@ public uint4 wzzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, z, y); } } @@ -2064,7 +2064,7 @@ public uint4 wzzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, z, z); } } @@ -2072,7 +2072,7 @@ public uint4 wzzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, z, w); } } @@ -2080,7 +2080,7 @@ public uint4 wzzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, w, x); } } @@ -2088,7 +2088,7 @@ public uint4 wzwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, w, y); } } @@ -2096,7 +2096,7 @@ public uint4 wzwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, w, z); } } @@ -2104,7 +2104,7 @@ public uint4 wzwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, z, w, w); } } @@ -2112,7 +2112,7 @@ public uint4 wzww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, x, x); } } @@ -2120,7 +2120,7 @@ public uint4 wwxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, x, y); } } @@ -2128,7 +2128,7 @@ public uint4 wwxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, x, z); } } @@ -2136,7 +2136,7 @@ public uint4 wwxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, x, w); } } @@ -2144,7 +2144,7 @@ public uint4 wwxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, y, x); } } @@ -2152,7 +2152,7 @@ public uint4 wwyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, y, y); } } @@ -2160,7 +2160,7 @@ public uint4 wwyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, y, z); } } @@ -2168,7 +2168,7 @@ public uint4 wwyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, y, w); } } @@ -2176,7 +2176,7 @@ public uint4 wwyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, z, x); } } @@ -2184,7 +2184,7 @@ public uint4 wwzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, z, y); } } @@ -2192,7 +2192,7 @@ public uint4 wwzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, z, z); } } @@ -2200,7 +2200,7 @@ public uint4 wwzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, z, w); } } @@ -2208,7 +2208,7 @@ public uint4 wwzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, w, x); } } @@ -2216,7 +2216,7 @@ public uint4 wwwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, w, y); } } @@ -2224,7 +2224,7 @@ public uint4 wwwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, w, z); } } @@ -2232,7 +2232,7 @@ public uint4 wwwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint4(w, w, w, w); } } @@ -2240,7 +2240,7 @@ public uint4 wwww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, x, x); } } @@ -2248,7 +2248,7 @@ public uint3 xxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, x, y); } } @@ -2256,7 +2256,7 @@ public uint3 xxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, x, z); } } @@ -2264,7 +2264,7 @@ public uint3 xxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, x, w); } } @@ -2272,7 +2272,7 @@ public uint3 xxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, y, x); } } @@ -2280,7 +2280,7 @@ public uint3 xyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, y, y); } } @@ -2288,9 +2288,9 @@ public uint3 xyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; z = value.z; } } @@ -2298,9 +2298,9 @@ public uint3 xyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; w = value.z; } } @@ -2308,7 +2308,7 @@ public uint3 xyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, z, x); } } @@ -2316,9 +2316,9 @@ public uint3 xzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; y = value.z; } } @@ -2326,7 +2326,7 @@ public uint3 xzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, z, z); } } @@ -2334,9 +2334,9 @@ public uint3 xzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; w = value.z; } } @@ -2344,7 +2344,7 @@ public uint3 xzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, w, x); } } @@ -2352,9 +2352,9 @@ public uint3 xwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; y = value.z; } } @@ -2362,9 +2362,9 @@ public uint3 xwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; z = value.z; } } @@ -2372,7 +2372,7 @@ public uint3 xwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(x, w, w); } } @@ -2380,7 +2380,7 @@ public uint3 xww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, x, x); } } @@ -2388,7 +2388,7 @@ public uint3 yxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, x, y); } } @@ -2396,9 +2396,9 @@ public uint3 yxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; z = value.z; } } @@ -2406,9 +2406,9 @@ public uint3 yxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; w = value.z; } } @@ -2416,7 +2416,7 @@ public uint3 yxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, y, x); } } @@ -2424,7 +2424,7 @@ public uint3 yyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, y, y); } } @@ -2432,7 +2432,7 @@ public uint3 yyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, y, z); } } @@ -2440,7 +2440,7 @@ public uint3 yyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, y, w); } } @@ -2448,9 +2448,9 @@ public uint3 yyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; x = value.z; } } @@ -2458,7 +2458,7 @@ public uint3 yzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, z, y); } } @@ -2466,7 +2466,7 @@ public uint3 yzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, z, z); } } @@ -2474,9 +2474,9 @@ public uint3 yzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; w = value.z; } } @@ -2484,9 +2484,9 @@ public uint3 yzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 ywx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; x = value.z; } } @@ -2494,7 +2494,7 @@ public uint3 ywx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 ywy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, w, y); } } @@ -2502,9 +2502,9 @@ public uint3 ywy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 ywz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; z = value.z; } } @@ -2512,7 +2512,7 @@ public uint3 ywz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(y, w, w); } } @@ -2520,7 +2520,7 @@ public uint3 yww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, x, x); } } @@ -2528,9 +2528,9 @@ public uint3 zxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; y = value.z; } } @@ -2538,7 +2538,7 @@ public uint3 zxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, x, z); } } @@ -2546,9 +2546,9 @@ public uint3 zxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; w = value.z; } } @@ -2556,9 +2556,9 @@ public uint3 zxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; x = value.z; } } @@ -2566,7 +2566,7 @@ public uint3 zyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, y, y); } } @@ -2574,7 +2574,7 @@ public uint3 zyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, y, z); } } @@ -2582,9 +2582,9 @@ public uint3 zyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; w = value.z; } } @@ -2592,7 +2592,7 @@ public uint3 zyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, z, x); } } @@ -2600,7 +2600,7 @@ public uint3 zzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, z, y); } } @@ -2608,7 +2608,7 @@ public uint3 zzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, z, z); } } @@ -2616,7 +2616,7 @@ public uint3 zzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, z, w); } } @@ -2624,9 +2624,9 @@ public uint3 zzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; x = value.z; } } @@ -2634,9 +2634,9 @@ public uint3 zwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; y = value.z; } } @@ -2644,7 +2644,7 @@ public uint3 zwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, w, z); } } @@ -2652,7 +2652,7 @@ public uint3 zwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(z, w, w); } } @@ -2660,7 +2660,7 @@ public uint3 zww [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wxx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, x, x); } } @@ -2668,9 +2668,9 @@ public uint3 wxx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wxy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; y = value.z; } } @@ -2678,9 +2678,9 @@ public uint3 wxy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wxz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; z = value.z; } } @@ -2688,7 +2688,7 @@ public uint3 wxz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wxw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, x, w); } } @@ -2696,9 +2696,9 @@ public uint3 wxw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wyx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; x = value.z; } } @@ -2706,7 +2706,7 @@ public uint3 wyx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wyy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, y, y); } } @@ -2714,9 +2714,9 @@ public uint3 wyy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wyz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; z = value.z; } } @@ -2724,7 +2724,7 @@ public uint3 wyz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wyw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, y, w); } } @@ -2732,9 +2732,9 @@ public uint3 wyw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wzx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; x = value.z; } } @@ -2742,9 +2742,9 @@ public uint3 wzx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wzy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; y = value.z; } } @@ -2752,7 +2752,7 @@ public uint3 wzy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wzz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, z, z); } } @@ -2760,7 +2760,7 @@ public uint3 wzz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wzw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, z, w); } } @@ -2768,7 +2768,7 @@ public uint3 wzw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wwx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, w, x); } } @@ -2776,7 +2776,7 @@ public uint3 wwx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wwy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, w, y); } } @@ -2784,7 +2784,7 @@ public uint3 wwy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wwz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, w, z); } } @@ -2792,7 +2792,7 @@ public uint3 wwz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 www { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint3(w, w, w); } } @@ -2800,7 +2800,7 @@ public uint3 www [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(x, x); } } @@ -2808,9 +2808,9 @@ public uint2 xx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(x, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; y = value.y; } } @@ -2818,9 +2818,9 @@ public uint2 xy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(x, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; z = value.y; } } @@ -2828,9 +2828,9 @@ public uint2 xz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(x, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { x = value.x; w = value.y; } } @@ -2838,9 +2838,9 @@ public uint2 xw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(y, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; x = value.y; } } @@ -2848,7 +2848,7 @@ public uint2 yx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(y, y); } } @@ -2856,9 +2856,9 @@ public uint2 yy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(y, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; z = value.y; } } @@ -2866,9 +2866,9 @@ public uint2 yz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(y, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { y = value.x; w = value.y; } } @@ -2876,9 +2876,9 @@ public uint2 yw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 zx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(z, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; x = value.y; } } @@ -2886,9 +2886,9 @@ public uint2 zx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 zy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(z, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; y = value.y; } } @@ -2896,7 +2896,7 @@ public uint2 zy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 zz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(z, z); } } @@ -2904,9 +2904,9 @@ public uint2 zz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 zw { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(z, w); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { z = value.x; w = value.y; } } @@ -2914,9 +2914,9 @@ public uint2 zw [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 wx { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(w, x); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; x = value.y; } } @@ -2924,9 +2924,9 @@ public uint2 wx [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 wy { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(w, y); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; y = value.y; } } @@ -2934,9 +2934,9 @@ public uint2 wy [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 wz { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(w, z); } - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] set { w = value.x; z = value.y; } } @@ -2944,7 +2944,7 @@ public uint2 wz [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 ww { - [MethodImpl(0x100)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] get { return new uint2(w, w); } } From 53cd4bfac4acd1be08382e66a2e0526f645d97a5 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Tue, 29 May 2018 10:25:15 +0200 Subject: [PATCH 006/437] Procedurally generate constructors for all vector types. Introduced static constructors for vector types so they can be constructed without explicitly using new. --- .../VectorGenerator.cs | 128 +++++++++++++++++- src/Unity.Mathematics/bool2.cs | 9 +- src/Unity.Mathematics/bool2.gen.cs | 25 ++++ src/Unity.Mathematics/bool3.cs | 16 --- src/Unity.Mathematics/bool3.gen.cs | 49 +++++++ src/Unity.Mathematics/bool4.cs | 19 +-- src/Unity.Mathematics/bool4.gen.cs | 101 ++++++++++++++ src/Unity.Mathematics/float2.cs | 8 +- src/Unity.Mathematics/float2.gen.cs | 25 ++++ src/Unity.Mathematics/float3.cs | 28 +--- src/Unity.Mathematics/float3.gen.cs | 49 +++++++ src/Unity.Mathematics/float4.cs | 74 ---------- src/Unity.Mathematics/float4.gen.cs | 101 ++++++++++++++ src/Unity.Mathematics/int2.cs | 9 +- src/Unity.Mathematics/int2.gen.cs | 25 ++++ src/Unity.Mathematics/int3.cs | 18 +-- src/Unity.Mathematics/int3.gen.cs | 49 +++++++ src/Unity.Mathematics/int4.cs | 17 +-- src/Unity.Mathematics/int4.gen.cs | 101 ++++++++++++++ src/Unity.Mathematics/uint2.cs | 11 +- src/Unity.Mathematics/uint2.gen.cs | 25 ++++ src/Unity.Mathematics/uint3.cs | 20 +-- src/Unity.Mathematics/uint3.gen.cs | 49 +++++++ src/Unity.Mathematics/uint4.cs | 15 +- src/Unity.Mathematics/uint4.gen.cs | 101 ++++++++++++++ 25 files changed, 838 insertions(+), 234 deletions(-) diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index f025808a..e53badec 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -74,7 +74,8 @@ public static void Write(string dir) public void Generate(int count, StringBuilder str) - { + { + StringBuilder staticConstructorStr = new StringBuilder(); str.Append("// GENERATED CODE\n"); str.Append("using System.Runtime.CompilerServices;\n"); str.Append("#pragma warning disable 0660, 0661\n"); @@ -82,14 +83,129 @@ public void Generate(int count, StringBuilder str) str.Append("{\n"); str.AppendFormat("\tpublic partial struct {0} : System.IEquatable<{0}>\n", m_Types[count - 1]); str.Append("\t{\n"); - + + GenerateConstructors(count, str, staticConstructorStr); GenerateOperators(count, str); GenerateSwizzles(count, str); - str.Append("\t}\n"); - str.Append("}\n"); - } - + str.Append("\t}\n\n"); + + str.Append("\tpublic static partial class math\n"); + str.Append("\t{\n"); + str.Append(staticConstructorStr); + str.Append("\t}\n}\n"); + } + + private string GenerateComponentRangeString(int componentIndex, int numComponents) + { + string result = ""; + for(int i = 0; i < numComponents; i++) + { + result += fields[componentIndex + i]; + } + return result; + } + + // Generate constructor and static constructor with a given component partitioning of input parameters + private void GenerateConstructor(int numComponents, int numParameters, int[] parameterComponents, StringBuilder constructorStr, StringBuilder staticConstructorStr) + { + // Generate signatures + string typeName = m_Types[numComponents - 1]; + constructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); + constructorStr.Append("\t\tpublic "); + constructorStr.Append(typeName); + constructorStr.Append("("); + staticConstructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); + staticConstructorStr.Append("\t\tpublic static "); + staticConstructorStr.Append(typeName); + staticConstructorStr.Append(" "); + staticConstructorStr.Append(typeName); + staticConstructorStr.Append("("); + + int componentIndex = 0; + for (int i = 0; i < numParameters; i++) + { + if (i != 0) + { + constructorStr.Append(", "); + staticConstructorStr.Append(", "); + } + + + int paramComponents = parameterComponents[i]; + string paramType = m_Types[paramComponents - 1]; + string componentString = GenerateComponentRangeString(componentIndex, paramComponents); + + constructorStr.Append(paramType); + constructorStr.Append(" "); + constructorStr.Append(componentString); + staticConstructorStr.Append(paramType); + staticConstructorStr.Append(" "); + staticConstructorStr.Append(componentString); + componentIndex += paramComponents; + } + constructorStr.Append(")\n"); + staticConstructorStr.Append(")"); + + // Generate function bodies + constructorStr.Append("\t\t{ "); + staticConstructorStr.Append(" { return "); + staticConstructorStr.Append(typeName); + staticConstructorStr.Append("("); + + componentIndex = 0; + for (int i = 0; i < numParameters; i++) + { + int paramComponents = parameterComponents[i]; + string componentString = GenerateComponentRangeString(componentIndex, paramComponents); + for (int j = 0; j < paramComponents; j++) + { + constructorStr.Append("\n\t\t\tthis."); + constructorStr.Append(fields[componentIndex]); + constructorStr.Append(" = "); + constructorStr.Append(componentString); + if (paramComponents > 1) + { + constructorStr.Append("."); + constructorStr.Append(fields[j]); + } + constructorStr.Append(";"); + componentIndex++; + } + + if (i != 0) + { + staticConstructorStr.Append(", "); + } + staticConstructorStr.Append(componentString); + } + + constructorStr.Append("\n\t\t}\n\n"); + staticConstructorStr.Append("); }\n\n"); + } + + // Recursively generate all constructor variants with every possibly partition or the components + private void GenerateConstructors(int numRemainingComponents, int numComponents, int numParameters, int[] parameterComponents, StringBuilder constructorStr, StringBuilder staticConstructorStr) + { + if (numRemainingComponents == 0) + { + GenerateConstructor(numComponents, numParameters, parameterComponents, constructorStr, staticConstructorStr); + } + + for(int i = 1; i <= numRemainingComponents; i++) + { + parameterComponents[numParameters] = i; + GenerateConstructors(numRemainingComponents - i, numComponents, numParameters + 1, parameterComponents, constructorStr, staticConstructorStr); + } + } + + public void GenerateConstructors(int count, StringBuilder constructorStr, StringBuilder staticConstructorStr) + { + constructorStr.Append("\t\t// constructors\n"); + int[] parameterComponenets = new int[4]; + GenerateConstructors(count, count, 0, parameterComponenets, constructorStr, staticConstructorStr); + } + public void GenerateOperators(int count, StringBuilder str) { string resultType = m_Types[count - 1]; diff --git a/src/Unity.Mathematics/bool2.cs b/src/Unity.Mathematics/bool2.cs index e7d22479..baa53a74 100644 --- a/src/Unity.Mathematics/bool2.cs +++ b/src/Unity.Mathematics/bool2.cs @@ -31,14 +31,7 @@ public bool2(bool val) { x = y = val; } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2(bool x, bool y) - { - this.x = x; - this.y = y; - } - + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool2(bool d) { diff --git a/src/Unity.Mathematics/bool2.gen.cs b/src/Unity.Mathematics/bool2.gen.cs index defa6578..a2dd7aeb 100644 --- a/src/Unity.Mathematics/bool2.gen.cs +++ b/src/Unity.Mathematics/bool2.gen.cs @@ -5,6 +5,21 @@ namespace Unity.Mathematics { public partial struct bool2 : System.IEquatable { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool2(bool x, bool y) + { + this.x = x; + this.y = y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool2(bool2 xy) + { + this.x = xy.x; + this.y = xy.y; + } + // equal [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -299,4 +314,14 @@ public bool2 yy } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 bool2(bool x, bool y) { return bool2(x, y); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 bool2(bool2 xy) { return bool2(xy); } + + } } diff --git a/src/Unity.Mathematics/bool3.cs b/src/Unity.Mathematics/bool3.cs index 2ba827c5..6f81d037 100644 --- a/src/Unity.Mathematics/bool3.cs +++ b/src/Unity.Mathematics/bool3.cs @@ -33,22 +33,6 @@ public DebuggerProxy(bool3 vec) [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3(bool val) { x = y = z = val; } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3(bool x, bool y, bool z) - { - this.x = x; - this.y = y; - this.z = z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3(bool2 xy, bool z) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool3(bool d) { diff --git a/src/Unity.Mathematics/bool3.gen.cs b/src/Unity.Mathematics/bool3.gen.cs index 77ea9f95..70e63468 100644 --- a/src/Unity.Mathematics/bool3.gen.cs +++ b/src/Unity.Mathematics/bool3.gen.cs @@ -5,6 +5,39 @@ namespace Unity.Mathematics { public partial struct bool3 : System.IEquatable { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool3(bool x, bool y, bool z) + { + this.x = x; + this.y = y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool3(bool x, bool2 yz) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool3(bool2 xy, bool z) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool3(bool3 xyz) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + } + // equal [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -1031,4 +1064,20 @@ public bool2 zz } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 bool3(bool x, bool y, bool z) { return bool3(x, y, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 bool3(bool x, bool2 yz) { return bool3(x, yz); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 bool3(bool2 xy, bool z) { return bool3(xy, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 bool3(bool3 xyz) { return bool3(xyz); } + + } } diff --git a/src/Unity.Mathematics/bool4.cs b/src/Unity.Mathematics/bool4.cs index b8926c67..503136aa 100644 --- a/src/Unity.Mathematics/bool4.cs +++ b/src/Unity.Mathematics/bool4.cs @@ -33,28 +33,13 @@ public DebuggerProxy(bool4 vec) public bool z; [MarshalAs(UnmanagedType.U1)] public bool w; - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool x, bool y, bool z, bool w) - { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4(bool val) { x = y = z = w = val; } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool3 xyz, bool w) - { - x = xyz.x; y = xyz.y; z = xyz.z; this.w = w; - } - + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool4(bool d) { diff --git a/src/Unity.Mathematics/bool4.gen.cs b/src/Unity.Mathematics/bool4.gen.cs index b0be51c1..5903818e 100644 --- a/src/Unity.Mathematics/bool4.gen.cs +++ b/src/Unity.Mathematics/bool4.gen.cs @@ -5,6 +5,79 @@ namespace Unity.Mathematics { public partial struct bool4 : System.IEquatable { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool x, bool y, bool z, bool w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool x, bool y, bool2 zw) + { + this.x = x; + this.y = y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool x, bool2 yz, bool w) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool x, bool3 yzw) + { + this.x = x; + this.y = yzw.x; + this.z = yzw.y; + this.w = yzw.z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool2 xy, bool z, bool w) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool2 xy, bool2 zw) + { + this.x = xy.x; + this.y = xy.y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool3 xyz, bool w) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool4 xyzw) + { + this.x = xyzw.x; + this.y = xyzw.y; + this.z = xyzw.z; + this.w = xyzw.w; + } + // equal [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -2879,4 +2952,32 @@ public bool2 ww } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool x, bool y, bool z, bool w) { return bool4(x, y, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool x, bool y, bool2 zw) { return bool4(x, y, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool x, bool2 yz, bool w) { return bool4(x, yz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool x, bool3 yzw) { return bool4(x, yzw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool2 xy, bool z, bool w) { return bool4(xy, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool2 xy, bool2 zw) { return bool4(xy, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool3 xyz, bool w) { return bool4(xyz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool4 xyzw) { return bool4(xyzw); } + + } } diff --git a/src/Unity.Mathematics/float2.cs b/src/Unity.Mathematics/float2.cs index 335df640..409af7ba 100644 --- a/src/Unity.Mathematics/float2.cs +++ b/src/Unity.Mathematics/float2.cs @@ -24,13 +24,7 @@ public DebuggerProxy(float2 vec) public float x; public float y; - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(float x, float y) - { - this.x = x; - this.y = y; - } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(float val) { x = y = val; } diff --git a/src/Unity.Mathematics/float2.gen.cs b/src/Unity.Mathematics/float2.gen.cs index 6e37f210..49e16a3e 100644 --- a/src/Unity.Mathematics/float2.gen.cs +++ b/src/Unity.Mathematics/float2.gen.cs @@ -5,6 +5,21 @@ namespace Unity.Mathematics { public partial struct float2 : System.IEquatable { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float2(float x, float y) + { + this.x = x; + this.y = y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float2(float2 xy) + { + this.x = xy.x; + this.y = xy.y; + } + // mul [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -341,4 +356,14 @@ public float2 yy } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 float2(float x, float y) { return float2(x, y); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 float2(float2 xy) { return float2(xy); } + + } } diff --git a/src/Unity.Mathematics/float3.cs b/src/Unity.Mathematics/float3.cs index 2b82c53f..76d4dc47 100644 --- a/src/Unity.Mathematics/float3.cs +++ b/src/Unity.Mathematics/float3.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Runtime.CompilerServices; using System.Diagnostics; @@ -26,33 +26,9 @@ public DebuggerProxy(float3 vec) public float x; public float y; public float z; - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(float x, float y, float z) - { - this.x = x; - this.y = y; - this.z = z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(float val) { x = y = z = val; } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(float2 xy, float z) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(float x, float2 yz) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - } + public float3(float val) { x = y = z = val; } [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(int val) { x = y = z = val; } diff --git a/src/Unity.Mathematics/float3.gen.cs b/src/Unity.Mathematics/float3.gen.cs index 53671527..0b290cf2 100644 --- a/src/Unity.Mathematics/float3.gen.cs +++ b/src/Unity.Mathematics/float3.gen.cs @@ -5,6 +5,39 @@ namespace Unity.Mathematics { public partial struct float3 : System.IEquatable { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float3(float x, float y, float z) + { + this.x = x; + this.y = y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float3(float x, float2 yz) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float3(float2 xy, float z) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float3(float3 xyz) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + } + // mul [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -1073,4 +1106,20 @@ public float2 zz } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 float3(float x, float y, float z) { return float3(x, y, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 float3(float x, float2 yz) { return float3(x, yz); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 float3(float2 xy, float z) { return float3(xy, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 float3(float3 xyz) { return float3(xyz); } + + } } diff --git a/src/Unity.Mathematics/float4.cs b/src/Unity.Mathematics/float4.cs index 759a225d..4dd80ceb 100644 --- a/src/Unity.Mathematics/float4.cs +++ b/src/Unity.Mathematics/float4.cs @@ -32,83 +32,9 @@ public DebuggerProxy(float4 vec) public float z; public float w; - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float4 xyzw) - { - this.x = xyzw.x; - this.y = xyzw.y; - this.z = xyzw.z; - this.w = xyzw.w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float x, float y, float z, float w) - { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - - [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float val) { x = y = z = w = val; } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float2 xy, float2 zw) - { - this.x = xy.x; - this.y = xy.y; - this.z = zw.x; - this.w = zw.y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float2 xy, float z, float w) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float x, float2 yz, float w) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float x, float3 yzw) - { - this.x = x; - this.y = yzw.x; - this.z = yzw.y; - this.w = yzw.z; - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float x, float y, float2 zw) - { - this.x = x; - this.y = y; - this.z = zw.x; - this.w = zw.y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float3 xyz, float w) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - this.w = w; - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(int val) { x = y = z = w = val; } diff --git a/src/Unity.Mathematics/float4.gen.cs b/src/Unity.Mathematics/float4.gen.cs index 2f946b4b..70610007 100644 --- a/src/Unity.Mathematics/float4.gen.cs +++ b/src/Unity.Mathematics/float4.gen.cs @@ -5,6 +5,79 @@ namespace Unity.Mathematics { public partial struct float4 : System.IEquatable { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float x, float y, float z, float w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float x, float y, float2 zw) + { + this.x = x; + this.y = y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float x, float2 yz, float w) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float x, float3 yzw) + { + this.x = x; + this.y = yzw.x; + this.z = yzw.y; + this.w = yzw.z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float2 xy, float z, float w) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float2 xy, float2 zw) + { + this.x = xy.x; + this.y = xy.y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float3 xyz, float w) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float4 xyzw) + { + this.x = xyzw.x; + this.y = xyzw.y; + this.z = xyzw.z; + this.w = xyzw.w; + } + // mul [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -2921,4 +2994,32 @@ public float2 ww } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float x, float y, float z, float w) { return float4(x, y, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float x, float y, float2 zw) { return float4(x, y, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float x, float2 yz, float w) { return float4(x, yz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float x, float3 yzw) { return float4(x, yzw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float2 xy, float z, float w) { return float4(xy, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float2 xy, float2 zw) { return float4(xy, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float3 xyz, float w) { return float4(xyz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float4 xyzw) { return float4(xyzw); } + + } } diff --git a/src/Unity.Mathematics/int2.cs b/src/Unity.Mathematics/int2.cs index e8f46751..e111c1d7 100644 --- a/src/Unity.Mathematics/int2.cs +++ b/src/Unity.Mathematics/int2.cs @@ -1,4 +1,4 @@ -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; using System.Diagnostics; #pragma warning disable 0660, 0661 @@ -27,13 +27,6 @@ public DebuggerProxy(int2 vec) [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(int val) { x = y = val; } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2(int x, int y) - { - this.x = x; - this.y = y; - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(float2 val) { diff --git a/src/Unity.Mathematics/int2.gen.cs b/src/Unity.Mathematics/int2.gen.cs index 5f962a0b..e85d927f 100644 --- a/src/Unity.Mathematics/int2.gen.cs +++ b/src/Unity.Mathematics/int2.gen.cs @@ -5,6 +5,21 @@ namespace Unity.Mathematics { public partial struct int2 : System.IEquatable { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int2(int x, int y) + { + this.x = x; + this.y = y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int2(int2 xy) + { + this.x = xy.x; + this.y = xy.y; + } + // mul [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -376,4 +391,14 @@ public int2 yy } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 int2(int x, int y) { return int2(x, y); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 int2(int2 xy) { return int2(xy); } + + } } diff --git a/src/Unity.Mathematics/int3.cs b/src/Unity.Mathematics/int3.cs index a3edb034..bb5575f3 100644 --- a/src/Unity.Mathematics/int3.cs +++ b/src/Unity.Mathematics/int3.cs @@ -1,4 +1,4 @@ -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; using System.Diagnostics; #pragma warning disable 0660, 0661 @@ -30,22 +30,6 @@ public DebuggerProxy(int3 vec) [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(int val) { x = y = z = val; } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(int x, int y, int z) - { - this.x = x; - this.y = y; - this.z = z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(int2 xy, int z) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(float3 val) { diff --git a/src/Unity.Mathematics/int3.gen.cs b/src/Unity.Mathematics/int3.gen.cs index c8ea47a3..022f5084 100644 --- a/src/Unity.Mathematics/int3.gen.cs +++ b/src/Unity.Mathematics/int3.gen.cs @@ -5,6 +5,39 @@ namespace Unity.Mathematics { public partial struct int3 : System.IEquatable { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int3(int x, int y, int z) + { + this.x = x; + this.y = y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int3(int x, int2 yz) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int3(int2 xy, int z) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int3(int3 xyz) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + } + // mul [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -1108,4 +1141,20 @@ public int2 zz } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 int3(int x, int y, int z) { return int3(x, y, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 int3(int x, int2 yz) { return int3(x, yz); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 int3(int2 xy, int z) { return int3(xy, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 int3(int3 xyz) { return int3(xyz); } + + } } diff --git a/src/Unity.Mathematics/int4.cs b/src/Unity.Mathematics/int4.cs index 063178c5..71c7a1f8 100644 --- a/src/Unity.Mathematics/int4.cs +++ b/src/Unity.Mathematics/int4.cs @@ -1,4 +1,4 @@ -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; using System.Diagnostics; #pragma warning disable 0660, 0661 @@ -31,19 +31,8 @@ public DebuggerProxy(int4 vec) public int w; [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int x, int y, int z, int w) - { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int val) { x = y = z = w = val; } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int3 xyz, int w) { this.x = xyz.x; this.y = xyz.y; this.z = xyz.z; this.w = w; } - + public int4(int val) { x = y = z = w = val; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(float4 val) { x = (int)val.x; y = (int)val.y; z = (int)val.z; w = (int)val.w; } diff --git a/src/Unity.Mathematics/int4.gen.cs b/src/Unity.Mathematics/int4.gen.cs index 99ccc52a..6996585f 100644 --- a/src/Unity.Mathematics/int4.gen.cs +++ b/src/Unity.Mathematics/int4.gen.cs @@ -5,6 +5,79 @@ namespace Unity.Mathematics { public partial struct int4 : System.IEquatable { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int x, int y, int z, int w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int x, int y, int2 zw) + { + this.x = x; + this.y = y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int x, int2 yz, int w) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int x, int3 yzw) + { + this.x = x; + this.y = yzw.x; + this.z = yzw.y; + this.w = yzw.z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int2 xy, int z, int w) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int2 xy, int2 zw) + { + this.x = xy.x; + this.y = xy.y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int3 xyz, int w) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int4 xyzw) + { + this.x = xyzw.x; + this.y = xyzw.y; + this.z = xyzw.z; + this.w = xyzw.w; + } + // mul [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -2956,4 +3029,32 @@ public int2 ww } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int x, int y, int z, int w) { return int4(x, y, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int x, int y, int2 zw) { return int4(x, y, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int x, int2 yz, int w) { return int4(x, yz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int x, int3 yzw) { return int4(x, yzw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int2 xy, int z, int w) { return int4(xy, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int2 xy, int2 zw) { return int4(xy, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int3 xyz, int w) { return int4(xyz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int4 xyzw) { return int4(xyzw); } + + } } diff --git a/src/Unity.Mathematics/uint2.cs b/src/Unity.Mathematics/uint2.cs index 21ce7ea6..18afd120 100644 --- a/src/Unity.Mathematics/uint2.cs +++ b/src/Unity.Mathematics/uint2.cs @@ -1,4 +1,4 @@ -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; using System.Diagnostics; #pragma warning disable 0660, 0661 @@ -26,14 +26,7 @@ public DebuggerProxy(uint2 vec) [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(uint val) { x = y = val; } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2(uint x, uint y) - { - this.x = x; - this.y = y; - } - + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(int2 val) { diff --git a/src/Unity.Mathematics/uint2.gen.cs b/src/Unity.Mathematics/uint2.gen.cs index 9b0562c1..ff2742ed 100644 --- a/src/Unity.Mathematics/uint2.gen.cs +++ b/src/Unity.Mathematics/uint2.gen.cs @@ -5,6 +5,21 @@ namespace Unity.Mathematics { public partial struct uint2 : System.IEquatable { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint2(uint x, uint y) + { + this.x = x; + this.y = y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint2(uint2 xy) + { + this.x = xy.x; + this.y = xy.y; + } + // mul [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -370,4 +385,14 @@ public uint2 yy } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 uint2(uint x, uint y) { return uint2(x, y); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 uint2(uint2 xy) { return uint2(xy); } + + } } diff --git a/src/Unity.Mathematics/uint3.cs b/src/Unity.Mathematics/uint3.cs index a535219f..a71f7167 100644 --- a/src/Unity.Mathematics/uint3.cs +++ b/src/Unity.Mathematics/uint3.cs @@ -1,4 +1,4 @@ -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; using System.Diagnostics; #pragma warning disable 0660, 0661 @@ -29,23 +29,7 @@ public DebuggerProxy(uint3 vec) [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(uint val) { x = y = z = val; } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(uint x, uint y, uint z) - { - this.x = x; - this.y = y; - this.z = z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(uint2 xy, uint z) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - } - + [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(float3 val) { diff --git a/src/Unity.Mathematics/uint3.gen.cs b/src/Unity.Mathematics/uint3.gen.cs index ad7861b6..760da870 100644 --- a/src/Unity.Mathematics/uint3.gen.cs +++ b/src/Unity.Mathematics/uint3.gen.cs @@ -5,6 +5,39 @@ namespace Unity.Mathematics { public partial struct uint3 : System.IEquatable { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint3(uint x, uint y, uint z) + { + this.x = x; + this.y = y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint3(uint x, uint2 yz) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint3(uint2 xy, uint z) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint3(uint3 xyz) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + } + // mul [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -1102,4 +1135,20 @@ public uint2 zz } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 uint3(uint x, uint y, uint z) { return uint3(x, y, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 uint3(uint x, uint2 yz) { return uint3(x, yz); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 uint3(uint2 xy, uint z) { return uint3(xy, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 uint3(uint3 xyz) { return uint3(xyz); } + + } } diff --git a/src/Unity.Mathematics/uint4.cs b/src/Unity.Mathematics/uint4.cs index 7f596e8b..8e002720 100644 --- a/src/Unity.Mathematics/uint4.cs +++ b/src/Unity.Mathematics/uint4.cs @@ -1,4 +1,4 @@ -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; using System.Diagnostics; #pragma warning disable 0660, 0661 @@ -30,21 +30,8 @@ public DebuggerProxy(uint4 vec) public uint z; public uint w; - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint x, uint y, uint z, uint w) - { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(uint val) { x = y = z = w = val; } - - // FIXME - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint3 xyz, uint w) { this.x = xyz.x; this.y = xyz.y; this.z = xyz.z; this.w = w; } [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(int4 val) { x = (uint)val.x; y = (uint)val.y; z = (uint)val.z; w = (uint)val.w; } diff --git a/src/Unity.Mathematics/uint4.gen.cs b/src/Unity.Mathematics/uint4.gen.cs index a6244deb..54d38aa4 100644 --- a/src/Unity.Mathematics/uint4.gen.cs +++ b/src/Unity.Mathematics/uint4.gen.cs @@ -5,6 +5,79 @@ namespace Unity.Mathematics { public partial struct uint4 : System.IEquatable { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint x, uint y, uint z, uint w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint x, uint y, uint2 zw) + { + this.x = x; + this.y = y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint x, uint2 yz, uint w) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint x, uint3 yzw) + { + this.x = x; + this.y = yzw.x; + this.z = yzw.y; + this.w = yzw.z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint2 xy, uint z, uint w) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint2 xy, uint2 zw) + { + this.x = xy.x; + this.y = xy.y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint3 xyz, uint w) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint4 xyzw) + { + this.x = xyzw.x; + this.y = xyzw.y; + this.z = xyzw.z; + this.w = xyzw.w; + } + // mul [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -2950,4 +3023,32 @@ public uint2 ww } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint x, uint y, uint z, uint w) { return uint4(x, y, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint x, uint y, uint2 zw) { return uint4(x, y, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint x, uint2 yz, uint w) { return uint4(x, yz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint x, uint3 yzw) { return uint4(x, yzw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint2 xy, uint z, uint w) { return uint4(xy, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint2 xy, uint2 zw) { return uint4(xy, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint3 xyz, uint w) { return uint4(xyz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint4 xyzw) { return uint4(xyzw); } + + } } From 5d2fa6687d008f9f538df553d9168bb6873197d7 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Wed, 30 May 2018 10:55:10 +0200 Subject: [PATCH 007/437] Renamed matrix columns from m0, m1, m2, m3 to c0, c1, c2, c3 Fixed float2x2, float3x3 and float4x4 scalar constructors so they now actually initialize as row data as reflected in the argument names. Added tests for matrix 2x2, 3x3 and 4x4 matrix multiplication Updated readme.md to use 'float3(...)' syntax instead of 'new float3(...)' --- readme.md | 4 +- src/Unity.Mathematics.Tests/TestMatrix.cs | 95 ++++++++ .../Unity.Mathematics.Tests.csproj | 131 +++++------ src/Unity.Mathematics/mathquat.cs | 16 +- src/Unity.Mathematics/matrix.cs | 214 +++++++++++------- 5 files changed, 299 insertions(+), 161 deletions(-) create mode 100644 src/Unity.Mathematics.Tests/TestMatrix.cs diff --git a/readme.md b/readme.md index e36492bb..d2cc0ab8 100644 --- a/readme.md +++ b/readme.md @@ -16,8 +16,8 @@ You can use this library in your Unity game by using the Package Manager and ref using Unity.Mathematics; using static Unity.Mathematics.math; -var v1 = new float3(1,2,3); -var v2 = new float3(4,5,6); +var v1 = float3(1,2,3); +var v2 = float3(4,5,6); v1 = normalize(v1); v2 = normalize(v2); var v3 = dot(v1, v2); diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs new file mode 100644 index 00000000..5b7bd0e2 --- /dev/null +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using NUnit.Framework; +using static Unity.Mathematics.math; + +namespace Unity.Mathematics.Tests +{ + [TestFixture] + class TestMatrix + { + [Test] + public void float2x2_matrix_mul() + { + // http://www.wolframalpha.com/input/?i=%5B%5B1,2%5D,%5B3,4%5D%5D*%5B%5B21,22%5D,%5B23,24%5D%5D + float2x2 a = float2x2( 1.0f, 2.0f, + 3.0f, 4.0f); + + float2x2 b = float2x2( 21.0f, 22.0f, + 23.0f, 24.0f); + + float2x2 c = mul(a, b); + Assert.AreEqual(c.c0.x, 67.0f); + Assert.AreEqual(c.c1.x, 70.0f); + + Assert.AreEqual(c.c0.y, 155.0f); + Assert.AreEqual(c.c1.y, 162.0f); + } + + [Test] + public void float3x3_matrix_mul() + { + // http://www.wolframalpha.com/input/?i=%5B%5B1,2,3%5D,%5B4,5,6%5D,%5B7,8,9%5D%5D*%5B%5B21,22,23%5D,%5B24,25,26%5D,%5B27,28,29%5D%5D + float3x3 a = float3x3( 1.0f, 2.0f, 3.0f, + 4.0f, 5.0f, 6.0f, + 7.0f, 8.0f, 9.0f); + + float3x3 b = float3x3( 21.0f, 22.0f, 23.0f, + 24.0f, 25.0f, 26.0f, + 27.0f, 28.0f, 29.0f); + + float3x3 c = mul(a, b); + Assert.AreEqual(c.c0.x, 150.0f); + Assert.AreEqual(c.c1.x, 156.0f); + Assert.AreEqual(c.c2.x, 162.0f); + + Assert.AreEqual(c.c0.y, 366.0f); + Assert.AreEqual(c.c1.y, 381.0f); + Assert.AreEqual(c.c2.y, 396.0f); + + Assert.AreEqual(c.c0.z, 582.0f); + Assert.AreEqual(c.c1.z, 606.0f); + Assert.AreEqual(c.c2.z, 630.0f); + } + + [Test] + public void float4x4_matrix_mul() + { + // https://fogbugz.unity3d.com/f/cases/1041176/ + // http://www.wolframalpha.com/input/?i=%5B%5B1,2,3,4%5D,%5B5,6,7,8%5D,%5B9,10,11,12%5D,%5B13,14,15,16%5D%5D*%5B%5B21,22,23,24%5D,%5B25,26,27,28%5D,%5B29,30,31,32%5D,%5B33,34,35,36%5D%5D + float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, + 5.0f, 6.0f, 7.0f, 8.0f, + 9.0f,10.0f,11.0f,12.0f, + 13.0f,14.0f,15.0f,16.0f); + + float4x4 b = float4x4( 21.0f,22.0f,23.0f,24.0f, + 25.0f,26.0f,27.0f,28.0f, + 29.0f,30.0f,31.0f,32.0f, + 33.0f,34.0f,35.0f,36.0f); + + float4x4 c = mul(a, b); + Assert.AreEqual(c.c0.x, 290.0f); + Assert.AreEqual(c.c1.x, 300.0f); + Assert.AreEqual(c.c2.x, 310.0f); + Assert.AreEqual(c.c3.x, 320.0f); + + Assert.AreEqual(c.c0.y, 722.0f); + Assert.AreEqual(c.c1.y, 748.0f); + Assert.AreEqual(c.c2.y, 774.0f); + Assert.AreEqual(c.c3.y, 800.0f); + + Assert.AreEqual(c.c0.z, 1154.0f); + Assert.AreEqual(c.c1.z, 1196.0f); + Assert.AreEqual(c.c2.z, 1238.0f); + Assert.AreEqual(c.c3.z, 1280.0f); + + Assert.AreEqual(c.c0.w, 1586.0f); + Assert.AreEqual(c.c1.w, 1644.0f); + Assert.AreEqual(c.c2.w, 1702.0f); + Assert.AreEqual(c.c3.w, 1760.0f); + } + } +} diff --git a/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj b/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj index 8051c253..20b0928f 100644 --- a/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj +++ b/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj @@ -1,72 +1,73 @@ - - - - - Debug - AnyCPU - {2E7C74D3-42F1-482F-8BB7-E199D9E3B412} - Library - Properties - Unity.Mathematics.Tests - Unity.Mathematics.Tests - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\NUnit.3.8.1\lib\net45\nunit.framework.dll - True - - - - - - - - - - - - - - - - - - - - - - {19810344-7387-4155-935f-bdd5cc61f0bf} - Unity.Mathematics - - - - - - + + + + + Debug + AnyCPU + {2E7C74D3-42F1-482F-8BB7-E199D9E3B412} + Library + Properties + Unity.Mathematics.Tests + Unity.Mathematics.Tests + v4.5.2 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\NUnit.3.8.1\lib\net45\nunit.framework.dll + True + + + + + + + + + + + + + + + + + + + + + + + {19810344-7387-4155-935f-bdd5cc61f0bf} + Unity.Mathematics + + + + + + + --> \ No newline at end of file diff --git a/src/Unity.Mathematics/mathquat.cs b/src/Unity.Mathematics/mathquat.cs index 8aecca71..04ecdc9e 100644 --- a/src/Unity.Mathematics/mathquat.cs +++ b/src/Unity.Mathematics/mathquat.cs @@ -1,4 +1,4 @@ -using System; +using System; using Unity.Mathematics.Experimental; namespace Unity.Mathematics @@ -105,9 +105,9 @@ public static float3x3 quatToMatrix(quaternion q) // Calculate 3x3 matrix from orthonormal basis var m = new float3x3 { - m0 = new float3(1.0f - (yy + zz), xy + wz, xz - wy), - m1 = new float3(xy - wz, 1.0f - (xx + zz), yz + wx), - m2 = new float3(xz + wy, yz - wx, 1.0f - (xx + yy)) + c0 = new float3(1.0f - (yy + zz), xy + wz, xz - wy), + c1 = new float3(xy - wz, 1.0f - (xx + zz), yz + wx), + c2 = new float3(xz + wy, yz - wx, 1.0f - (xx + yy)) }; return m; } @@ -117,10 +117,10 @@ public static float4x4 rottrans(quaternion q, float3 t) var m3x3 = quatToMatrix(q); var m = new float4x4 { - m0 = new float4(m3x3.m0, 0.0f), - m1 = new float4(m3x3.m1, 0.0f), - m2 = new float4(m3x3.m2, 0.0f), - m3 = new float4(t, 1.0f) + c0 = new float4(m3x3.c0, 0.0f), + c1 = new float4(m3x3.c1, 0.0f), + c2 = new float4(m3x3.c2, 0.0f), + c3 = new float4(t, 1.0f) }; return m; } diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index e2619b07..89ad5fcf 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -1,169 +1,211 @@ namespace Unity.Mathematics { - public partial struct float4x4 - { - public float4 m0; - public float4 m1; - public float4 m2; - public float4 m3; - - public float4x4(float4 m0, float4 m1, float4 m2, float4 m3) - { - this.m0 = m0; - this.m1 = m1; - this.m2 = m2; - this.m3 = m3; - } - - public float4x4(float m00, float m01, float m02, float m03, - float m10, float m11, float m12, float m13, - float m20, float m21, float m22, float m23, - float m30, float m31, float m32, float m33) - { - this.m0 = new float4(m00, m01, m02, m03); - this.m1 = new float4(m10, m11, m12, m13); - this.m2 = new float4(m20, m21, m22, m23); - this.m3 = new float4(m30, m31, m32, m33); - } - - public static float4x4 operator *(float4x4 mat, float s) - { - return new float4x4(mat.m0 * s, mat.m1 * s, mat.m2 * s, mat.m3 * s); - } - - public static float4x4 identity => new float4x4 - { - m0 = new float4(1.0f, 0.0f, 0.0f, 0.0f), - m1 = new float4(0.0f, 1.0f, 0.0f, 0.0f), - m2 = new float4(0.0f, 0.0f, 1.0f, 0.0f), - m3 = new float4(0.0f, 0.0f, 0.0f, 1.0f) - }; - } - public partial struct float2x2 { - public float2 m0; - public float2 m1; + public float2 c0; + public float2 c1; - public float2x2(float2 m0, float2 m1) + public float2x2(float2 c0, float2 c1) { - this.m0 = m0; - this.m1 = m1; + this.c0 = c0; + this.c1 = c1; } public float2x2(float m00, float m01, float m10, float m11) { - this.m0 = new float2(m00, m01); - this.m1 = new float2(m10, m11); + this.c0 = new float2(m00, m10); + this.c1 = new float2(m01, m11); } public static float2x2 operator *(float2x2 mat, float s) { - return new float2x2(mat.m0 * s, mat.m1 * s); + return new float2x2(mat.c0 * s, mat.c1 * s); } } public partial struct float3x3 { - public float3 m0; - public float3 m1; - public float3 m2; + public float3 c0; + public float3 c1; + public float3 c2; - public float3x3(float3 m0, float3 m1, float3 m2) + public float3x3(float3 c0, float3 c1, float3 c2) { - this.m0 = m0; - this.m1 = m1; - this.m2 = m2; + this.c0 = c0; + this.c1 = c1; + this.c2 = c2; } public float3x3(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22) { - this.m0 = new float3(m00, m01, m02); - this.m1 = new float3(m10, m11, m12); - this.m2 = new float3(m20, m21, m22); + this.c0 = new float3(m00, m10, m20); + this.c1 = new float3(m01, m11, m21); + this.c2 = new float3(m02, m12, m22); } public static float3x3 operator *(float3x3 mat, float s) { - return new float3x3(mat.m0 * s, mat.m1 * s, mat.m2 * s); + return new float3x3(mat.c0 * s, mat.c1 * s, mat.c2 * s); } + } + + public partial struct float4x4 + { + public float4 c0; + public float4 c1; + public float4 c2; + public float4 c3; + + public float4x4(float4 c0, float4 c1, float4 c2, float4 c3) + { + this.c0 = c0; + this.c1 = c1; + this.c2 = c2; + this.c3 = c3; + } + + public float4x4(float m00, float m01, float m02, float m03, + float m10, float m11, float m12, float m13, + float m20, float m21, float m22, float m23, + float m30, float m31, float m32, float m33) + { + this.c0 = new float4(m00, m10, m20, m30); + this.c1 = new float4(m01, m11, m21, m31); + this.c2 = new float4(m02, m12, m22, m32); + this.c3 = new float4(m03, m13, m23, m33); + } + + public static float4x4 operator *(float4x4 mat, float s) + { + return new float4x4(mat.c0 * s, mat.c1 * s, mat.c2 * s, mat.c3 * s); + } + + public static float4x4 identity => new float4x4 + { + c0 = new float4(1.0f, 0.0f, 0.0f, 0.0f), + c1 = new float4(0.0f, 1.0f, 0.0f, 0.0f), + c2 = new float4(0.0f, 0.0f, 1.0f, 0.0f), + c3 = new float4(0.0f, 0.0f, 0.0f, 1.0f) + }; } partial class math - { + { + public static float2x2 float2x2(float2 c0, float2 c1) + { + return new float2x2(c0, c1); + } + + public static float2x2 float2x2(float m00, float m01, + float m10, float m11) + { + return new float2x2(m00, m01, + m10, m11); + } + + public static float3x3 float3x3(float3 c0, float3 c1, float3 c2) + { + return new float3x3(c0, c1, c2); + } + + public static float3x3 float3x3(float m00, float m01, float m02, + float m10, float m11, float m12, + float m20, float m21, float m22) + { + return new float3x3(m00, m01, m02, + m10, m11, m12, + m20, m21, m22); + } + + public static float4x4 float4x4(float4 c0, float4 c1, float4 c2, float4 c3) + { + return new float4x4(c0, c1, c2, c3); + } + + public static float4x4 float4x4(float m00, float m01, float m02, float m03, + float m10, float m11, float m12, float m13, + float m20, float m21, float m22, float m23, + float m30, float m31, float m32, float m33) + { + return new float4x4(m00, m01, m02, m03, + m10, m11, m12, m13, + m20, m21, m22, m23, + m30, m31, m32, m33); + } + public static float4 mul(float4x4 x, float4 v) { - return mad(x.m0, v.x, x.m1 * v.y) + mad(x.m2, v.z, x.m3 * v.w); + return mad(x.c0, v.x, x.c1 * v.y) + mad(x.c2, v.z, x.c3 * v.w); } public static float4x4 mul(float4x4 a, float4x4 b) { - return new float4x4(mul(a, b.m0), mul(a, b.m1), mul(a, b.m2), mul(a, b.m3)); + return new float4x4(mul(a, b.c0), mul(a, b.c1), mul(a, b.c2), mul(a, b.c3)); } public static float2 mul(float2x2 x, float2 v) { - return mad(x.m0, v.x, x.m1 * v.y); + return mad(x.c0, v.x, x.c1 * v.y); } public static float2x2 mul(float2x2 a, float2x2 b) { - return new float2x2(mul(a, b.m0), mul(a, b.m1)); + return new float2x2(mul(a, b.c0), mul(a, b.c1)); } public static float3 mul(float3x3 x, float3 v) { - return mad(x.m2, v.z, mad(x.m0, v.x, x.m1 * v.y)); + return mad(x.c2, v.z, mad(x.c0, v.x, x.c1 * v.y)); } public static float3x3 mul(float3x3 a, float3x3 b) { - return new float3x3(mul(a, b.m0), mul(a, b.m1), mul(a, b.m2)); + return new float3x3(mul(a, b.c0), mul(a, b.c1), mul(a, b.c2)); } public static float3x3 orthogonalize(float3x3 i) { float3x3 o; - float3 u = i.m0; - float3 v = i.m1 - i.m0 * math.dot(i.m1, i.m0); + float3 u = i.c0; + float3 v = i.c1 - i.c0 * math.dot(i.c1, i.c0); float lenU = math.length(u); float lenV = math.length(v); bool c = lenU > epsilon_normal && lenV > epsilon_normal; - o.m0 = math.select(new float3(1, 0, 0), u / lenU, c); - o.m1 = math.select(new float3(0, 1, 0), v / lenV, c); - o.m2 = math.cross(o.m0, o.m1); + o.c0 = math.select(new float3(1, 0, 0), u / lenU, c); + o.c1 = math.select(new float3(0, 1, 0), v / lenV, c); + o.c2 = math.cross(o.c0, o.c1); return o; } - public static float2x2 transpose(float2x2 i) { return new float2x2(i.m0.x, i.m1.x, i.m0.y, i.m1.y); } - public static float3x3 transpose(float3x3 i) { return new float3x3(i.m0.x, i.m1.x, i.m2.x, i.m0.y, i.m1.y, i.m2.y, i.m0.z, i.m1.z, i.m2.z); } - public static float4x4 transpose(float4x4 i) { return new float4x4(i.m0.x, i.m1.x, i.m2.x, i.m3.x, i.m0.y, i.m1.y, i.m2.y, i.m3.y, i.m0.z, i.m1.z, i.m2.z, i.m3.z, i.m0.w, i.m1.w, i.m2.w, i.m3.w); } + public static float2x2 transpose(float2x2 i) { return new float2x2(i.c0.x, i.c1.x, i.c0.y, i.c1.y); } + public static float3x3 transpose(float3x3 i) { return new float3x3(i.c0.x, i.c1.x, i.c2.x, i.c0.y, i.c1.y, i.c2.y, i.c0.z, i.c1.z, i.c2.z); } + public static float4x4 transpose(float4x4 i) { return new float4x4(i.c0.x, i.c1.x, i.c2.x, i.c3.x, i.c0.y, i.c1.y, i.c2.y, i.c3.y, i.c0.z, i.c1.z, i.c2.z, i.c3.z, i.c0.w, i.c1.w, i.c2.w, i.c3.w); } public static float4x4 scale(float3 vector) { float4x4 matrix4x4 = new float4x4(); - matrix4x4.m0 = new float4(vector.x,0.0f,0.0f,0.0f); - matrix4x4.m1 = new float4(0.0f,vector.y,0.0f,0.0f); - matrix4x4.m2 = new float4(0.0f,0.0f,vector.z,0.0f); - matrix4x4.m3 = new float4(0.0f, 0.0f, 0.0f, 1.0f); + matrix4x4.c0 = new float4(vector.x,0.0f,0.0f,0.0f); + matrix4x4.c1 = new float4(0.0f,vector.y,0.0f,0.0f); + matrix4x4.c2 = new float4(0.0f,0.0f,vector.z,0.0f); + matrix4x4.c3 = new float4(0.0f, 0.0f, 0.0f, 1.0f); return matrix4x4; } public static float4x4 translate(float3 vector) { float4x4 matrix4x4 = new float4x4(); - matrix4x4.m0 = new float4(1.0f, 0.0f, 0.0f, 0.0f); - matrix4x4.m1 = new float4(0.0f, 1.0f, 0.0f, 0.0f); - matrix4x4.m2 = new float4(0.0f, 0.0f, 1.0f, 0.0f); - matrix4x4.m3 = new float4(vector.x, vector.y, vector.z, 1.0f); + matrix4x4.c0 = new float4(1.0f, 0.0f, 0.0f, 0.0f); + matrix4x4.c1 = new float4(0.0f, 1.0f, 0.0f, 0.0f); + matrix4x4.c2 = new float4(0.0f, 0.0f, 1.0f, 0.0f); + matrix4x4.c3 = new float4(vector.x, vector.y, vector.z, 1.0f); return matrix4x4; } @@ -183,10 +225,10 @@ public static float4x4 lookRotationToMatrix(float3 position, float3 forward, flo float3x3 rot = lookRotationToMatrix(forward, up); float4x4 matrix; - matrix.m0 = new float4(rot.m0, 0.0F); - matrix.m1 = new float4(rot.m1, 0.0F); - matrix.m2 = new float4(rot.m2, 0.0F); - matrix.m3 = new float4(position, 1.0F); + matrix.c0 = new float4(rot.c0, 0.0F); + matrix.c1 = new float4(rot.c1, 0.0F); + matrix.c2 = new float4(rot.c2, 0.0F); + matrix.c3 = new float4(position, 1.0F); return matrix; } From 55585d02064b2c02b09a51858ff90db8c0e68370 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Thu, 31 May 2018 09:59:32 +0200 Subject: [PATCH 008/437] Fixed matrix transpose and added tests --- src/Unity.Mathematics.Tests/TestMatrix.cs | 62 +++++++++++++++++++++++ src/Unity.Mathematics/matrix.cs | 6 +-- 2 files changed, 65 insertions(+), 3 deletions(-) diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 5b7bd0e2..374774a7 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -90,6 +90,68 @@ public void float4x4_matrix_mul() Assert.AreEqual(c.c1.w, 1644.0f); Assert.AreEqual(c.c2.w, 1702.0f); Assert.AreEqual(c.c3.w, 1760.0f); + } + + [Test] + public void float2x2_transpose() + { + float2x2 a = float2x2( 1.0f, 2.0f, + 3.0f, 4.0f); + + float2x2 b = transpose(a); + + Assert.AreEqual(b.c0.x, 1.0f); + Assert.AreEqual(b.c1.x, 3.0f); + Assert.AreEqual(b.c0.y, 2.0f); + Assert.AreEqual(b.c1.y, 4.0f); + } + + [Test] + public void float3x3_transpose() + { + float3x3 a = float3x3( 1.0f, 2.0f, 3.0f, + 4.0f, 5.0f, 6.0f, + 7.0f, 8.0f, 9.0f); + + float3x3 b = transpose(a); + + Assert.AreEqual(b.c0.x, 1.0f); + Assert.AreEqual(b.c1.x, 4.0f); + Assert.AreEqual(b.c2.x, 7.0f); + Assert.AreEqual(b.c0.y, 2.0f); + Assert.AreEqual(b.c1.y, 5.0f); + Assert.AreEqual(b.c2.y, 8.0f); + Assert.AreEqual(b.c0.z, 3.0f); + Assert.AreEqual(b.c1.z, 6.0f); + Assert.AreEqual(b.c2.z, 9.0f); + } + + [Test] + public void float4x4_transpose() + { + float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, + 5.0f, 6.0f, 7.0f, 8.0f, + 9.0f, 10.0f, 11.0f, 12.0f, + 13.0f, 14.0f, 15.0f, 16.0f); + + float4x4 b = transpose(a); + + Assert.AreEqual(b.c0.x, 1.0f); + Assert.AreEqual(b.c1.x, 5.0f); + Assert.AreEqual(b.c2.x, 9.0f); + Assert.AreEqual(b.c3.x, 13.0f); + Assert.AreEqual(b.c0.y, 2.0f); + Assert.AreEqual(b.c1.y, 6.0f); + Assert.AreEqual(b.c2.y, 10.0f); + Assert.AreEqual(b.c3.y, 14.0f); + Assert.AreEqual(b.c0.z, 3.0f); + Assert.AreEqual(b.c1.z, 7.0f); + Assert.AreEqual(b.c2.z, 11.0f); + Assert.AreEqual(b.c3.z, 15.0f); + Assert.AreEqual(b.c0.w, 4.0f); + Assert.AreEqual(b.c1.w, 8.0f); + Assert.AreEqual(b.c2.w, 12.0f); + Assert.AreEqual(b.c3.w, 16.0f); } } } diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index 89ad5fcf..4c503415 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -185,9 +185,9 @@ public static float3x3 orthogonalize(float3x3 i) return o; } - public static float2x2 transpose(float2x2 i) { return new float2x2(i.c0.x, i.c1.x, i.c0.y, i.c1.y); } - public static float3x3 transpose(float3x3 i) { return new float3x3(i.c0.x, i.c1.x, i.c2.x, i.c0.y, i.c1.y, i.c2.y, i.c0.z, i.c1.z, i.c2.z); } - public static float4x4 transpose(float4x4 i) { return new float4x4(i.c0.x, i.c1.x, i.c2.x, i.c3.x, i.c0.y, i.c1.y, i.c2.y, i.c3.y, i.c0.z, i.c1.z, i.c2.z, i.c3.z, i.c0.w, i.c1.w, i.c2.w, i.c3.w); } + public static float2x2 transpose(float2x2 i) { return new float2x2(i.c0.x, i.c0.y, i.c1.x, i.c1.y); } + public static float3x3 transpose(float3x3 i) { return new float3x3(i.c0.x, i.c0.y, i.c0.z, i.c1.x, i.c1.y, i.c1.z, i.c2.x, i.c2.y, i.c2.z); } + public static float4x4 transpose(float4x4 i) { return new float4x4(i.c0.x, i.c0.y, i.c0.z, i.c0.w, i.c1.x, i.c1.y, i.c1.z, i.c1.w, i.c2.x, i.c2.y, i.c2.z, i.c2.w, i.c3.x, i.c3.y, i.c3.z, i.c3.w); } public static float4x4 scale(float3 vector) { From 8d7e79d77d50964b912d7ae455a782443f41e8f1 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Thu, 31 May 2018 13:30:49 +0200 Subject: [PATCH 009/437] added missing new to static type constructors added tests for matrix constructors formatting --- .../VectorGenerator.cs | 2 +- src/Unity.Mathematics.Tests/TestMatrix.cs | 167 +++++++++++++++--- src/Unity.Mathematics/bool2.gen.cs | 4 +- src/Unity.Mathematics/bool3.gen.cs | 8 +- src/Unity.Mathematics/bool4.gen.cs | 16 +- src/Unity.Mathematics/float2.gen.cs | 4 +- src/Unity.Mathematics/float3.gen.cs | 8 +- src/Unity.Mathematics/float4.gen.cs | 16 +- src/Unity.Mathematics/int2.gen.cs | 4 +- src/Unity.Mathematics/int3.gen.cs | 8 +- src/Unity.Mathematics/int4.gen.cs | 16 +- src/Unity.Mathematics/matrix.cs | 130 +++++++------- src/Unity.Mathematics/uint2.gen.cs | 4 +- src/Unity.Mathematics/uint3.gen.cs | 8 +- src/Unity.Mathematics/uint4.gen.cs | 16 +- 15 files changed, 256 insertions(+), 155 deletions(-) diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index e53badec..e0ffe461 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -149,7 +149,7 @@ private void GenerateConstructor(int numComponents, int numParameters, int[] par // Generate function bodies constructorStr.Append("\t\t{ "); - staticConstructorStr.Append(" { return "); + staticConstructorStr.Append(" { return new "); staticConstructorStr.Append(typeName); staticConstructorStr.Append("("); diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 374774a7..70cf8c88 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -11,15 +11,128 @@ namespace Unity.Mathematics.Tests [TestFixture] class TestMatrix { + [Test] + public void float2x2_constructor_columns() + { + float2x2 a = float2x2(float2(1.0f, 2.0f), + float2(3.0f, 4.0f)); + + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c0.y, 2.0f); + Assert.AreEqual(a.c1.x, 3.0f); + Assert.AreEqual(a.c1.y, 4.0f); + } + + [Test] + public void float3x3_constructor_columns() + { + float3x3 a = float3x3(float3(1.0f, 2.0f, 3.0f), + float3(4.0f, 5.0f, 6.0f), + float3(7.0f, 8.0f, 9.0f)); + + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c0.y, 2.0f); + Assert.AreEqual(a.c0.z, 3.0f); + Assert.AreEqual(a.c1.x, 4.0f); + Assert.AreEqual(a.c1.y, 5.0f); + Assert.AreEqual(a.c1.z, 6.0f); + Assert.AreEqual(a.c2.x, 7.0f); + Assert.AreEqual(a.c2.y, 8.0f); + Assert.AreEqual(a.c2.z, 9.0f); + } + + [Test] + public void float4x4_constructor_columns() + { + float4x4 a = float4x4(float4( 1.0f, 2.0f, 3.0f, 4.0f), + float4( 5.0f, 6.0f, 7.0f, 8.0f), + float4( 9.0f, 10.0f, 11.0f, 12.0f), + float4(13.0f, 14.0f, 15.0f, 16.0f)); + + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c0.y, 2.0f); + Assert.AreEqual(a.c0.z, 3.0f); + Assert.AreEqual(a.c0.w, 4.0f); + Assert.AreEqual(a.c1.x, 5.0f); + Assert.AreEqual(a.c1.y, 6.0f); + Assert.AreEqual(a.c1.z, 7.0f); + Assert.AreEqual(a.c1.w, 8.0f); + Assert.AreEqual(a.c2.x, 9.0f); + Assert.AreEqual(a.c2.y, 10.0f); + Assert.AreEqual(a.c2.z, 11.0f); + Assert.AreEqual(a.c2.w, 12.0f); + Assert.AreEqual(a.c3.x, 13.0f); + Assert.AreEqual(a.c3.y, 14.0f); + Assert.AreEqual(a.c3.z, 15.0f); + Assert.AreEqual(a.c3.w, 16.0f); + } + + [Test] + public void float2x2_constructor_scalars() + { + float2x2 a = float2x2(1.0f, 2.0f, + 3.0f, 4.0f); + + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c1.x, 2.0f); + Assert.AreEqual(a.c0.y, 3.0f); + Assert.AreEqual(a.c1.y, 4.0f); + } + + [Test] + public void float3x3_constructor_scalars() + { + float3x3 a = float3x3(1.0f, 2.0f, 3.0f, + 4.0f, 5.0f, 6.0f, + 7.0f, 8.0f, 9.0f); + + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c1.x, 2.0f); + Assert.AreEqual(a.c2.x, 3.0f); + Assert.AreEqual(a.c0.y, 4.0f); + Assert.AreEqual(a.c1.y, 5.0f); + Assert.AreEqual(a.c2.y, 6.0f); + Assert.AreEqual(a.c0.z, 7.0f); + Assert.AreEqual(a.c1.z, 8.0f); + Assert.AreEqual(a.c2.z, 9.0f); + } + + [Test] + public void float4x4_constructor_scalars() + { + float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, + 5.0f, 6.0f, 7.0f, 8.0f, + 9.0f, 10.0f, 11.0f, 12.0f, + 13.0f, 14.0f, 15.0f, 16.0f); + + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c1.x, 2.0f); + Assert.AreEqual(a.c2.x, 3.0f); + Assert.AreEqual(a.c3.x, 4.0f); + Assert.AreEqual(a.c0.y, 5.0f); + Assert.AreEqual(a.c1.y, 6.0f); + Assert.AreEqual(a.c2.y, 7.0f); + Assert.AreEqual(a.c3.y, 8.0f); + Assert.AreEqual(a.c0.z, 9.0f); + Assert.AreEqual(a.c1.z, 10.0f); + Assert.AreEqual(a.c2.z, 11.0f); + Assert.AreEqual(a.c3.z, 12.0f); + Assert.AreEqual(a.c0.w, 13.0f); + Assert.AreEqual(a.c1.w, 14.0f); + Assert.AreEqual(a.c2.w, 15.0f); + Assert.AreEqual(a.c3.w, 16.0f); + } + + [Test] public void float2x2_matrix_mul() { // http://www.wolframalpha.com/input/?i=%5B%5B1,2%5D,%5B3,4%5D%5D*%5B%5B21,22%5D,%5B23,24%5D%5D - float2x2 a = float2x2( 1.0f, 2.0f, - 3.0f, 4.0f); + float2x2 a = float2x2(1.0f, 2.0f, + 3.0f, 4.0f); - float2x2 b = float2x2( 21.0f, 22.0f, - 23.0f, 24.0f); + float2x2 b = float2x2(21.0f, 22.0f, + 23.0f, 24.0f); float2x2 c = mul(a, b); Assert.AreEqual(c.c0.x, 67.0f); @@ -33,13 +146,13 @@ public void float2x2_matrix_mul() public void float3x3_matrix_mul() { // http://www.wolframalpha.com/input/?i=%5B%5B1,2,3%5D,%5B4,5,6%5D,%5B7,8,9%5D%5D*%5B%5B21,22,23%5D,%5B24,25,26%5D,%5B27,28,29%5D%5D - float3x3 a = float3x3( 1.0f, 2.0f, 3.0f, - 4.0f, 5.0f, 6.0f, - 7.0f, 8.0f, 9.0f); + float3x3 a = float3x3(1.0f, 2.0f, 3.0f, + 4.0f, 5.0f, 6.0f, + 7.0f, 8.0f, 9.0f); - float3x3 b = float3x3( 21.0f, 22.0f, 23.0f, - 24.0f, 25.0f, 26.0f, - 27.0f, 28.0f, 29.0f); + float3x3 b = float3x3(21.0f, 22.0f, 23.0f, + 24.0f, 25.0f, 26.0f, + 27.0f, 28.0f, 29.0f); float3x3 c = mul(a, b); Assert.AreEqual(c.c0.x, 150.0f); @@ -60,15 +173,15 @@ public void float4x4_matrix_mul() { // https://fogbugz.unity3d.com/f/cases/1041176/ // http://www.wolframalpha.com/input/?i=%5B%5B1,2,3,4%5D,%5B5,6,7,8%5D,%5B9,10,11,12%5D,%5B13,14,15,16%5D%5D*%5B%5B21,22,23,24%5D,%5B25,26,27,28%5D,%5B29,30,31,32%5D,%5B33,34,35,36%5D%5D - float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, - 5.0f, 6.0f, 7.0f, 8.0f, - 9.0f,10.0f,11.0f,12.0f, - 13.0f,14.0f,15.0f,16.0f); + float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, + 5.0f, 6.0f, 7.0f, 8.0f, + 9.0f,10.0f,11.0f,12.0f, + 13.0f,14.0f,15.0f,16.0f); - float4x4 b = float4x4( 21.0f,22.0f,23.0f,24.0f, - 25.0f,26.0f,27.0f,28.0f, - 29.0f,30.0f,31.0f,32.0f, - 33.0f,34.0f,35.0f,36.0f); + float4x4 b = float4x4(21.0f,22.0f,23.0f,24.0f, + 25.0f,26.0f,27.0f,28.0f, + 29.0f,30.0f,31.0f,32.0f, + 33.0f,34.0f,35.0f,36.0f); float4x4 c = mul(a, b); Assert.AreEqual(c.c0.x, 290.0f); @@ -95,8 +208,8 @@ public void float4x4_matrix_mul() [Test] public void float2x2_transpose() { - float2x2 a = float2x2( 1.0f, 2.0f, - 3.0f, 4.0f); + float2x2 a = float2x2(1.0f, 2.0f, + 3.0f, 4.0f); float2x2 b = transpose(a); @@ -109,9 +222,9 @@ public void float2x2_transpose() [Test] public void float3x3_transpose() { - float3x3 a = float3x3( 1.0f, 2.0f, 3.0f, - 4.0f, 5.0f, 6.0f, - 7.0f, 8.0f, 9.0f); + float3x3 a = float3x3(1.0f, 2.0f, 3.0f, + 4.0f, 5.0f, 6.0f, + 7.0f, 8.0f, 9.0f); float3x3 b = transpose(a); @@ -129,10 +242,10 @@ public void float3x3_transpose() [Test] public void float4x4_transpose() { - float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, - 5.0f, 6.0f, 7.0f, 8.0f, - 9.0f, 10.0f, 11.0f, 12.0f, - 13.0f, 14.0f, 15.0f, 16.0f); + float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, + 5.0f, 6.0f, 7.0f, 8.0f, + 9.0f, 10.0f, 11.0f, 12.0f, + 13.0f, 14.0f, 15.0f, 16.0f); float4x4 b = transpose(a); diff --git a/src/Unity.Mathematics/bool2.gen.cs b/src/Unity.Mathematics/bool2.gen.cs index a2dd7aeb..7c8cb725 100644 --- a/src/Unity.Mathematics/bool2.gen.cs +++ b/src/Unity.Mathematics/bool2.gen.cs @@ -318,10 +318,10 @@ public bool2 yy public static partial class math { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 bool2(bool x, bool y) { return bool2(x, y); } + public static bool2 bool2(bool x, bool y) { return new bool2(x, y); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 bool2(bool2 xy) { return bool2(xy); } + public static bool2 bool2(bool2 xy) { return new bool2(xy); } } } diff --git a/src/Unity.Mathematics/bool3.gen.cs b/src/Unity.Mathematics/bool3.gen.cs index 70e63468..f5bacc5b 100644 --- a/src/Unity.Mathematics/bool3.gen.cs +++ b/src/Unity.Mathematics/bool3.gen.cs @@ -1068,16 +1068,16 @@ public bool2 zz public static partial class math { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 bool3(bool x, bool y, bool z) { return bool3(x, y, z); } + public static bool3 bool3(bool x, bool y, bool z) { return new bool3(x, y, z); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 bool3(bool x, bool2 yz) { return bool3(x, yz); } + public static bool3 bool3(bool x, bool2 yz) { return new bool3(x, yz); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 bool3(bool2 xy, bool z) { return bool3(xy, z); } + public static bool3 bool3(bool2 xy, bool z) { return new bool3(xy, z); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 bool3(bool3 xyz) { return bool3(xyz); } + public static bool3 bool3(bool3 xyz) { return new bool3(xyz); } } } diff --git a/src/Unity.Mathematics/bool4.gen.cs b/src/Unity.Mathematics/bool4.gen.cs index 5903818e..612a2ab8 100644 --- a/src/Unity.Mathematics/bool4.gen.cs +++ b/src/Unity.Mathematics/bool4.gen.cs @@ -2956,28 +2956,28 @@ public bool2 ww public static partial class math { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool x, bool y, bool z, bool w) { return bool4(x, y, z, w); } + public static bool4 bool4(bool x, bool y, bool z, bool w) { return new bool4(x, y, z, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool x, bool y, bool2 zw) { return bool4(x, y, zw); } + public static bool4 bool4(bool x, bool y, bool2 zw) { return new bool4(x, y, zw); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool x, bool2 yz, bool w) { return bool4(x, yz, w); } + public static bool4 bool4(bool x, bool2 yz, bool w) { return new bool4(x, yz, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool x, bool3 yzw) { return bool4(x, yzw); } + public static bool4 bool4(bool x, bool3 yzw) { return new bool4(x, yzw); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool2 xy, bool z, bool w) { return bool4(xy, z, w); } + public static bool4 bool4(bool2 xy, bool z, bool w) { return new bool4(xy, z, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool2 xy, bool2 zw) { return bool4(xy, zw); } + public static bool4 bool4(bool2 xy, bool2 zw) { return new bool4(xy, zw); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool3 xyz, bool w) { return bool4(xyz, w); } + public static bool4 bool4(bool3 xyz, bool w) { return new bool4(xyz, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool4 xyzw) { return bool4(xyzw); } + public static bool4 bool4(bool4 xyzw) { return new bool4(xyzw); } } } diff --git a/src/Unity.Mathematics/float2.gen.cs b/src/Unity.Mathematics/float2.gen.cs index 49e16a3e..096ec487 100644 --- a/src/Unity.Mathematics/float2.gen.cs +++ b/src/Unity.Mathematics/float2.gen.cs @@ -360,10 +360,10 @@ public float2 yy public static partial class math { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(float x, float y) { return float2(x, y); } + public static float2 float2(float x, float y) { return new float2(x, y); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(float2 xy) { return float2(xy); } + public static float2 float2(float2 xy) { return new float2(xy); } } } diff --git a/src/Unity.Mathematics/float3.gen.cs b/src/Unity.Mathematics/float3.gen.cs index 0b290cf2..4c43dd5f 100644 --- a/src/Unity.Mathematics/float3.gen.cs +++ b/src/Unity.Mathematics/float3.gen.cs @@ -1110,16 +1110,16 @@ public float2 zz public static partial class math { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(float x, float y, float z) { return float3(x, y, z); } + public static float3 float3(float x, float y, float z) { return new float3(x, y, z); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(float x, float2 yz) { return float3(x, yz); } + public static float3 float3(float x, float2 yz) { return new float3(x, yz); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(float2 xy, float z) { return float3(xy, z); } + public static float3 float3(float2 xy, float z) { return new float3(xy, z); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(float3 xyz) { return float3(xyz); } + public static float3 float3(float3 xyz) { return new float3(xyz); } } } diff --git a/src/Unity.Mathematics/float4.gen.cs b/src/Unity.Mathematics/float4.gen.cs index 70610007..b37790e2 100644 --- a/src/Unity.Mathematics/float4.gen.cs +++ b/src/Unity.Mathematics/float4.gen.cs @@ -2998,28 +2998,28 @@ public float2 ww public static partial class math { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float x, float y, float z, float w) { return float4(x, y, z, w); } + public static float4 float4(float x, float y, float z, float w) { return new float4(x, y, z, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float x, float y, float2 zw) { return float4(x, y, zw); } + public static float4 float4(float x, float y, float2 zw) { return new float4(x, y, zw); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float x, float2 yz, float w) { return float4(x, yz, w); } + public static float4 float4(float x, float2 yz, float w) { return new float4(x, yz, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float x, float3 yzw) { return float4(x, yzw); } + public static float4 float4(float x, float3 yzw) { return new float4(x, yzw); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float2 xy, float z, float w) { return float4(xy, z, w); } + public static float4 float4(float2 xy, float z, float w) { return new float4(xy, z, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float2 xy, float2 zw) { return float4(xy, zw); } + public static float4 float4(float2 xy, float2 zw) { return new float4(xy, zw); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float3 xyz, float w) { return float4(xyz, w); } + public static float4 float4(float3 xyz, float w) { return new float4(xyz, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float4 xyzw) { return float4(xyzw); } + public static float4 float4(float4 xyzw) { return new float4(xyzw); } } } diff --git a/src/Unity.Mathematics/int2.gen.cs b/src/Unity.Mathematics/int2.gen.cs index e85d927f..ff9b5d98 100644 --- a/src/Unity.Mathematics/int2.gen.cs +++ b/src/Unity.Mathematics/int2.gen.cs @@ -395,10 +395,10 @@ public int2 yy public static partial class math { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(int x, int y) { return int2(x, y); } + public static int2 int2(int x, int y) { return new int2(x, y); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(int2 xy) { return int2(xy); } + public static int2 int2(int2 xy) { return new int2(xy); } } } diff --git a/src/Unity.Mathematics/int3.gen.cs b/src/Unity.Mathematics/int3.gen.cs index 022f5084..96b19a89 100644 --- a/src/Unity.Mathematics/int3.gen.cs +++ b/src/Unity.Mathematics/int3.gen.cs @@ -1145,16 +1145,16 @@ public int2 zz public static partial class math { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(int x, int y, int z) { return int3(x, y, z); } + public static int3 int3(int x, int y, int z) { return new int3(x, y, z); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(int x, int2 yz) { return int3(x, yz); } + public static int3 int3(int x, int2 yz) { return new int3(x, yz); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(int2 xy, int z) { return int3(xy, z); } + public static int3 int3(int2 xy, int z) { return new int3(xy, z); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(int3 xyz) { return int3(xyz); } + public static int3 int3(int3 xyz) { return new int3(xyz); } } } diff --git a/src/Unity.Mathematics/int4.gen.cs b/src/Unity.Mathematics/int4.gen.cs index 6996585f..d03a3cd8 100644 --- a/src/Unity.Mathematics/int4.gen.cs +++ b/src/Unity.Mathematics/int4.gen.cs @@ -3033,28 +3033,28 @@ public int2 ww public static partial class math { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int x, int y, int z, int w) { return int4(x, y, z, w); } + public static int4 int4(int x, int y, int z, int w) { return new int4(x, y, z, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int x, int y, int2 zw) { return int4(x, y, zw); } + public static int4 int4(int x, int y, int2 zw) { return new int4(x, y, zw); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int x, int2 yz, int w) { return int4(x, yz, w); } + public static int4 int4(int x, int2 yz, int w) { return new int4(x, yz, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int x, int3 yzw) { return int4(x, yzw); } + public static int4 int4(int x, int3 yzw) { return new int4(x, yzw); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int2 xy, int z, int w) { return int4(xy, z, w); } + public static int4 int4(int2 xy, int z, int w) { return new int4(xy, z, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int2 xy, int2 zw) { return int4(xy, zw); } + public static int4 int4(int2 xy, int2 zw) { return new int4(xy, zw); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int3 xyz, int w) { return int4(xyz, w); } + public static int4 int4(int3 xyz, int w) { return new int4(xyz, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int4 xyzw) { return int4(xyzw); } + public static int4 int4(int4 xyzw) { return new int4(xyzw); } } } diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index 4c503415..2086f638 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -1,3 +1,5 @@ +using static Unity.Mathematics.math; + namespace Unity.Mathematics { public partial struct float2x2 @@ -12,15 +14,15 @@ public float2x2(float2 c0, float2 c1) } public float2x2(float m00, float m01, - float m10, float m11) + float m10, float m11) { - this.c0 = new float2(m00, m10); - this.c1 = new float2(m01, m11); + this.c0 = float2(m00, m10); + this.c1 = float2(m01, m11); } public static float2x2 operator *(float2x2 mat, float s) { - return new float2x2(mat.c0 * s, mat.c1 * s); + return float2x2(mat.c0 * s, mat.c1 * s); } } @@ -38,17 +40,17 @@ public float3x3(float3 c0, float3 c1, float3 c2) } public float3x3(float m00, float m01, float m02, - float m10, float m11, float m12, - float m20, float m21, float m22) + float m10, float m11, float m12, + float m20, float m21, float m22) { - this.c0 = new float3(m00, m10, m20); - this.c1 = new float3(m01, m11, m21); - this.c2 = new float3(m02, m12, m22); + this.c0 = float3(m00, m10, m20); + this.c1 = float3(m01, m11, m21); + this.c2 = float3(m02, m12, m22); } public static float3x3 operator *(float3x3 mat, float s) { - return new float3x3(mat.c0 * s, mat.c1 * s, mat.c2 * s); + return float3x3(mat.c0 * s, mat.c1 * s, mat.c2 * s); } } @@ -68,28 +70,28 @@ public float4x4(float4 c0, float4 c1, float4 c2, float4 c3) } public float4x4(float m00, float m01, float m02, float m03, - float m10, float m11, float m12, float m13, - float m20, float m21, float m22, float m23, - float m30, float m31, float m32, float m33) + float m10, float m11, float m12, float m13, + float m20, float m21, float m22, float m23, + float m30, float m31, float m32, float m33) { - this.c0 = new float4(m00, m10, m20, m30); - this.c1 = new float4(m01, m11, m21, m31); - this.c2 = new float4(m02, m12, m22, m32); - this.c3 = new float4(m03, m13, m23, m33); + this.c0 = float4(m00, m10, m20, m30); + this.c1 = float4(m01, m11, m21, m31); + this.c2 = float4(m02, m12, m22, m32); + this.c3 = float4(m03, m13, m23, m33); } public static float4x4 operator *(float4x4 mat, float s) { - return new float4x4(mat.c0 * s, mat.c1 * s, mat.c2 * s, mat.c3 * s); + return float4x4(mat.c0 * s, mat.c1 * s, mat.c2 * s, mat.c3 * s); } - public static float4x4 identity => new float4x4 - { - c0 = new float4(1.0f, 0.0f, 0.0f, 0.0f), - c1 = new float4(0.0f, 1.0f, 0.0f, 0.0f), - c2 = new float4(0.0f, 0.0f, 1.0f, 0.0f), - c3 = new float4(0.0f, 0.0f, 0.0f, 1.0f) - }; + public static float4x4 identity => float4x4 + ( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); } partial class math @@ -134,16 +136,6 @@ public static float4x4 float4x4(float m00, float m01, float m02, float m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33); - } - - public static float4 mul(float4x4 x, float4 v) - { - return mad(x.c0, v.x, x.c1 * v.y) + mad(x.c2, v.z, x.c3 * v.w); - } - - public static float4x4 mul(float4x4 a, float4x4 b) - { - return new float4x4(mul(a, b.c0), mul(a, b.c1), mul(a, b.c2), mul(a, b.c3)); } public static float2 mul(float2x2 x, float2 v) @@ -153,7 +145,7 @@ public static float2 mul(float2x2 x, float2 v) public static float2x2 mul(float2x2 a, float2x2 b) { - return new float2x2(mul(a, b.c0), mul(a, b.c1)); + return float2x2(mul(a, b.c0), mul(a, b.c1)); } public static float3 mul(float3x3 x, float3 v) @@ -163,7 +155,17 @@ public static float3 mul(float3x3 x, float3 v) public static float3x3 mul(float3x3 a, float3x3 b) { - return new float3x3(mul(a, b.c0), mul(a, b.c1), mul(a, b.c2)); + return float3x3(mul(a, b.c0), mul(a, b.c1), mul(a, b.c2)); + } + + public static float4 mul(float4x4 x, float4 v) + { + return mad(x.c0, v.x, x.c1 * v.y) + mad(x.c2, v.z, x.c3 * v.w); + } + + public static float4x4 mul(float4x4 a, float4x4 b) + { + return float4x4(mul(a, b.c0), mul(a, b.c1), mul(a, b.c2), mul(a, b.c3)); } public static float3x3 orthogonalize(float3x3 i) @@ -178,46 +180,42 @@ public static float3x3 orthogonalize(float3x3 i) bool c = lenU > epsilon_normal && lenV > epsilon_normal; - o.c0 = math.select(new float3(1, 0, 0), u / lenU, c); - o.c1 = math.select(new float3(0, 1, 0), v / lenV, c); + o.c0 = math.select(float3(1, 0, 0), u / lenU, c); + o.c1 = math.select(float3(0, 1, 0), v / lenV, c); o.c2 = math.cross(o.c0, o.c1); return o; } - public static float2x2 transpose(float2x2 i) { return new float2x2(i.c0.x, i.c0.y, i.c1.x, i.c1.y); } - public static float3x3 transpose(float3x3 i) { return new float3x3(i.c0.x, i.c0.y, i.c0.z, i.c1.x, i.c1.y, i.c1.z, i.c2.x, i.c2.y, i.c2.z); } - public static float4x4 transpose(float4x4 i) { return new float4x4(i.c0.x, i.c0.y, i.c0.z, i.c0.w, i.c1.x, i.c1.y, i.c1.z, i.c1.w, i.c2.x, i.c2.y, i.c2.z, i.c2.w, i.c3.x, i.c3.y, i.c3.z, i.c3.w); } + public static float2x2 transpose(float2x2 m) { return float2x2(m.c0.x, m.c0.y, m.c1.x, m.c1.y); } + public static float3x3 transpose(float3x3 m) { return float3x3(m.c0.x, m.c0.y, m.c0.z, m.c1.x, m.c1.y, m.c1.z, m.c2.x, m.c2.y, m.c2.z); } + public static float4x4 transpose(float4x4 m) { return float4x4(m.c0.x, m.c0.y, m.c0.z, m.c0.w, m.c1.x, m.c1.y, m.c1.z, m.c1.w, m.c2.x, m.c2.y, m.c2.z, m.c2.w, m.c3.x, m.c3.y, m.c3.z, m.c3.w); } public static float4x4 scale(float3 vector) { - float4x4 matrix4x4 = new float4x4(); - matrix4x4.c0 = new float4(vector.x,0.0f,0.0f,0.0f); - matrix4x4.c1 = new float4(0.0f,vector.y,0.0f,0.0f); - matrix4x4.c2 = new float4(0.0f,0.0f,vector.z,0.0f); - matrix4x4.c3 = new float4(0.0f, 0.0f, 0.0f, 1.0f); - return matrix4x4; + return float4x4(float4(vector.x, 0.0f, 0.0f, 0.0f), + float4(0.0f, vector.y, 0.0f, 0.0f), + float4(0.0f, 0.0f, vector.z, 0.0f), + float4(0.0f, 0.0f, 0.0f, 1.0f)); } public static float4x4 translate(float3 vector) { - float4x4 matrix4x4 = new float4x4(); - matrix4x4.c0 = new float4(1.0f, 0.0f, 0.0f, 0.0f); - matrix4x4.c1 = new float4(0.0f, 1.0f, 0.0f, 0.0f); - matrix4x4.c2 = new float4(0.0f, 0.0f, 1.0f, 0.0f); - matrix4x4.c3 = new float4(vector.x, vector.y, vector.z, 1.0f); - return matrix4x4; + return float4x4(float4(1.0f, 0.0f, 0.0f, 0.0f), + float4(0.0f, 1.0f, 0.0f, 0.0f), + float4(0.0f, 0.0f, 1.0f, 0.0f), + float4(vector.x, vector.y, vector.z, 1.0f)); } const float epsilon = 0.000001F; public static float3x3 identity3 { - get { return new float3x3(new float3(1, 0, 0), new float3(0, 1, 0), new float3(0, 0, 1)); } + get { return float3x3(float3(1, 0, 0), float3(0, 1, 0), float3(0, 0, 1)); } } public static float4x4 identity4 { - get { return new float4x4(new float4(1, 0, 0, 0), new float4(0, 1, 0, 0), new float4(0, 0, 1, 0), new float4(0, 0, 0, 1)); } + get { return float4x4(float4(1, 0, 0, 0), float4(0, 1, 0, 0), float4(0, 0, 1, 0), float4(0, 0, 0, 1)); } } public static float4x4 lookRotationToMatrix(float3 position, float3 forward, float3 up) @@ -225,11 +223,10 @@ public static float4x4 lookRotationToMatrix(float3 position, float3 forward, flo float3x3 rot = lookRotationToMatrix(forward, up); float4x4 matrix; - matrix.c0 = new float4(rot.c0, 0.0F); - matrix.c1 = new float4(rot.c1, 0.0F); - matrix.c2 = new float4(rot.c2, 0.0F); - matrix.c3 = new float4(position, 1.0F); - + matrix.c0 = float4(rot.c0, 0.0F); + matrix.c1 = float4(rot.c1, 0.0F); + matrix.c2 = float4(rot.c2, 0.0F); + matrix.c3 = float4(position, 1.0F); return matrix; } @@ -253,16 +250,7 @@ public static float3x3 lookRotationToMatrix(float3 forward, float3 up) if (yLength < 0.9F || yLength > 1.1F) return identity3; - return new float3x3(x, y, z); + return float3x3(x, y, z); } - - /* @TODO: - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float determinant(float2x2 x) { throw new System.NotImplementedException(); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float determinant(float3x3 x) { throw new System.NotImplementedException(); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float determinant(float4x4 x) { throw new System.NotImplementedException(); } - */ } } diff --git a/src/Unity.Mathematics/uint2.gen.cs b/src/Unity.Mathematics/uint2.gen.cs index ff2742ed..f4d2eb58 100644 --- a/src/Unity.Mathematics/uint2.gen.cs +++ b/src/Unity.Mathematics/uint2.gen.cs @@ -389,10 +389,10 @@ public uint2 yy public static partial class math { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(uint x, uint y) { return uint2(x, y); } + public static uint2 uint2(uint x, uint y) { return new uint2(x, y); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(uint2 xy) { return uint2(xy); } + public static uint2 uint2(uint2 xy) { return new uint2(xy); } } } diff --git a/src/Unity.Mathematics/uint3.gen.cs b/src/Unity.Mathematics/uint3.gen.cs index 760da870..034311d2 100644 --- a/src/Unity.Mathematics/uint3.gen.cs +++ b/src/Unity.Mathematics/uint3.gen.cs @@ -1139,16 +1139,16 @@ public uint2 zz public static partial class math { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(uint x, uint y, uint z) { return uint3(x, y, z); } + public static uint3 uint3(uint x, uint y, uint z) { return new uint3(x, y, z); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(uint x, uint2 yz) { return uint3(x, yz); } + public static uint3 uint3(uint x, uint2 yz) { return new uint3(x, yz); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(uint2 xy, uint z) { return uint3(xy, z); } + public static uint3 uint3(uint2 xy, uint z) { return new uint3(xy, z); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(uint3 xyz) { return uint3(xyz); } + public static uint3 uint3(uint3 xyz) { return new uint3(xyz); } } } diff --git a/src/Unity.Mathematics/uint4.gen.cs b/src/Unity.Mathematics/uint4.gen.cs index 54d38aa4..856de576 100644 --- a/src/Unity.Mathematics/uint4.gen.cs +++ b/src/Unity.Mathematics/uint4.gen.cs @@ -3027,28 +3027,28 @@ public uint2 ww public static partial class math { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint x, uint y, uint z, uint w) { return uint4(x, y, z, w); } + public static uint4 uint4(uint x, uint y, uint z, uint w) { return new uint4(x, y, z, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint x, uint y, uint2 zw) { return uint4(x, y, zw); } + public static uint4 uint4(uint x, uint y, uint2 zw) { return new uint4(x, y, zw); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint x, uint2 yz, uint w) { return uint4(x, yz, w); } + public static uint4 uint4(uint x, uint2 yz, uint w) { return new uint4(x, yz, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint x, uint3 yzw) { return uint4(x, yzw); } + public static uint4 uint4(uint x, uint3 yzw) { return new uint4(x, yzw); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint2 xy, uint z, uint w) { return uint4(xy, z, w); } + public static uint4 uint4(uint2 xy, uint z, uint w) { return new uint4(xy, z, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint2 xy, uint2 zw) { return uint4(xy, zw); } + public static uint4 uint4(uint2 xy, uint2 zw) { return new uint4(xy, zw); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint3 xyz, uint w) { return uint4(xyz, w); } + public static uint4 uint4(uint3 xyz, uint w) { return new uint4(xyz, w); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint4 xyzw) { return uint4(xyzw); } + public static uint4 uint4(uint4 xyzw) { return new uint4(xyzw); } } } From 61d26026b08b63f0ad74651cab45462039062aa4 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Fri, 1 Jun 2018 10:34:46 +0200 Subject: [PATCH 010/437] removed 'expression bodied members' for compatibility with .net 3.5 changed identity from property to free functions identity2(), identity3(), identity4() --- src/Unity.Mathematics.Tests/TestMatrix.cs | 47 +++++++++++++++++++++++ src/Unity.Mathematics/matrix.cs | 36 +++++++++-------- 2 files changed, 67 insertions(+), 16 deletions(-) diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 70cf8c88..13495691 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -123,6 +123,53 @@ public void float4x4_constructor_scalars() Assert.AreEqual(a.c3.w, 16.0f); } + [Test] + public void float2x2_identity() + { + float2x2 a = identity2(); + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c1.x, 0.0f); + Assert.AreEqual(a.c0.y, 0.0f); + Assert.AreEqual(a.c1.y, 1.0f); + } + + [Test] + public void float3x3_identity() + { + float3x3 a = identity3(); + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c1.x, 0.0f); + Assert.AreEqual(a.c2.x, 0.0f); + Assert.AreEqual(a.c0.y, 0.0f); + Assert.AreEqual(a.c1.y, 1.0f); + Assert.AreEqual(a.c2.y, 0.0f); + Assert.AreEqual(a.c0.z, 0.0f); + Assert.AreEqual(a.c1.z, 0.0f); + Assert.AreEqual(a.c2.z, 1.0f); + } + + [Test] + public void float4x4_identity() + { + float4x4 a = identity4(); + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c1.x, 0.0f); + Assert.AreEqual(a.c2.x, 0.0f); + Assert.AreEqual(a.c3.x, 0.0f); + Assert.AreEqual(a.c0.y, 0.0f); + Assert.AreEqual(a.c1.y, 1.0f); + Assert.AreEqual(a.c2.y, 0.0f); + Assert.AreEqual(a.c3.y, 0.0f); + Assert.AreEqual(a.c0.z, 0.0f); + Assert.AreEqual(a.c1.z, 0.0f); + Assert.AreEqual(a.c2.z, 1.0f); + Assert.AreEqual(a.c3.z, 0.0f); + Assert.AreEqual(a.c0.w, 0.0f); + Assert.AreEqual(a.c1.w, 0.0f); + Assert.AreEqual(a.c2.w, 0.0f); + Assert.AreEqual(a.c3.w, 1.0f); + } + [Test] public void float2x2_matrix_mul() diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index 2086f638..8ef843ab 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -84,14 +84,6 @@ public float4x4(float m00, float m01, float m02, float m03, { return float4x4(mat.c0 * s, mat.c1 * s, mat.c2 * s, mat.c3 * s); } - - public static float4x4 identity => float4x4 - ( - 1.0f, 0.0f, 0.0f, 0.0f, - 0.0f, 1.0f, 0.0f, 0.0f, - 0.0f, 0.0f, 1.0f, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f - ); } partial class math @@ -208,14 +200,26 @@ public static float4x4 translate(float3 vector) } const float epsilon = 0.000001F; + + public static float2x2 identity2() + { + return float2x2(1.0f, 0.0f, + 0.0f, 1.0f); + } - public static float3x3 identity3 + public static float3x3 identity3() { - get { return float3x3(float3(1, 0, 0), float3(0, 1, 0), float3(0, 0, 1)); } - } - public static float4x4 identity4 + return float3x3(1.0f, 0.0f, 0.0f, + 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 1.0f); + } + + public static float4x4 identity4() { - get { return float4x4(float4(1, 0, 0, 0), float4(0, 1, 0, 0), float4(0, 0, 1, 0), float4(0, 0, 0, 1)); } + return float4x4(1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f); } public static float4x4 lookRotationToMatrix(float3 position, float3 forward, float3 up) @@ -236,19 +240,19 @@ public static float3x3 lookRotationToMatrix(float3 forward, float3 up) // compute u0 float mag = math.length(z); if (mag < epsilon) - return identity3; + return identity3(); z /= mag; float3 x = math.cross(up, z); mag = math.length(x); if (mag < epsilon) - return identity3; + return identity3(); x /= mag; float3 y = math.cross(z, x); float yLength = math.length(y); if (yLength < 0.9F || yLength > 1.1F) - return identity3; + return identity3(); return float3x3(x, y, z); } From 1abbf2c67f65e6d5a611d6580e1d4ac79f8b4dea Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Fri, 1 Jun 2018 15:08:41 +0200 Subject: [PATCH 011/437] Naive scalar implementations of float4x4, float3x3 and float2x2 inverse with basic tests --- src/Unity.Mathematics.Tests/TestMatrix.cs | 85 ++++++++++++++++++++++- src/Unity.Mathematics/matrix.cs | 79 ++++++++++++++++++++- 2 files changed, 162 insertions(+), 2 deletions(-) diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 13495691..29551cfc 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -312,6 +312,89 @@ public void float4x4_transpose() Assert.AreEqual(b.c1.w, 8.0f); Assert.AreEqual(b.c2.w, 12.0f); Assert.AreEqual(b.c3.w, 16.0f); - } + } + + [Test] + public void float2x2_inverse() + { + float2x2 a = float2x2( 0.542968f, 0.867379f, + -0.270153f, -0.912324f); + + float2x2 invA = float2x2( 3.49499f, 3.32281f, + -1.03492f, -2.08004f); + + float2x2 r = inverse(a); + + float epsilon = 0.0001f; + Assert.AreEqual(invA.c0.x, r.c0.x, epsilon); + Assert.AreEqual(invA.c1.x, r.c1.x, epsilon); + + Assert.AreEqual(invA.c0.y, r.c0.y, epsilon); + Assert.AreEqual(invA.c1.y, r.c1.y, epsilon); + } + + [Test] + public void float3x3_inverse() + { + float3x3 a = float3x3( 0.542968f, 0.867379f, 0.526616f, + -0.270153f,-0.912324f, 0.148933f, + 0.816727f, 0.905933f, 0.902392f); + + float3x3 invA = float3x3(-15.91790f,-5.077350f,10.1273f, + 6.07051f, 0.994556f,-3.70676f, + 8.31247f, 3.596890f,-4.33645f); + + float3x3 r = inverse(a); + + float epsilon = 0.0001f; + Assert.AreEqual(invA.c0.x, r.c0.x, epsilon); + Assert.AreEqual(invA.c1.x, r.c1.x, epsilon); + Assert.AreEqual(invA.c2.x, r.c2.x, epsilon); + + Assert.AreEqual(invA.c0.y, r.c0.y, epsilon); + Assert.AreEqual(invA.c1.y, r.c1.y, epsilon); + Assert.AreEqual(invA.c2.y, r.c2.y, epsilon); + + Assert.AreEqual(invA.c0.z, r.c0.z, epsilon); + Assert.AreEqual(invA.c1.z, r.c1.z, epsilon); + Assert.AreEqual(invA.c2.z, r.c2.z, epsilon); + } + + [Test] + public void float4x4_inverse() + { + float4x4 a = float4x4( 0.542968f, 0.867379f, 0.526616f,-0.943083f, + -0.270153f,-0.912324f, 0.148933f, 0.299995f, + 0.816727f, 0.905933f, 0.902392f,-0.060931f, + -0.254780f, 0.604543f, 0.563340f,-0.383911f); + + float4x4 invA = float4x4( 0.548951f, 0.126367f, 0.487260f,-1.327100f, + -0.582901f,-1.108000f, 0.188292f, 0.536211f, + 0.001968f, 0.970678f, 0.528701f, 0.669759f, + -1.279310f,-0.404277f, 0.748937f, 0.103102f); + + float4x4 r = inverse(a); + + float epsilon = 0.0001f; + Assert.AreEqual(invA.c0.x, r.c0.x, epsilon); + Assert.AreEqual(invA.c1.x, r.c1.x, epsilon); + Assert.AreEqual(invA.c2.x, r.c2.x, epsilon); + Assert.AreEqual(invA.c3.x, r.c3.x, epsilon); + + Assert.AreEqual(invA.c0.y, r.c0.y, epsilon); + Assert.AreEqual(invA.c1.y, r.c1.y, epsilon); + Assert.AreEqual(invA.c2.y, r.c2.y, epsilon); + Assert.AreEqual(invA.c3.y, r.c3.y, epsilon); + + Assert.AreEqual(invA.c0.z, r.c0.z, epsilon); + Assert.AreEqual(invA.c1.z, r.c1.z, epsilon); + Assert.AreEqual(invA.c2.z, r.c2.z, epsilon); + Assert.AreEqual(invA.c3.z, r.c3.z, epsilon); + + Assert.AreEqual(invA.c0.w, r.c0.w, epsilon); + Assert.AreEqual(invA.c1.w, r.c1.w, epsilon); + Assert.AreEqual(invA.c2.w, r.c2.w, epsilon); + Assert.AreEqual(invA.c3.w, r.c3.w, epsilon); + } } } diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index 8ef843ab..f5042b9c 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -181,7 +181,84 @@ public static float3x3 orthogonalize(float3x3 i) public static float2x2 transpose(float2x2 m) { return float2x2(m.c0.x, m.c0.y, m.c1.x, m.c1.y); } public static float3x3 transpose(float3x3 m) { return float3x3(m.c0.x, m.c0.y, m.c0.z, m.c1.x, m.c1.y, m.c1.z, m.c2.x, m.c2.y, m.c2.z); } - public static float4x4 transpose(float4x4 m) { return float4x4(m.c0.x, m.c0.y, m.c0.z, m.c0.w, m.c1.x, m.c1.y, m.c1.z, m.c1.w, m.c2.x, m.c2.y, m.c2.z, m.c2.w, m.c3.x, m.c3.y, m.c3.z, m.c3.w); } + public static float4x4 transpose(float4x4 m) { return float4x4(m.c0.x, m.c0.y, m.c0.z, m.c0.w, m.c1.x, m.c1.y, m.c1.z, m.c1.w, m.c2.x, m.c2.y, m.c2.z, m.c2.w, m.c3.x, m.c3.y, m.c3.z, m.c3.w); } + + public static float2x2 inverse(float2x2 m) + { + float a = m.c0.x; + float b = m.c1.x; + float c = m.c0.y; + float d = m.c1.y; + + float det = a * d - b * c; + + return float2x2( d, -b, + -c, a) * (1.0f / det); + } + + public static float3x3 inverse(float3x3 m) + { + // naive scalar implementation using direct calculation by cofactors + float3 c0 = m.c0; + float3 c1 = m.c1; + float3 c2 = m.c2; + + // calculate minors + float m00 = c1.y * c2.z - c1.z * c2.y; + float m01 = c0.y * c2.z - c0.z * c2.y; + float m02 = c0.y * c1.z - c0.z * c1.y; + + float m10 = c1.x * c2.z - c1.z * c2.x; + float m11 = c0.x * c2.z - c0.z * c2.x; + float m12 = c0.x * c1.z - c0.z * c1.x; + + float m20 = c1.x * c2.y - c1.y * c2.x; + float m21 = c0.x * c2.y - c0.y * c2.x; + float m22 = c0.x * c1.y - c0.y * c1.x; + + float det = c0.x * m00 - c1.x * m01 + c2.x * m02; + + return float3x3( m00, -m10, m20, + -m01, m11, -m21, + m02, -m12, m22) * (1.0f / det); + } + + public static float4x4 inverse(float4x4 m) + { + // naive scalar implementation using direct calculation by cofactors + float4 c0 = m.c0; + float4 c1 = m.c1; + float4 c2 = m.c2; + float4 c3 = m.c3; + + // calculate minors + float m00 = c1.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c1.z * c3.w - c1.w * c3.z) + c3.y * (c1.z * c2.w - c1.w * c2.z); + float m01 = c0.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c2.w - c0.w * c2.z); + float m02 = c0.y * (c1.z * c3.w - c1.w * c3.z) - c1.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c1.w - c0.w * c1.z); + float m03 = c0.y * (c1.z * c2.w - c1.w * c2.z) - c1.y * (c0.z * c2.w - c0.w * c2.z) + c2.y * (c0.z * c1.w - c0.w * c1.z); + + float m10 = c1.x * (c2.z * c3.w - c2.w * c3.z) - c2.x * (c1.z * c3.w - c1.w * c3.z) + c3.x * (c1.z * c2.w - c1.w * c2.z); + float m11 = c0.x * (c2.z * c3.w - c2.w * c3.z) - c2.x * (c0.z * c3.w - c0.w * c3.z) + c3.x * (c0.z * c2.w - c0.w * c2.z); + float m12 = c0.x * (c1.z * c3.w - c1.w * c3.z) - c1.x * (c0.z * c3.w - c0.w * c3.z) + c3.x * (c0.z * c1.w - c0.w * c1.z); + float m13 = c0.x * (c1.z * c2.w - c1.w * c2.z) - c1.x * (c0.z * c2.w - c0.w * c2.z) + c2.x * (c0.z * c1.w - c0.w * c1.z); + + float m20 = c1.x * (c2.y * c3.w - c2.w * c3.y) - c2.x * (c1.y * c3.w - c1.w * c3.y) + c3.x * (c1.y * c2.w - c1.w * c2.y); + float m21 = c0.x * (c2.y * c3.w - c2.w * c3.y) - c2.x * (c0.y * c3.w - c0.w * c3.y) + c3.x * (c0.y * c2.w - c0.w * c2.y); + float m22 = c0.x * (c1.y * c3.w - c1.w * c3.y) - c1.x * (c0.y * c3.w - c0.w * c3.y) + c3.x * (c0.y * c1.w - c0.w * c1.y); + float m23 = c0.x * (c1.y * c2.w - c1.w * c2.y) - c1.x * (c0.y * c2.w - c0.w * c2.y) + c2.x * (c0.y * c1.w - c0.w * c1.y); + + float m30 = c1.x * (c2.y * c3.z - c2.z * c3.y) - c2.x * (c1.y * c3.z - c1.z * c3.y) + c3.x * (c1.y * c2.z - c1.z * c2.y); + float m31 = c0.x * (c2.y * c3.z - c2.z * c3.y) - c2.x * (c0.y * c3.z - c0.z * c3.y) + c3.x * (c0.y * c2.z - c0.z * c2.y); + float m32 = c0.x * (c1.y * c3.z - c1.z * c3.y) - c1.x * (c0.y * c3.z - c0.z * c3.y) + c3.x * (c0.y * c1.z - c0.z * c1.y); + float m33 = c0.x * (c1.y * c2.z - c1.z * c2.y) - c1.x * (c0.y * c2.z - c0.z * c2.y) + c2.x * (c0.y * c1.z - c0.z * c1.y); + + float det = c0.x * m00 - c1.x * m01 + c2.x * m02 - c3.x * m03; + + return float4x4( m00, -m10, m20, -m30, + -m01, m11, -m21, m31, + m02, -m12, m22, -m32, + -m03, m13, -m23, m33) * (1.0f / det); + } public static float4x4 scale(float3 vector) { From 8b0b43ffe749f8926a67bd1edd4c627e17f49ea9 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Tue, 5 Jun 2018 10:58:32 +0200 Subject: [PATCH 012/437] Fix file TestMatrix.cs, change encoding to LF and add .meta --- src/Unity.Mathematics.Tests/TestMatrix.cs | 128 +++++++++--------- .../TestMatrix.cs.meta | 11 ++ 2 files changed, 75 insertions(+), 64 deletions(-) create mode 100644 src/Unity.Mathematics.Tests/TestMatrix.cs.meta diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 29551cfc..00d402b5 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -1,31 +1,31 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; using NUnit.Framework; -using static Unity.Mathematics.math; - -namespace Unity.Mathematics.Tests -{ - [TestFixture] - class TestMatrix +using static Unity.Mathematics.math; + +namespace Unity.Mathematics.Tests +{ + [TestFixture] + class TestMatrix { - [Test] - public void float2x2_constructor_columns() - { + [Test] + public void float2x2_constructor_columns() + { float2x2 a = float2x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f)); - + Assert.AreEqual(a.c0.x, 1.0f); Assert.AreEqual(a.c0.y, 2.0f); Assert.AreEqual(a.c1.x, 3.0f); - Assert.AreEqual(a.c1.y, 4.0f); + Assert.AreEqual(a.c1.y, 4.0f); } - [Test] - public void float3x3_constructor_columns() - { + [Test] + public void float3x3_constructor_columns() + { float3x3 a = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); @@ -41,9 +41,9 @@ public void float3x3_constructor_columns() Assert.AreEqual(a.c2.z, 9.0f); } - [Test] - public void float4x4_constructor_columns() - { + [Test] + public void float4x4_constructor_columns() + { float4x4 a = float4x4(float4( 1.0f, 2.0f, 3.0f, 4.0f), float4( 5.0f, 6.0f, 7.0f, 8.0f), float4( 9.0f, 10.0f, 11.0f, 12.0f), @@ -67,21 +67,21 @@ public void float4x4_constructor_columns() Assert.AreEqual(a.c3.w, 16.0f); } - [Test] - public void float2x2_constructor_scalars() - { + [Test] + public void float2x2_constructor_scalars() + { float2x2 a = float2x2(1.0f, 2.0f, 3.0f, 4.0f); Assert.AreEqual(a.c0.x, 1.0f); Assert.AreEqual(a.c1.x, 2.0f); Assert.AreEqual(a.c0.y, 3.0f); - Assert.AreEqual(a.c1.y, 4.0f); + Assert.AreEqual(a.c1.y, 4.0f); } - [Test] - public void float3x3_constructor_scalars() - { + [Test] + public void float3x3_constructor_scalars() + { float3x3 a = float3x3(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f); @@ -94,12 +94,12 @@ public void float3x3_constructor_scalars() Assert.AreEqual(a.c2.y, 6.0f); Assert.AreEqual(a.c0.z, 7.0f); Assert.AreEqual(a.c1.z, 8.0f); - Assert.AreEqual(a.c2.z, 9.0f); + Assert.AreEqual(a.c2.z, 9.0f); } - [Test] - public void float4x4_constructor_scalars() - { + [Test] + public void float4x4_constructor_scalars() + { float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f, @@ -120,7 +120,7 @@ public void float4x4_constructor_scalars() Assert.AreEqual(a.c0.w, 13.0f); Assert.AreEqual(a.c1.w, 14.0f); Assert.AreEqual(a.c2.w, 15.0f); - Assert.AreEqual(a.c3.w, 16.0f); + Assert.AreEqual(a.c3.w, 16.0f); } [Test] @@ -171,10 +171,10 @@ public void float4x4_identity() } - [Test] - public void float2x2_matrix_mul() + [Test] + public void float2x2_matrix_mul() { - // http://www.wolframalpha.com/input/?i=%5B%5B1,2%5D,%5B3,4%5D%5D*%5B%5B21,22%5D,%5B23,24%5D%5D + // http://www.wolframalpha.com/input/?i=%5B%5B1,2%5D,%5B3,4%5D%5D*%5B%5B21,22%5D,%5B23,24%5D%5D float2x2 a = float2x2(1.0f, 2.0f, 3.0f, 4.0f); @@ -186,13 +186,13 @@ public void float2x2_matrix_mul() Assert.AreEqual(c.c1.x, 70.0f); Assert.AreEqual(c.c0.y, 155.0f); - Assert.AreEqual(c.c1.y, 162.0f); + Assert.AreEqual(c.c1.y, 162.0f); } - [Test] - public void float3x3_matrix_mul() + [Test] + public void float3x3_matrix_mul() { - // http://www.wolframalpha.com/input/?i=%5B%5B1,2,3%5D,%5B4,5,6%5D,%5B7,8,9%5D%5D*%5B%5B21,22,23%5D,%5B24,25,26%5D,%5B27,28,29%5D%5D + // http://www.wolframalpha.com/input/?i=%5B%5B1,2,3%5D,%5B4,5,6%5D,%5B7,8,9%5D%5D*%5B%5B21,22,23%5D,%5B24,25,26%5D,%5B27,28,29%5D%5D float3x3 a = float3x3(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f); @@ -205,21 +205,21 @@ public void float3x3_matrix_mul() Assert.AreEqual(c.c0.x, 150.0f); Assert.AreEqual(c.c1.x, 156.0f); Assert.AreEqual(c.c2.x, 162.0f); - + Assert.AreEqual(c.c0.y, 366.0f); Assert.AreEqual(c.c1.y, 381.0f); Assert.AreEqual(c.c2.y, 396.0f); - + Assert.AreEqual(c.c0.z, 582.0f); Assert.AreEqual(c.c1.z, 606.0f); - Assert.AreEqual(c.c2.z, 630.0f); + Assert.AreEqual(c.c2.z, 630.0f); } - - [Test] - public void float4x4_matrix_mul() + + [Test] + public void float4x4_matrix_mul() { // https://fogbugz.unity3d.com/f/cases/1041176/ - // http://www.wolframalpha.com/input/?i=%5B%5B1,2,3,4%5D,%5B5,6,7,8%5D,%5B9,10,11,12%5D,%5B13,14,15,16%5D%5D*%5B%5B21,22,23,24%5D,%5B25,26,27,28%5D,%5B29,30,31,32%5D,%5B33,34,35,36%5D%5D + // http://www.wolframalpha.com/input/?i=%5B%5B1,2,3,4%5D,%5B5,6,7,8%5D,%5B9,10,11,12%5D,%5B13,14,15,16%5D%5D*%5B%5B21,22,23,24%5D,%5B25,26,27,28%5D,%5B29,30,31,32%5D,%5B33,34,35,36%5D%5D float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f,10.0f,11.0f,12.0f, @@ -249,11 +249,11 @@ public void float4x4_matrix_mul() Assert.AreEqual(c.c0.w, 1586.0f); Assert.AreEqual(c.c1.w, 1644.0f); Assert.AreEqual(c.c2.w, 1702.0f); - Assert.AreEqual(c.c3.w, 1760.0f); + Assert.AreEqual(c.c3.w, 1760.0f); } - [Test] - public void float2x2_transpose() + [Test] + public void float2x2_transpose() { float2x2 a = float2x2(1.0f, 2.0f, 3.0f, 4.0f); @@ -263,11 +263,11 @@ public void float2x2_transpose() Assert.AreEqual(b.c0.x, 1.0f); Assert.AreEqual(b.c1.x, 3.0f); Assert.AreEqual(b.c0.y, 2.0f); - Assert.AreEqual(b.c1.y, 4.0f); + Assert.AreEqual(b.c1.y, 4.0f); } - [Test] - public void float3x3_transpose() + [Test] + public void float3x3_transpose() { float3x3 a = float3x3(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, @@ -283,11 +283,11 @@ public void float3x3_transpose() Assert.AreEqual(b.c2.y, 8.0f); Assert.AreEqual(b.c0.z, 3.0f); Assert.AreEqual(b.c1.z, 6.0f); - Assert.AreEqual(b.c2.z, 9.0f); + Assert.AreEqual(b.c2.z, 9.0f); } - [Test] - public void float4x4_transpose() + [Test] + public void float4x4_transpose() { float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, @@ -311,7 +311,7 @@ public void float4x4_transpose() Assert.AreEqual(b.c0.w, 4.0f); Assert.AreEqual(b.c1.w, 8.0f); Assert.AreEqual(b.c2.w, 12.0f); - Assert.AreEqual(b.c3.w, 16.0f); + Assert.AreEqual(b.c3.w, 16.0f); } [Test] @@ -322,13 +322,13 @@ public void float2x2_inverse() float2x2 invA = float2x2( 3.49499f, 3.32281f, -1.03492f, -2.08004f); - + float2x2 r = inverse(a); float epsilon = 0.0001f; Assert.AreEqual(invA.c0.x, r.c0.x, epsilon); Assert.AreEqual(invA.c1.x, r.c1.x, epsilon); - + Assert.AreEqual(invA.c0.y, r.c0.y, epsilon); Assert.AreEqual(invA.c1.y, r.c1.y, epsilon); } @@ -350,11 +350,11 @@ public void float3x3_inverse() Assert.AreEqual(invA.c0.x, r.c0.x, epsilon); Assert.AreEqual(invA.c1.x, r.c1.x, epsilon); Assert.AreEqual(invA.c2.x, r.c2.x, epsilon); - + Assert.AreEqual(invA.c0.y, r.c0.y, epsilon); Assert.AreEqual(invA.c1.y, r.c1.y, epsilon); Assert.AreEqual(invA.c2.y, r.c2.y, epsilon); - + Assert.AreEqual(invA.c0.z, r.c0.z, epsilon); Assert.AreEqual(invA.c1.z, r.c1.z, epsilon); Assert.AreEqual(invA.c2.z, r.c2.z, epsilon); @@ -396,5 +396,5 @@ public void float4x4_inverse() Assert.AreEqual(invA.c2.w, r.c2.w, epsilon); Assert.AreEqual(invA.c3.w, r.c3.w, epsilon); } - } -} + } +} diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs.meta b/src/Unity.Mathematics.Tests/TestMatrix.cs.meta new file mode 100644 index 00000000..5f6d6b36 --- /dev/null +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 18E46637FBFA4901B346BE3500A955F9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: From 23babd8ba452112a8f4ed49f627efbb5921ec2bb Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Tue, 5 Jun 2018 11:26:08 +0200 Subject: [PATCH 013/437] Revert math.identity2(), identity3(), identity4() to static readonly fields --- src/Unity.Mathematics.Tests/TestMatrix.cs | 6 +++--- src/Unity.Mathematics/matrix.cs | 24 +++++++---------------- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 00d402b5..041fd9aa 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -126,7 +126,7 @@ public void float4x4_constructor_scalars() [Test] public void float2x2_identity() { - float2x2 a = identity2(); + float2x2 a = identity2; Assert.AreEqual(a.c0.x, 1.0f); Assert.AreEqual(a.c1.x, 0.0f); Assert.AreEqual(a.c0.y, 0.0f); @@ -136,7 +136,7 @@ public void float2x2_identity() [Test] public void float3x3_identity() { - float3x3 a = identity3(); + float3x3 a = identity3; Assert.AreEqual(a.c0.x, 1.0f); Assert.AreEqual(a.c1.x, 0.0f); Assert.AreEqual(a.c2.x, 0.0f); @@ -151,7 +151,7 @@ public void float3x3_identity() [Test] public void float4x4_identity() { - float4x4 a = identity4(); + float4x4 a = identity4; Assert.AreEqual(a.c0.x, 1.0f); Assert.AreEqual(a.c1.x, 0.0f); Assert.AreEqual(a.c2.x, 0.0f); diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index f5042b9c..d1119de5 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -278,27 +278,17 @@ public static float4x4 translate(float3 vector) const float epsilon = 0.000001F; - public static float2x2 identity2() - { - return float2x2(1.0f, 0.0f, - 0.0f, 1.0f); - } + public static readonly float2x2 identity2 = new float2x2(1.0f, 0.0f, 0.0f, 1.0f); - public static float3x3 identity3() - { - return float3x3(1.0f, 0.0f, 0.0f, + public static readonly float3x3 identity3= new float3x3(1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f); - } - public static float4x4 identity4() - { - return float4x4(1.0f, 0.0f, 0.0f, 0.0f, + public static readonly float4x4 identity4 = new float4x4(1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f); - } - + public static float4x4 lookRotationToMatrix(float3 position, float3 forward, float3 up) { float3x3 rot = lookRotationToMatrix(forward, up); @@ -317,19 +307,19 @@ public static float3x3 lookRotationToMatrix(float3 forward, float3 up) // compute u0 float mag = math.length(z); if (mag < epsilon) - return identity3(); + return identity3; z /= mag; float3 x = math.cross(up, z); mag = math.length(x); if (mag < epsilon) - return identity3(); + return identity3; x /= mag; float3 y = math.cross(z, x); float yLength = math.length(y); if (yLength < 0.9F || yLength > 1.1F) - return identity3(); + return identity3; return float3x3(x, y, z); } From 33bec99104a206943d56bc92ac55e44fd82e5616 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Tue, 5 Jun 2018 11:31:06 +0200 Subject: [PATCH 014/437] Move math.identity2,3,4 to float2x2, float3x3, float4x4 --- src/Unity.Mathematics.Tests/TestMatrix.cs | 6 ++--- src/Unity.Mathematics/matrix.cs | 33 ++++++++++++----------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 041fd9aa..7395ae24 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -126,7 +126,7 @@ public void float4x4_constructor_scalars() [Test] public void float2x2_identity() { - float2x2 a = identity2; + float2x2 a = float2x2.identity; Assert.AreEqual(a.c0.x, 1.0f); Assert.AreEqual(a.c1.x, 0.0f); Assert.AreEqual(a.c0.y, 0.0f); @@ -136,7 +136,7 @@ public void float2x2_identity() [Test] public void float3x3_identity() { - float3x3 a = identity3; + float3x3 a = float3x3.identity; Assert.AreEqual(a.c0.x, 1.0f); Assert.AreEqual(a.c1.x, 0.0f); Assert.AreEqual(a.c2.x, 0.0f); @@ -151,7 +151,7 @@ public void float3x3_identity() [Test] public void float4x4_identity() { - float4x4 a = identity4; + float4x4 a = float4x4.identity; Assert.AreEqual(a.c0.x, 1.0f); Assert.AreEqual(a.c1.x, 0.0f); Assert.AreEqual(a.c2.x, 0.0f); diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index d1119de5..dbb6bfab 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -20,6 +20,8 @@ public float2x2(float m00, float m01, this.c1 = float2(m01, m11); } + public static readonly float2x2 identity = new float2x2(1.0f, 0.0f, 0.0f, 1.0f); + public static float2x2 operator *(float2x2 mat, float s) { return float2x2(mat.c0 * s, mat.c1 * s); @@ -48,6 +50,10 @@ public float3x3(float m00, float m01, float m02, this.c2 = float3(m02, m12, m22); } + public static readonly float3x3 identity = new float3x3(1.0f, 0.0f, 0.0f, + 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 1.0f); + public static float3x3 operator *(float3x3 mat, float s) { return float3x3(mat.c0 * s, mat.c1 * s, mat.c2 * s); @@ -78,7 +84,13 @@ public float4x4(float m00, float m01, float m02, float m03, this.c1 = float4(m01, m11, m21, m31); this.c2 = float4(m02, m12, m22, m32); this.c3 = float4(m03, m13, m23, m33); - } + } + + public static readonly float4x4 identity = new float4x4(1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f); + public static float4x4 operator *(float4x4 mat, float s) { @@ -87,7 +99,7 @@ public float4x4(float m00, float m01, float m02, float m03, } partial class math - { + { public static float2x2 float2x2(float2 c0, float2 c1) { return new float2x2(c0, c1); @@ -277,17 +289,6 @@ public static float4x4 translate(float3 vector) } const float epsilon = 0.000001F; - - public static readonly float2x2 identity2 = new float2x2(1.0f, 0.0f, 0.0f, 1.0f); - - public static readonly float3x3 identity3= new float3x3(1.0f, 0.0f, 0.0f, - 0.0f, 1.0f, 0.0f, - 0.0f, 0.0f, 1.0f); - - public static readonly float4x4 identity4 = new float4x4(1.0f, 0.0f, 0.0f, 0.0f, - 0.0f, 1.0f, 0.0f, 0.0f, - 0.0f, 0.0f, 1.0f, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f); public static float4x4 lookRotationToMatrix(float3 position, float3 forward, float3 up) { @@ -307,19 +308,19 @@ public static float3x3 lookRotationToMatrix(float3 forward, float3 up) // compute u0 float mag = math.length(z); if (mag < epsilon) - return identity3; + return Mathematics.float3x3.identity; z /= mag; float3 x = math.cross(up, z); mag = math.length(x); if (mag < epsilon) - return identity3; + return Mathematics.float3x3.identity; x /= mag; float3 y = math.cross(z, x); float yLength = math.length(y); if (yLength < 0.9F || yLength > 1.1F) - return identity3; + return Mathematics.float3x3.identity; return float3x3(x, y, z); } From 0bcc31814e5c591052fcf1b83c268a35889cb58d Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Wed, 13 Jun 2018 10:39:53 +0200 Subject: [PATCH 015/437] Added float4 shuffle and shuffle-based matrix transpose --- src/Unity.Mathematics/math.cs | 52 +++++++++++++++++++++++++++++++-- src/Unity.Mathematics/matrix.cs | 23 +++++++++++++-- 2 files changed, 71 insertions(+), 4 deletions(-) diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 80206f2a..37a51337 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -9,7 +9,19 @@ namespace Unity.Mathematics { public static partial class math - { + { + public enum ShuffleComponent + { + LeftX, + LeftY, + LeftZ, + LeftW, + RightX, + RightY, + RightZ, + RightW + }; + // min [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float min(float a, float b) { return float.IsNaN(b) || a < b ? a : b; } @@ -414,7 +426,43 @@ public static float4 smoothstep(float4 a, float4 b, float4 x) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 select(float3 a, float3 b, bool3 c) { return new float3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 select(float4 a, float4 b, bool4 c) { return new float4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } + public static float4 select(float4 a, float4 b, bool4 c) { return new float4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static float pickShuffleComponent(float4 a, float4 b, ShuffleComponent component) + { + switch(component) + { + case ShuffleComponent.LeftX: + return a.x; + case ShuffleComponent.LeftY: + return a.y; + case ShuffleComponent.LeftZ: + return a.z; + case ShuffleComponent.LeftW: + return a.w; + case ShuffleComponent.RightX: + return b.x; + case ShuffleComponent.RightY: + return b.y; + case ShuffleComponent.RightZ: + return b.z; + case ShuffleComponent.RightW: + return b.w; + default: + throw new System.ArgumentException("Invalid shuffle component: " + (int)component); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 shuffle(float4 a, float4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + { + // Naive implementation for non-burst + return float4( pickShuffleComponent(a, b, x), + pickShuffleComponent(a, b, y), + pickShuffleComponent(a, b, z), + pickShuffleComponent(a, b, w)); + } //Step [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index dbb6bfab..7e085d98 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -192,8 +192,27 @@ public static float3x3 orthogonalize(float3x3 i) } public static float2x2 transpose(float2x2 m) { return float2x2(m.c0.x, m.c0.y, m.c1.x, m.c1.y); } - public static float3x3 transpose(float3x3 m) { return float3x3(m.c0.x, m.c0.y, m.c0.z, m.c1.x, m.c1.y, m.c1.z, m.c2.x, m.c2.y, m.c2.z); } - public static float4x4 transpose(float4x4 m) { return float4x4(m.c0.x, m.c0.y, m.c0.z, m.c0.w, m.c1.x, m.c1.y, m.c1.z, m.c1.w, m.c2.x, m.c2.y, m.c2.z, m.c2.w, m.c3.x, m.c3.y, m.c3.z, m.c3.w); } + public static float3x3 transpose(float3x3 m) { return float3x3(m.c0.x, m.c0.y, m.c0.z, m.c1.x, m.c1.y, m.c1.z, m.c2.x, m.c2.y, m.c2.z); } + // public static float4x4 transpose(float4x4 m) { return float4x4(m.c0.x, m.c0.y, m.c0.z, m.c0.w, m.c1.x, m.c1.y, m.c1.z, m.c1.w, m.c2.x, m.c2.y, m.c2.z, m.c2.w, m.c3.x, m.c3.y, m.c3.z, m.c3.w); } + + public static float4 unpacklo(float4 a, float4 b) + { + return shuffle(a, b, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.LeftY, ShuffleComponent.RightY); + } + + public static float4 unpackhi(float4 a, float4 b) + { + return shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftW, ShuffleComponent.RightW); + } + + public static float4x4 transpose(float4x4 m) + { + float4 t0 = unpacklo(m.c0, m.c2); + float4 t1 = unpacklo(m.c1, m.c3); + float4 t2 = unpackhi(m.c0, m.c2); + float4 t3 = unpackhi(m.c1, m.c3); + return float4x4(unpacklo(t0, t1), unpackhi(t0, t1), unpacklo(t2, t3), unpackhi(t2, t3)); + } public static float2x2 inverse(float2x2 m) { From e10b5539820f1f4d0a946cec0096cab2043b5c02 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Wed, 13 Jun 2018 10:58:39 +0200 Subject: [PATCH 016/437] Update gitattributes lineending to use auto --- .gitattributes | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitattributes b/.gitattributes index dfdb8b77..c3b3c2bb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,10 @@ +# Set default behavior to automatically normalize line endings. +* text=auto + +# shell files should always be LF *.sh text eol=lf + +# Unity files +*.asset text eol=lf +*.meta text eol=lf + From 3b0ef165cfdc789a1363e3f3b4342e53b6e1cf54 Mon Sep 17 00:00:00 2001 From: Date: Wed, 13 Jun 2018 10:59:51 +0200 Subject: [PATCH 017/437] Normalize line endings --- .gitignore | 444 +++++----- src/.npmignore | 32 +- .../VectorGenerator.cs | 234 ++--- src/Unity.Mathematics.Tests/TestMatrix.cs | 800 +++++++++--------- .../Unity.Mathematics.Tests.asmdef | 24 +- .../Unity.Mathematics.Tests.csproj | 132 +-- src/Unity.Mathematics/int4.cs | 4 +- src/Unity.Mathematics/math.cs | 96 +-- src/Unity.Mathematics/matrix.cs | 298 +++---- 9 files changed, 1032 insertions(+), 1032 deletions(-) diff --git a/.gitignore b/.gitignore index b414983b..4d60d6ed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,222 +1,222 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -build/ -bld/ -[Bb]in/ -[Oo]bj/ - -# Visual Studio 2015 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUNIT -*.VisualState.xml -TestResult.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# DNX -project.lock.json -artifacts/ - -*_i.c -*_p.c -*_i.h -*.ilk -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opensdf -*.sdf -*.cachefile - -# Visual Studio profiler -*.psess -*.vsp -*.vspx - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# JustCode is a .NET coding add-in -.JustCode - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# TODO: Comment the next line if you want to checkin your web deploy settings -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# NuGet Packages -*.nupkg -# The packages folder can be ignored because of Package Restore -**/packages/* -# except build/, which is used as an MSBuild target. -!**/packages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/packages/repositories.config - -# Windows Azure Build Output -csx/ -*.build.csdef - -# Windows Store app package directory -AppPackages/ - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!*.[Cc]ache/ - -# Others -ClientBin/ -[Ss]tyle[Cc]op.* -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.pfx -*.publishsettings -node_modules/ -orleans.codegen.cs - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -*.mdf -*.ldf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings - -# Microsoft Fakes -FakesAssemblies/ - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# LLVM extracted file -ext/llvm/win64_debug/ -ext/llvm/win64_release/ -ext/llvm/macos/ -*.idea -.DS_Store +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +build/ +bld/ +[Bb]in/ +[Oo]bj/ + +# Visual Studio 2015 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# DNX +project.lock.json +artifacts/ + +*_i.c +*_p.c +*_i.h +*.ilk +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf +*.cachefile + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# TODO: Comment the next line if you want to checkin your web deploy settings +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/packages/* +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config + +# Windows Azure Build Output +csx/ +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +[Ss]tyle[Cc]op.* +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.pfx +*.publishsettings +node_modules/ +orleans.codegen.cs + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# LLVM extracted file +ext/llvm/win64_debug/ +ext/llvm/win64_release/ +ext/llvm/macos/ +*.idea +.DS_Store diff --git a/src/.npmignore b/src/.npmignore index 0d787c0f..e9bcc15b 100755 --- a/src/.npmignore +++ b/src/.npmignore @@ -1,16 +1,16 @@ -artifacts/** -build/** -Documentation/ApiDocs/** -.DS_Store -.npmrc -.npmignore -.gitignore -QAReport.md -QAReport.md.meta -Unity.Mathematics.CodeGen -Unity.Mathematics.Shaders -*.sln -*.db -**/*.csproj -**/Properties -**/packages.config +artifacts/** +build/** +Documentation/ApiDocs/** +.DS_Store +.npmrc +.npmignore +.gitignore +QAReport.md +QAReport.md.meta +Unity.Mathematics.CodeGen +Unity.Mathematics.Shaders +*.sln +*.db +**/*.csproj +**/Properties +**/packages.config diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index e0ffe461..eac339e3 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -74,7 +74,7 @@ public static void Write(string dir) public void Generate(int count, StringBuilder str) - { + { StringBuilder staticConstructorStr = new StringBuilder(); str.Append("// GENERATED CODE\n"); str.Append("using System.Runtime.CompilerServices;\n"); @@ -83,128 +83,128 @@ public void Generate(int count, StringBuilder str) str.Append("{\n"); str.AppendFormat("\tpublic partial struct {0} : System.IEquatable<{0}>\n", m_Types[count - 1]); str.Append("\t{\n"); - + GenerateConstructors(count, str, staticConstructorStr); GenerateOperators(count, str); GenerateSwizzles(count, str); - str.Append("\t}\n\n"); - + str.Append("\t}\n\n"); + str.Append("\tpublic static partial class math\n"); - str.Append("\t{\n"); - str.Append(staticConstructorStr); + str.Append("\t{\n"); + str.Append(staticConstructorStr); str.Append("\t}\n}\n"); - } - - private string GenerateComponentRangeString(int componentIndex, int numComponents) - { - string result = ""; - for(int i = 0; i < numComponents; i++) - { - result += fields[componentIndex + i]; - } - return result; - } - - // Generate constructor and static constructor with a given component partitioning of input parameters - private void GenerateConstructor(int numComponents, int numParameters, int[] parameterComponents, StringBuilder constructorStr, StringBuilder staticConstructorStr) - { - // Generate signatures - string typeName = m_Types[numComponents - 1]; - constructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); - constructorStr.Append("\t\tpublic "); - constructorStr.Append(typeName); - constructorStr.Append("("); - staticConstructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); - staticConstructorStr.Append("\t\tpublic static "); - staticConstructorStr.Append(typeName); - staticConstructorStr.Append(" "); - staticConstructorStr.Append(typeName); - staticConstructorStr.Append("("); - - int componentIndex = 0; - for (int i = 0; i < numParameters; i++) - { - if (i != 0) - { - constructorStr.Append(", "); - staticConstructorStr.Append(", "); - } - - - int paramComponents = parameterComponents[i]; - string paramType = m_Types[paramComponents - 1]; - string componentString = GenerateComponentRangeString(componentIndex, paramComponents); - - constructorStr.Append(paramType); - constructorStr.Append(" "); - constructorStr.Append(componentString); - staticConstructorStr.Append(paramType); - staticConstructorStr.Append(" "); - staticConstructorStr.Append(componentString); - componentIndex += paramComponents; - } - constructorStr.Append(")\n"); - staticConstructorStr.Append(")"); - - // Generate function bodies - constructorStr.Append("\t\t{ "); - staticConstructorStr.Append(" { return new "); - staticConstructorStr.Append(typeName); - staticConstructorStr.Append("("); - - componentIndex = 0; - for (int i = 0; i < numParameters; i++) - { - int paramComponents = parameterComponents[i]; - string componentString = GenerateComponentRangeString(componentIndex, paramComponents); - for (int j = 0; j < paramComponents; j++) - { - constructorStr.Append("\n\t\t\tthis."); - constructorStr.Append(fields[componentIndex]); - constructorStr.Append(" = "); - constructorStr.Append(componentString); - if (paramComponents > 1) - { - constructorStr.Append("."); - constructorStr.Append(fields[j]); - } - constructorStr.Append(";"); - componentIndex++; - } - - if (i != 0) - { - staticConstructorStr.Append(", "); - } - staticConstructorStr.Append(componentString); - } - - constructorStr.Append("\n\t\t}\n\n"); - staticConstructorStr.Append("); }\n\n"); - } - - // Recursively generate all constructor variants with every possibly partition or the components - private void GenerateConstructors(int numRemainingComponents, int numComponents, int numParameters, int[] parameterComponents, StringBuilder constructorStr, StringBuilder staticConstructorStr) - { - if (numRemainingComponents == 0) - { - GenerateConstructor(numComponents, numParameters, parameterComponents, constructorStr, staticConstructorStr); - } - - for(int i = 1; i <= numRemainingComponents; i++) - { - parameterComponents[numParameters] = i; - GenerateConstructors(numRemainingComponents - i, numComponents, numParameters + 1, parameterComponents, constructorStr, staticConstructorStr); - } - } - - public void GenerateConstructors(int count, StringBuilder constructorStr, StringBuilder staticConstructorStr) - { - constructorStr.Append("\t\t// constructors\n"); - int[] parameterComponenets = new int[4]; - GenerateConstructors(count, count, 0, parameterComponenets, constructorStr, staticConstructorStr); - } + } + + private string GenerateComponentRangeString(int componentIndex, int numComponents) + { + string result = ""; + for(int i = 0; i < numComponents; i++) + { + result += fields[componentIndex + i]; + } + return result; + } + + // Generate constructor and static constructor with a given component partitioning of input parameters + private void GenerateConstructor(int numComponents, int numParameters, int[] parameterComponents, StringBuilder constructorStr, StringBuilder staticConstructorStr) + { + // Generate signatures + string typeName = m_Types[numComponents - 1]; + constructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); + constructorStr.Append("\t\tpublic "); + constructorStr.Append(typeName); + constructorStr.Append("("); + staticConstructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); + staticConstructorStr.Append("\t\tpublic static "); + staticConstructorStr.Append(typeName); + staticConstructorStr.Append(" "); + staticConstructorStr.Append(typeName); + staticConstructorStr.Append("("); + + int componentIndex = 0; + for (int i = 0; i < numParameters; i++) + { + if (i != 0) + { + constructorStr.Append(", "); + staticConstructorStr.Append(", "); + } + + + int paramComponents = parameterComponents[i]; + string paramType = m_Types[paramComponents - 1]; + string componentString = GenerateComponentRangeString(componentIndex, paramComponents); + + constructorStr.Append(paramType); + constructorStr.Append(" "); + constructorStr.Append(componentString); + staticConstructorStr.Append(paramType); + staticConstructorStr.Append(" "); + staticConstructorStr.Append(componentString); + componentIndex += paramComponents; + } + constructorStr.Append(")\n"); + staticConstructorStr.Append(")"); + + // Generate function bodies + constructorStr.Append("\t\t{ "); + staticConstructorStr.Append(" { return new "); + staticConstructorStr.Append(typeName); + staticConstructorStr.Append("("); + + componentIndex = 0; + for (int i = 0; i < numParameters; i++) + { + int paramComponents = parameterComponents[i]; + string componentString = GenerateComponentRangeString(componentIndex, paramComponents); + for (int j = 0; j < paramComponents; j++) + { + constructorStr.Append("\n\t\t\tthis."); + constructorStr.Append(fields[componentIndex]); + constructorStr.Append(" = "); + constructorStr.Append(componentString); + if (paramComponents > 1) + { + constructorStr.Append("."); + constructorStr.Append(fields[j]); + } + constructorStr.Append(";"); + componentIndex++; + } + + if (i != 0) + { + staticConstructorStr.Append(", "); + } + staticConstructorStr.Append(componentString); + } + + constructorStr.Append("\n\t\t}\n\n"); + staticConstructorStr.Append("); }\n\n"); + } + + // Recursively generate all constructor variants with every possibly partition or the components + private void GenerateConstructors(int numRemainingComponents, int numComponents, int numParameters, int[] parameterComponents, StringBuilder constructorStr, StringBuilder staticConstructorStr) + { + if (numRemainingComponents == 0) + { + GenerateConstructor(numComponents, numParameters, parameterComponents, constructorStr, staticConstructorStr); + } + + for(int i = 1; i <= numRemainingComponents; i++) + { + parameterComponents[numParameters] = i; + GenerateConstructors(numRemainingComponents - i, numComponents, numParameters + 1, parameterComponents, constructorStr, staticConstructorStr); + } + } + + public void GenerateConstructors(int count, StringBuilder constructorStr, StringBuilder staticConstructorStr) + { + constructorStr.Append("\t\t// constructors\n"); + int[] parameterComponenets = new int[4]; + GenerateConstructors(count, count, 0, parameterComponenets, constructorStr, staticConstructorStr); + } public void GenerateOperators(int count, StringBuilder str) { diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 7395ae24..9368123d 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -1,400 +1,400 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using NUnit.Framework; -using static Unity.Mathematics.math; - -namespace Unity.Mathematics.Tests -{ - [TestFixture] - class TestMatrix - { - [Test] - public void float2x2_constructor_columns() - { - float2x2 a = float2x2(float2(1.0f, 2.0f), - float2(3.0f, 4.0f)); - - Assert.AreEqual(a.c0.x, 1.0f); - Assert.AreEqual(a.c0.y, 2.0f); - Assert.AreEqual(a.c1.x, 3.0f); - Assert.AreEqual(a.c1.y, 4.0f); - } - - [Test] - public void float3x3_constructor_columns() - { - float3x3 a = float3x3(float3(1.0f, 2.0f, 3.0f), - float3(4.0f, 5.0f, 6.0f), - float3(7.0f, 8.0f, 9.0f)); - - Assert.AreEqual(a.c0.x, 1.0f); - Assert.AreEqual(a.c0.y, 2.0f); - Assert.AreEqual(a.c0.z, 3.0f); - Assert.AreEqual(a.c1.x, 4.0f); - Assert.AreEqual(a.c1.y, 5.0f); - Assert.AreEqual(a.c1.z, 6.0f); - Assert.AreEqual(a.c2.x, 7.0f); - Assert.AreEqual(a.c2.y, 8.0f); - Assert.AreEqual(a.c2.z, 9.0f); - } - - [Test] - public void float4x4_constructor_columns() - { - float4x4 a = float4x4(float4( 1.0f, 2.0f, 3.0f, 4.0f), - float4( 5.0f, 6.0f, 7.0f, 8.0f), - float4( 9.0f, 10.0f, 11.0f, 12.0f), - float4(13.0f, 14.0f, 15.0f, 16.0f)); - - Assert.AreEqual(a.c0.x, 1.0f); - Assert.AreEqual(a.c0.y, 2.0f); - Assert.AreEqual(a.c0.z, 3.0f); - Assert.AreEqual(a.c0.w, 4.0f); - Assert.AreEqual(a.c1.x, 5.0f); - Assert.AreEqual(a.c1.y, 6.0f); - Assert.AreEqual(a.c1.z, 7.0f); - Assert.AreEqual(a.c1.w, 8.0f); - Assert.AreEqual(a.c2.x, 9.0f); - Assert.AreEqual(a.c2.y, 10.0f); - Assert.AreEqual(a.c2.z, 11.0f); - Assert.AreEqual(a.c2.w, 12.0f); - Assert.AreEqual(a.c3.x, 13.0f); - Assert.AreEqual(a.c3.y, 14.0f); - Assert.AreEqual(a.c3.z, 15.0f); - Assert.AreEqual(a.c3.w, 16.0f); - } - - [Test] - public void float2x2_constructor_scalars() - { - float2x2 a = float2x2(1.0f, 2.0f, - 3.0f, 4.0f); - - Assert.AreEqual(a.c0.x, 1.0f); - Assert.AreEqual(a.c1.x, 2.0f); - Assert.AreEqual(a.c0.y, 3.0f); - Assert.AreEqual(a.c1.y, 4.0f); - } - - [Test] - public void float3x3_constructor_scalars() - { - float3x3 a = float3x3(1.0f, 2.0f, 3.0f, - 4.0f, 5.0f, 6.0f, - 7.0f, 8.0f, 9.0f); - - Assert.AreEqual(a.c0.x, 1.0f); - Assert.AreEqual(a.c1.x, 2.0f); - Assert.AreEqual(a.c2.x, 3.0f); - Assert.AreEqual(a.c0.y, 4.0f); - Assert.AreEqual(a.c1.y, 5.0f); - Assert.AreEqual(a.c2.y, 6.0f); - Assert.AreEqual(a.c0.z, 7.0f); - Assert.AreEqual(a.c1.z, 8.0f); - Assert.AreEqual(a.c2.z, 9.0f); - } - - [Test] - public void float4x4_constructor_scalars() - { - float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, - 5.0f, 6.0f, 7.0f, 8.0f, - 9.0f, 10.0f, 11.0f, 12.0f, - 13.0f, 14.0f, 15.0f, 16.0f); - - Assert.AreEqual(a.c0.x, 1.0f); - Assert.AreEqual(a.c1.x, 2.0f); - Assert.AreEqual(a.c2.x, 3.0f); - Assert.AreEqual(a.c3.x, 4.0f); - Assert.AreEqual(a.c0.y, 5.0f); - Assert.AreEqual(a.c1.y, 6.0f); - Assert.AreEqual(a.c2.y, 7.0f); - Assert.AreEqual(a.c3.y, 8.0f); - Assert.AreEqual(a.c0.z, 9.0f); - Assert.AreEqual(a.c1.z, 10.0f); - Assert.AreEqual(a.c2.z, 11.0f); - Assert.AreEqual(a.c3.z, 12.0f); - Assert.AreEqual(a.c0.w, 13.0f); - Assert.AreEqual(a.c1.w, 14.0f); - Assert.AreEqual(a.c2.w, 15.0f); - Assert.AreEqual(a.c3.w, 16.0f); - } - - [Test] - public void float2x2_identity() - { - float2x2 a = float2x2.identity; - Assert.AreEqual(a.c0.x, 1.0f); - Assert.AreEqual(a.c1.x, 0.0f); - Assert.AreEqual(a.c0.y, 0.0f); - Assert.AreEqual(a.c1.y, 1.0f); - } - - [Test] - public void float3x3_identity() - { - float3x3 a = float3x3.identity; - Assert.AreEqual(a.c0.x, 1.0f); - Assert.AreEqual(a.c1.x, 0.0f); - Assert.AreEqual(a.c2.x, 0.0f); - Assert.AreEqual(a.c0.y, 0.0f); - Assert.AreEqual(a.c1.y, 1.0f); - Assert.AreEqual(a.c2.y, 0.0f); - Assert.AreEqual(a.c0.z, 0.0f); - Assert.AreEqual(a.c1.z, 0.0f); - Assert.AreEqual(a.c2.z, 1.0f); - } - - [Test] - public void float4x4_identity() - { - float4x4 a = float4x4.identity; - Assert.AreEqual(a.c0.x, 1.0f); - Assert.AreEqual(a.c1.x, 0.0f); - Assert.AreEqual(a.c2.x, 0.0f); - Assert.AreEqual(a.c3.x, 0.0f); - Assert.AreEqual(a.c0.y, 0.0f); - Assert.AreEqual(a.c1.y, 1.0f); - Assert.AreEqual(a.c2.y, 0.0f); - Assert.AreEqual(a.c3.y, 0.0f); - Assert.AreEqual(a.c0.z, 0.0f); - Assert.AreEqual(a.c1.z, 0.0f); - Assert.AreEqual(a.c2.z, 1.0f); - Assert.AreEqual(a.c3.z, 0.0f); - Assert.AreEqual(a.c0.w, 0.0f); - Assert.AreEqual(a.c1.w, 0.0f); - Assert.AreEqual(a.c2.w, 0.0f); - Assert.AreEqual(a.c3.w, 1.0f); - } - - - [Test] - public void float2x2_matrix_mul() - { - // http://www.wolframalpha.com/input/?i=%5B%5B1,2%5D,%5B3,4%5D%5D*%5B%5B21,22%5D,%5B23,24%5D%5D - float2x2 a = float2x2(1.0f, 2.0f, - 3.0f, 4.0f); - - float2x2 b = float2x2(21.0f, 22.0f, - 23.0f, 24.0f); - - float2x2 c = mul(a, b); - Assert.AreEqual(c.c0.x, 67.0f); - Assert.AreEqual(c.c1.x, 70.0f); - - Assert.AreEqual(c.c0.y, 155.0f); - Assert.AreEqual(c.c1.y, 162.0f); - } - - [Test] - public void float3x3_matrix_mul() - { - // http://www.wolframalpha.com/input/?i=%5B%5B1,2,3%5D,%5B4,5,6%5D,%5B7,8,9%5D%5D*%5B%5B21,22,23%5D,%5B24,25,26%5D,%5B27,28,29%5D%5D - float3x3 a = float3x3(1.0f, 2.0f, 3.0f, - 4.0f, 5.0f, 6.0f, - 7.0f, 8.0f, 9.0f); - - float3x3 b = float3x3(21.0f, 22.0f, 23.0f, - 24.0f, 25.0f, 26.0f, - 27.0f, 28.0f, 29.0f); - - float3x3 c = mul(a, b); - Assert.AreEqual(c.c0.x, 150.0f); - Assert.AreEqual(c.c1.x, 156.0f); - Assert.AreEqual(c.c2.x, 162.0f); - - Assert.AreEqual(c.c0.y, 366.0f); - Assert.AreEqual(c.c1.y, 381.0f); - Assert.AreEqual(c.c2.y, 396.0f); - - Assert.AreEqual(c.c0.z, 582.0f); - Assert.AreEqual(c.c1.z, 606.0f); - Assert.AreEqual(c.c2.z, 630.0f); - } - - [Test] - public void float4x4_matrix_mul() - { - // https://fogbugz.unity3d.com/f/cases/1041176/ - // http://www.wolframalpha.com/input/?i=%5B%5B1,2,3,4%5D,%5B5,6,7,8%5D,%5B9,10,11,12%5D,%5B13,14,15,16%5D%5D*%5B%5B21,22,23,24%5D,%5B25,26,27,28%5D,%5B29,30,31,32%5D,%5B33,34,35,36%5D%5D - float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, - 5.0f, 6.0f, 7.0f, 8.0f, - 9.0f,10.0f,11.0f,12.0f, - 13.0f,14.0f,15.0f,16.0f); - - float4x4 b = float4x4(21.0f,22.0f,23.0f,24.0f, - 25.0f,26.0f,27.0f,28.0f, - 29.0f,30.0f,31.0f,32.0f, - 33.0f,34.0f,35.0f,36.0f); - - float4x4 c = mul(a, b); - Assert.AreEqual(c.c0.x, 290.0f); - Assert.AreEqual(c.c1.x, 300.0f); - Assert.AreEqual(c.c2.x, 310.0f); - Assert.AreEqual(c.c3.x, 320.0f); - - Assert.AreEqual(c.c0.y, 722.0f); - Assert.AreEqual(c.c1.y, 748.0f); - Assert.AreEqual(c.c2.y, 774.0f); - Assert.AreEqual(c.c3.y, 800.0f); - - Assert.AreEqual(c.c0.z, 1154.0f); - Assert.AreEqual(c.c1.z, 1196.0f); - Assert.AreEqual(c.c2.z, 1238.0f); - Assert.AreEqual(c.c3.z, 1280.0f); - - Assert.AreEqual(c.c0.w, 1586.0f); - Assert.AreEqual(c.c1.w, 1644.0f); - Assert.AreEqual(c.c2.w, 1702.0f); - Assert.AreEqual(c.c3.w, 1760.0f); - } - - [Test] - public void float2x2_transpose() - { - float2x2 a = float2x2(1.0f, 2.0f, - 3.0f, 4.0f); - - float2x2 b = transpose(a); - - Assert.AreEqual(b.c0.x, 1.0f); - Assert.AreEqual(b.c1.x, 3.0f); - Assert.AreEqual(b.c0.y, 2.0f); - Assert.AreEqual(b.c1.y, 4.0f); - } - - [Test] - public void float3x3_transpose() - { - float3x3 a = float3x3(1.0f, 2.0f, 3.0f, - 4.0f, 5.0f, 6.0f, - 7.0f, 8.0f, 9.0f); - - float3x3 b = transpose(a); - - Assert.AreEqual(b.c0.x, 1.0f); - Assert.AreEqual(b.c1.x, 4.0f); - Assert.AreEqual(b.c2.x, 7.0f); - Assert.AreEqual(b.c0.y, 2.0f); - Assert.AreEqual(b.c1.y, 5.0f); - Assert.AreEqual(b.c2.y, 8.0f); - Assert.AreEqual(b.c0.z, 3.0f); - Assert.AreEqual(b.c1.z, 6.0f); - Assert.AreEqual(b.c2.z, 9.0f); - } - - [Test] - public void float4x4_transpose() - { - float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, - 5.0f, 6.0f, 7.0f, 8.0f, - 9.0f, 10.0f, 11.0f, 12.0f, - 13.0f, 14.0f, 15.0f, 16.0f); - - float4x4 b = transpose(a); - - Assert.AreEqual(b.c0.x, 1.0f); - Assert.AreEqual(b.c1.x, 5.0f); - Assert.AreEqual(b.c2.x, 9.0f); - Assert.AreEqual(b.c3.x, 13.0f); - Assert.AreEqual(b.c0.y, 2.0f); - Assert.AreEqual(b.c1.y, 6.0f); - Assert.AreEqual(b.c2.y, 10.0f); - Assert.AreEqual(b.c3.y, 14.0f); - Assert.AreEqual(b.c0.z, 3.0f); - Assert.AreEqual(b.c1.z, 7.0f); - Assert.AreEqual(b.c2.z, 11.0f); - Assert.AreEqual(b.c3.z, 15.0f); - Assert.AreEqual(b.c0.w, 4.0f); - Assert.AreEqual(b.c1.w, 8.0f); - Assert.AreEqual(b.c2.w, 12.0f); - Assert.AreEqual(b.c3.w, 16.0f); - } - - [Test] - public void float2x2_inverse() - { - float2x2 a = float2x2( 0.542968f, 0.867379f, - -0.270153f, -0.912324f); - - float2x2 invA = float2x2( 3.49499f, 3.32281f, - -1.03492f, -2.08004f); - - float2x2 r = inverse(a); - - float epsilon = 0.0001f; - Assert.AreEqual(invA.c0.x, r.c0.x, epsilon); - Assert.AreEqual(invA.c1.x, r.c1.x, epsilon); - - Assert.AreEqual(invA.c0.y, r.c0.y, epsilon); - Assert.AreEqual(invA.c1.y, r.c1.y, epsilon); - } - - [Test] - public void float3x3_inverse() - { - float3x3 a = float3x3( 0.542968f, 0.867379f, 0.526616f, - -0.270153f,-0.912324f, 0.148933f, - 0.816727f, 0.905933f, 0.902392f); - - float3x3 invA = float3x3(-15.91790f,-5.077350f,10.1273f, - 6.07051f, 0.994556f,-3.70676f, - 8.31247f, 3.596890f,-4.33645f); - - float3x3 r = inverse(a); - - float epsilon = 0.0001f; - Assert.AreEqual(invA.c0.x, r.c0.x, epsilon); - Assert.AreEqual(invA.c1.x, r.c1.x, epsilon); - Assert.AreEqual(invA.c2.x, r.c2.x, epsilon); - - Assert.AreEqual(invA.c0.y, r.c0.y, epsilon); - Assert.AreEqual(invA.c1.y, r.c1.y, epsilon); - Assert.AreEqual(invA.c2.y, r.c2.y, epsilon); - - Assert.AreEqual(invA.c0.z, r.c0.z, epsilon); - Assert.AreEqual(invA.c1.z, r.c1.z, epsilon); - Assert.AreEqual(invA.c2.z, r.c2.z, epsilon); - } - - [Test] - public void float4x4_inverse() - { - float4x4 a = float4x4( 0.542968f, 0.867379f, 0.526616f,-0.943083f, - -0.270153f,-0.912324f, 0.148933f, 0.299995f, - 0.816727f, 0.905933f, 0.902392f,-0.060931f, - -0.254780f, 0.604543f, 0.563340f,-0.383911f); - - float4x4 invA = float4x4( 0.548951f, 0.126367f, 0.487260f,-1.327100f, - -0.582901f,-1.108000f, 0.188292f, 0.536211f, - 0.001968f, 0.970678f, 0.528701f, 0.669759f, - -1.279310f,-0.404277f, 0.748937f, 0.103102f); - - float4x4 r = inverse(a); - - float epsilon = 0.0001f; - Assert.AreEqual(invA.c0.x, r.c0.x, epsilon); - Assert.AreEqual(invA.c1.x, r.c1.x, epsilon); - Assert.AreEqual(invA.c2.x, r.c2.x, epsilon); - Assert.AreEqual(invA.c3.x, r.c3.x, epsilon); - - Assert.AreEqual(invA.c0.y, r.c0.y, epsilon); - Assert.AreEqual(invA.c1.y, r.c1.y, epsilon); - Assert.AreEqual(invA.c2.y, r.c2.y, epsilon); - Assert.AreEqual(invA.c3.y, r.c3.y, epsilon); - - Assert.AreEqual(invA.c0.z, r.c0.z, epsilon); - Assert.AreEqual(invA.c1.z, r.c1.z, epsilon); - Assert.AreEqual(invA.c2.z, r.c2.z, epsilon); - Assert.AreEqual(invA.c3.z, r.c3.z, epsilon); - - Assert.AreEqual(invA.c0.w, r.c0.w, epsilon); - Assert.AreEqual(invA.c1.w, r.c1.w, epsilon); - Assert.AreEqual(invA.c2.w, r.c2.w, epsilon); - Assert.AreEqual(invA.c3.w, r.c3.w, epsilon); - } - } -} +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using NUnit.Framework; +using static Unity.Mathematics.math; + +namespace Unity.Mathematics.Tests +{ + [TestFixture] + class TestMatrix + { + [Test] + public void float2x2_constructor_columns() + { + float2x2 a = float2x2(float2(1.0f, 2.0f), + float2(3.0f, 4.0f)); + + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c0.y, 2.0f); + Assert.AreEqual(a.c1.x, 3.0f); + Assert.AreEqual(a.c1.y, 4.0f); + } + + [Test] + public void float3x3_constructor_columns() + { + float3x3 a = float3x3(float3(1.0f, 2.0f, 3.0f), + float3(4.0f, 5.0f, 6.0f), + float3(7.0f, 8.0f, 9.0f)); + + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c0.y, 2.0f); + Assert.AreEqual(a.c0.z, 3.0f); + Assert.AreEqual(a.c1.x, 4.0f); + Assert.AreEqual(a.c1.y, 5.0f); + Assert.AreEqual(a.c1.z, 6.0f); + Assert.AreEqual(a.c2.x, 7.0f); + Assert.AreEqual(a.c2.y, 8.0f); + Assert.AreEqual(a.c2.z, 9.0f); + } + + [Test] + public void float4x4_constructor_columns() + { + float4x4 a = float4x4(float4( 1.0f, 2.0f, 3.0f, 4.0f), + float4( 5.0f, 6.0f, 7.0f, 8.0f), + float4( 9.0f, 10.0f, 11.0f, 12.0f), + float4(13.0f, 14.0f, 15.0f, 16.0f)); + + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c0.y, 2.0f); + Assert.AreEqual(a.c0.z, 3.0f); + Assert.AreEqual(a.c0.w, 4.0f); + Assert.AreEqual(a.c1.x, 5.0f); + Assert.AreEqual(a.c1.y, 6.0f); + Assert.AreEqual(a.c1.z, 7.0f); + Assert.AreEqual(a.c1.w, 8.0f); + Assert.AreEqual(a.c2.x, 9.0f); + Assert.AreEqual(a.c2.y, 10.0f); + Assert.AreEqual(a.c2.z, 11.0f); + Assert.AreEqual(a.c2.w, 12.0f); + Assert.AreEqual(a.c3.x, 13.0f); + Assert.AreEqual(a.c3.y, 14.0f); + Assert.AreEqual(a.c3.z, 15.0f); + Assert.AreEqual(a.c3.w, 16.0f); + } + + [Test] + public void float2x2_constructor_scalars() + { + float2x2 a = float2x2(1.0f, 2.0f, + 3.0f, 4.0f); + + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c1.x, 2.0f); + Assert.AreEqual(a.c0.y, 3.0f); + Assert.AreEqual(a.c1.y, 4.0f); + } + + [Test] + public void float3x3_constructor_scalars() + { + float3x3 a = float3x3(1.0f, 2.0f, 3.0f, + 4.0f, 5.0f, 6.0f, + 7.0f, 8.0f, 9.0f); + + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c1.x, 2.0f); + Assert.AreEqual(a.c2.x, 3.0f); + Assert.AreEqual(a.c0.y, 4.0f); + Assert.AreEqual(a.c1.y, 5.0f); + Assert.AreEqual(a.c2.y, 6.0f); + Assert.AreEqual(a.c0.z, 7.0f); + Assert.AreEqual(a.c1.z, 8.0f); + Assert.AreEqual(a.c2.z, 9.0f); + } + + [Test] + public void float4x4_constructor_scalars() + { + float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, + 5.0f, 6.0f, 7.0f, 8.0f, + 9.0f, 10.0f, 11.0f, 12.0f, + 13.0f, 14.0f, 15.0f, 16.0f); + + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c1.x, 2.0f); + Assert.AreEqual(a.c2.x, 3.0f); + Assert.AreEqual(a.c3.x, 4.0f); + Assert.AreEqual(a.c0.y, 5.0f); + Assert.AreEqual(a.c1.y, 6.0f); + Assert.AreEqual(a.c2.y, 7.0f); + Assert.AreEqual(a.c3.y, 8.0f); + Assert.AreEqual(a.c0.z, 9.0f); + Assert.AreEqual(a.c1.z, 10.0f); + Assert.AreEqual(a.c2.z, 11.0f); + Assert.AreEqual(a.c3.z, 12.0f); + Assert.AreEqual(a.c0.w, 13.0f); + Assert.AreEqual(a.c1.w, 14.0f); + Assert.AreEqual(a.c2.w, 15.0f); + Assert.AreEqual(a.c3.w, 16.0f); + } + + [Test] + public void float2x2_identity() + { + float2x2 a = float2x2.identity; + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c1.x, 0.0f); + Assert.AreEqual(a.c0.y, 0.0f); + Assert.AreEqual(a.c1.y, 1.0f); + } + + [Test] + public void float3x3_identity() + { + float3x3 a = float3x3.identity; + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c1.x, 0.0f); + Assert.AreEqual(a.c2.x, 0.0f); + Assert.AreEqual(a.c0.y, 0.0f); + Assert.AreEqual(a.c1.y, 1.0f); + Assert.AreEqual(a.c2.y, 0.0f); + Assert.AreEqual(a.c0.z, 0.0f); + Assert.AreEqual(a.c1.z, 0.0f); + Assert.AreEqual(a.c2.z, 1.0f); + } + + [Test] + public void float4x4_identity() + { + float4x4 a = float4x4.identity; + Assert.AreEqual(a.c0.x, 1.0f); + Assert.AreEqual(a.c1.x, 0.0f); + Assert.AreEqual(a.c2.x, 0.0f); + Assert.AreEqual(a.c3.x, 0.0f); + Assert.AreEqual(a.c0.y, 0.0f); + Assert.AreEqual(a.c1.y, 1.0f); + Assert.AreEqual(a.c2.y, 0.0f); + Assert.AreEqual(a.c3.y, 0.0f); + Assert.AreEqual(a.c0.z, 0.0f); + Assert.AreEqual(a.c1.z, 0.0f); + Assert.AreEqual(a.c2.z, 1.0f); + Assert.AreEqual(a.c3.z, 0.0f); + Assert.AreEqual(a.c0.w, 0.0f); + Assert.AreEqual(a.c1.w, 0.0f); + Assert.AreEqual(a.c2.w, 0.0f); + Assert.AreEqual(a.c3.w, 1.0f); + } + + + [Test] + public void float2x2_matrix_mul() + { + // http://www.wolframalpha.com/input/?i=%5B%5B1,2%5D,%5B3,4%5D%5D*%5B%5B21,22%5D,%5B23,24%5D%5D + float2x2 a = float2x2(1.0f, 2.0f, + 3.0f, 4.0f); + + float2x2 b = float2x2(21.0f, 22.0f, + 23.0f, 24.0f); + + float2x2 c = mul(a, b); + Assert.AreEqual(c.c0.x, 67.0f); + Assert.AreEqual(c.c1.x, 70.0f); + + Assert.AreEqual(c.c0.y, 155.0f); + Assert.AreEqual(c.c1.y, 162.0f); + } + + [Test] + public void float3x3_matrix_mul() + { + // http://www.wolframalpha.com/input/?i=%5B%5B1,2,3%5D,%5B4,5,6%5D,%5B7,8,9%5D%5D*%5B%5B21,22,23%5D,%5B24,25,26%5D,%5B27,28,29%5D%5D + float3x3 a = float3x3(1.0f, 2.0f, 3.0f, + 4.0f, 5.0f, 6.0f, + 7.0f, 8.0f, 9.0f); + + float3x3 b = float3x3(21.0f, 22.0f, 23.0f, + 24.0f, 25.0f, 26.0f, + 27.0f, 28.0f, 29.0f); + + float3x3 c = mul(a, b); + Assert.AreEqual(c.c0.x, 150.0f); + Assert.AreEqual(c.c1.x, 156.0f); + Assert.AreEqual(c.c2.x, 162.0f); + + Assert.AreEqual(c.c0.y, 366.0f); + Assert.AreEqual(c.c1.y, 381.0f); + Assert.AreEqual(c.c2.y, 396.0f); + + Assert.AreEqual(c.c0.z, 582.0f); + Assert.AreEqual(c.c1.z, 606.0f); + Assert.AreEqual(c.c2.z, 630.0f); + } + + [Test] + public void float4x4_matrix_mul() + { + // https://fogbugz.unity3d.com/f/cases/1041176/ + // http://www.wolframalpha.com/input/?i=%5B%5B1,2,3,4%5D,%5B5,6,7,8%5D,%5B9,10,11,12%5D,%5B13,14,15,16%5D%5D*%5B%5B21,22,23,24%5D,%5B25,26,27,28%5D,%5B29,30,31,32%5D,%5B33,34,35,36%5D%5D + float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, + 5.0f, 6.0f, 7.0f, 8.0f, + 9.0f,10.0f,11.0f,12.0f, + 13.0f,14.0f,15.0f,16.0f); + + float4x4 b = float4x4(21.0f,22.0f,23.0f,24.0f, + 25.0f,26.0f,27.0f,28.0f, + 29.0f,30.0f,31.0f,32.0f, + 33.0f,34.0f,35.0f,36.0f); + + float4x4 c = mul(a, b); + Assert.AreEqual(c.c0.x, 290.0f); + Assert.AreEqual(c.c1.x, 300.0f); + Assert.AreEqual(c.c2.x, 310.0f); + Assert.AreEqual(c.c3.x, 320.0f); + + Assert.AreEqual(c.c0.y, 722.0f); + Assert.AreEqual(c.c1.y, 748.0f); + Assert.AreEqual(c.c2.y, 774.0f); + Assert.AreEqual(c.c3.y, 800.0f); + + Assert.AreEqual(c.c0.z, 1154.0f); + Assert.AreEqual(c.c1.z, 1196.0f); + Assert.AreEqual(c.c2.z, 1238.0f); + Assert.AreEqual(c.c3.z, 1280.0f); + + Assert.AreEqual(c.c0.w, 1586.0f); + Assert.AreEqual(c.c1.w, 1644.0f); + Assert.AreEqual(c.c2.w, 1702.0f); + Assert.AreEqual(c.c3.w, 1760.0f); + } + + [Test] + public void float2x2_transpose() + { + float2x2 a = float2x2(1.0f, 2.0f, + 3.0f, 4.0f); + + float2x2 b = transpose(a); + + Assert.AreEqual(b.c0.x, 1.0f); + Assert.AreEqual(b.c1.x, 3.0f); + Assert.AreEqual(b.c0.y, 2.0f); + Assert.AreEqual(b.c1.y, 4.0f); + } + + [Test] + public void float3x3_transpose() + { + float3x3 a = float3x3(1.0f, 2.0f, 3.0f, + 4.0f, 5.0f, 6.0f, + 7.0f, 8.0f, 9.0f); + + float3x3 b = transpose(a); + + Assert.AreEqual(b.c0.x, 1.0f); + Assert.AreEqual(b.c1.x, 4.0f); + Assert.AreEqual(b.c2.x, 7.0f); + Assert.AreEqual(b.c0.y, 2.0f); + Assert.AreEqual(b.c1.y, 5.0f); + Assert.AreEqual(b.c2.y, 8.0f); + Assert.AreEqual(b.c0.z, 3.0f); + Assert.AreEqual(b.c1.z, 6.0f); + Assert.AreEqual(b.c2.z, 9.0f); + } + + [Test] + public void float4x4_transpose() + { + float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, + 5.0f, 6.0f, 7.0f, 8.0f, + 9.0f, 10.0f, 11.0f, 12.0f, + 13.0f, 14.0f, 15.0f, 16.0f); + + float4x4 b = transpose(a); + + Assert.AreEqual(b.c0.x, 1.0f); + Assert.AreEqual(b.c1.x, 5.0f); + Assert.AreEqual(b.c2.x, 9.0f); + Assert.AreEqual(b.c3.x, 13.0f); + Assert.AreEqual(b.c0.y, 2.0f); + Assert.AreEqual(b.c1.y, 6.0f); + Assert.AreEqual(b.c2.y, 10.0f); + Assert.AreEqual(b.c3.y, 14.0f); + Assert.AreEqual(b.c0.z, 3.0f); + Assert.AreEqual(b.c1.z, 7.0f); + Assert.AreEqual(b.c2.z, 11.0f); + Assert.AreEqual(b.c3.z, 15.0f); + Assert.AreEqual(b.c0.w, 4.0f); + Assert.AreEqual(b.c1.w, 8.0f); + Assert.AreEqual(b.c2.w, 12.0f); + Assert.AreEqual(b.c3.w, 16.0f); + } + + [Test] + public void float2x2_inverse() + { + float2x2 a = float2x2( 0.542968f, 0.867379f, + -0.270153f, -0.912324f); + + float2x2 invA = float2x2( 3.49499f, 3.32281f, + -1.03492f, -2.08004f); + + float2x2 r = inverse(a); + + float epsilon = 0.0001f; + Assert.AreEqual(invA.c0.x, r.c0.x, epsilon); + Assert.AreEqual(invA.c1.x, r.c1.x, epsilon); + + Assert.AreEqual(invA.c0.y, r.c0.y, epsilon); + Assert.AreEqual(invA.c1.y, r.c1.y, epsilon); + } + + [Test] + public void float3x3_inverse() + { + float3x3 a = float3x3( 0.542968f, 0.867379f, 0.526616f, + -0.270153f,-0.912324f, 0.148933f, + 0.816727f, 0.905933f, 0.902392f); + + float3x3 invA = float3x3(-15.91790f,-5.077350f,10.1273f, + 6.07051f, 0.994556f,-3.70676f, + 8.31247f, 3.596890f,-4.33645f); + + float3x3 r = inverse(a); + + float epsilon = 0.0001f; + Assert.AreEqual(invA.c0.x, r.c0.x, epsilon); + Assert.AreEqual(invA.c1.x, r.c1.x, epsilon); + Assert.AreEqual(invA.c2.x, r.c2.x, epsilon); + + Assert.AreEqual(invA.c0.y, r.c0.y, epsilon); + Assert.AreEqual(invA.c1.y, r.c1.y, epsilon); + Assert.AreEqual(invA.c2.y, r.c2.y, epsilon); + + Assert.AreEqual(invA.c0.z, r.c0.z, epsilon); + Assert.AreEqual(invA.c1.z, r.c1.z, epsilon); + Assert.AreEqual(invA.c2.z, r.c2.z, epsilon); + } + + [Test] + public void float4x4_inverse() + { + float4x4 a = float4x4( 0.542968f, 0.867379f, 0.526616f,-0.943083f, + -0.270153f,-0.912324f, 0.148933f, 0.299995f, + 0.816727f, 0.905933f, 0.902392f,-0.060931f, + -0.254780f, 0.604543f, 0.563340f,-0.383911f); + + float4x4 invA = float4x4( 0.548951f, 0.126367f, 0.487260f,-1.327100f, + -0.582901f,-1.108000f, 0.188292f, 0.536211f, + 0.001968f, 0.970678f, 0.528701f, 0.669759f, + -1.279310f,-0.404277f, 0.748937f, 0.103102f); + + float4x4 r = inverse(a); + + float epsilon = 0.0001f; + Assert.AreEqual(invA.c0.x, r.c0.x, epsilon); + Assert.AreEqual(invA.c1.x, r.c1.x, epsilon); + Assert.AreEqual(invA.c2.x, r.c2.x, epsilon); + Assert.AreEqual(invA.c3.x, r.c3.x, epsilon); + + Assert.AreEqual(invA.c0.y, r.c0.y, epsilon); + Assert.AreEqual(invA.c1.y, r.c1.y, epsilon); + Assert.AreEqual(invA.c2.y, r.c2.y, epsilon); + Assert.AreEqual(invA.c3.y, r.c3.y, epsilon); + + Assert.AreEqual(invA.c0.z, r.c0.z, epsilon); + Assert.AreEqual(invA.c1.z, r.c1.z, epsilon); + Assert.AreEqual(invA.c2.z, r.c2.z, epsilon); + Assert.AreEqual(invA.c3.z, r.c3.z, epsilon); + + Assert.AreEqual(invA.c0.w, r.c0.w, epsilon); + Assert.AreEqual(invA.c1.w, r.c1.w, epsilon); + Assert.AreEqual(invA.c2.w, r.c2.w, epsilon); + Assert.AreEqual(invA.c3.w, r.c3.w, epsilon); + } + } +} diff --git a/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.asmdef b/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.asmdef index 7b8dd5db..04d87a34 100644 --- a/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.asmdef +++ b/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.asmdef @@ -1,12 +1,12 @@ -{ - "name": "Unity.Mathematics.Tests", - "optionalUnityReferences": [ - "TestAssemblies" - ], - "references": [ - "Unity.Mathematics" - ], - "includePlatforms": [ - "Editor" - ] -} +{ + "name": "Unity.Mathematics.Tests", + "optionalUnityReferences": [ + "TestAssemblies" + ], + "references": [ + "Unity.Mathematics" + ], + "includePlatforms": [ + "Editor" + ] +} diff --git a/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj b/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj index 20b0928f..c7085cb4 100644 --- a/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj +++ b/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj @@ -1,73 +1,73 @@ - - - - - Debug - AnyCPU - {2E7C74D3-42F1-482F-8BB7-E199D9E3B412} - Library - Properties - Unity.Mathematics.Tests - Unity.Mathematics.Tests - v4.5.2 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\NUnit.3.8.1\lib\net45\nunit.framework.dll - True - - - - - - - - - - - - - - - - - - - - - - - {19810344-7387-4155-935f-bdd5cc61f0bf} - Unity.Mathematics - - - - - - + + + + + Debug + AnyCPU + {2E7C74D3-42F1-482F-8BB7-E199D9E3B412} + Library + Properties + Unity.Mathematics.Tests + Unity.Mathematics.Tests + v4.5.2 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\NUnit.3.8.1\lib\net45\nunit.framework.dll + True + + + + + + + + + + + + + + + + + + + + + + + {19810344-7387-4155-935f-bdd5cc61f0bf} + Unity.Mathematics + + + + + + + --> \ No newline at end of file diff --git a/src/Unity.Mathematics/int4.cs b/src/Unity.Mathematics/int4.cs index 71c7a1f8..36ee0a56 100644 --- a/src/Unity.Mathematics/int4.cs +++ b/src/Unity.Mathematics/int4.cs @@ -31,8 +31,8 @@ public DebuggerProxy(int4 vec) public int w; [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int val) { x = y = z = w = val; } - + public int4(int val) { x = y = z = w = val; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(float4 val) { x = (int)val.x; y = (int)val.y; z = (int)val.z; w = (int)val.w; } diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 37a51337..7e65b69b 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -9,18 +9,18 @@ namespace Unity.Mathematics { public static partial class math - { - public enum ShuffleComponent - { - LeftX, - LeftY, - LeftZ, - LeftW, - RightX, - RightY, - RightZ, - RightW - }; + { + public enum ShuffleComponent + { + LeftX, + LeftY, + LeftZ, + LeftW, + RightX, + RightY, + RightZ, + RightW + }; // min [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -426,42 +426,42 @@ public static float4 smoothstep(float4 a, float4 b, float4 x) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 select(float3 a, float3 b, bool3 c) { return new float3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 select(float4 a, float4 b, bool4 c) { return new float4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - private static float pickShuffleComponent(float4 a, float4 b, ShuffleComponent component) - { - switch(component) - { - case ShuffleComponent.LeftX: - return a.x; - case ShuffleComponent.LeftY: - return a.y; - case ShuffleComponent.LeftZ: - return a.z; - case ShuffleComponent.LeftW: - return a.w; - case ShuffleComponent.RightX: - return b.x; - case ShuffleComponent.RightY: - return b.y; - case ShuffleComponent.RightZ: - return b.z; - case ShuffleComponent.RightW: - return b.w; - default: - throw new System.ArgumentException("Invalid shuffle component: " + (int)component); - } - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 shuffle(float4 a, float4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) - { - // Naive implementation for non-burst - return float4( pickShuffleComponent(a, b, x), - pickShuffleComponent(a, b, y), - pickShuffleComponent(a, b, z), - pickShuffleComponent(a, b, w)); + public static float4 select(float4 a, float4 b, bool4 c) { return new float4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static float pickShuffleComponent(float4 a, float4 b, ShuffleComponent component) + { + switch(component) + { + case ShuffleComponent.LeftX: + return a.x; + case ShuffleComponent.LeftY: + return a.y; + case ShuffleComponent.LeftZ: + return a.z; + case ShuffleComponent.LeftW: + return a.w; + case ShuffleComponent.RightX: + return b.x; + case ShuffleComponent.RightY: + return b.y; + case ShuffleComponent.RightZ: + return b.z; + case ShuffleComponent.RightW: + return b.w; + default: + throw new System.ArgumentException("Invalid shuffle component: " + (int)component); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 shuffle(float4 a, float4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + { + // Naive implementation for non-burst + return float4( pickShuffleComponent(a, b, x), + pickShuffleComponent(a, b, y), + pickShuffleComponent(a, b, z), + pickShuffleComponent(a, b, w)); } //Step diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index 7e085d98..3fe92bb5 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -1,5 +1,5 @@ -using static Unity.Mathematics.math; - +using static Unity.Mathematics.math; + namespace Unity.Mathematics { public partial struct float2x2 @@ -58,8 +58,8 @@ public float3x3(float m00, float m01, float m02, { return float3x3(mat.c0 * s, mat.c1 * s, mat.c2 * s); } - } - + } + public partial struct float4x4 { public float4 c0; @@ -100,46 +100,46 @@ public float4x4(float m00, float m01, float m02, float m03, partial class math { - public static float2x2 float2x2(float2 c0, float2 c1) - { - return new float2x2(c0, c1); - } - - public static float2x2 float2x2(float m00, float m01, - float m10, float m11) - { - return new float2x2(m00, m01, - m10, m11); - } - - public static float3x3 float3x3(float3 c0, float3 c1, float3 c2) - { - return new float3x3(c0, c1, c2); - } - - public static float3x3 float3x3(float m00, float m01, float m02, - float m10, float m11, float m12, - float m20, float m21, float m22) - { - return new float3x3(m00, m01, m02, - m10, m11, m12, - m20, m21, m22); - } - - public static float4x4 float4x4(float4 c0, float4 c1, float4 c2, float4 c3) - { - return new float4x4(c0, c1, c2, c3); - } - - public static float4x4 float4x4(float m00, float m01, float m02, float m03, - float m10, float m11, float m12, float m13, - float m20, float m21, float m22, float m23, - float m30, float m31, float m32, float m33) - { - return new float4x4(m00, m01, m02, m03, - m10, m11, m12, m13, - m20, m21, m22, m23, - m30, m31, m32, m33); + public static float2x2 float2x2(float2 c0, float2 c1) + { + return new float2x2(c0, c1); + } + + public static float2x2 float2x2(float m00, float m01, + float m10, float m11) + { + return new float2x2(m00, m01, + m10, m11); + } + + public static float3x3 float3x3(float3 c0, float3 c1, float3 c2) + { + return new float3x3(c0, c1, c2); + } + + public static float3x3 float3x3(float m00, float m01, float m02, + float m10, float m11, float m12, + float m20, float m21, float m22) + { + return new float3x3(m00, m01, m02, + m10, m11, m12, + m20, m21, m22); + } + + public static float4x4 float4x4(float4 c0, float4 c1, float4 c2, float4 c3) + { + return new float4x4(c0, c1, c2, c3); + } + + public static float4x4 float4x4(float m00, float m01, float m02, float m03, + float m10, float m11, float m12, float m13, + float m20, float m21, float m22, float m23, + float m30, float m31, float m32, float m33) + { + return new float4x4(m00, m01, m02, m03, + m10, m11, m12, m13, + m20, m21, m22, m23, + m30, m31, m32, m33); } public static float2 mul(float2x2 x, float2 v) @@ -160,8 +160,8 @@ public static float3 mul(float3x3 x, float3 v) public static float3x3 mul(float3x3 a, float3x3 b) { return float3x3(mul(a, b.c0), mul(a, b.c1), mul(a, b.c2)); - } - + } + public static float4 mul(float4x4 x, float4 v) { return mad(x.c0, v.x, x.c1 * v.y) + mad(x.c2, v.z, x.c3 * v.w); @@ -192,118 +192,118 @@ public static float3x3 orthogonalize(float3x3 i) } public static float2x2 transpose(float2x2 m) { return float2x2(m.c0.x, m.c0.y, m.c1.x, m.c1.y); } - public static float3x3 transpose(float3x3 m) { return float3x3(m.c0.x, m.c0.y, m.c0.z, m.c1.x, m.c1.y, m.c1.z, m.c2.x, m.c2.y, m.c2.z); } - // public static float4x4 transpose(float4x4 m) { return float4x4(m.c0.x, m.c0.y, m.c0.z, m.c0.w, m.c1.x, m.c1.y, m.c1.z, m.c1.w, m.c2.x, m.c2.y, m.c2.z, m.c2.w, m.c3.x, m.c3.y, m.c3.z, m.c3.w); } - - public static float4 unpacklo(float4 a, float4 b) - { - return shuffle(a, b, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.LeftY, ShuffleComponent.RightY); - } - - public static float4 unpackhi(float4 a, float4 b) - { - return shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftW, ShuffleComponent.RightW); - } - - public static float4x4 transpose(float4x4 m) - { - float4 t0 = unpacklo(m.c0, m.c2); - float4 t1 = unpacklo(m.c1, m.c3); - float4 t2 = unpackhi(m.c0, m.c2); - float4 t3 = unpackhi(m.c1, m.c3); - return float4x4(unpacklo(t0, t1), unpackhi(t0, t1), unpacklo(t2, t3), unpackhi(t2, t3)); - } - - public static float2x2 inverse(float2x2 m) - { - float a = m.c0.x; - float b = m.c1.x; - float c = m.c0.y; - float d = m.c1.y; - - float det = a * d - b * c; - - return float2x2( d, -b, - -c, a) * (1.0f / det); - } - - public static float3x3 inverse(float3x3 m) - { - // naive scalar implementation using direct calculation by cofactors - float3 c0 = m.c0; - float3 c1 = m.c1; - float3 c2 = m.c2; - - // calculate minors - float m00 = c1.y * c2.z - c1.z * c2.y; - float m01 = c0.y * c2.z - c0.z * c2.y; - float m02 = c0.y * c1.z - c0.z * c1.y; - - float m10 = c1.x * c2.z - c1.z * c2.x; - float m11 = c0.x * c2.z - c0.z * c2.x; - float m12 = c0.x * c1.z - c0.z * c1.x; - - float m20 = c1.x * c2.y - c1.y * c2.x; - float m21 = c0.x * c2.y - c0.y * c2.x; - float m22 = c0.x * c1.y - c0.y * c1.x; - - float det = c0.x * m00 - c1.x * m01 + c2.x * m02; - - return float3x3( m00, -m10, m20, - -m01, m11, -m21, - m02, -m12, m22) * (1.0f / det); - } - - public static float4x4 inverse(float4x4 m) - { - // naive scalar implementation using direct calculation by cofactors - float4 c0 = m.c0; - float4 c1 = m.c1; - float4 c2 = m.c2; - float4 c3 = m.c3; - - // calculate minors - float m00 = c1.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c1.z * c3.w - c1.w * c3.z) + c3.y * (c1.z * c2.w - c1.w * c2.z); - float m01 = c0.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c2.w - c0.w * c2.z); - float m02 = c0.y * (c1.z * c3.w - c1.w * c3.z) - c1.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c1.w - c0.w * c1.z); - float m03 = c0.y * (c1.z * c2.w - c1.w * c2.z) - c1.y * (c0.z * c2.w - c0.w * c2.z) + c2.y * (c0.z * c1.w - c0.w * c1.z); - - float m10 = c1.x * (c2.z * c3.w - c2.w * c3.z) - c2.x * (c1.z * c3.w - c1.w * c3.z) + c3.x * (c1.z * c2.w - c1.w * c2.z); - float m11 = c0.x * (c2.z * c3.w - c2.w * c3.z) - c2.x * (c0.z * c3.w - c0.w * c3.z) + c3.x * (c0.z * c2.w - c0.w * c2.z); - float m12 = c0.x * (c1.z * c3.w - c1.w * c3.z) - c1.x * (c0.z * c3.w - c0.w * c3.z) + c3.x * (c0.z * c1.w - c0.w * c1.z); - float m13 = c0.x * (c1.z * c2.w - c1.w * c2.z) - c1.x * (c0.z * c2.w - c0.w * c2.z) + c2.x * (c0.z * c1.w - c0.w * c1.z); - - float m20 = c1.x * (c2.y * c3.w - c2.w * c3.y) - c2.x * (c1.y * c3.w - c1.w * c3.y) + c3.x * (c1.y * c2.w - c1.w * c2.y); - float m21 = c0.x * (c2.y * c3.w - c2.w * c3.y) - c2.x * (c0.y * c3.w - c0.w * c3.y) + c3.x * (c0.y * c2.w - c0.w * c2.y); - float m22 = c0.x * (c1.y * c3.w - c1.w * c3.y) - c1.x * (c0.y * c3.w - c0.w * c3.y) + c3.x * (c0.y * c1.w - c0.w * c1.y); - float m23 = c0.x * (c1.y * c2.w - c1.w * c2.y) - c1.x * (c0.y * c2.w - c0.w * c2.y) + c2.x * (c0.y * c1.w - c0.w * c1.y); - - float m30 = c1.x * (c2.y * c3.z - c2.z * c3.y) - c2.x * (c1.y * c3.z - c1.z * c3.y) + c3.x * (c1.y * c2.z - c1.z * c2.y); - float m31 = c0.x * (c2.y * c3.z - c2.z * c3.y) - c2.x * (c0.y * c3.z - c0.z * c3.y) + c3.x * (c0.y * c2.z - c0.z * c2.y); - float m32 = c0.x * (c1.y * c3.z - c1.z * c3.y) - c1.x * (c0.y * c3.z - c0.z * c3.y) + c3.x * (c0.y * c1.z - c0.z * c1.y); - float m33 = c0.x * (c1.y * c2.z - c1.z * c2.y) - c1.x * (c0.y * c2.z - c0.z * c2.y) + c2.x * (c0.y * c1.z - c0.z * c1.y); - - float det = c0.x * m00 - c1.x * m01 + c2.x * m02 - c3.x * m03; - - return float4x4( m00, -m10, m20, -m30, - -m01, m11, -m21, m31, - m02, -m12, m22, -m32, - -m03, m13, -m23, m33) * (1.0f / det); + public static float3x3 transpose(float3x3 m) { return float3x3(m.c0.x, m.c0.y, m.c0.z, m.c1.x, m.c1.y, m.c1.z, m.c2.x, m.c2.y, m.c2.z); } + // public static float4x4 transpose(float4x4 m) { return float4x4(m.c0.x, m.c0.y, m.c0.z, m.c0.w, m.c1.x, m.c1.y, m.c1.z, m.c1.w, m.c2.x, m.c2.y, m.c2.z, m.c2.w, m.c3.x, m.c3.y, m.c3.z, m.c3.w); } + + public static float4 unpacklo(float4 a, float4 b) + { + return shuffle(a, b, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.LeftY, ShuffleComponent.RightY); + } + + public static float4 unpackhi(float4 a, float4 b) + { + return shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftW, ShuffleComponent.RightW); + } + + public static float4x4 transpose(float4x4 m) + { + float4 t0 = unpacklo(m.c0, m.c2); + float4 t1 = unpacklo(m.c1, m.c3); + float4 t2 = unpackhi(m.c0, m.c2); + float4 t3 = unpackhi(m.c1, m.c3); + return float4x4(unpacklo(t0, t1), unpackhi(t0, t1), unpacklo(t2, t3), unpackhi(t2, t3)); + } + + public static float2x2 inverse(float2x2 m) + { + float a = m.c0.x; + float b = m.c1.x; + float c = m.c0.y; + float d = m.c1.y; + + float det = a * d - b * c; + + return float2x2( d, -b, + -c, a) * (1.0f / det); + } + + public static float3x3 inverse(float3x3 m) + { + // naive scalar implementation using direct calculation by cofactors + float3 c0 = m.c0; + float3 c1 = m.c1; + float3 c2 = m.c2; + + // calculate minors + float m00 = c1.y * c2.z - c1.z * c2.y; + float m01 = c0.y * c2.z - c0.z * c2.y; + float m02 = c0.y * c1.z - c0.z * c1.y; + + float m10 = c1.x * c2.z - c1.z * c2.x; + float m11 = c0.x * c2.z - c0.z * c2.x; + float m12 = c0.x * c1.z - c0.z * c1.x; + + float m20 = c1.x * c2.y - c1.y * c2.x; + float m21 = c0.x * c2.y - c0.y * c2.x; + float m22 = c0.x * c1.y - c0.y * c1.x; + + float det = c0.x * m00 - c1.x * m01 + c2.x * m02; + + return float3x3( m00, -m10, m20, + -m01, m11, -m21, + m02, -m12, m22) * (1.0f / det); + } + + public static float4x4 inverse(float4x4 m) + { + // naive scalar implementation using direct calculation by cofactors + float4 c0 = m.c0; + float4 c1 = m.c1; + float4 c2 = m.c2; + float4 c3 = m.c3; + + // calculate minors + float m00 = c1.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c1.z * c3.w - c1.w * c3.z) + c3.y * (c1.z * c2.w - c1.w * c2.z); + float m01 = c0.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c2.w - c0.w * c2.z); + float m02 = c0.y * (c1.z * c3.w - c1.w * c3.z) - c1.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c1.w - c0.w * c1.z); + float m03 = c0.y * (c1.z * c2.w - c1.w * c2.z) - c1.y * (c0.z * c2.w - c0.w * c2.z) + c2.y * (c0.z * c1.w - c0.w * c1.z); + + float m10 = c1.x * (c2.z * c3.w - c2.w * c3.z) - c2.x * (c1.z * c3.w - c1.w * c3.z) + c3.x * (c1.z * c2.w - c1.w * c2.z); + float m11 = c0.x * (c2.z * c3.w - c2.w * c3.z) - c2.x * (c0.z * c3.w - c0.w * c3.z) + c3.x * (c0.z * c2.w - c0.w * c2.z); + float m12 = c0.x * (c1.z * c3.w - c1.w * c3.z) - c1.x * (c0.z * c3.w - c0.w * c3.z) + c3.x * (c0.z * c1.w - c0.w * c1.z); + float m13 = c0.x * (c1.z * c2.w - c1.w * c2.z) - c1.x * (c0.z * c2.w - c0.w * c2.z) + c2.x * (c0.z * c1.w - c0.w * c1.z); + + float m20 = c1.x * (c2.y * c3.w - c2.w * c3.y) - c2.x * (c1.y * c3.w - c1.w * c3.y) + c3.x * (c1.y * c2.w - c1.w * c2.y); + float m21 = c0.x * (c2.y * c3.w - c2.w * c3.y) - c2.x * (c0.y * c3.w - c0.w * c3.y) + c3.x * (c0.y * c2.w - c0.w * c2.y); + float m22 = c0.x * (c1.y * c3.w - c1.w * c3.y) - c1.x * (c0.y * c3.w - c0.w * c3.y) + c3.x * (c0.y * c1.w - c0.w * c1.y); + float m23 = c0.x * (c1.y * c2.w - c1.w * c2.y) - c1.x * (c0.y * c2.w - c0.w * c2.y) + c2.x * (c0.y * c1.w - c0.w * c1.y); + + float m30 = c1.x * (c2.y * c3.z - c2.z * c3.y) - c2.x * (c1.y * c3.z - c1.z * c3.y) + c3.x * (c1.y * c2.z - c1.z * c2.y); + float m31 = c0.x * (c2.y * c3.z - c2.z * c3.y) - c2.x * (c0.y * c3.z - c0.z * c3.y) + c3.x * (c0.y * c2.z - c0.z * c2.y); + float m32 = c0.x * (c1.y * c3.z - c1.z * c3.y) - c1.x * (c0.y * c3.z - c0.z * c3.y) + c3.x * (c0.y * c1.z - c0.z * c1.y); + float m33 = c0.x * (c1.y * c2.z - c1.z * c2.y) - c1.x * (c0.y * c2.z - c0.z * c2.y) + c2.x * (c0.y * c1.z - c0.z * c1.y); + + float det = c0.x * m00 - c1.x * m01 + c2.x * m02 - c3.x * m03; + + return float4x4( m00, -m10, m20, -m30, + -m01, m11, -m21, m31, + m02, -m12, m22, -m32, + -m03, m13, -m23, m33) * (1.0f / det); } public static float4x4 scale(float3 vector) { - return float4x4(float4(vector.x, 0.0f, 0.0f, 0.0f), - float4(0.0f, vector.y, 0.0f, 0.0f), - float4(0.0f, 0.0f, vector.z, 0.0f), + return float4x4(float4(vector.x, 0.0f, 0.0f, 0.0f), + float4(0.0f, vector.y, 0.0f, 0.0f), + float4(0.0f, 0.0f, vector.z, 0.0f), float4(0.0f, 0.0f, 0.0f, 1.0f)); } public static float4x4 translate(float3 vector) { - return float4x4(float4(1.0f, 0.0f, 0.0f, 0.0f), - float4(0.0f, 1.0f, 0.0f, 0.0f), - float4(0.0f, 0.0f, 1.0f, 0.0f), + return float4x4(float4(1.0f, 0.0f, 0.0f, 0.0f), + float4(0.0f, 1.0f, 0.0f, 0.0f), + float4(0.0f, 0.0f, 1.0f, 0.0f), float4(vector.x, vector.y, vector.z, 1.0f)); } From 82bb0fc3f8a64b36535340c841846e124dae9168 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Wed, 13 Jun 2018 11:01:18 +0200 Subject: [PATCH 018/437] Make asmdef using LF line endings --- .editorconfig | 1 - .gitattributes | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 398a042e..cbde0b15 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,7 +6,6 @@ root = true # All Files [*] charset = utf-8 -end_of_line = crlf indent_style = space indent_size = 4 insert_final_newline = false diff --git a/.gitattributes b/.gitattributes index c3b3c2bb..aea4768c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,4 +7,4 @@ # Unity files *.asset text eol=lf *.meta text eol=lf - +*.asmdef text eol=lf From fc5417d3f6c6a7ed478082d733be50e7a132881d Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Wed, 13 Jun 2018 11:12:12 +0200 Subject: [PATCH 019/437] Update line endings for the VectorGenerator --- .../VectorGenerator.cs | 6 +- src/Unity.Mathematics/bool2.gen.cs | 654 +- src/Unity.Mathematics/bool3.gen.cs | 2166 +++--- src/Unity.Mathematics/bool4.gen.cs | 5966 ++++++++-------- src/Unity.Mathematics/float2.gen.cs | 738 +- src/Unity.Mathematics/float3.gen.cs | 2250 +++--- src/Unity.Mathematics/float4.gen.cs | 6050 ++++++++-------- src/Unity.Mathematics/int2.gen.cs | 808 +-- src/Unity.Mathematics/int3.gen.cs | 2320 +++---- src/Unity.Mathematics/int4.gen.cs | 6120 ++++++++--------- src/Unity.Mathematics/uint2.gen.cs | 796 +-- src/Unity.Mathematics/uint3.gen.cs | 2308 +++---- src/Unity.Mathematics/uint4.gen.cs | 6108 ++++++++-------- 13 files changed, 18144 insertions(+), 18146 deletions(-) diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index eac339e3..a12bf004 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -62,17 +62,15 @@ public static void Write(string dir) var text = builder.ToString(); // Convert all tabs to spaces text = text.Replace("\t", " "); - // Convert all EOL to platform EOL + // Normalize line endings, convert all EOL to platform EOL (and let git handle it) + text = text.Replace("\r\n", "\n"); text = text.Replace("\n", Environment.NewLine); System.IO.File.WriteAllText(dir + "/" + typeNames[i] + ".gen.cs", text); - } } } - - public void Generate(int count, StringBuilder str) { StringBuilder staticConstructorStr = new StringBuilder(); diff --git a/src/Unity.Mathematics/bool2.gen.cs b/src/Unity.Mathematics/bool2.gen.cs index 7c8cb725..0b84dfe1 100644 --- a/src/Unity.Mathematics/bool2.gen.cs +++ b/src/Unity.Mathematics/bool2.gen.cs @@ -1,327 +1,327 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct bool2 : System.IEquatable - { - // constructors - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2(bool x, bool y) - { - this.x = x; - this.y = y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool2(bool2 xy) - { - this.x = xy.x; - this.y = xy.y; - } - - - // equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (bool2 lhs, bool rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (bool lhs, bool2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } - - // not equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (bool2 lhs, bool rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (bool lhs, bool2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } - - // Equals - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool2 rhs) { return x == rhs.x && y == rhs.y; } - - // [int index] - unsafe public bool this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (bool2* array = &this) { return ((bool*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (bool* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator & (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x & rhs.x, lhs.y & rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator & (bool2 lhs, bool rhs) { return new bool2 (lhs.x & rhs, lhs.y & rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator & (bool lhs, bool2 rhs) { return new bool2 (lhs & rhs.x, lhs & rhs.y); } - - // operator | - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator | (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x | rhs.x, lhs.y | rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator | (bool2 lhs, bool rhs) { return new bool2 (lhs.x | rhs, lhs.y | rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator | (bool lhs, bool2 rhs) { return new bool2 (lhs | rhs.x, lhs | rhs.y); } - - // operator ^ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator ^ (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator ^ (bool2 lhs, bool rhs) { return new bool2 (lhs.x ^ rhs, lhs.y ^ rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator ^ (bool lhs, bool2 rhs) { return new bool2 (lhs ^ rhs.x, lhs ^ rhs.y); } - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, y); } - } - - - } - - public static partial class math - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 bool2(bool x, bool y) { return new bool2(x, y); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 bool2(bool2 xy) { return new bool2(xy); } - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct bool2 : System.IEquatable + { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool2(bool x, bool y) + { + this.x = x; + this.y = y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool2(bool2 xy) + { + this.x = xy.x; + this.y = xy.y; + } + + + // equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator == (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator == (bool2 lhs, bool rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator == (bool lhs, bool2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } + + // not equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator != (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator != (bool2 lhs, bool rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator != (bool lhs, bool2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } + + // Equals + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Equals(bool2 rhs) { return x == rhs.x && y == rhs.y; } + + // [int index] + unsafe public bool this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (bool2* array = &this) { return ((bool*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (bool* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator & (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x & rhs.x, lhs.y & rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator & (bool2 lhs, bool rhs) { return new bool2 (lhs.x & rhs, lhs.y & rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator & (bool lhs, bool2 rhs) { return new bool2 (lhs & rhs.x, lhs & rhs.y); } + + // operator | + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator | (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x | rhs.x, lhs.y | rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator | (bool2 lhs, bool rhs) { return new bool2 (lhs.x | rhs, lhs.y | rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator | (bool lhs, bool2 rhs) { return new bool2 (lhs | rhs.x, lhs | rhs.y); } + + // operator ^ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator ^ (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator ^ (bool2 lhs, bool rhs) { return new bool2 (lhs.x ^ rhs, lhs.y ^ rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator ^ (bool lhs, bool2 rhs) { return new bool2 (lhs ^ rhs.x, lhs ^ rhs.y); } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(y, y); } + } + + + } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 bool2(bool x, bool y) { return new bool2(x, y); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 bool2(bool2 xy) { return new bool2(xy); } + + } +} diff --git a/src/Unity.Mathematics/bool3.gen.cs b/src/Unity.Mathematics/bool3.gen.cs index f5bacc5b..21d61533 100644 --- a/src/Unity.Mathematics/bool3.gen.cs +++ b/src/Unity.Mathematics/bool3.gen.cs @@ -1,1083 +1,1083 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct bool3 : System.IEquatable - { - // constructors - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3(bool x, bool y, bool z) - { - this.x = x; - this.y = y; - this.z = z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3(bool x, bool2 yz) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3(bool2 xy, bool z) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool3(bool3 xyz) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - } - - - // equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (bool3 lhs, bool rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (bool lhs, bool3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } - - // not equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (bool3 lhs, bool rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (bool lhs, bool3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } - - // Equals - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } - - // [int index] - unsafe public bool this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (bool3* array = &this) { return ((bool*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (bool* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator & (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator & (bool3 lhs, bool rhs) { return new bool3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator & (bool lhs, bool3 rhs) { return new bool3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } - - // operator | - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator | (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator | (bool3 lhs, bool rhs) { return new bool3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator | (bool lhs, bool3 rhs) { return new bool3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } - - // operator ^ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator ^ (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator ^ (bool3 lhs, bool rhs) { return new bool3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator ^ (bool lhs, bool3 rhs) { return new bool3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(z, z); } - } - - - } - - public static partial class math - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 bool3(bool x, bool y, bool z) { return new bool3(x, y, z); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 bool3(bool x, bool2 yz) { return new bool3(x, yz); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 bool3(bool2 xy, bool z) { return new bool3(xy, z); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 bool3(bool3 xyz) { return new bool3(xyz); } - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct bool3 : System.IEquatable + { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool3(bool x, bool y, bool z) + { + this.x = x; + this.y = y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool3(bool x, bool2 yz) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool3(bool2 xy, bool z) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool3(bool3 xyz) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + } + + + // equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator == (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator == (bool3 lhs, bool rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator == (bool lhs, bool3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } + + // not equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator != (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator != (bool3 lhs, bool rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator != (bool lhs, bool3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } + + // Equals + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Equals(bool3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } + + // [int index] + unsafe public bool this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (bool3* array = &this) { return ((bool*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (bool* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator & (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator & (bool3 lhs, bool rhs) { return new bool3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator & (bool lhs, bool3 rhs) { return new bool3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } + + // operator | + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator | (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator | (bool3 lhs, bool rhs) { return new bool3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator | (bool lhs, bool3 rhs) { return new bool3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } + + // operator ^ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator ^ (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator ^ (bool3 lhs, bool rhs) { return new bool3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator ^ (bool lhs, bool3 rhs) { return new bool3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 zx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 zy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 zz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(z, z); } + } + + + } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 bool3(bool x, bool y, bool z) { return new bool3(x, y, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 bool3(bool x, bool2 yz) { return new bool3(x, yz); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 bool3(bool2 xy, bool z) { return new bool3(xy, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 bool3(bool3 xyz) { return new bool3(xyz); } + + } +} diff --git a/src/Unity.Mathematics/bool4.gen.cs b/src/Unity.Mathematics/bool4.gen.cs index 612a2ab8..8d3b3e1b 100644 --- a/src/Unity.Mathematics/bool4.gen.cs +++ b/src/Unity.Mathematics/bool4.gen.cs @@ -1,2983 +1,2983 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct bool4 : System.IEquatable - { - // constructors - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool x, bool y, bool z, bool w) - { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool x, bool y, bool2 zw) - { - this.x = x; - this.y = y; - this.z = zw.x; - this.w = zw.y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool x, bool2 yz, bool w) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool x, bool3 yzw) - { - this.x = x; - this.y = yzw.x; - this.z = yzw.y; - this.w = yzw.z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool2 xy, bool z, bool w) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool2 xy, bool2 zw) - { - this.x = xy.x; - this.y = xy.y; - this.z = zw.x; - this.w = zw.y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool3 xyz, bool w) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool4(bool4 xyzw) - { - this.x = xyzw.x; - this.y = xyzw.y; - this.z = xyzw.z; - this.w = xyzw.w; - } - - - // equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (bool4 lhs, bool rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (bool lhs, bool4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } - - // not equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (bool4 lhs, bool rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (bool lhs, bool4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } - - // Equals - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(bool4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } - - // [int index] - unsafe public bool this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (bool4* array = &this) { return ((bool*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (bool* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator & (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator & (bool4 lhs, bool rhs) { return new bool4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator & (bool lhs, bool4 rhs) { return new bool4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } - - // operator | - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator | (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator | (bool4 lhs, bool rhs) { return new bool4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator | (bool lhs, bool4 rhs) { return new bool4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } - - // operator ^ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator ^ (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator ^ (bool4 lhs, bool rhs) { return new bool4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator ^ (bool lhs, bool4 rhs) { return new bool4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 xwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(x, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 yzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 ywww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(y, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 zwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(z, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool4 wwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool4(w, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 xww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 ywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 ywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 ywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 yww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 zww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 wwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool3 www - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool3(w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 xw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 yw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 zw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 wx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 wy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 wz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public bool2 ww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new bool2(w, w); } - } - - - } - - public static partial class math - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool x, bool y, bool z, bool w) { return new bool4(x, y, z, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool x, bool y, bool2 zw) { return new bool4(x, y, zw); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool x, bool2 yz, bool w) { return new bool4(x, yz, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool x, bool3 yzw) { return new bool4(x, yzw); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool2 xy, bool z, bool w) { return new bool4(xy, z, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool2 xy, bool2 zw) { return new bool4(xy, zw); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool3 xyz, bool w) { return new bool4(xyz, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 bool4(bool4 xyzw) { return new bool4(xyzw); } - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct bool4 : System.IEquatable + { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool x, bool y, bool z, bool w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool x, bool y, bool2 zw) + { + this.x = x; + this.y = y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool x, bool2 yz, bool w) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool x, bool3 yzw) + { + this.x = x; + this.y = yzw.x; + this.z = yzw.y; + this.w = yzw.z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool2 xy, bool z, bool w) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool2 xy, bool2 zw) + { + this.x = xy.x; + this.y = xy.y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool3 xyz, bool w) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool4(bool4 xyzw) + { + this.x = xyzw.x; + this.y = xyzw.y; + this.z = xyzw.z; + this.w = xyzw.w; + } + + + // equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator == (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator == (bool4 lhs, bool rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator == (bool lhs, bool4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } + + // not equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator != (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator != (bool4 lhs, bool rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator != (bool lhs, bool4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } + + // Equals + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Equals(bool4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } + + // [int index] + unsafe public bool this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (bool4* array = &this) { return ((bool*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (bool* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator & (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator & (bool4 lhs, bool rhs) { return new bool4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator & (bool lhs, bool4 rhs) { return new bool4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } + + // operator | + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator | (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator | (bool4 lhs, bool rhs) { return new bool4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator | (bool lhs, bool4 rhs) { return new bool4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } + + // operator ^ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator ^ (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator ^ (bool4 lhs, bool rhs) { return new bool4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator ^ (bool lhs, bool4 rhs) { return new bool4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 xwww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(x, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 yzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 ywww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(y, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 zwww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(z, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool4 wwww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool4(w, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 xww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 ywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 ywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 ywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 yww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 zww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 wwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool3 www + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool3(w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 xw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 yw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 zx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 zy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 zz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 zw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 wx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 wy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 wz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public bool2 ww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new bool2(w, w); } + } + + + } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool x, bool y, bool z, bool w) { return new bool4(x, y, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool x, bool y, bool2 zw) { return new bool4(x, y, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool x, bool2 yz, bool w) { return new bool4(x, yz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool x, bool3 yzw) { return new bool4(x, yzw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool2 xy, bool z, bool w) { return new bool4(xy, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool2 xy, bool2 zw) { return new bool4(xy, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool3 xyz, bool w) { return new bool4(xyz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 bool4(bool4 xyzw) { return new bool4(xyzw); } + + } +} diff --git a/src/Unity.Mathematics/float2.gen.cs b/src/Unity.Mathematics/float2.gen.cs index 096ec487..dccdd579 100644 --- a/src/Unity.Mathematics/float2.gen.cs +++ b/src/Unity.Mathematics/float2.gen.cs @@ -1,369 +1,369 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct float2 : System.IEquatable - { - // constructors - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(float x, float y) - { - this.x = x; - this.y = y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float2(float2 xy) - { - this.x = xy.x; - this.y = xy.y; - } - - - // mul - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator * (float2 lhs, float2 rhs) { return new float2 (lhs.x * rhs.x, lhs.y * rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator * (float2 lhs, float rhs) { return new float2 (lhs.x * rhs, lhs.y * rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator * (float lhs, float2 rhs) { return new float2 (lhs * rhs.x, lhs * rhs.y); } - - // add - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator + (float2 lhs, float2 rhs) { return new float2 (lhs.x + rhs.x, lhs.y + rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator + (float2 lhs, float rhs) { return new float2 (lhs.x + rhs, lhs.y + rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator + (float lhs, float2 rhs) { return new float2 (lhs + rhs.x, lhs + rhs.y); } - - // sub - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator - (float2 lhs, float2 rhs) { return new float2 (lhs.x - rhs.x, lhs.y - rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator - (float2 lhs, float rhs) { return new float2 (lhs.x - rhs, lhs.y - rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator - (float lhs, float2 rhs) { return new float2 (lhs - rhs.x, lhs - rhs.y); } - - // div - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator / (float2 lhs, float2 rhs) { return new float2 (lhs.x / rhs.x, lhs.y / rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator / (float2 lhs, float rhs) { return new float2 (lhs.x / rhs, lhs.y / rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator / (float lhs, float2 rhs) { return new float2 (lhs / rhs.x, lhs / rhs.y); } - - // smaller - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (float2 lhs, float2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (float2 lhs, float rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (float lhs, float2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (float2 lhs, float2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (float2 lhs, float rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (float lhs, float2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } - - // greater - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (float2 lhs, float2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (float2 lhs, float rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (float lhs, float2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (float2 lhs, float2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (float2 lhs, float rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (float lhs, float2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } - - // neg - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator - (float2 val) { return new float2 (-val.x, -val.y); } - // plus - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 operator + (float2 val) { return new float2 (+val.x, +val.y); } - // equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (float2 lhs, float2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (float2 lhs, float rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (float lhs, float2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } - - // not equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (float2 lhs, float2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (float2 lhs, float rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (float lhs, float2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } - - // Equals - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float2 rhs) { return x == rhs.x && y == rhs.y; } - - // [int index] - unsafe public float this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (float2* array = &this) { return ((float*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (float* array = &x) { array[index] = value; } - } - } - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, y); } - } - - - } - - public static partial class math - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(float x, float y) { return new float2(x, y); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 float2(float2 xy) { return new float2(xy); } - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct float2 : System.IEquatable + { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float2(float x, float y) + { + this.x = x; + this.y = y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float2(float2 xy) + { + this.x = xy.x; + this.y = xy.y; + } + + + // mul + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 operator * (float2 lhs, float2 rhs) { return new float2 (lhs.x * rhs.x, lhs.y * rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 operator * (float2 lhs, float rhs) { return new float2 (lhs.x * rhs, lhs.y * rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 operator * (float lhs, float2 rhs) { return new float2 (lhs * rhs.x, lhs * rhs.y); } + + // add + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 operator + (float2 lhs, float2 rhs) { return new float2 (lhs.x + rhs.x, lhs.y + rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 operator + (float2 lhs, float rhs) { return new float2 (lhs.x + rhs, lhs.y + rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 operator + (float lhs, float2 rhs) { return new float2 (lhs + rhs.x, lhs + rhs.y); } + + // sub + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 operator - (float2 lhs, float2 rhs) { return new float2 (lhs.x - rhs.x, lhs.y - rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 operator - (float2 lhs, float rhs) { return new float2 (lhs.x - rhs, lhs.y - rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 operator - (float lhs, float2 rhs) { return new float2 (lhs - rhs.x, lhs - rhs.y); } + + // div + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 operator / (float2 lhs, float2 rhs) { return new float2 (lhs.x / rhs.x, lhs.y / rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 operator / (float2 lhs, float rhs) { return new float2 (lhs.x / rhs, lhs.y / rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 operator / (float lhs, float2 rhs) { return new float2 (lhs / rhs.x, lhs / rhs.y); } + + // smaller + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator < (float2 lhs, float2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator < (float2 lhs, float rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator < (float lhs, float2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator <= (float2 lhs, float2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator <= (float2 lhs, float rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator <= (float lhs, float2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } + + // greater + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator > (float2 lhs, float2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator > (float2 lhs, float rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator > (float lhs, float2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator >= (float2 lhs, float2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator >= (float2 lhs, float rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator >= (float lhs, float2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } + + // neg + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 operator - (float2 val) { return new float2 (-val.x, -val.y); } + // plus + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 operator + (float2 val) { return new float2 (+val.x, +val.y); } + // equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator == (float2 lhs, float2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator == (float2 lhs, float rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator == (float lhs, float2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } + + // not equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator != (float2 lhs, float2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator != (float2 lhs, float rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator != (float lhs, float2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } + + // Equals + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Equals(float2 rhs) { return x == rhs.x && y == rhs.y; } + + // [int index] + unsafe public float this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (float2* array = &this) { return ((float*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (float* array = &x) { array[index] = value; } + } + } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(y, y); } + } + + + } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 float2(float x, float y) { return new float2(x, y); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 float2(float2 xy) { return new float2(xy); } + + } +} diff --git a/src/Unity.Mathematics/float3.gen.cs b/src/Unity.Mathematics/float3.gen.cs index 4c43dd5f..a681277f 100644 --- a/src/Unity.Mathematics/float3.gen.cs +++ b/src/Unity.Mathematics/float3.gen.cs @@ -1,1125 +1,1125 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct float3 : System.IEquatable - { - // constructors - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(float x, float y, float z) - { - this.x = x; - this.y = y; - this.z = z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(float x, float2 yz) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(float2 xy, float z) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float3(float3 xyz) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - } - - - // mul - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator * (float3 lhs, float3 rhs) { return new float3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator * (float3 lhs, float rhs) { return new float3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator * (float lhs, float3 rhs) { return new float3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } - - // add - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator + (float3 lhs, float3 rhs) { return new float3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator + (float3 lhs, float rhs) { return new float3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator + (float lhs, float3 rhs) { return new float3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } - - // sub - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator - (float3 lhs, float3 rhs) { return new float3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator - (float3 lhs, float rhs) { return new float3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator - (float lhs, float3 rhs) { return new float3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } - - // div - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator / (float3 lhs, float3 rhs) { return new float3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator / (float3 lhs, float rhs) { return new float3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator / (float lhs, float3 rhs) { return new float3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } - - // smaller - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (float3 lhs, float3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (float3 lhs, float rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (float lhs, float3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (float3 lhs, float3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (float3 lhs, float rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (float lhs, float3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } - - // greater - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (float3 lhs, float3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (float3 lhs, float rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (float lhs, float3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (float3 lhs, float3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (float3 lhs, float rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (float lhs, float3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } - - // neg - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator - (float3 val) { return new float3 (-val.x, -val.y, -val.z); } - // plus - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 operator + (float3 val) { return new float3 (+val.x, +val.y, +val.z); } - // equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (float3 lhs, float3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (float3 lhs, float rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (float lhs, float3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } - - // not equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (float3 lhs, float3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (float3 lhs, float rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (float lhs, float3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } - - // Equals - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } - - // [int index] - unsafe public float this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (float3* array = &this) { return ((float*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (float* array = &x) { array[index] = value; } - } - } - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(z, z); } - } - - - } - - public static partial class math - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(float x, float y, float z) { return new float3(x, y, z); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(float x, float2 yz) { return new float3(x, yz); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(float2 xy, float z) { return new float3(xy, z); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 float3(float3 xyz) { return new float3(xyz); } - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct float3 : System.IEquatable + { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float3(float x, float y, float z) + { + this.x = x; + this.y = y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float3(float x, float2 yz) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float3(float2 xy, float z) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float3(float3 xyz) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + } + + + // mul + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 operator * (float3 lhs, float3 rhs) { return new float3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 operator * (float3 lhs, float rhs) { return new float3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 operator * (float lhs, float3 rhs) { return new float3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } + + // add + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 operator + (float3 lhs, float3 rhs) { return new float3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 operator + (float3 lhs, float rhs) { return new float3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 operator + (float lhs, float3 rhs) { return new float3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } + + // sub + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 operator - (float3 lhs, float3 rhs) { return new float3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 operator - (float3 lhs, float rhs) { return new float3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 operator - (float lhs, float3 rhs) { return new float3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } + + // div + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 operator / (float3 lhs, float3 rhs) { return new float3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 operator / (float3 lhs, float rhs) { return new float3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 operator / (float lhs, float3 rhs) { return new float3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } + + // smaller + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator < (float3 lhs, float3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator < (float3 lhs, float rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator < (float lhs, float3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator <= (float3 lhs, float3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator <= (float3 lhs, float rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator <= (float lhs, float3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } + + // greater + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator > (float3 lhs, float3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator > (float3 lhs, float rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator > (float lhs, float3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator >= (float3 lhs, float3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator >= (float3 lhs, float rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator >= (float lhs, float3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } + + // neg + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 operator - (float3 val) { return new float3 (-val.x, -val.y, -val.z); } + // plus + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 operator + (float3 val) { return new float3 (+val.x, +val.y, +val.z); } + // equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator == (float3 lhs, float3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator == (float3 lhs, float rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator == (float lhs, float3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } + + // not equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator != (float3 lhs, float3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator != (float3 lhs, float rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator != (float lhs, float3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } + + // Equals + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Equals(float3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } + + // [int index] + unsafe public float this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (float3* array = &this) { return ((float*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (float* array = &x) { array[index] = value; } + } + } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 zx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 zy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 zz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(z, z); } + } + + + } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 float3(float x, float y, float z) { return new float3(x, y, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 float3(float x, float2 yz) { return new float3(x, yz); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 float3(float2 xy, float z) { return new float3(xy, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 float3(float3 xyz) { return new float3(xyz); } + + } +} diff --git a/src/Unity.Mathematics/float4.gen.cs b/src/Unity.Mathematics/float4.gen.cs index b37790e2..506addbb 100644 --- a/src/Unity.Mathematics/float4.gen.cs +++ b/src/Unity.Mathematics/float4.gen.cs @@ -1,3025 +1,3025 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct float4 : System.IEquatable - { - // constructors - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float x, float y, float z, float w) - { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float x, float y, float2 zw) - { - this.x = x; - this.y = y; - this.z = zw.x; - this.w = zw.y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float x, float2 yz, float w) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float x, float3 yzw) - { - this.x = x; - this.y = yzw.x; - this.z = yzw.y; - this.w = yzw.z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float2 xy, float z, float w) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float2 xy, float2 zw) - { - this.x = xy.x; - this.y = xy.y; - this.z = zw.x; - this.w = zw.y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float3 xyz, float w) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public float4(float4 xyzw) - { - this.x = xyzw.x; - this.y = xyzw.y; - this.z = xyzw.z; - this.w = xyzw.w; - } - - - // mul - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator * (float4 lhs, float4 rhs) { return new float4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator * (float4 lhs, float rhs) { return new float4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator * (float lhs, float4 rhs) { return new float4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } - - // add - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator + (float4 lhs, float4 rhs) { return new float4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator + (float4 lhs, float rhs) { return new float4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator + (float lhs, float4 rhs) { return new float4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } - - // sub - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator - (float4 lhs, float4 rhs) { return new float4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator - (float4 lhs, float rhs) { return new float4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator - (float lhs, float4 rhs) { return new float4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } - - // div - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator / (float4 lhs, float4 rhs) { return new float4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator / (float4 lhs, float rhs) { return new float4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator / (float lhs, float4 rhs) { return new float4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } - - // smaller - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (float4 lhs, float4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (float4 lhs, float rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (float lhs, float4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (float4 lhs, float4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (float4 lhs, float rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (float lhs, float4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } - - // greater - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (float4 lhs, float4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (float4 lhs, float rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (float lhs, float4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (float4 lhs, float4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (float4 lhs, float rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (float lhs, float4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } - - // neg - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator - (float4 val) { return new float4 (-val.x, -val.y, -val.z, -val.w); } - // plus - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 operator + (float4 val) { return new float4 (+val.x, +val.y, +val.z, +val.w); } - // equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (float4 lhs, float4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (float4 lhs, float rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (float lhs, float4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } - - // not equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (float4 lhs, float4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (float4 lhs, float rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (float lhs, float4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } - - // Equals - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(float4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } - - // [int index] - unsafe public float this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (float4* array = &this) { return ((float*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (float* array = &x) { array[index] = value; } - } - } - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 xwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(x, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 yzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 ywww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(y, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 zwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(z, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float4 wwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float4(w, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 xww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 ywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 ywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 ywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 yww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 zww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 wwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float3 www - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float3(w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 xw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 yw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 zw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 wx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 wy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 wz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public float2 ww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new float2(w, w); } - } - - - } - - public static partial class math - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float x, float y, float z, float w) { return new float4(x, y, z, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float x, float y, float2 zw) { return new float4(x, y, zw); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float x, float2 yz, float w) { return new float4(x, yz, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float x, float3 yzw) { return new float4(x, yzw); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float2 xy, float z, float w) { return new float4(xy, z, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float2 xy, float2 zw) { return new float4(xy, zw); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float3 xyz, float w) { return new float4(xyz, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 float4(float4 xyzw) { return new float4(xyzw); } - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct float4 : System.IEquatable + { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float x, float y, float z, float w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float x, float y, float2 zw) + { + this.x = x; + this.y = y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float x, float2 yz, float w) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float x, float3 yzw) + { + this.x = x; + this.y = yzw.x; + this.z = yzw.y; + this.w = yzw.z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float2 xy, float z, float w) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float2 xy, float2 zw) + { + this.x = xy.x; + this.y = xy.y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float3 xyz, float w) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float4(float4 xyzw) + { + this.x = xyzw.x; + this.y = xyzw.y; + this.z = xyzw.z; + this.w = xyzw.w; + } + + + // mul + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 operator * (float4 lhs, float4 rhs) { return new float4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 operator * (float4 lhs, float rhs) { return new float4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 operator * (float lhs, float4 rhs) { return new float4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } + + // add + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 operator + (float4 lhs, float4 rhs) { return new float4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 operator + (float4 lhs, float rhs) { return new float4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 operator + (float lhs, float4 rhs) { return new float4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } + + // sub + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 operator - (float4 lhs, float4 rhs) { return new float4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 operator - (float4 lhs, float rhs) { return new float4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 operator - (float lhs, float4 rhs) { return new float4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } + + // div + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 operator / (float4 lhs, float4 rhs) { return new float4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 operator / (float4 lhs, float rhs) { return new float4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 operator / (float lhs, float4 rhs) { return new float4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } + + // smaller + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator < (float4 lhs, float4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator < (float4 lhs, float rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator < (float lhs, float4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator <= (float4 lhs, float4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator <= (float4 lhs, float rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator <= (float lhs, float4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } + + // greater + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator > (float4 lhs, float4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator > (float4 lhs, float rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator > (float lhs, float4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator >= (float4 lhs, float4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator >= (float4 lhs, float rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator >= (float lhs, float4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } + + // neg + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 operator - (float4 val) { return new float4 (-val.x, -val.y, -val.z, -val.w); } + // plus + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 operator + (float4 val) { return new float4 (+val.x, +val.y, +val.z, +val.w); } + // equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator == (float4 lhs, float4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator == (float4 lhs, float rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator == (float lhs, float4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } + + // not equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator != (float4 lhs, float4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator != (float4 lhs, float rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator != (float lhs, float4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } + + // Equals + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Equals(float4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } + + // [int index] + unsafe public float this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (float4* array = &this) { return ((float*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (float* array = &x) { array[index] = value; } + } + } + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 xwww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(x, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 yzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 ywww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(y, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 zwww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(z, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float4 wwww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float4(w, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 xww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 ywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 ywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 ywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 yww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 zww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 wwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float3 www + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float3(w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 xw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 yw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 zx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 zy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 zz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 zw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 wx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 wy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 wz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public float2 ww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new float2(w, w); } + } + + + } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float x, float y, float z, float w) { return new float4(x, y, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float x, float y, float2 zw) { return new float4(x, y, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float x, float2 yz, float w) { return new float4(x, yz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float x, float3 yzw) { return new float4(x, yzw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float2 xy, float z, float w) { return new float4(xy, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float2 xy, float2 zw) { return new float4(xy, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float3 xyz, float w) { return new float4(xyz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 float4(float4 xyzw) { return new float4(xyzw); } + + } +} diff --git a/src/Unity.Mathematics/int2.gen.cs b/src/Unity.Mathematics/int2.gen.cs index ff9b5d98..6c749f66 100644 --- a/src/Unity.Mathematics/int2.gen.cs +++ b/src/Unity.Mathematics/int2.gen.cs @@ -1,404 +1,404 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct int2 : System.IEquatable - { - // constructors - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2(int x, int y) - { - this.x = x; - this.y = y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int2(int2 xy) - { - this.x = xy.x; - this.y = xy.y; - } - - - // mul - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator * (int2 lhs, int2 rhs) { return new int2 (lhs.x * rhs.x, lhs.y * rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator * (int2 lhs, int rhs) { return new int2 (lhs.x * rhs, lhs.y * rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator * (int lhs, int2 rhs) { return new int2 (lhs * rhs.x, lhs * rhs.y); } - - // add - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator + (int2 lhs, int2 rhs) { return new int2 (lhs.x + rhs.x, lhs.y + rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator + (int2 lhs, int rhs) { return new int2 (lhs.x + rhs, lhs.y + rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator + (int lhs, int2 rhs) { return new int2 (lhs + rhs.x, lhs + rhs.y); } - - // sub - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator - (int2 lhs, int2 rhs) { return new int2 (lhs.x - rhs.x, lhs.y - rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator - (int2 lhs, int rhs) { return new int2 (lhs.x - rhs, lhs.y - rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator - (int lhs, int2 rhs) { return new int2 (lhs - rhs.x, lhs - rhs.y); } - - // div - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator / (int2 lhs, int2 rhs) { return new int2 (lhs.x / rhs.x, lhs.y / rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator / (int2 lhs, int rhs) { return new int2 (lhs.x / rhs, lhs.y / rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator / (int lhs, int2 rhs) { return new int2 (lhs / rhs.x, lhs / rhs.y); } - - // smaller - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (int2 lhs, int2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (int2 lhs, int rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (int lhs, int2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (int2 lhs, int2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (int2 lhs, int rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (int lhs, int2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } - - // greater - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (int2 lhs, int2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (int2 lhs, int rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (int lhs, int2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (int2 lhs, int2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (int2 lhs, int rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (int lhs, int2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } - - // neg - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator - (int2 val) { return new int2 (-val.x, -val.y); } - // plus - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator + (int2 val) { return new int2 (+val.x, +val.y); } - // left shift - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator << (int2 lhs, int rhs) { return new int2 (lhs.x << rhs, lhs.y << rhs); } - - // right shift - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator >> (int2 lhs, int rhs) { return new int2 (lhs.x >> rhs, lhs.y >> rhs); } - - // equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (int2 lhs, int2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (int2 lhs, int rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (int lhs, int2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } - - // not equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (int2 lhs, int2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (int2 lhs, int rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (int lhs, int2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } - - // Equals - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int2 rhs) { return x == rhs.x && y == rhs.y; } - - // [int index] - unsafe public int this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (int2* array = &this) { return ((int*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (int* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator & (int2 lhs, int2 rhs) { return new int2 (lhs.x & rhs.x, lhs.y & rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator & (int2 lhs, int rhs) { return new int2 (lhs.x & rhs, lhs.y & rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator & (int lhs, int2 rhs) { return new int2 (lhs & rhs.x, lhs & rhs.y); } - - // operator | - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator | (int2 lhs, int2 rhs) { return new int2 (lhs.x | rhs.x, lhs.y | rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator | (int2 lhs, int rhs) { return new int2 (lhs.x | rhs, lhs.y | rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator | (int lhs, int2 rhs) { return new int2 (lhs | rhs.x, lhs | rhs.y); } - - // operator ^ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator ^ (int2 lhs, int2 rhs) { return new int2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator ^ (int2 lhs, int rhs) { return new int2 (lhs.x ^ rhs, lhs.y ^ rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator ^ (int lhs, int2 rhs) { return new int2 (lhs ^ rhs.x, lhs ^ rhs.y); } - - // operator ~ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 operator ~ (int2 val) { return new int2 (~val.x, ~val.y); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, y); } - } - - - } - - public static partial class math - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(int x, int y) { return new int2(x, y); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 int2(int2 xy) { return new int2(xy); } - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct int2 : System.IEquatable + { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int2(int x, int y) + { + this.x = x; + this.y = y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int2(int2 xy) + { + this.x = xy.x; + this.y = xy.y; + } + + + // mul + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator * (int2 lhs, int2 rhs) { return new int2 (lhs.x * rhs.x, lhs.y * rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator * (int2 lhs, int rhs) { return new int2 (lhs.x * rhs, lhs.y * rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator * (int lhs, int2 rhs) { return new int2 (lhs * rhs.x, lhs * rhs.y); } + + // add + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator + (int2 lhs, int2 rhs) { return new int2 (lhs.x + rhs.x, lhs.y + rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator + (int2 lhs, int rhs) { return new int2 (lhs.x + rhs, lhs.y + rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator + (int lhs, int2 rhs) { return new int2 (lhs + rhs.x, lhs + rhs.y); } + + // sub + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator - (int2 lhs, int2 rhs) { return new int2 (lhs.x - rhs.x, lhs.y - rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator - (int2 lhs, int rhs) { return new int2 (lhs.x - rhs, lhs.y - rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator - (int lhs, int2 rhs) { return new int2 (lhs - rhs.x, lhs - rhs.y); } + + // div + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator / (int2 lhs, int2 rhs) { return new int2 (lhs.x / rhs.x, lhs.y / rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator / (int2 lhs, int rhs) { return new int2 (lhs.x / rhs, lhs.y / rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator / (int lhs, int2 rhs) { return new int2 (lhs / rhs.x, lhs / rhs.y); } + + // smaller + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator < (int2 lhs, int2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator < (int2 lhs, int rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator < (int lhs, int2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator <= (int2 lhs, int2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator <= (int2 lhs, int rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator <= (int lhs, int2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } + + // greater + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator > (int2 lhs, int2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator > (int2 lhs, int rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator > (int lhs, int2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator >= (int2 lhs, int2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator >= (int2 lhs, int rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator >= (int lhs, int2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } + + // neg + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator - (int2 val) { return new int2 (-val.x, -val.y); } + // plus + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator + (int2 val) { return new int2 (+val.x, +val.y); } + // left shift + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator << (int2 lhs, int rhs) { return new int2 (lhs.x << rhs, lhs.y << rhs); } + + // right shift + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator >> (int2 lhs, int rhs) { return new int2 (lhs.x >> rhs, lhs.y >> rhs); } + + // equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator == (int2 lhs, int2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator == (int2 lhs, int rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator == (int lhs, int2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } + + // not equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator != (int2 lhs, int2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator != (int2 lhs, int rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator != (int lhs, int2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } + + // Equals + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Equals(int2 rhs) { return x == rhs.x && y == rhs.y; } + + // [int index] + unsafe public int this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (int2* array = &this) { return ((int*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (int* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator & (int2 lhs, int2 rhs) { return new int2 (lhs.x & rhs.x, lhs.y & rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator & (int2 lhs, int rhs) { return new int2 (lhs.x & rhs, lhs.y & rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator & (int lhs, int2 rhs) { return new int2 (lhs & rhs.x, lhs & rhs.y); } + + // operator | + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator | (int2 lhs, int2 rhs) { return new int2 (lhs.x | rhs.x, lhs.y | rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator | (int2 lhs, int rhs) { return new int2 (lhs.x | rhs, lhs.y | rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator | (int lhs, int2 rhs) { return new int2 (lhs | rhs.x, lhs | rhs.y); } + + // operator ^ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator ^ (int2 lhs, int2 rhs) { return new int2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator ^ (int2 lhs, int rhs) { return new int2 (lhs.x ^ rhs, lhs.y ^ rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator ^ (int lhs, int2 rhs) { return new int2 (lhs ^ rhs.x, lhs ^ rhs.y); } + + // operator ~ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 operator ~ (int2 val) { return new int2 (~val.x, ~val.y); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(y, y); } + } + + + } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 int2(int x, int y) { return new int2(x, y); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 int2(int2 xy) { return new int2(xy); } + + } +} diff --git a/src/Unity.Mathematics/int3.gen.cs b/src/Unity.Mathematics/int3.gen.cs index 96b19a89..b65e163e 100644 --- a/src/Unity.Mathematics/int3.gen.cs +++ b/src/Unity.Mathematics/int3.gen.cs @@ -1,1160 +1,1160 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct int3 : System.IEquatable - { - // constructors - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(int x, int y, int z) - { - this.x = x; - this.y = y; - this.z = z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(int x, int2 yz) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(int2 xy, int z) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int3(int3 xyz) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - } - - - // mul - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator * (int3 lhs, int3 rhs) { return new int3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator * (int3 lhs, int rhs) { return new int3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator * (int lhs, int3 rhs) { return new int3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } - - // add - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator + (int3 lhs, int3 rhs) { return new int3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator + (int3 lhs, int rhs) { return new int3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator + (int lhs, int3 rhs) { return new int3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } - - // sub - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator - (int3 lhs, int3 rhs) { return new int3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator - (int3 lhs, int rhs) { return new int3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator - (int lhs, int3 rhs) { return new int3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } - - // div - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator / (int3 lhs, int3 rhs) { return new int3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator / (int3 lhs, int rhs) { return new int3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator / (int lhs, int3 rhs) { return new int3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } - - // smaller - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (int3 lhs, int3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (int3 lhs, int rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (int lhs, int3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (int3 lhs, int3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (int3 lhs, int rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (int lhs, int3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } - - // greater - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (int3 lhs, int3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (int3 lhs, int rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (int lhs, int3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (int3 lhs, int3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (int3 lhs, int rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (int lhs, int3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } - - // neg - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator - (int3 val) { return new int3 (-val.x, -val.y, -val.z); } - // plus - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator + (int3 val) { return new int3 (+val.x, +val.y, +val.z); } - // left shift - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator << (int3 lhs, int rhs) { return new int3 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs); } - - // right shift - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator >> (int3 lhs, int rhs) { return new int3 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs); } - - // equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (int3 lhs, int3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (int3 lhs, int rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (int lhs, int3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } - - // not equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (int3 lhs, int3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (int3 lhs, int rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (int lhs, int3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } - - // Equals - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } - - // [int index] - unsafe public int this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (int3* array = &this) { return ((int*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (int* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator & (int3 lhs, int3 rhs) { return new int3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator & (int3 lhs, int rhs) { return new int3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator & (int lhs, int3 rhs) { return new int3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } - - // operator | - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator | (int3 lhs, int3 rhs) { return new int3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator | (int3 lhs, int rhs) { return new int3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator | (int lhs, int3 rhs) { return new int3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } - - // operator ^ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator ^ (int3 lhs, int3 rhs) { return new int3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator ^ (int3 lhs, int rhs) { return new int3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator ^ (int lhs, int3 rhs) { return new int3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } - - // operator ~ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 operator ~ (int3 val) { return new int3 (~val.x, ~val.y, ~val.z); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(z, z); } - } - - - } - - public static partial class math - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(int x, int y, int z) { return new int3(x, y, z); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(int x, int2 yz) { return new int3(x, yz); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(int2 xy, int z) { return new int3(xy, z); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 int3(int3 xyz) { return new int3(xyz); } - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct int3 : System.IEquatable + { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int3(int x, int y, int z) + { + this.x = x; + this.y = y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int3(int x, int2 yz) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int3(int2 xy, int z) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int3(int3 xyz) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + } + + + // mul + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator * (int3 lhs, int3 rhs) { return new int3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator * (int3 lhs, int rhs) { return new int3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator * (int lhs, int3 rhs) { return new int3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } + + // add + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator + (int3 lhs, int3 rhs) { return new int3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator + (int3 lhs, int rhs) { return new int3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator + (int lhs, int3 rhs) { return new int3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } + + // sub + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator - (int3 lhs, int3 rhs) { return new int3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator - (int3 lhs, int rhs) { return new int3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator - (int lhs, int3 rhs) { return new int3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } + + // div + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator / (int3 lhs, int3 rhs) { return new int3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator / (int3 lhs, int rhs) { return new int3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator / (int lhs, int3 rhs) { return new int3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } + + // smaller + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator < (int3 lhs, int3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator < (int3 lhs, int rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator < (int lhs, int3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator <= (int3 lhs, int3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator <= (int3 lhs, int rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator <= (int lhs, int3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } + + // greater + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator > (int3 lhs, int3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator > (int3 lhs, int rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator > (int lhs, int3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator >= (int3 lhs, int3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator >= (int3 lhs, int rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator >= (int lhs, int3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } + + // neg + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator - (int3 val) { return new int3 (-val.x, -val.y, -val.z); } + // plus + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator + (int3 val) { return new int3 (+val.x, +val.y, +val.z); } + // left shift + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator << (int3 lhs, int rhs) { return new int3 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs); } + + // right shift + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator >> (int3 lhs, int rhs) { return new int3 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs); } + + // equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator == (int3 lhs, int3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator == (int3 lhs, int rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator == (int lhs, int3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } + + // not equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator != (int3 lhs, int3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator != (int3 lhs, int rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator != (int lhs, int3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } + + // Equals + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Equals(int3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } + + // [int index] + unsafe public int this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (int3* array = &this) { return ((int*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (int* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator & (int3 lhs, int3 rhs) { return new int3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator & (int3 lhs, int rhs) { return new int3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator & (int lhs, int3 rhs) { return new int3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } + + // operator | + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator | (int3 lhs, int3 rhs) { return new int3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator | (int3 lhs, int rhs) { return new int3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator | (int lhs, int3 rhs) { return new int3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } + + // operator ^ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator ^ (int3 lhs, int3 rhs) { return new int3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator ^ (int3 lhs, int rhs) { return new int3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator ^ (int lhs, int3 rhs) { return new int3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } + + // operator ~ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 operator ~ (int3 val) { return new int3 (~val.x, ~val.y, ~val.z); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 zx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 zy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 zz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(z, z); } + } + + + } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 int3(int x, int y, int z) { return new int3(x, y, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 int3(int x, int2 yz) { return new int3(x, yz); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 int3(int2 xy, int z) { return new int3(xy, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 int3(int3 xyz) { return new int3(xyz); } + + } +} diff --git a/src/Unity.Mathematics/int4.gen.cs b/src/Unity.Mathematics/int4.gen.cs index d03a3cd8..35b3a740 100644 --- a/src/Unity.Mathematics/int4.gen.cs +++ b/src/Unity.Mathematics/int4.gen.cs @@ -1,3060 +1,3060 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct int4 : System.IEquatable - { - // constructors - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int x, int y, int z, int w) - { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int x, int y, int2 zw) - { - this.x = x; - this.y = y; - this.z = zw.x; - this.w = zw.y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int x, int2 yz, int w) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int x, int3 yzw) - { - this.x = x; - this.y = yzw.x; - this.z = yzw.y; - this.w = yzw.z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int2 xy, int z, int w) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int2 xy, int2 zw) - { - this.x = xy.x; - this.y = xy.y; - this.z = zw.x; - this.w = zw.y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int3 xyz, int w) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public int4(int4 xyzw) - { - this.x = xyzw.x; - this.y = xyzw.y; - this.z = xyzw.z; - this.w = xyzw.w; - } - - - // mul - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator * (int4 lhs, int4 rhs) { return new int4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator * (int4 lhs, int rhs) { return new int4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator * (int lhs, int4 rhs) { return new int4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } - - // add - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator + (int4 lhs, int4 rhs) { return new int4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator + (int4 lhs, int rhs) { return new int4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator + (int lhs, int4 rhs) { return new int4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } - - // sub - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator - (int4 lhs, int4 rhs) { return new int4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator - (int4 lhs, int rhs) { return new int4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator - (int lhs, int4 rhs) { return new int4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } - - // div - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator / (int4 lhs, int4 rhs) { return new int4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator / (int4 lhs, int rhs) { return new int4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator / (int lhs, int4 rhs) { return new int4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } - - // smaller - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (int4 lhs, int4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (int4 lhs, int rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (int lhs, int4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (int4 lhs, int4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (int4 lhs, int rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (int lhs, int4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } - - // greater - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (int4 lhs, int4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (int4 lhs, int rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (int lhs, int4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (int4 lhs, int4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (int4 lhs, int rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (int lhs, int4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } - - // neg - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator - (int4 val) { return new int4 (-val.x, -val.y, -val.z, -val.w); } - // plus - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator + (int4 val) { return new int4 (+val.x, +val.y, +val.z, +val.w); } - // left shift - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator << (int4 lhs, int rhs) { return new int4 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs, lhs.w << rhs); } - - // right shift - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator >> (int4 lhs, int rhs) { return new int4 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs, lhs.w >> rhs); } - - // equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (int4 lhs, int4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (int4 lhs, int rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (int lhs, int4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } - - // not equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (int4 lhs, int4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (int4 lhs, int rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (int lhs, int4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } - - // Equals - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(int4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } - - // [int index] - unsafe public int this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (int4* array = &this) { return ((int*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (int* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator & (int4 lhs, int4 rhs) { return new int4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator & (int4 lhs, int rhs) { return new int4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator & (int lhs, int4 rhs) { return new int4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } - - // operator | - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator | (int4 lhs, int4 rhs) { return new int4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator | (int4 lhs, int rhs) { return new int4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator | (int lhs, int4 rhs) { return new int4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } - - // operator ^ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator ^ (int4 lhs, int4 rhs) { return new int4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator ^ (int4 lhs, int rhs) { return new int4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator ^ (int lhs, int4 rhs) { return new int4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } - - // operator ~ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 operator ~ (int4 val) { return new int4 (~val.x, ~val.y, ~val.z, ~val.w); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 xwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(x, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 yzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 ywww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(y, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 zwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(z, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int4 wwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int4(w, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 xww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 ywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 ywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 ywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 yww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 zww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 wwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int3 www - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int3(w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 xw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 yw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 zw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 wx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 wy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 wz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public int2 ww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new int2(w, w); } - } - - - } - - public static partial class math - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int x, int y, int z, int w) { return new int4(x, y, z, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int x, int y, int2 zw) { return new int4(x, y, zw); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int x, int2 yz, int w) { return new int4(x, yz, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int x, int3 yzw) { return new int4(x, yzw); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int2 xy, int z, int w) { return new int4(xy, z, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int2 xy, int2 zw) { return new int4(xy, zw); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int3 xyz, int w) { return new int4(xyz, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 int4(int4 xyzw) { return new int4(xyzw); } - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct int4 : System.IEquatable + { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int x, int y, int z, int w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int x, int y, int2 zw) + { + this.x = x; + this.y = y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int x, int2 yz, int w) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int x, int3 yzw) + { + this.x = x; + this.y = yzw.x; + this.z = yzw.y; + this.w = yzw.z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int2 xy, int z, int w) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int2 xy, int2 zw) + { + this.x = xy.x; + this.y = xy.y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int3 xyz, int w) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public int4(int4 xyzw) + { + this.x = xyzw.x; + this.y = xyzw.y; + this.z = xyzw.z; + this.w = xyzw.w; + } + + + // mul + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator * (int4 lhs, int4 rhs) { return new int4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator * (int4 lhs, int rhs) { return new int4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator * (int lhs, int4 rhs) { return new int4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } + + // add + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator + (int4 lhs, int4 rhs) { return new int4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator + (int4 lhs, int rhs) { return new int4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator + (int lhs, int4 rhs) { return new int4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } + + // sub + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator - (int4 lhs, int4 rhs) { return new int4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator - (int4 lhs, int rhs) { return new int4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator - (int lhs, int4 rhs) { return new int4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } + + // div + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator / (int4 lhs, int4 rhs) { return new int4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator / (int4 lhs, int rhs) { return new int4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator / (int lhs, int4 rhs) { return new int4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } + + // smaller + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator < (int4 lhs, int4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator < (int4 lhs, int rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator < (int lhs, int4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator <= (int4 lhs, int4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator <= (int4 lhs, int rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator <= (int lhs, int4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } + + // greater + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator > (int4 lhs, int4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator > (int4 lhs, int rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator > (int lhs, int4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator >= (int4 lhs, int4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator >= (int4 lhs, int rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator >= (int lhs, int4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } + + // neg + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator - (int4 val) { return new int4 (-val.x, -val.y, -val.z, -val.w); } + // plus + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator + (int4 val) { return new int4 (+val.x, +val.y, +val.z, +val.w); } + // left shift + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator << (int4 lhs, int rhs) { return new int4 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs, lhs.w << rhs); } + + // right shift + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator >> (int4 lhs, int rhs) { return new int4 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs, lhs.w >> rhs); } + + // equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator == (int4 lhs, int4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator == (int4 lhs, int rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator == (int lhs, int4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } + + // not equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator != (int4 lhs, int4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator != (int4 lhs, int rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator != (int lhs, int4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } + + // Equals + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Equals(int4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } + + // [int index] + unsafe public int this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (int4* array = &this) { return ((int*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (int* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator & (int4 lhs, int4 rhs) { return new int4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator & (int4 lhs, int rhs) { return new int4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator & (int lhs, int4 rhs) { return new int4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } + + // operator | + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator | (int4 lhs, int4 rhs) { return new int4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator | (int4 lhs, int rhs) { return new int4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator | (int lhs, int4 rhs) { return new int4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } + + // operator ^ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator ^ (int4 lhs, int4 rhs) { return new int4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator ^ (int4 lhs, int rhs) { return new int4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator ^ (int lhs, int4 rhs) { return new int4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } + + // operator ~ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 operator ~ (int4 val) { return new int4 (~val.x, ~val.y, ~val.z, ~val.w); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 xwww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(x, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 yzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 ywww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(y, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 zwww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(z, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int4 wwww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int4(w, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 xww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 ywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 ywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 ywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 yww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 zww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 wwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int3 www + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int3(w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 xw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 yw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 zx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 zy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 zz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 zw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 wx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 wy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 wz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public int2 ww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new int2(w, w); } + } + + + } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int x, int y, int z, int w) { return new int4(x, y, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int x, int y, int2 zw) { return new int4(x, y, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int x, int2 yz, int w) { return new int4(x, yz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int x, int3 yzw) { return new int4(x, yzw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int2 xy, int z, int w) { return new int4(xy, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int2 xy, int2 zw) { return new int4(xy, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int3 xyz, int w) { return new int4(xyz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 int4(int4 xyzw) { return new int4(xyzw); } + + } +} diff --git a/src/Unity.Mathematics/uint2.gen.cs b/src/Unity.Mathematics/uint2.gen.cs index f4d2eb58..8288c787 100644 --- a/src/Unity.Mathematics/uint2.gen.cs +++ b/src/Unity.Mathematics/uint2.gen.cs @@ -1,398 +1,398 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct uint2 : System.IEquatable - { - // constructors - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2(uint x, uint y) - { - this.x = x; - this.y = y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint2(uint2 xy) - { - this.x = xy.x; - this.y = xy.y; - } - - - // mul - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator * (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x * rhs.x, lhs.y * rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator * (uint2 lhs, uint rhs) { return new uint2 (lhs.x * rhs, lhs.y * rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator * (uint lhs, uint2 rhs) { return new uint2 (lhs * rhs.x, lhs * rhs.y); } - - // add - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator + (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x + rhs.x, lhs.y + rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator + (uint2 lhs, uint rhs) { return new uint2 (lhs.x + rhs, lhs.y + rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator + (uint lhs, uint2 rhs) { return new uint2 (lhs + rhs.x, lhs + rhs.y); } - - // sub - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator - (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x - rhs.x, lhs.y - rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator - (uint2 lhs, uint rhs) { return new uint2 (lhs.x - rhs, lhs.y - rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator - (uint lhs, uint2 rhs) { return new uint2 (lhs - rhs.x, lhs - rhs.y); } - - // div - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator / (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x / rhs.x, lhs.y / rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator / (uint2 lhs, uint rhs) { return new uint2 (lhs.x / rhs, lhs.y / rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator / (uint lhs, uint2 rhs) { return new uint2 (lhs / rhs.x, lhs / rhs.y); } - - // smaller - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (uint2 lhs, uint rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator < (uint lhs, uint2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (uint2 lhs, uint rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator <= (uint lhs, uint2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } - - // greater - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (uint2 lhs, uint rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator > (uint lhs, uint2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (uint2 lhs, uint rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator >= (uint lhs, uint2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } - - // left shift - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator << (uint2 lhs, int rhs) { return new uint2 (lhs.x << rhs, lhs.y << rhs); } - - // right shift - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator >> (uint2 lhs, int rhs) { return new uint2 (lhs.x >> rhs, lhs.y >> rhs); } - - // equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (uint2 lhs, uint rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator == (uint lhs, uint2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } - - // not equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (uint2 lhs, uint rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 operator != (uint lhs, uint2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } - - // Equals - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint2 rhs) { return x == rhs.x && y == rhs.y; } - - // [int index] - unsafe public uint this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (uint2* array = &this) { return ((uint*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 2) - throw new System.ArgumentException("index must be between[0...1]"); -#endif - fixed (uint* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator & (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x & rhs.x, lhs.y & rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator & (uint2 lhs, uint rhs) { return new uint2 (lhs.x & rhs, lhs.y & rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator & (uint lhs, uint2 rhs) { return new uint2 (lhs & rhs.x, lhs & rhs.y); } - - // operator | - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator | (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x | rhs.x, lhs.y | rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator | (uint2 lhs, uint rhs) { return new uint2 (lhs.x | rhs, lhs.y | rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator | (uint lhs, uint2 rhs) { return new uint2 (lhs | rhs.x, lhs | rhs.y); } - - // operator ^ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator ^ (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator ^ (uint2 lhs, uint rhs) { return new uint2 (lhs.x ^ rhs, lhs.y ^ rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator ^ (uint lhs, uint2 rhs) { return new uint2 (lhs ^ rhs.x, lhs ^ rhs.y); } - - // operator ~ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 operator ~ (uint2 val) { return new uint2 (~val.x, ~val.y); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, y); } - } - - - } - - public static partial class math - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(uint x, uint y) { return new uint2(x, y); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 uint2(uint2 xy) { return new uint2(xy); } - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct uint2 : System.IEquatable + { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint2(uint x, uint y) + { + this.x = x; + this.y = y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint2(uint2 xy) + { + this.x = xy.x; + this.y = xy.y; + } + + + // mul + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator * (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x * rhs.x, lhs.y * rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator * (uint2 lhs, uint rhs) { return new uint2 (lhs.x * rhs, lhs.y * rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator * (uint lhs, uint2 rhs) { return new uint2 (lhs * rhs.x, lhs * rhs.y); } + + // add + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator + (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x + rhs.x, lhs.y + rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator + (uint2 lhs, uint rhs) { return new uint2 (lhs.x + rhs, lhs.y + rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator + (uint lhs, uint2 rhs) { return new uint2 (lhs + rhs.x, lhs + rhs.y); } + + // sub + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator - (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x - rhs.x, lhs.y - rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator - (uint2 lhs, uint rhs) { return new uint2 (lhs.x - rhs, lhs.y - rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator - (uint lhs, uint2 rhs) { return new uint2 (lhs - rhs.x, lhs - rhs.y); } + + // div + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator / (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x / rhs.x, lhs.y / rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator / (uint2 lhs, uint rhs) { return new uint2 (lhs.x / rhs, lhs.y / rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator / (uint lhs, uint2 rhs) { return new uint2 (lhs / rhs.x, lhs / rhs.y); } + + // smaller + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator < (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator < (uint2 lhs, uint rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator < (uint lhs, uint2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator <= (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator <= (uint2 lhs, uint rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator <= (uint lhs, uint2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } + + // greater + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator > (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator > (uint2 lhs, uint rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator > (uint lhs, uint2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator >= (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator >= (uint2 lhs, uint rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator >= (uint lhs, uint2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } + + // left shift + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator << (uint2 lhs, int rhs) { return new uint2 (lhs.x << rhs, lhs.y << rhs); } + + // right shift + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator >> (uint2 lhs, int rhs) { return new uint2 (lhs.x >> rhs, lhs.y >> rhs); } + + // equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator == (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator == (uint2 lhs, uint rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator == (uint lhs, uint2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } + + // not equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator != (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator != (uint2 lhs, uint rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool2 operator != (uint lhs, uint2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } + + // Equals + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Equals(uint2 rhs) { return x == rhs.x && y == rhs.y; } + + // [int index] + unsafe public uint this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (uint2* array = &this) { return ((uint*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 2) + throw new System.ArgumentException("index must be between[0...1]"); +#endif + fixed (uint* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator & (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x & rhs.x, lhs.y & rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator & (uint2 lhs, uint rhs) { return new uint2 (lhs.x & rhs, lhs.y & rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator & (uint lhs, uint2 rhs) { return new uint2 (lhs & rhs.x, lhs & rhs.y); } + + // operator | + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator | (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x | rhs.x, lhs.y | rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator | (uint2 lhs, uint rhs) { return new uint2 (lhs.x | rhs, lhs.y | rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator | (uint lhs, uint2 rhs) { return new uint2 (lhs | rhs.x, lhs | rhs.y); } + + // operator ^ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator ^ (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator ^ (uint2 lhs, uint rhs) { return new uint2 (lhs.x ^ rhs, lhs.y ^ rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator ^ (uint lhs, uint2 rhs) { return new uint2 (lhs ^ rhs.x, lhs ^ rhs.y); } + + // operator ~ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 operator ~ (uint2 val) { return new uint2 (~val.x, ~val.y); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(y, y); } + } + + + } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 uint2(uint x, uint y) { return new uint2(x, y); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 uint2(uint2 xy) { return new uint2(xy); } + + } +} diff --git a/src/Unity.Mathematics/uint3.gen.cs b/src/Unity.Mathematics/uint3.gen.cs index 034311d2..8d20b93d 100644 --- a/src/Unity.Mathematics/uint3.gen.cs +++ b/src/Unity.Mathematics/uint3.gen.cs @@ -1,1154 +1,1154 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct uint3 : System.IEquatable - { - // constructors - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(uint x, uint y, uint z) - { - this.x = x; - this.y = y; - this.z = z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(uint x, uint2 yz) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(uint2 xy, uint z) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint3(uint3 xyz) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - } - - - // mul - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator * (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator * (uint3 lhs, uint rhs) { return new uint3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator * (uint lhs, uint3 rhs) { return new uint3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } - - // add - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator + (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator + (uint3 lhs, uint rhs) { return new uint3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator + (uint lhs, uint3 rhs) { return new uint3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } - - // sub - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator - (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator - (uint3 lhs, uint rhs) { return new uint3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator - (uint lhs, uint3 rhs) { return new uint3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } - - // div - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator / (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator / (uint3 lhs, uint rhs) { return new uint3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator / (uint lhs, uint3 rhs) { return new uint3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } - - // smaller - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (uint3 lhs, uint rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator < (uint lhs, uint3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (uint3 lhs, uint rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator <= (uint lhs, uint3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } - - // greater - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (uint3 lhs, uint rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator > (uint lhs, uint3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (uint3 lhs, uint rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator >= (uint lhs, uint3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } - - // left shift - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator << (uint3 lhs, int rhs) { return new uint3 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs); } - - // right shift - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator >> (uint3 lhs, int rhs) { return new uint3 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs); } - - // equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (uint3 lhs, uint rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator == (uint lhs, uint3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } - - // not equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (uint3 lhs, uint rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 operator != (uint lhs, uint3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } - - // Equals - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } - - // [int index] - unsafe public uint this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (uint3* array = &this) { return ((uint*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 3) - throw new System.ArgumentException("index must be between[0...2]"); -#endif - fixed (uint* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator & (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator & (uint3 lhs, uint rhs) { return new uint3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator & (uint lhs, uint3 rhs) { return new uint3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } - - // operator | - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator | (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator | (uint3 lhs, uint rhs) { return new uint3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator | (uint lhs, uint3 rhs) { return new uint3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } - - // operator ^ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator ^ (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator ^ (uint3 lhs, uint rhs) { return new uint3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator ^ (uint lhs, uint3 rhs) { return new uint3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } - - // operator ~ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 operator ~ (uint3 val) { return new uint3 (~val.x, ~val.y, ~val.z); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(z, z); } - } - - - } - - public static partial class math - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(uint x, uint y, uint z) { return new uint3(x, y, z); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(uint x, uint2 yz) { return new uint3(x, yz); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(uint2 xy, uint z) { return new uint3(xy, z); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 uint3(uint3 xyz) { return new uint3(xyz); } - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct uint3 : System.IEquatable + { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint3(uint x, uint y, uint z) + { + this.x = x; + this.y = y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint3(uint x, uint2 yz) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint3(uint2 xy, uint z) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint3(uint3 xyz) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + } + + + // mul + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator * (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator * (uint3 lhs, uint rhs) { return new uint3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator * (uint lhs, uint3 rhs) { return new uint3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } + + // add + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator + (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator + (uint3 lhs, uint rhs) { return new uint3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator + (uint lhs, uint3 rhs) { return new uint3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } + + // sub + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator - (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator - (uint3 lhs, uint rhs) { return new uint3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator - (uint lhs, uint3 rhs) { return new uint3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } + + // div + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator / (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator / (uint3 lhs, uint rhs) { return new uint3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator / (uint lhs, uint3 rhs) { return new uint3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } + + // smaller + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator < (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator < (uint3 lhs, uint rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator < (uint lhs, uint3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator <= (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator <= (uint3 lhs, uint rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator <= (uint lhs, uint3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } + + // greater + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator > (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator > (uint3 lhs, uint rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator > (uint lhs, uint3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator >= (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator >= (uint3 lhs, uint rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator >= (uint lhs, uint3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } + + // left shift + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator << (uint3 lhs, int rhs) { return new uint3 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs); } + + // right shift + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator >> (uint3 lhs, int rhs) { return new uint3 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs); } + + // equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator == (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator == (uint3 lhs, uint rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator == (uint lhs, uint3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } + + // not equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator != (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator != (uint3 lhs, uint rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool3 operator != (uint lhs, uint3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } + + // Equals + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Equals(uint3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } + + // [int index] + unsafe public uint this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (uint3* array = &this) { return ((uint*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 3) + throw new System.ArgumentException("index must be between[0...2]"); +#endif + fixed (uint* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator & (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator & (uint3 lhs, uint rhs) { return new uint3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator & (uint lhs, uint3 rhs) { return new uint3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } + + // operator | + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator | (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator | (uint3 lhs, uint rhs) { return new uint3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator | (uint lhs, uint3 rhs) { return new uint3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } + + // operator ^ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator ^ (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator ^ (uint3 lhs, uint rhs) { return new uint3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator ^ (uint lhs, uint3 rhs) { return new uint3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } + + // operator ~ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 operator ~ (uint3 val) { return new uint3 (~val.x, ~val.y, ~val.z); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 zx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 zy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 zz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(z, z); } + } + + + } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 uint3(uint x, uint y, uint z) { return new uint3(x, y, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 uint3(uint x, uint2 yz) { return new uint3(x, yz); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 uint3(uint2 xy, uint z) { return new uint3(xy, z); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 uint3(uint3 xyz) { return new uint3(xyz); } + + } +} diff --git a/src/Unity.Mathematics/uint4.gen.cs b/src/Unity.Mathematics/uint4.gen.cs index 856de576..df864b5a 100644 --- a/src/Unity.Mathematics/uint4.gen.cs +++ b/src/Unity.Mathematics/uint4.gen.cs @@ -1,3054 +1,3054 @@ -// GENERATED CODE -using System.Runtime.CompilerServices; -#pragma warning disable 0660, 0661 -namespace Unity.Mathematics -{ - public partial struct uint4 : System.IEquatable - { - // constructors - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint x, uint y, uint z, uint w) - { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint x, uint y, uint2 zw) - { - this.x = x; - this.y = y; - this.z = zw.x; - this.w = zw.y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint x, uint2 yz, uint w) - { - this.x = x; - this.y = yz.x; - this.z = yz.y; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint x, uint3 yzw) - { - this.x = x; - this.y = yzw.x; - this.z = yzw.y; - this.w = yzw.z; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint2 xy, uint z, uint w) - { - this.x = xy.x; - this.y = xy.y; - this.z = z; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint2 xy, uint2 zw) - { - this.x = xy.x; - this.y = xy.y; - this.z = zw.x; - this.w = zw.y; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint3 xyz, uint w) - { - this.x = xyz.x; - this.y = xyz.y; - this.z = xyz.z; - this.w = w; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public uint4(uint4 xyzw) - { - this.x = xyzw.x; - this.y = xyzw.y; - this.z = xyzw.z; - this.w = xyzw.w; - } - - - // mul - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator * (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator * (uint4 lhs, uint rhs) { return new uint4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator * (uint lhs, uint4 rhs) { return new uint4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } - - // add - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator + (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator + (uint4 lhs, uint rhs) { return new uint4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator + (uint lhs, uint4 rhs) { return new uint4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } - - // sub - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator - (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator - (uint4 lhs, uint rhs) { return new uint4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator - (uint lhs, uint4 rhs) { return new uint4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } - - // div - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator / (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator / (uint4 lhs, uint rhs) { return new uint4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator / (uint lhs, uint4 rhs) { return new uint4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } - - // smaller - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (uint4 lhs, uint rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator < (uint lhs, uint4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (uint4 lhs, uint rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator <= (uint lhs, uint4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } - - // greater - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (uint4 lhs, uint rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator > (uint lhs, uint4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (uint4 lhs, uint rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator >= (uint lhs, uint4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } - - // left shift - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator << (uint4 lhs, int rhs) { return new uint4 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs, lhs.w << rhs); } - - // right shift - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator >> (uint4 lhs, int rhs) { return new uint4 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs, lhs.w >> rhs); } - - // equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (uint4 lhs, uint rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator == (uint lhs, uint4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } - - // not equal - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (uint4 lhs, uint rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 operator != (uint lhs, uint4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } - - // Equals - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(uint4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } - - // [int index] - unsafe public uint this[int index] - { - get - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (uint4* array = &this) { return ((uint*)array)[index]; } - } - set - { -#if ENABLE_UNITY_COLLECTIONS_CHECKS - if ((uint)index >= 4) - throw new System.ArgumentException("index must be between[0...3]"); -#endif - fixed (uint* array = &x) { array[index] = value; } - } - } - - // operator & - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator & (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator & (uint4 lhs, uint rhs) { return new uint4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator & (uint lhs, uint4 rhs) { return new uint4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } - - // operator | - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator | (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator | (uint4 lhs, uint rhs) { return new uint4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator | (uint lhs, uint4 rhs) { return new uint4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } - - // operator ^ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator ^ (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator ^ (uint4 lhs, uint rhs) { return new uint4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator ^ (uint lhs, uint4 rhs) { return new uint4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } - - // operator ~ - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 operator ~ (uint4 val) { return new uint4 (~val.x, ~val.y, ~val.z, ~val.w); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 xwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(x, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 yzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 ywww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(y, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; w = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 zwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(z, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wxww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; z = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wyww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; y = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; x = value.w; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wzww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint4 wwww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint4(w, w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 xww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(x, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 ywx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 ywy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 ywz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 yww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(y, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, x, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, y, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; w = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, z, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, z, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 zww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(z, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wxx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wxy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wxz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wxw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, x, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wyx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wyy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wyz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; z = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wyw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, y, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wzx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; x = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wzy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; y = value.z; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wzz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wzw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, z, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wwx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, w, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wwy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, w, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 wwz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, w, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint3 www - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint3(w, w, w); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, x); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 xw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(x, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { x = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, y); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 yw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(y, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { y = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(z, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(z, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(z, z); } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 zw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(z, w); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { z = value.x; w = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 wx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(w, x); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; x = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 wy - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(w, y); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; y = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 wz - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(w, z); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - set { w = value.x; z = value.y; } - } - - - [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] - public uint2 ww - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get { return new uint2(w, w); } - } - - - } - - public static partial class math - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint x, uint y, uint z, uint w) { return new uint4(x, y, z, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint x, uint y, uint2 zw) { return new uint4(x, y, zw); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint x, uint2 yz, uint w) { return new uint4(x, yz, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint x, uint3 yzw) { return new uint4(x, yzw); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint2 xy, uint z, uint w) { return new uint4(xy, z, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint2 xy, uint2 zw) { return new uint4(xy, zw); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint3 xyz, uint w) { return new uint4(xyz, w); } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 uint4(uint4 xyzw) { return new uint4(xyzw); } - - } -} +// GENERATED CODE +using System.Runtime.CompilerServices; +#pragma warning disable 0660, 0661 +namespace Unity.Mathematics +{ + public partial struct uint4 : System.IEquatable + { + // constructors + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint x, uint y, uint z, uint w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint x, uint y, uint2 zw) + { + this.x = x; + this.y = y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint x, uint2 yz, uint w) + { + this.x = x; + this.y = yz.x; + this.z = yz.y; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint x, uint3 yzw) + { + this.x = x; + this.y = yzw.x; + this.z = yzw.y; + this.w = yzw.z; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint2 xy, uint z, uint w) + { + this.x = xy.x; + this.y = xy.y; + this.z = z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint2 xy, uint2 zw) + { + this.x = xy.x; + this.y = xy.y; + this.z = zw.x; + this.w = zw.y; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint3 xyz, uint w) + { + this.x = xyz.x; + this.y = xyz.y; + this.z = xyz.z; + this.w = w; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public uint4(uint4 xyzw) + { + this.x = xyzw.x; + this.y = xyzw.y; + this.z = xyzw.z; + this.w = xyzw.w; + } + + + // mul + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator * (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator * (uint4 lhs, uint rhs) { return new uint4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator * (uint lhs, uint4 rhs) { return new uint4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } + + // add + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator + (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator + (uint4 lhs, uint rhs) { return new uint4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator + (uint lhs, uint4 rhs) { return new uint4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } + + // sub + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator - (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator - (uint4 lhs, uint rhs) { return new uint4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator - (uint lhs, uint4 rhs) { return new uint4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } + + // div + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator / (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator / (uint4 lhs, uint rhs) { return new uint4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator / (uint lhs, uint4 rhs) { return new uint4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } + + // smaller + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator < (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator < (uint4 lhs, uint rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator < (uint lhs, uint4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator <= (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator <= (uint4 lhs, uint rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator <= (uint lhs, uint4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } + + // greater + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator > (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator > (uint4 lhs, uint rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator > (uint lhs, uint4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator >= (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator >= (uint4 lhs, uint rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator >= (uint lhs, uint4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } + + // left shift + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator << (uint4 lhs, int rhs) { return new uint4 (lhs.x << rhs, lhs.y << rhs, lhs.z << rhs, lhs.w << rhs); } + + // right shift + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator >> (uint4 lhs, int rhs) { return new uint4 (lhs.x >> rhs, lhs.y >> rhs, lhs.z >> rhs, lhs.w >> rhs); } + + // equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator == (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator == (uint4 lhs, uint rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator == (uint lhs, uint4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } + + // not equal + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator != (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator != (uint4 lhs, uint rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static bool4 operator != (uint lhs, uint4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } + + // Equals + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Equals(uint4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } + + // [int index] + unsafe public uint this[int index] + { + get + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (uint4* array = &this) { return ((uint*)array)[index]; } + } + set + { +#if ENABLE_UNITY_COLLECTIONS_CHECKS + if ((uint)index >= 4) + throw new System.ArgumentException("index must be between[0...3]"); +#endif + fixed (uint* array = &x) { array[index] = value; } + } + } + + // operator & + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator & (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator & (uint4 lhs, uint rhs) { return new uint4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator & (uint lhs, uint4 rhs) { return new uint4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } + + // operator | + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator | (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator | (uint4 lhs, uint rhs) { return new uint4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator | (uint lhs, uint4 rhs) { return new uint4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } + + // operator ^ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator ^ (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator ^ (uint4 lhs, uint rhs) { return new uint4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator ^ (uint lhs, uint4 rhs) { return new uint4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } + + // operator ~ + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 operator ~ (uint4 val) { return new uint4 (~val.x, ~val.y, ~val.z, ~val.w); } [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 xwww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(x, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; z = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; w = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 yzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 ywww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(y, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; y = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; w = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; x = value.z; w = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; w = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 zwww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(z, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; y = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; z = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wxww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; x = value.z; z = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; z = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wyww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; x = value.z; y = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; y = value.z; x = value.w; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wzww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint4 wwww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint4(w, w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 xww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(x, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, x, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, y, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 ywx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 ywy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 ywz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 yww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(y, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, x, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, y, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; w = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, z, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, z, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 zww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(z, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wxx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wxy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wxz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wxw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, x, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wyx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wyy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wyz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; z = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wyw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, y, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wzx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; x = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wzy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; y = value.z; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wzz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wzw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, z, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wwx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, w, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wwy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, w, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 wwz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, w, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint3 www + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint3(w, w, w); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(x, x); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(x, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(x, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 xw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(x, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { x = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(y, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(y, y); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(y, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 yw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(y, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { y = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 zx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(z, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 zy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(z, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 zz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(z, z); } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 zw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(z, w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { z = value.x; w = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 wx + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(w, x); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; x = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 wy + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(w, y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; y = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 wz + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(w, z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + set { w = value.x; z = value.y; } + } + + + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] + public uint2 ww + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get { return new uint2(w, w); } + } + + + } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint x, uint y, uint z, uint w) { return new uint4(x, y, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint x, uint y, uint2 zw) { return new uint4(x, y, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint x, uint2 yz, uint w) { return new uint4(x, yz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint x, uint3 yzw) { return new uint4(x, yzw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint2 xy, uint z, uint w) { return new uint4(xy, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint2 xy, uint2 zw) { return new uint4(xy, zw); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint3 xyz, uint w) { return new uint4(xyz, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 uint4(uint4 xyzw) { return new uint4(xyzw); } + + } +} From 9dd01f326269013f33c6cbc5d7fe1f06e59155ef Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Wed, 13 Jun 2018 13:52:18 +0200 Subject: [PATCH 020/437] Added rotateX, rotateY, rotateZ and scale constructors to matrix types (with tests) Added test utility functions for making epsilon assertions on vectors and matrices --- src/Unity.Mathematics.Tests/TestMatrix.cs | 209 ++++++++++++++++++ src/Unity.Mathematics.Tests/TestUtils.cs | 55 +++++ .../Unity.Mathematics.Tests.csproj | 1 + src/Unity.Mathematics/matrix.cs | 155 +++++++++++-- 4 files changed, 401 insertions(+), 19 deletions(-) create mode 100644 src/Unity.Mathematics.Tests/TestUtils.cs diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 7395ae24..917ebbc2 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -170,6 +170,215 @@ public void float4x4_identity() Assert.AreEqual(a.c3.w, 1.0f); } + [Test] + public void float2x2_rotate() + { + float epsilon = 0.0001f; + float angle = 10.3f; + float2x2 m = float2x2.rotate(angle); + Assert.AreEqual(m.c0.x, cos(angle), epsilon); + Assert.AreEqual(m.c0.y, sin(angle), epsilon); + Assert.AreEqual(m.c1.x, -sin(angle), epsilon); + Assert.AreEqual(m.c1.y, cos(angle), epsilon); + } + + [Test] + public void float3x3_rotate_x() + { + float epsilon = 0.0001f; + float angle = 10.3f; + float3x3 m = float3x3.rotateX(angle); + Assert.AreEqual(m.c0.x, 1.0f, epsilon); + Assert.AreEqual(m.c0.y, 0.0f, epsilon); + Assert.AreEqual(m.c0.z, 0.0f, epsilon); + Assert.AreEqual(m.c1.x, 0.0f, epsilon); + Assert.AreEqual(m.c1.y, cos(angle), epsilon); + Assert.AreEqual(m.c1.z, sin(angle), epsilon); + Assert.AreEqual(m.c2.x, 0.0f, epsilon); + Assert.AreEqual(m.c2.y, -sin(angle), epsilon); + Assert.AreEqual(m.c2.z, cos(angle), epsilon); + } + + [Test] + public void float3x3_rotate_y() + { + float epsilon = 0.0001f; + float angle = 10.3f; + float3x3 m = float3x3.rotateY(angle); + Assert.AreEqual(m.c0.x, cos(angle), epsilon); + Assert.AreEqual(m.c0.y, 0.0f, epsilon); + Assert.AreEqual(m.c0.z, -sin(angle), epsilon); + Assert.AreEqual(m.c1.x, 0.0f, epsilon); + Assert.AreEqual(m.c1.y, 1.0f, epsilon); + Assert.AreEqual(m.c1.z, 0.0f, epsilon); + Assert.AreEqual(m.c2.x, sin(angle), epsilon); + Assert.AreEqual(m.c2.y, 0.0f, epsilon); + Assert.AreEqual(m.c2.z, cos(angle), epsilon); + } + + [Test] + public void float3x3_rotate_z() + { + float epsilon = 0.0001f; + float angle = 10.3f; + float3x3 m = float3x3.rotateZ(angle); + Assert.AreEqual(m.c0.x, cos(angle), epsilon); + Assert.AreEqual(m.c0.y, sin(angle), epsilon); + Assert.AreEqual(m.c0.z, 0.0f, epsilon); + Assert.AreEqual(m.c1.x, -sin(angle), epsilon); + Assert.AreEqual(m.c1.y, cos(angle), epsilon); + Assert.AreEqual(m.c1.z, 0.0f, epsilon); + Assert.AreEqual(m.c2.x, 0.0f, epsilon); + Assert.AreEqual(m.c2.y, 0.0f, epsilon); + Assert.AreEqual(m.c2.z, 1.0f, epsilon); + } + + [Test] + public void float4x4_rotate_x() + { + float epsilon = 0.0001f; + float angle = 10.3f; + float4x4 m = float4x4.rotateX(angle); + Assert.AreEqual(m.c0.x, 1.0f, epsilon); + Assert.AreEqual(m.c0.y, 0.0f, epsilon); + Assert.AreEqual(m.c0.z, 0.0f, epsilon); + Assert.AreEqual(m.c0.w, 0.0f, epsilon); + Assert.AreEqual(m.c1.x, 0.0f, epsilon); + Assert.AreEqual(m.c1.y, cos(angle), epsilon); + Assert.AreEqual(m.c1.z, sin(angle), epsilon); + Assert.AreEqual(m.c1.w, 0.0f, epsilon); + Assert.AreEqual(m.c2.x, 0.0f, epsilon); + Assert.AreEqual(m.c2.y, -sin(angle), epsilon); + Assert.AreEqual(m.c2.z, cos(angle), epsilon); + Assert.AreEqual(m.c2.w, 0.0f, epsilon); + Assert.AreEqual(m.c3.x, 0.0f, epsilon); + Assert.AreEqual(m.c3.y, 0.0f, epsilon); + Assert.AreEqual(m.c3.z, 0.0f, epsilon); + Assert.AreEqual(m.c3.w, 1.0f, epsilon); + } + + [Test] + public void float4x4_rotate_y() + { + float epsilon = 0.0001f; + float angle = 10.3f; + float4x4 m = float4x4.rotateY(angle); + Assert.AreEqual(m.c0.x, cos(angle), epsilon); + Assert.AreEqual(m.c0.y, 0.0f, epsilon); + Assert.AreEqual(m.c0.z, -sin(angle), epsilon); + Assert.AreEqual(m.c0.w, 0.0f, epsilon); + Assert.AreEqual(m.c1.x, 0.0f, epsilon); + Assert.AreEqual(m.c1.y, 1.0f, epsilon); + Assert.AreEqual(m.c1.z, 0.0f, epsilon); + Assert.AreEqual(m.c1.w, 0.0f, epsilon); + Assert.AreEqual(m.c2.x, sin(angle), epsilon); + Assert.AreEqual(m.c2.y, 0.0f, epsilon); + Assert.AreEqual(m.c2.z, cos(angle), epsilon); + Assert.AreEqual(m.c2.w, 0.0f); + Assert.AreEqual(m.c3.x, 0.0f); + Assert.AreEqual(m.c3.y, 0.0f); + Assert.AreEqual(m.c3.z, 0.0f); + Assert.AreEqual(m.c3.w, 1.0f); + } + + [Test] + public void float4x4_rotate_z() + { + float epsilon = 0.0001f; + float angle = 10.3f; + float4x4 m = float4x4.rotateZ(angle); + Assert.AreEqual(m.c0.x, cos(angle), epsilon); + Assert.AreEqual(m.c0.y, sin(angle), epsilon); + Assert.AreEqual(m.c0.z, 0.0f, epsilon); + Assert.AreEqual(m.c0.w, 0.0f, epsilon); + Assert.AreEqual(m.c1.x, -sin(angle), epsilon); + Assert.AreEqual(m.c1.y, cos(angle), epsilon); + Assert.AreEqual(m.c1.z, 0.0f, epsilon); + Assert.AreEqual(m.c1.w, 0.0f, epsilon); + Assert.AreEqual(m.c2.x, 0.0f, epsilon); + Assert.AreEqual(m.c2.y, 0.0f, epsilon); + Assert.AreEqual(m.c2.z, 1.0f, epsilon); + Assert.AreEqual(m.c2.w, 0.0f, epsilon); + Assert.AreEqual(m.c3.x, 0.0f, epsilon); + Assert.AreEqual(m.c3.y, 0.0f, epsilon); + Assert.AreEqual(m.c3.z, 0.0f, epsilon); + Assert.AreEqual(m.c3.w, 1.0f, epsilon); + } + + + [Test] + public void float2x2_scale() + { + float2x2 m = float2x2(1.0f, 2.0f, + 3.0f, 4.0f); + + float2x2 r0 = float2x2(2.0f, 4.0f, + 6.0f, 8.0f); + + float2x2 r1 = float2x2(2.0f, 4.0f, + 9.0f, 12.0f); + + float2x2 a = mul(float2x2.scale(2.0f), m); + float2x2 b = mul(float2x2.scale(2.0f, 3.0f), m); + float2x2 c = mul(float2x2.scale(2.0f, 3.0f), m); + + TestUtils.AreEqual(a, r0); + TestUtils.AreEqual(b, r1); + TestUtils.AreEqual(c, r1); + } + + [Test] + public void float3x3_scale() + { + float3x3 m = float3x3(1.0f, 2.0f, 3.0f, + 4.0f, 5.0f, 6.0f, + 7.0f, 8.0f, 9.0f); + + + float3x3 r0 = float3x3( 2.0f, 4.0f, 6.0f, + 8.0f, 10.0f, 12.0f, + 14.0f, 16.0f, 18.0f); + + float3x3 r1 = float3x3( 2.0f, 4.0f, 6.0f, + 12.0f, 15.0f, 18.0f, + 28.0f, 32.0f, 36.0f); + + + float3x3 a = mul(float3x3.scale(2.0f), m); + float3x3 b = mul(float3x3.scale(2.0f, 3.0f, 4.0f), m); + float3x3 c = mul(float3x3.scale(2.0f, 3.0f, 4.0f), m); + + TestUtils.AreEqual(a, r0); + TestUtils.AreEqual(b, r1); + TestUtils.AreEqual(c, r1); + } + + [Test] + public void float4x4_scale() + { + float4x4 m = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, + 5.0f, 6.0f, 7.0f, 8.0f, + 9.0f, 10.0f, 11.0f, 12.0f, + 13.0f, 14.0f, 15.0f, 16.0f); + + float4x4 r0 = float4x4( 2.0f, 4.0f, 6.0f, 8.0f, + 10.0f, 12.0f, 14.0f, 16.0f, + 18.0f, 20.0f, 22.0f, 24.0f, + 13.0f, 14.0f, 15.0f, 16.0f); + + float4x4 r1 = float4x4( 2.0f, 4.0f, 6.0f, 8.0f, + 15.0f, 18.0f, 21.0f, 24.0f, + 36.0f, 40.0f, 44.0f, 48.0f, + 13.0f, 14.0f, 15.0f, 16.0f); + + float4x4 a = mul(float4x4.scale(2.0f), m); + float4x4 b = mul(float4x4.scale(2.0f, 3.0f, 4.0f), m); + float4x4 c = mul(float4x4.scale(2.0f, 3.0f, 4.0f), m); + + TestUtils.AreEqual(a, r0); + TestUtils.AreEqual(b, r1); + TestUtils.AreEqual(c, r1); + } [Test] public void float2x2_matrix_mul() diff --git a/src/Unity.Mathematics.Tests/TestUtils.cs b/src/Unity.Mathematics.Tests/TestUtils.cs new file mode 100644 index 00000000..203b7ad4 --- /dev/null +++ b/src/Unity.Mathematics.Tests/TestUtils.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using NUnit.Framework; +using static Unity.Mathematics.math; + +namespace Unity.Mathematics.Tests +{ + class TestUtils + { + public static void AreEqual(float2 a, float2 b, float delta = 0.0f) + { + Assert.AreEqual(a.x, b.x, delta); + Assert.AreEqual(a.y, b.y, delta); + } + + public static void AreEqual(float3 a, float3 b, float delta = 0.0f) + { + Assert.AreEqual(a.x, b.x, delta); + Assert.AreEqual(a.y, b.y, delta); + Assert.AreEqual(a.z, b.z, delta); + } + + public static void AreEqual(float4 a, float4 b, float delta = 0.0f) + { + Assert.AreEqual(a.x, b.x, delta); + Assert.AreEqual(a.y, b.y, delta); + Assert.AreEqual(a.z, b.z, delta); + Assert.AreEqual(a.w, b.w, delta); + } + + public static void AreEqual(float2x2 a, float2x2 b, float delta = 0.0f) + { + AreEqual(a.c0, b.c0, delta); + AreEqual(a.c1, b.c1, delta); + } + + public static void AreEqual(float3x3 a, float3x3 b, float delta = 0.0f) + { + AreEqual(a.c0, b.c0, delta); + AreEqual(a.c1, b.c1, delta); + AreEqual(a.c2, b.c2, delta); + } + + public static void AreEqual(float4x4 a, float4x4 b, float delta = 0.0f) + { + AreEqual(a.c0, b.c0, delta); + AreEqual(a.c1, b.c1, delta); + AreEqual(a.c2, b.c2, delta); + AreEqual(a.c3, b.c3, delta); + } + } +} diff --git a/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj b/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj index 20b0928f..403a809d 100644 --- a/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj +++ b/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj @@ -49,6 +49,7 @@ + diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index 7e085d98..a6ee07b7 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -20,7 +20,33 @@ public float2x2(float m00, float m01, this.c1 = float2(m01, m11); } - public static readonly float2x2 identity = new float2x2(1.0f, 0.0f, 0.0f, 1.0f); + public static readonly float2x2 identity = new float2x2(1.0f, 0.0f, 0.0f, 1.0f); + + public static float2x2 rotate(float angle) // counter-clockwise rotation + { + float s, c; + sincos(angle, out s, out c); + return float2x2(c, -s, + s, c); + } + + public static float2x2 scale(float s) + { + return float2x2(s, 0.0f, + 0.0f, s); + } + + public static float2x2 scale(float x, float y) + { + return float2x2(x, 0.0f, + 0.0f, y); + } + + public static float2x2 scale(float2 v) + { + return scale(v.x, v.y); + } + public static float2x2 operator *(float2x2 mat, float s) { @@ -52,7 +78,53 @@ public float3x3(float m00, float m01, float m02, public static readonly float3x3 identity = new float3x3(1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, - 0.0f, 0.0f, 1.0f); + 0.0f, 0.0f, 1.0f); + + public static float3x3 rotateX(float angle) + { + float s, c; + sincos(angle, out s, out c); + return float3x3(1.0f, 0.0f, 0.0f, + 0.0f, c, -s, + 0.0f, s, c); + } + + public static float3x3 rotateY(float angle) + { + float s, c; + sincos(angle, out s, out c); + return float3x3(c, 0.0f, s, + 0.0f, 1.0f, 0.0f, + -s, 0.0f, c); + } + + public static float3x3 rotateZ(float angle) + { + float s, c; + sincos(angle, out s, out c); + return float3x3(c, -s, 0.0f, + s, c, 0.0f, + 0.0f, 0.0f, 1.0f); + } + + public static float3x3 scale(float s) + { + return float3x3(s, 0.0f, 0.0f, + 0.0f, s, 0.0f, + 0.0f, 0.0f, s); + } + + public static float3x3 scale(float x, float y, float z) + { + return float3x3(x, 0.0f, 0.0f, + 0.0f, y, 0.0f, + 0.0f, 0.0f, z); + } + + public static float3x3 scale(float3 v) + { + return scale(v.x, v.y, v.z); + } public static float3x3 operator *(float3x3 mat, float s) { @@ -89,8 +161,69 @@ public float4x4(float m00, float m01, float m02, float m03, public static readonly float4x4 identity = new float4x4(1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f); + 0.0f, 0.0f, 0.0f, 1.0f); + + public static float4x4 rotateX(float angle) + { + float s, c; + sincos(angle, out s, out c); + return float4x4(1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, c, -s, 0.0f, + 0.0f, s, c, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f); + + } + + public static float4x4 rotateY(float angle) + { + float s, c; + sincos(angle, out s, out c); + return float4x4(c, 0.0f, s, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + -s, 0.0f, c, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f); + + } + + public static float4x4 rotateZ(float angle) + { + float s, c; + sincos(angle, out s, out c); + return float4x4(c, -s, 0.0f, 0.0f, + s, c, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f); + + } + + public static float4x4 scale(float s) + { + return float4x4(s, 0.0f, 0.0f, 0.0f, + 0.0f, s, 0.0f, 0.0f, + 0.0f, 0.0f, s, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f); + } + + public static float4x4 scale(float x, float y, float z) + { + return float4x4(x, 0.0f, 0.0f, 0.0f, + 0.0f, y, 0.0f, 0.0f, + 0.0f, 0.0f, z, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f); + } + + public static float4x4 scale(float3 v) + { + return scale(v.x, v.y, v.z); + } + public static float4x4 translate(float3 vector) + { + return float4x4(float4(1.0f, 0.0f, 0.0f, 0.0f), + float4(0.0f, 1.0f, 0.0f, 0.0f), + float4(0.0f, 0.0f, 1.0f, 0.0f), + float4(vector.x, vector.y, vector.z, 1.0f)); + } public static float4x4 operator *(float4x4 mat, float s) { @@ -291,22 +424,6 @@ public static float4x4 inverse(float4x4 m) -m03, m13, -m23, m33) * (1.0f / det); } - public static float4x4 scale(float3 vector) - { - return float4x4(float4(vector.x, 0.0f, 0.0f, 0.0f), - float4(0.0f, vector.y, 0.0f, 0.0f), - float4(0.0f, 0.0f, vector.z, 0.0f), - float4(0.0f, 0.0f, 0.0f, 1.0f)); - } - - public static float4x4 translate(float3 vector) - { - return float4x4(float4(1.0f, 0.0f, 0.0f, 0.0f), - float4(0.0f, 1.0f, 0.0f, 0.0f), - float4(0.0f, 0.0f, 1.0f, 0.0f), - float4(vector.x, vector.y, vector.z, 1.0f)); - } - const float epsilon = 0.000001F; public static float4x4 lookRotationToMatrix(float3 position, float3 forward, float3 up) From 6a1c474b65f1fe426ccaba024feb578e8533586f Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Wed, 13 Jun 2018 14:22:09 +0200 Subject: [PATCH 021/437] Added functions for calculating matrix determinants (with tests) --- src/Unity.Mathematics.Tests/TestMatrix.cs | 33 +++++++++++++++++++ src/Unity.Mathematics/matrix.cs | 40 ++++++++++++++++++++++- 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 917ebbc2..b748e370 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -605,5 +605,38 @@ public void float4x4_inverse() Assert.AreEqual(invA.c2.w, r.c2.w, epsilon); Assert.AreEqual(invA.c3.w, r.c3.w, epsilon); } + + [Test] + public void float2x2_determinant() + { + float2x2 a = float2x2(0.542968f, 0.867379f, + -0.270153f, -0.912324f); + + float det = determinant(a); + Assert.AreEqual(det, -0.2610378f, 0.0001f); + } + + [Test] + public void float3x3_determinant() + { + float3x3 a = float3x3( 0.542968f, 0.867379f, 0.526616f, + -0.270153f, -0.912324f, 0.148933f, + 0.816727f, 0.905933f, 0.902392f); + + float det = determinant(a); + Assert.AreEqual(det, 0.06019618f, 0.0001f); + } + + [Test] + public void float4x4_determinant() + { + float4x4 a = float4x4( 0.542968f, 0.867379f, 0.526616f, -0.943083f, + -0.270153f, -0.912324f, 0.148933f, 0.299995f, + 0.816727f, 0.905933f, 0.902392f, -0.060931f, + -0.254780f, 0.604543f, 0.563340f, -0.383911f); + + float det = determinant(a); + Assert.AreEqual(det, 0.5838502f, 0.0001f); + } } } diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index a3c51460..53dde0b3 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -423,7 +423,45 @@ public static float4x4 inverse(float4x4 m) m02, -m12, m22, -m32, -m03, m13, -m23, m33) * (1.0f / det); } - + + public static float determinant(float2x2 m) + { + float a = m.c0.x; + float b = m.c1.x; + float c = m.c0.y; + float d = m.c1.y; + + return a * d - b * c; + } + + public static float determinant(float3x3 m) + { + float3 c0 = m.c0; + float3 c1 = m.c1; + float3 c2 = m.c2; + + float m00 = c1.y * c2.z - c1.z * c2.y; + float m01 = c0.y * c2.z - c0.z * c2.y; + float m02 = c0.y * c1.z - c0.z * c1.y; + + return c0.x * m00 - c1.x * m01 + c2.x * m02; + } + + public static float determinant(float4x4 m) + { + float4 c0 = m.c0; + float4 c1 = m.c1; + float4 c2 = m.c2; + float4 c3 = m.c3; + + float m00 = c1.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c1.z * c3.w - c1.w * c3.z) + c3.y * (c1.z * c2.w - c1.w * c2.z); + float m01 = c0.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c2.w - c0.w * c2.z); + float m02 = c0.y * (c1.z * c3.w - c1.w * c3.z) - c1.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c1.w - c0.w * c1.z); + float m03 = c0.y * (c1.z * c2.w - c1.w * c2.z) - c1.y * (c0.z * c2.w - c0.w * c2.z) + c2.y * (c0.z * c1.w - c0.w * c1.z); + + return c0.x * m00 - c1.x * m01 + c2.x * m02 - c3.x * m03; + } + const float epsilon = 0.000001F; public static float4x4 lookRotationToMatrix(float3 position, float3 forward, float3 up) From 41c9b57aba2afbbb945905140b1591fe30cbb55b Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Wed, 13 Jun 2018 15:08:58 +0200 Subject: [PATCH 022/437] Renamed mathquat.cs -> quaternion.cs. Added TestQuaternion.cs. Static type constructors for quaternion. axisAngle and euler constructors as static member of quaternion. --- src/Unity.Mathematics.Tests/TestQuaternion.cs | 25 +++++ .../Unity.Mathematics.Tests.csproj | 1 + .../Unity.Mathematics.csproj | 2 +- src/Unity.Mathematics/mathquat.cs.meta | 11 --- .../{mathquat.cs => quaternion.cs} | 91 ++++++++++--------- 5 files changed, 76 insertions(+), 54 deletions(-) create mode 100644 src/Unity.Mathematics.Tests/TestQuaternion.cs delete mode 100644 src/Unity.Mathematics/mathquat.cs.meta rename src/Unity.Mathematics/{mathquat.cs => quaternion.cs} (76%) diff --git a/src/Unity.Mathematics.Tests/TestQuaternion.cs b/src/Unity.Mathematics.Tests/TestQuaternion.cs new file mode 100644 index 00000000..62e1c9eb --- /dev/null +++ b/src/Unity.Mathematics.Tests/TestQuaternion.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using NUnit.Framework; +using static Unity.Mathematics.math; + +namespace Unity.Mathematics.Tests +{ + [TestFixture] + class TestQuaternion + { + [Test] + public void quaternion_constructor() + { + quaternion q = quaternion(1.0f, 2.0f, 3.0f, 4.0f); + + Assert.AreEqual(q.value.x, 1.0f); + Assert.AreEqual(q.value.y, 2.0f); + Assert.AreEqual(q.value.z, 3.0f); + Assert.AreEqual(q.value.w, 4.0f); + } + } +} diff --git a/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj b/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj index 29acff1b..143d53db 100644 --- a/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj +++ b/src/Unity.Mathematics.Tests/Unity.Mathematics.Tests.csproj @@ -49,6 +49,7 @@ + diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index b4c2ecae..9b64f246 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -84,7 +84,7 @@ - + diff --git a/src/Unity.Mathematics/mathquat.cs.meta b/src/Unity.Mathematics/mathquat.cs.meta deleted file mode 100644 index e32d2669..00000000 --- a/src/Unity.Mathematics/mathquat.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4eb76c7d3686c1b49a009e0807c303bc -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/src/Unity.Mathematics/mathquat.cs b/src/Unity.Mathematics/quaternion.cs similarity index 76% rename from src/Unity.Mathematics/mathquat.cs rename to src/Unity.Mathematics/quaternion.cs index 04ecdc9e..73d86643 100644 --- a/src/Unity.Mathematics/mathquat.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -1,5 +1,7 @@ using System; using Unity.Mathematics.Experimental; +using System.Runtime.CompilerServices; +using static Unity.Mathematics.math; namespace Unity.Mathematics { @@ -11,12 +13,31 @@ public partial struct quaternion public quaternion(float x, float y, float z, float w) { value.x = x; value.y = y; value.z = z; value.w = w; } public quaternion(float4 value) { this.value = value; } - public static quaternion identity { get { return new quaternion(0.0F, 0.0F, 0.0F, 1.0F); } } + public static readonly quaternion identity = new quaternion(0.0f, 0.0f, 0.0f, 1.0f); + public static quaternion axisAngle(float3 axis, float angle) + { + float sina, cosa; + math.sincos(0.5f * angle, out sina, out cosa); + + float3 axisUnit = math.normalize(axis); + return new quaternion(float4(axisUnit * sina, cosa)); + } + + public static quaternion euler(float3 eulerInDegrees) + { + throw new System.NotImplementedException(); + } } public static partial class math { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion quaternion(float x, float y, float z, float w) { return new quaternion(x, y, z, w); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion quaternion(float4 value) { return new quaternion(value); } + public static quaternion normalize(quaternion q) { float4 value = q.value; @@ -24,14 +45,14 @@ public static quaternion normalize(quaternion q) // note we use float4 comparison here because this gives us -1 / 0 which is necessary for select. //return select(quatIdentity(), q*rsqrt(len), len > float4(epsilon_normal())); - value = math.select(quaternion.identity.value, value * math.rsqrt(len), len > math.epsilon_normal); + value = math.select(Mathematics.quaternion.identity.value, value * math.rsqrt(len), len > math.epsilon_normal); - return new quaternion(value); + return quaternion(value); } public static quaternion mul(quaternion lhs, quaternion rhs) { - return new quaternion( + return quaternion( lhs.value.w* rhs.value.x + lhs.value.x* rhs.value.w + lhs.value.y* rhs.value.z - lhs.value.z* rhs.value.y, lhs.value.w* rhs.value.y + lhs.value.y* rhs.value.w + lhs.value.z* rhs.value.x - lhs.value.x* rhs.value.z, lhs.value.w* rhs.value.z + lhs.value.z* rhs.value.w + lhs.value.x* rhs.value.y - lhs.value.y* rhs.value.x, @@ -69,19 +90,19 @@ public static quaternion matrixToQuat(float3 u, float3 v, float3 w) { float t = v.y + w.z; if (t >= 0f) - q = new float4(v.z - w.y, w.x - u.z, u.y - v.x, 1f + u.x + t); + q = float4(v.z - w.y, w.x - u.z, u.y - v.x, 1f + u.x + t); else - q = new float4(1f + u.x - t, u.y + v.x, w.x + u.z, v.z - w.y); + q = float4(1f + u.x - t, u.y + v.x, w.x + u.z, v.z - w.y); } else { float t = v.y - w.z; if (t >= 0f) - q = new float4(u.y + v.x, 1f - u.x + t, v.z + w.y, w.x - u.z); + q = float4(u.y + v.x, 1f - u.x + t, v.z + w.y, w.x - u.z); else - q = new float4(w.x + u.z, v.z + w.y, 1f - u.x - t, u.y - v.x); + q = float4(w.x + u.z, v.z + w.y, 1f - u.x - t, u.y - v.x); } - return normalize(new quaternion(q)); + return normalize(quaternion(q)); } public static float3x3 quatToMatrix(quaternion q) @@ -103,41 +124,27 @@ public static float3x3 quatToMatrix(quaternion q) float wz = q.value.w * z; // Calculate 3x3 matrix from orthonormal basis - var m = new float3x3 - { - c0 = new float3(1.0f - (yy + zz), xy + wz, xz - wy), - c1 = new float3(xy - wz, 1.0f - (xx + zz), yz + wx), - c2 = new float3(xz + wy, yz - wx, 1.0f - (xx + yy)) - }; + var m = float3x3 + ( + float3(1.0f - (yy + zz), xy + wz, xz - wy), + float3(xy - wz, 1.0f - (xx + zz), yz + wx), + float3(xz + wy, yz - wx, 1.0f - (xx + yy)) + ); return m; } public static float4x4 rottrans(quaternion q, float3 t) { var m3x3 = quatToMatrix(q); - var m = new float4x4 - { - c0 = new float4(m3x3.c0, 0.0f), - c1 = new float4(m3x3.c1, 0.0f), - c2 = new float4(m3x3.c2, 0.0f), - c3 = new float4(t, 1.0f) - }; + var m = float4x4 + ( + float4(m3x3.c0, 0.0f), + float4(m3x3.c1, 0.0f), + float4(m3x3.c2, 0.0f), + float4(t, 1.0f) + ); return m; } - - public static quaternion axisAngle(float3 axis, float angle) - { - float3 axisUnit = math.normalize(axis); - float sina = math.sin(0.5f * angle); - float cosa = math.cos(0.5f * angle); - return new quaternion { value = new float4( axisUnit.x * sina, axisUnit.y * sina, axisUnit.z * sina, cosa ) }; - } - - //@TODO: Seperated x, y, z - public static quaternion euler(float3 eulerInDegrees) - { - throw new System.NotImplementedException(); - } //@TODO: Decide on saturate for t (old math lib did it...) @@ -155,12 +162,12 @@ public static quaternion lerp(quaternion lhs, quaternion rhs, float t) public static float3 forward(quaternion q) { - return mul(q, new float3(0, 0, 1)); + return mul(q, float3(0, 0, 1)); } public static float3 up(quaternion q) { - return mul(q, new float3(0, 1, 0)); + return mul(q, float3(0, 1, 0)); } public static quaternion lookRotationToQuaternion(float3 direction, float3 up) @@ -187,7 +194,7 @@ public static quaternion lookRotationToQuaternion(float3 direction, float3 up) q.x = (m12 - m21) * num; q.y = (m20 - m02) * num; q.z = (m01 - m10) * num; - return new quaternion(q); + return quaternion(q); } if ((m00 >= m11) && (m00 >= m22)) { @@ -197,7 +204,7 @@ public static quaternion lookRotationToQuaternion(float3 direction, float3 up) q.y = (m01 + m10) * num4; q.z = (m02 + m20) * num4; q.w = (m12 - m21) * num4; - return new quaternion(q); + return quaternion(q); } if (m11 > m22) { @@ -207,7 +214,7 @@ public static quaternion lookRotationToQuaternion(float3 direction, float3 up) q.y = 0.5f * num6; q.z = (m21 + m12) * num3; q.w = (m20 - m02) * num3; - return new quaternion(q); + return quaternion(q); } var num5 = sqrt(((1.0f + m22) - m00) - m11); var num2 = 0.5f / num5; @@ -215,7 +222,7 @@ public static quaternion lookRotationToQuaternion(float3 direction, float3 up) q.y = (m21 + m12) * num2; q.z = 0.5f * num5; q.w = (m01 - m10) * num2; - return new quaternion(q); + return quaternion(q); } } } From 5fa6af51dd735b7baf2be1e4a65edfacd2915cb0 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Wed, 13 Jun 2018 16:56:05 +0200 Subject: [PATCH 023/437] Naive implementation of euler constructor for float3x3 and float4x4 using Unity rotation order: z, x, y (with tests) --- src/Unity.Mathematics.Tests/TestMatrix.cs | 25 +++++++++++++++++++++++ src/Unity.Mathematics/matrix.cs | 12 +++++++++++ 2 files changed, 37 insertions(+) diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index b748e370..4dc1d0ee 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -305,6 +305,31 @@ public void float4x4_rotate_z() Assert.AreEqual(m.c3.w, 1.0f, epsilon); } + [Test] + public void float3x3_euler() + { + float3x3 m = float3x3.euler(10.0f, 20.0f, 30.0f); + + float3x3 r = float3x3(0.55366f, 0.32659f, -0.76603f, + 0.82903f, -0.12943f, 0.54402f, + 0.07853f, -0.93626f, -0.34241f); + + TestUtils.AreEqual(m, r, 0.0001f); + } + + [Test] + public void float4x4_euler() + { + float4x4 m = float4x4.euler(10.0f, 20.0f, 30.0f); + + float4x4 r = float4x4(0.55366f, 0.32659f, -0.76603f, 0.0f, + 0.82903f, -0.12943f, 0.54402f, 0.0f, + 0.07853f, -0.93626f, -0.34241f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f); + + TestUtils.AreEqual(m, r, 0.0001f); + } + [Test] public void float2x2_scale() diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index 53dde0b3..727e8619 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -80,6 +80,12 @@ public float3x3(float m00, float m01, float m02, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f); + // Unity rotation order: z, x, y + public static float3x3 euler(float x, float y, float z) + { + return mul(rotateY(y), mul(rotateX(x), rotateZ(z))); + } + public static float3x3 rotateX(float angle) { float s, c; @@ -163,6 +169,12 @@ public float4x4(float m00, float m01, float m02, float m03, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f); + // Unity rotation order: z, x, y + public static float4x4 euler(float x, float y, float z) + { + return mul(rotateY(y), mul(rotateX(x), rotateZ(z))); + } + public static float4x4 rotateX(float angle) { float s, c; From 3b60c6177e9d47dd5051a31d2662c491533867bb Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Thu, 14 Jun 2018 12:42:03 +0200 Subject: [PATCH 024/437] Explicit rotation order parameter for euler matrix constructors --- src/Unity.Mathematics.Tests/TestMatrix.cs | 115 +++++++++++++++++++--- src/Unity.Mathematics/math.cs | 10 ++ src/Unity.Mathematics/matrix.cs | 66 +++++++++++-- 3 files changed, 169 insertions(+), 22 deletions(-) diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 4dc1d0ee..6d407234 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -305,32 +305,115 @@ public void float4x4_rotate_z() Assert.AreEqual(m.c3.w, 1.0f, epsilon); } + + // rotation by (-50, 28, 39) degrees from Max + static float3 test_angles = math.radians(float3(-50.0f, 28.0f, 39.0f)); + + static float3x3 test3x3_xyz = float3x3( 0.686179155968f, -0.684009078513f, -0.247567660300f, + 0.555656924414f, 0.273213475262f, 0.785238676636f, + -0.469471562786f, -0.676377097075f, 0.567547772692f); + + static float3x3 test3x3_xzy = float3x3( 0.686179155968f, -0.716805468125f, -0.123887395569f, + 0.629320391050f, 0.499539794942f, 0.595328345266f, + -0.364847929038f, -0.486466765705f, 0.793874092373f); + + static float3x3 test3x3_yxz = float3x3( 0.912505475649f, -0.404519349890f, -0.0608099701904f, + 0.276167195792f, 0.499539794942f, 0.8210917568930f, + -0.301770503659f, -0.766044443119f, 0.5675477726920f); + + static float3x3 test3x3_yzx = float3x3( 0.68617915596800f, -0.629320391050f, 0.364847929038f, + -0.00246669562435f, 0.499539794942f, 0.866287428445f, + -0.72742840288700f, -0.595328345266f, 0.341221453011f); + + static float3x3 test3x3_zxy = float3x3( 0.459852836288f, -0.835146653037f, 0.301770503659f, + 0.404519349890f, 0.499539794942f, 0.766044443119f, + -0.790505828266f, -0.230195701935f, 0.567547772692f); + + static float3x3 test3x3_zyx = float3x3( 0.686179155968f, -0.555656924414f, 0.469471562786f, + 0.125029621267f, 0.725866114623f, 0.676377097075f, + -0.716607116711f, -0.405418013897f, 0.567547772692f); + + + static float4x4 test4x4_xyz = float4x4(test3x3_xyz, float3(0, 0, 0)); + static float4x4 test4x4_xzy = float4x4(test3x3_xzy, float3(0, 0, 0)); + static float4x4 test4x4_yxz = float4x4(test3x3_yxz, float3(0, 0, 0)); + static float4x4 test4x4_yzx = float4x4(test3x3_yzx, float3(0, 0, 0)); + static float4x4 test4x4_zxy = float4x4(test3x3_zxy, float3(0, 0, 0)); + static float4x4 test4x4_zyx = float4x4(test3x3_zyx, float3(0, 0, 0)); + + [Test] public void float3x3_euler() { - float3x3 m = float3x3.euler(10.0f, 20.0f, 30.0f); - - float3x3 r = float3x3(0.55366f, 0.32659f, -0.76603f, - 0.82903f, -0.12943f, 0.54402f, - 0.07853f, -0.93626f, -0.34241f); - - TestUtils.AreEqual(m, r, 0.0001f); + float3x3 m0 = float3x3.euler(test_angles); + float3x3 m0_xyz = float3x3.euler(test_angles, RotationOrder.XYZ); + float3x3 m0_xzy = float3x3.euler(test_angles, RotationOrder.XZY); + float3x3 m0_yxz = float3x3.euler(test_angles, RotationOrder.YXZ); + float3x3 m0_yzx = float3x3.euler(test_angles, RotationOrder.YZX); + float3x3 m0_zxy = float3x3.euler(test_angles, RotationOrder.ZXY); + float3x3 m0_zyx = float3x3.euler(test_angles, RotationOrder.ZYX); + + float3x3 m1 = float3x3.euler(test_angles.x, test_angles.y, test_angles.z); + float3x3 m1_xyz = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.XYZ); + float3x3 m1_xzy = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.XZY); + float3x3 m1_yxz = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.YXZ); + float3x3 m1_yzx = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.YZX); + float3x3 m1_zxy = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.ZXY); + float3x3 m1_zyx = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.ZYX); + + TestUtils.AreEqual(m0, test3x3_zxy, 0.0001f); + TestUtils.AreEqual(m0_xyz, test3x3_xyz, 0.0001f); + TestUtils.AreEqual(m0_yzx, test3x3_yzx, 0.0001f); + TestUtils.AreEqual(m0_zxy, test3x3_zxy, 0.0001f); + TestUtils.AreEqual(m0_xzy, test3x3_xzy, 0.0001f); + TestUtils.AreEqual(m0_yxz, test3x3_yxz, 0.0001f); + TestUtils.AreEqual(m0_zyx, test3x3_zyx, 0.0001f); + + TestUtils.AreEqual(m1, test3x3_zxy, 0.0001f); + TestUtils.AreEqual(m1_xyz, test3x3_xyz, 0.0001f); + TestUtils.AreEqual(m1_yzx, test3x3_yzx, 0.0001f); + TestUtils.AreEqual(m1_zxy, test3x3_zxy, 0.0001f); + TestUtils.AreEqual(m1_xzy, test3x3_xzy, 0.0001f); + TestUtils.AreEqual(m1_yxz, test3x3_yxz, 0.0001f); + TestUtils.AreEqual(m1_zyx, test3x3_zyx, 0.0001f); } [Test] public void float4x4_euler() { - float4x4 m = float4x4.euler(10.0f, 20.0f, 30.0f); - - float4x4 r = float4x4(0.55366f, 0.32659f, -0.76603f, 0.0f, - 0.82903f, -0.12943f, 0.54402f, 0.0f, - 0.07853f, -0.93626f, -0.34241f, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f); - - TestUtils.AreEqual(m, r, 0.0001f); + float4x4 m0 = float4x4.euler(test_angles); + float4x4 m0_xyz = float4x4.euler(test_angles, RotationOrder.XYZ); + float4x4 m0_xzy = float4x4.euler(test_angles, RotationOrder.XZY); + float4x4 m0_yxz = float4x4.euler(test_angles, RotationOrder.YXZ); + float4x4 m0_yzx = float4x4.euler(test_angles, RotationOrder.YZX); + float4x4 m0_zxy = float4x4.euler(test_angles, RotationOrder.ZXY); + float4x4 m0_zyx = float4x4.euler(test_angles, RotationOrder.ZYX); + + float4x4 m1 = float4x4.euler(test_angles.x, test_angles.y, test_angles.z); + float4x4 m1_xyz = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.XYZ); + float4x4 m1_xzy = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.XZY); + float4x4 m1_yxz = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.YXZ); + float4x4 m1_yzx = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.YZX); + float4x4 m1_zxy = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.ZXY); + float4x4 m1_zyx = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.ZYX); + + TestUtils.AreEqual(m0, test4x4_zxy, 0.0001f); + TestUtils.AreEqual(m0_xyz, test4x4_xyz, 0.0001f); + TestUtils.AreEqual(m0_yzx, test4x4_yzx, 0.0001f); + TestUtils.AreEqual(m0_zxy, test4x4_zxy, 0.0001f); + TestUtils.AreEqual(m0_xzy, test4x4_xzy, 0.0001f); + TestUtils.AreEqual(m0_yxz, test4x4_yxz, 0.0001f); + TestUtils.AreEqual(m0_zyx, test4x4_zyx, 0.0001f); + + TestUtils.AreEqual(m1, test4x4_zxy, 0.0001f); + TestUtils.AreEqual(m1_xyz, test4x4_xyz, 0.0001f); + TestUtils.AreEqual(m1_yzx, test4x4_yzx, 0.0001f); + TestUtils.AreEqual(m1_zxy, test4x4_zxy, 0.0001f); + TestUtils.AreEqual(m1_xzy, test4x4_xzy, 0.0001f); + TestUtils.AreEqual(m1_yxz, test4x4_yxz, 0.0001f); + TestUtils.AreEqual(m1_zyx, test4x4_zyx, 0.0001f); } - [Test] public void float2x2_scale() { diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 7e65b69b..7236300e 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -10,6 +10,16 @@ namespace Unity.Mathematics { public static partial class math { + public enum RotationOrder + { + XYZ, + XZY, + YXZ, + YZX, + ZXY, // Unity Default + ZYX, + }; + public enum ShuffleComponent { LeftX, diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index 727e8619..a73b2680 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -80,10 +80,30 @@ public float3x3(float m00, float m01, float m02, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f); - // Unity rotation order: z, x, y - public static float3x3 euler(float x, float y, float z) + public static float3x3 euler(float x, float y, float z, RotationOrder order = RotationOrder.ZXY) { - return mul(rotateY(y), mul(rotateX(x), rotateZ(z))); + switch (order) + { + case RotationOrder.XYZ: + return mul(rotateZ(z), mul(rotateY(y), rotateX(x))); + case RotationOrder.XZY: + return mul(rotateY(y), mul(rotateZ(z), rotateX(x))); + case RotationOrder.YXZ: + return mul(rotateZ(z), mul(rotateX(x), rotateY(y))); + case RotationOrder.YZX: + return mul(rotateX(x), mul(rotateZ(z), rotateY(y))); + case RotationOrder.ZXY: + return mul(rotateY(y), mul(rotateX(x), rotateZ(z))); + case RotationOrder.ZYX: + return mul(rotateX(x), mul(rotateY(y), rotateZ(z))); + default: + return float3x3.identity; + } + } + + public static float3x3 euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) + { + return euler(xyz.x, xyz.y, xyz.z, order); } public static float3x3 rotateX(float angle) @@ -164,15 +184,44 @@ public float4x4(float m00, float m01, float m02, float m03, this.c3 = float4(m03, m13, m23, m33); } + public float4x4(float3x3 rotation, float3 translation) + { + c0 = float4(rotation.c0, 0.0f); + c1 = float4(rotation.c1, 0.0f); + c2 = float4(rotation.c2, 0.0f); + c3 = float4(translation, 1.0f); + } + public static readonly float4x4 identity = new float4x4(1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f); - // Unity rotation order: z, x, y - public static float4x4 euler(float x, float y, float z) + + public static float4x4 euler(float x, float y, float z, RotationOrder order = RotationOrder.ZXY) { - return mul(rotateY(y), mul(rotateX(x), rotateZ(z))); + switch(order) + { + case RotationOrder.XYZ: + return mul(rotateZ(z), mul(rotateY(y), rotateX(x))); + case RotationOrder.XZY: + return mul(rotateY(y), mul(rotateZ(z), rotateX(x))); + case RotationOrder.YXZ: + return mul(rotateZ(z), mul(rotateX(x), rotateY(y))); + case RotationOrder.YZX: + return mul(rotateX(x), mul(rotateZ(z), rotateY(y))); + case RotationOrder.ZXY: + return mul(rotateY(y), mul(rotateX(x), rotateZ(z))); + case RotationOrder.ZYX: + return mul(rotateX(x), mul(rotateY(y), rotateZ(z))); + default: + return float4x4.identity; + } + } + + public static float4x4 euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) + { + return euler(xyz.x, xyz.y, xyz.z, order); } public static float4x4 rotateX(float angle) @@ -287,6 +336,11 @@ public static float4x4 float4x4(float m00, float m01, float m02, float m03, m30, m31, m32, m33); } + public static float4x4 float4x4(float3x3 rotation, float3 translation) + { + return new float4x4(rotation, translation); + } + public static float2 mul(float2x2 x, float2 v) { return mad(x.c0, v.x, x.c1 * v.y); From 12a6ceb23dcdc375ee3d2b3a7fcc2f1b2504a7f7 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Thu, 14 Jun 2018 13:10:26 +0200 Subject: [PATCH 025/437] float3x3 and float4x4 constructors from quaternions (with tests) --- src/Unity.Mathematics.Tests/TestMatrix.cs | 42 +++++++++++++++++++++++ src/Unity.Mathematics/matrix.cs | 41 ++++++++++++++++++++++ src/Unity.Mathematics/quaternion.cs | 4 +-- 3 files changed, 84 insertions(+), 3 deletions(-) diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 6d407234..0ef1759d 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -123,6 +123,48 @@ public void float4x4_constructor_scalars() Assert.AreEqual(a.c3.w, 16.0f); } + [Test] + public void float4x4_constructor_float3x3() + { + float3x3 rot = float3x3(1.0f, 2.0f, 3.0f, + 4.0f, 5.0f, 6.0f, + 7.0f, 8.0f, 9.0f); + float3 pos = float3(10.0f, 11.0f, 12.0f); + float4x4 m = float4x4(rot, pos); + + float4x4 r = float4x4(1.0f, 2.0f, 3.0f, 10.0f, + 4.0f, 5.0f, 6.0f, 11.0f, + 7.0f, 8.0f, 9.0f, 12.0f, + 0.0f, 0.0f, 0.0f, 1.0f); + TestUtils.AreEqual(m, r); + } + + + [Test] + public void float3x3_constructor_quaternion() + { + float3x3 m = float3x3(normalize(quaternion(1.0f, 2.5f, 3.3f, 4.6f))); + + float3x3 r = float3x3( 0.12774f, -0.64529f, 0.75318f, + 0.89975f, 0.39491f, 0.18575f, + -0.41730f, 0.65394f, 0.63104f); + + TestUtils.AreEqual(m, r, 0.0001f); + } + + [Test] + public void float4x4_constructor_quaternion_position() + { + float4x4 m = float4x4(normalize(quaternion(1.0f, 2.5f, 3.3f, 4.6f)), float3(1.0f, 2.0f, 3.0f)); + + float4x4 r = float4x4( 0.12774f, -0.64529f, 0.75318f, 1.0f, + 0.89975f, 0.39491f, 0.18575f, 2.0f, + -0.41730f, 0.65394f, 0.63104f, 3.0f, + 0.0f, 0.0f, 0.0f, 1.0f); + + TestUtils.AreEqual(m, r, 0.0001f); + } + [Test] public void float2x2_identity() { diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index a73b2680..bc34ac05 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -76,6 +76,28 @@ public float3x3(float m00, float m01, float m02, this.c2 = float3(m02, m12, m22); } + public float3x3(quaternion rotation) + { + rotation = math.normalize(rotation); + + float x = rotation.value.x * 2.0F; + float y = rotation.value.y * 2.0F; + float z = rotation.value.z * 2.0F; + float xx = rotation.value.x * x; + float yy = rotation.value.y * y; + float zz = rotation.value.z * z; + float xy = rotation.value.x * y; + float xz = rotation.value.x * z; + float yz = rotation.value.y * z; + float wx = rotation.value.w * x; + float wy = rotation.value.w * y; + float wz = rotation.value.w * z; + + c0 = float3(1.0f - (yy + zz), xy + wz, xz - wy); + c1 = float3(xy - wz, 1.0f - (xx + zz), yz + wx); + c2 = float3(xz + wy, yz - wx, 1.0f - (xx + yy)); + } + public static readonly float3x3 identity = new float3x3(1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f); @@ -192,6 +214,15 @@ public float4x4(float3x3 rotation, float3 translation) c3 = float4(translation, 1.0f); } + public float4x4(quaternion rotation, float3 translation) + { + float3x3 rot = float3x3(rotation); + c0 = float4(rot.c0, 0.0f); + c1 = float4(rot.c1, 0.0f); + c2 = float4(rot.c2, 0.0f); + c3 = float4(translation, 1.0f); + } + public static readonly float4x4 identity = new float4x4(1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, @@ -320,6 +351,11 @@ public static float3x3 float3x3(float m00, float m01, float m02, m20, m21, m22); } + public static float3x3 float3x3(quaternion rotation) + { + return new float3x3(rotation); + } + public static float4x4 float4x4(float4 c0, float4 c1, float4 c2, float4 c3) { return new float4x4(c0, c1, c2, c3); @@ -341,6 +377,11 @@ public static float4x4 float4x4(float3x3 rotation, float3 translation) return new float4x4(rotation, translation); } + public static float4x4 float4x4(quaternion rotation, float3 translation) + { + return new float4x4(rotation, translation); + } + public static float2 mul(float2x2 x, float2 v) { return mad(x.c0, v.x, x.c1 * v.y); diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index 73d86643..a4e0e2d5 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -19,9 +19,7 @@ public static quaternion axisAngle(float3 axis, float angle) { float sina, cosa; math.sincos(0.5f * angle, out sina, out cosa); - - float3 axisUnit = math.normalize(axis); - return new quaternion(float4(axisUnit * sina, cosa)); + return quaternion(float4(math.normalize(axis) * sina, cosa)); } public static quaternion euler(float3 eulerInDegrees) From 0fafb98bb54e0cc945025cf6f2d857e3262b64ca Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Thu, 14 Jun 2018 14:20:49 +0200 Subject: [PATCH 026/437] Implemented rotateX, rotateY, rotateZ and euler constructors for quaternions (with tests) --- src/Unity.Mathematics.Tests/TestMatrix.cs | 14 +-- src/Unity.Mathematics.Tests/TestQuaternion.cs | 109 ++++++++++++++++++ src/Unity.Mathematics.Tests/TestUtils.cs | 5 + src/Unity.Mathematics/quaternion.cs | 50 +++++++- 4 files changed, 169 insertions(+), 9 deletions(-) diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 0ef1759d..53af9917 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -349,29 +349,29 @@ public void float4x4_rotate_z() // rotation by (-50, 28, 39) degrees from Max - static float3 test_angles = math.radians(float3(-50.0f, 28.0f, 39.0f)); + static internal float3 test_angles = math.radians(float3(-50.0f, 28.0f, 39.0f)); - static float3x3 test3x3_xyz = float3x3( 0.686179155968f, -0.684009078513f, -0.247567660300f, + static internal float3x3 test3x3_xyz = float3x3( 0.686179155968f, -0.684009078513f, -0.247567660300f, 0.555656924414f, 0.273213475262f, 0.785238676636f, -0.469471562786f, -0.676377097075f, 0.567547772692f); - static float3x3 test3x3_xzy = float3x3( 0.686179155968f, -0.716805468125f, -0.123887395569f, + static internal float3x3 test3x3_xzy = float3x3( 0.686179155968f, -0.716805468125f, -0.123887395569f, 0.629320391050f, 0.499539794942f, 0.595328345266f, -0.364847929038f, -0.486466765705f, 0.793874092373f); - static float3x3 test3x3_yxz = float3x3( 0.912505475649f, -0.404519349890f, -0.0608099701904f, + static internal float3x3 test3x3_yxz = float3x3( 0.912505475649f, -0.404519349890f, -0.0608099701904f, 0.276167195792f, 0.499539794942f, 0.8210917568930f, -0.301770503659f, -0.766044443119f, 0.5675477726920f); - static float3x3 test3x3_yzx = float3x3( 0.68617915596800f, -0.629320391050f, 0.364847929038f, + static internal float3x3 test3x3_yzx = float3x3( 0.68617915596800f, -0.629320391050f, 0.364847929038f, -0.00246669562435f, 0.499539794942f, 0.866287428445f, -0.72742840288700f, -0.595328345266f, 0.341221453011f); - static float3x3 test3x3_zxy = float3x3( 0.459852836288f, -0.835146653037f, 0.301770503659f, + static internal float3x3 test3x3_zxy = float3x3( 0.459852836288f, -0.835146653037f, 0.301770503659f, 0.404519349890f, 0.499539794942f, 0.766044443119f, -0.790505828266f, -0.230195701935f, 0.567547772692f); - static float3x3 test3x3_zyx = float3x3( 0.686179155968f, -0.555656924414f, 0.469471562786f, + static internal float3x3 test3x3_zyx = float3x3( 0.686179155968f, -0.555656924414f, 0.469471562786f, 0.125029621267f, 0.725866114623f, 0.676377097075f, -0.716607116711f, -0.405418013897f, 0.567547772692f); diff --git a/src/Unity.Mathematics.Tests/TestQuaternion.cs b/src/Unity.Mathematics.Tests/TestQuaternion.cs index 62e1c9eb..080751c2 100644 --- a/src/Unity.Mathematics.Tests/TestQuaternion.cs +++ b/src/Unity.Mathematics.Tests/TestQuaternion.cs @@ -21,5 +21,114 @@ public void quaternion_constructor() Assert.AreEqual(q.value.z, 3.0f); Assert.AreEqual(q.value.w, 4.0f); } + + [Test] + public void quaternion_axisAngle() + { + quaternion q = quaternion.axisAngle(normalize(float3(1.0f, 2.0f, 3.0f)), 10.0f); + + quaternion r = quaternion(-0.2562833f, -0.5125666f, -0.76885f, 0.2836622f); + TestUtils.AreEqual(q, r, 0.0001f); + } + + [Test] + public void quaternion_euler() + { + float3 test_angles = TestMatrix.test_angles; + quaternion q0 = quaternion.euler(test_angles); + quaternion q0_xyz = quaternion.euler(test_angles, RotationOrder.XYZ); + quaternion q0_xzy = quaternion.euler(test_angles, RotationOrder.XZY); + quaternion q0_yxz = quaternion.euler(test_angles, RotationOrder.YXZ); + quaternion q0_yzx = quaternion.euler(test_angles, RotationOrder.YZX); + quaternion q0_zxy = quaternion.euler(test_angles, RotationOrder.ZXY); + quaternion q0_zyx = quaternion.euler(test_angles, RotationOrder.ZYX); + + quaternion q1 = quaternion.euler(test_angles.x, test_angles.y, test_angles.z); + quaternion q1_xyz = quaternion.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.XYZ); + quaternion q1_xzy = quaternion.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.XZY); + quaternion q1_yxz = quaternion.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.YXZ); + quaternion q1_yzx = quaternion.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.YZX); + quaternion q1_zxy = quaternion.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.ZXY); + quaternion q1_zyx = quaternion.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.ZYX); + + float epsilon = 0.0001f; + TestUtils.AreEqual(q0, quaternion(-0.3133549f, 0.3435619f, 0.3899215f, 0.7948176f), epsilon); + TestUtils.AreEqual(q0_xyz, quaternion(-0.4597331f, 0.06979711f, 0.3899215f, 0.7948176f), epsilon); + TestUtils.AreEqual(q0_xzy, quaternion(-0.3133549f, 0.06979711f, 0.3899215f, 0.8630749f), epsilon); + TestUtils.AreEqual(q0_yxz, quaternion(-0.4597331f, 0.06979711f, 0.1971690f, 0.8630748f), epsilon); + TestUtils.AreEqual(q0_yzx, quaternion(-0.4597331f, 0.34356190f, 0.1971690f, 0.7948176f), epsilon); + TestUtils.AreEqual(q0_zxy, quaternion(-0.3133549f, 0.34356190f, 0.3899215f, 0.7948176f), epsilon); + TestUtils.AreEqual(q0_zyx, quaternion(-0.3133549f, 0.34356190f, 0.1971690f, 0.8630749f), epsilon); + + TestUtils.AreEqual(q1, quaternion(-0.3133549f, 0.3435619f, 0.3899215f, 0.7948176f), epsilon); + TestUtils.AreEqual(q1_xyz, quaternion(-0.4597331f, 0.06979711f, 0.3899215f, 0.7948176f), epsilon); + TestUtils.AreEqual(q1_xzy, quaternion(-0.3133549f, 0.06979711f, 0.3899215f, 0.8630749f), epsilon); + TestUtils.AreEqual(q1_yxz, quaternion(-0.4597331f, 0.06979711f, 0.1971690f, 0.8630748f), epsilon); + TestUtils.AreEqual(q1_yzx, quaternion(-0.4597331f, 0.34356190f, 0.1971690f, 0.7948176f), epsilon); + TestUtils.AreEqual(q1_zxy, quaternion(-0.3133549f, 0.34356190f, 0.3899215f, 0.7948176f), epsilon); + TestUtils.AreEqual(q1_zyx, quaternion(-0.3133549f, 0.34356190f, 0.1971690f, 0.8630749f), epsilon); + + float3x3 m0 = float3x3(q0); + float3x3 m0_xyz = float3x3(q0_xyz); + float3x3 m0_xzy = float3x3(q0_xzy); + float3x3 m0_yxz = float3x3(q0_yxz); + float3x3 m0_yzx = float3x3(q0_yzx); + float3x3 m0_zxy = float3x3(q0_zxy); + float3x3 m0_zyx = float3x3(q0_zyx); + + float3x3 m1 = float3x3(q1); + float3x3 m1_xyz = float3x3(q1_xyz); + float3x3 m1_xzy = float3x3(q1_xzy); + float3x3 m1_yxz = float3x3(q1_yxz); + float3x3 m1_yzx = float3x3(q1_yzx); + float3x3 m1_zxy = float3x3(q1_zxy); + float3x3 m1_zyx = float3x3(q1_zyx); + + TestUtils.AreEqual(m0, TestMatrix.test3x3_zxy, epsilon); + TestUtils.AreEqual(m0_xyz, TestMatrix.test3x3_xyz, epsilon); + TestUtils.AreEqual(m0_yzx, TestMatrix.test3x3_yzx, epsilon); + TestUtils.AreEqual(m0_zxy, TestMatrix.test3x3_zxy, epsilon); + TestUtils.AreEqual(m0_xzy, TestMatrix.test3x3_xzy, epsilon); + TestUtils.AreEqual(m0_yxz, TestMatrix.test3x3_yxz, epsilon); + TestUtils.AreEqual(m0_zyx, TestMatrix.test3x3_zyx, 0.0001f); + + TestUtils.AreEqual(m1, TestMatrix.test3x3_zxy, epsilon); + TestUtils.AreEqual(m1_xyz, TestMatrix.test3x3_xyz, epsilon); + TestUtils.AreEqual(m1_yzx, TestMatrix.test3x3_yzx, epsilon); + TestUtils.AreEqual(m1_zxy, TestMatrix.test3x3_zxy, epsilon); + TestUtils.AreEqual(m1_xzy, TestMatrix.test3x3_xzy, epsilon); + TestUtils.AreEqual(m1_yxz, TestMatrix.test3x3_yxz, epsilon); + TestUtils.AreEqual(m1_zyx, TestMatrix.test3x3_zyx, epsilon); + } + + [Test] + public void quaternion_rotateX() + { + float angle = 2.3f; + quaternion q = quaternion.rotateX(angle); + + quaternion r = quaternion(0.91276394f, 0.0f, 0.0f, 0.40848744f); + TestUtils.AreEqual(q, r, 0.0001f); + } + + [Test] + public void quaternion_rotateY() + { + float angle = 2.3f; + quaternion q = quaternion.rotateY(angle); + + quaternion r = quaternion(0.0f, 0.91276394f, 0.0f, 0.40848744f); + TestUtils.AreEqual(q, r, 0.0001f); + } + + [Test] + public void quaternion_rotateZ() + { + float angle = 2.3f; + quaternion q = quaternion.rotateZ(angle); + + quaternion r = quaternion(0.0f, 0.0f, 0.91276394f, 0.40848744f); + TestUtils.AreEqual(q, r, 0.0001f); + } } } diff --git a/src/Unity.Mathematics.Tests/TestUtils.cs b/src/Unity.Mathematics.Tests/TestUtils.cs index 203b7ad4..c067aead 100644 --- a/src/Unity.Mathematics.Tests/TestUtils.cs +++ b/src/Unity.Mathematics.Tests/TestUtils.cs @@ -51,5 +51,10 @@ public static void AreEqual(float4x4 a, float4x4 b, float delta = 0.0f) AreEqual(a.c2, b.c2, delta); AreEqual(a.c3, b.c3, delta); } + + public static void AreEqual(quaternion a, quaternion b, float delta = 0.0f) + { + AreEqual(a.value, b.value, delta); + } } } diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index a4e0e2d5..645da302 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -15,6 +15,7 @@ public partial struct quaternion public static readonly quaternion identity = new quaternion(0.0f, 0.0f, 0.0f, 1.0f); + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion axisAngle(float3 axis, float angle) { float sina, cosa; @@ -22,9 +23,54 @@ public static quaternion axisAngle(float3 axis, float angle) return quaternion(float4(math.normalize(axis) * sina, cosa)); } - public static quaternion euler(float3 eulerInDegrees) + public static quaternion euler(float x, float y, float z, RotationOrder order = RotationOrder.ZXY) { - throw new System.NotImplementedException(); + switch (order) + { + case RotationOrder.XYZ: + return mul(rotateZ(z), mul(rotateY(y), rotateX(x))); + case RotationOrder.XZY: + return mul(rotateY(y), mul(rotateZ(z), rotateX(x))); + case RotationOrder.YXZ: + return mul(rotateZ(z), mul(rotateX(x), rotateY(y))); + case RotationOrder.YZX: + return mul(rotateX(x), mul(rotateZ(z), rotateY(y))); + case RotationOrder.ZXY: + return mul(rotateY(y), mul(rotateX(x), rotateZ(z))); + case RotationOrder.ZYX: + return mul(rotateX(x), mul(rotateY(y), rotateZ(z))); + default: + return quaternion.identity; + } + } + + public static quaternion euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) + { + return euler(xyz.x, xyz.y, xyz.z, order); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion rotateX(float angle) + { + float sina, cosa; + math.sincos(0.5f * angle, out sina, out cosa); + return quaternion(sina, 0.0f, 0.0f, cosa); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion rotateY(float angle) + { + float sina, cosa; + math.sincos(0.5f * angle, out sina, out cosa); + return quaternion(0.0f, sina, 0.0f, cosa); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion rotateZ(float angle) + { + float sina, cosa; + math.sincos(0.5f * angle, out sina, out cosa); + return quaternion(0.0f, 0.0f, sina, cosa); } } From ed5daecc17d121fb3fa15d659f754f86e66dadbe Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Thu, 14 Jun 2018 16:26:46 +0200 Subject: [PATCH 027/437] Initial implementations of dot, nlerp and slerp for quaternions (with tests) --- src/Unity.Mathematics.Tests/TestQuaternion.cs | 39 ++++++++++++++++ src/Unity.Mathematics/quaternion.cs | 45 +++++++++++++++---- 2 files changed, 75 insertions(+), 9 deletions(-) diff --git a/src/Unity.Mathematics.Tests/TestQuaternion.cs b/src/Unity.Mathematics.Tests/TestQuaternion.cs index 080751c2..c76e0e3b 100644 --- a/src/Unity.Mathematics.Tests/TestQuaternion.cs +++ b/src/Unity.Mathematics.Tests/TestQuaternion.cs @@ -130,5 +130,44 @@ public void quaternion_rotateZ() quaternion r = quaternion(0.0f, 0.0f, 0.91276394f, 0.40848744f); TestUtils.AreEqual(q, r, 0.0001f); } + + static internal quaternion test_q0 = quaternion(0.3270836f, 0.8449658f, -0.1090279f, 0.4088545f); + static internal quaternion test_q1 = quaternion(-0.05623216f, 0.731018f, -0.6747859f, -0.08434824f); + static internal quaternion test_q2 = quaternion(-0.2316205f, -0.6022133f, -0.7411857f, -0.1852964f); + static internal quaternion test_q3 = quaternion(0.3619499f, 0.8352691f, -0.1392115f, 0.3897922f); + + [Test] + public void quaternion_dot() + { + float dot01 = dot(test_q0, test_q1); + float dot02 = dot(test_q0, test_q2); + + Assert.AreEqual(dot01, 0.6383769f, 0.00001f); + Assert.AreEqual(dot02, -0.5795583f, 0.00001f); + } + + [Test] + public void quaternion_nlerp() + { + quaternion r0 = nlerp(test_q0, test_q1, 0.3f); + quaternion r1 = nlerp(test_q0, test_q1, -4.3f); + quaternion r2 = nlerp(test_q0, test_q1, 5.1f); + + TestUtils.AreEqual(r0, quaternion(0.2302977f, 0.8803911f, -0.3026878f, 0.2832927f), 0.0001f); + TestUtils.AreEqual(r1, quaternion(0.4724294f, 0.3192692f, 0.5557517f, 0.604994f), 0.0001f); + TestUtils.AreEqual(r2, quaternion(-0.4054004f, 0.06570576f, -0.7457358f, -0.5246059f), 0.0001f); + } + + [Test] + public void quaternion_slerp() + { + quaternion r0 = slerp(test_q0, test_q1, 0.3f); + quaternion r1 = slerp(test_q0, test_q1, -4.3f); + quaternion r2 = slerp(test_q0, test_q1, 5.1f); + + TestUtils.AreEqual(r0, quaternion(0.2261014f, 0.8806396f, -0.3100654f, 0.2778693f), 0.0001f); + TestUtils.AreEqual(r1, quaternion(-0.4676181f, -0.5321988f, -0.3789966f, -0.5953646f), 0.0001f); + TestUtils.AreEqual(r2, quaternion(0.2596942f, -0.4369303f, 0.7902023f, 0.34239f), 0.0001f); + } } } diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index 645da302..63e74630 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -82,10 +82,16 @@ public static partial class math [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion quaternion(float4 value) { return new quaternion(value); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float dot(quaternion a, quaternion b) + { + return dot(a.value, b.value); + } + public static quaternion normalize(quaternion q) { float4 value = q.value; - float len = math.dot(value, value); + float len = dot(value, value); // note we use float4 comparison here because this gives us -1 / 0 which is necessary for select. //return select(quatIdentity(), q*rsqrt(len), len > float4(epsilon_normal())); @@ -190,18 +196,39 @@ public static float4x4 rottrans(quaternion q, float3 t) return m; } - //@TODO: Decide on saturate for t (old math lib did it...) - - public static quaternion slerp(quaternion lhs, quaternion rhs, float t) + public static quaternion nlerp(quaternion q1, quaternion q2, float t) { - throw new System.NotImplementedException(); + float dt = dot(q1, q2); + if(dt < 0.0f) + { + q2.value = -q2.value; + } + + return normalize(quaternion(lerp(q1.value, q2.value, t))); } - public static quaternion lerp(quaternion lhs, quaternion rhs, float t) + public static quaternion slerp(quaternion q1, quaternion q2, float t) { - throw new System.NotImplementedException(); - // var res = math.normalize(lhs.value + t * (math.chgsign(rhs.value, math.dot(lhs.value, rhs.value)) - rhs.value)); - // return new quaternion(res); + float dt = dot(q1, q2); + if (dt < 0.0f) + { + dt = -dt; + q2.value = -q2.value; + } + + if (dt < 0.9995f) + { + float angle = acos(dt); + float s = rsqrt(1.0f - dt * dt); // 1.0f / sin(angle) + float w1 = sin(angle * (1.0f - t)) * s; + float w2 = sin(angle * t) * s; + return quaternion(q1.value * w1 + q2.value * w2); + } + else + { + // if the angle is small, use linear interpolation + return nlerp(q1, q2, t); + } } public static float3 forward(quaternion q) From 2544fd3c491ec0f0b9b30bf7d7cc63b2e888da64 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Thu, 14 Jun 2018 16:49:32 +0200 Subject: [PATCH 028/437] removed quatToMatrix as you can now use float3x3(quaternion) or float4x4(quaternion, position) moved lookRotationToQuaternion(...) -> quaternion.lookRotation(...) --- src/Unity.Mathematics/quaternion.cs | 151 ++++++++++------------------ 1 file changed, 55 insertions(+), 96 deletions(-) diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index 63e74630..b379af44 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -72,6 +72,61 @@ public static quaternion rotateZ(float angle) math.sincos(0.5f * angle, out sina, out cosa); return quaternion(0.0f, 0.0f, sina, cosa); } + + public static quaternion lookRotation(float3 direction, float3 up) + { + var vector = math_experimental.normalizeSafe(direction); + var vector2 = cross(up, vector); + var vector3 = cross(vector, vector2); + var m00 = vector2.x; + var m01 = vector2.y; + var m02 = vector2.z; + var m10 = vector3.x; + var m11 = vector3.y; + var m12 = vector3.z; + var m20 = vector.x; + var m21 = vector.y; + var m22 = vector.z; + var num8 = (m00 + m11) + m22; + float4 q; + if (num8 > 0.0) + { + var num = sqrt(num8 + 1.0f); + q.w = num * 0.5f; + num = 0.5f / num; + q.x = (m12 - m21) * num; + q.y = (m20 - m02) * num; + q.z = (m01 - m10) * num; + return quaternion(q); + } + if ((m00 >= m11) && (m00 >= m22)) + { + var num7 = sqrt(((1.0f + m00) - m11) - m22); + var num4 = 0.5f / num7; + q.x = 0.5f * num7; + q.y = (m01 + m10) * num4; + q.z = (m02 + m20) * num4; + q.w = (m12 - m21) * num4; + return quaternion(q); + } + if (m11 > m22) + { + var num6 = sqrt(((1.0f + m11) - m00) - m22); + var num3 = 0.5f / num6; + q.x = (m10 + m01) * num3; + q.y = 0.5f * num6; + q.z = (m21 + m12) * num3; + q.w = (m20 - m02) * num3; + return quaternion(q); + } + var num5 = sqrt(((1.0f + m22) - m00) - m11); + var num2 = 0.5f / num5; + q.x = (m20 + m02) * num2; + q.y = (m21 + m12) * num2; + q.z = 0.5f * num5; + q.w = (m01 - m10) * num2; + return quaternion(q); + } } public static partial class math @@ -155,47 +210,6 @@ public static quaternion matrixToQuat(float3 u, float3 v, float3 w) return normalize(quaternion(q)); } - public static float3x3 quatToMatrix(quaternion q) - { - q = math.normalize(q); - - // Precalculate coordinate products - float x = q.value.x * 2.0F; - float y = q.value.y * 2.0F; - float z = q.value.z * 2.0F; - float xx = q.value.x * x; - float yy = q.value.y * y; - float zz = q.value.z * z; - float xy = q.value.x * y; - float xz = q.value.x * z; - float yz = q.value.y * z; - float wx = q.value.w * x; - float wy = q.value.w * y; - float wz = q.value.w * z; - - // Calculate 3x3 matrix from orthonormal basis - var m = float3x3 - ( - float3(1.0f - (yy + zz), xy + wz, xz - wy), - float3(xy - wz, 1.0f - (xx + zz), yz + wx), - float3(xz + wy, yz - wx, 1.0f - (xx + yy)) - ); - return m; - } - - public static float4x4 rottrans(quaternion q, float3 t) - { - var m3x3 = quatToMatrix(q); - var m = float4x4 - ( - float4(m3x3.c0, 0.0f), - float4(m3x3.c1, 0.0f), - float4(m3x3.c2, 0.0f), - float4(t, 1.0f) - ); - return m; - } - public static quaternion nlerp(quaternion q1, quaternion q2, float t) { float dt = dot(q1, q2); @@ -240,60 +254,5 @@ public static float3 up(quaternion q) { return mul(q, float3(0, 1, 0)); } - - public static quaternion lookRotationToQuaternion(float3 direction, float3 up) - { - var vector = math_experimental.normalizeSafe(direction); - var vector2 = cross(up, vector); - var vector3 = cross(vector,vector2); - var m00 = vector2.x; - var m01 = vector2.y; - var m02 = vector2.z; - var m10 = vector3.x; - var m11 = vector3.y; - var m12 = vector3.z; - var m20 = vector.x; - var m21 = vector.y; - var m22 = vector.z; - var num8 = (m00 + m11) + m22; - float4 q; - if (num8 > 0.0) - { - var num = sqrt(num8 + 1.0f); - q.w = num * 0.5f; - num = 0.5f / num; - q.x = (m12 - m21) * num; - q.y = (m20 - m02) * num; - q.z = (m01 - m10) * num; - return quaternion(q); - } - if ((m00 >= m11) && (m00 >= m22)) - { - var num7 = sqrt(((1.0f + m00) - m11) - m22); - var num4 = 0.5f / num7; - q.x = 0.5f * num7; - q.y = (m01 + m10) * num4; - q.z = (m02 + m20) * num4; - q.w = (m12 - m21) * num4; - return quaternion(q); - } - if (m11 > m22) - { - var num6 = sqrt(((1.0f + m11) - m00) - m22); - var num3 = 0.5f / num6; - q.x = (m10 + m01) * num3; - q.y = 0.5f * num6; - q.z = (m21 + m12) * num3; - q.w = (m20 - m02) * num3; - return quaternion(q); - } - var num5 = sqrt(((1.0f + m22) - m00) - m11); - var num2 = 0.5f / num5; - q.x = (m20 + m02) * num2; - q.y = (m21 + m12) * num2; - q.z = 0.5f * num5; - q.w = (m01 - m10) * num2; - return quaternion(q); - } } } From 296ebf59e91d68c072bc8b2389150213bf45bc7f Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Fri, 15 Jun 2018 09:15:48 +0200 Subject: [PATCH 029/437] conjugate and inverse operations for quaternions --- src/Unity.Mathematics.Tests/TestQuaternion.cs | 20 +++++++++++++++++++ src/Unity.Mathematics/quaternion.cs | 12 +++++++++++ 2 files changed, 32 insertions(+) diff --git a/src/Unity.Mathematics.Tests/TestQuaternion.cs b/src/Unity.Mathematics.Tests/TestQuaternion.cs index c76e0e3b..861e32a2 100644 --- a/src/Unity.Mathematics.Tests/TestQuaternion.cs +++ b/src/Unity.Mathematics.Tests/TestQuaternion.cs @@ -136,6 +136,26 @@ public void quaternion_rotateZ() static internal quaternion test_q2 = quaternion(-0.2316205f, -0.6022133f, -0.7411857f, -0.1852964f); static internal quaternion test_q3 = quaternion(0.3619499f, 0.8352691f, -0.1392115f, 0.3897922f); + [Test] + public void quaternion_conjugate() + { + quaternion q = quaternion(1.0f, -2.0f, 3.0f, -4.0f); + quaternion cq = conjugate(q); + quaternion r = quaternion(-1.0f, 2.0f, -3.0f, -4.0f); + + TestUtils.AreEqual(cq, r); + } + + [Test] + public void quaternion_inverse() + { + quaternion q = quaternion(1.0f, -2.0f, 3.0f, -4.0f); + quaternion iq = inverse(q); + quaternion r = quaternion(-0.1825742f, 0.3651484f, -0.5477226f, -0.7302967f); + + TestUtils.AreEqual(iq, r, 0.00001f); + } + [Test] public void quaternion_dot() { diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index b379af44..2c4b6a93 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -137,6 +137,18 @@ public static partial class math [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion quaternion(float4 value) { return new quaternion(value); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion conjugate(quaternion q) + { + return quaternion(q.value * float4(-1.0f, -1.0f, -1.0f, 1.0f)); // TODO: should only be one xorps + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion inverse(quaternion q) + { + return conjugate(normalize(q)); + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float dot(quaternion a, quaternion b) { From b9a2e75976feb5936f8326f6a0c31f2dae1c975d Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Fri, 15 Jun 2018 11:23:39 +0200 Subject: [PATCH 030/437] moved lookRotationToMatrix constructor into float3x3 and float4x4 --- src/Unity.Mathematics/matrix.cs | 80 ++++++++++++++++----------------- 1 file changed, 39 insertions(+), 41 deletions(-) diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index bc34ac05..d1b82fda 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -47,7 +47,6 @@ public static float2x2 scale(float2 v) return scale(v.x, v.y); } - public static float2x2 operator *(float2x2 mat, float s) { return float2x2(mat.c0 * s, mat.c1 * s); @@ -174,6 +173,30 @@ public static float3x3 scale(float3 v) return scale(v.x, v.y, v.z); } + public static float3x3 lookRotation(float3 forward, float3 up) + { + const float epsilon = 0.000001F; + float3 z = forward; + // compute u0 + float mag = math.length(z); + if (mag < epsilon) + return Mathematics.float3x3.identity; + z /= mag; + + float3 x = math.cross(up, z); + mag = math.length(x); + if (mag < epsilon) + return Mathematics.float3x3.identity; + x /= mag; + + float3 y = math.cross(z, x); + float yLength = math.length(y); + if (yLength < 0.9F || yLength > 1.1F) + return Mathematics.float3x3.identity; + + return float3x3(x, y, z); + } + public static float3x3 operator *(float3x3 mat, float s) { return float3x3(mat.c0 * s, mat.c1 * s, mat.c2 * s); @@ -224,9 +247,9 @@ public float4x4(quaternion rotation, float3 translation) } public static readonly float4x4 identity = new float4x4(1.0f, 0.0f, 0.0f, 0.0f, - 0.0f, 1.0f, 0.0f, 0.0f, - 0.0f, 0.0f, 1.0f, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f); + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f); public static float4x4 euler(float x, float y, float z, RotationOrder order = RotationOrder.ZXY) @@ -317,6 +340,18 @@ public static float4x4 translate(float3 vector) float4(vector.x, vector.y, vector.z, 1.0f)); } + public static float4x4 lookAt(float3 position, float3 forward, float3 up) + { + float3x3 rot = float3x3.lookRotation(forward, up); + + float4x4 matrix; + matrix.c0 = float4(rot.c0, 0.0F); + matrix.c1 = float4(rot.c1, 0.0F); + matrix.c2 = float4(rot.c2, 0.0F); + matrix.c3 = float4(position, 1.0F); + return matrix; + } + public static float4x4 operator *(float4x4 mat, float s) { return float4x4(mat.c0 * s, mat.c1 * s, mat.c2 * s, mat.c3 * s); @@ -568,42 +603,5 @@ public static float determinant(float4x4 m) return c0.x * m00 - c1.x * m01 + c2.x * m02 - c3.x * m03; } - - const float epsilon = 0.000001F; - - public static float4x4 lookRotationToMatrix(float3 position, float3 forward, float3 up) - { - float3x3 rot = lookRotationToMatrix(forward, up); - - float4x4 matrix; - matrix.c0 = float4(rot.c0, 0.0F); - matrix.c1 = float4(rot.c1, 0.0F); - matrix.c2 = float4(rot.c2, 0.0F); - matrix.c3 = float4(position, 1.0F); - return matrix; - } - - public static float3x3 lookRotationToMatrix(float3 forward, float3 up) - { - float3 z = forward; - // compute u0 - float mag = math.length(z); - if (mag < epsilon) - return Mathematics.float3x3.identity; - z /= mag; - - float3 x = math.cross(up, z); - mag = math.length(x); - if (mag < epsilon) - return Mathematics.float3x3.identity; - x /= mag; - - float3 y = math.cross(z, x); - float yLength = math.length(y); - if (yLength < 0.9F || yLength > 1.1F) - return Mathematics.float3x3.identity; - - return float3x3(x, y, z); - } } } From 128ecd136b114df98b820013a825d135cf26d30e Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Fri, 15 Jun 2018 11:59:24 +0200 Subject: [PATCH 031/437] Removed IntFloatUnion.cs. Added hlsl-style asint(), asuint() and asfloat() to convert between int, uint and float vector types. --- src/Unity.Mathematics/IntFloatUnion.cs | 41 ------------ src/Unity.Mathematics/half.cs | 6 +- src/Unity.Mathematics/math.cs | 88 ++++++++++++++++++++++++++ 3 files changed, 91 insertions(+), 44 deletions(-) delete mode 100644 src/Unity.Mathematics/IntFloatUnion.cs diff --git a/src/Unity.Mathematics/IntFloatUnion.cs b/src/Unity.Mathematics/IntFloatUnion.cs deleted file mode 100644 index 5e8c7364..00000000 --- a/src/Unity.Mathematics/IntFloatUnion.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; - -namespace Unity.Mathematics -{ - [StructLayout(LayoutKind.Explicit)] - internal struct IntFloatUnion - { - [FieldOffset(0)] - public int intValue; - [FieldOffset(0)] - public float floatValue; - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public IntFloatUnion(float value) - { - intValue = 0; - floatValue = (float)value; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public IntFloatUnion(int value) - { - floatValue = 0; - intValue = (int)value; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int ToInt(float value) - { - return new IntFloatUnion(value).intValue; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float ToFloat(int value) - { - return new IntFloatUnion(value).floatValue; - } - } -} - diff --git a/src/Unity.Mathematics/half.cs b/src/Unity.Mathematics/half.cs index 8bd94d56..1c852069 100644 --- a/src/Unity.Mathematics/half.cs +++ b/src/Unity.Mathematics/half.cs @@ -1,4 +1,4 @@ -namespace Unity.Mathematics +namespace Unity.Mathematics { public struct half { @@ -12,7 +12,7 @@ public static implicit operator half(float v) unchecked { v = math.clamp(v, -65536.0f, 65536.0f) * 1.925930e-34f; - int i = IntFloatUnion.ToInt(v); + int i = math.asint(v); uint ui = (uint)i; int h = ((i >> 16) & (int)0xffff8000) | ((int)(ui >> 13)); half value; @@ -25,7 +25,7 @@ public static implicit operator float(half d) { int iv = d.value; int i = (iv & 0x47fff) << 13; - return IntFloatUnion.ToFloat(i) * 5.192297e+33f; + return math.asfloat(i) * 5.192297e+33f; } } diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 7236300e..1a0d9b93 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -4,6 +4,7 @@ // * Should we allow float4 value = 5; it is convenient and how it is in hlsl but maybe not the right fit in C#? using System; +using System.Runtime.InteropServices; using System.Runtime.CompilerServices; namespace Unity.Mathematics @@ -32,6 +33,83 @@ public enum ShuffleComponent RightW }; + // asint + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int asint(float v) { + IntFloatUnion u; + u.intValue = 0; + u.floatValue = v; + return u.intValue; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 asint(float2 v) { return int2(asint(v.x), asint(v.y)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 asint(float3 v) { return int3(asint(v.x), asint(v.y), asint(v.z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 asint(float4 v) { return int4(asint(v.x), asint(v.y), asint(v.z), asint(v.w)); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int asint(uint v) { return (int)v; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 asint(uint2 v) { return int2((int)v.x, (int)v.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 asint(uint3 v) { return int3((int)v.x, (int)v.y, (int)v.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 asint(uint4 v) { return int4((int)v.x, (int)v.y, (int)v.z, (int)v.w); } + + // asuint + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint asuint(float v) + { + return (uint)asint(v); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 asuint(float2 v) { return uint2(asuint(v.x), asuint(v.y)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 asuint(float3 v) { return uint3(asuint(v.x), asuint(v.y), asuint(v.z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 asuint(float4 v) { return uint4(asuint(v.x), asuint(v.y), asuint(v.z), asuint(v.w)); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint asuint(int v) { return (uint)v; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 asuint(int2 v) { return uint2((uint)v.x, (uint)v.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 asuint(int3 v) { return uint3((uint)v.x, (uint)v.y, (uint)v.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 asuint(int4 v) { return uint4((uint)v.x, (uint)v.y, (uint)v.z, (uint)v.w); } + + + // asfloat + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float asfloat(int v) + { + IntFloatUnion u; + u.floatValue = 0; + u.intValue = v; + + return u.floatValue; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 asfloat(int2 v) { return float2(asfloat(v.x), asfloat(v.y)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 asfloat(int3 v) { return float3(asfloat(v.x), asfloat(v.y), asfloat(v.z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 asfloat(int4 v) { return float4(asfloat(v.x), asfloat(v.y), asfloat(v.z), asfloat(v.w)); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float asfloat(uint v) { return asfloat((int)v); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 asfloat(uint2 v) { return float2(asfloat(v.x), asfloat(v.y)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 asfloat(uint3 v) { return float3(asfloat(v.x), asfloat(v.y), asfloat(v.z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 asfloat(uint4 v) { return float4(asfloat(v.x), asfloat(v.y), asfloat(v.z), asfloat(v.w)); } + + // min [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float min(float a, float b) { return float.IsNaN(b) || a < b ? a : b; } @@ -559,5 +637,15 @@ public static float4 shuffle(float4 a, float4 b, ShuffleComponent x, ShuffleComp [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 up() { return new float3(0.0f,1.0f,0.0f); } + + + [StructLayout(LayoutKind.Explicit)] + internal struct IntFloatUnion + { + [FieldOffset(0)] + public int intValue; + [FieldOffset(0)] + public float floatValue; + } } } From 6ed07a03b3a4632f4f19d2e3fc97a4edc87015cf Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Fri, 15 Jun 2018 13:14:56 +0200 Subject: [PATCH 032/437] Updated using statements in example in readme.md --- readme.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index d2cc0ab8..4711738c 100644 --- a/readme.md +++ b/readme.md @@ -13,14 +13,19 @@ In addition to this, the `burst` compiler is able to recognize these types and p You can use this library in your Unity game by using the Package Manager and referencing the package `com.unity.mathematics`. See the forum [Welcome](https://forum.unity.com/threads/welcome.522627) page for more details. ```C# -using Unity.Mathematics; using static Unity.Mathematics.math; - -var v1 = float3(1,2,3); -var v2 = float3(4,5,6); -v1 = normalize(v1); -v2 = normalize(v2); -var v3 = dot(v1, v2); +namespace MyNamespace +{ + using Unity.Mathematics; + + ... + var v1 = float3(1,2,3); + var v2 = float3(4,5,6); + v1 = normalize(v1); + v2 = normalize(v2); + var v3 = dot(v1, v2); + ... +} ``` ## Building From ba951a6ba975137a37868f09c7c605ff9d67b6c6 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Mon, 18 Jun 2018 09:12:52 +0200 Subject: [PATCH 033/437] Remove IntFloatUnion.cs --- src/Unity.Mathematics/Unity.Mathematics.csproj | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 9b64f246..918db980 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -79,7 +79,6 @@ - From 6a94dbb815a71268b58f87e4d12d13d0d23ee709 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Mon, 18 Jun 2018 09:58:42 +0200 Subject: [PATCH 034/437] Quaternion constructors from float3x3 and float4x4 with basic test --- src/Unity.Mathematics.Tests/TestMatrix.cs | 12 +-- src/Unity.Mathematics.Tests/TestQuaternion.cs | 23 ++++- src/Unity.Mathematics/quaternion.cs | 84 +++++++++++++------ 3 files changed, 88 insertions(+), 31 deletions(-) diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 53af9917..84ed5bdd 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -376,12 +376,12 @@ public void float4x4_rotate_z() -0.716607116711f, -0.405418013897f, 0.567547772692f); - static float4x4 test4x4_xyz = float4x4(test3x3_xyz, float3(0, 0, 0)); - static float4x4 test4x4_xzy = float4x4(test3x3_xzy, float3(0, 0, 0)); - static float4x4 test4x4_yxz = float4x4(test3x3_yxz, float3(0, 0, 0)); - static float4x4 test4x4_yzx = float4x4(test3x3_yzx, float3(0, 0, 0)); - static float4x4 test4x4_zxy = float4x4(test3x3_zxy, float3(0, 0, 0)); - static float4x4 test4x4_zyx = float4x4(test3x3_zyx, float3(0, 0, 0)); + static internal float4x4 test4x4_xyz = float4x4(test3x3_xyz, float3(0, 0, 0)); + static internal float4x4 test4x4_xzy = float4x4(test3x3_xzy, float3(0, 0, 0)); + static internal float4x4 test4x4_yxz = float4x4(test3x3_yxz, float3(0, 0, 0)); + static internal float4x4 test4x4_yzx = float4x4(test3x3_yzx, float3(0, 0, 0)); + static internal float4x4 test4x4_zxy = float4x4(test3x3_zxy, float3(0, 0, 0)); + static internal float4x4 test4x4_zyx = float4x4(test3x3_zyx, float3(0, 0, 0)); [Test] diff --git a/src/Unity.Mathematics.Tests/TestQuaternion.cs b/src/Unity.Mathematics.Tests/TestQuaternion.cs index 861e32a2..7b1d2f80 100644 --- a/src/Unity.Mathematics.Tests/TestQuaternion.cs +++ b/src/Unity.Mathematics.Tests/TestQuaternion.cs @@ -12,14 +12,35 @@ namespace Unity.Mathematics.Tests class TestQuaternion { [Test] - public void quaternion_constructor() + public void quaternion_basic_constructors() { quaternion q = quaternion(1.0f, 2.0f, 3.0f, 4.0f); + quaternion q2 = quaternion(float4(1.0f, 2.0f, 3.0f, 4.0f)); Assert.AreEqual(q.value.x, 1.0f); Assert.AreEqual(q.value.y, 2.0f); Assert.AreEqual(q.value.z, 3.0f); Assert.AreEqual(q.value.w, 4.0f); + Assert.AreEqual(q2.value.x, 1.0f); + Assert.AreEqual(q2.value.y, 2.0f); + Assert.AreEqual(q2.value.z, 3.0f); + Assert.AreEqual(q2.value.w, 4.0f); + } + + [Test] + public void quaternion_construct_from_matrix() + { + float3x3 m3x3 = TestMatrix.test3x3_xyz; + float4x4 m4x4 = TestMatrix.test4x4_zyx; + + quaternion q3x3 = quaternion(m3x3); + quaternion q4x4 = quaternion(m4x4); + + float3x3 mq3x3 = float3x3(q3x3); + float4x4 mq4x4 = float4x4(q4x4, float3(0.0f)); + + TestUtils.AreEqual(mq3x3, m3x3, 0.0001f); + TestUtils.AreEqual(mq4x4, m4x4, 0.0001f); } [Test] diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index 2c4b6a93..f902420c 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -13,6 +13,59 @@ public partial struct quaternion public quaternion(float x, float y, float z, float w) { value.x = x; value.y = y; value.z = z; value.w = w; } public quaternion(float4 value) { this.value = value; } + + // Construct unit quaternion from rotation matrix. The matrix must be orthonormal. + public quaternion(float3x3 m) + { + float3 u = m.c0; + float3 v = m.c1; + float3 w = m.c2; + + if (u.x >= 0f) + { + float t = v.y + w.z; + if (t >= 0f) + value = float4(v.z - w.y, w.x - u.z, u.y - v.x, 1f + u.x + t); + else + value = float4(1f + u.x - t, u.y + v.x, w.x + u.z, v.z - w.y); + } + else + { + float t = v.y - w.z; + if (t >= 0f) + value = float4(u.y + v.x, 1f - u.x + t, v.z + w.y, w.x - u.z); + else + value = float4(w.x + u.z, v.z + w.y, 1f - u.x - t, u.y - v.x); + } + value = normalize(value); + } + + // Construct unit quaternion from rigid-transformation matrix. The matrix must be orthonormal. + public quaternion(float4x4 m) + { + float4 u = m.c0; + float4 v = m.c1; + float4 w = m.c2; + + if (u.x >= 0f) + { + float t = v.y + w.z; + if (t >= 0f) + value = float4(v.z - w.y, w.x - u.z, u.y - v.x, 1f + u.x + t); + else + value = float4(1f + u.x - t, u.y + v.x, w.x + u.z, v.z - w.y); + } + else + { + float t = v.y - w.z; + if (t >= 0f) + value = float4(u.y + v.x, 1f - u.x + t, v.z + w.y, w.x - u.z); + else + value = float4(w.x + u.z, v.z + w.y, 1f - u.x - t, u.y - v.x); + } + value = normalize(value); + } + public static readonly quaternion identity = new quaternion(0.0f, 0.0f, 0.0f, 1.0f); [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -44,6 +97,7 @@ public static quaternion euler(float x, float y, float z, RotationOrder order = } } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) { return euler(xyz.x, xyz.y, xyz.z, order); @@ -137,6 +191,12 @@ public static partial class math [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion quaternion(float4 value) { return new quaternion(value); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion quaternion(float3x3 m) { return new quaternion(m); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion quaternion(float4x4 m) { return new quaternion(m); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion conjugate(quaternion q) { @@ -198,30 +258,6 @@ public static float3 mul(quaternion rotation, float3 position) return res; } - // get unit quaternion from rotation matrix - // u, v, w must be ortho-normal. - public static quaternion matrixToQuat(float3 u, float3 v, float3 w) - { - float4 q; - if (u.x >= 0f) - { - float t = v.y + w.z; - if (t >= 0f) - q = float4(v.z - w.y, w.x - u.z, u.y - v.x, 1f + u.x + t); - else - q = float4(1f + u.x - t, u.y + v.x, w.x + u.z, v.z - w.y); - } - else - { - float t = v.y - w.z; - if (t >= 0f) - q = float4(u.y + v.x, 1f - u.x + t, v.z + w.y, w.x - u.z); - else - q = float4(w.x + u.z, v.z + w.y, 1f - u.x - t, u.y - v.x); - } - return normalize(quaternion(q)); - } - public static quaternion nlerp(quaternion q1, quaternion q2, float t) { float dt = dot(q1, q2); From 650dd750df3bfe0b59d3ae1ecc4f99694dc56733 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Mon, 18 Jun 2018 11:36:31 +0200 Subject: [PATCH 035/437] Vector implementation of quaternion multiply --- src/Unity.Mathematics/quaternion.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index f902420c..4ce08bbd 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -227,13 +227,9 @@ public static quaternion normalize(quaternion q) return quaternion(value); } - public static quaternion mul(quaternion lhs, quaternion rhs) + public static quaternion mul(quaternion a, quaternion b) { - return quaternion( - lhs.value.w* rhs.value.x + lhs.value.x* rhs.value.w + lhs.value.y* rhs.value.z - lhs.value.z* rhs.value.y, - lhs.value.w* rhs.value.y + lhs.value.y* rhs.value.w + lhs.value.z* rhs.value.x - lhs.value.x* rhs.value.z, - lhs.value.w* rhs.value.z + lhs.value.z* rhs.value.w + lhs.value.x* rhs.value.y - lhs.value.y* rhs.value.x, - lhs.value.w* rhs.value.w - lhs.value.x* rhs.value.x - lhs.value.y* rhs.value.y - lhs.value.z* rhs.value.z); + return quaternion(a.value.wwww * b.value + (a.value.xyzx * b.value.wwwx + a.value.yzxy * b.value.zxyy) * float4(1.0f, 1.0f, 1.0f, -1.0f) - a.value.zxyz * b.value.yzxz); } public static float3 mul(quaternion rotation, float3 position) From d771daa53e8a8ef6705258ed8641a379e20429fc Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Mon, 18 Jun 2018 12:01:08 +0200 Subject: [PATCH 036/437] Vector version of quaternion-vector multiplication with simple test --- src/Unity.Mathematics.Tests/TestQuaternion.cs | 14 ++++++++++++ src/Unity.Mathematics/quaternion.cs | 22 +++---------------- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/src/Unity.Mathematics.Tests/TestQuaternion.cs b/src/Unity.Mathematics.Tests/TestQuaternion.cs index 7b1d2f80..9ab5607d 100644 --- a/src/Unity.Mathematics.Tests/TestQuaternion.cs +++ b/src/Unity.Mathematics.Tests/TestQuaternion.cs @@ -210,5 +210,19 @@ public void quaternion_slerp() TestUtils.AreEqual(r1, quaternion(-0.4676181f, -0.5321988f, -0.3789966f, -0.5953646f), 0.0001f); TestUtils.AreEqual(r2, quaternion(0.2596942f, -0.4369303f, 0.7902023f, 0.34239f), 0.0001f); } + + [Test] + public void quaternion_mul_vector() + { + float3x3 m = TestMatrix.test3x3_xyz; + quaternion q = quaternion(m); + + float3 vector = float3(1.1f, -2.2f, 3.5f); + + float3 mvector = mul(m, vector); + float3 qvector = mul(q, vector); + + TestUtils.AreEqual(qvector, mvector, 0.0001f); + } } } diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index 4ce08bbd..b4dbe4d9 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -232,26 +232,10 @@ public static quaternion mul(quaternion a, quaternion b) return quaternion(a.value.wwww * b.value + (a.value.xyzx * b.value.wwwx + a.value.yzxy * b.value.zxyy) * float4(1.0f, 1.0f, 1.0f, -1.0f) - a.value.zxyz * b.value.yzxz); } - public static float3 mul(quaternion rotation, float3 position) + public static float3 mul(quaternion rotation, float3 vector) { - float x = rotation.value.x * 2F; - float y = rotation.value.y * 2F; - float z = rotation.value.z * 2F; - float xx = rotation.value.x * x; - float yy = rotation.value.y * y; - float zz = rotation.value.z * z; - float xy = rotation.value.x * y; - float xz = rotation.value.x * z; - float yz = rotation.value.y * z; - float wx = rotation.value.w * x; - float wy = rotation.value.w * y; - float wz = rotation.value.w * z; - - float3 res; - res.x = (1F - (yy + zz)) * position.x + (xy - wz) * position.y + (xz + wy) * position.z; - res.y = (xy + wz) * position.x + (1F - (xx + zz)) * position.y + (yz - wx) * position.z; - res.z = (xz - wy) * position.x + (yz + wx) * position.y + (1F - (xx + yy)) * position.z; - return res; + float3 t = 2 * cross(rotation.value.xyz, vector); + return vector + rotation.value.w * t + cross(rotation.value.xyz, t); } public static quaternion nlerp(quaternion q1, quaternion q2, float t) From 75aef43729469990a9c4ce59e9b0eb1116c18b51 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Tue, 19 Jun 2018 16:48:21 +0200 Subject: [PATCH 037/437] Add bool4/bool3/bool2 to float4/float3/float2 implicit conversion --- src/Unity.Mathematics/float2.cs | 4 ++++ src/Unity.Mathematics/float3.cs | 3 +++ src/Unity.Mathematics/float4.cs | 3 +++ 3 files changed, 10 insertions(+) diff --git a/src/Unity.Mathematics/float2.cs b/src/Unity.Mathematics/float2.cs index 409af7ba..2fce9a13 100644 --- a/src/Unity.Mathematics/float2.cs +++ b/src/Unity.Mathematics/float2.cs @@ -40,9 +40,13 @@ public float2(int2 val) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2(float d) { return new float2(d); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2(int2 d) { return new float2(d.x, d.y); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static implicit operator float2(bool2 d) { return new float2(d.x ? 1.0f : 0.0f, d.y ? 1.0f : 0.0f); } + public override string ToString() { return string.Format("float2({0:R}f, {1:R}f)", x, y); diff --git a/src/Unity.Mathematics/float3.cs b/src/Unity.Mathematics/float3.cs index 76d4dc47..127c8558 100644 --- a/src/Unity.Mathematics/float3.cs +++ b/src/Unity.Mathematics/float3.cs @@ -47,6 +47,9 @@ public float3(int3 val) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3(int3 d) { return new float3(d.x, d.y, d.z); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static implicit operator float3(bool3 d) { return new float3(d.x ? 1.0f : 0.0f, d.y ? 1.0f : 0.0f, d.z ? 1.0f : 0.0f); } + public override string ToString() { return string.Format("float3({0}f, {1}f, {2}f)", x, y, z); diff --git a/src/Unity.Mathematics/float4.cs b/src/Unity.Mathematics/float4.cs index 4dd80ceb..41061036 100644 --- a/src/Unity.Mathematics/float4.cs +++ b/src/Unity.Mathematics/float4.cs @@ -62,6 +62,9 @@ public float4(bool4 val) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4(int4 d) { return new float4(d.x, d.y, d.z, d.w); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static implicit operator float4(bool4 d) { return new float4(d.x ? 1.0f : 0.0f, d.y ? 1.0f : 0.0f, d.z ? 1.0f : 0.0f, d.w ? 1.0f : 0.0f); } + public override string ToString() { return string.Format("float4({0}f, {1}f, {2}f, {3}f)", x, y, z, w); From 7706fb8a17f16b04c6fdb6386456da454facb0d6 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Tue, 19 Jun 2018 16:48:54 +0200 Subject: [PATCH 038/437] Update noise to use latest maths --- src/Unity.Mathematics/Noise/cellular2D.cs | 40 +- src/Unity.Mathematics/Noise/cellular2x2.cs | 22 +- src/Unity.Mathematics/Noise/cellular2x2x2.cs | 42 ++- src/Unity.Mathematics/Noise/cellular3D.cs | 122 ++++--- src/Unity.Mathematics/Noise/classicnoise2D.cs | 68 ++-- src/Unity.Mathematics/Noise/classicnoise3D.cs | 166 ++++----- src/Unity.Mathematics/Noise/classicnoise4D.cs | 344 +++++++++--------- src/Unity.Mathematics/Noise/common.cs | 30 +- src/Unity.Mathematics/Noise/noise2D.cs | 24 +- src/Unity.Mathematics/Noise/noise3D.cs | 54 +-- src/Unity.Mathematics/Noise/noise3Dgrad.cs | 56 +-- src/Unity.Mathematics/Noise/noise4D.cs | 42 ++- src/Unity.Mathematics/Noise/psrdnoise2D.cs | 158 ++++---- 13 files changed, 597 insertions(+), 571 deletions(-) diff --git a/src/Unity.Mathematics/Noise/cellular2D.cs b/src/Unity.Mathematics/Noise/cellular2D.cs index 2ace6e8f..5eab2dd9 100644 --- a/src/Unity.Mathematics/Noise/cellular2D.cs +++ b/src/Unity.Mathematics/Noise/cellular2D.cs @@ -4,6 +4,8 @@ // See LICENSE file for details. // https://github.com/stegu/webgl-noise +using static Unity.Mathematics.math; + namespace Unity.Mathematics { public static partial class noise @@ -16,41 +18,41 @@ public static float2 cellular(float2 P) const float Ko = 0.428571428571f; // 3/7 const float jitter = 1.0f; // Less gives more regular pattern - float2 Pi = mod289(math.floor(P)); - float2 Pf = math.fract(P); - float3 oi = new float3(-1.0f, 0.0f, 1.0f); - float3 of = new float3(-0.5f, 0.5f, 1.5f); + float2 Pi = mod289(floor(P)); + float2 Pf = fract(P); + float3 oi = float3(-1.0f, 0.0f, 1.0f); + float3 of = float3(-0.5f, 0.5f, 1.5f); float3 px = permute(Pi.x + oi); float3 p = permute(px.x + Pi.y + oi); // p11, p12, p13 - float3 ox = math.fract(p * K) - Ko; - float3 oy = mod7(math.floor(p * K)) * K - Ko; + float3 ox = fract(p * K) - Ko; + float3 oy = mod7(floor(p * K)) * K - Ko; float3 dx = Pf.x + 0.5f + jitter * ox; float3 dy = Pf.y - of + jitter * oy; float3 d1 = dx * dx + dy * dy; // d11, d12 and d13, squared p = permute(px.y + Pi.y + oi); // p21, p22, p23 - ox = math.fract(p * K) - Ko; - oy = mod7(math.floor(p * K)) * K - Ko; + ox = fract(p * K) - Ko; + oy = mod7(floor(p * K)) * K - Ko; dx = Pf.x - 0.5f + jitter * ox; dy = Pf.y - of + jitter * oy; float3 d2 = dx * dx + dy * dy; // d21, d22 and d23, squared p = permute(px.z + Pi.y + oi); // p31, p32, p33 - ox = math.fract(p * K) - Ko; - oy = mod7(math.floor(p * K)) * K - Ko; + ox = fract(p * K) - Ko; + oy = mod7(floor(p * K)) * K - Ko; dx = Pf.x - 1.5f + jitter * ox; dy = Pf.y - of + jitter * oy; float3 d3 = dx * dx + dy * dy; // d31, d32 and d33, squared // Sort out the two smallest distances (F1, F2) - float3 d1a = math.min(d1, d2); - d2 = math.max(d1, d2); // Swap to keep candidates for F2 - d2 = math.min(d2, d3); // neither F1 nor F2 are now in d3 - d1 = math.min(d1a, d2); // F1 is now in d1 - d2 = math.max(d1a, d2); // Swap to keep candidates for F2 + float3 d1a = min(d1, d2); + d2 = max(d1, d2); // Swap to keep candidates for F2 + d2 = min(d2, d3); // neither F1 nor F2 are now in d3 + d1 = min(d1a, d2); // F1 is now in d1 + d2 = max(d1a, d2); // Swap to keep candidates for F2 d1.xy = (d1.x < d1.y) ? d1.xy : d1.yx; // Swap if smaller d1.xz = (d1.x < d1.z) ? d1.xz : d1.zx; // F1 is in d1.x - d1.yz = math.min(d1.yz, d2.yz); // F2 is now not in d2.yz - d1.y = math.min(d1.y, d1.z); // nor in d1.z - d1.y = math.min(d1.y, d2.x); // F2 is in d1.y, we're done. - return math.sqrt(d1.xy); + d1.yz = min(d1.yz, d2.yz); // F2 is now not in d2.yz + d1.y = min(d1.y, d1.z); // nor in d1.z + d1.y = min(d1.y, d2.x); // F2 is in d1.y, we're done. + return sqrt(d1.xy); } } } diff --git a/src/Unity.Mathematics/Noise/cellular2x2.cs b/src/Unity.Mathematics/Noise/cellular2x2.cs index e560d4cb..7610eb30 100644 --- a/src/Unity.Mathematics/Noise/cellular2x2.cs +++ b/src/Unity.Mathematics/Noise/cellular2x2.cs @@ -4,6 +4,8 @@ // See LICENSE file for details. // https://github.com/stegu/webgl-noise +using static Unity.Mathematics.math; + namespace Unity.Mathematics { public static partial class noise @@ -20,14 +22,14 @@ public static float2 cellular2x2(float2 P) const float K2 = 0.0714285714285f; // K/2 const float jitter = 0.8f; // jitter 1.0 makes F1 wrong more often - float2 Pi = mod289(math.floor(P)); - float2 Pf = math.fract(P); - float4 Pfx = Pf.x + new float4(-0.5f, -1.5f, -0.5f, -1.5f); - float4 Pfy = Pf.y + new float4(-0.5f, -0.5f, -1.5f, -1.5f); - float4 p = permute(Pi.x + new float4(0.0f, 1.0f, 0.0f, 1.0f)); - p = permute(p + Pi.y + new float4(0.0f, 0.0f, 1.0f, 1.0f)); + float2 Pi = mod289(floor(P)); + float2 Pf = fract(P); + float4 Pfx = Pf.x + float4(-0.5f, -1.5f, -0.5f, -1.5f); + float4 Pfy = Pf.y + float4(-0.5f, -0.5f, -1.5f, -1.5f); + float4 p = permute(Pi.x + float4(0.0f, 1.0f, 0.0f, 1.0f)); + p = permute(p + Pi.y + float4(0.0f, 0.0f, 1.0f, 1.0f)); float4 ox = mod7(p) * K + K2; - float4 oy = mod7(math.floor(p * K)) * K + K2; + float4 oy = mod7(floor(p * K)) * K + K2; float4 dx = Pfx + jitter * ox; float4 dy = Pfy + jitter * oy; float4 d = dx * dx + dy * dy; // d11, d12, d21 and d22, squared @@ -36,9 +38,9 @@ public static float2 cellular2x2(float2 P) d.xy = (d.x < d.y) ? d.xy : d.yx; // Swap if smaller d.xz = (d.x < d.z) ? d.xz : d.zx; d.xw = (d.x < d.w) ? d.xw : d.wx; - d.y = math.min(d.y, d.z); - d.y = math.min(d.y, d.w); - return math.sqrt(d.xy); + d.y = min(d.y, d.z); + d.y = min(d.y, d.w); + return sqrt(d.xy); } } } diff --git a/src/Unity.Mathematics/Noise/cellular2x2x2.cs b/src/Unity.Mathematics/Noise/cellular2x2x2.cs index b122a069..3b976003 100644 --- a/src/Unity.Mathematics/Noise/cellular2x2x2.cs +++ b/src/Unity.Mathematics/Noise/cellular2x2x2.cs @@ -4,6 +4,8 @@ // See LICENSE file for details. // https://github.com/stegu/webgl-noise +using static Unity.Mathematics.math; + namespace Unity.Mathematics { public static partial class noise @@ -22,20 +24,20 @@ public static float2 cellular2x2x2(float3 P) const float Kzo = 0.416666666667f; // 1/2-1/6*2 const float jitter = 0.8f; // smaller jitter gives less errors in F2 - float3 Pi = mod289(math.floor(P)); - float3 Pf = math.fract(P); - float4 Pfx = Pf.x + new float4(0.0f, -1.0f, 0.0f, -1.0f); - float4 Pfy = Pf.y + new float4(0.0f, 0.0f, -1.0f, -1.0f); - float4 p = permute(Pi.x + new float4(0.0f, 1.0f, 0.0f, 1.0f)); - p = permute(p + Pi.y + new float4(0.0f, 0.0f, 1.0f, 1.0f)); + float3 Pi = mod289(floor(P)); + float3 Pf = fract(P); + float4 Pfx = Pf.x + float4(0.0f, -1.0f, 0.0f, -1.0f); + float4 Pfy = Pf.y + float4(0.0f, 0.0f, -1.0f, -1.0f); + float4 p = permute(Pi.x + float4(0.0f, 1.0f, 0.0f, 1.0f)); + p = permute(p + Pi.y + float4(0.0f, 0.0f, 1.0f, 1.0f)); float4 p1 = permute(p + Pi.z); // z+0 - float4 p2 = permute(p + Pi.z + new float4(1.0f,1.0f,1.0f,1.0f)); // z+1 - float4 ox1 = math.fract(p1 * K) - Ko; - float4 oy1 = mod7(math.floor(p1 * K)) * K - Ko; - float4 oz1 = math.floor(p1 * K2) * Kz - Kzo; // p1 < 289 guaranteed - float4 ox2 = math.fract(p2 * K) - Ko; - float4 oy2 = mod7(math.floor(p2 * K)) * K - Ko; - float4 oz2 = math.floor(p2 * K2) * Kz - Kzo; + float4 p2 = permute(p + Pi.z + float4(1.0f,1.0f,1.0f,1.0f)); // z+1 + float4 ox1 = fract(p1 * K) - Ko; + float4 oy1 = mod7(floor(p1 * K)) * K - Ko; + float4 oz1 = floor(p1 * K2) * Kz - Kzo; // p1 < 289 guaranteed + float4 ox2 = fract(p2 * K) - Ko; + float4 oy2 = mod7(floor(p2 * K)) * K - Ko; + float4 oz2 = floor(p2 * K2) * Kz - Kzo; float4 dx1 = Pfx + jitter * ox1; float4 dy1 = Pfy + jitter * oy1; float4 dz1 = Pf.z + jitter * oz1; @@ -48,16 +50,16 @@ public static float2 cellular2x2x2(float3 P) // Sort out the two smallest distances (F1, F2) // Do it right and sort out both F1 and F2 - float4 d = math.min(d1,d2); // F1 is now in d - d2 = math.max(d1,d2); // Make sure we keep all candidates for F2 + float4 d = min(d1,d2); // F1 is now in d + d2 = max(d1,d2); // Make sure we keep all candidates for F2 d.xy = (d.x < d.y) ? d.xy : d.yx; // Swap smallest to d.x d.xz = (d.x < d.z) ? d.xz : d.zx; d.xw = (d.x < d.w) ? d.xw : d.wx; // F1 is now in d.x - d.yzw = math.min(d.yzw, d2.yzw); // F2 now not in d2.yzw - d.y = math.min(d.y, d.z); // nor in d.z - d.y = math.min(d.y, d.w); // nor in d.w - d.y = math.min(d.y, d2.x); // F2 is now in d.y - return math.sqrt(d.xy); // F1 and F2 + d.yzw = min(d.yzw, d2.yzw); // F2 now not in d2.yzw + d.y = min(d.y, d.z); // nor in d.z + d.y = min(d.y, d.w); // nor in d.w + d.y = min(d.y, d2.x); // F2 is now in d.y + return sqrt(d.xy); // F1 and F2 } } } diff --git a/src/Unity.Mathematics/Noise/cellular3D.cs b/src/Unity.Mathematics/Noise/cellular3D.cs index bc90f512..c3722794 100644 --- a/src/Unity.Mathematics/Noise/cellular3D.cs +++ b/src/Unity.Mathematics/Noise/cellular3D.cs @@ -4,6 +4,8 @@ // See LICENSE file for details. // https://github.com/stegu/webgl-noise +using static Unity.Mathematics.math; + namespace Unity.Mathematics { public static partial class noise @@ -25,14 +27,14 @@ public static float2 cellular(float3 P) const float Kzo = 0.416666666667f; // 1/2-1/6*2 const float jitter = 1.0f; // smaller jitter gives more regular pattern - float3 Pi = mod289(math.floor(P)); - float3 Pf = math.fract(P) - 0.5f; + float3 Pi = mod289(floor(P)); + float3 Pf = fract(P) - 0.5f; - float3 Pfx = Pf.x + new float3(1.0f, 0.0f, -1.0f); - float3 Pfy = Pf.y + new float3(1.0f, 0.0f, -1.0f); - float3 Pfz = Pf.z + new float3(1.0f, 0.0f, -1.0f); + float3 Pfx = Pf.x + float3(1.0f, 0.0f, -1.0f); + float3 Pfy = Pf.y + float3(1.0f, 0.0f, -1.0f); + float3 Pfz = Pf.z + float3(1.0f, 0.0f, -1.0f); - float3 p = permute(Pi.x + new float3(-1.0f, 0.0f, 1.0f)); + float3 p = permute(Pi.x + float3(-1.0f, 0.0f, 1.0f)); float3 p1 = permute(p + Pi.y - 1.0f); float3 p2 = permute(p + Pi.y); float3 p3 = permute(p + Pi.y + 1.0f); @@ -49,41 +51,41 @@ public static float2 cellular(float3 P) float3 p32 = permute(p3 + Pi.z); float3 p33 = permute(p3 + Pi.z + 1.0f); - float3 ox11 = math.fract(p11 * K) - Ko; - float3 oy11 = mod7(math.floor(p11 * K)) * K - Ko; - float3 oz11 = math.floor(p11 * K2) * Kz - Kzo; // p11 < 289 guaranteed + float3 ox11 = fract(p11 * K) - Ko; + float3 oy11 = mod7(floor(p11 * K)) * K - Ko; + float3 oz11 = floor(p11 * K2) * Kz - Kzo; // p11 < 289 guaranteed - float3 ox12 = math.fract(p12 * K) - Ko; - float3 oy12 = mod7(math.floor(p12 * K)) * K - Ko; - float3 oz12 = math.floor(p12 * K2) * Kz - Kzo; + float3 ox12 = fract(p12 * K) - Ko; + float3 oy12 = mod7(floor(p12 * K)) * K - Ko; + float3 oz12 = floor(p12 * K2) * Kz - Kzo; - float3 ox13 = math.fract(p13 * K) - Ko; - float3 oy13 = mod7(math.floor(p13 * K)) * K - Ko; - float3 oz13 = math.floor(p13 * K2) * Kz - Kzo; + float3 ox13 = fract(p13 * K) - Ko; + float3 oy13 = mod7(floor(p13 * K)) * K - Ko; + float3 oz13 = floor(p13 * K2) * Kz - Kzo; - float3 ox21 = math.fract(p21 * K) - Ko; - float3 oy21 = mod7(math.floor(p21 * K)) * K - Ko; - float3 oz21 = math.floor(p21 * K2) * Kz - Kzo; + float3 ox21 = fract(p21 * K) - Ko; + float3 oy21 = mod7(floor(p21 * K)) * K - Ko; + float3 oz21 = floor(p21 * K2) * Kz - Kzo; - float3 ox22 = math.fract(p22 * K) - Ko; - float3 oy22 = mod7(math.floor(p22 * K)) * K - Ko; - float3 oz22 = math.floor(p22 * K2) * Kz - Kzo; + float3 ox22 = fract(p22 * K) - Ko; + float3 oy22 = mod7(floor(p22 * K)) * K - Ko; + float3 oz22 = floor(p22 * K2) * Kz - Kzo; - float3 ox23 = math.fract(p23 * K) - Ko; - float3 oy23 = mod7(math.floor(p23 * K)) * K - Ko; - float3 oz23 = math.floor(p23 * K2) * Kz - Kzo; + float3 ox23 = fract(p23 * K) - Ko; + float3 oy23 = mod7(floor(p23 * K)) * K - Ko; + float3 oz23 = floor(p23 * K2) * Kz - Kzo; - float3 ox31 = math.fract(p31 * K) - Ko; - float3 oy31 = mod7(math.floor(p31 * K)) * K - Ko; - float3 oz31 = math.floor(p31 * K2) * Kz - Kzo; + float3 ox31 = fract(p31 * K) - Ko; + float3 oy31 = mod7(floor(p31 * K)) * K - Ko; + float3 oz31 = floor(p31 * K2) * Kz - Kzo; - float3 ox32 = math.fract(p32 * K) - Ko; - float3 oy32 = mod7(math.floor(p32 * K)) * K - Ko; - float3 oz32 = math.floor(p32 * K2) * Kz - Kzo; + float3 ox32 = fract(p32 * K) - Ko; + float3 oy32 = mod7(floor(p32 * K)) * K - Ko; + float3 oz32 = floor(p32 * K2) * Kz - Kzo; - float3 ox33 = math.fract(p33 * K) - Ko; - float3 oy33 = mod7(math.floor(p33 * K)) * K - Ko; - float3 oz33 = math.floor(p33 * K2) * Kz - Kzo; + float3 ox33 = fract(p33 * K) - Ko; + float3 oy33 = mod7(floor(p33 * K)) * K - Ko; + float3 oz33 = floor(p33 * K2) * Kz - Kzo; float3 dx11 = Pfx + jitter * ox11; float3 dy11 = Pfy.x + jitter * oy11; @@ -133,35 +135,35 @@ public static float2 cellular(float3 P) // Sort out the two smallest distances (F1, F2) // Do it right and sort out both F1 and F2 - float3 d1a = math.min(d11, d12); - d12 = math.max(d11, d12); - d11 = math.min(d1a, d13); // Smallest now not in d12 or d13 - d13 = math.max(d1a, d13); - d12 = math.min(d12, d13); // 2nd smallest now not in d13 - float3 d2a = math.min(d21, d22); - d22 = math.max(d21, d22); - d21 = math.min(d2a, d23); // Smallest now not in d22 or d23 - d23 = math.max(d2a, d23); - d22 = math.min(d22, d23); // 2nd smallest now not in d23 - float3 d3a = math.min(d31, d32); - d32 = math.max(d31, d32); - d31 = math.min(d3a, d33); // Smallest now not in d32 or d33 - d33 = math.max(d3a, d33); - d32 = math.min(d32, d33); // 2nd smallest now not in d33 - float3 da = math.min(d11, d21); - d21 = math.max(d11, d21); - d11 = math.min(da, d31); // Smallest now in d11 - d31 = math.max(da, d31); // 2nd smallest now not in d31 + float3 d1a = min(d11, d12); + d12 = max(d11, d12); + d11 = min(d1a, d13); // Smallest now not in d12 or d13 + d13 = max(d1a, d13); + d12 = min(d12, d13); // 2nd smallest now not in d13 + float3 d2a = min(d21, d22); + d22 = max(d21, d22); + d21 = min(d2a, d23); // Smallest now not in d22 or d23 + d23 = max(d2a, d23); + d22 = min(d22, d23); // 2nd smallest now not in d23 + float3 d3a = min(d31, d32); + d32 = max(d31, d32); + d31 = min(d3a, d33); // Smallest now not in d32 or d33 + d33 = max(d3a, d33); + d32 = min(d32, d33); // 2nd smallest now not in d33 + float3 da = min(d11, d21); + d21 = max(d11, d21); + d11 = min(da, d31); // Smallest now in d11 + d31 = max(da, d31); // 2nd smallest now not in d31 d11.xy = (d11.x < d11.y) ? d11.xy : d11.yx; d11.xz = (d11.x < d11.z) ? d11.xz : d11.zx; // d11.x now smallest - d12 = math.min(d12, d21); // 2nd smallest now not in d21 - d12 = math.min(d12, d22); // nor in d22 - d12 = math.min(d12, d31); // nor in d31 - d12 = math.min(d12, d32); // nor in d32 - d11.yz = math.min(d11.yz, d12.xy); // nor in d12.yz - d11.y = math.min(d11.y, d12.z); // Only two more to go - d11.y = math.min(d11.y, d11.z); // Done! (Phew!) - return math.sqrt(d11.xy); // F1, F2 + d12 = min(d12, d21); // 2nd smallest now not in d21 + d12 = min(d12, d22); // nor in d22 + d12 = min(d12, d31); // nor in d31 + d12 = min(d12, d32); // nor in d32 + d11.yz = min(d11.yz, d12.xy); // nor in d12.yz + d11.y = min(d11.y, d12.z); // Only two more to go + d11.y = min(d11.y, d11.z); // Done! (Phew!) + return sqrt(d11.xy); // F1, F2 } } } diff --git a/src/Unity.Mathematics/Noise/classicnoise2D.cs b/src/Unity.Mathematics/Noise/classicnoise2D.cs index fbb7a0c6..7bae861a 100644 --- a/src/Unity.Mathematics/Noise/classicnoise2D.cs +++ b/src/Unity.Mathematics/Noise/classicnoise2D.cs @@ -12,6 +12,8 @@ // https://github.com/stegu/webgl-noise // +using static Unity.Mathematics.math; + namespace Unity.Mathematics { public static partial class noise @@ -19,8 +21,8 @@ public static partial class noise // Classic Perlin noise public static float cnoise(float2 P) { - float4 Pi = math.floor(P.xyxy) + new float4(0.0f, 0.0f, 1.0f, 1.0f); - float4 Pf = math.fract(P.xyxy) - new float4(0.0f, 0.0f, 1.0f, 1.0f); + float4 Pi = floor(P.xyxy) + float4(0.0f, 0.0f, 1.0f, 1.0f); + float4 Pf = fract(P.xyxy) - float4(0.0f, 0.0f, 1.0f, 1.0f); Pi = mod289(Pi); // To avoid truncation effects in permutation float4 ix = Pi.xzxz; float4 iy = Pi.yyww; @@ -29,39 +31,39 @@ public static float cnoise(float2 P) float4 i = permute(permute(ix) + iy); - float4 gx = math.fract(i * (1.0f / 41.0f)) * 2.0f - 1.0f; - float4 gy = math.abs(gx) - 0.5f; - float4 tx = math.floor(gx + 0.5f); + float4 gx = fract(i * (1.0f / 41.0f)) * 2.0f - 1.0f; + float4 gy = abs(gx) - 0.5f; + float4 tx = floor(gx + 0.5f); gx = gx - tx; - float2 g00 = new float2(gx.x, gy.x); - float2 g10 = new float2(gx.y, gy.y); - float2 g01 = new float2(gx.z, gy.z); - float2 g11 = new float2(gx.w, gy.w); + float2 g00 = float2(gx.x, gy.x); + float2 g10 = float2(gx.y, gy.y); + float2 g01 = float2(gx.z, gy.z); + float2 g11 = float2(gx.w, gy.w); - float4 norm = taylorInvSqrt(new float4(math.dot(g00, g00), math.dot(g01, g01), math.dot(g10, g10), math.dot(g11, g11))); + float4 norm = taylorInvSqrt(float4(dot(g00, g00), dot(g01, g01), dot(g10, g10), dot(g11, g11))); g00 *= norm.x; g01 *= norm.y; g10 *= norm.z; g11 *= norm.w; - float n00 = math.dot(g00, new float2(fx.x, fy.x)); - float n10 = math.dot(g10, new float2(fx.y, fy.y)); - float n01 = math.dot(g01, new float2(fx.z, fy.z)); - float n11 = math.dot(g11, new float2(fx.w, fy.w)); + float n00 = dot(g00, float2(fx.x, fy.x)); + float n10 = dot(g10, float2(fx.y, fy.y)); + float n01 = dot(g01, float2(fx.z, fy.z)); + float n11 = dot(g11, float2(fx.w, fy.w)); float2 fade_xy = fade(Pf.xy); - float2 n_x = math.mix(new float2(n00, n01), new float2(n10, n11), fade_xy.x); - float n_xy = math.mix(n_x.x, n_x.y, fade_xy.y); + float2 n_x = mix(float2(n00, n01), float2(n10, n11), fade_xy.x); + float n_xy = mix(n_x.x, n_x.y, fade_xy.y); return 2.3f * n_xy; } // Classic Perlin noise, periodic variant public static float pnoise(float2 P, float2 rep) { - float4 Pi = math.floor(P.xyxy) + new float4(0.0f, 0.0f, 1.0f, 1.0f); - float4 Pf = math.fract(P.xyxy) - new float4(0.0f, 0.0f, 1.0f, 1.0f); - Pi = math.mod(Pi, rep.xyxy); // To create noise with explicit period + float4 Pi = floor(P.xyxy) + float4(0.0f, 0.0f, 1.0f, 1.0f); + float4 Pf = fract(P.xyxy) - float4(0.0f, 0.0f, 1.0f, 1.0f); + Pi = mod(Pi, rep.xyxy); // To create noise with explicit period Pi = mod289(Pi); // To avoid truncation effects in permutation float4 ix = Pi.xzxz; float4 iy = Pi.yyww; @@ -70,30 +72,30 @@ public static float pnoise(float2 P, float2 rep) float4 i = permute(permute(ix) + iy); - float4 gx = math.fract(i * (1.0f / 41.0f)) * 2.0f - 1.0f; - float4 gy = math.abs(gx) - 0.5f; - float4 tx = math.floor(gx + 0.5f); + float4 gx = fract(i * (1.0f / 41.0f)) * 2.0f - 1.0f; + float4 gy = abs(gx) - 0.5f; + float4 tx = floor(gx + 0.5f); gx = gx - tx; - float2 g00 = new float2(gx.x, gy.x); - float2 g10 = new float2(gx.y, gy.y); - float2 g01 = new float2(gx.z, gy.z); - float2 g11 = new float2(gx.w, gy.w); + float2 g00 = float2(gx.x, gy.x); + float2 g10 = float2(gx.y, gy.y); + float2 g01 = float2(gx.z, gy.z); + float2 g11 = float2(gx.w, gy.w); - float4 norm = taylorInvSqrt(new float4(math.dot(g00, g00), math.dot(g01, g01), math.dot(g10, g10), math.dot(g11, g11))); + float4 norm = taylorInvSqrt(float4(dot(g00, g00), dot(g01, g01), dot(g10, g10), dot(g11, g11))); g00 *= norm.x; g01 *= norm.y; g10 *= norm.z; g11 *= norm.w; - float n00 = math.dot(g00, new float2(fx.x, fy.x)); - float n10 = math.dot(g10, new float2(fx.y, fy.y)); - float n01 = math.dot(g01, new float2(fx.z, fy.z)); - float n11 = math.dot(g11, new float2(fx.w, fy.w)); + float n00 = dot(g00, float2(fx.x, fy.x)); + float n10 = dot(g10, float2(fx.y, fy.y)); + float n01 = dot(g01, float2(fx.z, fy.z)); + float n11 = dot(g11, float2(fx.w, fy.w)); float2 fade_xy = fade(Pf.xy); - float2 n_x = math.mix(new float2(n00, n01), new float2(n10, n11), fade_xy.x); - float n_xy = math.mix(n_x.x, n_x.y, fade_xy.y); + float2 n_x = mix(float2(n00, n01), float2(n10, n11), fade_xy.x); + float n_xy = mix(n_x.x, n_x.y, fade_xy.y); return 2.3f * n_xy; } } diff --git a/src/Unity.Mathematics/Noise/classicnoise3D.cs b/src/Unity.Mathematics/Noise/classicnoise3D.cs index 7a72d8f1..b7c6b875 100644 --- a/src/Unity.Mathematics/Noise/classicnoise3D.cs +++ b/src/Unity.Mathematics/Noise/classicnoise3D.cs @@ -12,6 +12,8 @@ // https://github.com/stegu/webgl-noise // +using static Unity.Mathematics.math; + namespace Unity.Mathematics { public static partial class noise @@ -19,14 +21,14 @@ public static partial class noise // Classic Perlin noise public static float cnoise(float3 P) { - float3 Pi0 = math.floor(P); // Integer part for indexing - float3 Pi1 = Pi0 + new float3(1.0f); // Integer part + 1 + float3 Pi0 = floor(P); // Integer part for indexing + float3 Pi1 = Pi0 + float3(1.0f); // Integer part + 1 Pi0 = mod289(Pi0); Pi1 = mod289(Pi1); - float3 Pf0 = math.fract(P); // Fractional part for interpolation - float3 Pf1 = Pf0 - new float3(1.0f); // Fractional part - 1.0 - float4 ix = new float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); - float4 iy = new float4(Pi0.yy, Pi1.yy); + float3 Pf0 = fract(P); // Fractional part for interpolation + float3 Pf1 = Pf0 - float3(1.0f); // Fractional part - 1.0 + float4 ix = float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); + float4 iy = float4(Pi0.yy, Pi1.yy); float4 iz0 = Pi0.zzzz; float4 iz1 = Pi1.zzzz; @@ -35,68 +37,68 @@ public static float cnoise(float3 P) float4 ixy1 = permute(ixy + iz1); float4 gx0 = ixy0 * (1.0f / 7.0f); - float4 gy0 = math.fract(math.floor(gx0) * (1.0f / 7.0f)) - 0.5f; - gx0 = math.fract(gx0); - float4 gz0 = new float4(0.5f) - math.abs(gx0) - math.abs(gy0); - float4 sz0 = math.step(gz0, new float4(0.0f)); - gx0 -= sz0 * (math.step(0.0f, gx0) - 0.5f); - gy0 -= sz0 * (math.step(0.0f, gy0) - 0.5f); + float4 gy0 = fract(floor(gx0) * (1.0f / 7.0f)) - 0.5f; + gx0 = fract(gx0); + float4 gz0 = float4(0.5f) - abs(gx0) - abs(gy0); + float4 sz0 = step(gz0, float4(0.0f)); + gx0 -= sz0 * (step(0.0f, gx0) - 0.5f); + gy0 -= sz0 * (step(0.0f, gy0) - 0.5f); float4 gx1 = ixy1 * (1.0f / 7.0f); - float4 gy1 = math.fract(math.floor(gx1) * (1.0f / 7.0f)) - 0.5f; - gx1 = math.fract(gx1); - float4 gz1 = new float4(0.5f) - math.abs(gx1) - math.abs(gy1); - float4 sz1 = math.step(gz1, new float4(0.0f)); - gx1 -= sz1 * (math.step(0.0f, gx1) - 0.5f); - gy1 -= sz1 * (math.step(0.0f, gy1) - 0.5f); - - float3 g000 = new float3(gx0.x, gy0.x, gz0.x); - float3 g100 = new float3(gx0.y, gy0.y, gz0.y); - float3 g010 = new float3(gx0.z, gy0.z, gz0.z); - float3 g110 = new float3(gx0.w, gy0.w, gz0.w); - float3 g001 = new float3(gx1.x, gy1.x, gz1.x); - float3 g101 = new float3(gx1.y, gy1.y, gz1.y); - float3 g011 = new float3(gx1.z, gy1.z, gz1.z); - float3 g111 = new float3(gx1.w, gy1.w, gz1.w); - - float4 norm0 = taylorInvSqrt(new float4(math.dot(g000, g000), math.dot(g010, g010), math.dot(g100, g100), math.dot(g110, g110))); + float4 gy1 = fract(floor(gx1) * (1.0f / 7.0f)) - 0.5f; + gx1 = fract(gx1); + float4 gz1 = float4(0.5f) - abs(gx1) - abs(gy1); + float4 sz1 = step(gz1, float4(0.0f)); + gx1 -= sz1 * (step(0.0f, gx1) - 0.5f); + gy1 -= sz1 * (step(0.0f, gy1) - 0.5f); + + float3 g000 = float3(gx0.x, gy0.x, gz0.x); + float3 g100 = float3(gx0.y, gy0.y, gz0.y); + float3 g010 = float3(gx0.z, gy0.z, gz0.z); + float3 g110 = float3(gx0.w, gy0.w, gz0.w); + float3 g001 = float3(gx1.x, gy1.x, gz1.x); + float3 g101 = float3(gx1.y, gy1.y, gz1.y); + float3 g011 = float3(gx1.z, gy1.z, gz1.z); + float3 g111 = float3(gx1.w, gy1.w, gz1.w); + + float4 norm0 = taylorInvSqrt(float4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110))); g000 *= norm0.x; g010 *= norm0.y; g100 *= norm0.z; g110 *= norm0.w; - float4 norm1 = taylorInvSqrt(new float4(math.dot(g001, g001), math.dot(g011, g011), math.dot(g101, g101), math.dot(g111, g111))); + float4 norm1 = taylorInvSqrt(float4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111))); g001 *= norm1.x; g011 *= norm1.y; g101 *= norm1.z; g111 *= norm1.w; - float n000 = math.dot(g000, Pf0); - float n100 = math.dot(g100, new float3(Pf1.x, Pf0.yz)); - float n010 = math.dot(g010, new float3(Pf0.x, Pf1.y, Pf0.z)); - float n110 = math.dot(g110, new float3(Pf1.xy, Pf0.z)); - float n001 = math.dot(g001, new float3(Pf0.xy, Pf1.z)); - float n101 = math.dot(g101, new float3(Pf1.x, Pf0.y, Pf1.z)); - float n011 = math.dot(g011, new float3(Pf0.x, Pf1.yz)); - float n111 = math.dot(g111, Pf1); + float n000 = dot(g000, Pf0); + float n100 = dot(g100, float3(Pf1.x, Pf0.yz)); + float n010 = dot(g010, float3(Pf0.x, Pf1.y, Pf0.z)); + float n110 = dot(g110, float3(Pf1.xy, Pf0.z)); + float n001 = dot(g001, float3(Pf0.xy, Pf1.z)); + float n101 = dot(g101, float3(Pf1.x, Pf0.y, Pf1.z)); + float n011 = dot(g011, float3(Pf0.x, Pf1.yz)); + float n111 = dot(g111, Pf1); float3 fade_xyz = fade(Pf0); - float4 n_z = math.mix(new float4(n000, n100, n010, n110), new float4(n001, n101, n011, n111), fade_xyz.z); - float2 n_yz = math.mix(n_z.xy, n_z.zw, fade_xyz.y); - float n_xyz = math.mix(n_yz.x, n_yz.y, fade_xyz.x); + float4 n_z = mix(float4(n000, n100, n010, n110), float4(n001, n101, n011, n111), fade_xyz.z); + float2 n_yz = mix(n_z.xy, n_z.zw, fade_xyz.y); + float n_xyz = mix(n_yz.x, n_yz.y, fade_xyz.x); return 2.2f * n_xyz; } // Classic Perlin noise, periodic variant public static float pnoise(float3 P, float3 rep) { - float3 Pi0 = math.mod(math.floor(P), rep); // Integer part, math.modulo period - float3 Pi1 = math.mod(Pi0 + new float3(1.0f), rep); // Integer part + 1, math.mod period + float3 Pi0 = mod(floor(P), rep); // Integer part, math.modulo period + float3 Pi1 = mod(Pi0 + float3(1.0f), rep); // Integer part + 1, math.mod period Pi0 = mod289(Pi0); Pi1 = mod289(Pi1); - float3 Pf0 = math.fract(P); // Fractional part for interpolation - float3 Pf1 = Pf0 - new float3(1.0f); // Fractional part - 1.0 - float4 ix = new float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); - float4 iy = new float4(Pi0.yy, Pi1.yy); + float3 Pf0 = fract(P); // Fractional part for interpolation + float3 Pf1 = Pf0 - float3(1.0f); // Fractional part - 1.0 + float4 ix = float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); + float4 iy = float4(Pi0.yy, Pi1.yy); float4 iz0 = Pi0.zzzz; float4 iz1 = Pi1.zzzz; @@ -105,54 +107,54 @@ public static float pnoise(float3 P, float3 rep) float4 ixy1 = permute(ixy + iz1); float4 gx0 = ixy0 * (1.0f / 7.0f); - float4 gy0 = math.fract(math.floor(gx0) * (1.0f / 7.0f)) - 0.5f; - gx0 = math.fract(gx0); - float4 gz0 = new float4(0.5f) - math.abs(gx0) - math.abs(gy0); - float4 sz0 = math.step(gz0, new float4(0.0f)); - gx0 -= sz0 * (math.step(0.0f, gx0) - 0.5f); - gy0 -= sz0 * (math.step(0.0f, gy0) - 0.5f); + float4 gy0 = fract(floor(gx0) * (1.0f / 7.0f)) - 0.5f; + gx0 = fract(gx0); + float4 gz0 = float4(0.5f) - abs(gx0) - abs(gy0); + float4 sz0 = step(gz0, float4(0.0f)); + gx0 -= sz0 * (step(0.0f, gx0) - 0.5f); + gy0 -= sz0 * (step(0.0f, gy0) - 0.5f); float4 gx1 = ixy1 * (1.0f / 7.0f); - float4 gy1 = math.fract(math.floor(gx1) * (1.0f / 7.0f)) - 0.5f; - gx1 = math.fract(gx1); - float4 gz1 = new float4(0.5f) - math.abs(gx1) - math.abs(gy1); - float4 sz1 = math.step(gz1, new float4(0.0f)); - gx1 -= sz1 * (math.step(0.0f, gx1) - 0.5f); - gy1 -= sz1 * (math.step(0.0f, gy1) - 0.5f); - - float3 g000 = new float3(gx0.x, gy0.x, gz0.x); - float3 g100 = new float3(gx0.y, gy0.y, gz0.y); - float3 g010 = new float3(gx0.z, gy0.z, gz0.z); - float3 g110 = new float3(gx0.w, gy0.w, gz0.w); - float3 g001 = new float3(gx1.x, gy1.x, gz1.x); - float3 g101 = new float3(gx1.y, gy1.y, gz1.y); - float3 g011 = new float3(gx1.z, gy1.z, gz1.z); - float3 g111 = new float3(gx1.w, gy1.w, gz1.w); - - float4 norm0 = taylorInvSqrt(new float4(math.dot(g000, g000), math.dot(g010, g010), math.dot(g100, g100), math.dot(g110, g110))); + float4 gy1 = fract(floor(gx1) * (1.0f / 7.0f)) - 0.5f; + gx1 = fract(gx1); + float4 gz1 = float4(0.5f) - abs(gx1) - abs(gy1); + float4 sz1 = step(gz1, float4(0.0f)); + gx1 -= sz1 * (step(0.0f, gx1) - 0.5f); + gy1 -= sz1 * (step(0.0f, gy1) - 0.5f); + + float3 g000 = float3(gx0.x, gy0.x, gz0.x); + float3 g100 = float3(gx0.y, gy0.y, gz0.y); + float3 g010 = float3(gx0.z, gy0.z, gz0.z); + float3 g110 = float3(gx0.w, gy0.w, gz0.w); + float3 g001 = float3(gx1.x, gy1.x, gz1.x); + float3 g101 = float3(gx1.y, gy1.y, gz1.y); + float3 g011 = float3(gx1.z, gy1.z, gz1.z); + float3 g111 = float3(gx1.w, gy1.w, gz1.w); + + float4 norm0 = taylorInvSqrt(float4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110))); g000 *= norm0.x; g010 *= norm0.y; g100 *= norm0.z; g110 *= norm0.w; - float4 norm1 = taylorInvSqrt(new float4(math.dot(g001, g001), math.dot(g011, g011), math.dot(g101, g101), math.dot(g111, g111))); + float4 norm1 = taylorInvSqrt(float4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111))); g001 *= norm1.x; g011 *= norm1.y; g101 *= norm1.z; g111 *= norm1.w; - float n000 = math.dot(g000, Pf0); - float n100 = math.dot(g100, new float3(Pf1.x, Pf0.yz)); - float n010 = math.dot(g010, new float3(Pf0.x, Pf1.y, Pf0.z)); - float n110 = math.dot(g110, new float3(Pf1.xy, Pf0.z)); - float n001 = math.dot(g001, new float3(Pf0.xy, Pf1.z)); - float n101 = math.dot(g101, new float3(Pf1.x, Pf0.y, Pf1.z)); - float n011 = math.dot(g011, new float3(Pf0.x, Pf1.yz)); - float n111 = math.dot(g111, Pf1); + float n000 = dot(g000, Pf0); + float n100 = dot(g100, float3(Pf1.x, Pf0.yz)); + float n010 = dot(g010, float3(Pf0.x, Pf1.y, Pf0.z)); + float n110 = dot(g110, float3(Pf1.xy, Pf0.z)); + float n001 = dot(g001, float3(Pf0.xy, Pf1.z)); + float n101 = dot(g101, float3(Pf1.x, Pf0.y, Pf1.z)); + float n011 = dot(g011, float3(Pf0.x, Pf1.yz)); + float n111 = dot(g111, Pf1); float3 fade_xyz = fade(Pf0); - float4 n_z = math.mix(new float4(n000, n100, n010, n110), new float4(n001, n101, n011, n111), fade_xyz.z); - float2 n_yz = math.mix(n_z.xy, n_z.zw, fade_xyz.y); - float n_xyz = math.mix(n_yz.x, n_yz.y, fade_xyz.x); + float4 n_z = mix(float4(n000, n100, n010, n110), float4(n001, n101, n011, n111), fade_xyz.z); + float2 n_yz = mix(n_z.xy, n_z.zw, fade_xyz.y); + float n_xyz = mix(n_yz.x, n_yz.y, fade_xyz.x); return 2.2f * n_xyz; } } diff --git a/src/Unity.Mathematics/Noise/classicnoise4D.cs b/src/Unity.Mathematics/Noise/classicnoise4D.cs index c342426e..7816610a 100644 --- a/src/Unity.Mathematics/Noise/classicnoise4D.cs +++ b/src/Unity.Mathematics/Noise/classicnoise4D.cs @@ -12,6 +12,8 @@ // https://github.com/stegu/webgl-noise // +using static Unity.Mathematics.math; + namespace Unity.Mathematics { public static partial class noise @@ -19,18 +21,18 @@ public static partial class noise // Classic Perlin noise public static float cnoise(float4 P) { - float4 Pi0 = math.floor(P); // Integer part for indexing + float4 Pi0 = floor(P); // Integer part for indexing float4 Pi1 = Pi0 + 1.0f; // Integer part + 1 Pi0 = mod289(Pi0); Pi1 = mod289(Pi1); - float4 Pf0 = math.fract(P); // Fractional part for interpolation + float4 Pf0 = fract(P); // Fractional part for interpolation float4 Pf1 = Pf0 - 1.0f; // Fractional part - 1.0 - float4 ix = new float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); - float4 iy = new float4(Pi0.yy, Pi1.yy); - float4 iz0 = new float4(Pi0.zzzz); - float4 iz1 = new float4(Pi1.zzzz); - float4 iw0 = new float4(Pi0.wwww); - float4 iw1 = new float4(Pi1.wwww); + float4 ix = float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); + float4 iy = float4(Pi0.yy, Pi1.yy); + float4 iz0 = float4(Pi0.zzzz); + float4 iz1 = float4(Pi1.zzzz); + float4 iw0 = float4(Pi0.wwww); + float4 iw1 = float4(Pi1.wwww); float4 ixy = permute(permute(ix) + iy); float4 ixy0 = permute(ixy + iz0); @@ -41,131 +43,131 @@ public static float cnoise(float4 P) float4 ixy11 = permute(ixy1 + iw1); float4 gx00 = ixy00 * (1.0f / 7.0f); - float4 gy00 = math.floor(gx00) * (1.0f / 7.0f); - float4 gz00 = math.floor(gy00) * (1.0f / 6.0f); - gx00 = math.fract(gx00) - 0.5f; - gy00 = math.fract(gy00) - 0.5f; - gz00 = math.fract(gz00) - 0.5f; - float4 gw00 = new float4(0.75f) - math.abs(gx00) - math.abs(gy00) - math.abs(gz00); - float4 sw00 = math.step(gw00, new float4(0.0f)); - gx00 -= sw00 * (math.step(0.0f, gx00) - 0.5f); - gy00 -= sw00 * (math.step(0.0f, gy00) - 0.5f); + float4 gy00 = floor(gx00) * (1.0f / 7.0f); + float4 gz00 = floor(gy00) * (1.0f / 6.0f); + gx00 = fract(gx00) - 0.5f; + gy00 = fract(gy00) - 0.5f; + gz00 = fract(gz00) - 0.5f; + float4 gw00 = float4(0.75f) - abs(gx00) - abs(gy00) - abs(gz00); + float4 sw00 = step(gw00, float4(0.0f)); + gx00 -= sw00 * (step(0.0f, gx00) - 0.5f); + gy00 -= sw00 * (step(0.0f, gy00) - 0.5f); float4 gx01 = ixy01 * (1.0f / 7.0f); - float4 gy01 = math.floor(gx01) * (1.0f / 7.0f); - float4 gz01 = math.floor(gy01) * (1.0f / 6.0f); - gx01 = math.fract(gx01) - 0.5f; - gy01 = math.fract(gy01) - 0.5f; - gz01 = math.fract(gz01) - 0.5f; - float4 gw01 = new float4(0.75f) - math.abs(gx01) - math.abs(gy01) - math.abs(gz01); - float4 sw01 = math.step(gw01, new float4(0.0f)); - gx01 -= sw01 * (math.step(0.0f, gx01) - 0.5f); - gy01 -= sw01 * (math.step(0.0f, gy01) - 0.5f); + float4 gy01 = floor(gx01) * (1.0f / 7.0f); + float4 gz01 = floor(gy01) * (1.0f / 6.0f); + gx01 = fract(gx01) - 0.5f; + gy01 = fract(gy01) - 0.5f; + gz01 = fract(gz01) - 0.5f; + float4 gw01 = float4(0.75f) - abs(gx01) - abs(gy01) - abs(gz01); + float4 sw01 = step(gw01, float4(0.0f)); + gx01 -= sw01 * (step(0.0f, gx01) - 0.5f); + gy01 -= sw01 * (step(0.0f, gy01) - 0.5f); float4 gx10 = ixy10 * (1.0f / 7.0f); - float4 gy10 = math.floor(gx10) * (1.0f / 7.0f); - float4 gz10 = math.floor(gy10) * (1.0f / 6.0f); - gx10 = math.fract(gx10) - 0.5f; - gy10 = math.fract(gy10) - 0.5f; - gz10 = math.fract(gz10) - 0.5f; - float4 gw10 = new float4(0.75f) - math.abs(gx10) - math.abs(gy10) - math.abs(gz10); - float4 sw10 = math.step(gw10, new float4(0.0f)); - gx10 -= sw10 * (math.step(0.0f, gx10) - 0.5f); - gy10 -= sw10 * (math.step(0.0f, gy10) - 0.5f); + float4 gy10 = floor(gx10) * (1.0f / 7.0f); + float4 gz10 = floor(gy10) * (1.0f / 6.0f); + gx10 = fract(gx10) - 0.5f; + gy10 = fract(gy10) - 0.5f; + gz10 = fract(gz10) - 0.5f; + float4 gw10 = float4(0.75f) - abs(gx10) - abs(gy10) - abs(gz10); + float4 sw10 = step(gw10, float4(0.0f)); + gx10 -= sw10 * (step(0.0f, gx10) - 0.5f); + gy10 -= sw10 * (step(0.0f, gy10) - 0.5f); float4 gx11 = ixy11 * (1.0f / 7.0f); - float4 gy11 = math.floor(gx11) * (1.0f / 7.0f); - float4 gz11 = math.floor(gy11) * (1.0f / 6.0f); - gx11 = math.fract(gx11) - 0.5f; - gy11 = math.fract(gy11) - 0.5f; - gz11 = math.fract(gz11) - 0.5f; - float4 gw11 = new float4(0.75f) - math.abs(gx11) - math.abs(gy11) - math.abs(gz11); - float4 sw11 = math.step(gw11, new float4(0.0f)); - gx11 -= sw11 * (math.step(0.0f, gx11) - 0.5f); - gy11 -= sw11 * (math.step(0.0f, gy11) - 0.5f); + float4 gy11 = floor(gx11) * (1.0f / 7.0f); + float4 gz11 = floor(gy11) * (1.0f / 6.0f); + gx11 = fract(gx11) - 0.5f; + gy11 = fract(gy11) - 0.5f; + gz11 = fract(gz11) - 0.5f; + float4 gw11 = float4(0.75f) - abs(gx11) - abs(gy11) - abs(gz11); + float4 sw11 = step(gw11, float4(0.0f)); + gx11 -= sw11 * (step(0.0f, gx11) - 0.5f); + gy11 -= sw11 * (step(0.0f, gy11) - 0.5f); - float4 g0000 = new float4(gx00.x, gy00.x, gz00.x, gw00.x); - float4 g1000 = new float4(gx00.y, gy00.y, gz00.y, gw00.y); - float4 g0100 = new float4(gx00.z, gy00.z, gz00.z, gw00.z); - float4 g1100 = new float4(gx00.w, gy00.w, gz00.w, gw00.w); - float4 g0010 = new float4(gx10.x, gy10.x, gz10.x, gw10.x); - float4 g1010 = new float4(gx10.y, gy10.y, gz10.y, gw10.y); - float4 g0110 = new float4(gx10.z, gy10.z, gz10.z, gw10.z); - float4 g1110 = new float4(gx10.w, gy10.w, gz10.w, gw10.w); - float4 g0001 = new float4(gx01.x, gy01.x, gz01.x, gw01.x); - float4 g1001 = new float4(gx01.y, gy01.y, gz01.y, gw01.y); - float4 g0101 = new float4(gx01.z, gy01.z, gz01.z, gw01.z); - float4 g1101 = new float4(gx01.w, gy01.w, gz01.w, gw01.w); - float4 g0011 = new float4(gx11.x, gy11.x, gz11.x, gw11.x); - float4 g1011 = new float4(gx11.y, gy11.y, gz11.y, gw11.y); - float4 g0111 = new float4(gx11.z, gy11.z, gz11.z, gw11.z); - float4 g1111 = new float4(gx11.w, gy11.w, gz11.w, gw11.w); + float4 g0000 = float4(gx00.x, gy00.x, gz00.x, gw00.x); + float4 g1000 = float4(gx00.y, gy00.y, gz00.y, gw00.y); + float4 g0100 = float4(gx00.z, gy00.z, gz00.z, gw00.z); + float4 g1100 = float4(gx00.w, gy00.w, gz00.w, gw00.w); + float4 g0010 = float4(gx10.x, gy10.x, gz10.x, gw10.x); + float4 g1010 = float4(gx10.y, gy10.y, gz10.y, gw10.y); + float4 g0110 = float4(gx10.z, gy10.z, gz10.z, gw10.z); + float4 g1110 = float4(gx10.w, gy10.w, gz10.w, gw10.w); + float4 g0001 = float4(gx01.x, gy01.x, gz01.x, gw01.x); + float4 g1001 = float4(gx01.y, gy01.y, gz01.y, gw01.y); + float4 g0101 = float4(gx01.z, gy01.z, gz01.z, gw01.z); + float4 g1101 = float4(gx01.w, gy01.w, gz01.w, gw01.w); + float4 g0011 = float4(gx11.x, gy11.x, gz11.x, gw11.x); + float4 g1011 = float4(gx11.y, gy11.y, gz11.y, gw11.y); + float4 g0111 = float4(gx11.z, gy11.z, gz11.z, gw11.z); + float4 g1111 = float4(gx11.w, gy11.w, gz11.w, gw11.w); - float4 norm00 = taylorInvSqrt(new float4(math.dot(g0000, g0000), math.dot(g0100, g0100), math.dot(g1000, g1000), math.dot(g1100, g1100))); + float4 norm00 = taylorInvSqrt(float4(dot(g0000, g0000), dot(g0100, g0100), dot(g1000, g1000), dot(g1100, g1100))); g0000 *= norm00.x; g0100 *= norm00.y; g1000 *= norm00.z; g1100 *= norm00.w; - float4 norm01 = taylorInvSqrt(new float4(math.dot(g0001, g0001), math.dot(g0101, g0101), math.dot(g1001, g1001), math.dot(g1101, g1101))); + float4 norm01 = taylorInvSqrt(float4(dot(g0001, g0001), dot(g0101, g0101), dot(g1001, g1001), dot(g1101, g1101))); g0001 *= norm01.x; g0101 *= norm01.y; g1001 *= norm01.z; g1101 *= norm01.w; - float4 norm10 = taylorInvSqrt(new float4(math.dot(g0010, g0010), math.dot(g0110, g0110), math.dot(g1010, g1010), math.dot(g1110, g1110))); + float4 norm10 = taylorInvSqrt(float4(dot(g0010, g0010), dot(g0110, g0110), dot(g1010, g1010), dot(g1110, g1110))); g0010 *= norm10.x; g0110 *= norm10.y; g1010 *= norm10.z; g1110 *= norm10.w; - float4 norm11 = taylorInvSqrt(new float4(math.dot(g0011, g0011), math.dot(g0111, g0111), math.dot(g1011, g1011), math.dot(g1111, g1111))); + float4 norm11 = taylorInvSqrt(float4(dot(g0011, g0011), dot(g0111, g0111), dot(g1011, g1011), dot(g1111, g1111))); g0011 *= norm11.x; g0111 *= norm11.y; g1011 *= norm11.z; g1111 *= norm11.w; - float n0000 = math.dot(g0000, Pf0); - float n1000 = math.dot(g1000, new float4(Pf1.x, Pf0.yzw)); - float n0100 = math.dot(g0100, new float4(Pf0.x, Pf1.y, Pf0.zw)); - float n1100 = math.dot(g1100, new float4(Pf1.xy, Pf0.zw)); - float n0010 = math.dot(g0010, new float4(Pf0.xy, Pf1.z, Pf0.w)); - float n1010 = math.dot(g1010, new float4(Pf1.x, Pf0.y, Pf1.z, Pf0.w)); - float n0110 = math.dot(g0110, new float4(Pf0.x, Pf1.yz, Pf0.w)); - float n1110 = math.dot(g1110, new float4(Pf1.xyz, Pf0.w)); - float n0001 = math.dot(g0001, new float4(Pf0.xyz, Pf1.w)); - float n1001 = math.dot(g1001, new float4(Pf1.x, Pf0.yz, Pf1.w)); - float n0101 = math.dot(g0101, new float4(Pf0.x, Pf1.y, Pf0.z, Pf1.w)); - float n1101 = math.dot(g1101, new float4(Pf1.xy, Pf0.z, Pf1.w)); - float n0011 = math.dot(g0011, new float4(Pf0.xy, Pf1.zw)); - float n1011 = math.dot(g1011, new float4(Pf1.x, Pf0.y, Pf1.zw)); - float n0111 = math.dot(g0111, new float4(Pf0.x, Pf1.yzw)); - float n1111 = math.dot(g1111, Pf1); + float n0000 = dot(g0000, Pf0); + float n1000 = dot(g1000, float4(Pf1.x, Pf0.yzw)); + float n0100 = dot(g0100, float4(Pf0.x, Pf1.y, Pf0.zw)); + float n1100 = dot(g1100, float4(Pf1.xy, Pf0.zw)); + float n0010 = dot(g0010, float4(Pf0.xy, Pf1.z, Pf0.w)); + float n1010 = dot(g1010, float4(Pf1.x, Pf0.y, Pf1.z, Pf0.w)); + float n0110 = dot(g0110, float4(Pf0.x, Pf1.yz, Pf0.w)); + float n1110 = dot(g1110, float4(Pf1.xyz, Pf0.w)); + float n0001 = dot(g0001, float4(Pf0.xyz, Pf1.w)); + float n1001 = dot(g1001, float4(Pf1.x, Pf0.yz, Pf1.w)); + float n0101 = dot(g0101, float4(Pf0.x, Pf1.y, Pf0.z, Pf1.w)); + float n1101 = dot(g1101, float4(Pf1.xy, Pf0.z, Pf1.w)); + float n0011 = dot(g0011, float4(Pf0.xy, Pf1.zw)); + float n1011 = dot(g1011, float4(Pf1.x, Pf0.y, Pf1.zw)); + float n0111 = dot(g0111, float4(Pf0.x, Pf1.yzw)); + float n1111 = dot(g1111, Pf1); float4 fade_xyzw = fade(Pf0); - float4 n_0w = math.mix(new float4(n0000, n1000, n0100, n1100), new float4(n0001, n1001, n0101, n1101), fade_xyzw.w); - float4 n_1w = math.mix(new float4(n0010, n1010, n0110, n1110), new float4(n0011, n1011, n0111, n1111), fade_xyzw.w); - float4 n_zw = math.mix(n_0w, n_1w, fade_xyzw.z); - float2 n_yzw = math.mix(n_zw.xy, n_zw.zw, fade_xyzw.y); - float n_xyzw = math.mix(n_yzw.x, n_yzw.y, fade_xyzw.x); + float4 n_0w = mix(float4(n0000, n1000, n0100, n1100), float4(n0001, n1001, n0101, n1101), fade_xyzw.w); + float4 n_1w = mix(float4(n0010, n1010, n0110, n1110), float4(n0011, n1011, n0111, n1111), fade_xyzw.w); + float4 n_zw = mix(n_0w, n_1w, fade_xyzw.z); + float2 n_yzw = mix(n_zw.xy, n_zw.zw, fade_xyzw.y); + float n_xyzw = mix(n_yzw.x, n_yzw.y, fade_xyzw.x); return 2.2f * n_xyzw; } // Classic Perlin noise, periodic version public static float pnoise(float4 P, float4 rep) { - float4 Pi0 = math.mod(math.floor(P), rep); // Integer part math.modulo rep - float4 Pi1 = math.mod(Pi0 + 1.0f, rep); // Integer part + 1 math.mod rep + float4 Pi0 = mod(floor(P), rep); // Integer part math.modulo rep + float4 Pi1 = mod(Pi0 + 1.0f, rep); // Integer part + 1 math.mod rep Pi0 = mod289(Pi0); Pi1 = mod289(Pi1); - float4 Pf0 = math.fract(P); // Fractional part for interpolation + float4 Pf0 = fract(P); // Fractional part for interpolation float4 Pf1 = Pf0 - 1.0f; // Fractional part - 1.0 - float4 ix = new float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); - float4 iy = new float4(Pi0.yy, Pi1.yy); - float4 iz0 = new float4(Pi0.zzzz); - float4 iz1 = new float4(Pi1.zzzz); - float4 iw0 = new float4(Pi0.wwww); - float4 iw1 = new float4(Pi1.wwww); + float4 ix = float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); + float4 iy = float4(Pi0.yy, Pi1.yy); + float4 iz0 = float4(Pi0.zzzz); + float4 iz1 = float4(Pi1.zzzz); + float4 iw0 = float4(Pi0.wwww); + float4 iw1 = float4(Pi1.wwww); float4 ixy = permute(permute(ix) + iy); float4 ixy0 = permute(ixy + iz0); @@ -176,113 +178,113 @@ public static float pnoise(float4 P, float4 rep) float4 ixy11 = permute(ixy1 + iw1); float4 gx00 = ixy00 * (1.0f / 7.0f); - float4 gy00 = math.floor(gx00) * (1.0f / 7.0f); - float4 gz00 = math.floor(gy00) * (1.0f / 6.0f); - gx00 = math.fract(gx00) - 0.5f; - gy00 = math.fract(gy00) - 0.5f; - gz00 = math.fract(gz00) - 0.5f; - float4 gw00 = new float4(0.75f) - math.abs(gx00) - math.abs(gy00) - math.abs(gz00); - float4 sw00 = math.step(gw00, new float4(0.0f)); - gx00 -= sw00 * (math.step(0.0f, gx00) - 0.5f); - gy00 -= sw00 * (math.step(0.0f, gy00) - 0.5f); + float4 gy00 = floor(gx00) * (1.0f / 7.0f); + float4 gz00 = floor(gy00) * (1.0f / 6.0f); + gx00 = fract(gx00) - 0.5f; + gy00 = fract(gy00) - 0.5f; + gz00 = fract(gz00) - 0.5f; + float4 gw00 = float4(0.75f) - abs(gx00) - abs(gy00) - abs(gz00); + float4 sw00 = step(gw00, float4(0.0f)); + gx00 -= sw00 * (step(0.0f, gx00) - 0.5f); + gy00 -= sw00 * (step(0.0f, gy00) - 0.5f); float4 gx01 = ixy01 * (1.0f / 7.0f); - float4 gy01 = math.floor(gx01) * (1.0f / 7.0f); - float4 gz01 = math.floor(gy01) * (1.0f / 6.0f); - gx01 = math.fract(gx01) - 0.5f; - gy01 = math.fract(gy01) - 0.5f; - gz01 = math.fract(gz01) - 0.5f; - float4 gw01 = new float4(0.75f) - math.abs(gx01) - math.abs(gy01) - math.abs(gz01); - float4 sw01 = math.step(gw01, new float4(0.0f)); - gx01 -= sw01 * (math.step(0.0f, gx01) - 0.5f); - gy01 -= sw01 * (math.step(0.0f, gy01) - 0.5f); + float4 gy01 = floor(gx01) * (1.0f / 7.0f); + float4 gz01 = floor(gy01) * (1.0f / 6.0f); + gx01 = fract(gx01) - 0.5f; + gy01 = fract(gy01) - 0.5f; + gz01 = fract(gz01) - 0.5f; + float4 gw01 = float4(0.75f) - abs(gx01) - abs(gy01) - abs(gz01); + float4 sw01 = step(gw01, float4(0.0f)); + gx01 -= sw01 * (step(0.0f, gx01) - 0.5f); + gy01 -= sw01 * (step(0.0f, gy01) - 0.5f); float4 gx10 = ixy10 * (1.0f / 7.0f); - float4 gy10 = math.floor(gx10) * (1.0f / 7.0f); - float4 gz10 = math.floor(gy10) * (1.0f / 6.0f); - gx10 = math.fract(gx10) - 0.5f; - gy10 = math.fract(gy10) - 0.5f; - gz10 = math.fract(gz10) - 0.5f; - float4 gw10 = new float4(0.75f) - math.abs(gx10) - math.abs(gy10) - math.abs(gz10); - float4 sw10 = math.step(gw10, new float4(0.0f)); - gx10 -= sw10 * (math.step(0.0f, gx10) - 0.5f); - gy10 -= sw10 * (math.step(0.0f, gy10) - 0.5f); + float4 gy10 = floor(gx10) * (1.0f / 7.0f); + float4 gz10 = floor(gy10) * (1.0f / 6.0f); + gx10 = fract(gx10) - 0.5f; + gy10 = fract(gy10) - 0.5f; + gz10 = fract(gz10) - 0.5f; + float4 gw10 = float4(0.75f) - abs(gx10) - abs(gy10) - abs(gz10); + float4 sw10 = step(gw10, float4(0.0f)); + gx10 -= sw10 * (step(0.0f, gx10) - 0.5f); + gy10 -= sw10 * (step(0.0f, gy10) - 0.5f); float4 gx11 = ixy11 * (1.0f / 7.0f); - float4 gy11 = math.floor(gx11) * (1.0f / 7.0f); - float4 gz11 = math.floor(gy11) * (1.0f / 6.0f); - gx11 = math.fract(gx11) - 0.5f; - gy11 = math.fract(gy11) - 0.5f; - gz11 = math.fract(gz11) - 0.5f; - float4 gw11 = new float4(0.75f) - math.abs(gx11) - math.abs(gy11) - math.abs(gz11); - float4 sw11 = math.step(gw11, new float4(0.0f)); - gx11 -= sw11 * (math.step(0.0f, gx11) - 0.5f); - gy11 -= sw11 * (math.step(0.0f, gy11) - 0.5f); + float4 gy11 = floor(gx11) * (1.0f / 7.0f); + float4 gz11 = floor(gy11) * (1.0f / 6.0f); + gx11 = fract(gx11) - 0.5f; + gy11 = fract(gy11) - 0.5f; + gz11 = fract(gz11) - 0.5f; + float4 gw11 = float4(0.75f) - abs(gx11) - abs(gy11) - abs(gz11); + float4 sw11 = step(gw11, float4(0.0f)); + gx11 -= sw11 * (step(0.0f, gx11) - 0.5f); + gy11 -= sw11 * (step(0.0f, gy11) - 0.5f); - float4 g0000 = new float4(gx00.x, gy00.x, gz00.x, gw00.x); - float4 g1000 = new float4(gx00.y, gy00.y, gz00.y, gw00.y); - float4 g0100 = new float4(gx00.z, gy00.z, gz00.z, gw00.z); - float4 g1100 = new float4(gx00.w, gy00.w, gz00.w, gw00.w); - float4 g0010 = new float4(gx10.x, gy10.x, gz10.x, gw10.x); - float4 g1010 = new float4(gx10.y, gy10.y, gz10.y, gw10.y); - float4 g0110 = new float4(gx10.z, gy10.z, gz10.z, gw10.z); - float4 g1110 = new float4(gx10.w, gy10.w, gz10.w, gw10.w); - float4 g0001 = new float4(gx01.x, gy01.x, gz01.x, gw01.x); - float4 g1001 = new float4(gx01.y, gy01.y, gz01.y, gw01.y); - float4 g0101 = new float4(gx01.z, gy01.z, gz01.z, gw01.z); - float4 g1101 = new float4(gx01.w, gy01.w, gz01.w, gw01.w); - float4 g0011 = new float4(gx11.x, gy11.x, gz11.x, gw11.x); - float4 g1011 = new float4(gx11.y, gy11.y, gz11.y, gw11.y); - float4 g0111 = new float4(gx11.z, gy11.z, gz11.z, gw11.z); - float4 g1111 = new float4(gx11.w, gy11.w, gz11.w, gw11.w); + float4 g0000 = float4(gx00.x, gy00.x, gz00.x, gw00.x); + float4 g1000 = float4(gx00.y, gy00.y, gz00.y, gw00.y); + float4 g0100 = float4(gx00.z, gy00.z, gz00.z, gw00.z); + float4 g1100 = float4(gx00.w, gy00.w, gz00.w, gw00.w); + float4 g0010 = float4(gx10.x, gy10.x, gz10.x, gw10.x); + float4 g1010 = float4(gx10.y, gy10.y, gz10.y, gw10.y); + float4 g0110 = float4(gx10.z, gy10.z, gz10.z, gw10.z); + float4 g1110 = float4(gx10.w, gy10.w, gz10.w, gw10.w); + float4 g0001 = float4(gx01.x, gy01.x, gz01.x, gw01.x); + float4 g1001 = float4(gx01.y, gy01.y, gz01.y, gw01.y); + float4 g0101 = float4(gx01.z, gy01.z, gz01.z, gw01.z); + float4 g1101 = float4(gx01.w, gy01.w, gz01.w, gw01.w); + float4 g0011 = float4(gx11.x, gy11.x, gz11.x, gw11.x); + float4 g1011 = float4(gx11.y, gy11.y, gz11.y, gw11.y); + float4 g0111 = float4(gx11.z, gy11.z, gz11.z, gw11.z); + float4 g1111 = float4(gx11.w, gy11.w, gz11.w, gw11.w); - float4 norm00 = taylorInvSqrt(new float4(math.dot(g0000, g0000), math.dot(g0100, g0100), math.dot(g1000, g1000), math.dot(g1100, g1100))); + float4 norm00 = taylorInvSqrt(float4(dot(g0000, g0000), dot(g0100, g0100), dot(g1000, g1000), dot(g1100, g1100))); g0000 *= norm00.x; g0100 *= norm00.y; g1000 *= norm00.z; g1100 *= norm00.w; - float4 norm01 = taylorInvSqrt(new float4(math.dot(g0001, g0001), math.dot(g0101, g0101), math.dot(g1001, g1001), math.dot(g1101, g1101))); + float4 norm01 = taylorInvSqrt(float4(dot(g0001, g0001), dot(g0101, g0101), dot(g1001, g1001), dot(g1101, g1101))); g0001 *= norm01.x; g0101 *= norm01.y; g1001 *= norm01.z; g1101 *= norm01.w; - float4 norm10 = taylorInvSqrt(new float4(math.dot(g0010, g0010), math.dot(g0110, g0110), math.dot(g1010, g1010), math.dot(g1110, g1110))); + float4 norm10 = taylorInvSqrt(float4(dot(g0010, g0010), dot(g0110, g0110), dot(g1010, g1010), dot(g1110, g1110))); g0010 *= norm10.x; g0110 *= norm10.y; g1010 *= norm10.z; g1110 *= norm10.w; - float4 norm11 = taylorInvSqrt(new float4(math.dot(g0011, g0011), math.dot(g0111, g0111), math.dot(g1011, g1011), math.dot(g1111, g1111))); + float4 norm11 = taylorInvSqrt(float4(dot(g0011, g0011), dot(g0111, g0111), dot(g1011, g1011), dot(g1111, g1111))); g0011 *= norm11.x; g0111 *= norm11.y; g1011 *= norm11.z; g1111 *= norm11.w; - float n0000 = math.dot(g0000, Pf0); - float n1000 = math.dot(g1000, new float4(Pf1.x, Pf0.yzw)); - float n0100 = math.dot(g0100, new float4(Pf0.x, Pf1.y, Pf0.zw)); - float n1100 = math.dot(g1100, new float4(Pf1.xy, Pf0.zw)); - float n0010 = math.dot(g0010, new float4(Pf0.xy, Pf1.z, Pf0.w)); - float n1010 = math.dot(g1010, new float4(Pf1.x, Pf0.y, Pf1.z, Pf0.w)); - float n0110 = math.dot(g0110, new float4(Pf0.x, Pf1.yz, Pf0.w)); - float n1110 = math.dot(g1110, new float4(Pf1.xyz, Pf0.w)); - float n0001 = math.dot(g0001, new float4(Pf0.xyz, Pf1.w)); - float n1001 = math.dot(g1001, new float4(Pf1.x, Pf0.yz, Pf1.w)); - float n0101 = math.dot(g0101, new float4(Pf0.x, Pf1.y, Pf0.z, Pf1.w)); - float n1101 = math.dot(g1101, new float4(Pf1.xy, Pf0.z, Pf1.w)); - float n0011 = math.dot(g0011, new float4(Pf0.xy, Pf1.zw)); - float n1011 = math.dot(g1011, new float4(Pf1.x, Pf0.y, Pf1.zw)); - float n0111 = math.dot(g0111, new float4(Pf0.x, Pf1.yzw)); - float n1111 = math.dot(g1111, Pf1); + float n0000 = dot(g0000, Pf0); + float n1000 = dot(g1000, float4(Pf1.x, Pf0.yzw)); + float n0100 = dot(g0100, float4(Pf0.x, Pf1.y, Pf0.zw)); + float n1100 = dot(g1100, float4(Pf1.xy, Pf0.zw)); + float n0010 = dot(g0010, float4(Pf0.xy, Pf1.z, Pf0.w)); + float n1010 = dot(g1010, float4(Pf1.x, Pf0.y, Pf1.z, Pf0.w)); + float n0110 = dot(g0110, float4(Pf0.x, Pf1.yz, Pf0.w)); + float n1110 = dot(g1110, float4(Pf1.xyz, Pf0.w)); + float n0001 = dot(g0001, float4(Pf0.xyz, Pf1.w)); + float n1001 = dot(g1001, float4(Pf1.x, Pf0.yz, Pf1.w)); + float n0101 = dot(g0101, float4(Pf0.x, Pf1.y, Pf0.z, Pf1.w)); + float n1101 = dot(g1101, float4(Pf1.xy, Pf0.z, Pf1.w)); + float n0011 = dot(g0011, float4(Pf0.xy, Pf1.zw)); + float n1011 = dot(g1011, float4(Pf1.x, Pf0.y, Pf1.zw)); + float n0111 = dot(g0111, float4(Pf0.x, Pf1.yzw)); + float n1111 = dot(g1111, Pf1); float4 fade_xyzw = fade(Pf0); - float4 n_0w = math.mix(new float4(n0000, n1000, n0100, n1100), new float4(n0001, n1001, n0101, n1101), fade_xyzw.w); - float4 n_1w = math.mix(new float4(n0010, n1010, n0110, n1110), new float4(n0011, n1011, n0111, n1111), fade_xyzw.w); - float4 n_zw = math.mix(n_0w, n_1w, fade_xyzw.z); - float2 n_yzw = math.mix(n_zw.xy, n_zw.zw, fade_xyzw.y); - float n_xyzw = math.mix(n_yzw.x, n_yzw.y, fade_xyzw.x); + float4 n_0w = mix(float4(n0000, n1000, n0100, n1100), float4(n0001, n1001, n0101, n1101), fade_xyzw.w); + float4 n_1w = mix(float4(n0010, n1010, n0110, n1110), float4(n0011, n1011, n0111, n1111), fade_xyzw.w); + float4 n_zw = mix(n_0w, n_1w, fade_xyzw.z); + float2 n_yzw = mix(n_zw.xy, n_zw.zw, fade_xyzw.y); + float n_xyzw = mix(n_yzw.x, n_yzw.y, fade_xyzw.x); return 2.2f * n_xyzw; } } diff --git a/src/Unity.Mathematics/Noise/common.cs b/src/Unity.Mathematics/Noise/common.cs index dbd5dcd9..0ec2545e 100644 --- a/src/Unity.Mathematics/Noise/common.cs +++ b/src/Unity.Mathematics/Noise/common.cs @@ -1,16 +1,18 @@ -namespace Unity.Mathematics +using static Unity.Mathematics.math; + +namespace Unity.Mathematics { public static partial class noise { // Modulo 289 without a division (only multiplications) - static float mod289(float x) { return x - math.floor(x * (1.0f / 289.0f)) * 289.0f; } - static float2 mod289(float2 x) { return x - math.floor(x * (1.0f / 289.0f)) * 289.0f; } - static float3 mod289(float3 x) { return x - math.floor(x * (1.0f / 289.0f)) * 289.0f; } - static float4 mod289(float4 x) { return x - math.floor(x * (1.0f / 289.0f)) * 289.0f; } + static float mod289(float x) { return x - floor(x * (1.0f / 289.0f)) * 289.0f; } + static float2 mod289(float2 x) { return x - floor(x * (1.0f / 289.0f)) * 289.0f; } + static float3 mod289(float3 x) { return x - floor(x * (1.0f / 289.0f)) * 289.0f; } + static float4 mod289(float4 x) { return x - floor(x * (1.0f / 289.0f)) * 289.0f; } // Modulo 7 without a division - static float3 mod7(float3 x) { return x - math.floor(x * (1.0f / 7.0f)) * 7.0f; } - static float4 mod7(float4 x) { return x - math.floor(x * (1.0f / 7.0f)) * 7.0f; } + static float3 mod7(float3 x) { return x - floor(x * (1.0f / 7.0f)) * 7.0f; } + static float4 mod7(float4 x) { return x - floor(x * (1.0f / 7.0f)) * 7.0f; } // Permutation polynomial: (34x^2 + x) math.mod 289 static float permute(float x) { return mod289((34.0f * x + 1.0f) * x); } @@ -26,11 +28,11 @@ public static partial class noise static float4 grad4(float j, float4 ip) { - float4 ones = new float4(1.0f, 1.0f, 1.0f, -1.0f); - float3 pxyz = math.floor(math.fract(new float3(j) * ip.xyz) * 7.0f) * ip.z - 1.0f; - float pw = 1.5f - math.dot(math.abs(pxyz), ones.xyz); - float4 p = new float4(pxyz, pw); - float4 s = new float4(math.lessThan(p, new float4(0.0f))); + float4 ones = float4(1.0f, 1.0f, 1.0f, -1.0f); + float3 pxyz = floor(fract(float3(j) * ip.xyz) * 7.0f) * ip.z - 1.0f; + float pw = 1.5f - dot(abs(pxyz), ones.xyz); + float4 p = float4(pxyz, pw); + float4 s = float4(lessThan(p, float4(0.0f))); p.xyz = p.xyz + (s.xyz*2.0f - 1.0f) * s.www; return p; } @@ -41,8 +43,8 @@ static float2 rgrad2(float2 p, float rot) { // For more isotropic gradients, math.sin/math.cos can be used instead. float u = permute(permute(p.x) + p.y) * 0.0243902439f + rot; // Rotate by shift - u = math.fract(u) * 6.28318530718f; // 2*pi - return new float2(math.cos(u), math.sin(u)); + u = fract(u) * 6.28318530718f; // 2*pi + return float2(cos(u), sin(u)); } } } diff --git a/src/Unity.Mathematics/Noise/noise2D.cs b/src/Unity.Mathematics/Noise/noise2D.cs index c627787e..0b4b9ed0 100644 --- a/src/Unity.Mathematics/Noise/noise2D.cs +++ b/src/Unity.Mathematics/Noise/noise2D.cs @@ -9,25 +9,27 @@ // https://github.com/stegu/webgl-noise // +using static Unity.Mathematics.math; + namespace Unity.Mathematics { public static partial class noise { public static float snoise(float2 v) { - float4 C = new float4(0.211324865405187f, // (3.0-math.sqrt(3.0))/6.0 + float4 C = float4(0.211324865405187f, // (3.0-math.sqrt(3.0))/6.0 0.366025403784439f, // 0.5*(math.sqrt(3.0)-1.0) -0.577350269189626f, // -1.0 + 2.0 * C.x 0.024390243902439f); // 1.0 / 41.0 // First corner - float2 i = math.floor(v + math.dot(v, C.yy)); - float2 x0 = v - i + math.dot(i, C.xx); + float2 i = floor(v + dot(v, C.yy)); + float2 x0 = v - i + dot(i, C.xx); // Other corners float2 i1; //i1.x = math.step( x0.y, x0.x ); // x0.x > x0.y ? 1.0 : 0.0 //i1.y = 1.0 - i1.x; - i1 = (x0.x > x0.y) ? new float2(1.0f, 0.0f) : new float2(0.0f, 1.0f); + i1 = (x0.x > x0.y) ? float2(1.0f, 0.0f) : float2(0.0f, 1.0f); // x0 = x0 - 0.0 + 0.0 * C.xx ; // x1 = x0 - i1 + 1.0 * C.xx ; // x2 = x0 - 1.0 + 2.0 * C.xx ; @@ -36,18 +38,18 @@ public static float snoise(float2 v) // Permutations i = mod289(i); // Avoid truncation effects in permutation - float3 p = permute(permute(i.y + new float3(0.0f, i1.y, 1.0f)) + i.x + new float3(0.0f, i1.x, 1.0f)); + float3 p = permute(permute(i.y + float3(0.0f, i1.y, 1.0f)) + i.x + float3(0.0f, i1.x, 1.0f)); - float3 m = math.max(0.5f - new float3(math.dot(x0, x0), math.dot(x12.xy, x12.xy), math.dot(x12.zw, x12.zw)), 0.0f); + float3 m = max(0.5f - float3(dot(x0, x0), dot(x12.xy, x12.xy), dot(x12.zw, x12.zw)), 0.0f); m = m * m; m = m * m; // Gradients: 41 points uniformly over a line, mapped onto a diamond. // The ring size 17*17 = 289 is close to a multiple of 41 (41*7 = 287) - float3 x = 2.0f * math.fract(p * C.www) - 1.0f; - float3 h = math.abs(x) - 0.5f; - float3 ox = math.floor(x + 0.5f); + float3 x = 2.0f * fract(p * C.www) - 1.0f; + float3 h = abs(x) - 0.5f; + float3 ox = floor(x + 0.5f); float3 a0 = x - ox; // Normalise gradients implicitly by scaling m @@ -58,9 +60,9 @@ public static float snoise(float2 v) float gx = a0.x * x0.x + h.x * x0.y; float2 gyz = a0.yz * x12.xz + h.yz * x12.yw; - float3 g = new float3(gx,gyz); + float3 g = float3(gx,gyz); - return 130.0f * math.dot(m, g); + return 130.0f * dot(m, g); } } } diff --git a/src/Unity.Mathematics/Noise/noise3D.cs b/src/Unity.Mathematics/Noise/noise3D.cs index c24cedde..8c0086cc 100644 --- a/src/Unity.Mathematics/Noise/noise3D.cs +++ b/src/Unity.Mathematics/Noise/noise3D.cs @@ -10,24 +10,26 @@ // https://github.com/stegu/webgl-noise // +using static Unity.Mathematics.math; + namespace Unity.Mathematics { public static partial class noise { public static float snoise(float3 v) { - float2 C = new float2(1.0f / 6.0f, 1.0f / 3.0f); - float4 D = new float4(0.0f, 0.5f, 1.0f, 2.0f); + float2 C = float2(1.0f / 6.0f, 1.0f / 3.0f); + float4 D = float4(0.0f, 0.5f, 1.0f, 2.0f); // First corner - float3 i = math.floor(v + math.dot(v, C.yyy)); - float3 x0 = v - i + math.dot(i, C.xxx); + float3 i = floor(v + dot(v, C.yyy)); + float3 x0 = v - i + dot(i, C.xxx); // Other corners - float3 g = math.step(x0.yzx, x0.xyz); + float3 g = step(x0.yzx, x0.xyz); float3 l = 1.0f - g; - float3 i1 = math.min(g.xyz, l.zxy); - float3 i2 = math.max(g.xyz, l.zxy); + float3 i1 = min(g.xyz, l.zxy); + float3 i2 = max(g.xyz, l.zxy); // x0 = x0 - 0.0 + 0.0 * C.xxx; // x1 = x0 - i1 + 1.0 * C.xxx; @@ -40,52 +42,52 @@ public static float snoise(float3 v) // Permutations i = mod289(i); float4 p = permute(permute(permute( - i.z + new float4(0.0f, i1.z, i2.z, 1.0f)) - + i.y + new float4(0.0f, i1.y, i2.y, 1.0f)) - + i.x + new float4(0.0f, i1.x, i2.x, 1.0f)); + i.z + float4(0.0f, i1.z, i2.z, 1.0f)) + + i.y + float4(0.0f, i1.y, i2.y, 1.0f)) + + i.x + float4(0.0f, i1.x, i2.x, 1.0f)); // Gradients: 7x7 points over a square, mapped onto an octahedron. // The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294) float n_ = 0.142857142857f; // 1.0/7.0 float3 ns = n_ * D.wyz - D.xzx; - float4 j = p - 49.0f * math.floor(p * ns.z * ns.z); // math.mod(p,7*7) + float4 j = p - 49.0f * floor(p * ns.z * ns.z); // math.mod(p,7*7) - float4 x_ = math.floor(j * ns.z); - float4 y_ = math.floor(j - 7.0f * x_); // math.mod(j,N) + float4 x_ = floor(j * ns.z); + float4 y_ = floor(j - 7.0f * x_); // math.mod(j,N) float4 x = x_ * ns.x + ns.yyyy; float4 y = y_ * ns.x + ns.yyyy; - float4 h = 1.0f - math.abs(x) - math.abs(y); + float4 h = 1.0f - abs(x) - abs(y); - float4 b0 = new float4(x.xy, y.xy); - float4 b1 = new float4(x.zw, y.zw); + float4 b0 = float4(x.xy, y.xy); + float4 b1 = float4(x.zw, y.zw); //float4 s0 = float4(math.lessThan(b0,0.0))*2.0 - 1.0; //float4 s1 = float4(math.lessThan(b1,0.0))*2.0 - 1.0; - float4 s0 = math.floor(b0) * 2.0f + 1.0f; - float4 s1 = math.floor(b1) * 2.0f + 1.0f; - float4 sh = -math.step(h, new float4(0.0f)); + float4 s0 = floor(b0) * 2.0f + 1.0f; + float4 s1 = floor(b1) * 2.0f + 1.0f; + float4 sh = -step(h, float4(0.0f)); float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; - float3 p0 = new float3(a0.xy, h.x); - float3 p1 = new float3(a0.zw, h.y); - float3 p2 = new float3(a1.xy, h.z); - float3 p3 = new float3(a1.zw, h.w); + float3 p0 = float3(a0.xy, h.x); + float3 p1 = float3(a0.zw, h.y); + float3 p2 = float3(a1.xy, h.z); + float3 p3 = float3(a1.zw, h.w); //Normalise gradients - float4 norm = taylorInvSqrt(new float4(math.dot(p0, p0), math.dot(p1, p1), math.dot(p2, p2), math.dot(p3, p3))); + float4 norm = taylorInvSqrt(float4(dot(p0, p0), dot(p1, p1), dot(p2, p2), dot(p3, p3))); p0 *= norm.x; p1 *= norm.y; p2 *= norm.z; p3 *= norm.w; // Mix final noise value - float4 m = math.max(0.6f - new float4(math.dot(x0, x0), math.dot(x1, x1), math.dot(x2, x2), math.dot(x3, x3)), 0.0f); + float4 m = max(0.6f - float4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0f); m = m * m; - return 42.0f * math.dot(m * m, new float4(math.dot(p0, x0), math.dot(p1, x1), math.dot(p2, x2), math.dot(p3, x3))); + return 42.0f * dot(m * m, float4(dot(p0, x0), dot(p1, x1), dot(p2, x2), dot(p3, x3))); } } } diff --git a/src/Unity.Mathematics/Noise/noise3Dgrad.cs b/src/Unity.Mathematics/Noise/noise3Dgrad.cs index cdab2757..da024383 100644 --- a/src/Unity.Mathematics/Noise/noise3Dgrad.cs +++ b/src/Unity.Mathematics/Noise/noise3Dgrad.cs @@ -10,24 +10,26 @@ // https://github.com/stegu/webgl-noise // +using static Unity.Mathematics.math; + namespace Unity.Mathematics { public static partial class noise { public static float snoise(float3 v, out float3 gradient) { - float2 C = new float2(1.0f / 6.0f, 1.0f / 3.0f); - float4 D = new float4(0.0f, 0.5f, 1.0f, 2.0f); + float2 C = float2(1.0f / 6.0f, 1.0f / 3.0f); + float4 D = float4(0.0f, 0.5f, 1.0f, 2.0f); // First corner - float3 i = math.floor(v + math.dot(v, C.yyy)); - float3 x0 = v - i + math.dot(i, C.xxx); + float3 i = floor(v + dot(v, C.yyy)); + float3 x0 = v - i + dot(i, C.xxx); // Other corners - float3 g = math.step(x0.yzx, x0.xyz); + float3 g = step(x0.yzx, x0.xyz); float3 l = 1.0f - g; - float3 i1 = math.min(g.xyz, l.zxy); - float3 i2 = math.max(g.xyz, l.zxy); + float3 i1 = min(g.xyz, l.zxy); + float3 i2 = max(g.xyz, l.zxy); // x0 = x0 - 0.0 + 0.0 * C.xxx; // x1 = x0 - i1 + 1.0 * C.xxx; @@ -40,53 +42,53 @@ public static float snoise(float3 v, out float3 gradient) // Permutations i = mod289(i); float4 p = permute(permute(permute( - i.z + new float4(0.0f, i1.z, i2.z, 1.0f)) - + i.y + new float4(0.0f, i1.y, i2.y, 1.0f)) - + i.x + new float4(0.0f, i1.x, i2.x, 1.0f)); + i.z + float4(0.0f, i1.z, i2.z, 1.0f)) + + i.y + float4(0.0f, i1.y, i2.y, 1.0f)) + + i.x + float4(0.0f, i1.x, i2.x, 1.0f)); // Gradients: 7x7 points over a square, mapped onto an octahedron. // The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294) float n_ = 0.142857142857f; // 1.0/7.0 float3 ns = n_ * D.wyz - D.xzx; - float4 j = p - 49.0f * math.floor(p * ns.z * ns.z); // math.mod(p,7*7) + float4 j = p - 49.0f * floor(p * ns.z * ns.z); // math.mod(p,7*7) - float4 x_ = math.floor(j * ns.z); - float4 y_ = math.floor(j - 7.0f * x_); // math.mod(j,N) + float4 x_ = floor(j * ns.z); + float4 y_ = floor(j - 7.0f * x_); // math.mod(j,N) float4 x = x_ * ns.x + ns.yyyy; float4 y = y_ * ns.x + ns.yyyy; - float4 h = 1.0f - math.abs(x) - math.abs(y); + float4 h = 1.0f - abs(x) - abs(y); - float4 b0 = new float4(x.xy, y.xy); - float4 b1 = new float4(x.zw, y.zw); + float4 b0 = float4(x.xy, y.xy); + float4 b1 = float4(x.zw, y.zw); //float4 s0 = float4(math.lessThan(b0,0.0))*2.0 - 1.0; //float4 s1 = float4(math.lessThan(b1,0.0))*2.0 - 1.0; - float4 s0 = math.floor(b0) * 2.0f + 1.0f; - float4 s1 = math.floor(b1) * 2.0f + 1.0f; - float4 sh = -math.step(h, new float4(0.0f)); + float4 s0 = floor(b0) * 2.0f + 1.0f; + float4 s1 = floor(b1) * 2.0f + 1.0f; + float4 sh = -step(h, float4(0.0f)); float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; - float3 p0 = new float3(a0.xy, h.x); - float3 p1 = new float3(a0.zw, h.y); - float3 p2 = new float3(a1.xy, h.z); - float3 p3 = new float3(a1.zw, h.w); + float3 p0 = float3(a0.xy, h.x); + float3 p1 = float3(a0.zw, h.y); + float3 p2 = float3(a1.xy, h.z); + float3 p3 = float3(a1.zw, h.w); //Normalise gradients - float4 norm = taylorInvSqrt(new float4(math.dot(p0, p0), math.dot(p1, p1), math.dot(p2, p2), math.dot(p3, p3))); + float4 norm = taylorInvSqrt(float4(dot(p0, p0), dot(p1, p1), dot(p2, p2), dot(p3, p3))); p0 *= norm.x; p1 *= norm.y; p2 *= norm.z; p3 *= norm.w; // Mix final noise value - float4 m = math.max(0.6f - new float4(math.dot(x0, x0), math.dot(x1, x1), math.dot(x2, x2), math.dot(x3, x3)), 0.0f); + float4 m = max(0.6f - float4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0f); float4 m2 = m * m; float4 m4 = m2 * m2; - float4 pdotx = new float4(math.dot(p0, x0), math.dot(p1, x1), math.dot(p2, x2), math.dot(p3, x3)); + float4 pdotx = float4(dot(p0, x0), dot(p1, x1), dot(p2, x2), dot(p3, x3)); // Determath.mine noise gradient float4 temp = m2 * m * pdotx; @@ -94,7 +96,7 @@ public static float snoise(float3 v, out float3 gradient) gradient += m4.x * p0 + m4.y * p1 + m4.z * p2 + m4.w * p3; gradient *= 42.0f; - return 42.0f * math.dot(m4, pdotx); + return 42.0f * dot(m4, pdotx); } } } diff --git a/src/Unity.Mathematics/Noise/noise4D.cs b/src/Unity.Mathematics/Noise/noise4D.cs index 832686d2..4dab382d 100644 --- a/src/Unity.Mathematics/Noise/noise4D.cs +++ b/src/Unity.Mathematics/Noise/noise4D.cs @@ -10,6 +10,8 @@ // https://github.com/stegu/webgl-noise // +using static Unity.Mathematics.math; + namespace Unity.Mathematics { public static partial class noise @@ -18,21 +20,21 @@ public static float snoise(float4 v) { // (math.sqrt(5) - 1)/4 = F4, used once below const float F4 = 0.309016994374947451f; - float4 C = new float4( 0.138196601125011f, // (5 - math.sqrt(5))/20 G4 + float4 C = float4( 0.138196601125011f, // (5 - math.sqrt(5))/20 G4 0.276393202250021f, // 2 * G4 0.414589803375032f, // 3 * G4 -0.447213595499958f); // -1 + 4 * G4 // First corner - float4 i = math.floor(v + math.dot(v, new float4(F4)) ); - float4 x0 = v - i + math.dot(i, C.xxxx); + float4 i = floor(v + dot(v, float4(F4)) ); + float4 x0 = v - i + dot(i, C.xxxx); // Other corners // Rank sorting originally contributed by Bill Licea-Kane, AMD (formerly ATI) - float4 i0 = new float4(0.0f); - float3 isX = math.step( x0.yzw, x0.xxx ); - float3 isYZ = math.step( x0.zww, x0.yyz ); + float4 i0 = float4(0.0f); + float3 isX = step( x0.yzw, x0.xxx ); + float3 isYZ = step( x0.zww, x0.yyz ); // i0.x = math.dot( isX, float3( 1.0 ) ); i0.x = isX.x + isX.y + isX.z; i0.yzw = 1.0f - isX; @@ -43,9 +45,9 @@ public static float snoise(float4 v) i0.w += 1.0f - isYZ.z; // i0 now contains the unique values 0,1,2,3 in each channel - float4 i3 = math.clamp( i0, 0.0f, 1.0f ); - float4 i2 = math.clamp( i0-1.0f, 0.0f, 1.0f ); - float4 i1 = math.clamp( i0-2.0f, 0.0f, 1.0f ); + float4 i3 = clamp( i0, 0.0f, 1.0f ); + float4 i2 = clamp( i0-1.0f, 0.0f, 1.0f ); + float4 i1 = clamp( i0-2.0f, 0.0f, 1.0f ); // x0 = x0 - 0.0 + 0.0 * C.xxxx // x1 = x0 - i1 + 1.0 * C.xxxx @@ -61,14 +63,14 @@ public static float snoise(float4 v) i = mod289(i); float j0 = permute( permute( permute( permute(i.w) + i.z) + i.y) + i.x); float4 j1 = permute( permute( permute( permute ( - i.w + new float4(i1.w, i2.w, i3.w, 1.0f )) - + i.z + new float4(i1.z, i2.z, i3.z, 1.0f )) - + i.y + new float4(i1.y, i2.y, i3.y, 1.0f )) - + i.x + new float4(i1.x, i2.x, i3.x, 1.0f )); + i.w + float4(i1.w, i2.w, i3.w, 1.0f )) + + i.z + float4(i1.z, i2.z, i3.z, 1.0f )) + + i.y + float4(i1.y, i2.y, i3.y, 1.0f )) + + i.x + float4(i1.x, i2.x, i3.x, 1.0f )); // Gradients: 7x7x6 points over a cube, mapped onto a 4-cross polytope // 7*7*6 = 294, which is close to the ring size 17*17 = 289. - float4 ip = new float4(1.0f/294.0f, 1.0f/49.0f, 1.0f/7.0f, 0.0f) ; + float4 ip = float4(1.0f/294.0f, 1.0f/49.0f, 1.0f/7.0f, 0.0f) ; float4 p0 = grad4(j0, ip); float4 p1 = grad4(j1.x, ip); @@ -77,20 +79,20 @@ public static float snoise(float4 v) float4 p4 = grad4(j1.w, ip); // Normalise gradients - float4 norm = taylorInvSqrt(new float4(math.dot(p0,p0), math.dot(p1,p1), math.dot(p2, p2), math.dot(p3,p3))); + float4 norm = taylorInvSqrt(float4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3))); p0 *= norm.x; p1 *= norm.y; p2 *= norm.z; p3 *= norm.w; - p4 *= taylorInvSqrt(math.dot(p4,p4)); + p4 *= taylorInvSqrt(dot(p4,p4)); // Mix contributions from the five corners - float3 m0 = math.max(0.6f - new float3(math.dot(x0,x0), math.dot(x1,x1), math.dot(x2,x2)), 0.0f); - float2 m1 = math.max(0.6f - new float2(math.dot(x3,x3), math.dot(x4,x4) ), 0.0f); + float3 m0 = max(0.6f - float3(dot(x0,x0), dot(x1,x1), dot(x2,x2)), 0.0f); + float2 m1 = max(0.6f - float2(dot(x3,x3), dot(x4,x4) ), 0.0f); m0 = m0 * m0; m1 = m1 * m1; - return 49.0f * ( math.dot(m0*m0, new float3( math.dot( p0, x0 ), math.dot( p1, x1 ), math.dot( p2, x2 ))) - + math.dot(m1*m1, new float2( math.dot( p3, x3 ), math.dot( p4, x4 ) ) ) ) ; + return 49.0f * ( dot(m0*m0, float3( dot( p0, x0 ), dot( p1, x1 ), dot( p2, x2 ))) + + dot(m1*m1, float2( dot( p3, x3 ), dot( p4, x4 ) ) ) ) ; } } diff --git a/src/Unity.Mathematics/Noise/psrdnoise2D.cs b/src/Unity.Mathematics/Noise/psrdnoise2D.cs index c844def8..8333eae9 100644 --- a/src/Unity.Mathematics/Noise/psrdnoise2D.cs +++ b/src/Unity.Mathematics/Noise/psrdnoise2D.cs @@ -67,6 +67,8 @@ // (If you run into problems with this, please let me know.) // +using static Unity.Mathematics.math; + namespace Unity.Mathematics { public static partial class noise @@ -81,21 +83,21 @@ public static float3 psrdnoise(float2 pos, float2 per, float rot) // Hack: offset y slightly to hide some rare artifacts pos.y += 0.01f; // Skew to hexagonal grid - float2 uv = new float2(pos.x + pos.y * 0.5f, pos.y); + float2 uv = float2(pos.x + pos.y * 0.5f, pos.y); - float2 i0 = math.floor(uv); - float2 f0 = math.fract(uv); + float2 i0 = floor(uv); + float2 f0 = fract(uv); // Traversal order - float2 i1 = (f0.x > f0.y) ? new float2(1.0f, 0.0f) : new float2(0.0f, 1.0f); + float2 i1 = (f0.x > f0.y) ? float2(1.0f, 0.0f) : float2(0.0f, 1.0f); // Unskewed grid points in (x,y) space - float2 p0 = new float2(i0.x - i0.y * 0.5f, i0.y); - float2 p1 = new float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); - float2 p2 = new float2(p0.x + 0.5f, p0.y + 1.0f); + float2 p0 = float2(i0.x - i0.y * 0.5f, i0.y); + float2 p1 = float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); + float2 p2 = float2(p0.x + 0.5f, p0.y + 1.0f); // Integer grid point indices in (u,v) space i1 = i0 + i1; - float2 i2 = i0 + new float2(1.0f, 1.0f); + float2 i2 = i0 + float2(1.0f, 1.0f); // Vectors in unskewed (x,y) coordinates from // each of the simplex corners to the evaluation point @@ -105,28 +107,28 @@ public static float3 psrdnoise(float2 pos, float2 per, float rot) // Wrap i0, i1 and i2 to the desired period before gradient hashing: // wrap points in (x,y), map to (u,v) - float3 xw = math.mod(new float3(p0.x, p1.x, p2.x), per.x); - float3 yw = math.mod(new float3(p0.y, p1.y, p2.y), per.y); + float3 xw = mod(float3(p0.x, p1.x, p2.x), per.x); + float3 yw = mod(float3(p0.y, p1.y, p2.y), per.y); float3 iuw = xw + 0.5f * yw; float3 ivw = yw; // Create gradients from indices - float2 g0 = rgrad2(new float2(iuw.x, ivw.x), rot); - float2 g1 = rgrad2(new float2(iuw.y, ivw.y), rot); - float2 g2 = rgrad2(new float2(iuw.z, ivw.z), rot); + float2 g0 = rgrad2(float2(iuw.x, ivw.x), rot); + float2 g1 = rgrad2(float2(iuw.y, ivw.y), rot); + float2 g2 = rgrad2(float2(iuw.z, ivw.z), rot); // Gradients math.dot vectors to corresponding corners // (The derivatives of this are simply the gradients) - float3 w = new float3(math.dot(g0, d0), math.dot(g1, d1), math.dot(g2, d2)); + float3 w = float3(dot(g0, d0), dot(g1, d1), dot(g2, d2)); // Radial weights from corners // 0.8 is the square of 2/math.sqrt(5), the distance from // a grid point to the nearest simplex boundary - float3 t = 0.8f - new float3(math.dot(d0, d0), math.dot(d1, d1), math.dot(d2, d2)); + float3 t = 0.8f - float3(dot(d0, d0), dot(d1, d1), dot(d2, d2)); // Partial derivatives for analytical gradient computation - float3 dtdx = -2.0f * new float3(d0.x, d1.x, d2.x); - float3 dtdy = -2.0f * new float3(d0.y, d1.y, d2.y); + float3 dtdx = -2.0f * float3(d0.x, d1.x, d2.x); + float3 dtdy = -2.0f * float3(d0.y, d1.y, d2.y); // Set influence of each surflet to zero outside radius math.sqrt(0.8) if (t.x < 0.0f) @@ -155,17 +157,17 @@ public static float3 psrdnoise(float2 pos, float2 per, float rot) // Final noise value is: // sum of ((radial weights) times (gradient math.dot vector from corner)) - float n = math.dot(t4, w); + float n = dot(t4, w); // Final analytical derivative (gradient of a sum of scalar products) - float2 dt0 = new float2(dtdx.x, dtdy.x) * 4.0f * t3.x; + float2 dt0 = float2(dtdx.x, dtdy.x) * 4.0f * t3.x; float2 dn0 = t4.x * g0 + dt0 * w.x; - float2 dt1 = new float2(dtdx.y, dtdy.y) * 4.0f * t3.y; + float2 dt1 = float2(dtdx.y, dtdy.y) * 4.0f * t3.y; float2 dn1 = t4.y * g1 + dt1 * w.y; - float2 dt2 = new float2(dtdx.z, dtdy.z) * 4.0f * t3.z; + float2 dt2 = float2(dtdx.z, dtdy.z) * 4.0f * t3.z; float2 dn2 = t4.z * g2 + dt2 * w.z; - return 11.0f * new float3(n, dn0 + dn1 + dn2); + return 11.0f * float3(n, dn0 + dn1 + dn2); } // @@ -188,21 +190,21 @@ public static float psrnoise(float2 pos, float2 per, float rot) // Offset y slightly to hide some rare artifacts pos.y += 0.001f; // Skew to hexagonal grid - float2 uv = new float2(pos.x + pos.y * 0.5f, pos.y); + float2 uv = float2(pos.x + pos.y * 0.5f, pos.y); - float2 i0 = math.floor(uv); - float2 f0 = math.fract(uv); + float2 i0 = floor(uv); + float2 f0 = fract(uv); // Traversal order - float2 i1 = (f0.x > f0.y) ? new float2(1.0f, 0.0f) : new float2(0.0f, 1.0f); + float2 i1 = (f0.x > f0.y) ? float2(1.0f, 0.0f) : float2(0.0f, 1.0f); // Unskewed grid points in (x,y) space - float2 p0 = new float2(i0.x - i0.y * 0.5f, i0.y); - float2 p1 = new float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); - float2 p2 = new float2(p0.x + 0.5f, p0.y + 1.0f); + float2 p0 = float2(i0.x - i0.y * 0.5f, i0.y); + float2 p1 = float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); + float2 p2 = float2(p0.x + 0.5f, p0.y + 1.0f); // Integer grid point indices in (u,v) space i1 = i0 + i1; - float2 i2 = i0 + new float2(1.0f, 1.0f); + float2 i2 = i0 + float2(1.0f, 1.0f); // Vectors in unskewed (x,y) coordinates from // each of the simplex corners to the evaluation point @@ -212,27 +214,27 @@ public static float psrnoise(float2 pos, float2 per, float rot) // Wrap i0, i1 and i2 to the desired period before gradient hashing: // wrap points in (x,y), map to (u,v) - float3 xw = math.mod(new float3(p0.x, p1.x, p2.x), per.x); - float3 yw = math.mod(new float3(p0.y, p1.y, p2.y), per.y); + float3 xw = mod(float3(p0.x, p1.x, p2.x), per.x); + float3 yw = mod(float3(p0.y, p1.y, p2.y), per.y); float3 iuw = xw + 0.5f * yw; float3 ivw = yw; // Create gradients from indices - float2 g0 = rgrad2(new float2(iuw.x, ivw.x), rot); - float2 g1 = rgrad2(new float2(iuw.y, ivw.y), rot); - float2 g2 = rgrad2(new float2(iuw.z, ivw.z), rot); + float2 g0 = rgrad2(float2(iuw.x, ivw.x), rot); + float2 g1 = rgrad2(float2(iuw.y, ivw.y), rot); + float2 g2 = rgrad2(float2(iuw.z, ivw.z), rot); // Gradients math.dot vectors to corresponding corners // (The derivatives of this are simply the gradients) - float3 w = new float3(math.dot(g0, d0), math.dot(g1, d1), math.dot(g2, d2)); + float3 w = float3(dot(g0, d0), dot(g1, d1), dot(g2, d2)); // Radial weights from corners // 0.8 is the square of 2/math.sqrt(5), the distance from // a grid point to the nearest simplex boundary - float3 t = 0.8f - new float3(math.dot(d0, d0), math.dot(d1, d1), math.dot(d2, d2)); + float3 t = 0.8f - float3(dot(d0, d0), dot(d1, d1), dot(d2, d2)); // Set influence of each surflet to zero outside radius math.sqrt(0.8) - t = math.max(t, 0.0f); + t = max(t, 0.0f); // Fourth power of t float3 t2 = t * t; @@ -240,7 +242,7 @@ public static float psrnoise(float2 pos, float2 per, float rot) // Final noise value is: // sum of ((radial weights) times (gradient math.dot vector from corner)) - float n = math.dot(t4, w); + float n = dot(t4, w); // Rescale to cover the range [-1,1] reasonably well return 11.0f * n; @@ -267,21 +269,21 @@ public static float3 srdnoise(float2 pos, float rot) // Offset y slightly to hide some rare artifacts pos.y += 0.001f; // Skew to hexagonal grid - float2 uv = new float2(pos.x + pos.y * 0.5f, pos.y); + float2 uv = float2(pos.x + pos.y * 0.5f, pos.y); - float2 i0 = math.floor(uv); - float2 f0 = math.fract(uv); + float2 i0 = floor(uv); + float2 f0 = fract(uv); // Traversal order - float2 i1 = (f0.x > f0.y) ? new float2(1.0f, 0.0f) : new float2(0.0f, 1.0f); + float2 i1 = (f0.x > f0.y) ? float2(1.0f, 0.0f) : float2(0.0f, 1.0f); // Unskewed grid points in (x,y) space - float2 p0 = new float2(i0.x - i0.y * 0.5f, i0.y); - float2 p1 = new float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); - float2 p2 = new float2(p0.x + 0.5f, p0.y + 1.0f); + float2 p0 = float2(i0.x - i0.y * 0.5f, i0.y); + float2 p1 = float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); + float2 p2 = float2(p0.x + 0.5f, p0.y + 1.0f); // Integer grid point indices in (u,v) space i1 = i0 + i1; - float2 i2 = i0 + new float2(1.0f, 1.0f); + float2 i2 = i0 + float2(1.0f, 1.0f); // Vectors in unskewed (x,y) coordinates from // each of the simplex corners to the evaluation point @@ -289,8 +291,8 @@ public static float3 srdnoise(float2 pos, float rot) float2 d1 = pos - p1; float2 d2 = pos - p2; - float3 x = new float3(p0.x, p1.x, p2.x); - float3 y = new float3(p0.y, p1.y, p2.y); + float3 x = float3(p0.x, p1.x, p2.x); + float3 y = float3(p0.y, p1.y, p2.y); float3 iuw = x + 0.5f * y; float3 ivw = y; @@ -299,22 +301,22 @@ public static float3 srdnoise(float2 pos, float rot) ivw = mod289(ivw); // Create gradients from indices - float2 g0 = rgrad2(new float2(iuw.x, ivw.x), rot); - float2 g1 = rgrad2(new float2(iuw.y, ivw.y), rot); - float2 g2 = rgrad2(new float2(iuw.z, ivw.z), rot); + float2 g0 = rgrad2(float2(iuw.x, ivw.x), rot); + float2 g1 = rgrad2(float2(iuw.y, ivw.y), rot); + float2 g2 = rgrad2(float2(iuw.z, ivw.z), rot); // Gradients math.dot vectors to corresponding corners // (The derivatives of this are simply the gradients) - float3 w = new float3(math.dot(g0, d0), math.dot(g1, d1), math.dot(g2, d2)); + float3 w = float3(dot(g0, d0), dot(g1, d1), dot(g2, d2)); // Radial weights from corners // 0.8 is the square of 2/math.sqrt(5), the distance from // a grid point to the nearest simplex boundary - float3 t = 0.8f - new float3(math.dot(d0, d0), math.dot(d1, d1), math.dot(d2, d2)); + float3 t = 0.8f - float3(dot(d0, d0), dot(d1, d1), dot(d2, d2)); // Partial derivatives for analytical gradient computation - float3 dtdx = -2.0f * new float3(d0.x, d1.x, d2.x); - float3 dtdy = -2.0f * new float3(d0.y, d1.y, d2.y); + float3 dtdx = -2.0f * float3(d0.x, d1.x, d2.x); + float3 dtdy = -2.0f * float3(d0.y, d1.y, d2.y); // Set influence of each surflet to zero outside radius math.sqrt(0.8) if (t.x < 0.0f) @@ -343,17 +345,17 @@ public static float3 srdnoise(float2 pos, float rot) // Final noise value is: // sum of ((radial weights) times (gradient math.dot vector from corner)) - float n = math.dot(t4, w); + float n = dot(t4, w); // Final analytical derivative (gradient of a sum of scalar products) - float2 dt0 = new float2(dtdx.x, dtdy.x) * 4.0f * t3.x; + float2 dt0 = float2(dtdx.x, dtdy.x) * 4.0f * t3.x; float2 dn0 = t4.x * g0 + dt0 * w.x; - float2 dt1 = new float2(dtdx.y, dtdy.y) * 4.0f * t3.y; + float2 dt1 = float2(dtdx.y, dtdy.y) * 4.0f * t3.y; float2 dn1 = t4.y * g1 + dt1 * w.y; - float2 dt2 = new float2(dtdx.z, dtdy.z) * 4.0f * t3.z; + float2 dt2 = float2(dtdx.z, dtdy.z) * 4.0f * t3.z; float2 dn2 = t4.z * g2 + dt2 * w.z; - return 11.0f * new float3(n, dn0 + dn1 + dn2); + return 11.0f * float3(n, dn0 + dn1 + dn2); } // @@ -375,21 +377,21 @@ public static float srnoise(float2 pos, float rot) // Offset y slightly to hide some rare artifacts pos.y += 0.001f; // Skew to hexagonal grid - float2 uv = new float2(pos.x + pos.y * 0.5f, pos.y); + float2 uv = float2(pos.x + pos.y * 0.5f, pos.y); - float2 i0 = math.floor(uv); - float2 f0 = math.fract(uv); + float2 i0 = floor(uv); + float2 f0 = fract(uv); // Traversal order - float2 i1 = (f0.x > f0.y) ? new float2(1.0f, 0.0f) : new float2(0.0f, 1.0f); + float2 i1 = (f0.x > f0.y) ? float2(1.0f, 0.0f) : float2(0.0f, 1.0f); // Unskewed grid points in (x,y) space - float2 p0 = new float2(i0.x - i0.y * 0.5f, i0.y); - float2 p1 = new float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); - float2 p2 = new float2(p0.x + 0.5f, p0.y + 1.0f); + float2 p0 = float2(i0.x - i0.y * 0.5f, i0.y); + float2 p1 = float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); + float2 p2 = float2(p0.x + 0.5f, p0.y + 1.0f); // Integer grid point indices in (u,v) space i1 = i0 + i1; - float2 i2 = i0 + new float2(1.0f, 1.0f); + float2 i2 = i0 + float2(1.0f, 1.0f); // Vectors in unskewed (x,y) coordinates from // each of the simplex corners to the evaluation point @@ -399,8 +401,8 @@ public static float srnoise(float2 pos, float rot) // Wrap i0, i1 and i2 to the desired period before gradient hashing: // wrap points in (x,y), map to (u,v) - float3 x = new float3(p0.x, p1.x, p2.x); - float3 y = new float3(p0.y, p1.y, p2.y); + float3 x = float3(p0.x, p1.x, p2.x); + float3 y = float3(p0.y, p1.y, p2.y); float3 iuw = x + 0.5f * y; float3 ivw = y; @@ -409,21 +411,21 @@ public static float srnoise(float2 pos, float rot) ivw = mod289(ivw); // Create gradients from indices - float2 g0 = rgrad2(new float2(iuw.x, ivw.x), rot); - float2 g1 = rgrad2(new float2(iuw.y, ivw.y), rot); - float2 g2 = rgrad2(new float2(iuw.z, ivw.z), rot); + float2 g0 = rgrad2(float2(iuw.x, ivw.x), rot); + float2 g1 = rgrad2(float2(iuw.y, ivw.y), rot); + float2 g2 = rgrad2(float2(iuw.z, ivw.z), rot); // Gradients math.dot vectors to corresponding corners // (The derivatives of this are simply the gradients) - float3 w = new float3(math.dot(g0, d0), math.dot(g1, d1), math.dot(g2, d2)); + float3 w = float3(dot(g0, d0), dot(g1, d1), dot(g2, d2)); // Radial weights from corners // 0.8 is the square of 2/math.sqrt(5), the distance from // a grid point to the nearest simplex boundary - float3 t = 0.8f - new float3(math.dot(d0, d0), math.dot(d1, d1), math.dot(d2, d2)); + float3 t = 0.8f - float3(dot(d0, d0), dot(d1, d1), dot(d2, d2)); // Set influence of each surflet to zero outside radius math.sqrt(0.8) - t = math.max(t, 0.0f); + t = max(t, 0.0f); // Fourth power of t float3 t2 = t * t; @@ -431,7 +433,7 @@ public static float srnoise(float2 pos, float rot) // Final noise value is: // sum of ((radial weights) times (gradient math.dot vector from corner)) - float n = math.dot(t4, w); + float n = dot(t4, w); // Rescale to cover the range [-1,1] reasonably well return 11.0f * n; From 4e7541e7dbf7984046eea72aa5feab8751e45491 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Wed, 20 Jun 2018 15:23:29 +0200 Subject: [PATCH 039/437] Specialized matrix Euler constructors for all 6 rotation orders. Implementations now leverage wide sincos calculations. --- src/Unity.Mathematics.Tests/TestMatrix.cs | 130 +++++++++---- src/Unity.Mathematics/matrix.cs | 216 ++++++++++++++++++++-- 2 files changed, 292 insertions(+), 54 deletions(-) diff --git a/src/Unity.Mathematics.Tests/TestMatrix.cs b/src/Unity.Mathematics.Tests/TestMatrix.cs index 84ed5bdd..9119099a 100644 --- a/src/Unity.Mathematics.Tests/TestMatrix.cs +++ b/src/Unity.Mathematics.Tests/TestMatrix.cs @@ -387,23 +387,38 @@ public void float4x4_rotate_z() [Test] public void float3x3_euler() { - float3x3 m0 = float3x3.euler(test_angles); - float3x3 m0_xyz = float3x3.euler(test_angles, RotationOrder.XYZ); - float3x3 m0_xzy = float3x3.euler(test_angles, RotationOrder.XZY); - float3x3 m0_yxz = float3x3.euler(test_angles, RotationOrder.YXZ); - float3x3 m0_yzx = float3x3.euler(test_angles, RotationOrder.YZX); - float3x3 m0_zxy = float3x3.euler(test_angles, RotationOrder.ZXY); - float3x3 m0_zyx = float3x3.euler(test_angles, RotationOrder.ZYX); - - float3x3 m1 = float3x3.euler(test_angles.x, test_angles.y, test_angles.z); - float3x3 m1_xyz = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.XYZ); - float3x3 m1_xzy = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.XZY); - float3x3 m1_yxz = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.YXZ); - float3x3 m1_yzx = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.YZX); - float3x3 m1_zxy = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.ZXY); - float3x3 m1_zyx = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.ZYX); - - TestUtils.AreEqual(m0, test3x3_zxy, 0.0001f); + float3x3 m0_xyz = float3x3.eulerXYZ(test_angles); + float3x3 m0_xzy = float3x3.eulerXZY(test_angles); + float3x3 m0_yxz = float3x3.eulerYXZ(test_angles); + float3x3 m0_yzx = float3x3.eulerYZX(test_angles); + float3x3 m0_zxy = float3x3.eulerZXY(test_angles); + float3x3 m0_zyx = float3x3.eulerZYX(test_angles); + + float3x3 m1 = float3x3.euler(test_angles); + float3x3 m1_xyz = float3x3.euler(test_angles, RotationOrder.XYZ); + float3x3 m1_xzy = float3x3.euler(test_angles, RotationOrder.XZY); + float3x3 m1_yxz = float3x3.euler(test_angles, RotationOrder.YXZ); + float3x3 m1_yzx = float3x3.euler(test_angles, RotationOrder.YZX); + float3x3 m1_zxy = float3x3.euler(test_angles, RotationOrder.ZXY); + float3x3 m1_zyx = float3x3.euler(test_angles, RotationOrder.ZYX); + + + float3x3 m2_xyz = float3x3.eulerXYZ(test_angles.x, test_angles.y, test_angles.z); + float3x3 m2_xzy = float3x3.eulerXZY(test_angles.x, test_angles.y, test_angles.z); + float3x3 m2_yxz = float3x3.eulerYXZ(test_angles.x, test_angles.y, test_angles.z); + float3x3 m2_yzx = float3x3.eulerYZX(test_angles.x, test_angles.y, test_angles.z); + float3x3 m2_zxy = float3x3.eulerZXY(test_angles.x, test_angles.y, test_angles.z); + float3x3 m2_zyx = float3x3.eulerZYX(test_angles.x, test_angles.y, test_angles.z); + + float3x3 m3 = float3x3.euler(test_angles.x, test_angles.y, test_angles.z); + float3x3 m3_xyz = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.XYZ); + float3x3 m3_xzy = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.XZY); + float3x3 m3_yxz = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.YXZ); + float3x3 m3_yzx = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.YZX); + float3x3 m3_zxy = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.ZXY); + float3x3 m3_zyx = float3x3.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.ZYX); + + TestUtils.AreEqual(m0_xyz, test3x3_xyz, 0.0001f); TestUtils.AreEqual(m0_yzx, test3x3_yzx, 0.0001f); TestUtils.AreEqual(m0_zxy, test3x3_zxy, 0.0001f); @@ -418,28 +433,59 @@ public void float3x3_euler() TestUtils.AreEqual(m1_xzy, test3x3_xzy, 0.0001f); TestUtils.AreEqual(m1_yxz, test3x3_yxz, 0.0001f); TestUtils.AreEqual(m1_zyx, test3x3_zyx, 0.0001f); + + + TestUtils.AreEqual(m2_xyz, test3x3_xyz, 0.0001f); + TestUtils.AreEqual(m2_yzx, test3x3_yzx, 0.0001f); + TestUtils.AreEqual(m2_zxy, test3x3_zxy, 0.0001f); + TestUtils.AreEqual(m2_xzy, test3x3_xzy, 0.0001f); + TestUtils.AreEqual(m2_yxz, test3x3_yxz, 0.0001f); + TestUtils.AreEqual(m2_zyx, test3x3_zyx, 0.0001f); + + TestUtils.AreEqual(m3, test3x3_zxy, 0.0001f); + TestUtils.AreEqual(m3_xyz, test3x3_xyz, 0.0001f); + TestUtils.AreEqual(m3_yzx, test3x3_yzx, 0.0001f); + TestUtils.AreEqual(m3_zxy, test3x3_zxy, 0.0001f); + TestUtils.AreEqual(m3_xzy, test3x3_xzy, 0.0001f); + TestUtils.AreEqual(m3_yxz, test3x3_yxz, 0.0001f); + TestUtils.AreEqual(m3_zyx, test3x3_zyx, 0.0001f); } [Test] public void float4x4_euler() { - float4x4 m0 = float4x4.euler(test_angles); - float4x4 m0_xyz = float4x4.euler(test_angles, RotationOrder.XYZ); - float4x4 m0_xzy = float4x4.euler(test_angles, RotationOrder.XZY); - float4x4 m0_yxz = float4x4.euler(test_angles, RotationOrder.YXZ); - float4x4 m0_yzx = float4x4.euler(test_angles, RotationOrder.YZX); - float4x4 m0_zxy = float4x4.euler(test_angles, RotationOrder.ZXY); - float4x4 m0_zyx = float4x4.euler(test_angles, RotationOrder.ZYX); - - float4x4 m1 = float4x4.euler(test_angles.x, test_angles.y, test_angles.z); - float4x4 m1_xyz = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.XYZ); - float4x4 m1_xzy = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.XZY); - float4x4 m1_yxz = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.YXZ); - float4x4 m1_yzx = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.YZX); - float4x4 m1_zxy = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.ZXY); - float4x4 m1_zyx = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.ZYX); - - TestUtils.AreEqual(m0, test4x4_zxy, 0.0001f); + float4x4 m0_xyz = float4x4.eulerXYZ(test_angles); + float4x4 m0_xzy = float4x4.eulerXZY(test_angles); + float4x4 m0_yxz = float4x4.eulerYXZ(test_angles); + float4x4 m0_yzx = float4x4.eulerYZX(test_angles); + float4x4 m0_zxy = float4x4.eulerZXY(test_angles); + float4x4 m0_zyx = float4x4.eulerZYX(test_angles); + + float4x4 m1 = float4x4.euler(test_angles); + float4x4 m1_xyz = float4x4.euler(test_angles, RotationOrder.XYZ); + float4x4 m1_xzy = float4x4.euler(test_angles, RotationOrder.XZY); + float4x4 m1_yxz = float4x4.euler(test_angles, RotationOrder.YXZ); + float4x4 m1_yzx = float4x4.euler(test_angles, RotationOrder.YZX); + float4x4 m1_zxy = float4x4.euler(test_angles, RotationOrder.ZXY); + float4x4 m1_zyx = float4x4.euler(test_angles, RotationOrder.ZYX); + + + float4x4 m2_xyz = float4x4.eulerXYZ(test_angles.x, test_angles.y, test_angles.z); + float4x4 m2_xzy = float4x4.eulerXZY(test_angles.x, test_angles.y, test_angles.z); + float4x4 m2_yxz = float4x4.eulerYXZ(test_angles.x, test_angles.y, test_angles.z); + float4x4 m2_yzx = float4x4.eulerYZX(test_angles.x, test_angles.y, test_angles.z); + float4x4 m2_zxy = float4x4.eulerZXY(test_angles.x, test_angles.y, test_angles.z); + float4x4 m2_zyx = float4x4.eulerZYX(test_angles.x, test_angles.y, test_angles.z); + + float4x4 m3 = float4x4.euler(test_angles.x, test_angles.y, test_angles.z); + float4x4 m3_xyz = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.XYZ); + float4x4 m3_xzy = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.XZY); + float4x4 m3_yxz = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.YXZ); + float4x4 m3_yzx = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.YZX); + float4x4 m3_zxy = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.ZXY); + float4x4 m3_zyx = float4x4.euler(test_angles.x, test_angles.y, test_angles.z, RotationOrder.ZYX); + + TestUtils.AreEqual(m0_xyz, test4x4_xyz, 0.0001f); TestUtils.AreEqual(m0_yzx, test4x4_yzx, 0.0001f); TestUtils.AreEqual(m0_zxy, test4x4_zxy, 0.0001f); @@ -454,6 +500,22 @@ public void float4x4_euler() TestUtils.AreEqual(m1_xzy, test4x4_xzy, 0.0001f); TestUtils.AreEqual(m1_yxz, test4x4_yxz, 0.0001f); TestUtils.AreEqual(m1_zyx, test4x4_zyx, 0.0001f); + + + TestUtils.AreEqual(m2_xyz, test4x4_xyz, 0.0001f); + TestUtils.AreEqual(m2_yzx, test4x4_yzx, 0.0001f); + TestUtils.AreEqual(m2_zxy, test4x4_zxy, 0.0001f); + TestUtils.AreEqual(m2_xzy, test4x4_xzy, 0.0001f); + TestUtils.AreEqual(m2_yxz, test4x4_yxz, 0.0001f); + TestUtils.AreEqual(m2_zyx, test4x4_zyx, 0.0001f); + + TestUtils.AreEqual(m3, test4x4_zxy, 0.0001f); + TestUtils.AreEqual(m3_xyz, test4x4_xyz, 0.0001f); + TestUtils.AreEqual(m3_yzx, test4x4_yzx, 0.0001f); + TestUtils.AreEqual(m3_zxy, test4x4_zxy, 0.0001f); + TestUtils.AreEqual(m3_xzy, test4x4_xzy, 0.0001f); + TestUtils.AreEqual(m3_yxz, test4x4_yxz, 0.0001f); + TestUtils.AreEqual(m3_zyx, test4x4_zyx, 0.0001f); } [Test] diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index d1b82fda..fd68daed 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -1,3 +1,4 @@ +using System.Runtime.CompilerServices; using static Unity.Mathematics.math; namespace Unity.Mathematics @@ -101,34 +102,117 @@ public float3x3(quaternion rotation) 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f); - public static float3x3 euler(float x, float y, float z, RotationOrder order = RotationOrder.ZXY) + public static float3x3 eulerXYZ(float3 xyz) + { + // return mul(rotateZ(xyz.z), mul(rotateY(xyz.y), rotateX(xyz.x))); + float3 s, c; + sincos(xyz, out s, out c); + return float3x3( + c.y * c.z, c.z * s.x * s.y - c.x * s.z, c.x * c.z * s.y + s.x * s.z, + c.y * s.z, c.x * c.z + s.x * s.y * s.z, c.x * s.y * s.z - c.z * s.x, + -s.y, c.y * s.x, c.x * c.y + ); + } + + public static float3x3 eulerXZY(float3 xyz) + { + // return mul(rotateY(xyz.y), mul(rotateZ(xyz.z), rotateX(xyz.x))); } + float3 s, c; + sincos(xyz, out s, out c); + return float3x3( + c.y * c.z, s.x * s.y - c.x * c.y * s.z, c.x * s.y + c.y * s.x * s.z, + s.z, c.x * c.z, -c.z * s.x, + -c.z * s.y, c.y * s.x + c.x * s.y * s.z, c.x * c.y - s.x * s.y * s.z + ); + } + public static float3x3 eulerYXZ(float3 xyz) + { + // return mul(rotateZ(xyz.z), mul(rotateX(xyz.x), rotateY(xyz.y))); + float3 s, c; + sincos(xyz, out s, out c); + return float3x3( + c.y * c.z - s.x * s.y * s.z, -c.x * s.z, c.z * s.y + c.y * s.x * s.z, + c.z * s.x * s.y + c.y * s.z, c.x * c.z, s.y * s.z - c.y * c.z * s.x, + -c.x * s.y, s.x, c.x * c.y + ); + } + public static float3x3 eulerYZX(float3 xyz) + { + // return mul(rotateX(xyz.x), mul(rotateZ(xyz.z), rotateY(xyz.y))); + float3 s, c; + sincos(xyz, out s, out c); + return float3x3( + c.y * c.z, -s.z, c.z * s.y, + s.x * s.y + c.x * c.y * s.z, c.x * c.z, c.x * s.y * s.z - c.y * s.x, + c.y * s.x * s.z - c.x * s.y, c.z * s.x, c.x * c.y + s.x * s.y * s.z + ); + } + public static float3x3 eulerZXY(float3 xyz) + { + // return mul(rotateY(xyz.y), mul(rotateX(xyz.x), rotateZ(xyz.z))); + float3 s, c; + sincos(xyz, out s, out c); + return float3x3( + c.y * c.z + s.x * s.y * s.z, c.z * s.x * s.y - c.y * s.z, c.x * s.y, + c.x * s.z, c.x * c.z, -s.x, + c.y * s.x * s.z - c.z * s.y, c.y * c.z * s.x + s.y * s.z, c.x * c.y + ); + } + public static float3x3 eulerZYX(float3 xyz) + { + // return mul(rotateX(xyz.x), mul(rotateY(xyz.y), rotateZ(xyz.z))); + float3 s, c; + sincos(xyz, out s, out c); + return float3x3( + c.y * c.z, -c.y * s.z, s.y, + c.z * s.x * s.y + c.x * s.z, c.x * c.z - s.x * s.y * s.z, -c.y * s.x, + s.x * s.z - c.x * c.z * s.y, c.z * s.x + c.x * s.y * s.z, c.x * c.y + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 eulerXYZ(float x, float y, float z) { return eulerXYZ(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 eulerXZY(float x, float y, float z) { return eulerXZY(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 eulerYXZ(float x, float y, float z) { return eulerYXZ(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 eulerYZX(float x, float y, float z) { return eulerYZX(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 eulerZXY(float x, float y, float z) { return eulerZXY(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 eulerZYX(float x, float y, float z) { return eulerZYX(float3(x, y, z)); } + + public static float3x3 euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) { switch (order) { case RotationOrder.XYZ: - return mul(rotateZ(z), mul(rotateY(y), rotateX(x))); + return eulerXYZ(xyz); case RotationOrder.XZY: - return mul(rotateY(y), mul(rotateZ(z), rotateX(x))); + return eulerXZY(xyz); case RotationOrder.YXZ: - return mul(rotateZ(z), mul(rotateX(x), rotateY(y))); + return eulerYXZ(xyz); case RotationOrder.YZX: - return mul(rotateX(x), mul(rotateZ(z), rotateY(y))); + return eulerYZX(xyz); case RotationOrder.ZXY: - return mul(rotateY(y), mul(rotateX(x), rotateZ(z))); + return eulerZXY(xyz); case RotationOrder.ZYX: - return mul(rotateX(x), mul(rotateY(y), rotateZ(z))); + return eulerZYX(xyz); default: return float3x3.identity; } } - public static float3x3 euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 euler(float x, float y, float z, RotationOrder order = RotationOrder.ZXY) { - return euler(xyz.x, xyz.y, xyz.z, order); + return euler(float3(x, y, z), order); } public static float3x3 rotateX(float angle) { + // {{1, 0, 0}, {0, c_0, -s_0}, {0, s_0, c_0}} float s, c; sincos(angle, out s, out c); return float3x3(1.0f, 0.0f, 0.0f, @@ -138,6 +222,7 @@ public static float3x3 rotateX(float angle) public static float3x3 rotateY(float angle) { + // {{c_1, 0, s_1}, {0, 1, 0}, {-s_1, 0, c_1}} float s, c; sincos(angle, out s, out c); return float3x3(c, 0.0f, s, @@ -147,6 +232,7 @@ public static float3x3 rotateY(float angle) public static float3x3 rotateZ(float angle) { + // {{c_2, -s_2, 0}, {s_2, c_2, 0}, {0, 0, 1}} float s, c; sincos(angle, out s, out c); return float3x3(c, -s, 0.0f, @@ -251,35 +337,123 @@ public float4x4(quaternion rotation, float3 translation) 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f); - - public static float4x4 euler(float x, float y, float z, RotationOrder order = RotationOrder.ZXY) + public static float4x4 eulerXYZ(float3 xyz) + { + // return mul(rotateZ(xyz.z), mul(rotateY(xyz.y), rotateX(xyz.x))); + float3 s, c; + sincos(xyz, out s, out c); + return float4x4( + c.y * c.z, c.z * s.x * s.y - c.x * s.z, c.x * c.z * s.y + s.x * s.z, 0.0f, + c.y * s.z, c.x * c.z + s.x * s.y * s.z, c.x * s.y * s.z - c.z * s.x, 0.0f, + -s.y, c.y * s.x, c.x * c.y, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + } + + public static float4x4 eulerXZY(float3 xyz) + { + // return mul(rotateY(xyz.y), mul(rotateZ(xyz.z), rotateX(xyz.x))); } + float3 s, c; + sincos(xyz, out s, out c); + return float4x4( + c.y * c.z, s.x * s.y - c.x * c.y * s.z, c.x * s.y + c.y * s.x * s.z, 0.0f, + s.z, c.x * c.z, -c.z * s.x, 0.0f, + -c.z * s.y, c.y * s.x + c.x * s.y * s.z, c.x * c.y - s.x * s.y * s.z, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + } + public static float4x4 eulerYXZ(float3 xyz) + { + // return mul(rotateZ(xyz.z), mul(rotateX(xyz.x), rotateY(xyz.y))); + float3 s, c; + sincos(xyz, out s, out c); + return float4x4( + c.y * c.z - s.x * s.y * s.z, -c.x * s.z, c.z * s.y + c.y * s.x * s.z, 0.0f, + c.z * s.x * s.y + c.y * s.z, c.x * c.z, s.y * s.z - c.y * c.z * s.x, 0.0f, + -c.x * s.y, s.x, c.x * c.y, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + } + public static float4x4 eulerYZX(float3 xyz) + { + // return mul(rotateX(xyz.x), mul(rotateZ(xyz.z), rotateY(xyz.y))); + float3 s, c; + sincos(xyz, out s, out c); + return float4x4( + c.y * c.z, -s.z, c.z * s.y, 0.0f, + s.x * s.y + c.x * c.y * s.z, c.x * c.z, c.x * s.y * s.z - c.y * s.x, 0.0f, + c.y * s.x * s.z - c.x * s.y, c.z * s.x, c.x * c.y + s.x * s.y * s.z, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + } + public static float4x4 eulerZXY(float3 xyz) + { + // return mul(rotateY(xyz.y), mul(rotateX(xyz.x), rotateZ(xyz.z))); + float3 s, c; + sincos(xyz, out s, out c); + return float4x4( + c.y * c.z + s.x * s.y * s.z, c.z * s.x * s.y - c.y * s.z, c.x * s.y, 0.0f, + c.x * s.z, c.x * c.z, -s.x, 0.0f, + c.y * s.x * s.z - c.z * s.y, c.y * c.z * s.x + s.y * s.z, c.x * c.y, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + } + public static float4x4 eulerZYX(float3 xyz) + { + // return mul(rotateX(xyz.x), mul(rotateY(xyz.y), rotateZ(xyz.z))); + float3 s, c; + sincos(xyz, out s, out c); + return float4x4( + c.y * c.z, -c.y * s.z, s.y, 0.0f, + c.z * s.x * s.y + c.x * s.z, c.x * c.z - s.x * s.y * s.z, -c.y * s.x, 0.0f, + s.x * s.z - c.x * c.z * s.y, c.z * s.x + c.x * s.y * s.z, c.x * c.y, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4x4 eulerXYZ(float x, float y, float z) { return eulerXYZ(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4x4 eulerXZY(float x, float y, float z) { return eulerXZY(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4x4 eulerYXZ(float x, float y, float z) { return eulerYXZ(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4x4 eulerYZX(float x, float y, float z) { return eulerYZX(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4x4 eulerZXY(float x, float y, float z) { return eulerZXY(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4x4 eulerZYX(float x, float y, float z) { return eulerZYX(float3(x, y, z)); } + + public static float4x4 euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) { - switch(order) + switch (order) { case RotationOrder.XYZ: - return mul(rotateZ(z), mul(rotateY(y), rotateX(x))); + return eulerXYZ(xyz); case RotationOrder.XZY: - return mul(rotateY(y), mul(rotateZ(z), rotateX(x))); + return eulerXZY(xyz); case RotationOrder.YXZ: - return mul(rotateZ(z), mul(rotateX(x), rotateY(y))); + return eulerYXZ(xyz); case RotationOrder.YZX: - return mul(rotateX(x), mul(rotateZ(z), rotateY(y))); + return eulerYZX(xyz); case RotationOrder.ZXY: - return mul(rotateY(y), mul(rotateX(x), rotateZ(z))); + return eulerZXY(xyz); case RotationOrder.ZYX: - return mul(rotateX(x), mul(rotateY(y), rotateZ(z))); + return eulerZYX(xyz); default: return float4x4.identity; } } - public static float4x4 euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4x4 euler(float x, float y, float z, RotationOrder order = RotationOrder.ZXY) { - return euler(xyz.x, xyz.y, xyz.z, order); + return euler(float3(x, y, z), order); } public static float4x4 rotateX(float angle) { + // {{1, 0, 0}, {0, c_0, -s_0}, {0, s_0, c_0}} float s, c; sincos(angle, out s, out c); return float4x4(1.0f, 0.0f, 0.0f, 0.0f, @@ -291,6 +465,7 @@ public static float4x4 rotateX(float angle) public static float4x4 rotateY(float angle) { + // {{c_1, 0, s_1}, {0, 1, 0}, {-s_1, 0, c_1}} float s, c; sincos(angle, out s, out c); return float4x4(c, 0.0f, s, 0.0f, @@ -302,6 +477,7 @@ public static float4x4 rotateY(float angle) public static float4x4 rotateZ(float angle) { + // {{c_2, -s_2, 0}, {s_2, c_2, 0}, {0, 0, 1}} float s, c; sincos(angle, out s, out c); return float4x4(c, -s, 0.0f, 0.0f, From baab41a2e4e8ed64b44a30fadde08cc6fca9ef2b Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Thu, 21 Jun 2018 10:26:10 +0200 Subject: [PATCH 040/437] Euler constructors for quaternions for the 6 rotation orders. --- src/Unity.Mathematics/matrix.cs | 2 +- src/Unity.Mathematics/quaternion.cs | 57 ++++++++++++++++++++++++----- 2 files changed, 49 insertions(+), 10 deletions(-) diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index fd68daed..ed05c5ad 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -102,7 +102,7 @@ public float3x3(quaternion rotation) 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f); - public static float3x3 eulerXYZ(float3 xyz) + public static float3x3 eulerXYZ(float3 xyz) { // return mul(rotateZ(xyz.z), mul(rotateY(xyz.y), rotateX(xyz.x))); float3 s, c; diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index b4dbe4d9..62dfc084 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -76,31 +76,70 @@ public static quaternion axisAngle(float3 axis, float angle) return quaternion(float4(math.normalize(axis) * sina, cosa)); } - public static quaternion euler(float x, float y, float z, RotationOrder order = RotationOrder.ZXY) + public static quaternion eulerXYZ(float3 xyz) + { + return mul(rotateZ(xyz.z), mul(rotateY(xyz.y), rotateX(xyz.x))); + } + + public static quaternion eulerXZY(float3 xyz) + { + return mul(rotateY(xyz.y), mul(rotateZ(xyz.z), rotateX(xyz.x))); + } + public static quaternion eulerYXZ(float3 xyz) + { + return mul(rotateZ(xyz.z), mul(rotateX(xyz.x), rotateY(xyz.y))); + } + public static quaternion eulerYZX(float3 xyz) + { + return mul(rotateX(xyz.x), mul(rotateZ(xyz.z), rotateY(xyz.y))); + } + public static quaternion eulerZXY(float3 xyz) + { + return mul(rotateY(xyz.y), mul(rotateX(xyz.x), rotateZ(xyz.z))); + } + public static quaternion eulerZYX(float3 xyz) + { + return mul(rotateX(xyz.x), mul(rotateY(xyz.y), rotateZ(xyz.z))); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion eulerXYZ(float x, float y, float z) { return eulerXYZ(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion eulerXZY(float x, float y, float z) { return eulerXZY(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion eulerYXZ(float x, float y, float z) { return eulerYXZ(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion eulerYZX(float x, float y, float z) { return eulerYZX(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion eulerZXY(float x, float y, float z) { return eulerZXY(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion eulerZYX(float x, float y, float z) { return eulerZYX(float3(x, y, z)); } + + public static quaternion euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) { switch (order) { case RotationOrder.XYZ: - return mul(rotateZ(z), mul(rotateY(y), rotateX(x))); + return eulerXYZ(xyz); case RotationOrder.XZY: - return mul(rotateY(y), mul(rotateZ(z), rotateX(x))); + return eulerXZY(xyz); case RotationOrder.YXZ: - return mul(rotateZ(z), mul(rotateX(x), rotateY(y))); + return eulerYXZ(xyz); case RotationOrder.YZX: - return mul(rotateX(x), mul(rotateZ(z), rotateY(y))); + return eulerYZX(xyz); case RotationOrder.ZXY: - return mul(rotateY(y), mul(rotateX(x), rotateZ(z))); + return eulerZXY(xyz); case RotationOrder.ZYX: - return mul(rotateX(x), mul(rotateY(y), rotateZ(z))); + return eulerZYX(xyz); default: return quaternion.identity; } } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static quaternion euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) + public static quaternion euler(float x, float y, float z, RotationOrder order = RotationOrder.ZXY) { - return euler(xyz.x, xyz.y, xyz.z, order); + return euler(float3(x, y, z), order); } [MethodImpl(MethodImplOptions.AggressiveInlining)] From f114923a513f9e47a6a39a868ed5ae878dcc61c3 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Thu, 21 Jun 2018 11:42:43 +0200 Subject: [PATCH 041/437] Construct euler quaternions directly instead of composing them from rotateX/rotateY/rotateZ and quaternion multiplication. Still scalar implementation. --- src/Unity.Mathematics/quaternion.cs | 60 ++++++++++++++++++++++++++--- 1 file changed, 54 insertions(+), 6 deletions(-) diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index 62dfc084..e4420cfa 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -78,28 +78,76 @@ public static quaternion axisAngle(float3 axis, float angle) public static quaternion eulerXYZ(float3 xyz) { - return mul(rotateZ(xyz.z), mul(rotateY(xyz.y), rotateX(xyz.x))); + // return mul(rotateZ(xyz.z), mul(rotateY(xyz.y), rotateX(xyz.x))); + float3 s, c; + sincos(0.5f * xyz, out s, out c); + return quaternion( + s.x * c.y * c.z - s.y * s.z * c.x, + s.y * c.x * c.z + s.x * s.z * c.y, + s.z * c.x * c.y - s.x * s.y * c.z, + s.x * s.y * s.z + c.x * c.y * c.z + ); } public static quaternion eulerXZY(float3 xyz) { - return mul(rotateY(xyz.y), mul(rotateZ(xyz.z), rotateX(xyz.x))); + // return mul(rotateY(xyz.y), mul(rotateZ(xyz.z), rotateX(xyz.x))); + float3 s, c; + sincos(0.5f * xyz, out s, out c); + return quaternion( + c.y * c.z * s.x + s.y * s.z * c.x, + c.y * s.z * s.x + s.y * c.z * c.x, + c.y * s.z * c.x - s.y * c.z * s.x, + c.y * c.z * c.x - s.y * s.z * s.x + ); } public static quaternion eulerYXZ(float3 xyz) { - return mul(rotateZ(xyz.z), mul(rotateX(xyz.x), rotateY(xyz.y))); + // return mul(rotateZ(xyz.z), mul(rotateX(xyz.x), rotateY(xyz.y))); + float3 s, c; + sincos(0.5f * xyz, out s, out c); + return quaternion( + c.z * s.x * c.y - s.z * c.x * s.y, + c.z * c.x * s.y + s.z * s.x * c.y, + c.z * s.x * s.y + s.z * c.x * c.y, + c.z * c.x * c.y - s.z * s.x * s.y + ); } public static quaternion eulerYZX(float3 xyz) { - return mul(rotateX(xyz.x), mul(rotateZ(xyz.z), rotateY(xyz.y))); + // return mul(rotateX(xyz.x), mul(rotateZ(xyz.z), rotateY(xyz.y))); + float3 s, c; + sincos(0.5f * xyz, out s, out c); + return quaternion( + s.x * c.z * c.y - c.x * s.z * s.y, + c.x * c.z * s.y - s.x * s.z * c.y, + c.x * s.z * c.y + s.x * c.z * s.y, + c.x * c.z * c.y + s.x * s.z * s.y + ); } public static quaternion eulerZXY(float3 xyz) { - return mul(rotateY(xyz.y), mul(rotateX(xyz.x), rotateZ(xyz.z))); + // return mul(rotateY(xyz.y), mul(rotateX(xyz.x), rotateZ(xyz.z))); + float3 s, c; + sincos(0.5f * xyz, out s, out c); + return quaternion( + c.y * s.x * c.z + s.y * c.x * s.z, + s.y * c.x * c.z - c.y * s.x * s.z, + c.y * c.x * s.z - s.y * s.x * c.z, + c.y * c.x * c.z + s.y * s.x * s.z + ); } public static quaternion eulerZYX(float3 xyz) { - return mul(rotateX(xyz.x), mul(rotateY(xyz.y), rotateZ(xyz.z))); + // return mul(rotateX(xyz.x), mul(rotateY(xyz.y), rotateZ(xyz.z))); + float3 s, c; + sincos(0.5f * xyz, out s, out c); + return quaternion( + c.x * s.y * s.z + s.x * c.y * c.z, + c.x * s.y * c.z - s.x * c.y * s.z, + c.x * c.y * s.z + s.x * s.y * c.z, + c.x * c.y * c.z - s.x * s.y * s.z + ); } [MethodImpl(MethodImplOptions.AggressiveInlining)] From e83c4209e0a3d94caa9722928893ddaf662b4137 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Thu, 21 Jun 2018 12:24:55 +0200 Subject: [PATCH 042/437] Vector versions of Euler constructors for quaternions --- src/Unity.Mathematics/quaternion.cs | 54 ++++++++++++++++------------- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index e4420cfa..99a9ae1e 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -82,10 +82,11 @@ public static quaternion eulerXYZ(float3 xyz) float3 s, c; sincos(0.5f * xyz, out s, out c); return quaternion( - s.x * c.y * c.z - s.y * s.z * c.x, - s.y * c.x * c.z + s.x * s.z * c.y, - s.z * c.x * c.y - s.x * s.y * c.z, - s.x * s.y * s.z + c.x * c.y * c.z + // s.x * c.y * c.z - s.y * s.z * c.x, + // s.y * c.x * c.z + s.x * s.z * c.y, + // s.z * c.x * c.y - s.x * s.y * c.z, + // c.x * c.y * c.z + s.y * s.z * s.x + float4(s.xyz, c.x) * c.yxxy * c.zzyz + s.yxxy * s.zzyz * float4(c.xyz, s.x) * float4(-1.0f, 1.0f, -1.0f, 1.0f) ); } @@ -95,10 +96,11 @@ public static quaternion eulerXZY(float3 xyz) float3 s, c; sincos(0.5f * xyz, out s, out c); return quaternion( - c.y * c.z * s.x + s.y * s.z * c.x, - c.y * s.z * s.x + s.y * c.z * c.x, - c.y * s.z * c.x - s.y * c.z * s.x, - c.y * c.z * c.x - s.y * s.z * s.x + // s.x * c.y * c.z + s.y * s.z * c.x, + // s.y * c.x * c.z + s.x * s.z * c.y, + // s.z * c.x * c.y - s.x * s.y * c.z, + // c.x * c.y * c.z - s.y * s.z * s.x + float4(s.xyz, c.x) * c.yxxy * c.zzyz + s.yxxy * s.zzyz * float4(c.xyz, s.x) * float4(1.0f, 1.0f, -1.0f, -1.0f) ); } public static quaternion eulerYXZ(float3 xyz) @@ -107,10 +109,11 @@ public static quaternion eulerYXZ(float3 xyz) float3 s, c; sincos(0.5f * xyz, out s, out c); return quaternion( - c.z * s.x * c.y - s.z * c.x * s.y, - c.z * c.x * s.y + s.z * s.x * c.y, - c.z * s.x * s.y + s.z * c.x * c.y, - c.z * c.x * c.y - s.z * s.x * s.y + // s.x * c.y * c.z - s.y * s.z * c.x, + // s.y * c.x * c.z + s.x * s.z * c.y, + // s.z * c.x * c.y + s.x * s.y * c.z, + // c.x * c.y * c.z - s.y * s.z * s.x + float4(s.xyz, c.x) * c.yxxy * c.zzyz + s.yxxy * s.zzyz * float4(c.xyz, s.x) * float4(-1.0f, 1.0f, 1.0f, -1.0f) ); } public static quaternion eulerYZX(float3 xyz) @@ -119,10 +122,11 @@ public static quaternion eulerYZX(float3 xyz) float3 s, c; sincos(0.5f * xyz, out s, out c); return quaternion( - s.x * c.z * c.y - c.x * s.z * s.y, - c.x * c.z * s.y - s.x * s.z * c.y, - c.x * s.z * c.y + s.x * c.z * s.y, - c.x * c.z * c.y + s.x * s.z * s.y + // s.x * c.y * c.z - s.y * s.z * c.x, + // s.y * c.x * c.z - s.x * s.z * c.y, + // s.z * c.x * c.y + s.x * s.y * c.z, + // c.x * c.y * c.z + s.y * s.z * s.x + float4(s.xyz, c.x) * c.yxxy * c.zzyz + s.yxxy * s.zzyz * float4(c.xyz, s.x) * float4(-1.0f, -1.0f, 1.0f, 1.0f) ); } public static quaternion eulerZXY(float3 xyz) @@ -131,10 +135,11 @@ public static quaternion eulerZXY(float3 xyz) float3 s, c; sincos(0.5f * xyz, out s, out c); return quaternion( - c.y * s.x * c.z + s.y * c.x * s.z, - s.y * c.x * c.z - c.y * s.x * s.z, - c.y * c.x * s.z - s.y * s.x * c.z, - c.y * c.x * c.z + s.y * s.x * s.z + // s.x * c.y * c.z + s.y * s.z * c.x, + // s.y * c.x * c.z - s.x * s.z * c.y, + // s.z * c.x * c.y - s.x * s.y * c.z, + // c.x * c.y * c.z + s.y * s.z * s.x + float4(s.xyz, c.x) * c.yxxy * c.zzyz + s.yxxy * s.zzyz * float4(c.xyz, s.x) * float4(1.0f, -1.0f, -1.0f, 1.0f) ); } public static quaternion eulerZYX(float3 xyz) @@ -143,10 +148,11 @@ public static quaternion eulerZYX(float3 xyz) float3 s, c; sincos(0.5f * xyz, out s, out c); return quaternion( - c.x * s.y * s.z + s.x * c.y * c.z, - c.x * s.y * c.z - s.x * c.y * s.z, - c.x * c.y * s.z + s.x * s.y * c.z, - c.x * c.y * c.z - s.x * s.y * s.z + // s.x * c.y * c.z + s.y * s.z * c.x, + // s.y * c.x * c.z - s.x * s.z * c.y, + // s.z * c.x * c.y + s.x * s.y * c.z, + // c.x * c.y * c.z - s.y * s.x * s.z + float4(s.xyz, c.x) * c.yxxy * c.zzyz + s.yxxy * s.zzyz * float4(c.xyz, s.x) * float4(1.0f, -1.0f, 1.0f, -1.0f) ); } From 91a9407403f0789bae1d078781784dd5bef204e4 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Thu, 21 Jun 2018 14:53:21 +0200 Subject: [PATCH 043/437] Fast 4x4 matrix inverse. Moved unpacklo/unpackhi to math.cs and added movelh/movehl utility functions. --- src/Unity.Mathematics/math.cs | 21 ++++++++ src/Unity.Mathematics/matrix.cs | 85 +++++++++++++++++++-------------- 2 files changed, 71 insertions(+), 35 deletions(-) diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 1a0d9b93..9fc3cab1 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -638,6 +638,27 @@ public static float4 shuffle(float4 a, float4 b, ShuffleComponent x, ShuffleComp [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 up() { return new float3(0.0f,1.0f,0.0f); } + // SSE shuffles + public static float4 unpacklo(float4 a, float4 b) + { + return shuffle(a, b, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.LeftY, ShuffleComponent.RightY); + } + + public static float4 unpackhi(float4 a, float4 b) + { + return shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftW, ShuffleComponent.RightW); + } + + public static float4 movelh(float4 a, float4 b) + { + return shuffle(a, b, ShuffleComponent.LeftX, ShuffleComponent.LeftY, ShuffleComponent.RightX, ShuffleComponent.RightY); + } + + public static float4 movehl(float4 a, float4 b) + { + return shuffle(b, a, ShuffleComponent.LeftZ, ShuffleComponent.LeftW, ShuffleComponent.RightZ, ShuffleComponent.RightW); + } + [StructLayout(LayoutKind.Explicit)] internal struct IntFloatUnion diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index ed05c5ad..de6a0ec2 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -646,16 +646,6 @@ public static float3x3 orthogonalize(float3x3 i) public static float3x3 transpose(float3x3 m) { return float3x3(m.c0.x, m.c0.y, m.c0.z, m.c1.x, m.c1.y, m.c1.z, m.c2.x, m.c2.y, m.c2.z); } // public static float4x4 transpose(float4x4 m) { return float4x4(m.c0.x, m.c0.y, m.c0.z, m.c0.w, m.c1.x, m.c1.y, m.c1.z, m.c1.w, m.c2.x, m.c2.y, m.c2.z, m.c2.w, m.c3.x, m.c3.y, m.c3.z, m.c3.w); } - public static float4 unpacklo(float4 a, float4 b) - { - return shuffle(a, b, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.LeftY, ShuffleComponent.RightY); - } - - public static float4 unpackhi(float4 a, float4 b) - { - return shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftW, ShuffleComponent.RightW); - } - public static float4x4 transpose(float4x4 m) { float4 t0 = unpacklo(m.c0, m.c2); @@ -707,39 +697,64 @@ public static float3x3 inverse(float3x3 m) public static float4x4 inverse(float4x4 m) { - // naive scalar implementation using direct calculation by cofactors float4 c0 = m.c0; float4 c1 = m.c1; float4 c2 = m.c2; float4 c3 = m.c3; - // calculate minors - float m00 = c1.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c1.z * c3.w - c1.w * c3.z) + c3.y * (c1.z * c2.w - c1.w * c2.z); - float m01 = c0.y * (c2.z * c3.w - c2.w * c3.z) - c2.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c2.w - c0.w * c2.z); - float m02 = c0.y * (c1.z * c3.w - c1.w * c3.z) - c1.y * (c0.z * c3.w - c0.w * c3.z) + c3.y * (c0.z * c1.w - c0.w * c1.z); - float m03 = c0.y * (c1.z * c2.w - c1.w * c2.z) - c1.y * (c0.z * c2.w - c0.w * c2.z) + c2.y * (c0.z * c1.w - c0.w * c1.z); + float4 r0y_r1y_r0x_r1x = movelh(c1, c0); + float4 r0z_r1z_r0w_r1w = movelh(c2, c3); + float4 r2y_r3y_r2x_r3x = movehl(c0, c1); + float4 r2z_r3z_r2w_r3w = movehl(c3, c2); - float m10 = c1.x * (c2.z * c3.w - c2.w * c3.z) - c2.x * (c1.z * c3.w - c1.w * c3.z) + c3.x * (c1.z * c2.w - c1.w * c2.z); - float m11 = c0.x * (c2.z * c3.w - c2.w * c3.z) - c2.x * (c0.z * c3.w - c0.w * c3.z) + c3.x * (c0.z * c2.w - c0.w * c2.z); - float m12 = c0.x * (c1.z * c3.w - c1.w * c3.z) - c1.x * (c0.z * c3.w - c0.w * c3.z) + c3.x * (c0.z * c1.w - c0.w * c1.z); - float m13 = c0.x * (c1.z * c2.w - c1.w * c2.z) - c1.x * (c0.z * c2.w - c0.w * c2.z) + c2.x * (c0.z * c1.w - c0.w * c1.z); + float4 r1y_r2y_r1x_r2x = shuffle(c1, c0, ShuffleComponent.LeftY, ShuffleComponent.LeftZ, ShuffleComponent.RightY, ShuffleComponent.RightZ); + float4 r1z_r2z_r1w_r2w = shuffle(c2, c3, ShuffleComponent.LeftY, ShuffleComponent.LeftZ, ShuffleComponent.RightY, ShuffleComponent.RightZ); + float4 r3y_r0y_r3x_r0x = shuffle(c1, c0, ShuffleComponent.LeftW, ShuffleComponent.LeftX, ShuffleComponent.RightW, ShuffleComponent.RightX); + float4 r3z_r0z_r3w_r0w = shuffle(c2, c3, ShuffleComponent.LeftW, ShuffleComponent.LeftX, ShuffleComponent.RightW, ShuffleComponent.RightX); - float m20 = c1.x * (c2.y * c3.w - c2.w * c3.y) - c2.x * (c1.y * c3.w - c1.w * c3.y) + c3.x * (c1.y * c2.w - c1.w * c2.y); - float m21 = c0.x * (c2.y * c3.w - c2.w * c3.y) - c2.x * (c0.y * c3.w - c0.w * c3.y) + c3.x * (c0.y * c2.w - c0.w * c2.y); - float m22 = c0.x * (c1.y * c3.w - c1.w * c3.y) - c1.x * (c0.y * c3.w - c0.w * c3.y) + c3.x * (c0.y * c1.w - c0.w * c1.y); - float m23 = c0.x * (c1.y * c2.w - c1.w * c2.y) - c1.x * (c0.y * c2.w - c0.w * c2.y) + c2.x * (c0.y * c1.w - c0.w * c1.y); + float4 r0_wzyx = shuffle(r0z_r1z_r0w_r1w, r0y_r1y_r0x_r1x, ShuffleComponent.LeftZ, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.RightZ); + float4 r1_wzyx = shuffle(r0z_r1z_r0w_r1w, r0y_r1y_r0x_r1x, ShuffleComponent.LeftW, ShuffleComponent.LeftY, ShuffleComponent.RightY, ShuffleComponent.RightW); + float4 r2_wzyx = shuffle(r2z_r3z_r2w_r3w, r2y_r3y_r2x_r3x, ShuffleComponent.LeftZ, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.RightZ); + float4 r3_wzyx = shuffle(r2z_r3z_r2w_r3w, r2y_r3y_r2x_r3x, ShuffleComponent.LeftW, ShuffleComponent.LeftY, ShuffleComponent.RightY, ShuffleComponent.RightW); + float4 r0_xyzw = shuffle(r0y_r1y_r0x_r1x, r0z_r1z_r0w_r1w, ShuffleComponent.LeftZ, ShuffleComponent.LeftX, ShuffleComponent.RightX, ShuffleComponent.RightZ); - float m30 = c1.x * (c2.y * c3.z - c2.z * c3.y) - c2.x * (c1.y * c3.z - c1.z * c3.y) + c3.x * (c1.y * c2.z - c1.z * c2.y); - float m31 = c0.x * (c2.y * c3.z - c2.z * c3.y) - c2.x * (c0.y * c3.z - c0.z * c3.y) + c3.x * (c0.y * c2.z - c0.z * c2.y); - float m32 = c0.x * (c1.y * c3.z - c1.z * c3.y) - c1.x * (c0.y * c3.z - c0.z * c3.y) + c3.x * (c0.y * c1.z - c0.z * c1.y); - float m33 = c0.x * (c1.y * c2.z - c1.z * c2.y) - c1.x * (c0.y * c2.z - c0.z * c2.y) + c2.x * (c0.y * c1.z - c0.z * c1.y); - - float det = c0.x * m00 - c1.x * m01 + c2.x * m02 - c3.x * m03; - - return float4x4( m00, -m10, m20, -m30, - -m01, m11, -m21, m31, - m02, -m12, m22, -m32, - -m03, m13, -m23, m33) * (1.0f / det); + // Calculate remaining inner term pairs. inner terms have zw=-xy, so we only have to calculate xy and can pack two pairs per vector. + float4 inner12_23 = r1y_r2y_r1x_r2x * r2z_r3z_r2w_r3w - r1z_r2z_r1w_r2w * r2y_r3y_r2x_r3x; + float4 inner02_13 = r0y_r1y_r0x_r1x * r2z_r3z_r2w_r3w - r0z_r1z_r0w_r1w * r2y_r3y_r2x_r3x; + float4 inner30_01 = r3z_r0z_r3w_r0w * r0y_r1y_r0x_r1x - r3y_r0y_r3x_r0x * r0z_r1z_r0w_r1w; + + // Expand inner terms back to 4 components. zw signs still need to be flipped + float4 inner12 = shuffle(inner12_23, inner12_23, ShuffleComponent.LeftX, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.RightX); + float4 inner23 = shuffle(inner12_23, inner12_23, ShuffleComponent.LeftY, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.RightY); + + float4 inner02 = shuffle(inner02_13, inner02_13, ShuffleComponent.LeftX, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.RightX); + float4 inner13 = shuffle(inner02_13, inner02_13, ShuffleComponent.LeftY, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.RightY); + + // Calculate minors + float4 minors0 = r3_wzyx * inner12 - r2_wzyx * inner13 + r1_wzyx * inner23; + + float4 denom = r0_xyzw * minors0; + + // Horizontal sum of denominator. Free sign flip of z and w compensates for missing flip in inner terms. + denom = denom + shuffle(denom, denom, ShuffleComponent.LeftY, ShuffleComponent.LeftX, ShuffleComponent.RightW, ShuffleComponent.RightZ); // x+y x+y z+w z+w + denom = denom - shuffle(denom, denom, ShuffleComponent.LeftZ, ShuffleComponent.LeftZ, ShuffleComponent.RightX, ShuffleComponent.RightX); // x+y-z-w x+y-z-w z+w-x-y z+w-x-y + + float4 rcp_denom_ppnn = float4(1.0f) / denom; + float4x4 res; + res.c0 = minors0 * rcp_denom_ppnn; + + float4 inner30 = shuffle(inner30_01, inner30_01, ShuffleComponent.LeftX, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.RightX); + float4 inner01 = shuffle(inner30_01, inner30_01, ShuffleComponent.LeftY, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.RightY); + + float4 minors1 = r2_wzyx * inner30 - r0_wzyx * inner23 - r3_wzyx * inner02; + res.c1 = minors1 * rcp_denom_ppnn; + + float4 minors2 = r0_wzyx * inner13 - r1_wzyx * inner30 - r3_wzyx * inner01; + res.c2 = minors2 * rcp_denom_ppnn; + + float4 minors3 = r1_wzyx * inner02 - r0_wzyx * inner12 + r2_wzyx * inner01; + res.c3 = minors3 * rcp_denom_ppnn; + return res; } public static float determinant(float2x2 m) From aea1322fc3bd8c4410f923e32a50e0c829d4ed35 Mon Sep 17 00:00:00 2001 From: fabriziounity <32733434+fabriziounity@users.noreply.github.com> Date: Sat, 23 Jun 2018 10:33:12 +0200 Subject: [PATCH 044/437] Update validation.py --- Tools/CI/validation.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Tools/CI/validation.py b/Tools/CI/validation.py index 32bfda49..bad6cfa1 100644 --- a/Tools/CI/validation.py +++ b/Tools/CI/validation.py @@ -19,19 +19,23 @@ def should_ignore(path): def check_metafiles_in_package(package_folder): root_files = list_files_and_directories_in_folder(package_folder) + success = True for file in root_files: if should_ignore(file): continue - if os.path.isdir(file): - check_metafiles_in_package(file) - + combined_path = os.path.join(package_folder, file) + if os.path.isdir(combined_path): + success = check_metafiles_in_package(combined_path) & success + if file.endswith("meta") and file[:-5] not in root_files: + print '{0} is a dangling meta file. Please remove it'.format( + combined_path, package_folder) + success = False if not file.endswith("meta") and not file + ".meta" in root_files: - raise Exception( - 'Missing {0}.meta in package {1}. Packages require every file and directory to have a meta file associated.'.format( - file, package_folder)) - - return True + print "{0} doesn't have a meta file. Please add one".format( + combined_path, package_folder) + success = False + return success def main(): From 7bb9b3c5e79cd3c1ff56d1dc3d81a3562b37d083 Mon Sep 17 00:00:00 2001 From: Fabrizio Perria Date: Sat, 23 Jun 2018 10:40:04 +0200 Subject: [PATCH 045/437] Adding metafiles --- src/Unity.Mathematics.Tests/TestQuaternion.cs.meta | 11 +++++++++++ src/Unity.Mathematics.Tests/TestUtils.cs.meta | 11 +++++++++++ src/Unity.Mathematics/quaternion.cs.meta | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 src/Unity.Mathematics.Tests/TestQuaternion.cs.meta create mode 100644 src/Unity.Mathematics.Tests/TestUtils.cs.meta create mode 100644 src/Unity.Mathematics/quaternion.cs.meta diff --git a/src/Unity.Mathematics.Tests/TestQuaternion.cs.meta b/src/Unity.Mathematics.Tests/TestQuaternion.cs.meta new file mode 100644 index 00000000..9f75bea9 --- /dev/null +++ b/src/Unity.Mathematics.Tests/TestQuaternion.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 71fcaa9c577f042439cf4bac9ef455ac +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics.Tests/TestUtils.cs.meta b/src/Unity.Mathematics.Tests/TestUtils.cs.meta new file mode 100644 index 00000000..1beae563 --- /dev/null +++ b/src/Unity.Mathematics.Tests/TestUtils.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 31e73524c18af40cb971c027aa6d2576 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics/quaternion.cs.meta b/src/Unity.Mathematics/quaternion.cs.meta new file mode 100644 index 00000000..2f32afaf --- /dev/null +++ b/src/Unity.Mathematics/quaternion.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a8481bb868ae344e9b4a5551a11483d3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: From b423a8e855756485fcdcbee398b140b82bd7f578 Mon Sep 17 00:00:00 2001 From: Fabrizio Perria Date: Sat, 23 Jun 2018 10:47:18 +0200 Subject: [PATCH 046/437] Deleting dangling meta file --- src/Unity.Mathematics/IntFloatUnion.cs.meta | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/Unity.Mathematics/IntFloatUnion.cs.meta diff --git a/src/Unity.Mathematics/IntFloatUnion.cs.meta b/src/Unity.Mathematics/IntFloatUnion.cs.meta deleted file mode 100644 index d7265aac..00000000 --- a/src/Unity.Mathematics/IntFloatUnion.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: cd85d27d5cb34464fb3d3a7402e47746 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: From ffb9265a5fb7f0dbe5e9e881382d8d36f0567b2d Mon Sep 17 00:00:00 2001 From: Keijiro Takahashi Date: Thu, 28 Jun 2018 15:42:49 +0900 Subject: [PATCH 047/437] Small fixes for periodic noise functions - Removed unused `i2` variables to avoid warnings. - Removed `i1` modifications because the modified values are not used. - Fixed/removed some incorrect comments. --- src/Unity.Mathematics/Noise/psrdnoise2D.cs | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/Unity.Mathematics/Noise/psrdnoise2D.cs b/src/Unity.Mathematics/Noise/psrdnoise2D.cs index 8333eae9..ea3525d3 100644 --- a/src/Unity.Mathematics/Noise/psrdnoise2D.cs +++ b/src/Unity.Mathematics/Noise/psrdnoise2D.cs @@ -95,17 +95,13 @@ public static float3 psrdnoise(float2 pos, float2 per, float rot) float2 p1 = float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); float2 p2 = float2(p0.x + 0.5f, p0.y + 1.0f); - // Integer grid point indices in (u,v) space - i1 = i0 + i1; - float2 i2 = i0 + float2(1.0f, 1.0f); - // Vectors in unskewed (x,y) coordinates from // each of the simplex corners to the evaluation point float2 d0 = pos - p0; float2 d1 = pos - p1; float2 d2 = pos - p2; - // Wrap i0, i1 and i2 to the desired period before gradient hashing: + // Wrap p0, p1 and p2 to the desired period before gradient hashing: // wrap points in (x,y), map to (u,v) float3 xw = mod(float3(p0.x, p1.x, p2.x), per.x); float3 yw = mod(float3(p0.y, p1.y, p2.y), per.y); @@ -202,17 +198,13 @@ public static float psrnoise(float2 pos, float2 per, float rot) float2 p1 = float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); float2 p2 = float2(p0.x + 0.5f, p0.y + 1.0f); - // Integer grid point indices in (u,v) space - i1 = i0 + i1; - float2 i2 = i0 + float2(1.0f, 1.0f); - // Vectors in unskewed (x,y) coordinates from // each of the simplex corners to the evaluation point float2 d0 = pos - p0; float2 d1 = pos - p1; float2 d2 = pos - p2; - // Wrap i0, i1 and i2 to the desired period before gradient hashing: + // Wrap p0, p1 and p2 to the desired period before gradient hashing: // wrap points in (x,y), map to (u,v) float3 xw = mod(float3(p0.x, p1.x, p2.x), per.x); float3 yw = mod(float3(p0.y, p1.y, p2.y), per.y); @@ -281,10 +273,6 @@ public static float3 srdnoise(float2 pos, float rot) float2 p1 = float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); float2 p2 = float2(p0.x + 0.5f, p0.y + 1.0f); - // Integer grid point indices in (u,v) space - i1 = i0 + i1; - float2 i2 = i0 + float2(1.0f, 1.0f); - // Vectors in unskewed (x,y) coordinates from // each of the simplex corners to the evaluation point float2 d0 = pos - p0; @@ -389,18 +377,12 @@ public static float srnoise(float2 pos, float rot) float2 p1 = float2(p0.x + i1.x - i1.y * 0.5f, p0.y + i1.y); float2 p2 = float2(p0.x + 0.5f, p0.y + 1.0f); - // Integer grid point indices in (u,v) space - i1 = i0 + i1; - float2 i2 = i0 + float2(1.0f, 1.0f); - // Vectors in unskewed (x,y) coordinates from // each of the simplex corners to the evaluation point float2 d0 = pos - p0; float2 d1 = pos - p1; float2 d2 = pos - p2; - // Wrap i0, i1 and i2 to the desired period before gradient hashing: - // wrap points in (x,y), map to (u,v) float3 x = float3(p0.x, p1.x, p2.x); float3 y = float3(p0.y, p1.y, p2.y); float3 iuw = x + 0.5f * y; From 783cc773bbba4a1b8e04766f13323c5d1772e831 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Mon, 2 Jul 2018 11:55:25 +0200 Subject: [PATCH 048/437] .zero for float2/float3/float4/int2/int3/int4/uint2/uint3/uint4 --- src/Unity.Mathematics/float2.cs | 2 ++ src/Unity.Mathematics/float3.cs | 2 ++ src/Unity.Mathematics/float4.cs | 2 ++ src/Unity.Mathematics/int2.cs | 2 ++ src/Unity.Mathematics/int3.cs | 2 ++ src/Unity.Mathematics/int4.cs | 2 ++ src/Unity.Mathematics/uint2.cs | 2 ++ src/Unity.Mathematics/uint3.cs | 2 ++ src/Unity.Mathematics/uint4.cs | 2 ++ 9 files changed, 18 insertions(+) diff --git a/src/Unity.Mathematics/float2.cs b/src/Unity.Mathematics/float2.cs index 2fce9a13..bb6bd80e 100644 --- a/src/Unity.Mathematics/float2.cs +++ b/src/Unity.Mathematics/float2.cs @@ -47,6 +47,8 @@ public float2(int2 val) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2(bool2 d) { return new float2(d.x ? 1.0f : 0.0f, d.y ? 1.0f : 0.0f); } + public static readonly float2 zero = new float2(0.0f, 0.0f); + public override string ToString() { return string.Format("float2({0:R}f, {1:R}f)", x, y); diff --git a/src/Unity.Mathematics/float3.cs b/src/Unity.Mathematics/float3.cs index 127c8558..e3357b14 100644 --- a/src/Unity.Mathematics/float3.cs +++ b/src/Unity.Mathematics/float3.cs @@ -50,6 +50,8 @@ public float3(int3 val) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3(bool3 d) { return new float3(d.x ? 1.0f : 0.0f, d.y ? 1.0f : 0.0f, d.z ? 1.0f : 0.0f); } + public static readonly float3 zero = new float3(0.0f, 0.0f, 0.0f); + public override string ToString() { return string.Format("float3({0}f, {1}f, {2}f)", x, y, z); diff --git a/src/Unity.Mathematics/float4.cs b/src/Unity.Mathematics/float4.cs index 41061036..e7f6ba75 100644 --- a/src/Unity.Mathematics/float4.cs +++ b/src/Unity.Mathematics/float4.cs @@ -65,6 +65,8 @@ public float4(bool4 val) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4(bool4 d) { return new float4(d.x ? 1.0f : 0.0f, d.y ? 1.0f : 0.0f, d.z ? 1.0f : 0.0f, d.w ? 1.0f : 0.0f); } + public static readonly float4 zero = new float4(0.0f, 0.0f, 0.0f, 0.0f); + public override string ToString() { return string.Format("float4({0}f, {1}f, {2}f, {3}f)", x, y, z, w); diff --git a/src/Unity.Mathematics/int2.cs b/src/Unity.Mathematics/int2.cs index e111c1d7..40250d76 100644 --- a/src/Unity.Mathematics/int2.cs +++ b/src/Unity.Mathematics/int2.cs @@ -39,6 +39,8 @@ public int2(float2 val) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2(float2 d) { return new int2((int)d.x, (int)d.y); } + public static readonly int2 zero = new int2(0, 0); + public override string ToString() { return string.Format("int2({0}, {1})", x, y); diff --git a/src/Unity.Mathematics/int3.cs b/src/Unity.Mathematics/int3.cs index bb5575f3..f77b5bb3 100644 --- a/src/Unity.Mathematics/int3.cs +++ b/src/Unity.Mathematics/int3.cs @@ -43,6 +43,8 @@ public int3(float3 val) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3(float3 d) { return new int3((int)d.x, (int)d.y, (int)d.z); } + public static readonly int3 zero = new int3(0, 0, 0); + public override string ToString() { return string.Format("int3({0}, {1}, {2})", x, y, z); diff --git a/src/Unity.Mathematics/int4.cs b/src/Unity.Mathematics/int4.cs index 36ee0a56..d35a5130 100644 --- a/src/Unity.Mathematics/int4.cs +++ b/src/Unity.Mathematics/int4.cs @@ -41,6 +41,8 @@ public DebuggerProxy(int4 vec) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4(float4 d) { return new int4((int)d.x, (int)d.y, (int)d.z, (int)d.w); } + public static readonly int4 zero = new int4(0, 0, 0, 0); + public override string ToString() { return string.Format("int4({0}, {1}, {2}, {3})", x, y, z, w); diff --git a/src/Unity.Mathematics/uint2.cs b/src/Unity.Mathematics/uint2.cs index 18afd120..caaab45b 100644 --- a/src/Unity.Mathematics/uint2.cs +++ b/src/Unity.Mathematics/uint2.cs @@ -47,6 +47,8 @@ public uint2(float2 val) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2(float2 d) { return new uint2(d); } + public static readonly uint2 zero = new uint2(0, 0); + public override string ToString() { return string.Format("uint2({0}, {1})", x, y); diff --git a/src/Unity.Mathematics/uint3.cs b/src/Unity.Mathematics/uint3.cs index a71f7167..924c88e4 100644 --- a/src/Unity.Mathematics/uint3.cs +++ b/src/Unity.Mathematics/uint3.cs @@ -43,6 +43,8 @@ public uint3(float3 val) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3(float3 d) { return new uint3(d); } + public static readonly uint3 zero = new uint3(0, 0, 0); + public override string ToString() { return string.Format("uint3({0}, {1}, {2})", x, y, z); diff --git a/src/Unity.Mathematics/uint4.cs b/src/Unity.Mathematics/uint4.cs index 8e002720..a98c343b 100644 --- a/src/Unity.Mathematics/uint4.cs +++ b/src/Unity.Mathematics/uint4.cs @@ -44,6 +44,8 @@ public DebuggerProxy(uint4 vec) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4(float4 d) { return new uint4((uint)d.x, (uint)d.y, (uint)d.z, (uint)d.w); } + public static readonly uint4 zero = new uint4(0, 0, 0, 0); + public override string ToString() { return string.Format("uint4({0}, {1}, {2}, {3})", x, y, z, w); From acf5009028a64da47539d225edbe9f2d90ed87b8 Mon Sep 17 00:00:00 2001 From: Rune Stubbe Date: Tue, 3 Jul 2018 11:16:33 +0200 Subject: [PATCH 049/437] Generator for matrix constructors and operators. Added support for componentwise operators on matrices. Added support for int/uint/bool matrices. --- .../VectorGenerator.cs | 469 +++++++++++++----- .../Unity.Mathematics.csproj | 12 + src/Unity.Mathematics/bool2x2.gen.cs | 105 ++++ src/Unity.Mathematics/bool3x3.gen.cs | 110 ++++ src/Unity.Mathematics/bool4x4.gen.cs | 115 +++++ src/Unity.Mathematics/float2x2.gen.cs | 147 ++++++ src/Unity.Mathematics/float3x3.gen.cs | 152 ++++++ src/Unity.Mathematics/float4x4.gen.cs | 157 ++++++ src/Unity.Mathematics/int2x2.gen.cs | 182 +++++++ src/Unity.Mathematics/int3x3.gen.cs | 187 +++++++ src/Unity.Mathematics/int4x4.gen.cs | 192 +++++++ src/Unity.Mathematics/matrix.cs | 161 +++--- src/Unity.Mathematics/quaternion.cs | 9 +- src/Unity.Mathematics/uint2.gen.cs | 6 + src/Unity.Mathematics/uint2x2.gen.cs | 182 +++++++ src/Unity.Mathematics/uint3.gen.cs | 6 + src/Unity.Mathematics/uint3x3.gen.cs | 187 +++++++ src/Unity.Mathematics/uint4.gen.cs | 6 + src/Unity.Mathematics/uint4x4.gen.cs | 192 +++++++ 19 files changed, 2337 insertions(+), 240 deletions(-) create mode 100644 src/Unity.Mathematics/bool2x2.gen.cs create mode 100644 src/Unity.Mathematics/bool3x3.gen.cs create mode 100644 src/Unity.Mathematics/bool4x4.gen.cs create mode 100644 src/Unity.Mathematics/float2x2.gen.cs create mode 100644 src/Unity.Mathematics/float3x3.gen.cs create mode 100644 src/Unity.Mathematics/float4x4.gen.cs create mode 100644 src/Unity.Mathematics/int2x2.gen.cs create mode 100644 src/Unity.Mathematics/int3x3.gen.cs create mode 100644 src/Unity.Mathematics/int4x4.gen.cs create mode 100644 src/Unity.Mathematics/uint2x2.gen.cs create mode 100644 src/Unity.Mathematics/uint3x3.gen.cs create mode 100644 src/Unity.Mathematics/uint4x4.gen.cs diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index a12bf004..2d8f0ccb 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -5,8 +5,11 @@ namespace Unity.Mathematics.Mathematics.CodeGen { class VectorGenerator { - string[] m_Types; - private GeneratorJob m_Job; + private string m_BaseType; + private string m_TypeName; + private int m_Rows; + private int m_Columns; + private Features m_Features; [Flags] private enum Features @@ -19,72 +22,97 @@ private enum Features All = Arithmetic | Shifts | BitwiseLogic | BitwiseComplement | UnaryNegation } - static readonly string[] floatTypes = { "float", "float2", "float3", "float4" }; - static readonly string[] intTypes = { "int", "int2", "int3", "int4" }; - static readonly string[] uintTypes = { "uint", "uint2", "uint3", "uint4" }; - static readonly string[] boolTypes = { "bool", "bool2", "bool3", "bool4" }; static readonly string[] components = { "x", "y", "z", "w" }; - static readonly string[] fields = { "x", "y", "z", "w" }; + static readonly string[] vectorFields = { "x", "y", "z", "w" }; + static readonly string[] matrixFields = { "c0", "c1", "c2", "c3" }; - private struct GeneratorJob + public static string ToTypeName(string baseType, int rows, int columns) { - public Features features; - public string[] typeNames; - public string indexOperatorReturnType; + string name = baseType; + if (rows > 1) + name += rows; + if (columns > 1) + name += "x" + columns; + return name; } - private static readonly GeneratorJob[] s_Jobs = new[] + private void Write(string dir, string baseType, int rows, int columns, Features features) { - new GeneratorJob { indexOperatorReturnType = "float", typeNames = floatTypes, features = Features.Arithmetic | Features.UnaryNegation }, - new GeneratorJob { indexOperatorReturnType = "int", typeNames = intTypes, features = Features.All }, - new GeneratorJob { indexOperatorReturnType = "uint", typeNames = uintTypes, features = Features.All & ~Features.UnaryNegation }, - new GeneratorJob { indexOperatorReturnType = "bool", typeNames = boolTypes, features = Features.BitwiseLogic }, - }; + m_BaseType = baseType; + m_TypeName = ToTypeName(baseType, rows, columns); + m_Rows = rows; + m_Columns = columns; + m_Features = features; - private VectorGenerator(GeneratorJob job) - { - m_Job = job; - m_Types = m_Job.typeNames; - } + StringBuilder str = new StringBuilder(); + + Generate(str); - public static void Write(string dir) - { - foreach (GeneratorJob job in s_Jobs) - { - var typeNames = job.typeNames; - for (int i = 1; i < typeNames.Length; i++) - { - StringBuilder builder = new StringBuilder(); - VectorGenerator gen = new VectorGenerator(job); + var text = str.ToString(); + // Convert all tabs to spaces + text = text.Replace("\t", " "); + // Normalize line endings, convert all EOL to platform EOL (and let git handle it) + text = text.Replace("\r\n", "\n"); + text = text.Replace("\n", Environment.NewLine); - gen.Generate(i + 1, builder); + System.IO.File.WriteAllText(dir + "/" + m_TypeName + ".gen.cs", text); + } - var text = builder.ToString(); - // Convert all tabs to spaces - text = text.Replace("\t", " "); - // Normalize line endings, convert all EOL to platform EOL (and let git handle it) - text = text.Replace("\r\n", "\n"); - text = text.Replace("\n", Environment.NewLine); - System.IO.File.WriteAllText(dir + "/" + typeNames[i] + ".gen.cs", text); - } - } + public static void Write(string dir) + { + VectorGenerator vectorGenerator = new VectorGenerator(); + vectorGenerator.Write(dir, "float", 2, 1, Features.Arithmetic | Features.UnaryNegation); + vectorGenerator.Write(dir, "float", 2, 1, Features.Arithmetic | Features.UnaryNegation); + vectorGenerator.Write(dir, "float", 3, 1, Features.Arithmetic | Features.UnaryNegation); + vectorGenerator.Write(dir, "float", 4, 1, Features.Arithmetic | Features.UnaryNegation); + + vectorGenerator.Write(dir, "float", 2, 2, Features.Arithmetic | Features.UnaryNegation); + vectorGenerator.Write(dir, "float", 3, 3, Features.Arithmetic | Features.UnaryNegation); + vectorGenerator.Write(dir, "float", 4, 4, Features.Arithmetic | Features.UnaryNegation); + + vectorGenerator.Write(dir, "int", 2, 1, Features.All); + vectorGenerator.Write(dir, "int", 3, 1, Features.All); + vectorGenerator.Write(dir, "int", 4, 1, Features.All); + + vectorGenerator.Write(dir, "int", 2, 2, Features.All); + vectorGenerator.Write(dir, "int", 3, 3, Features.All); + vectorGenerator.Write(dir, "int", 4, 4, Features.All); + + vectorGenerator.Write(dir, "uint", 2, 1, Features.All); + vectorGenerator.Write(dir, "uint", 3, 1, Features.All); + vectorGenerator.Write(dir, "uint", 4, 1, Features.All); + + vectorGenerator.Write(dir, "uint", 2, 2, Features.All); + vectorGenerator.Write(dir, "uint", 3, 3, Features.All); + vectorGenerator.Write(dir, "uint", 4, 4, Features.All); + + vectorGenerator.Write(dir, "bool", 2, 1, Features.BitwiseLogic); + vectorGenerator.Write(dir, "bool", 3, 1, Features.BitwiseLogic); + vectorGenerator.Write(dir, "bool", 4, 1, Features.BitwiseLogic); + + vectorGenerator.Write(dir, "bool", 2, 2, Features.BitwiseLogic); + vectorGenerator.Write(dir, "bool", 3, 3, Features.BitwiseLogic); + vectorGenerator.Write(dir, "bool", 4, 4, Features.BitwiseLogic); } - public void Generate(int count, StringBuilder str) + + private void Generate(StringBuilder str) { StringBuilder staticConstructorStr = new StringBuilder(); + str.Append("// GENERATED CODE\n"); str.Append("using System.Runtime.CompilerServices;\n"); str.Append("#pragma warning disable 0660, 0661\n"); str.Append("namespace Unity.Mathematics\n"); str.Append("{\n"); - str.AppendFormat("\tpublic partial struct {0} : System.IEquatable<{0}>\n", m_Types[count - 1]); + str.AppendFormat("\tpublic partial struct {0} : System.IEquatable<{0}>\n", m_TypeName); str.Append("\t{\n"); - GenerateConstructors(count, str, staticConstructorStr); - GenerateOperators(count, str); - GenerateSwizzles(count, str); + GenerateConstructors(str, staticConstructorStr); + GenerateOperators(str); + if(m_Columns == 1) + GenerateSwizzles(str); str.Append("\t}\n\n"); @@ -93,31 +121,31 @@ public void Generate(int count, StringBuilder str) str.Append(staticConstructorStr); str.Append("\t}\n}\n"); } - + + private string GenerateComponentRangeString(int componentIndex, int numComponents) { string result = ""; for(int i = 0; i < numComponents; i++) { - result += fields[componentIndex + i]; + result += components[componentIndex + i]; } return result; } // Generate constructor and static constructor with a given component partitioning of input parameters - private void GenerateConstructor(int numComponents, int numParameters, int[] parameterComponents, StringBuilder constructorStr, StringBuilder staticConstructorStr) + private void GenerateVectorConstructor(int numComponents, int numParameters, int[] parameterComponents, StringBuilder constructorStr, StringBuilder staticConstructorStr) { // Generate signatures - string typeName = m_Types[numComponents - 1]; constructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); constructorStr.Append("\t\tpublic "); - constructorStr.Append(typeName); + constructorStr.Append(m_TypeName); constructorStr.Append("("); staticConstructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); staticConstructorStr.Append("\t\tpublic static "); - staticConstructorStr.Append(typeName); + staticConstructorStr.Append(m_TypeName); staticConstructorStr.Append(" "); - staticConstructorStr.Append(typeName); + staticConstructorStr.Append(m_TypeName); staticConstructorStr.Append("("); int componentIndex = 0; @@ -131,7 +159,7 @@ private void GenerateConstructor(int numComponents, int numParameters, int[] par int paramComponents = parameterComponents[i]; - string paramType = m_Types[paramComponents - 1]; + string paramType = ToTypeName(m_BaseType, paramComponents, 1); string componentString = GenerateComponentRangeString(componentIndex, paramComponents); constructorStr.Append(paramType); @@ -148,7 +176,7 @@ private void GenerateConstructor(int numComponents, int numParameters, int[] par // Generate function bodies constructorStr.Append("\t\t{ "); staticConstructorStr.Append(" { return new "); - staticConstructorStr.Append(typeName); + staticConstructorStr.Append(m_TypeName); staticConstructorStr.Append("("); componentIndex = 0; @@ -159,13 +187,13 @@ private void GenerateConstructor(int numComponents, int numParameters, int[] par for (int j = 0; j < paramComponents; j++) { constructorStr.Append("\n\t\t\tthis."); - constructorStr.Append(fields[componentIndex]); + constructorStr.Append(components[componentIndex]); constructorStr.Append(" = "); constructorStr.Append(componentString); if (paramComponents > 1) { constructorStr.Append("."); - constructorStr.Append(fields[j]); + constructorStr.Append(components[j]); } constructorStr.Append(";"); componentIndex++; @@ -183,133 +211,287 @@ private void GenerateConstructor(int numComponents, int numParameters, int[] par } // Recursively generate all constructor variants with every possibly partition or the components - private void GenerateConstructors(int numRemainingComponents, int numComponents, int numParameters, int[] parameterComponents, StringBuilder constructorStr, StringBuilder staticConstructorStr) + private void GenerateVectorConstructors(int numRemainingComponents, int numComponents, int numParameters, int[] parameterComponents, StringBuilder constructorStr, StringBuilder staticConstructorStr) { if (numRemainingComponents == 0) { - GenerateConstructor(numComponents, numParameters, parameterComponents, constructorStr, staticConstructorStr); + GenerateVectorConstructor(numComponents, numParameters, parameterComponents, constructorStr, staticConstructorStr); } for(int i = 1; i <= numRemainingComponents; i++) { parameterComponents[numParameters] = i; - GenerateConstructors(numRemainingComponents - i, numComponents, numParameters + 1, parameterComponents, constructorStr, staticConstructorStr); + GenerateVectorConstructors(numRemainingComponents - i, numComponents, numParameters + 1, parameterComponents, constructorStr, staticConstructorStr); + } + } + + public void GenerateMatrixColumnConstructor(StringBuilder constructorStr, StringBuilder staticConstructorStr) + { + // Generate signatures + constructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); + constructorStr.Append("\t\tpublic "); + constructorStr.Append(m_TypeName); + constructorStr.Append("("); + staticConstructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); + staticConstructorStr.Append("\t\tpublic static "); + staticConstructorStr.Append(m_TypeName); + staticConstructorStr.Append(" "); + staticConstructorStr.Append(m_TypeName); + staticConstructorStr.Append("("); + + string columnType = ToTypeName(m_BaseType, m_Rows, 1); + for (int column = 0; column < m_Columns; column++) + { + if (column != 0) + { + constructorStr.Append(", "); + staticConstructorStr.Append(", "); + } + + constructorStr.Append(columnType); + constructorStr.Append(" "); + constructorStr.Append(matrixFields[column]); + staticConstructorStr.Append(columnType); + staticConstructorStr.Append(" "); + staticConstructorStr.Append(matrixFields[column]); + } + constructorStr.Append(")\n"); + staticConstructorStr.Append(")"); + + // Generate function bodies + constructorStr.Append("\t\t{ "); + staticConstructorStr.Append(" { return new "); + staticConstructorStr.Append(m_TypeName); + staticConstructorStr.Append("("); + + for (int column = 0; column < m_Columns; column++) + { + constructorStr.Append("\n\t\t\tthis."); + constructorStr.Append(matrixFields[column]); + constructorStr.Append(" = "); + constructorStr.Append(matrixFields[column]); + constructorStr.Append(";"); + + if (column != 0) + { + staticConstructorStr.Append(", "); + } + staticConstructorStr.Append(matrixFields[column]); } + + constructorStr.Append("\n\t\t}\n\n"); + staticConstructorStr.Append("); }\n\n"); } - public void GenerateConstructors(int count, StringBuilder constructorStr, StringBuilder staticConstructorStr) + public void GenerateMatrixRowConstructor(StringBuilder constructorStr, StringBuilder staticConstructorStr) + { + // Generate signatures + constructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); + constructorStr.Append("\t\tpublic "); + constructorStr.Append(m_TypeName); + constructorStr.Append("("); + staticConstructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); + staticConstructorStr.Append("\t\tpublic static "); + staticConstructorStr.Append(m_TypeName); + staticConstructorStr.Append(" "); + staticConstructorStr.Append(m_TypeName); + staticConstructorStr.Append("("); + string indent0 = new string(' ', m_TypeName.Length + 16); + string indent1 = new string(' ', m_TypeName.Length*2 + 24); + string indent2 = new string(' ', m_TypeName.Length + 24); + + for (int row = 0; row < m_Rows; row++) + { + if(row != 0) + { + constructorStr.Append(indent0); + staticConstructorStr.Append(indent1); + } + for (int column = 0; column < m_Columns; column++) + { + string paramName = "m" + row + column; + constructorStr.Append(m_BaseType); + constructorStr.Append(" "); + constructorStr.Append(paramName); + staticConstructorStr.Append(m_BaseType); + staticConstructorStr.Append(" "); + staticConstructorStr.Append(paramName); + + //string separator = (row == m_Rows - 1) ? (column == m_Columns - 1) ? "," : ", " : ", "; + string separator = (column == m_Columns - 1) ? (row == m_Rows - 1) ? ")\n" : ",\n" : ", "; + constructorStr.Append(separator); + staticConstructorStr.Append(separator); + } + } + + string columnType = ToTypeName(m_BaseType, m_Rows, 1); + + // constructor body + constructorStr.Append("\t\t{ "); + for (int column = 0; column < m_Columns; column++) + { + constructorStr.AppendFormat("\n\t\t\tthis.{0} = new {1}(", matrixFields[column], columnType); + + for (int row = 0; row < m_Rows; row++) + { + constructorStr.Append("m" + row + column); + + if (row != m_Rows - 1) + { + constructorStr.Append(", "); + } + } + + constructorStr.Append(");"); + } + constructorStr.Append("\n\t\t}\n\n"); + + // static constructor body + staticConstructorStr.AppendFormat("\t\t{{\n\t\t\treturn new {0}(", m_TypeName); + for (int row = 0; row < m_Rows; row++) + { + if (row != 0) + { + staticConstructorStr.Append(indent2); + } + for (int column = 0; column < m_Columns; column++) + { + string paramName = "m" + row + column; + staticConstructorStr.Append(paramName); + + //string separator = (row == m_Rows - 1) ? (column == m_Columns - 1) ? "," : ", " : ", "; + string separator = (column == m_Columns - 1) ? (row == m_Rows - 1) ? ");" : ",\n" : ", "; + staticConstructorStr.Append(separator); + } + } + staticConstructorStr.Append("\n\t\t}\n\n"); + } + + public void GenerateMatrixConstructors(StringBuilder constructorStr, StringBuilder staticConstructorStr) + { + GenerateMatrixColumnConstructor(constructorStr, staticConstructorStr); + GenerateMatrixRowConstructor(constructorStr, staticConstructorStr); + } + + public void GenerateConstructors(StringBuilder constructorStr, StringBuilder staticConstructorStr) { constructorStr.Append("\t\t// constructors\n"); - int[] parameterComponenets = new int[4]; - GenerateConstructors(count, count, 0, parameterComponenets, constructorStr, staticConstructorStr); + + if(m_Columns == 1) + { + int[] parameterComponenets = new int[4]; + GenerateVectorConstructors(m_Rows, m_Rows, 0, parameterComponenets, constructorStr, staticConstructorStr); + } + else + { + GenerateMatrixConstructors(constructorStr, staticConstructorStr); + } } - public void GenerateOperators(int count, StringBuilder str) + public void GenerateOperators(StringBuilder str) { - string resultType = m_Types[count - 1]; - string resultBoolType = boolTypes[count - 1]; - - if (0 != (m_Job.features & Features.Arithmetic)) + string resultType = m_BaseType; + string resultBoolType = "bool"; + + if (0 != (m_Features & Features.Arithmetic)) { str.Append("\n\t\t// mul\n"); - GenerateBinaryOperator(count, "*", count, resultType, str); + GenerateBinaryOperator(m_Rows, m_Columns, "*", resultType, str); str.Append("\n\t\t// add\n"); - GenerateBinaryOperator(count, "+", count, resultType, str); + GenerateBinaryOperator(m_Rows, m_Columns, "+", resultType, str); str.Append("\n\t\t// sub\n"); - GenerateBinaryOperator(count, "-", count, resultType, str); + GenerateBinaryOperator(m_Rows, m_Columns, "-", resultType, str); str.Append("\n\t\t// div\n"); - GenerateBinaryOperator(count, "/", count, resultType, str); + GenerateBinaryOperator(m_Rows, m_Columns, "/", resultType, str); str.Append("\n\t\t// smaller \n"); - GenerateBinaryOperator(count, "<", count, resultBoolType, str); - GenerateBinaryOperator(count, "<=", count, resultBoolType, str); + GenerateBinaryOperator(m_Rows, m_Columns, "<", resultBoolType, str); + GenerateBinaryOperator(m_Rows, m_Columns, "<=", resultBoolType, str); str.Append("\n\t\t// greater \n"); - GenerateBinaryOperator(count, ">", count, resultBoolType, str); - GenerateBinaryOperator(count, ">=", count, resultBoolType, str); + GenerateBinaryOperator(m_Rows, m_Columns, ">", resultBoolType, str); + GenerateBinaryOperator(m_Rows, m_Columns, ">=", resultBoolType, str); } - if (0 != (m_Job.features & Features.UnaryNegation)) + if (0 != (m_Features & Features.UnaryNegation)) { str.Append("\n\t\t// neg \n"); - GenerateUnaryOperator(count, "-", str); + GenerateUnaryOperator("-", str); str.Append("\n\t\t// plus \n"); - GenerateUnaryOperator(count, "+", str); + GenerateUnaryOperator("+", str); } - if (0 != (m_Job.features & Features.Shifts)) + if (0 != (m_Features & Features.Shifts)) { str.Append("\n\t\t// left shift\n"); - GenerateShiftOperator(count, "<<", count, resultType, str); + GenerateShiftOperator(m_Rows, "<<", resultType, str); str.Append("\n\t\t// right shift\n"); - GenerateShiftOperator(count, ">>", count, resultType, str); + GenerateShiftOperator(m_Rows, ">>", resultType, str); } str.Append("\n\t\t// equal \n"); - GenerateBinaryOperator(count, "==", count, resultBoolType, str); + GenerateBinaryOperator(m_Rows, m_Columns, "==", resultBoolType, str); str.Append("\n\t\t// not equal \n"); - GenerateBinaryOperator(count, "!=", count, resultBoolType, str); + GenerateBinaryOperator(m_Rows, m_Columns, "!=", resultBoolType, str); str.Append("\n\t\t// Equals \n"); - GenerateEquals(count, resultType, str); + GenerateEquals(str); str.Append("\n\t\t// [int index] \n"); - GenerateIndexOperator(count, resultType, m_Job.indexOperatorReturnType, str); + GenerateIndexOperator(str); - if (0 != (m_Job.features & Features.BitwiseLogic)) + if (0 != (m_Features & Features.BitwiseLogic)) { string[] binaryOps = { "&", "|", "^" }; foreach (string binOp in binaryOps) { str.AppendFormat("\n\t\t// operator {0}\n", binOp); - GenerateBinaryOperator(count, binOp, count, resultType, str); + GenerateBinaryOperator(m_Rows, m_Columns, binOp, resultType, str); } } - if (0 != (m_Job.features & Features.BitwiseComplement)) + if (0 != (m_Features & Features.BitwiseComplement)) { str.Append("\n\t\t// operator ~ \n"); - GenerateUnaryOperator(count, "~", str); + GenerateUnaryOperator("~", str); } } - void GenerateBinaryOperator(int count, string op, int resultCount, string resultType, StringBuilder str) + void GenerateBinaryOperator(int rows, int columns, string op, string resultType, StringBuilder str) { - GenerateBinaryOperator(count - 1, count - 1, op, resultCount, resultType, str); - GenerateBinaryOperatorScalarRhs(count, op, resultCount, resultType, str); - GenerateBinaryOperator(0, count - 1, op, resultCount, resultType, str); + GenerateBinaryOperator(rows, columns, rows, columns, op, resultType, rows, columns, str); + GenerateBinaryOperator(rows, columns, 1, 1, op, resultType, rows, columns, str); + GenerateBinaryOperator(1, 1, rows, columns, op, resultType, rows, columns, str); } - void GenerateBinaryOperatorScalarRhs(int count, string op, int resultCount, string resultType, StringBuilder str) - { - GenerateBinaryOperator(count - 1, 0, op, resultCount, resultType, str); - } - - void GenerateBinaryOperator(int lhsTypeIndex, int rhsTypeIndex, string op, int resultCount, string resultType, StringBuilder str) + void GenerateBinaryOperator(int lhsRows, int lhsColumns, int rhsRows, int rhsColumns, string op, string resultType, int resultRows, int resultColumns, StringBuilder str) { str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); - str.AppendFormat("\t\tpublic static {0} operator {1} ({2} lhs, {3} rhs)", resultType, op, m_Types[lhsTypeIndex], m_Types[rhsTypeIndex]); + str.AppendFormat("\t\tpublic static {0} operator {1} ({2} lhs, {3} rhs)", ToTypeName(resultType, resultRows, resultColumns), op, ToTypeName(m_BaseType, lhsRows, lhsColumns), ToTypeName(m_BaseType, rhsRows, rhsColumns)); str.Append(" { "); - str.AppendFormat("return new {0} (", resultType); + str.AppendFormat("return new {0} (", ToTypeName(resultType, resultRows, resultColumns)); + + string[] fields = (resultColumns > 1) ? matrixFields : vectorFields; + int resultCount = (resultColumns > 1) ? resultColumns : resultRows; for (int i = 0; i < resultCount; i++) { - if (lhsTypeIndex == 0) + if (lhsRows == 1) { int rhsIndex = i; str.AppendFormat("lhs {1} rhs.{0}", fields[rhsIndex], op); if (i != resultCount - 1) str.Append(", "); } - else if (rhsTypeIndex == 0) + else if (rhsRows == 1) { int lhsIndex = i; str.AppendFormat("lhs.{0} {1} rhs", fields[lhsIndex], op); @@ -331,9 +513,12 @@ void GenerateBinaryOperator(int lhsTypeIndex, int rhsTypeIndex, string op, int r str.Append("); }\n"); } - void GenerateIndexOperator(int count, string vectorType, string indexOperatorReturnType, StringBuilder str) + void GenerateIndexOperator(StringBuilder str) { - str.AppendFormat("\t\tunsafe public {0} this[int index]\n", indexOperatorReturnType); + int count = m_Columns > 1 ? m_Columns : m_Rows; + string returnType = ToTypeName(m_BaseType, m_Columns > 1 ? m_Rows : 1, 1); + + str.AppendFormat("\t\tunsafe public {0} this[int index]\n", returnType); str.AppendLine("\t\t{"); str.AppendLine("\t\t\tget"); str.AppendLine("\t\t\t{"); @@ -345,8 +530,10 @@ void GenerateIndexOperator(int count, string vectorType, string indexOperatorRet // we are fixing this instead of a field // See issue https://github.com/dotnet/coreclr/issues/16210 str.Append("\t\t\t\tfixed ("); - str.Append(vectorType); - str.Append("* array = &this) { return ((").Append(indexOperatorReturnType).Append("*)array)[index]; }\n"); + str.Append(m_TypeName); + str.Append("* array = &this) { return (("); + str.Append(returnType); + str.Append("*)array)[index]; }\n"); str.AppendLine("\t\t\t}"); str.AppendLine("\t\t\tset"); str.AppendLine("\t\t\t{"); @@ -355,23 +542,30 @@ void GenerateIndexOperator(int count, string vectorType, string indexOperatorRet str.AppendFormat("\t\t\t\t\tthrow new System.ArgumentException(\"index must be between[0...{0}]\");\n", count - 1); str.AppendLine("#endif"); str.Append("\t\t\t\tfixed ("); - str.Append(indexOperatorReturnType); - str.Append("* array = &x) { array[index] = value; }\n"); + str.Append(returnType); + str.Append("* array = &"); + str.Append(m_Columns > 1 ? "c0" : "x"); + str.Append(") { array[index] = value; }\n"); str.AppendLine("\t\t\t}"); str.AppendLine("\t\t}"); } - void GenerateEquals(int resultCount, string resultType, StringBuilder str) + void GenerateEquals(StringBuilder str) { + string[] fields = (m_Columns > 1) ? matrixFields : vectorFields; + int resultCount = (m_Columns > 1) ? m_Columns : m_Rows; + str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); - str.AppendFormat("\t\tpublic bool Equals({0} rhs) ", resultType); - str.Append(" { "); - str.AppendFormat("return ", resultType); + str.AppendFormat("\t\tpublic bool Equals({0} rhs) ", m_TypeName); + str.Append(" { return "); for (int i = 0; i < resultCount; i++) { - str.Append(fields[i] + " == rhs." + fields[i]); + if (m_Columns == 1) + str.AppendFormat("{0} == rhs.{0}", fields[i]); + else + str.AppendFormat("{0}.Equals(rhs.{0})", fields[i]); if (i != resultCount-1) str.Append(" && "); } @@ -380,16 +574,20 @@ void GenerateEquals(int resultCount, string resultType, StringBuilder str) } - void GenerateShiftOperator(int lhsTypeIndex, string op, int resultCount, string resultType, StringBuilder str) + void GenerateShiftOperator(int lhsRows, string op, string resultBaseType, StringBuilder str) { + string[] fields = (m_Columns > 1) ? matrixFields : vectorFields; + int resultCount = (m_Columns > 1) ? m_Columns : m_Rows; + + string resultType = ToTypeName(resultBaseType, resultCount, 1); str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); - str.AppendFormat("\t\tpublic static {0} operator {1} ({2} lhs, int rhs)", resultType, op, m_Types[lhsTypeIndex - 1]); + str.AppendFormat("\t\tpublic static {0} operator {1} ({0} lhs, int rhs)", m_TypeName, op); str.Append(" { "); - str.AppendFormat("return new {0} (", resultType); + str.AppendFormat("return new {0} (", m_TypeName); for (int i = 0; i < resultCount; i++) { - if (lhsTypeIndex == 0) + if (lhsRows == 1) { str.AppendFormat("lhs {0} rhs", op); if (i != resultCount - 1) @@ -404,29 +602,35 @@ void GenerateShiftOperator(int lhsTypeIndex, string op, int resultCount, string } } - str.Append("); }\n"); } - void GenerateUnaryOperator(int count, string op, StringBuilder str) + void GenerateUnaryOperator(string op, StringBuilder str) { str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); - str.AppendFormat("\t\tpublic static {0} operator {1} ({0} val)", m_Types[count - 1], op); + str.AppendFormat("\t\tpublic static {0} operator {1} ({0} val)", m_TypeName, op); str.Append(" { "); - str.AppendFormat("return new {0} (", m_Types[count - 1]); + str.AppendFormat("return new {0} (", m_TypeName); - for (int i = 0; i < count; i++) + string[] fields = (m_Columns > 1) ? matrixFields : vectorFields; + int resultCount = (m_Columns > 1) ? m_Columns : m_Rows; + + for (int i = 0; i < resultCount; i++) { - str.AppendFormat("{0}val.{1}", op, fields[i]); - if (i != count - 1) + if(op == "-" && m_BaseType == "uint" && m_Columns == 1) + str.AppendFormat("(uint){0}val.{1}", op, fields[i]); + else + str.AppendFormat("{0}val.{1}", op, fields[i]); + if (i != m_Rows - 1) str.Append(", "); } str.Append("); }"); } - void GenerateSwizzles(int count, StringBuilder str) + void GenerateSwizzles(StringBuilder str) { + int count = m_Rows; // float4 swizzles { int[] swizzles = new int[4]; @@ -504,7 +708,7 @@ void GenerateSwizzles(int[] swizzle, StringBuilder str) str.Append("\t\t[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]\n"); str.Append("\t\tpublic "); - str.Append(m_Types[swizzle.Length - 1]); + str.Append(ToTypeName(m_BaseType, swizzle.Length, 1)); str.Append(' '); for (int i = 0; i < swizzle.Length; i++) @@ -517,7 +721,7 @@ void GenerateSwizzles(int[] swizzle, StringBuilder str) { str.AppendFormat("\n\t\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]"); str.Append("\n\t\t\tget { return new "); - str.Append(m_Types[swizzle.Length - 1]); + str.Append(ToTypeName(m_BaseType, swizzle.Length, 1)); str.Append('('); } else @@ -525,7 +729,7 @@ void GenerateSwizzles(int[] swizzle, StringBuilder str) for (int i = 0; i < swizzle.Length; i++) { - str.Append(fields[swizzle[i]]); + str.Append(components[swizzle[i]]); if (i != swizzle.Length - 1) str.Append(", "); @@ -543,11 +747,11 @@ void GenerateSwizzles(int[] swizzle, StringBuilder str) str.Append("\n\t\t\tset { "); for (int i = 0; i < swizzle.Length; i++) { - str.Append(fields[swizzle[i]]); + str.Append(components[swizzle[i]]); if (swizzle.Length != 1) { str.Append(" = value."); - str.Append(fields[i]); + str.Append(components[i]); } else { @@ -565,6 +769,5 @@ void GenerateSwizzles(int[] swizzle, StringBuilder str) str.Append("\n\t\t}\n\n"); str.Append("\n"); } - } } diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 918db980..3e349567 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -61,17 +61,26 @@ + + + + + + + + + @@ -86,10 +95,13 @@ + + + + + + + + Debug + AnyCPU + {2E7C74D3-42F1-482F-8BB7-E199D9E3B412} + Library + Properties + Unity.Mathematics.Tests + Unity.Mathematics.Tests + v4.7.1 + 512 + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + true + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + true + + + + ..\packages\NUnit.3.8.1\lib\net45\nunit.framework.dll + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {19810344-7387-4155-935f-bdd5cc61f0bf} + Unity.Mathematics + + + + + + + \ No newline at end of file diff --git a/src/Unity.Mathematics.Tests/packages.config b/src/Tests/packages.config similarity index 100% rename from src/Unity.Mathematics.Tests/packages.config rename to src/Tests/packages.config diff --git a/src/Unity.Mathematics.sln b/src/Unity.Mathematics.sln index 70360aca..838e9508 100644 --- a/src/Unity.Mathematics.sln +++ b/src/Unity.Mathematics.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 @@ -12,7 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "General", "General", "{B11E ..\readme.md = ..\readme.md EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Mathematics.Tests", "Unity.Mathematics.Tests\Unity.Mathematics.Tests.csproj", "{2E7C74D3-42F1-482F-8BB7-E199D9E3B412}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Mathematics.Tests", "Tests\Unity.Mathematics.Tests.csproj", "{2E7C74D3-42F1-482F-8BB7-E199D9E3B412}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -65,3 +65,4 @@ Global HideSolutionNode = FALSE EndGlobalSection EndGlobal + From 1f1199b706a78083299ad306a25877a4e030c63c Mon Sep 17 00:00:00 2001 From: Fabrizio Perria Date: Thu, 28 Feb 2019 15:53:51 +0100 Subject: [PATCH 222/437] Enable publishing --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4de94979..c013d21c 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -73,7 +73,6 @@ publish_package:mac: script: - python Tools/CI/validation.py --package-path package --commit-tag $CI_COMMIT_TAG - cd package - #- npm publish --registry https://staging-packages.unity.com - - echo "Would have published com.unity.mathematics $CI_COMMIT_TAG" + - npm publish --registry https://staging-packages.unity.com dependencies: - validate_package:mac From 28da5fa8435d3043c958dee787d7fbeebdf32612 Mon Sep 17 00:00:00 2001 From: fabriziounity <32733434+fabriziounity@users.noreply.github.com> Date: Fri, 1 Mar 2019 08:13:09 +0100 Subject: [PATCH 223/437] Update minimum unity editor version supported to 2018.3 --- src/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/package.json b/src/package.json index 30667ce0..a4e5bda3 100755 --- a/src/package.json +++ b/src/package.json @@ -2,7 +2,7 @@ "name": "com.unity.mathematics", "displayName": "Mathematics", "version": "0.0.1-preview.1", - "unity": "2018.1", + "unity": "2018.3", "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax. This package is still in experimental phase.", "keywords": [ "unity" From 005844ef7ac6a529f7c4af164f79a608174684ad Mon Sep 17 00:00:00 2001 From: fabrizio Date: Mon, 15 Apr 2019 13:57:41 +0200 Subject: [PATCH 224/437] Prepare for stable release --- src/CHANGELOG.md | 4 ++++ src/package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 47779832..d1e6d37d 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.0.0] - 2019-04-15 + +- Release stable version + ## [1.0.0-preview.1] - 2019-02-28 - Fixed bug where modifications on prefabs could not be reverted for vector properties when using context menu in Inspector. diff --git a/src/package.json b/src/package.json index a4e5bda3..dad394d4 100755 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.mathematics", "displayName": "Mathematics", - "version": "0.0.1-preview.1", + "version": "1.0.0", "unity": "2018.3", "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax. This package is still in experimental phase.", "keywords": [ From 07a6f936e04cff7d83b2d07543df55abfafc5112 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Mon, 15 Apr 2019 16:30:05 +0200 Subject: [PATCH 225/437] Use float instead for double for all math constants by default (e.g math.PI) Move old double API with postfix math.PI_DBL --- src/Tests/Tests/TestRandom.cs | 10 +++---- src/Unity.Mathematics.sln | 1 + src/Unity.Mathematics/math.cs | 48 +++++++++++++++++++++++---------- src/Unity.Mathematics/random.cs | 10 +++---- src/package.json | 2 +- 5 files changed, 46 insertions(+), 25 deletions(-) diff --git a/src/Tests/Tests/TestRandom.cs b/src/Tests/Tests/TestRandom.cs index a9c5895e..0a8acd0e 100644 --- a/src/Tests/Tests/TestRandom.cs +++ b/src/Tests/Tests/TestRandom.cs @@ -1113,7 +1113,7 @@ public static void float2_direction() ks_test(() => { float2 dir = rnd.NextFloat2Direction(); TestUtils.AreEqual(1.0f, length(dir), 0.001f); - return atan2(dir.x, dir.y) / (2.0f * (float)PI) + 0.5f; + return atan2(dir.x, dir.y) / (2.0f * PI) + 0.5f; }); } @@ -1124,7 +1124,7 @@ public static void double2_direction() ks_test(() => { double2 dir = rnd.NextFloat2Direction(); TestUtils.AreEqual(1.0, length(dir), 0.000001); - return atan2(dir.y, dir.x) / (2.0 * PI) + 0.5; + return atan2(dir.y, dir.x) / (2.0 * PI_DBL) + 0.5; }); } @@ -1139,7 +1139,7 @@ public static void float3_direction() float r = length(dir); TestUtils.AreEqual(1.0f, r, 0.001f); - float phi = atan2(dir.y, dir.x) / (2.0f * (float)PI) + 0.5f; + float phi = atan2(dir.y, dir.x) / (2.0f * PI) + 0.5f; float z = saturate(dir.z / r * 0.5f + 0.5f); return double2(phi, z); }); @@ -1155,7 +1155,7 @@ public static void double3_direction() double r = length(dir); TestUtils.AreEqual(1.0, r, 0.00001); - double phi = atan2(dir.y, dir.x) / (2.0 * PI) + 0.5; + double phi = atan2(dir.y, dir.x) / (2.0 * PI_DBL) + 0.5; double z = saturate(dir.z / r * 0.5 + 0.5); return double2(phi, z); }); @@ -1177,7 +1177,7 @@ public static void quaternion_rotation() TestUtils.AreEqual(length(p), length(qp), 0.0001f); float r = length(qp); - double phi = atan2(qp.y, qp.x) / (2.0 * PI) + 0.5; + double phi = atan2(qp.y, qp.x) / (2.0 * PI_DBL) + 0.5; double z = saturate(qp.z / r * 0.5 + 0.5); return double2(phi, z); }); diff --git a/src/Unity.Mathematics.sln b/src/Unity.Mathematics.sln index 838e9508..64d0ecd2 100644 --- a/src/Unity.Mathematics.sln +++ b/src/Unity.Mathematics.sln @@ -9,6 +9,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Mathematics.CodeGen", EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "General", "General", "{B11ECCE1-1A78-40B2-956F-CBE615FF5DF9}" ProjectSection(SolutionItems) = preProject + package.json = package.json ..\readme.md = ..\readme.md EndProjectSection EndProject diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 19c3eac9..a5ab5303 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -47,33 +47,53 @@ public enum ShuffleComponent : byte RightW }; + /// The mathematical constant e also known as Euler's number. Approximately 2.72. This is a f64/double precision constant. + public const double E_DBL = 2.71828182845904523536; + + /// The base 2 logarithm of e. Approximately 1.44. This is a f64/double precision constant. + public const double LOG2E_DBL = 1.44269504088896340736; + + /// The base 10 logarithm of e. Approximately 0.43. This is a f64/double precision constant. + public const double LOG10E_DBL = 0.434294481903251827651; + + /// The natural logarithm of 2. Approximately 0.69. This is a f64/double precision constant. + public const double LN2_DBL = 0.693147180559945309417; + + /// The natural logarithm of 10. Approximately 2.30. This is a f64/double precision constant. + public const double LN10_DBL = 2.30258509299404568402; + + /// The mathematical constant pi. Approximately 3.14. This is a f64/double precision constant. + public const double PI_DBL = 3.14159265358979323846; + + /// The square root 2. Approximately 1.41. This is a f64/double precision constant. + public const double SQRT2_DBL = 1.41421356237309504880; + + /// The smallest positive normal number representable in a float. + public const float FLT_MIN_NORMAL = 1.175494351e-38F; + + /// The smallest positive normal number representable in a double. This is a f64/double precision constant. + public const double DBL_MIN_NORMAL = 2.2250738585072014e-308; + /// The mathematical constant e also known as Euler's number. Approximately 2.72. - public static readonly double E = 2.71828182845904523536; + public const float E = (float)E_DBL; /// The base 2 logarithm of e. Approximately 1.44. - public static readonly double LOG2E = 1.44269504088896340736; + public const float LOG2E = (float)LOG2E_DBL; /// The base 10 logarithm of e. Approximately 0.43. - public static readonly double LOG10E = 0.434294481903251827651; + public const float LOG10E = (float)LOG10E_DBL; /// The natural logarithm of 2. Approximately 0.69. - public static readonly double LN2 = 0.693147180559945309417; + public const float LN2 = (float)LN2_DBL; /// The natural logarithm of 10. Approximately 2.30. - public static readonly double LN10 = 2.30258509299404568402; + public const float LN10 = (float)LN10_DBL; /// The mathematical constant pi. Approximately 3.14. - public static readonly double PI = 3.14159265358979323846; + public const float PI = (float)PI_DBL; /// The square root 2. Approximately 1.41. - public static readonly double SQRT2 = 1.41421356237309504880; - - /// The smallest positive normal number representable in a float. - public static readonly float FLT_MIN_NORMAL = 1.175494351e-38F; - - /// The smallest positive normal number representable in a double. - public static readonly double DBL_MIN_NORMAL = 2.2250738585072014e-308; - + public const float SQRT2 = (float)SQRT2_DBL; /// Returns the bit pattern of a uint as an int. [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/random.cs b/src/Unity.Mathematics/random.cs index 19de6834..d565fc16 100644 --- a/src/Unity.Mathematics/random.cs +++ b/src/Unity.Mathematics/random.cs @@ -446,7 +446,7 @@ public double4 NextDouble4() [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2 NextFloat2Direction() { - float angle = NextFloat() * (float)PI * 2.0f; + float angle = NextFloat() * PI * 2.0f; float s, c; sincos(angle, out s, out c); return float2(c, s); @@ -456,7 +456,7 @@ public float2 NextFloat2Direction() [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2 NextDouble2Direction() { - double angle = NextDouble() * PI * 2.0; + double angle = NextDouble() * PI_DBL * 2.0; double s, c; sincos(angle, out s, out c); return double2(c, s); @@ -469,7 +469,7 @@ public float3 NextFloat3Direction() float2 rnd = NextFloat2(); float z = rnd.x * 2.0f - 1.0f; float r = sqrt(max(1.0f - z * z, 0.0f)); - float angle = rnd.y * (float)PI * 2.0f; + float angle = rnd.y * PI * 2.0f; float s, c; sincos(angle, out s, out c); return float3(c*r, s*r, z); @@ -482,7 +482,7 @@ public double3 NextDouble3Direction() double2 rnd = NextDouble2(); double z = rnd.x * 2.0 - 1.0; double r = sqrt(max(1.0 - z * z, 0.0)); - double angle = rnd.y * PI * 2.0; + double angle = rnd.y * PI_DBL * 2.0; double s, c; sincos(angle, out s, out c); return double3(c * r, s * r, z); @@ -492,7 +492,7 @@ public double3 NextDouble3Direction() [MethodImpl(MethodImplOptions.AggressiveInlining)] public quaternion NextQuaternionRotation() { - float3 rnd = NextFloat3(float3(2.0f * (float)PI, 2.0f * (float)PI, 1.0f)); + float3 rnd = NextFloat3(float3(2.0f * PI, 2.0f * PI, 1.0f)); float u1 = rnd.z; float2 theta_rho = rnd.xy; diff --git a/src/package.json b/src/package.json index dad394d4..21332b6e 100755 --- a/src/package.json +++ b/src/package.json @@ -3,7 +3,7 @@ "displayName": "Mathematics", "version": "1.0.0", "unity": "2018.3", - "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax. This package is still in experimental phase.", + "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax.", "keywords": [ "unity" ], From 753e3c458d1b77866d1073546b68fa797d00a6e7 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Mon, 15 Apr 2019 16:35:41 +0200 Subject: [PATCH 226/437] Update CHANGELOG.md --- src/CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index d1e6d37d..62b50f5f 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,8 +1,9 @@ # Changelog -## [1.0.0] - 2019-04-15 +## [1.0.1] - 2019-04-15 - Release stable version +- Modify all math constants (e.g `math.PI`) to provide float constant by default instead of double. Use for example `math.PI_DBL` to get the previous double constant. ## [1.0.0-preview.1] - 2019-02-28 From 3b5b5bc60a100a81008c3ccd150f8b321f53b6c7 Mon Sep 17 00:00:00 2001 From: fabriziounity <32733434+fabriziounity@users.noreply.github.com> Date: Fri, 24 May 2019 08:25:52 +0200 Subject: [PATCH 227/437] Use new CI system (#65) * Adding yamato CI * Fix dependency issue * Fix first stage path * Delete unneeded job * Fix wrong package version * Enable publishing from yamato through upm-ci * Remove publish command from gitlab CI * Fix publish stage * getting rid of explicit registry (unrecognized parameter) * Fix package version for testing publish * Fix changelog * Disable gitlab CI * Prepare package data for next release t allow upm ci --- .gitlab-ci.yml | 78 --------------------------------- .yamato/upm-ci.yml | 105 +++++++++++++++++++++++++++++++++++++++++++++ src/CHANGELOG.md | 4 ++ src/package.json | 2 +- 4 files changed, 110 insertions(+), 79 deletions(-) delete mode 100755 .gitlab-ci.yml create mode 100644 .yamato/upm-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100755 index c013d21c..00000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,78 +0,0 @@ -variables: - GIT_SUBMODULE_STRATEGY: recursive - -stages: - - run_tests_on_mono - - build_package - - run_package_tests - - validate_package - - publish_package - -run_tests_on_mono:mac: - stage: run_tests_on_mono - tags: - - mac - script: - - cd src/ - - nuget restore - - msbuild Unity.Mathematics.sln - - mono packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe Tests/bin/Debug/Unity.Mathematics.Tests.dll --process=single - -build_package:mac: - stage: build_package - tags: - - mac - script: - - cd src - - npm version 0.0.1 - - npm pack . - artifacts: - paths: - - src/*.tgz - -run_package_tests:mac: - stage: run_package_tests - tags: - - mac - before_script: - - python Tools/CI/get_unity_launcher.py - script: - - tar xzvf src/com.unity.mathematics-0.0.1.tgz - - ./.UnityLauncher.Editor/osx.10.12-x64/publish/UnityLauncher.Editor -registryoverride https://bfartifactory.bf.unity3d.com/artifactory/api/npm/unity-upm-staging -timeout 1200 -scriptingBackend mono -unityexecutable ~/Editor/Unity.app/Contents/MacOS/Unity -projectpath Unity.Mathematics.TestProject -batchmode -silentcrashes -automated -logfile output-macOS-editmode-test.log -cleanedLogFile output-macOS-editmode-test-cleaned.log -runtests -testresults results.xml -testPlatform editmode --ignoreErrorsOnArtifactCreation - -validate_package:mac: - stage: validate_package - tags: - - mac - only: - - tags - before_script: - - python Tools/CI/get_unity_launcher.py - script: - - cp Tools/CI/ValidatePackage.cs Unity.Mathematics.TestProject/Assets/Editor/ValidatePackage.cs - - tar xzvf src/com.unity.mathematics-0.0.1.tgz - - cd package - - npm version $CI_COMMIT_TAG - - jq --arg rev $CI_COMMIT_SHA '.repository.revision=$rev' package.json > temp_package && mv temp_package package.json - - cd .. - - ./.UnityLauncher.Editor/osx.10.12-x64/publish/UnityLauncher.Editor -registryoverride https://bfartifactory.bf.unity3d.com/artifactory/api/npm/unity-upm-staging -timeout 1200 -unityexecutable ~/Editor/Unity.app/Contents/MacOS/Unity -executeMethod ValidatePackage.Validate ../package -projectpath Unity.Mathematics.TestProject -batchmode -silentcrashes -automated -logfile output-linux-validation.log -cleanedLogFile output-linux-validation-cleaned.log -quit -displayResolutionDialog disabled -addPackage com.unity.package-validation-suite@0.4.0-preview.15 - dependencies: - - build_package:mac - artifacts: - paths: - - package/ - - -publish_package:mac: - stage: publish_package - tags: - - gamecode - - macOS - only: - - tags - script: - - python Tools/CI/validation.py --package-path package --commit-tag $CI_COMMIT_TAG - - cd package - - npm publish --registry https://staging-packages.unity.com - dependencies: - - validate_package:mac diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml new file mode 100644 index 00000000..ba2e5caf --- /dev/null +++ b/.yamato/upm-ci.yml @@ -0,0 +1,105 @@ +run_tests_on_mono: + name: Tests NUnit + commands: + - nuget restore src + - msbuild src/Unity.Mathematics.sln + - mono src/packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe src/Tests/bin/Debug/Unity.Mathematics.Tests.dll --process=single + agent: + name: mac + type: Unity::VM::osx + image: buildfarm/mac:latest + flavor: m1.mac + +pack_mathematics: + name: Pack + agent: + name: mac + type: Unity::VM::osx + image: buildfarm/mac:latest + flavor: m1.mac + commands: + - npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm + - upm-ci package pack --package-path src/ + artifacts: + packages: + paths: + - "upm-ci~/packages/**/*" + dependencies: + - .yamato/upm-ci.yml#run_tests_on_mono + + +validate_mathematics_package_linux: + name: Validate Package + agent: + name: linux + image: sdet/burst_linux:latest + type: Unity::VM + flavor: b1.large + commands: + - sudo npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm + - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.1 + artifacts: + packages: + paths: + - "upm-ci~/packages/**/*" + dependencies: + - .yamato/upm-ci.yml#pack_mathematics + + +publish: + name: Publish + agent: + type: Unity::VM + image: package-ci/win10:stable + flavor: m1.large + commands: + - npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm + - upm-ci package publish --package-path src/ + artifacts: + packages: + paths: + - "upm-ci~/packages/**/*" + dependencies: + - .yamato/upm-ci.yml#validate_mathematics_package_linux + + +publish_ci: + name: all Publish Pipeline + commands: + - echo "Hello world" + agent: + name: whatever + type: Unity::VM + image: cds-ops/ubuntu-18.04-agent:latest + flavor: b1.small + triggers: + tags: + only: + - /^(v|V)\d+\.\d+\.\d+(-preview(\.\d+)?)?$/ + artifacts: + packages: + paths: + - "upm-ci~/packages/**/*" + dependencies: + - .yamato/upm-ci.yml#publish + + +commit_ci: + name: all CI pipeline + commands: + - echo "Hello world" + agent: + name: whatever + type: Unity::VM + image: cds-ops/ubuntu-18.04-agent:latest + flavor: b1.small + triggers: + branches: + only: + - "/.*/" + artifacts: + packages: + paths: + - "upm-ci~/packages/**/*" + dependencies: + - .yamato/upm-ci.yml#validate_mathematics_package_linux diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 62b50f5f..438b5807 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.0.2] - 2019-05-23 + +- WIP + ## [1.0.1] - 2019-04-15 - Release stable version diff --git a/src/package.json b/src/package.json index 21332b6e..2c4d0579 100755 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.mathematics", "displayName": "Mathematics", - "version": "1.0.0", + "version": "1.0.2", "unity": "2018.3", "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax.", "keywords": [ From 48b44c0746dc8c855644d8dc64af82f1fea3e006 Mon Sep 17 00:00:00 2001 From: Lucas Meijer Date: Mon, 17 Jun 2019 09:15:19 +0200 Subject: [PATCH 228/437] ifdef out references to unityengine & unsupported attributes for dots runtime (#70) * ifdef out access to unityengine types * Dots runtime compatibility --- src/Unity.Mathematics/Properties/AssemblyInfo.cs | 4 +++- src/Unity.Mathematics/math_unity_conversion.cs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Unity.Mathematics/Properties/AssemblyInfo.cs b/src/Unity.Mathematics/Properties/AssemblyInfo.cs index 90743b1c..5fcc373f 100644 --- a/src/Unity.Mathematics/Properties/AssemblyInfo.cs +++ b/src/Unity.Mathematics/Properties/AssemblyInfo.cs @@ -1,4 +1,5 @@ -using System.Reflection; +#if !UNITY_DOTSPLAYER +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -38,3 +39,4 @@ [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] +#endif diff --git a/src/Unity.Mathematics/math_unity_conversion.cs b/src/Unity.Mathematics/math_unity_conversion.cs index 7ec58df9..e8db0798 100644 --- a/src/Unity.Mathematics/math_unity_conversion.cs +++ b/src/Unity.Mathematics/math_unity_conversion.cs @@ -1,3 +1,4 @@ +#if !UNITY_DOTSPLAYER using UnityEngine; #pragma warning disable 0660, 0661 @@ -34,3 +35,4 @@ public partial struct float4x4 public static implicit operator Matrix4x4(float4x4 m) { return new Matrix4x4(m.c0, m.c1, m.c2, m.c3); } } } +#endif From 0e9c6ad6ad34dd407f11c7c54ccbfeaa853699f5 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Thu, 27 Jun 2019 11:30:58 +0200 Subject: [PATCH 229/437] Add support for math.bitmask(float4) (#72) Add support for math.bitmask(float4) --- src/CHANGELOG.md | 3 ++- src/Tests/Tests/Shared/TestBitmanipulation.cs | 20 +++++++++++++++++-- src/Unity.Mathematics.sln | 3 ++- src/Unity.Mathematics/math.cs | 20 +++++++++++++++++++ src/package.json | 2 +- 5 files changed, 43 insertions(+), 5 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 438b5807..0baaa7a1 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,8 +1,9 @@ # Changelog -## [1.0.2] - 2019-05-23 +## [1.1.0] - 2019-06-xx - WIP +- Add new math.bitmask to return a bit mask from a bool4 ## [1.0.1] - 2019-04-15 diff --git a/src/Tests/Tests/Shared/TestBitmanipulation.cs b/src/Tests/Tests/Shared/TestBitmanipulation.cs index 3f2d5b92..1c1be1e6 100644 --- a/src/Tests/Tests/Shared/TestBitmanipulation.cs +++ b/src/Tests/Tests/Shared/TestBitmanipulation.cs @@ -7,6 +7,22 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBitmanipulation { + [TestCompiler] + public static void bitmask_bool4() + { + TestUtils.AreEqual(0b0000, bitmask(new bool4(false, false, false, false))); + TestUtils.AreEqual(0b0001, bitmask(new bool4(true, false, false, false))); + TestUtils.AreEqual(0b0010, bitmask(new bool4(false, true, false, false))); + TestUtils.AreEqual(0b0100, bitmask(new bool4(false, false, true, false))); + TestUtils.AreEqual(0b1000, bitmask(new bool4(false, false, false, true))); + + TestUtils.AreEqual(0b1111, bitmask(new bool4(true, true, true, true))); + TestUtils.AreEqual(0b1110, bitmask(new bool4(false, true, true, true))); + TestUtils.AreEqual(0b1101, bitmask(new bool4(true, false, true, true))); + TestUtils.AreEqual(0b1011, bitmask(new bool4(true, true, false, true))); + TestUtils.AreEqual(0b0111, bitmask(new bool4(true, true, true, false))); + } + [TestCompiler] public static void countbits_int1() { @@ -392,7 +408,7 @@ public static void rol_int4() { TestUtils.AreEqual(rol(int4(219257022, -1586446996, -279484078, -1692078607), 11), int4(-1933184920, -2048170741, -1152739462, 661621977)); } - + [TestCompiler] public static void rol_uint() { @@ -414,7 +430,7 @@ public static void rol_uint3() { TestUtils.AreEqual(rol(uint3(219257022u, 2708520300u, 4015483218u), 11), uint3(2361782376u, 2246796555u, 3142227834u)); } - + [TestCompiler] public static void rol_uint4() { diff --git a/src/Unity.Mathematics.sln b/src/Unity.Mathematics.sln index 64d0ecd2..720330a4 100644 --- a/src/Unity.Mathematics.sln +++ b/src/Unity.Mathematics.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 @@ -11,6 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "General", "General", "{B11E ProjectSection(SolutionItems) = preProject package.json = package.json ..\readme.md = ..\readme.md + CHANGELOG.md = CHANGELOG.md EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Mathematics.Tests", "Tests\Unity.Mathematics.Tests.csproj", "{2E7C74D3-42F1-482F-8BB7-E199D9E3B412}" diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index a5ab5303..bf84dbdb 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -232,6 +232,26 @@ public static float asfloat(int x) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 asfloat(uint4 x) { return float4(asfloat(x.x), asfloat(x.y), asfloat(x.z), asfloat(x.w)); } + /// + /// Returns a bitmask representation of a bool4. Storing one 1 bit per component + /// in LSB order, from lower to higher bits (so 4 bits in total). + /// The component x is stored at bit 0, + /// The component y is stored at bit 1, + /// The component z is stored at bit 2, + /// The component w is stored at bit 3 + /// The bool4(x = true, y = true, z = false, w = true) would produce the value 1011 = 0xB + /// + /// The input bool4 to calculate the bitmask for + /// A bitmask representation of the bool4, in LSB order + public static int bitmask(bool4 value) + { + int mask = 0; + if (value.x) mask |= 0x01; + if (value.y) mask |= 0x02; + if (value.z) mask |= 0x04; + if (value.w) mask |= 0x08; + return mask; + } /// Returns the bit pattern of a long as a double. [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/package.json b/src/package.json index 2c4d0579..ee4d69f5 100755 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.mathematics", "displayName": "Mathematics", - "version": "1.0.2", + "version": "1.1.0", "unity": "2018.3", "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax.", "keywords": [ From a861494b15b3870afddf3430c9f8fd624f49ad88 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Thu, 27 Jun 2019 11:38:14 +0200 Subject: [PATCH 230/437] Update to 1.1.0-preview.1 instead --- src/CHANGELOG.md | 3 +-- src/package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 0baaa7a1..3d3f3ce5 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,8 +1,7 @@ # Changelog -## [1.1.0] - 2019-06-xx +## [1.1.0-preview.1] - 2019-06-28 -- WIP - Add new math.bitmask to return a bit mask from a bool4 ## [1.0.1] - 2019-04-15 diff --git a/src/package.json b/src/package.json index ee4d69f5..23e8f8c1 100755 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.mathematics", "displayName": "Mathematics", - "version": "1.1.0", + "version": "1.1.0-preview.1", "unity": "2018.3", "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax.", "keywords": [ From e070e312a6dcc467cadd89373edf1c37b7f90df0 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Thu, 27 Jun 2019 11:41:04 +0200 Subject: [PATCH 231/437] Change publishing date on changelog --- src/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 3d3f3ce5..e74784d7 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [1.1.0-preview.1] - 2019-06-28 +## [1.1.0-preview.1] - 2019-06-27 - Add new math.bitmask to return a bit mask from a bool4 From 2c0b66cbd0ca809b023355aed47291e9ad2dad60 Mon Sep 17 00:00:00 2001 From: Fabrizio Perria Date: Thu, 27 Jun 2019 11:45:08 +0200 Subject: [PATCH 232/437] Fix CI for publishing --- .yamato/upm-ci.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index ba2e5caf..fbaf3e00 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -18,7 +18,7 @@ pack_mathematics: image: buildfarm/mac:latest flavor: m1.mac commands: - - npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm + - npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g - upm-ci package pack --package-path src/ artifacts: packages: @@ -36,7 +36,7 @@ validate_mathematics_package_linux: type: Unity::VM flavor: b1.large commands: - - sudo npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm + - sudo npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.1 artifacts: packages: @@ -53,7 +53,7 @@ publish: image: package-ci/win10:stable flavor: m1.large commands: - - npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm + - npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g - upm-ci package publish --package-path src/ artifacts: packages: @@ -62,6 +62,21 @@ publish: dependencies: - .yamato/upm-ci.yml#validate_mathematics_package_linux +promote: + name: Promote + agent: + type: Unity::VM + image: package-ci/win10:stable + flavor: m1.large + commands: + - npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g + - upm-ci package promote --package-path src/ + artifacts: + packages: + paths: + - "upm-ci~/packages/**/*" + dependencies: + - .yamato/upm-ci.yml#publish publish_ci: name: all Publish Pipeline @@ -75,7 +90,7 @@ publish_ci: triggers: tags: only: - - /^(v|V)\d+\.\d+\.\d+(-preview(\.\d+)?)?$/ + - /^\d+\.\d+\.\d+(-preview(\.\d+)?)?$/ artifacts: packages: paths: From c0d8cb840e1f82bc814079c6b5131c859185b091 Mon Sep 17 00:00:00 2001 From: Fabrizio Perria Date: Thu, 27 Jun 2019 13:13:29 +0200 Subject: [PATCH 233/437] Use production environment while promoting a package --- .yamato/upm-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index fbaf3e00..bb580c21 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -68,6 +68,8 @@ promote: type: Unity::VM image: package-ci/win10:stable flavor: m1.large + variables: + UPMCI_PROMOTION: 1 commands: - npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g - upm-ci package promote --package-path src/ From 0d092d7b7b10ffb055bd390f4a0cf1d140160d7f Mon Sep 17 00:00:00 2001 From: Fabrizio Perria Date: Sun, 30 Jun 2019 08:06:33 +0200 Subject: [PATCH 234/437] Change year for license --- LICENSE.md | 2 +- readme.md | 2 +- src/Documentation~/mathematics.md | 2 +- src/LICENSE.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 4c2154cc..311c9904 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,5 +1,5 @@ Unity Companion License (“License”) -Software Copyright © 2017 Unity Technologies ApS +Software Copyright © 2019 Unity Technologies ApS Unity Technologies ApS (“Unity”) grants to you a worldwide, non-exclusive, no-charge, and royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute the software that is made available under this License (“Software”), subject to the following terms and conditions: diff --git a/readme.md b/readme.md index 51a77503..992642fc 100644 --- a/readme.md +++ b/readme.md @@ -73,7 +73,7 @@ We are working on providing a Contributor License Agreement (CLA) with a sign-ov ## Licensing -Unity Companion License (“License”) Software Copyright © 2017 Unity Technologies ApS +Unity Companion License (“License”) Software Copyright © 2019 Unity Technologies ApS For licensing details see [LICENSE.md](LICENSE.md) diff --git a/src/Documentation~/mathematics.md b/src/Documentation~/mathematics.md index 51a77503..992642fc 100644 --- a/src/Documentation~/mathematics.md +++ b/src/Documentation~/mathematics.md @@ -73,7 +73,7 @@ We are working on providing a Contributor License Agreement (CLA) with a sign-ov ## Licensing -Unity Companion License (“License”) Software Copyright © 2017 Unity Technologies ApS +Unity Companion License (“License”) Software Copyright © 2019 Unity Technologies ApS For licensing details see [LICENSE.md](LICENSE.md) diff --git a/src/LICENSE.md b/src/LICENSE.md index 4c2154cc..311c9904 100755 --- a/src/LICENSE.md +++ b/src/LICENSE.md @@ -1,5 +1,5 @@ Unity Companion License (“License”) -Software Copyright © 2017 Unity Technologies ApS +Software Copyright © 2019 Unity Technologies ApS Unity Technologies ApS (“Unity”) grants to you a worldwide, non-exclusive, no-charge, and royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute the software that is made available under this License (“Software”), subject to the following terms and conditions: From 0a3dfafaf606098ea681de4c4be60f3aac63b773 Mon Sep 17 00:00:00 2001 From: fabrizio Date: Mon, 8 Jul 2019 12:37:00 +0200 Subject: [PATCH 235/437] Prepare for version release --- src/CHANGELOG.md | 4 ++++ src/package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index e74784d7..ca77b480 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.1.0] - 2019-07-08 + +- Release stable version + ## [1.1.0-preview.1] - 2019-06-27 - Add new math.bitmask to return a bit mask from a bool4 diff --git a/src/package.json b/src/package.json index 23e8f8c1..ee4d69f5 100755 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.mathematics", "displayName": "Mathematics", - "version": "1.1.0-preview.1", + "version": "1.1.0", "unity": "2018.3", "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax.", "keywords": [ From 133975fb8f76b8202754aed0034e42badfcbe371 Mon Sep 17 00:00:00 2001 From: fabrizio Date: Fri, 6 Sep 2019 11:13:15 +0200 Subject: [PATCH 236/437] Validate mathematics against all supported editors --- .yamato/upm-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index bb580c21..44c75ad0 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -37,7 +37,11 @@ validate_mathematics_package_linux: flavor: b1.large commands: - sudo npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g + - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2018.4 - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.1 + - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.2 + - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.3 + - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version trunk artifacts: packages: paths: From 8f69c44f1e023ecfa68878cb4b79a9fa1d96c23c Mon Sep 17 00:00:00 2001 From: jokubask <55229530+jokubask@users.noreply.github.com> Date: Tue, 8 Oct 2019 20:44:52 +0300 Subject: [PATCH 237/437] improve package validation (#85) * Added nightly job and reduced commit job complexity * fixed nightly validation not using upm_cmd --- .yamato/upm-ci.yml | 116 +++++++++++++++++++++++++++++++-------------- 1 file changed, 80 insertions(+), 36 deletions(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index 44c75ad0..c95804c5 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -1,3 +1,32 @@ +build_platforms: + - name: windows + type: Unity::VM + image: sdet/burst-devimage:stable + flavor: b1.large + npm_cmd: "npm" + upm_cmd: "upm-ci" + - name: linux + image: sdet/burst_linux:stable + type: Unity::VM + flavor: b1.large + npm_cmd: "sudo npm" + upm_cmd: "DISPLAY=:0.0 upm-ci" + - name: macOS + image: burst/burst_mac:stable + type: Unity::VM::osx + flavor: m1.mac + npm_cmd: "npm" + upm_cmd: "upm-ci" + + +editor_versions: + - version: "2018.4" + - version: "2019.2" + - version: "2019.3" + - version: "trunk" +--- + + run_tests_on_mono: name: Tests NUnit commands: @@ -10,8 +39,9 @@ run_tests_on_mono: image: buildfarm/mac:latest flavor: m1.mac -pack_mathematics: - name: Pack + +pack_package: + name: Pack package agent: name: mac type: Unity::VM::osx @@ -25,29 +55,46 @@ pack_mathematics: paths: - "upm-ci~/packages/**/*" dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono + - .yamato/upm-ci.yml#run_tests_on_mono -validate_mathematics_package_linux: - name: Validate Package +validate_package_minimal: + name: Validate Package Linux Minimal agent: name: linux - image: sdet/burst_linux:latest + image: sdet/burst_linux:stable type: Unity::VM flavor: b1.large commands: - sudo npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g - - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2018.4 - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.1 - - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.2 - - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.3 - - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version trunk artifacts: packages: paths: - "upm-ci~/packages/**/*" dependencies: - - .yamato/upm-ci.yml#pack_mathematics + - .yamato/upm-ci.yml#pack_package + + {% for platform in build_platforms %} + {% for editor in editor_versions %} +validate_package_{{platform.name}}_{{editor.version}}: + name: Validate package {{platform.name}} {{editor.version}} + agent: + name: {{platform.name}} + image: {{platform.image}} + type: {{platform.type}} + flavor: {{platform.flavor}} + commands: + - {{platform.npm_cmd}} install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g + - {{platform.upm_cmd}} package test --package-path src/ --unity-version {{ editor.version }} + artifacts: + packages: + paths: + - "upm-ci~/packages/**/*" + dependencies: + - .yamato/upm-ci.yml#pack_package + {% endfor %} + {% endfor %} publish: @@ -64,7 +111,12 @@ publish: paths: - "upm-ci~/packages/**/*" dependencies: - - .yamato/upm-ci.yml#validate_mathematics_package_linux + {% for platform in build_platforms %} + {% for editor in editor_versions %} + - .yamato/upm-ci.yml#validate_package_{{platform.name}}_{{editor.version}} + {% endfor %} + {% endfor %} + promote: name: Promote @@ -84,43 +136,35 @@ promote: dependencies: - .yamato/upm-ci.yml#publish + publish_ci: name: all Publish Pipeline - commands: - - echo "Hello world" - agent: - name: whatever - type: Unity::VM - image: cds-ops/ubuntu-18.04-agent:latest - flavor: b1.small triggers: tags: only: - /^\d+\.\d+\.\d+(-preview(\.\d+)?)?$/ - artifacts: - packages: - paths: - - "upm-ci~/packages/**/*" dependencies: - - .yamato/upm-ci.yml#publish + - .yamato/upm-ci.yml#publish + +nightly_ci: + name: all Nightly Pipeline + triggers: + recurring: + - branch: master + frequency: daily + dependencies: + {% for platform in build_platforms %} + {% for editor in editor_versions %} + - .yamato/upm-ci.yml#validate_package_{{platform.name}}_{{editor.version}} + {% endfor %} + {% endfor %} commit_ci: name: all CI pipeline - commands: - - echo "Hello world" - agent: - name: whatever - type: Unity::VM - image: cds-ops/ubuntu-18.04-agent:latest - flavor: b1.small triggers: branches: only: - "/.*/" - artifacts: - packages: - paths: - - "upm-ci~/packages/**/*" dependencies: - - .yamato/upm-ci.yml#validate_mathematics_package_linux + - .yamato/upm-ci.yml#validate_package_minimal From d34adde4dc163fed544334b513cbccce2ceb839a Mon Sep 17 00:00:00 2001 From: jokubask <55229530+jokubask@users.noreply.github.com> Date: Fri, 11 Oct 2019 07:30:14 +0200 Subject: [PATCH 238/437] improve package validation (#86) --- .yamato/upm-ci.yml | 68 ++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 36 deletions(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index c95804c5..f75e9b9b 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -26,37 +26,24 @@ editor_versions: - version: "trunk" --- - -run_tests_on_mono: - name: Tests NUnit +{% for platform in build_platforms %} +{% unless platform.name == "linux" %} +run_tests_on_mono_{{platform.name}}: + name: Tests NUnit on {{platform.name}} + agent: + name: {{platform.name}} + type: {{platform.type}} + image: {{platform.image}} + flavor: {{platform.flavor}} commands: + {% if platform.name == "windows" %} + - choco install nuget.commandline + {% endif %} - nuget restore src - msbuild src/Unity.Mathematics.sln - mono src/packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe src/Tests/bin/Debug/Unity.Mathematics.Tests.dll --process=single - agent: - name: mac - type: Unity::VM::osx - image: buildfarm/mac:latest - flavor: m1.mac - - -pack_package: - name: Pack package - agent: - name: mac - type: Unity::VM::osx - image: buildfarm/mac:latest - flavor: m1.mac - commands: - - npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g - - upm-ci package pack --package-path src/ - artifacts: - packages: - paths: - - "upm-ci~/packages/**/*" - dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono - +{% endunless %} +{% endfor %} validate_package_minimal: name: Validate Package Linux Minimal @@ -67,13 +54,18 @@ validate_package_minimal: flavor: b1.large commands: - sudo npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g + - DISPLAY=:0.0 upm-ci package pack --package-path src/ - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.1 artifacts: packages: paths: - "upm-ci~/packages/**/*" dependencies: - - .yamato/upm-ci.yml#pack_package + {% for platform in build_platforms %} + {% unless platform.name == "linux" %} + - .yamato/upm-ci.yml#run_tests_on_mono_{{platform.name}} + {% endunless %} + {% endfor %} {% for platform in build_platforms %} {% for editor in editor_versions %} @@ -86,13 +78,21 @@ validate_package_{{platform.name}}_{{editor.version}}: flavor: {{platform.flavor}} commands: - {{platform.npm_cmd}} install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g + - {{platform.upm_cmd}} package pack --package-path src/ - {{platform.upm_cmd}} package test --package-path src/ --unity-version {{ editor.version }} artifacts: - packages: + packages_{{platform.name}}_{{editor.version}}: paths: - "upm-ci~/packages/**/*" + results_{{platform.name}}_{{editor.version}}: + paths: + - "upm-ci~/**/*" dependencies: - - .yamato/upm-ci.yml#pack_package + {% for platform in build_platforms %} + {% unless platform.name == "linux" %} + - .yamato/upm-ci.yml#run_tests_on_mono_{{platform.name}} + {% endunless %} + {% endfor %} {% endfor %} {% endfor %} @@ -111,11 +111,7 @@ publish: paths: - "upm-ci~/packages/**/*" dependencies: - {% for platform in build_platforms %} - {% for editor in editor_versions %} - - .yamato/upm-ci.yml#validate_package_{{platform.name}}_{{editor.version}} - {% endfor %} - {% endfor %} + - .yamato/upm-ci.yml#validate_package_minimal promote: @@ -157,7 +153,7 @@ nightly_ci: {% for editor in editor_versions %} - .yamato/upm-ci.yml#validate_package_{{platform.name}}_{{editor.version}} {% endfor %} - {% endfor %} + {% endfor %} commit_ci: From c172b93739fec673904824cdc7e4cdf1488d0743 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Fri, 10 Jan 2020 15:35:27 -0800 Subject: [PATCH 239/437] Fixing the path to the tests directory for code gen. --- src/Unity.Mathematics.CodeGen/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Unity.Mathematics.CodeGen/Program.cs b/src/Unity.Mathematics.CodeGen/Program.cs index 632fa8a0..c7b27699 100644 --- a/src/Unity.Mathematics.CodeGen/Program.cs +++ b/src/Unity.Mathematics.CodeGen/Program.cs @@ -10,7 +10,7 @@ class MainClass public static void Main (string[] args) { Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); - + var thisExeDir = Path.GetDirectoryName(typeof(MainClass).Assembly.Location); if (thisExeDir == null) { @@ -34,7 +34,7 @@ public static void Main (string[] args) throw new InvalidOperationException($"The directory `{implementationDirectory.FullName}` must exist"); } - var testDirectory = new DirectoryInfo(Path.Combine(parent.FullName, "Unity.Mathematics.Tests/Tests/Shared")); + var testDirectory = new DirectoryInfo(Path.Combine(parent.FullName, "Tests/Tests/Shared")); if (!implementationDirectory.Exists) { throw new InvalidOperationException($"The directory `{testDirectory.FullName}` must exist"); From 5bd61953f9333e7af63de1f19fb6deaa5bb61b98 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Fri, 10 Jan 2020 15:52:25 -0800 Subject: [PATCH 240/437] Fixing Linux CI by changing VM image. Should be using package-ci instead of custom one. --- .yamato/upm-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index f75e9b9b..7847c205 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -1,18 +1,18 @@ build_platforms: - name: windows type: Unity::VM - image: sdet/burst-devimage:stable + image: package-ci/win10:stable flavor: b1.large npm_cmd: "npm" upm_cmd: "upm-ci" - name: linux - image: sdet/burst_linux:stable + image: package-ci/ubuntu:stable type: Unity::VM flavor: b1.large - npm_cmd: "sudo npm" + npm_cmd: "npm" upm_cmd: "DISPLAY=:0.0 upm-ci" - name: macOS - image: burst/burst_mac:stable + image: package-ci/mac:stable type: Unity::VM::osx flavor: m1.mac npm_cmd: "npm" From 5b6734cf9a8891f6145d2bcbdb10e3b7ad321795 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Fri, 10 Jan 2020 16:08:08 -0800 Subject: [PATCH 241/437] Restore Win10 and Mac images. Don't fix what ain't broke. --- .yamato/upm-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index 7847c205..d0efd8f3 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -1,7 +1,7 @@ build_platforms: - name: windows type: Unity::VM - image: package-ci/win10:stable + image: sdet/burst-devimage:stable flavor: b1.large npm_cmd: "npm" upm_cmd: "upm-ci" @@ -12,7 +12,7 @@ build_platforms: npm_cmd: "npm" upm_cmd: "DISPLAY=:0.0 upm-ci" - name: macOS - image: package-ci/mac:stable + image: burst/burst_mac:stable type: Unity::VM::osx flavor: m1.mac npm_cmd: "npm" @@ -33,7 +33,7 @@ run_tests_on_mono_{{platform.name}}: agent: name: {{platform.name}} type: {{platform.type}} - image: {{platform.image}} + image: {{platform.image}} flavor: {{platform.flavor}} commands: {% if platform.name == "windows" %} From 7bb6229a1597dd2845bc67789507bef8c949d6c8 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Fri, 10 Jan 2020 16:18:55 -0800 Subject: [PATCH 242/437] Remove sudo. Will this work now?? --- .yamato/upm-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index d0efd8f3..f2ee9d36 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -53,7 +53,7 @@ validate_package_minimal: type: Unity::VM flavor: b1.large commands: - - sudo npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g + - npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g - DISPLAY=:0.0 upm-ci package pack --package-path src/ - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.1 artifacts: From da83caa3e8d4d91ac93cf2a01ed4ca7979df505f Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Fri, 10 Jan 2020 16:28:19 -0800 Subject: [PATCH 243/437] Change VM for Validate Package Linux Minimal. --- .yamato/upm-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index f2ee9d36..dfccf488 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -49,7 +49,7 @@ validate_package_minimal: name: Validate Package Linux Minimal agent: name: linux - image: sdet/burst_linux:stable + image: package-ci/ubuntu:stable type: Unity::VM flavor: b1.large commands: From ad16af174f7775b881356c3cd5746c32c0376ea6 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Fri, 10 Jan 2020 15:04:55 -0800 Subject: [PATCH 244/437] Adding EPSILON and EPSILON_DBL constants. --- src/Tests/Tests/Shared/TestMath.cs | 22 ++++++++++++++++++++-- src/Unity.Mathematics/math.cs | 16 ++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index 992624e1..7a3a966f 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -1941,7 +1941,7 @@ public static void csum_float2() TestUtils.AreEqual(csum(float2(-2.2e38f, 1.5e38f)), -7e37f, 4, false); TestUtils.AreEqual(csum(float2(-2.2e38f, -1.5e38f)), float.NegativeInfinity, 0, false); TestUtils.AreEqual(csum(float2( 2.2e38f, 1.5e38f)), float.PositiveInfinity, 0, false); - + TestUtils.AreEqual(csum(float2(float.NegativeInfinity, float.PositiveInfinity)), float.NaN, 0, false); TestUtils.AreEqual(csum(float2(float.NegativeInfinity, float.NaN)), float.NaN, 0, false); TestUtils.AreEqual(csum(float2(float.NegativeInfinity, 100.0f)), float.NegativeInfinity, 0, false); @@ -2832,7 +2832,7 @@ public static void distancesq_float2() TestUtils.AreEqual(distancesq(float2(1.3f, -2.4f), float2(-5.3f, 4.3f)), 88.45f, 8, false); TestUtils.AreEqual(distancesq(float2(1.3e18f, -2.4e18f), float2(-5.3e18f, 4.3e18f)), 8.845e37f, 8, false); - + TestUtils.AreEqual(distancesq(float2(1.3f, -2.4f), float2(float.NaN, 4.3f)), float.NaN, 0, false); TestUtils.AreEqual(distancesq(float2(1.3f, -2.4f), float2(-5.3f, float.PositiveInfinity)), float.PositiveInfinity, 0, false); } @@ -2905,6 +2905,24 @@ public static void distancesq_double4() TestUtils.AreEqual(distancesq(double4(1.3, double.NegativeInfinity, 5.7, 3.1), double4(-5.3, 4.3, 4.7, 0.3)), double.PositiveInfinity, 8, false); } + [TestCompiler] + public static void epsilon_float() + { + float next = asfloat(asuint(1.0f) + 1); + float computed_epsilon = next - 1.0f; + Assert.AreEqual(computed_epsilon, EPSILON, 0.0f); + Assert.AreNotEqual(Single.Epsilon, EPSILON); + } + + [TestCompiler] + public static void epsilon_double() + { + double next = asdouble(aslong(1.0) + 1); + double computed_epsilon = next - 1.0; + Assert.AreEqual(computed_epsilon, EPSILON_DBL, 0.0); + Assert.AreNotEqual(Double.Epsilon, EPSILON_DBL); + } + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_float_signed_zero() diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index bf84dbdb..7669949b 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -68,6 +68,14 @@ public enum ShuffleComponent : byte /// The square root 2. Approximately 1.41. This is a f64/double precision constant. public const double SQRT2_DBL = 1.41421356237309504880; + /// + /// The difference between 1.0 and the next representable f64/double precision number. + /// + /// Beware: + /// This value is different from System.Double.Epsilon, which is the smallest, positive, denormalized f64/double. + /// + public const double EPSILON_DBL = 2.22044604925031308085e-16; + /// The smallest positive normal number representable in a float. public const float FLT_MIN_NORMAL = 1.175494351e-38F; @@ -95,6 +103,14 @@ public enum ShuffleComponent : byte /// The square root 2. Approximately 1.41. public const float SQRT2 = (float)SQRT2_DBL; + /// + /// The difference between 1.0f and the next representable f32/single precision number. + /// + /// Beware: + /// This value is different from System.Single.Epsilon, which is the smallest, positive, denormalized f32/single. + /// + public const float EPSILON = 1.1920928955078125e-7f; + /// Returns the bit pattern of a uint as an int. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int asint(uint x) { return (int)x; } From 547aa3e44c4f867c19dbf29485e5f2cd7e3c659d Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Mon, 13 Jan 2020 20:33:39 -0800 Subject: [PATCH 245/437] Fix test directory check which was using the wrong directory. --- src/Unity.Mathematics.CodeGen/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Unity.Mathematics.CodeGen/Program.cs b/src/Unity.Mathematics.CodeGen/Program.cs index c7b27699..1414c97b 100644 --- a/src/Unity.Mathematics.CodeGen/Program.cs +++ b/src/Unity.Mathematics.CodeGen/Program.cs @@ -35,7 +35,7 @@ public static void Main (string[] args) } var testDirectory = new DirectoryInfo(Path.Combine(parent.FullName, "Tests/Tests/Shared")); - if (!implementationDirectory.Exists) + if (!testDirectory.Exists) { throw new InvalidOperationException($"The directory `{testDirectory.FullName}` must exist"); } From 3cedd2f562cbd7631212bc66236a8413f0c23db7 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Mon, 3 Feb 2020 14:25:40 -0800 Subject: [PATCH 246/437] Adding infinity and NaN constants. Decided to implement them anyways so documentation could be added to those constants to spread some Bob Ross knowledge. --- src/Tests/Tests/Shared/TestMath.cs | 36 ++++++++++++++++++++++++++++++ src/Unity.Mathematics/math.cs | 26 +++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index 7a3a966f..3576edbb 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -2923,6 +2923,42 @@ public static void epsilon_double() Assert.AreNotEqual(Double.Epsilon, EPSILON_DBL); } + [TestCompiler] + public static void nan_float() + { + Assert.AreNotEqual(0.0f, NAN); + Assert.AreNotEqual(INFINITY, NAN); + Assert.IsFalse(NAN == NAN); + Assert.IsFalse(isfinite(NAN)); + Assert.IsTrue(isnan(NAN)); + } + + [TestCompiler] + public static void nan_double() + { + Assert.AreNotEqual(0.0, NAN_DBL); + Assert.AreNotEqual(INFINITY_DBL, NAN_DBL); + Assert.IsFalse(NAN_DBL == NAN_DBL); + Assert.IsFalse(isfinite(NAN_DBL)); + Assert.IsTrue(isnan(NAN_DBL)); + } + + [TestCompiler] + public static void infinity_float() + { + Assert.AreNotEqual(-INFINITY, INFINITY); + Assert.IsTrue(isinf(INFINITY)); + Assert.IsFalse(isfinite(INFINITY)); + } + + [TestCompiler] + public static void infinity_double() + { + Assert.AreNotEqual(-INFINITY_DBL, INFINITY_DBL); + Assert.IsTrue(isinf(INFINITY_DBL)); + Assert.IsFalse(isfinite(INFINITY_DBL)); + } + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_float_signed_zero() diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 7669949b..d50b224f 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -76,6 +76,19 @@ public enum ShuffleComponent : byte /// public const double EPSILON_DBL = 2.22044604925031308085e-16; + /// + /// Double precision constant for positive infinity. + /// + public const double INFINITY_DBL = Double.PositiveInfinity; + + /// + /// Double precision constant for Not a Number. + /// + /// Note: There are multiple bit representations for NaN and NaN compares false with all other numbers, even with itself. + /// Use isnan() if you must test if a number is NaN. + /// + public const double NAN_DBL = Double.NaN; + /// The smallest positive normal number representable in a float. public const float FLT_MIN_NORMAL = 1.175494351e-38F; @@ -111,6 +124,19 @@ public enum ShuffleComponent : byte /// public const float EPSILON = 1.1920928955078125e-7f; + /// + /// Single precision constant for positive infinity. + /// + public const float INFINITY = Single.PositiveInfinity; + + /// + /// Single precision constant for Not a Number. + /// + /// Note: There are multiple bit representations for NaN and NaN compares false with all other numbers, even with itself. + /// Use isnan() if you must test if a number is NaN. + /// + public const float NAN = Single.NaN; + /// Returns the bit pattern of a uint as an int. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int asint(uint x) { return (int)x; } From 9d5f77ba5ea17a92cd5fd395c7a72096a7b4327a Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Tue, 4 Feb 2020 17:07:35 -0800 Subject: [PATCH 247/437] Fixing test project manifest.json to correct Unity.Mathematics location. --- Unity.Mathematics.TestProject/Assets/csc.rsp.meta | 7 ------- Unity.Mathematics.TestProject/Assets/mcs.rsp.meta | 7 ------- Unity.Mathematics.TestProject/Packages/manifest.json | 2 +- .../ProjectSettings/ProjectVersion.txt | 2 +- 4 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 Unity.Mathematics.TestProject/Assets/csc.rsp.meta delete mode 100644 Unity.Mathematics.TestProject/Assets/mcs.rsp.meta diff --git a/Unity.Mathematics.TestProject/Assets/csc.rsp.meta b/Unity.Mathematics.TestProject/Assets/csc.rsp.meta deleted file mode 100644 index dca1d3c8..00000000 --- a/Unity.Mathematics.TestProject/Assets/csc.rsp.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 53c71fa8baf914e2d8fff014cab8a801 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity.Mathematics.TestProject/Assets/mcs.rsp.meta b/Unity.Mathematics.TestProject/Assets/mcs.rsp.meta deleted file mode 100644 index ada47b24..00000000 --- a/Unity.Mathematics.TestProject/Assets/mcs.rsp.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: bb9a0277550264fb798fafc52b72ae0d -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity.Mathematics.TestProject/Packages/manifest.json b/Unity.Mathematics.TestProject/Packages/manifest.json index 03785f96..fcc3c6fd 100644 --- a/Unity.Mathematics.TestProject/Packages/manifest.json +++ b/Unity.Mathematics.TestProject/Packages/manifest.json @@ -1,6 +1,6 @@ { "dependencies": { - "com.unity.mathematics": "file:../../package", + "com.unity.mathematics": "file:../../src", "com.unity.properties": "0.4.0-preview" }, "testables": [ diff --git a/Unity.Mathematics.TestProject/ProjectSettings/ProjectVersion.txt b/Unity.Mathematics.TestProject/ProjectSettings/ProjectVersion.txt index b05087e6..6a58ea17 100644 --- a/Unity.Mathematics.TestProject/ProjectSettings/ProjectVersion.txt +++ b/Unity.Mathematics.TestProject/ProjectSettings/ProjectVersion.txt @@ -1,2 +1,2 @@ m_EditorVersion: 2019.1.0b5 -m_EditorVersionWithRevision: 2019.1.0b5 (e826de2facec) +m_EditorVersionWithRevision: 2019.1.0b5 (9899a5bd7e43) From e65329035fb04653ed1d3e5633c2c053bf180895 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Tue, 4 Feb 2020 12:56:11 -0800 Subject: [PATCH 248/437] Adding AABB from Entities Unity.Mathematics.Extensions. --- src/Tests/Tests/Shared/TestAABB.cs | 222 ++++++++++++++++++ src/Tests/Tests/Shared/TestAABB.cs.meta | 11 + src/Tests/Unity.Mathematics.Tests.csproj | 1 + src/Unity.Mathematics/Extras.meta | 8 + src/Unity.Mathematics/Extras/AABB.cs | 72 ++++++ src/Unity.Mathematics/Extras/AABB.cs.meta | 11 + .../Unity.Mathematics.csproj | 2 +- 7 files changed, 326 insertions(+), 1 deletion(-) create mode 100644 src/Tests/Tests/Shared/TestAABB.cs create mode 100644 src/Tests/Tests/Shared/TestAABB.cs.meta create mode 100644 src/Unity.Mathematics/Extras.meta create mode 100644 src/Unity.Mathematics/Extras/AABB.cs create mode 100644 src/Unity.Mathematics/Extras/AABB.cs.meta diff --git a/src/Tests/Tests/Shared/TestAABB.cs b/src/Tests/Tests/Shared/TestAABB.cs new file mode 100644 index 00000000..0402c0c9 --- /dev/null +++ b/src/Tests/Tests/Shared/TestAABB.cs @@ -0,0 +1,222 @@ +using NUnit.Framework; +using static Unity.Mathematics.math; +using Unity.Mathematics.Extras; +using Burst.Compiler.IL.Tests; + +namespace Unity.Mathematics.Tests +{ + [TestFixture] + public class TestAABB + { + [TestCompiler] + public static void Min_trivial() + { + var aabb = new AABB(); + + TestUtils.AreEqual(float3.zero, aabb.Min); + } + + [TestCompiler] + public static void Min() + { + var aabb = new AABB { Center = new float3(1.0f, -1.0f, 1.0f), Extents = new float3(0.5f) }; + + TestUtils.AreEqual(new float3(0.5f, -1.5f, 0.5f), aabb.Min); + } + + [TestCompiler] + public static void Max_trivial() + { + var aabb = new AABB(); + + TestUtils.AreEqual(float3.zero, aabb.Max); + } + + [TestCompiler] + public static void Max() + { + var aabb = new AABB { Center = new float3(1.0f, -1.0f, 1.0f), Extents = new float3(0.5f) }; + + TestUtils.AreEqual(new float3(1.5f, -0.5f, 1.5f), aabb.Max); + } + + [TestCompiler] + public static void Size_trivial() + { + var aabb = new AABB(); + + TestUtils.AreEqual(float3.zero, aabb.Size); + } + + [TestCompiler] + public static void Size() + { + var aabb = new AABB { Center = new float3(1.0f, -1.0f, 1.0f), Extents = new float3(0.5f) }; + + TestUtils.AreEqual(new float3(1.0f), aabb.Size); + } + + [TestCompiler] + public static void Contains_float3() + { + AABB aabb = new AABB(); + + Assert.IsTrue(aabb.Contains(float3.zero)); + Assert.IsFalse(aabb.Contains(new float3(FLT_MIN_NORMAL, 0.0f, 0.0f))); + Assert.IsFalse(aabb.Contains(new float3(-FLT_MIN_NORMAL, 0.0f, 0.0f))); + Assert.IsFalse(aabb.Contains(new float3(0.0f, FLT_MIN_NORMAL, 0.0f))); + Assert.IsFalse(aabb.Contains(new float3(0.0f, -FLT_MIN_NORMAL, 0.0f))); + Assert.IsFalse(aabb.Contains(new float3(0.0f, 0.0f, FLT_MIN_NORMAL))); + Assert.IsFalse(aabb.Contains(new float3(0.0f, 0.0f, -FLT_MIN_NORMAL))); + } + + [TestCompiler] + public static void Contains_float3_nonzero_center() + { + var center = new float3(1.0f, -1.0f, 1.0f); + AABB aabb = new AABB { Center = center }; + + Assert.IsFalse(aabb.Contains(float3.zero)); + Assert.IsFalse(aabb.Contains(-center)); + Assert.IsTrue(aabb.Contains(center)); + } + + [TestCompiler] + public static void Contains_float3_nonzero_extents() + { + var extents = new float3(0.5f, 0.5f, 0.5f); + AABB aabb = new AABB { Extents = extents }; + + Assert.IsTrue(aabb.Contains(float3.zero)); + Assert.IsTrue(aabb.Contains(new float3(0.5f, 0.0f, 0.0f))); + Assert.IsTrue(aabb.Contains(new float3(-0.5f, 0.0f, 0.0f))); + Assert.IsTrue(aabb.Contains(new float3(0.0f, 0.5f, 0.0f))); + Assert.IsTrue(aabb.Contains(new float3(0.0f, -0.5f, 0.0f))); + Assert.IsTrue(aabb.Contains(new float3(0.0f, 0.0f, 0.5f))); + Assert.IsTrue(aabb.Contains(new float3(0.0f, 0.0f, -0.5f))); + + Assert.IsFalse(aabb.Contains(new float3(0.6f, 0.0f, 0.0f))); + Assert.IsFalse(aabb.Contains(new float3(-0.6f, 0.0f, 0.0f))); + Assert.IsFalse(aabb.Contains(new float3(0.0f, 0.6f, 0.0f))); + Assert.IsFalse(aabb.Contains(new float3(0.0f, -0.6f, 0.0f))); + Assert.IsFalse(aabb.Contains(new float3(0.0f, 0.0f, 0.6f))); + Assert.IsFalse(aabb.Contains(new float3(0.0f, 0.0f, -0.6f))); + } + + [TestCompiler] + public static void Contains_AABB_trivial() + { + var aabb1 = new AABB(); + var aabb2 = new AABB(); + + Assert.IsTrue(aabb1.Contains(aabb2)); + Assert.IsTrue(aabb2.Contains(aabb1)); + } + + [TestCompiler] + public static void Contains_AABB() + { + var aabb_outer = new AABB { Extents = new float3(0.5f, 0.5f, 0.5f) }; + var aabb_inner = new AABB(); + + Assert.IsTrue(aabb_outer.Contains(aabb_inner)); + Assert.IsFalse(aabb_inner.Contains(aabb_outer)); + } + + [TestCompiler] + public static void Contains_AABB_partial_overlap() + { + var aabb1 = new AABB { Extents = new float3(0.5f, 0.5f, 0.5f) }; + var aabb2 = new AABB { Center = new float3(0.5f, 0.5f, 0.5f), Extents = new float3(0.5f)}; + + Assert.IsFalse(aabb1.Contains(aabb2)); + Assert.IsFalse(aabb2.Contains(aabb1)); + } + + [TestCompiler] + public static void DistanceSq_trivial() + { + var aabb = new AABB(); + + TestUtils.AreEqual(0.0f, aabb.DistanceSq(float3.zero)); + } + + [TestCompiler] + public static void DistanceSq_point_inside() + { + var center = new float3(1.0f); + var aabb = new AABB { Center = center, Extents = new float3(0.5f) }; + + TestUtils.AreEqual(0.0f, aabb.DistanceSq(center), 0.0f); + TestUtils.AreEqual(0.0f, aabb.DistanceSq(center + new float3(0.5f))); + TestUtils.AreEqual(0.0f, aabb.DistanceSq(center + new float3(-0.5f))); + } + + [TestCompiler] + public static void DistanceSq_point_outside() + { + var center = new float3(1.0f); + var aabb = new AABB { Center = center, Extents = new float3(0.5f) }; + + TestUtils.AreEqual(0.25f, aabb.DistanceSq(center + new float3(1.0f, 0.0f, 0.0f))); + TestUtils.AreEqual(0.25f, aabb.DistanceSq(center + new float3(-1.0f, 0.0f, 0.0f))); + TestUtils.AreEqual(0.25f, aabb.DistanceSq(center + new float3(0.0f, 1.0f, 0.0f))); + TestUtils.AreEqual(0.25f, aabb.DistanceSq(center + new float3(0.0f, -1.0f, 0.0f))); + TestUtils.AreEqual(0.25f, aabb.DistanceSq(center + new float3(0.0f, 0.0f, 1.0f))); + TestUtils.AreEqual(0.25f, aabb.DistanceSq(center + new float3(0.0f, 0.0f, -1.0f))); + } + + [TestCompiler] + public static void DistanceSq_point_outside_corner() + { + var center = new float3(1.0f); + var aabb = new AABB { Center = center, Extents = new float3(0.5f) }; + + TestUtils.AreEqual(0.75f, aabb.DistanceSq(center + new float3(1.0f))); + } + + [TestCompiler] + public static void Transform_trivial() + { + var localAabb = new AABB(); + var transform = float4x4.identity; + var transformedAabb = AABB.Transform(transform, localAabb); + + TestUtils.AreEqual(float3.zero, transformedAabb.Center); + TestUtils.AreEqual(float3.zero, transformedAabb.Extents); + } + + [TestCompiler] + public static void Transform_translation() + { + var localAabb = new AABB { Center = float3.zero, Extents = new float3(1.0f) }; + var transform = float4x4.Translate(new float3(1.0f)); + var transformedAabb = AABB.Transform(transform, localAabb); + + TestUtils.AreEqual(new float3(1.0f), transformedAabb.Center); + TestUtils.AreEqual(localAabb.Extents, transformedAabb.Extents); + } + + [TestCompiler] + public static void Transform_rotation() + { + var localAabb = new AABB { Center = float3.zero, Extents = new float3(1.0f) }; + var transform = float4x4.EulerZXY(new float3(PI * 0.25f)); + var transformedAabb = AABB.Transform(transform, localAabb); + + TestUtils.AreEqual(float3.zero, transformedAabb.Center); + TestUtils.AreEqual(new float3( 1.5f, 1.70710678118f, 1.5f), transformedAabb.Extents, 0.0001f); + } + + [TestCompiler] + public static void Transform_translation_rotation() + { + var localAabb = new AABB { Center = float3.zero, Extents = new float3(1.0f) }; + var transform = float4x4.TRS(new float3(1.0f), quaternion.EulerZXY(new float3(PI * 0.25f)), new float3(1.0f)); + var transformedAabb = AABB.Transform(transform, localAabb); + + TestUtils.AreEqual(new float3(1.0f), transformedAabb.Center); + TestUtils.AreEqual(new float3( 1.5f, 1.70710678118f, 1.5f), transformedAabb.Extents, 0.0001f); + } + } +} \ No newline at end of file diff --git a/src/Tests/Tests/Shared/TestAABB.cs.meta b/src/Tests/Tests/Shared/TestAABB.cs.meta new file mode 100644 index 00000000..2a90232d --- /dev/null +++ b/src/Tests/Tests/Shared/TestAABB.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1c1223fe5c61b40478947ba533684984 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Tests/Unity.Mathematics.Tests.csproj b/src/Tests/Unity.Mathematics.Tests.csproj index 563a8558..485a99d9 100644 --- a/src/Tests/Unity.Mathematics.Tests.csproj +++ b/src/Tests/Unity.Mathematics.Tests.csproj @@ -49,6 +49,7 @@ + diff --git a/src/Unity.Mathematics/Extras.meta b/src/Unity.Mathematics/Extras.meta new file mode 100644 index 00000000..bf9bc37c --- /dev/null +++ b/src/Unity.Mathematics/Extras.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 33cb4f42ee6964927bafacf5b1913267 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics/Extras/AABB.cs b/src/Unity.Mathematics/Extras/AABB.cs new file mode 100644 index 00000000..c5b069ef --- /dev/null +++ b/src/Unity.Mathematics/Extras/AABB.cs @@ -0,0 +1,72 @@ +using System; +using static Unity.Mathematics.math; + +namespace Unity.Mathematics.Extras +{ + [Serializable] + public partial struct AABB + { + public float3 Center; + public float3 Extents; + + public float3 Size { get { return Extents * 2; } } + public float3 Min { get { return Center - Extents; } } + public float3 Max { get { return Center + Extents; } } + + /// Returns a string representation of the AABB. + public override string ToString() + { + return $"AABB(Center:{Center}, Extents:{Extents}"; + } + + public bool Contains(float3 point) + { + if (point[0] < Center[0] - Extents[0]) + return false; + if (point[0] > Center[0] + Extents[0]) + return false; + + if (point[1] < Center[1] - Extents[1]) + return false; + if (point[1] > Center[1] + Extents[1]) + return false; + + if (point[2] < Center[2] - Extents[2]) + return false; + if (point[2] > Center[2] + Extents[2]) + return false; + + return true; + } + + public bool Contains(AABB b) + { + return Contains(b.Center + float3(-b.Extents.x, -b.Extents.y, -b.Extents.z)) + && Contains(b.Center + float3(-b.Extents.x, -b.Extents.y, b.Extents.z)) + && Contains(b.Center + float3(-b.Extents.x, b.Extents.y, -b.Extents.z)) + && Contains(b.Center + float3(-b.Extents.x, b.Extents.y, b.Extents.z)) + && Contains(b.Center + float3( b.Extents.x, -b.Extents.y, -b.Extents.z)) + && Contains(b.Center + float3( b.Extents.x, -b.Extents.y, b.Extents.z)) + && Contains(b.Center + float3( b.Extents.x, b.Extents.y, -b.Extents.z)) + && Contains(b.Center + float3( b.Extents.x, b.Extents.y, b.Extents.z)); + } + + static float3 RotateExtents(float3 extents, float3 m0, float3 m1, float3 m2) + { + return math.abs(m0 * extents.x) + math.abs(m1 * extents.y) + math.abs(m2 * extents.z); + } + + public static AABB Transform(float4x4 transform, AABB localBounds) + { + AABB transformed; + transformed.Extents = RotateExtents(localBounds.Extents, transform.c0.xyz, transform.c1.xyz, transform.c2.xyz); + transformed.Center = math.transform(transform, localBounds.Center); + return transformed; + } + + public float DistanceSq(float3 point) + { + return lengthsq(max(abs(point - Center), Extents) - Extents); + } + } +} \ No newline at end of file diff --git a/src/Unity.Mathematics/Extras/AABB.cs.meta b/src/Unity.Mathematics/Extras/AABB.cs.meta new file mode 100644 index 00000000..171c9355 --- /dev/null +++ b/src/Unity.Mathematics/Extras/AABB.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 96f2ab6de5db04aaca1f9bc73ae69367 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 56ae8d78..c51df249 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -118,6 +118,7 @@ + @@ -148,7 +149,6 @@ - + \ No newline at end of file From 27ca4ee70402fffcb4a89c826bb473dd3dae221a Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Mon, 30 Mar 2020 13:31:57 -0700 Subject: [PATCH 282/437] Make AABB and MinMaxAABB internal until we are ready to release. --- src/Unity.Mathematics/Extras/AABB.cs | 2 +- src/Unity.Mathematics/Extras/MinMaxAABB.cs | 2 +- src/Unity.Mathematics/Properties/AssemblyInfo.cs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Unity.Mathematics/Extras/AABB.cs b/src/Unity.Mathematics/Extras/AABB.cs index 8c39ea4e..b998b75f 100644 --- a/src/Unity.Mathematics/Extras/AABB.cs +++ b/src/Unity.Mathematics/Extras/AABB.cs @@ -4,7 +4,7 @@ namespace Unity.Mathematics.Extras { [Serializable] - public partial struct AABB + internal partial struct AABB { public float3 Center; public float3 Extents; diff --git a/src/Unity.Mathematics/Extras/MinMaxAABB.cs b/src/Unity.Mathematics/Extras/MinMaxAABB.cs index ff9579a2..54408f3c 100644 --- a/src/Unity.Mathematics/Extras/MinMaxAABB.cs +++ b/src/Unity.Mathematics/Extras/MinMaxAABB.cs @@ -4,7 +4,7 @@ namespace Unity.Mathematics.Extras { [System.Serializable] - public struct MinMaxAABB : IEquatable + internal struct MinMaxAABB : IEquatable { public float3 Min; public float3 Max; diff --git a/src/Unity.Mathematics/Properties/AssemblyInfo.cs b/src/Unity.Mathematics/Properties/AssemblyInfo.cs index 5fcc373f..1d4a8c0c 100644 --- a/src/Unity.Mathematics/Properties/AssemblyInfo.cs +++ b/src/Unity.Mathematics/Properties/AssemblyInfo.cs @@ -39,4 +39,5 @@ [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: InternalsVisibleTo("Unity.Mathematics.Tests")] #endif From 699e9888043d6f0983fa58b09050b32b897b60b6 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Mon, 30 Mar 2020 15:38:43 -0700 Subject: [PATCH 283/437] Attempting to fix package validation failure. InternalsVisibleTo is defined in AssemblyInfo.cs which lives in the Properties directory, but this directory was being ignored. --- src/.npmignore | 1 - 1 file changed, 1 deletion(-) diff --git a/src/.npmignore b/src/.npmignore index 0246eb90..f98ab88f 100755 --- a/src/.npmignore +++ b/src/.npmignore @@ -14,7 +14,6 @@ Unity.Mathematics.Shaders *.sln *.db **/*.csproj -**/Properties **/packages.config **/bin **/obj From dc45b40c5780e81457632c752ebd9c7b0f369d26 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Wed, 1 Apr 2020 17:53:35 -0700 Subject: [PATCH 284/437] Fix quaternion RotateX/Y/Z documentation. Fixes #131, fixes #64. --- src/Unity.Mathematics/quaternion.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index 20ee7143..eb7b0310 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -304,7 +304,7 @@ public static quaternion Euler(float x, float y, float z, RotationOrder order = return Euler(float3(x, y, z), order); } - /// Returns a float4x4 matrix that rotates around the x-axis by a given number of radians. + /// Returns a quaternion that rotates around the x-axis by a given number of radians. /// The clockwise rotation angle when looking along the x-axis towards the origin in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion RotateX(float angle) @@ -314,7 +314,7 @@ public static quaternion RotateX(float angle) return quaternion(sina, 0.0f, 0.0f, cosa); } - /// Returns a float4x4 matrix that rotates around the y-axis by a given number of radians. + /// Returns a quaternion that rotates around the y-axis by a given number of radians. /// The clockwise rotation angle when looking along the y-axis towards the origin in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion RotateY(float angle) @@ -324,7 +324,7 @@ public static quaternion RotateY(float angle) return quaternion(0.0f, sina, 0.0f, cosa); } - /// Returns a float4x4 matrix that rotates around the z-axis by a given number of radians. + /// Returns a quaternion that rotates around the z-axis by a given number of radians. /// The clockwise rotation angle when looking along the z-axis towards the origin in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion RotateZ(float angle) From ba7967becefad2dcb2230f147df969f4248b931f Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Thu, 2 Apr 2020 07:26:23 -0700 Subject: [PATCH 285/437] Make internals visible to Burst for unit tests. --- src/Unity.Mathematics/Properties/AssemblyInfo.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Unity.Mathematics/Properties/AssemblyInfo.cs b/src/Unity.Mathematics/Properties/AssemblyInfo.cs index 1d4a8c0c..f6ae9b5d 100644 --- a/src/Unity.Mathematics/Properties/AssemblyInfo.cs +++ b/src/Unity.Mathematics/Properties/AssemblyInfo.cs @@ -40,4 +40,5 @@ [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: InternalsVisibleTo("Unity.Mathematics.Tests")] +[assembly: InternalsVisibleTo("btests")] #endif From 0357976e819f6d4cb03ceef2b231fa2f8221f77f Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Fri, 3 Apr 2020 17:29:37 -0700 Subject: [PATCH 286/437] Added Random.CreateFromIndex(). (#128) Random.CreateFromHashedSeed() is intended to be used when multiple instances of Random need to be created from consecutive seeds. This is common when the seed is derived from an index of an array. The hashing helps to ensure that the Random state is very different for each index and reduces the chance that the numbers drawn from those Random instances are similar. Fixes #78 --- src/CHANGELOG.md | 3 ++ src/Tests/Tests/TestRandom.cs | 87 +++++++++++++++++++++++++++++++++ src/Unity.Mathematics/random.cs | 54 ++++++++++++++++++++ 3 files changed, 144 insertions(+) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index ca77b480..f4b8172b 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## [Unreleased] +- Adding Random.CreateFromIndex() to assist in creating Random instances from loop indices. + ## [1.1.0] - 2019-07-08 - Release stable version diff --git a/src/Tests/Tests/TestRandom.cs b/src/Tests/Tests/TestRandom.cs index f90ae3db..35bc9abd 100644 --- a/src/Tests/Tests/TestRandom.cs +++ b/src/Tests/Tests/TestRandom.cs @@ -1182,5 +1182,92 @@ public static void quaternion_rotation() return double2(phi, z); }); } + + [TestCompiler] + public static void consecutive_seeds_r_test() + { + // Check that drawing 1 number from many consecutive seeds has no correlation. + for (uint i = 0; i < 128; ++i) + { + uint seed1 = i; + uint seed2 = i + 1; + r_test(() => new double2(Random.CreateFromIndex(seed1++).NextUInt(), Random.CreateFromIndex(seed2++).NextUInt())); + } + } + + [TestCompiler] + public static void consecutive_seeds_r_test2() + { + // Check that drawing 1 number from many consecutive seeds has no correlation. + for (uint i = 0; i < 128; ++i) + { + uint seed1 = 0x6E624EB7u + i; + uint seed2 = 0x6E624EB8u + i; + r_test(() => new double2(Random.CreateFromIndex(seed1++).NextUInt(), Random.CreateFromIndex(seed2++).NextUInt())); + } + } + + [TestCompiler] + public static void consecutive_seeds_ks_test() + { + // Check that drawing 1 number from many consecutive seeds matches our expected distribution. + uint seed = 0; + ks_test(() => Random.CreateFromIndex(seed++).NextDouble()); + } + + [TestCompiler] + public static void consecutive_seeds_ks_test2() + { + // Check that drawing 1 number from many consecutive seeds matches our expected distribution. + uint seed = 0x6E624EB7u; + ks_test(() => Random.CreateFromIndex(seed++).NextDouble()); + } + + [TestCompiler] + public static void similar_seeds() + { + // Check to see that two consecutive seeds have no correlation when drawing + // many numbers from them. + for (uint i = 1; i <= 1024; ++i) + { + var rnd1 = new Random(i); + var rnd2 = new Random(i + 1); + r_test(() => new double2(rnd1.NextUInt(), rnd2.NextUInt())); + } + } + + [TestCompiler] + public static void similar_seeds2() + { + // Check to see that two consecutive seeds have no correlation when drawing + // many numbers from them. + for (uint i = 0; i < 1024; ++i) + { + var rnd1 = new Random(0x6E624EB7u + i); + var rnd2 = new Random(0x6E624EB8u + i); + r_test(() => new double2(rnd1.NextUInt(), rnd2.NextUInt())); + } + } + + [TestCompiler] + public static void wang_hash() + { + TestUtils.AreEqual(3232319850u, Random.WangHash(0u)); + TestUtils.AreEqual(663891101u, Random.WangHash(1u)); + TestUtils.AreEqual(3329832309u, Random.WangHash(2u)); + TestUtils.AreEqual(2278584254u, Random.WangHash(3u)); + TestUtils.AreEqual(3427349084u, Random.WangHash(4u)); + TestUtils.AreEqual(3322605197u, Random.WangHash(5u)); + TestUtils.AreEqual(1902946834u, Random.WangHash(6u)); + TestUtils.AreEqual(851741419u, Random.WangHash(7u)); + TestUtils.AreEqual(0u, Random.WangHash(61u)); + + unchecked + { + // Random.CreateFromIndex() takes zero as a valid input and makes uint.MaxValue invalid + // so check that we can make uint.MaxValue hash to zero. + TestUtils.AreEqual(0u, Random.WangHash(uint.MaxValue + 62u)); + } + } } } diff --git a/src/Unity.Mathematics/random.cs b/src/Unity.Mathematics/random.cs index 5a320ff6..50554163 100644 --- a/src/Unity.Mathematics/random.cs +++ b/src/Unity.Mathematics/random.cs @@ -27,6 +27,53 @@ public Random(uint seed) NextState(); } + /// + /// Constructs a instance with an index that gets hashed. The index must not be uint.MaxValue. + /// + /// + /// Use this function when you expect to create several Random instances in a loop. + /// + /// + /// + /// for (uint i = 0; i < 4096; ++i) + /// { + /// Random rand = Random.CreateFromIndex(i); + /// + /// // Random numbers drawn from loop iteration j will be very different + /// // from every other loop iteration k. + /// rand.NextUInt(); + /// } + /// + /// + /// An index that will be hashed for Random creation. Must not be uint.MaxValue. + /// created from an index. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Random CreateFromIndex(uint index) + { + CheckIndexForHash(index); + + // Wang hash will hash 61 to zero but we want uint.MaxValue to hash to zero. To make this happen + // we must offset by 62. + return new Random(WangHash(index + 62u)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static uint WangHash(uint n) + { + // https://gist.github.com/badboy/6267743#hash-function-construction-principles + // Wang hash: this has the property that none of the outputs will + // collide with each other, which is important for the purposes of + // seeding a random number generator. This was verified empirically + // by checking all 2^32 uints. + n = (n ^ 61u) ^ (n >> 16); + n *= 9u; + n = n ^ (n >> 4); + n *= 0x27d4eb2du; + n = n ^ (n >> 15); + + return n; + } + /// /// Initialized the state of the Random instance with a given seed value. The seed must be non-zero. /// @@ -527,6 +574,13 @@ private void CheckInitState() #endif } + [Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")] + static void CheckIndexForHash(uint index) + { + if (index == uint.MaxValue) + throw new System.ArgumentException("Index must not be uint.MaxValue"); + } + [Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")] private void CheckState() { From 408b3117b4ab8f958ccbb2a46b84d44a73c0d8c1 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 15 Apr 2020 10:59:48 -0700 Subject: [PATCH 287/437] Adding Plane (internal only). (#133) Adding Plane for representing a 3D plane. Draws heavily from Unity.Physics Plane. DOTS-958 --- src/CHANGELOG.md | 1 + src/Tests/Tests/Shared/TestPlane.cs | 266 ++++++++++++++++++ src/Tests/Tests/Shared/TestPlane.cs.meta | 11 + src/Tests/Unity.Mathematics.Tests.csproj | 1 + src/Unity.Mathematics/Extras/Plane.cs | 232 +++++++++++++++ src/Unity.Mathematics/Extras/Plane.cs.meta | 11 + .../Unity.Mathematics.csproj | 1 + 7 files changed, 523 insertions(+) create mode 100644 src/Tests/Tests/Shared/TestPlane.cs create mode 100644 src/Tests/Tests/Shared/TestPlane.cs.meta create mode 100644 src/Unity.Mathematics/Extras/Plane.cs create mode 100644 src/Unity.Mathematics/Extras/Plane.cs.meta diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index f4b8172b..5d08edb6 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- Added Unity.Mathematics.Extras.Plane to represent planes in 3D space. - Adding Random.CreateFromIndex() to assist in creating Random instances from loop indices. ## [1.1.0] - 2019-07-08 diff --git a/src/Tests/Tests/Shared/TestPlane.cs b/src/Tests/Tests/Shared/TestPlane.cs new file mode 100644 index 00000000..110a2d22 --- /dev/null +++ b/src/Tests/Tests/Shared/TestPlane.cs @@ -0,0 +1,266 @@ +using NUnit.Framework; +using Unity.Mathematics.Extras; +using Burst.Compiler.IL.Tests; + +namespace Unity.Mathematics.Tests +{ + [TestFixture] + public class TestPlane + { + // An arbitrary tolerance. + static float Tolerance = 0.0000025f; + + [TestCompiler] + public static void Empty() + { + var p = new Plane(); + + TestUtils.AreEqual(float4.zero, p.NormalAndDistance); + TestUtils.AreEqual(float3.zero, p.Normal); + TestUtils.AreEqual(0.0f, p.Distance); + } + + [TestCompiler] + public static void GetNormal() + { + var p = new Plane { NormalAndDistance = new float4(1.0f, 2.0f, 3.0f, 4.0f) }; + + TestUtils.AreEqual(new float3(1.0f, 2.0f, 3.0f), p.Normal); + } + + [TestCompiler] + public static void GetDistance() + { + var p = new Plane { NormalAndDistance = new float4(1.0f, 2.0f, 3.0f, 4.0f) }; + + TestUtils.AreEqual(4.0f, p.Distance); + } + + [TestCompiler] + public static void SetNormal() + { + var p = new Plane { NormalAndDistance = new float4(1.0f, 2.0f, 3.0f, 4.0f) }; + p.Normal = new float3(-1.0f, -2.0f, -3.0f); + + TestUtils.AreEqual(new float3(-1.0f, -2.0f, -3.0f), p.Normal); + } + + [TestCompiler] + public static void SetDistance() + { + var p = new Plane { NormalAndDistance = new float4(1.0f, 2.0f, 3.0f, 4.0f) }; + p.Distance = -4.0f; + + TestUtils.AreEqual(-4.0f, p.Distance); + } + + [TestCompiler] + public static void ConstructWithNormalAndDistance() + { + var n = math.normalize(new float3(4.0f, -5.0f, 6.0f)); + var d = 123.0f; + var p = new Plane(n, d); + + TestUtils.AreEqual(new float4(n, d), p.NormalAndDistance); + TestUtils.AreEqual(n, p.Normal); + TestUtils.AreEqual(d, p.Distance); + } + + [TestCompiler] + public static void ConstructWithCoefficients_NonUnitLengthNormal() + { + var abcd = new float4(4.0f, -5.0f, 6.0f, 123.0f); + var p = new Plane(abcd.x, abcd.y, abcd.z, abcd.w); + var expected = abcd * math.rsqrt(math.lengthsq(abcd.xyz)); + + TestUtils.AreEqual(expected, p.NormalAndDistance, Tolerance); + TestUtils.AreEqual(expected.xyz, p.Normal); + TestUtils.AreEqual(expected.w, p.Distance); + } + + [TestCompiler] + public static void ConstructWithNormalAndPointInPlane_NegativeDistance() + { + var n = math.up(); + var pointInPlane = math.up(); + var p = new Plane(n, pointInPlane); + + TestUtils.AreEqual(new float4(math.up(), -1.0f), p.NormalAndDistance); + TestUtils.AreEqual(n, p.Normal); + TestUtils.AreEqual(-1.0f, p.Distance); + } + + [TestCompiler] + public static void ConstructWithNormalAndPointInPlane_PositiveDistance() + { + var n = math.down(); + var pointInPlane = math.up(); + var p = new Plane(n, pointInPlane); + + TestUtils.AreEqual(new float4(math.down(), 1.0f), p.NormalAndDistance); + TestUtils.AreEqual(n, p.Normal); + TestUtils.AreEqual(1.0f, p.Distance); + } + + [TestCompiler] + public static void ConstructWithNormalAndPointInPlane() + { + var normal = new float3(2.0f, 2.0f, 2.0f); + var pointInPlane = new float3(-2.0f, -2.0f, -2.0f); + var p = new Plane(normal, pointInPlane); + var expectedN = new float3(5.773502691896258e-01f); + var expectedD = 3.464101615137755f; + + TestUtils.AreEqual(new float4(expectedN, expectedD), p.NormalAndDistance); + TestUtils.AreEqual(expectedN, p.Normal); + TestUtils.AreEqual(expectedD, p.Distance); + } + + [TestCompiler] + public static void ConstructWithTwoVectorsAndOrigin_Trivial() + { + var v1 = new float3(1.0f, 0.0f, 0.0f); + var v2 = new float3(0.0f, 1.0f, 0.0f); + var p = new Plane(v1, v2, float3.zero); + + TestUtils.AreEqual(new float4(0.0f, 0.0f, 1.0f, 0.0f), p); + } + + [TestCompiler] + public static void ConstructWithTwoVectorsAndOrigin_NonZeroOrigin() + { + var v1 = new float3(5.0f, 0.0f, 0.0f); + var v2 = new float3(0.0f, 1.0f, 0.0f); + var p = new Plane(v2, v1, new float3(0.0f, 0.0f, 1.0f)); + + TestUtils.AreEqual(new float4(0.0f, 0.0f, -1.0f, 1.0f), p); + } + + [TestCompiler] + public static void SignedDistanceToPoint() + { + var vInPlane1 = new float3(2.0f, 1.0f, -0.18f); + var vInPlane2 = new float3(-0.9928f, 10.0f, 3.125f); + var n = math.normalize(math.cross(vInPlane1, vInPlane2)); + var pointInPlane = new float3(10.0f, -25.8918f, 1.0f); + var p = new Plane(vInPlane1, vInPlane2, pointInPlane); + + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(pointInPlane), Tolerance); + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(pointInPlane + vInPlane1), Tolerance); + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(pointInPlane + vInPlane2), Tolerance); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(pointInPlane + n), Tolerance); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(pointInPlane - n), Tolerance); + } + + [TestCompiler] + public static void SignedDistanceToPointTrivial() + { + var p = new Plane(math.up(), 0.0f); + + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(float3.zero)); + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(math.left())); + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(math.right())); + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(math.forward())); + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(math.back())); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up())); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up() + math.left())); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up() + math.right())); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up() + math.back())); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up() + math.forward())); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down())); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down() + math.left())); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down() + math.right())); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down() + math.back())); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down() + math.forward())); + } + + [TestCompiler] + public static void ProjectionTrivial() + { + var p = new Plane(math.up(), 0.0f); + var expected = math.left() + math.forward(); + + TestUtils.AreEqual(expected, p.Projection(math.up() + expected)); + } + + [TestCompiler] + public static void Projection() + { + var normal = new float3(1.0f); + var n = math.normalize(normal); + var d = -1.0f; + var p = new Plane(n, d); + var expected = new float3(math.sqrt(3.0f), 0.0f, 0.0f); + + TestUtils.AreEqual(expected, p.Projection(expected), math.EPSILON); + } + + [TestCompiler] + public static void Flipped() + { + var normal = new float3(1.0f); + var d = 1.0f; + var p = new Plane(normal, d); + var expectedD = -5.773502691896258e-01f; + var expectedN = new float3(-5.773502691896258e-01f); + + TestUtils.AreEqual(new float4(expectedN, expectedD), p.Flipped, Tolerance); + } + + [TestCompiler] + public static void ImplicitToFloat4() + { + var normal = new float3(1.1f, -20.0f, 15.182f); + var d = 18.9281f; + var p = new Plane(normal, d); + var expectedN = new float3(4.376593115243121e-02f, -7.957442027714765e-01f, 6.040494243238278e-01f); + var expectedD = 7.530962922239393e-01f; + float4 p_as_float4 = p; + + TestUtils.AreEqual(new float4(expectedN, expectedD), p_as_float4, Tolerance); + } + + [TestCompiler] + public static void NormalizeFloat4() + { + var p = new float4(8.215876543024162e-01f, 2.786574280629829e-01f, 8.121669997361285e-01f, 9.352839276497152e-01f); + var expected = new float4(6.913449765800294e-01f, 2.344830914500849e-01f, 6.834177369527146e-01f, 7.870174797181938e-01f); + + TestUtils.AreEqual(expected, Plane.Normalize(p), Tolerance); + } + + [TestCompiler] + public static void NormalizePlane() + { + var p = new Plane { NormalAndDistance = new float4(8.215876543024162e-01f, 2.786574280629829e-01f, 8.121669997361285e-01f, 9.352839276497152e-01f) }; + var normalized = Plane.Normalize(p); + var expected = new float4(6.913449765800294e-01f, 2.344830914500849e-01f, 6.834177369527146e-01f, 7.870174797181938e-01f); + + TestUtils.AreEqual(expected, normalized.NormalAndDistance, Tolerance); + TestUtils.AreEqual(expected.xyz, normalized.Normal, Tolerance); + TestUtils.AreEqual(expected.w, normalized.Distance, Tolerance); + } + + [TestCompiler] + public static void CreateFromUnitNormalAndDistance() + { + var n = new float3(9.108767140247756e-02f, 3.966831912609620e-01f, 9.134251375397404e-01f); + var d = 9.120230523544353e-01f; + var expected = new float4(n, d); + var p = Plane.CreateFromUnitNormalAndDistance(n, d); + + TestUtils.AreEqual(expected, p.NormalAndDistance); + } + + [TestCompiler] + public static void CreateFromUnitNormalAndPointInPlane() + { + var n = new float3(4.724920516359185e-01f, 1.444614284194820e-01f, 8.694148358751899e-01f); + var pointInPlane = new float3(9.395666432987706f, 3.818578457438728f, 4.283295215216710f); + var expected = new float4(n, -8.714975414445176f); + var p = Plane.CreateFromUnitNormalAndPointInPlane(n, pointInPlane); + + TestUtils.AreEqual(expected, p.NormalAndDistance, Tolerance); + } + } +} \ No newline at end of file diff --git a/src/Tests/Tests/Shared/TestPlane.cs.meta b/src/Tests/Tests/Shared/TestPlane.cs.meta new file mode 100644 index 00000000..80d8e773 --- /dev/null +++ b/src/Tests/Tests/Shared/TestPlane.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f231ac420620f4127b2cb48aab2c41ef +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Tests/Unity.Mathematics.Tests.csproj b/src/Tests/Unity.Mathematics.Tests.csproj index 1949a56b..603a84f1 100644 --- a/src/Tests/Unity.Mathematics.Tests.csproj +++ b/src/Tests/Unity.Mathematics.Tests.csproj @@ -104,6 +104,7 @@ + diff --git a/src/Unity.Mathematics/Extras/Plane.cs b/src/Unity.Mathematics/Extras/Plane.cs new file mode 100644 index 00000000..3062a37a --- /dev/null +++ b/src/Unity.Mathematics/Extras/Plane.cs @@ -0,0 +1,232 @@ +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; + +namespace Unity.Mathematics.Extras +{ + /// + /// A plane represented by a normal vector and a distance along the normal from the origin. + /// + /// + /// A plane splits the 3D space in half. The normal vector points to the positive half and the other half is + /// considered negative. + /// + [DebuggerDisplay("{Normal}, {Distance}")] + [Serializable] + internal struct Plane + { + /// + /// A plane in the form Ax + By + Cz + Dw = 0. + /// + /// + /// Stores the plane coefficients A, B, C, D where (A, B, C) is a unit normal vector and D is the distance + /// from the origin. A plane stored with a unit normal vector is called a normalized plane. + /// + public float4 NormalAndDistance; + + /// + /// Constructs a Plane from arbitrary coefficients A, B, C, D of the plane equation Ax + By + Cz + Dw = 0. + /// + /// + /// The constructed plane will be the normalized form of the plane specified by the given coefficients. + /// + /// Coefficient A from plane equation. + /// Coefficient B from plane equation. + /// Coefficient C from plane equation. + /// Coefficient D from plane equation. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public Plane(float coefficientA, float coefficientB, float coefficientC, float coefficientD) + { + NormalAndDistance = Normalize(new float4(coefficientA, coefficientB, coefficientC, coefficientD)); + } + + /// + /// Constructs a plane with a normal vector and distance from the origin. + /// + /// + /// The constructed plane will be the normalized form of the plane specified by the inputs. + /// + /// A non-zero vector that is perpendicular to the plane. It may be any length. + /// Distance from the origin along the normal. A negative value moves the plane in the + /// same direction as the normal while a positive value moves it in the opposite direction. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public Plane(float3 normal, float distance) + { + NormalAndDistance = Normalize(new float4(normal, distance)); + } + + /// + /// Constructs a plane with a normal vector and a point that lies in the plane. + /// + /// + /// The constructed plane will be the normalized form of the plane specified by the inputs. + /// + /// A non-zero vector that is perpendicular to the plane. It may be any length. + /// A point that lies in the plane. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public Plane(float3 normal, float3 pointInPlane) + : this(normal, -math.dot(normal, pointInPlane)) + { + } + + /// + /// Constructs a plane with two vectors and a point that all lie in the plane. + /// + /// + /// The constructed plane will be the normalized form of the plane specified by the inputs. + /// + /// A non-zero vector that lies in the plane. It may be any length. + /// A non-zero vector that lies in the plane. It may be any length and must not be a scalar multiple of . + /// A point that lies in the plane. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public Plane(float3 vector1InPlane, float3 vector2InPlane, float3 pointInPlane) + : this(math.cross(vector1InPlane, vector2InPlane), pointInPlane) + { + } + + /// + /// Creates a normalized Plane directly without normalization cost. + /// + /// + /// If you have a unit length normal vector, you can create a Plane faster than using one of its constructors + /// by calling this function. + /// + /// A non-zero vector that is perpendicular to the plane. It must be unit length. + /// Distance from the origin along the normal. A negative value moves the plane in the + /// same direction as the normal while a positive value moves it in the opposite direction. + /// Normalized Plane constructed from given inputs. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Plane CreateFromUnitNormalAndDistance(float3 unitNormal, float distance) + { + return new Plane { NormalAndDistance = new float4(unitNormal, distance) }; + } + + /// + /// Creates a normalized Plane without normalization cost. + /// + /// + /// If you have a unit length normal vector, you can create a Plane faster than using one of its constructors + /// by calling this function. + /// + /// A non-zero vector that is perpendicular to the plane. It must be unit length. + /// A point that lies in the plane. + /// Normalized Plane constructed from given inputs. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Plane CreateFromUnitNormalAndPointInPlane(float3 unitNormal, float3 pointInPlane) + { + return new Plane { NormalAndDistance = new float4(unitNormal, -math.dot(unitNormal, pointInPlane)) }; + } + + /// + /// Get/set the normal vector of the plane. + /// + /// + /// It is assumed that the normal is unit length. If you set a new plane such that Ax + By + Cz + Dw = 0 but + /// (A, B, C) is not unit length, then you must normalize the plane by calling . + /// + public float3 Normal + { + get => NormalAndDistance.xyz; + set => NormalAndDistance.xyz = value; + } + + /// + /// Get/set the distance of the plane from the origin. May be a negative value. + /// + /// + /// It is assumed that the normal is unit length. If you set a new plane such that Ax + By + Cz + Dw = 0 but + /// (A, B, C) is not unit length, then you must normalize the plane by calling . + /// + public float Distance + { + get => NormalAndDistance.w; + set => NormalAndDistance.w = value; + } + + /// + /// Normalizes the given Plane. + /// + /// Plane to normalize. + /// Normalized Plane. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static Plane Normalize(Plane plane) + { + return new Plane { NormalAndDistance = Normalize(plane.NormalAndDistance) }; + } + + /// + /// Normalizes the plane represented by the given plane coefficients. + /// + /// + /// The plane coefficients are A, B, C, D and stored in that order in the . + /// + /// Plane coefficients stored in a . + /// Normalized plane coefficients. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 Normalize(float4 planeCoefficients) + { + float recipLength = math.rsqrt(math.lengthsq(planeCoefficients.xyz)); + return new Plane { NormalAndDistance = planeCoefficients * recipLength }; + } + + /// + /// Get the signed distance from the point to the plane. + /// + /// + /// Plane must be normalized prior to calling this function. Distance is positive if point is on side of the + /// plane the normal points to, negative if on the opposite side and zero if the point lies in the plane. + /// Avoid comparing equality with 0.0f when testing if a point lies exactly in the plane and use an approximate + /// comparison instead. + /// + /// Point to find the signed distance with. + /// Signed distance of the point from the plane. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float SignedDistanceToPoint(float3 point) + { + CheckPlaneIsNormalized(); + return math.dot(NormalAndDistance, new float4(point, 1.0f)); + } + + /// + /// Projects the given point onto the plane. + /// + /// + /// Plane must be normalized prior to calling this function. The result is the position closest to the point + /// that still lies in the plane. + /// + /// Point to project onto the plane. + /// Projected point that's inside the plane. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public float3 Projection(float3 point) + { + CheckPlaneIsNormalized(); + return point - Normal * SignedDistanceToPoint(point); + } + + /// + /// Flips the plane so the normal points in the opposite direction. + /// + public Plane Flipped => new Plane { NormalAndDistance = -NormalAndDistance }; + + /// + /// Implicitly converts a to . + /// + /// Plane to convert. + /// A representing the plane. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static implicit operator float4(Plane plane) => plane.NormalAndDistance; + + [Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")] + void CheckPlaneIsNormalized() + { + float ll = math.lengthsq(Normal.xyz); + const float lowerBound = 0.999f * 0.999f; + const float upperBound = 1.001f * 1.001f; + + if (ll < lowerBound || ll > upperBound) + { + throw new System.ArgumentException("Plane must be normalized. Call Plane.Normalize() to normalize plane."); + } + } + } +} diff --git a/src/Unity.Mathematics/Extras/Plane.cs.meta b/src/Unity.Mathematics/Extras/Plane.cs.meta new file mode 100644 index 00000000..8528b3e9 --- /dev/null +++ b/src/Unity.Mathematics/Extras/Plane.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b715caa4800cd41edbf02f1d3a42accf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index fa7a0266..cd21f108 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -88,6 +88,7 @@ + From 05fd8ccc9ac2b38d8fe31a5c61dcab7b4e585d61 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Wed, 15 Apr 2020 11:59:47 -0700 Subject: [PATCH 288/437] Rename Unity.Mathematics.Extras to Unity.Mathematics.Geometry. --- src/Tests/Tests/Shared/TestAABB.cs | 2 +- src/Tests/Tests/Shared/TestMinMaxAABB.cs | 2 +- src/Tests/Tests/Shared/TestPlane.cs | 2 +- src/Unity.Mathematics/{Extras.meta => Geometry.meta} | 2 +- src/Unity.Mathematics/{Extras => Geometry}/AABB.cs | 2 +- src/Unity.Mathematics/{Extras => Geometry}/AABB.cs.meta | 0 src/Unity.Mathematics/{Extras => Geometry}/MinMaxAABB.cs | 2 +- .../{Extras => Geometry}/MinMaxAABB.cs.meta | 0 src/Unity.Mathematics/{Extras => Geometry}/Plane.cs | 2 +- src/Unity.Mathematics/{Extras => Geometry}/Plane.cs.meta | 0 src/Unity.Mathematics/Unity.Mathematics.csproj | 6 +++--- 11 files changed, 10 insertions(+), 10 deletions(-) rename src/Unity.Mathematics/{Extras.meta => Geometry.meta} (77%) rename src/Unity.Mathematics/{Extras => Geometry}/AABB.cs (98%) rename src/Unity.Mathematics/{Extras => Geometry}/AABB.cs.meta (100%) rename src/Unity.Mathematics/{Extras => Geometry}/MinMaxAABB.cs (97%) rename src/Unity.Mathematics/{Extras => Geometry}/MinMaxAABB.cs.meta (100%) rename src/Unity.Mathematics/{Extras => Geometry}/Plane.cs (99%) rename src/Unity.Mathematics/{Extras => Geometry}/Plane.cs.meta (100%) diff --git a/src/Tests/Tests/Shared/TestAABB.cs b/src/Tests/Tests/Shared/TestAABB.cs index e5e43766..b39bc6a6 100644 --- a/src/Tests/Tests/Shared/TestAABB.cs +++ b/src/Tests/Tests/Shared/TestAABB.cs @@ -1,6 +1,6 @@ using NUnit.Framework; using static Unity.Mathematics.math; -using Unity.Mathematics.Extras; +using Unity.Mathematics.Geometry; using Burst.Compiler.IL.Tests; namespace Unity.Mathematics.Tests diff --git a/src/Tests/Tests/Shared/TestMinMaxAABB.cs b/src/Tests/Tests/Shared/TestMinMaxAABB.cs index 4d7845ff..bb89824b 100644 --- a/src/Tests/Tests/Shared/TestMinMaxAABB.cs +++ b/src/Tests/Tests/Shared/TestMinMaxAABB.cs @@ -1,7 +1,7 @@ using System; using NUnit.Framework; using static Unity.Mathematics.math; -using Unity.Mathematics.Extras; +using Unity.Mathematics.Geometry; using Burst.Compiler.IL.Tests; namespace Unity.Mathematics.Tests diff --git a/src/Tests/Tests/Shared/TestPlane.cs b/src/Tests/Tests/Shared/TestPlane.cs index 110a2d22..17f41312 100644 --- a/src/Tests/Tests/Shared/TestPlane.cs +++ b/src/Tests/Tests/Shared/TestPlane.cs @@ -1,5 +1,5 @@ using NUnit.Framework; -using Unity.Mathematics.Extras; +using Unity.Mathematics.Geometry; using Burst.Compiler.IL.Tests; namespace Unity.Mathematics.Tests diff --git a/src/Unity.Mathematics/Extras.meta b/src/Unity.Mathematics/Geometry.meta similarity index 77% rename from src/Unity.Mathematics/Extras.meta rename to src/Unity.Mathematics/Geometry.meta index bf9bc37c..b0af7ef0 100644 --- a/src/Unity.Mathematics/Extras.meta +++ b/src/Unity.Mathematics/Geometry.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 33cb4f42ee6964927bafacf5b1913267 +guid: 8179f9b7bb3904f5ba86140bea0a128b folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/src/Unity.Mathematics/Extras/AABB.cs b/src/Unity.Mathematics/Geometry/AABB.cs similarity index 98% rename from src/Unity.Mathematics/Extras/AABB.cs rename to src/Unity.Mathematics/Geometry/AABB.cs index b998b75f..9216daa1 100644 --- a/src/Unity.Mathematics/Extras/AABB.cs +++ b/src/Unity.Mathematics/Geometry/AABB.cs @@ -1,7 +1,7 @@ using System; using static Unity.Mathematics.math; -namespace Unity.Mathematics.Extras +namespace Unity.Mathematics.Geometry { [Serializable] internal partial struct AABB diff --git a/src/Unity.Mathematics/Extras/AABB.cs.meta b/src/Unity.Mathematics/Geometry/AABB.cs.meta similarity index 100% rename from src/Unity.Mathematics/Extras/AABB.cs.meta rename to src/Unity.Mathematics/Geometry/AABB.cs.meta diff --git a/src/Unity.Mathematics/Extras/MinMaxAABB.cs b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs similarity index 97% rename from src/Unity.Mathematics/Extras/MinMaxAABB.cs rename to src/Unity.Mathematics/Geometry/MinMaxAABB.cs index 54408f3c..a03c762d 100644 --- a/src/Unity.Mathematics/Extras/MinMaxAABB.cs +++ b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs @@ -1,7 +1,7 @@ using System; using static Unity.Mathematics.math; -namespace Unity.Mathematics.Extras +namespace Unity.Mathematics.Geometry { [System.Serializable] internal struct MinMaxAABB : IEquatable diff --git a/src/Unity.Mathematics/Extras/MinMaxAABB.cs.meta b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs.meta similarity index 100% rename from src/Unity.Mathematics/Extras/MinMaxAABB.cs.meta rename to src/Unity.Mathematics/Geometry/MinMaxAABB.cs.meta diff --git a/src/Unity.Mathematics/Extras/Plane.cs b/src/Unity.Mathematics/Geometry/Plane.cs similarity index 99% rename from src/Unity.Mathematics/Extras/Plane.cs rename to src/Unity.Mathematics/Geometry/Plane.cs index 3062a37a..29d3d3dc 100644 --- a/src/Unity.Mathematics/Extras/Plane.cs +++ b/src/Unity.Mathematics/Geometry/Plane.cs @@ -2,7 +2,7 @@ using System.Diagnostics; using System.Runtime.CompilerServices; -namespace Unity.Mathematics.Extras +namespace Unity.Mathematics.Geometry { /// /// A plane represented by a normal vector and a distance along the normal from the origin. diff --git a/src/Unity.Mathematics/Extras/Plane.cs.meta b/src/Unity.Mathematics/Geometry/Plane.cs.meta similarity index 100% rename from src/Unity.Mathematics/Extras/Plane.cs.meta rename to src/Unity.Mathematics/Geometry/Plane.cs.meta diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index cd21f108..3233614b 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -87,8 +87,8 @@ - - + + @@ -120,7 +120,7 @@ - + From 049877fcb33bc0defb1476da5e416b0d03f440b3 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Thu, 16 Apr 2020 17:53:15 -0700 Subject: [PATCH 289/437] Fixing some xml doc string warnings/errors. --- src/Unity.Mathematics/math.cs | 60 +++++++++++++++++------------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index c6d7ab0d..eae6afb2 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -448,7 +448,7 @@ public static bool ispow2(int x) /// /// If a component of x is less than or equal to zero, then this function returns false in that component. /// input - /// where true in a component indicates the same component in the input was a power of two. + /// where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 ispow2(int2 x) { @@ -460,7 +460,7 @@ public static bool2 ispow2(int2 x) /// /// If a component of x is less than or equal to zero, then this function returns false in that component. /// input - /// where true in a component indicates the same component in the input was a power of two. + /// where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 ispow2(int3 x) { @@ -472,7 +472,7 @@ public static bool3 ispow2(int3 x) /// /// If a component of x is less than or equal to zero, then this function returns false in that component. /// input - /// where true in a component indicates the same component in the input was a power of two. + /// where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 ispow2(int4 x) { @@ -496,7 +496,7 @@ public static bool ispow2(uint x) /// /// If a component of x is less than or equal to zero, then this function returns false in that component. /// input - /// where true in a component indicates the same component in the input was a power of two. + /// where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 ispow2(uint2 x) { @@ -508,7 +508,7 @@ public static bool2 ispow2(uint2 x) /// /// If a component of x is less than or equal to zero, then this function returns false in that component. /// input - /// where true in a component indicates the same component in the input was a power of two. + /// where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 ispow2(uint3 x) { @@ -520,7 +520,7 @@ public static bool3 ispow2(uint3 x) /// /// If a component of x is less than or equal to zero, then this function returns false in that component. /// input - /// where true in a component indicates the same component in the input was a power of two. + /// where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 ispow2(uint4 x) { @@ -1776,21 +1776,21 @@ public static bool4 ispow2(uint4 x) public static float modf(float x, out float i) { i = trunc(x); return x - i; } /// - // Performs a componentwise split of a float2 vector into an integral part i and a fractional part that gets returned. - // Both parts take the sign of the corresponding input component. - // + /// Performs a componentwise split of a float2 vector into an integral part i and a fractional part that gets returned. + /// Both parts take the sign of the corresponding input component. + /// public static float2 modf(float2 x, out float2 i) { i = trunc(x); return x - i; } /// - // Performs a componentwise split of a float3 vector into an integral part i and a fractional part that gets returned. - // Both parts take the sign of the corresponding input component. - // + /// Performs a componentwise split of a float3 vector into an integral part i and a fractional part that gets returned. + /// Both parts take the sign of the corresponding input component. + /// public static float3 modf(float3 x, out float3 i) { i = trunc(x); return x - i; } /// - // Performs a componentwise split of a float4 vector into an integral part i and a fractional part that gets returned. - // Both parts take the sign of the corresponding input component. - // + /// Performs a componentwise split of a float4 vector into an integral part i and a fractional part that gets returned. + /// Both parts take the sign of the corresponding input component. + /// public static float4 modf(float4 x, out float4 i) { i = trunc(x); return x - i; } @@ -1798,21 +1798,21 @@ public static bool4 ispow2(uint4 x) public static double modf(double x, out double i) { i = trunc(x); return x - i; } /// - // Performs a componentwise split of a double2 vector into an integral part i and a fractional part that gets returned. - // Both parts take the sign of the corresponding input component. - // + /// Performs a componentwise split of a double2 vector into an integral part i and a fractional part that gets returned. + /// Both parts take the sign of the corresponding input component. + /// public static double2 modf(double2 x, out double2 i) { i = trunc(x); return x - i; } /// - // Performs a componentwise split of a double3 vector into an integral part i and a fractional part that gets returned. - // Both parts take the sign of the corresponding input component. - // + /// Performs a componentwise split of a double3 vector into an integral part i and a fractional part that gets returned. + /// Both parts take the sign of the corresponding input component. + /// public static double3 modf(double3 x, out double3 i) { i = trunc(x); return x - i; } /// - // Performs a componentwise split of a double4 vector into an integral part i and a fractional part that gets returned. - // Both parts take the sign of the corresponding input component. - // + /// Performs a componentwise split of a double4 vector into an integral part i and a fractional part that gets returned. + /// Both parts take the sign of the corresponding input component. + /// public static double4 modf(double4 x, out double4 i) { i = trunc(x); return x - i; } @@ -2537,28 +2537,28 @@ public static double4 refract(double4 i, double4 n, double eta) } - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. + /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 faceforward(float2 n, float2 i, float2 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. + /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 faceforward(float3 n, float3 i, float3 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. + /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 faceforward(float4 n, float4 i, float4 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. + /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 faceforward(double2 n, double2 i, double2 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. + /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 faceforward(double3 n, double3 i, double3 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. + /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 faceforward(double4 n, double4 i, double4 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } From 0cfb81d8c1f4e0e987b8d01abfe021199ae197d9 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Thu, 16 Apr 2020 18:39:34 -0700 Subject: [PATCH 290/437] Change seealso to see. Also updated param doc for plane normalization. --- src/Unity.Mathematics/Geometry/Plane.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Unity.Mathematics/Geometry/Plane.cs b/src/Unity.Mathematics/Geometry/Plane.cs index 29d3d3dc..de19935b 100644 --- a/src/Unity.Mathematics/Geometry/Plane.cs +++ b/src/Unity.Mathematics/Geometry/Plane.cs @@ -122,7 +122,7 @@ public static Plane CreateFromUnitNormalAndPointInPlane(float3 unitNormal, float /// /// /// It is assumed that the normal is unit length. If you set a new plane such that Ax + By + Cz + Dw = 0 but - /// (A, B, C) is not unit length, then you must normalize the plane by calling . + /// (A, B, C) is not unit length, then you must normalize the plane by calling . /// public float3 Normal { @@ -135,7 +135,7 @@ public float3 Normal /// /// /// It is assumed that the normal is unit length. If you set a new plane such that Ax + By + Cz + Dw = 0 but - /// (A, B, C) is not unit length, then you must normalize the plane by calling . + /// (A, B, C) is not unit length, then you must normalize the plane by calling . /// public float Distance { @@ -158,9 +158,9 @@ public static Plane Normalize(Plane plane) /// Normalizes the plane represented by the given plane coefficients. /// /// - /// The plane coefficients are A, B, C, D and stored in that order in the . + /// The plane coefficients are A, B, C, D and stored in that order in the . /// - /// Plane coefficients stored in a . + /// Plane coefficients A, B, C, D stored in x, y, z, w (respectively). /// Normalized plane coefficients. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 Normalize(float4 planeCoefficients) From 9cd35de2ba0300c131a71ebcee1db0d3342ef74c Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Fri, 17 Apr 2020 16:33:17 -0700 Subject: [PATCH 291/437] Make internals visible to performance tests. Added one performance test for Plane.Normalize to prove that it works. --- .../VectorGenerator.cs | 19 +++- .../TestConversions.gen.cs | 3 +- .../TestFastInverse.gen.cs | 3 +- .../TestHash.gen.cs | 3 +- .../TestInverse.gen.cs | 3 +- .../TestMul.gen.cs | 3 +- .../TestNoise.gen.cs | 3 +- .../TestNormalize.gen.cs | 3 +- .../TestPlane.gen.cs | 102 ++++++++++++++++++ .../TestPlane.gen.cs.meta | 11 ++ .../TestRandom.gen.cs | 3 +- .../TestRotation.gen.cs | 3 +- .../TestShuffle.gen.cs | 3 +- .../TestTranspose.gen.cs | 3 +- .../TestTrig.gen.cs | 3 +- .../Properties/AssemblyInfo.cs | 1 + 16 files changed, 156 insertions(+), 13 deletions(-) create mode 100644 src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs create mode 100644 src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs.meta diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index ef127ba7..dc7c54ea 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -2977,10 +2977,11 @@ void BeginPerformanceTestCodeGen(StringBuilder str, string testSuiteName) str.AppendFormat("using Unity.Collections;\n"); str.AppendFormat("using Unity.Collections.LowLevel.Unsafe;\n"); str.AppendFormat("using Unity.PerformanceTesting;\n"); + str.AppendFormat("using Unity.Mathematics.Geometry;\n"); str.AppendFormat("using Unity.Burst;\n\n"); str.AppendFormat("namespace Unity.Mathematics.PerformanceTests\n"); str.AppendFormat("{{\n"); - str.AppendFormat("\tpublic partial class {0}\n", testSuiteName); + str.AppendFormat("\tpartial class {0}\n", testSuiteName); str.AppendFormat("\t{{\n"); } @@ -3484,6 +3485,18 @@ void GenerateHashPerformanceTests(StringBuilder str) EndPerformanceTestCodeGen(str); } + void GeneratePlanePerformanceTests(StringBuilder str) + { + BeginPerformanceTestCodeGen(str, "TestPlane"); + + GeneratePerformanceTest(str, "Normalize_Plane", new PerformanceTestArrayArgument[] + { + new PerformanceTestArrayArgument { m_ElementType = "Plane", m_MemberName = "p", m_ElementInitializer = "new Plane { NormalAndDistance = new float4(1.0f) }" }, + }, "args.p[i] = Plane.Normalize(args.p[i]);", 10000); + + EndPerformanceTestCodeGen(str); + } + public struct PerformanceTestArrayArgument { public string m_ElementType; @@ -3633,6 +3646,10 @@ void WritePerformanceTests() StringBuilder hashStr = new StringBuilder(); GenerateHashPerformanceTests(hashStr); WriteFile(m_PerformanceTestDirectory + "/TestHash.gen.cs", hashStr.ToString()); + + StringBuilder planeStr = new StringBuilder(); + GeneratePlanePerformanceTests(planeStr); + WriteFile(m_PerformanceTestDirectory + "/TestPlane.gen.cs", planeStr.ToString()); } } } diff --git a/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs index d949cf14..8c7e8e18 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs @@ -11,11 +11,12 @@ using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; using Unity.Burst; namespace Unity.Mathematics.PerformanceTests { - public partial class TestConversions + partial class TestConversions { [BurstCompile(CompileSynchronously = true)] public unsafe class quaternion_to_float3x3 diff --git a/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs index 50976694..3895131f 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs @@ -11,11 +11,12 @@ using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; using Unity.Burst; namespace Unity.Mathematics.PerformanceTests { - public partial class TestFastInverse + partial class TestFastInverse { [BurstCompile(CompileSynchronously = true)] public unsafe class float4x4_fastinverse diff --git a/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs index 57ff8ef0..d14dbc0f 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs @@ -11,11 +11,12 @@ using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; using Unity.Burst; namespace Unity.Mathematics.PerformanceTests { - public partial class TestHash + partial class TestHash { [BurstCompile(CompileSynchronously = true)] public unsafe class float2_hash diff --git a/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs index 05506c9c..95df92c1 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs @@ -11,11 +11,12 @@ using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; using Unity.Burst; namespace Unity.Mathematics.PerformanceTests { - public partial class TestInverse + partial class TestInverse { [BurstCompile(CompileSynchronously = true)] public unsafe class float4x4_inverse diff --git a/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs index b01ccce4..9763f0a1 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs @@ -11,11 +11,12 @@ using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; using Unity.Burst; namespace Unity.Mathematics.PerformanceTests { - public partial class TestMul + partial class TestMul { [BurstCompile(CompileSynchronously = true)] public unsafe class float4x4_float4x4 diff --git a/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs index 7928c8d2..6f4d38eb 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs @@ -11,11 +11,12 @@ using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; using Unity.Burst; namespace Unity.Mathematics.PerformanceTests { - public partial class TestNoise + partial class TestNoise { [BurstCompile(CompileSynchronously = true)] public unsafe class snoise2D diff --git a/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs index 62c98d2e..89dd96e9 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs @@ -11,11 +11,12 @@ using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; using Unity.Burst; namespace Unity.Mathematics.PerformanceTests { - public partial class TestNormalize + partial class TestNormalize { [BurstCompile(CompileSynchronously = true)] public unsafe class float4_normalize diff --git a/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs new file mode 100644 index 00000000..ff027803 --- /dev/null +++ b/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs @@ -0,0 +1,102 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using System; +using NUnit.Framework; +using Unity.Collections; +using Unity.Collections.LowLevel.Unsafe; +using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; +using Unity.Burst; + +namespace Unity.Mathematics.PerformanceTests +{ + partial class TestPlane + { + [BurstCompile(CompileSynchronously = true)] + public unsafe class Normalize_Plane + { + public struct Arguments : IDisposable + { + public Plane* p; + + public void Init() + { + p = (Plane*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < 10000; ++i) + { + p[i] = new Plane { NormalAndDistance = new float4(1.0f) }; + } + + } + + public void Dispose() + { + UnsafeUtility.Free(p, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < 10000; ++i) + { + args.p[i] = Plane.Normalize(args.p[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void Normalize_Plane_mono() + { + Normalize_Plane.TestFunction testFunction = Normalize_Plane.MonoTestFunction; + var args = new Normalize_Plane.Arguments(); + args.Init(); + + Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .Definition(sampleUnit: SampleUnit.Microsecond) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void Normalize_Plane_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(Normalize_Plane.BurstTestFunction); + var args = new Normalize_Plane.Arguments(); + args.Init(); + + Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .Definition(sampleUnit: SampleUnit.Microsecond) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + } +} diff --git a/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs.meta b/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs.meta new file mode 100644 index 00000000..278a542c --- /dev/null +++ b/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 69f6889f1582d48189d71c70052f337a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs index 99a6a5f1..bf14d144 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs @@ -11,11 +11,12 @@ using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; using Unity.Burst; namespace Unity.Mathematics.PerformanceTests { - public partial class TestRandom + partial class TestRandom { [BurstCompile(CompileSynchronously = true)] public unsafe class Random_NextUint diff --git a/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs index 926f6b62..a49ded49 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs @@ -11,11 +11,12 @@ using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; using Unity.Burst; namespace Unity.Mathematics.PerformanceTests { - public partial class TestRotation + partial class TestRotation { [BurstCompile(CompileSynchronously = true)] public unsafe class float4x4_EulerXYZ diff --git a/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs index 4ec6d27c..830b3466 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs @@ -11,11 +11,12 @@ using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; using Unity.Burst; namespace Unity.Mathematics.PerformanceTests { - public partial class TestShuffle + partial class TestShuffle { [BurstCompile(CompileSynchronously = true)] public unsafe class float2_shuffle diff --git a/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs index a6f96f4d..0ea0cd8b 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs @@ -11,11 +11,12 @@ using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; using Unity.Burst; namespace Unity.Mathematics.PerformanceTests { - public partial class TestTranspose + partial class TestTranspose { [BurstCompile(CompileSynchronously = true)] public unsafe class transpose_float4x4 diff --git a/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs index 50d88fb1..89864ba4 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs @@ -11,11 +11,12 @@ using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; using Unity.Burst; namespace Unity.Mathematics.PerformanceTests { - public partial class TestTrig + partial class TestTrig { [BurstCompile(CompileSynchronously = true)] public unsafe class float_sincos diff --git a/src/Unity.Mathematics/Properties/AssemblyInfo.cs b/src/Unity.Mathematics/Properties/AssemblyInfo.cs index f6ae9b5d..cf79a97d 100644 --- a/src/Unity.Mathematics/Properties/AssemblyInfo.cs +++ b/src/Unity.Mathematics/Properties/AssemblyInfo.cs @@ -40,5 +40,6 @@ [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: InternalsVisibleTo("Unity.Mathematics.Tests")] +[assembly: InternalsVisibleTo("Unity.Mathematics.PerformanceTests")] [assembly: InternalsVisibleTo("btests")] #endif From cb98c2cc47cad1ef20d32eebbf202d65eaa9abf9 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Wed, 15 Apr 2020 14:10:54 -0700 Subject: [PATCH 292/437] Merge Unity.Physics AABB into MinMaxAABB. --- src/CHANGELOG.md | 4 +- src/Tests/Tests/Shared/TestMinMaxAABB.cs | 333 ++++++++++++++++-- .../VectorGenerator.cs | 20 ++ .../TestMinMaxAABB.gen.cs | 182 ++++++++++ .../TestMinMaxAABB.gen.cs.meta | 11 + src/Unity.Mathematics/Geometry/MinMaxAABB.cs | 292 ++++++++++++++- 6 files changed, 811 insertions(+), 31 deletions(-) create mode 100644 src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs create mode 100644 src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs.meta diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 5d08edb6..56dd9fd3 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,8 +1,10 @@ # Changelog ## [Unreleased] -- Added Unity.Mathematics.Extras.Plane to represent planes in 3D space. +- Added Unity.Mathematics.Geometry.Plane to represent planes in 3D space. - Adding Random.CreateFromIndex() to assist in creating Random instances from loop indices. +- Added more MinMaxAABB functionality from Unity.Physics.Aabb. +- Added Unity.Mathematics.Geometry.Math to hold static functions like AABB transformations. ## [1.1.0] - 2019-07-08 diff --git a/src/Tests/Tests/Shared/TestMinMaxAABB.cs b/src/Tests/Tests/Shared/TestMinMaxAABB.cs index bb89824b..c7fae618 100644 --- a/src/Tests/Tests/Shared/TestMinMaxAABB.cs +++ b/src/Tests/Tests/Shared/TestMinMaxAABB.cs @@ -9,31 +9,6 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestMinMaxAABB { - [TestCompiler] - public static void IsEmpty_trivial() - { - var aabb = new MinMaxAABB(); - TestUtils.IsFalse(aabb.IsEmpty); - } - - [TestCompiler] - public static void IsEmpty_empty() - { - var aabb = MinMaxAABB.Empty; - TestUtils.IsTrue(aabb.IsEmpty); - - aabb.Min = new float3(1.0f); - aabb.Max = new float3(-1.0f); - TestUtils.IsFalse(aabb.IsEmpty); - } - - [TestCompiler] - public static void IsEmpty_min_gt_max() - { - var aabb = new MinMaxAABB { Min = new float3(1.0f), Max = new float3(-1.0f) }; - TestUtils.IsFalse(aabb.IsEmpty); - } - [TestCompiler] public static void Encapsulate_float3_trivial() { @@ -267,5 +242,313 @@ public static void Equals_diff_maxz() TestUtils.IsFalse(aabb1.Equals(aabb2)); TestUtils.IsFalse(aabb2.Equals(aabb1)); } + + [TestCompiler] + public static void SurfaceArea() + { + var min = new float3(-47.989063262939453125f, 28.037994384765625f, -9.756519317626953125f); + var max = new float3(43.84253692626953125f, 101.54019927978515625f, -7.03227138519287109375f); + var aabb = new MinMaxAABB { Min = min, Max = max }; + + TestUtils.AreEqual(14400.470703125f, aabb.SurfaceArea, 1, true); + } + + [TestCompiler] + public static void Extents() + { + var min = new float3(48.152984619140625f, -33.58978271484375f, -37.498805999755859375f); + var max = new float3(111.2894439697265625f, -9.473724365234375f, 25.39115142822265625f); + var aabb = new MinMaxAABB { Min = min, Max = max }; + var expected = new float3(63.1364593505859375f, 24.116058349609375f, 62.889957427978515625f); + + TestUtils.AreEqual(expected, aabb.Extents); + } + + [TestCompiler] + public static void Center() + { + var min = new float3(47.902675628662109375f, -34.302494049072265625f, 22.7147884368896484375f); + var max = new float3(84.1039886474609375f, 23.274578094482421875f, 58.204532623291015625f); + var aabb = new MinMaxAABB { Min = min, Max = max }; + var expected = new float3(66.00333404541015625f, -5.513957977294921875f, 40.459659576416015625f); + + TestUtils.AreEqual(expected, aabb.Center); + } + + [TestCompiler] + public static void HalfExtents() + { + var min = new float3(-14.3485383987426757813f, 28.68161773681640625f, -40.28060150146484375f); + var max = new float3(4.26444864273071289063f, 99.3212738037109375f, 27.9023494720458984375f); + var aabb = new MinMaxAABB { Min = min, Max = max }; + var expected = new float3(9.3064937591552734375f, 35.319828033447265625f, 34.0914764404296875f); + + TestUtils.AreEqual(expected, aabb.HalfExtents); + } + + [TestCompiler] + public static void Constructor() + { + var min = new float3(38.95940399169921875f, -24.644245147705078125f, 27.7903194427490234375f); + var max = new float3(71.30234527587890625f, 52.2211151123046875f, 99.07735443115234375f); + var aabb = new MinMaxAABB(min, max); + + TestUtils.AreEqual(min, aabb.Min); + TestUtils.AreEqual(max, aabb.Max); + } + + [TestCompiler] + public static void ContainsPoint() + { + var aabb = new MinMaxAABB(new float3(-1), new float3(1)); + + TestUtils.IsTrue(aabb.Contains(float3.zero)); + TestUtils.IsTrue(aabb.Contains(aabb.Min)); + TestUtils.IsTrue(aabb.Contains(aabb.Max)); + TestUtils.IsTrue(aabb.Contains(new float3(0.5f))); + TestUtils.IsTrue(aabb.Contains(new float3(-0.5f))); + TestUtils.IsTrue(aabb.Contains(new float3(-1.0f, 1.0f, 1.0f))); + TestUtils.IsTrue(aabb.Contains(new float3(1.0f, -1.0f, 1.0f))); + TestUtils.IsTrue(aabb.Contains(new float3(1.0f, 1.0f, -1.0f))); + + TestUtils.IsFalse(aabb.Contains(new float3(1.0f + EPSILON, 1.0f, 1.0f))); + TestUtils.IsFalse(aabb.Contains(new float3(1.0f, 1.0f + EPSILON, 1.0f))); + TestUtils.IsFalse(aabb.Contains(new float3(1.0f, 1.0f, 1.0f + EPSILON))); + TestUtils.IsFalse(aabb.Contains(new float3(-1.0f - EPSILON, -1.0f, -1.0f))); + TestUtils.IsFalse(aabb.Contains(new float3(-1.0f, -1.0f - EPSILON, -1.0f))); + TestUtils.IsFalse(aabb.Contains(new float3(-1.0f, -1.0f, -1.0f - EPSILON))); + } + + [TestCompiler] + public static void ContainsAabb_Trivial() + { + var aabb1 = new MinMaxAABB(); + var aabb2 = new MinMaxAABB(); + + TestUtils.IsTrue(aabb1.Contains(aabb2)); + TestUtils.IsTrue(aabb2.Contains(aabb1)); + } + + [TestCompiler] + public static void ContainsAabb() + { + var aabb1 = new MinMaxAABB(new float3(-1.0f), new float3(1.0f)); + var aabb2 = new MinMaxAABB(new float3(-0.5f), new float3(0.5f)); + + TestUtils.IsTrue(aabb1.Contains(aabb2)); + TestUtils.IsFalse(aabb2.Contains(aabb1)); + } + + [TestCompiler] + public static void ContainsAabb_BarelyNotContained() + { + var aabb1 = new MinMaxAABB(new float3(-1.0f), new float3(1.0f)); + var aabb2 = new MinMaxAABB(new float3(-1.0f), new float3(1.0f + EPSILON, 1.0f , 1.0f )); + var aabb3 = new MinMaxAABB(new float3(-1.0f), new float3(1.0f , 1.0f + EPSILON, 1.0f )); + var aabb4 = new MinMaxAABB(new float3(-1.0f), new float3(1.0f , 1.0f , 1.0f + EPSILON)); + var aabb5 = new MinMaxAABB(new float3(-1.0f - EPSILON, -1.0f , -1.0f ), new float3(1.0f)); + var aabb6 = new MinMaxAABB(new float3(-1.0f , -1.0f - EPSILON, -1.0f ), new float3(1.0f)); + var aabb7 = new MinMaxAABB(new float3(-1.0f , -1.0f , -1.0f - EPSILON), new float3(1.0f)); + + TestUtils.IsFalse(aabb1.Contains(aabb2)); + TestUtils.IsFalse(aabb1.Contains(aabb3)); + TestUtils.IsFalse(aabb1.Contains(aabb4)); + TestUtils.IsFalse(aabb1.Contains(aabb5)); + TestUtils.IsFalse(aabb1.Contains(aabb6)); + TestUtils.IsFalse(aabb1.Contains(aabb7)); + } + + [TestCompiler] + public static void Overlap_Trivial() + { + var aabb = new MinMaxAABB(); + + TestUtils.IsTrue(aabb.Overlaps(aabb)); + } + + [TestCompiler] + public static void Overlap_Corner() + { + var aabb = new MinMaxAABB(new float3(-1.0f), new float3(1.0f)); + + var corner1 = new float3(-1.0f, -1.0f, -1.0f); + var corner2 = new float3(-1.0f, -1.0f, 1.0f); + var corner3 = new float3(-1.0f, 1.0f, -1.0f); + var corner4 = new float3(-1.0f, 1.0f, 1.0f); + var corner5 = new float3( 1.0f, -1.0f, -1.0f); + var corner6 = new float3( 1.0f, -1.0f, 1.0f); + var corner7 = new float3( 1.0f, 1.0f, -1.0f); + var corner8 = new float3( 1.0f, 1.0f, 1.0f); + + var cornerAabb1 = new MinMaxAABB(corner1, corner1); + var cornerAabb2 = new MinMaxAABB(corner2, corner2); + var cornerAabb3 = new MinMaxAABB(corner3, corner3); + var cornerAabb4 = new MinMaxAABB(corner4, corner4); + var cornerAabb5 = new MinMaxAABB(corner5, corner5); + var cornerAabb6 = new MinMaxAABB(corner6, corner6); + var cornerAabb7 = new MinMaxAABB(corner7, corner7); + var cornerAabb8 = new MinMaxAABB(corner8, corner8); + + TestUtils.IsTrue(aabb.Overlaps(cornerAabb1)); + TestUtils.IsTrue(cornerAabb1.Overlaps(aabb)); + TestUtils.IsTrue(aabb.Overlaps(cornerAabb2)); + TestUtils.IsTrue(cornerAabb2.Overlaps(aabb)); + TestUtils.IsTrue(aabb.Overlaps(cornerAabb3)); + TestUtils.IsTrue(cornerAabb3.Overlaps(aabb)); + TestUtils.IsTrue(aabb.Overlaps(cornerAabb4)); + TestUtils.IsTrue(cornerAabb4.Overlaps(aabb)); + TestUtils.IsTrue(aabb.Overlaps(cornerAabb5)); + TestUtils.IsTrue(cornerAabb5.Overlaps(aabb)); + TestUtils.IsTrue(aabb.Overlaps(cornerAabb6)); + TestUtils.IsTrue(cornerAabb6.Overlaps(aabb)); + TestUtils.IsTrue(aabb.Overlaps(cornerAabb7)); + TestUtils.IsTrue(cornerAabb7.Overlaps(aabb)); + TestUtils.IsTrue(aabb.Overlaps(cornerAabb8)); + TestUtils.IsTrue(cornerAabb8.Overlaps(aabb)); + } + + [TestCompiler] + public static void NoOverlap_Corner() + { + var aabb = new MinMaxAABB(new float3(-1.0f), new float3(1.0f)); + + var corner1 = new float3(-1.0f - EPSILON, -1.0f - EPSILON, -1.0f - EPSILON); + var corner2 = new float3(-1.0f - EPSILON, -1.0f - EPSILON, 1.0f + EPSILON); + var corner3 = new float3(-1.0f - EPSILON, 1.0f + EPSILON, -1.0f - EPSILON); + var corner4 = new float3(-1.0f - EPSILON, 1.0f + EPSILON, 1.0f + EPSILON); + var corner5 = new float3( 1.0f + EPSILON, -1.0f - EPSILON, -1.0f - EPSILON); + var corner6 = new float3( 1.0f + EPSILON, -1.0f - EPSILON, 1.0f + EPSILON); + var corner7 = new float3( 1.0f + EPSILON, 1.0f + EPSILON, -1.0f - EPSILON); + var corner8 = new float3( 1.0f + EPSILON, 1.0f + EPSILON, 1.0f + EPSILON); + + var cornerAabb1 = new MinMaxAABB(corner1, corner1); + var cornerAabb2 = new MinMaxAABB(corner2, corner2); + var cornerAabb3 = new MinMaxAABB(corner3, corner3); + var cornerAabb4 = new MinMaxAABB(corner4, corner4); + var cornerAabb5 = new MinMaxAABB(corner5, corner5); + var cornerAabb6 = new MinMaxAABB(corner6, corner6); + var cornerAabb7 = new MinMaxAABB(corner7, corner7); + var cornerAabb8 = new MinMaxAABB(corner8, corner8); + + TestUtils.IsFalse(aabb.Overlaps(cornerAabb1)); + TestUtils.IsFalse(cornerAabb1.Overlaps(aabb)); + TestUtils.IsFalse(aabb.Overlaps(cornerAabb2)); + TestUtils.IsFalse(cornerAabb2.Overlaps(aabb)); + TestUtils.IsFalse(aabb.Overlaps(cornerAabb3)); + TestUtils.IsFalse(cornerAabb3.Overlaps(aabb)); + TestUtils.IsFalse(aabb.Overlaps(cornerAabb4)); + TestUtils.IsFalse(cornerAabb4.Overlaps(aabb)); + TestUtils.IsFalse(aabb.Overlaps(cornerAabb5)); + TestUtils.IsFalse(cornerAabb5.Overlaps(aabb)); + TestUtils.IsFalse(aabb.Overlaps(cornerAabb6)); + TestUtils.IsFalse(cornerAabb6.Overlaps(aabb)); + TestUtils.IsFalse(aabb.Overlaps(cornerAabb7)); + TestUtils.IsFalse(cornerAabb7.Overlaps(aabb)); + TestUtils.IsFalse(aabb.Overlaps(cornerAabb8)); + TestUtils.IsFalse(cornerAabb8.Overlaps(aabb)); + } + + [TestCompiler] + public static void Expand_PositiveDistance() + { + var aabb = new MinMaxAABB(new float3(-0.5f), new float3(0.5f)); + aabb.Expand(1.0f); + + TestUtils.AreEqual(new float3(-1.5f), aabb.Min); + TestUtils.AreEqual(new float3(1.5f), aabb.Max); + } + + [TestCompiler] + public static void Expand_NegativeDistance() + { + var aabb = new MinMaxAABB(new float3(-0.5f), new float3(0.5f)); + aabb.Expand(-1.0f); + + TestUtils.AreEqual(new float3(0.5f), aabb.Min); + TestUtils.AreEqual(new float3(-0.5f), aabb.Max); + } + + [TestCompiler] + public static void CreateFromCenterAndExtents() + { + var center = new float3(-29.2458133697509765625f, 1.21094369888305664063f, 34.281322479248046875f); + var extents = new float3(71.5140533447265625f, 33.691967010498046875f, 29.8891429901123046875f); + var expectedMin = new float3(-65.002838134765625f, -15.635040283203125f, 19.336750030517578125f); + var expectedMax = new float3(6.5112133026123046875f, 18.056926727294921875f, 49.225894927978515625f); + var aabb = MinMaxAABB.CreateFromCenterAndExtents(center, extents); + + TestUtils.AreEqual(expectedMin, aabb.Min); + TestUtils.AreEqual(expectedMax, aabb.Max); + } + + [TestCompiler] + public static void CreateFromCenterAndHalfExtents() + { + var center = new float3(-29.2458133697509765625f, 1.21094369888305664063f, 34.281322479248046875f); + var halfExtents = new float3(8.8238582611083984375f, 72.26158905029296875f, 47.658290863037109375f); + var expectedMin = new float3(-38.069671630859375f, -71.0506439208984375f, -13.3769683837890625f); + var expectedMax = new float3(-20.421955108642578125f, 73.4725341796875f, 81.93961334228515625f); + var aabb = MinMaxAABB.CreateFromCenterAndHalfExtents(center, halfExtents); + + TestUtils.AreEqual(expectedMin, aabb.Min); + TestUtils.AreEqual(expectedMax, aabb.Max); + } + + [TestCompiler] + public static void IsValid_Trivial() + { + TestUtils.IsTrue(new MinMaxAABB().IsValid); + TestUtils.IsFalse(new MinMaxAABB(new float3(1.0f), new float3(-1.0f)).IsValid); + } + + [TestCompiler] + public static void IsValid_OneComponentInvalid() + { + TestUtils.IsFalse(new MinMaxAABB(float3.zero, new float3(-1.0f, 0.0f, 0.0f)).IsValid); + TestUtils.IsFalse(new MinMaxAABB(float3.zero, new float3(0.0f, -1.0f, 0.0f)).IsValid); + TestUtils.IsFalse(new MinMaxAABB(float3.zero, new float3(0.0f, 0.0f, -1.0f)).IsValid); + TestUtils.IsFalse(new MinMaxAABB(new float3(1.0f, 0.0f, 0.0f), float3.zero).IsValid); + TestUtils.IsFalse(new MinMaxAABB(new float3(0.0f, 1.0f, 0.0f), float3.zero).IsValid); + TestUtils.IsFalse(new MinMaxAABB(new float3(0.0f, 0.0f, 1.0f), float3.zero).IsValid); + } + + [TestCompiler] + public static void Transform_RigidTransform() + { + var t = new RigidTransform(quaternion.EulerXYZ(PI * 0.25f), new float3(1.0f, 1.0f, 1.0f)); + var aabb = Unity.Mathematics.Geometry.Math.Transform(t, new MinMaxAABB(new float3(1.0f), new float3(3.0f))); + var expectedMin = new float3(1.914213562373095e+00f, 1.914213562373095e+00f, -1.213203435596422e-01f); + var expectedMax = new float3(4.914213562373095f, 4.914213562373095f, 3.292893218813453f); + + float tolerance = 1e-6f; + TestUtils.AreEqual(expectedMin, aabb.Min, tolerance); + TestUtils.AreEqual(expectedMax, aabb.Max, tolerance); + } + + [TestCompiler] + public static void Transform_float4x4() + { + var t = new float4x4(float3x3.EulerXYZ(PI * 0.25f), new float3(1.0f, 1.0f, 1.0f)); + var aabb = Unity.Mathematics.Geometry.Math.Transform(t, new MinMaxAABB(new float3(1.0f), new float3(3.0f))); + var expectedMin = new float3(1.914213562373095e+00f, 1.914213562373095e+00f, -1.213203435596422e-01f); + var expectedMax = new float3(4.914213562373095f, 4.914213562373095f, 3.292893218813453f); + + float tolerance = 1e-6f; + TestUtils.AreEqual(expectedMin, aabb.Min, tolerance); + TestUtils.AreEqual(expectedMax, aabb.Max, tolerance); + } + + [TestCompiler] + public static void Transform_float3x3() + { + var t = float3x3.EulerXYZ(PI * 0.25f); + var aabb = Unity.Mathematics.Geometry.Math.Transform(t, new MinMaxAABB(new float3(1.0f), new float3(3.0f))); + var expectedMin = new float3(9.142135623730949e-01f, 9.142135623730949e-01f, -1.121320343559642e+00f); + var expectedMax = new float3(3.914213562373095f, 3.914213562373095f, 2.292893218813453f); + + float tolerance = 1e-6f; + TestUtils.AreEqual(expectedMin, aabb.Min, tolerance); + TestUtils.AreEqual(expectedMax, aabb.Max, tolerance); + } } } diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index dc7c54ea..210003f8 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -3497,6 +3497,22 @@ void GeneratePlanePerformanceTests(StringBuilder str) EndPerformanceTestCodeGen(str); } + public void GenerateMinMaxAabbPerformanceTests(StringBuilder str) + { + BeginPerformanceTestCodeGen(str, "TestMinMaxAABB"); + + GeneratePerformanceTest(str, "Transform_float4x4", new PerformanceTestArrayArgument[] + { + new PerformanceTestArrayArgument { m_ElementType = "Geometry.MinMaxAABB", m_MemberName = "a", m_ElementInitializer = "new Geometry.MinMaxAABB()" }, + }, "args.a[i] = Geometry.Math.Transform(float4x4.identity, args.a[i]);", 100000); + GeneratePerformanceTest(str, "Transform_float3x3", new PerformanceTestArrayArgument[] + { + new PerformanceTestArrayArgument { m_ElementType = "Geometry.MinMaxAABB", m_MemberName = "a", m_ElementInitializer = "new Geometry.MinMaxAABB()" }, + }, "args.a[i] = Geometry.Math.Transform(float3x3.identity, args.a[i]);", 100000); + + EndPerformanceTestCodeGen(str); + } + public struct PerformanceTestArrayArgument { public string m_ElementType; @@ -3650,6 +3666,10 @@ void WritePerformanceTests() StringBuilder planeStr = new StringBuilder(); GeneratePlanePerformanceTests(planeStr); WriteFile(m_PerformanceTestDirectory + "/TestPlane.gen.cs", planeStr.ToString()); + + StringBuilder minMaxAabbStr = new StringBuilder(); + GenerateMinMaxAabbPerformanceTests(minMaxAabbStr); + WriteFile(m_PerformanceTestDirectory + "/TestMinMaxAABB.gen.cs", minMaxAabbStr.ToString()); } } } diff --git a/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs new file mode 100644 index 00000000..67d7c733 --- /dev/null +++ b/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs @@ -0,0 +1,182 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using System; +using NUnit.Framework; +using Unity.Collections; +using Unity.Collections.LowLevel.Unsafe; +using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; +using Unity.Burst; + +namespace Unity.Mathematics.PerformanceTests +{ + partial class TestMinMaxAABB + { + [BurstCompile(CompileSynchronously = true)] + public unsafe class Transform_float4x4 + { + public struct Arguments : IDisposable + { + public Geometry.MinMaxAABB* a; + + public void Init() + { + a = (Geometry.MinMaxAABB*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < 100000; ++i) + { + a[i] = new Geometry.MinMaxAABB(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(a, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < 100000; ++i) + { + args.a[i] = Geometry.Math.Transform(float4x4.identity, args.a[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void Transform_float4x4_mono() + { + Transform_float4x4.TestFunction testFunction = Transform_float4x4.MonoTestFunction; + var args = new Transform_float4x4.Arguments(); + args.Init(); + + Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .Definition(sampleUnit: SampleUnit.Microsecond) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void Transform_float4x4_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(Transform_float4x4.BurstTestFunction); + var args = new Transform_float4x4.Arguments(); + args.Init(); + + Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .Definition(sampleUnit: SampleUnit.Microsecond) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class Transform_float3x3 + { + public struct Arguments : IDisposable + { + public Geometry.MinMaxAABB* a; + + public void Init() + { + a = (Geometry.MinMaxAABB*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < 100000; ++i) + { + a[i] = new Geometry.MinMaxAABB(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(a, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < 100000; ++i) + { + args.a[i] = Geometry.Math.Transform(float3x3.identity, args.a[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void Transform_float3x3_mono() + { + Transform_float3x3.TestFunction testFunction = Transform_float3x3.MonoTestFunction; + var args = new Transform_float3x3.Arguments(); + args.Init(); + + Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .Definition(sampleUnit: SampleUnit.Microsecond) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void Transform_float3x3_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(Transform_float3x3.BurstTestFunction); + var args = new Transform_float3x3.Arguments(); + args.Init(); + + Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .Definition(sampleUnit: SampleUnit.Microsecond) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + } +} diff --git a/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs.meta b/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs.meta new file mode 100644 index 00000000..e6e42568 --- /dev/null +++ b/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ca277fe77ffcc4fbebdd68a42b968f0c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs index a03c762d..fee1feff 100644 --- a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs +++ b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs @@ -1,49 +1,331 @@ using System; +using System.Runtime.CompilerServices; using static Unity.Mathematics.math; namespace Unity.Mathematics.Geometry { + /// + /// Axis aligned bounding box (AABB) stored in min/max form. + /// + /// + /// Axis aligned bounding boxes (AABB) are boxes where each side is parallel with one of the Cartesian coordinate axes + /// X, Y, and Z. AABBs are useful for approximating the region an object (or collection of objects) occupy and quickly + /// testing whether or not that object (or collection of objects) is relevant. Because they are axis aligned, they + /// are very cheap to construct and perform overlap tests with them. + /// [System.Serializable] internal struct MinMaxAABB : IEquatable { + /// + /// The most minimum point contained by the AABB. + /// + /// + /// If is greater than then this AABB is invalid. + /// + /// public float3 Min; + + /// + /// The most maximum point contained by the AABB. + /// + /// + /// If is less than then this AABB is invalid. + /// + /// public float3 Max; - public bool IsEmpty + /// + /// Constructs the AABB with the given minimum and maximums. + /// + /// + /// If you have a center and extents, you can call or + /// to create the AABB. + /// + /// Minimum point inside AABB. + /// Maximum point inside AABB. + public MinMaxAABB(float3 min, float3 max) + { + Min = min; + Max = max; + } + + /// + /// Creates the AABB from a center and extents. + /// + /// + /// This function takes full extents. It is the distance between and . + /// If you have half extents, you can call . + /// + /// Center of AABB. + /// Full extents of AABB. + /// AABB created from inputs. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static MinMaxAABB CreateFromCenterAndExtents(float3 center, float3 extents) + { + return CreateFromCenterAndHalfExtents(center, extents * 0.5f); + } + + /// + /// Creates the AABB from a center and half extents. + /// + /// + /// This function takes half extents. It is half the distance between and . + /// If you have full extents, you can call . + /// + /// Center of AABB. + /// Half extents of AABB. + /// AABB created from inputs. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static MinMaxAABB CreateFromCenterAndHalfExtents(float3 center, float3 halfExtents) + { + return new MinMaxAABB(center - halfExtents, center + halfExtents); + } + + /// + /// Computes the extents of the AABB. + /// + /// + /// Extents is the componentwise distance between min and max. + /// + public float3 Extents => Max - Min; + + /// + /// Computes the half extents of the AABB. + /// + /// + /// HalfExtents is half of the componentwise distance between min and max. Subtracting HalfExtents from Center + /// gives Min and adding HalfExtents to Center gives Max. + /// + public float3 HalfExtents => (Max - Min) * 0.5f; + + /// + /// Computes the center of the AABB. + /// + public float3 Center => (Max + Min) * 0.5f; + + /// + /// Check if the AABB is valid. + /// + /// + /// An AABB is considered valid if is componentwise less than or equal to . + /// + /// True if is componentwise less than or equal to . + public bool IsValid => math.all(Min <= Max); + + /// + /// Computes the surface area for this axis aligned bounding box. + /// + public float SurfaceArea + { + get + { + float3 diff = Max - Min; + return 2 * math.dot(diff, diff.yzx); + } + } + + /// + /// Tests if the input point is contained by the AABB. + /// + /// Point to test. + /// True if AABB contains the input point. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Contains(float3 point) => math.all(point >= Min & point <= Max); + + /// + /// Tests if the input AABB is contained entirely by this AABB. + /// + /// AABB to test. + /// True if input AABB is contained entirely by this AABB. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Contains(MinMaxAABB aabb) => math.all((Min <= aabb.Min) & (Max >= aabb.Max)); + + /// + /// Tests if the input AABB overlaps this AABB. + /// + /// AABB to test. + /// True if input AABB overlaps with this AABB. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Overlaps(MinMaxAABB aabb) { - get { return this.Equals(Empty); } + return math.all(Max >= aabb.Min & Min <= aabb.Max); } - public static MinMaxAABB Empty + /// + /// Expands the AABB by the given signed distance. + /// + /// + /// Positive distance expands the AABB while negative distance shrinks the AABB. + /// + /// Signed distance to expand the AABB with. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public void Expand(float signedDistance) { - get { return new MinMaxAABB { Min = float3(float.PositiveInfinity), Max = float3(float.NegativeInfinity) }; } + Min -= signedDistance; + Max += signedDistance; } + /// + /// Encapsulates the given AABB. + /// + /// + /// Modifies this AABB so that it contains the given AABB. If the given AABB is already contained by this AABB, + /// then this AABB doesn't change. + /// + /// + /// AABB to encapsulate. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Encapsulate(MinMaxAABB aabb) { Min = math.min(Min, aabb.Min); Max = math.max(Max, aabb.Max); } + /// + /// Encapsulate the given point. + /// + /// + /// Modifies this AABB so that it contains the given point. If the given point is already contained by this AABB, + /// then this AABB doesn't change. + /// + /// + /// Point to encapsulate. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Encapsulate(float3 point) { Min = math.min(Min, point); Max = math.max(Max, point); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator MinMaxAABB(AABB aabb) { return new MinMaxAABB {Min = aabb.Center - aabb.Extents, Max = aabb.Center + aabb.Extents}; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator AABB(MinMaxAABB aabb) { - return new AABB { Center = (aabb.Min + aabb.Max) * 0.5F, Extents = (aabb.Max - aabb.Min) * 0.5F}; + return new AABB { Center = aabb.Center, Extents = aabb.HalfExtents }; } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(MinMaxAABB other) { return Min.Equals(other.Min) && Max.Equals(other.Max); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public override string ToString() + { + return string.Format("MinMaxAABB({0}, {1})", Min, Max); + } + } + + internal static partial class Math + { + /// + /// Transforms the AABB with the given transform. + /// + /// + /// The resulting AABB encapsulates the transformed AABB which may not be axis aligned after the transformation. + /// + /// Transform to apply to AABB. + /// AABB to be transformed. + /// Transformed AABB. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static MinMaxAABB Transform(RigidTransform transform, MinMaxAABB aabb) + { + float3 halfExtentsInA = aabb.HalfExtents; + + // Rotate each axis individually and find their new positions in the rotated space. + float3 x = math.rotate(transform.rot, new float3(halfExtentsInA.x, 0, 0)); + float3 y = math.rotate(transform.rot, new float3(0, halfExtentsInA.y, 0)); + float3 z = math.rotate(transform.rot, new float3(0, 0, halfExtentsInA.z)); + + // Find the new max corner by summing the rotated axes. Absolute value of each axis + // since we are trying to find the max corner. + float3 halfExtentsInB = math.abs(x) + math.abs(y) + math.abs(z); + float3 centerInB = math.transform(transform, aabb.Center); + + return new MinMaxAABB(centerInB - halfExtentsInB, centerInB + halfExtentsInB); + } + + /// + /// Transforms the AABB with the given transform. + /// + /// + /// The resulting AABB encapsulates the transformed AABB which may not be axis aligned after the transformation. + /// + /// Transform to apply to AABB. + /// AABB to be transformed. + /// Transformed AABB. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static MinMaxAABB Transform(float4x4 transform, MinMaxAABB aabb) + { + var transformed = Transform(new float3x3(transform), aabb); + transformed.Min += transform.c3.xyz; + transformed.Max += transform.c3.xyz; + return transformed; + } + + /// + /// Transforms the AABB with the given transform. + /// + /// + /// The resulting AABB encapsulates the transformed AABB which may not be axis aligned after the transformation. + /// + /// Transform to apply to AABB. + /// AABB to be transformed. + /// Transformed AABB. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static MinMaxAABB Transform(float3x3 transform, MinMaxAABB aabb) + { + // From Christer Ericson's Real-Time Collision Detection on page 86 and 87. + // We want the transformed minimum and maximums of the AABB. Multiplying a 3x3 matrix on the left of a + // column vector looks like so: + // + // [ c0.x c1.x c2.x ] [ x ] [ c0.x * x + c1.x * y + c2.x * z ] + // [ c0.y c1.y c2.y ] [ y ] = [ c0.y * x + c1.y * y + c2.y * z ] + // [ c0.z c1.z c2.z ] [ z ] [ c0.z * x + c1.z * y + c2.z * z ] + // + // The column vectors we will use are the input AABB's min and max. Simply multiplying those two vectors + // with the transformation matrix won't guarantee we get the new min and max since those are only two + // points out of eight in the AABB and one of the other six may set the new min or max. + // + // To ensure we get the correct min and max, we must transform all eight points. But it's not necessary + // to actually perform eight matrix multiplies to get our final result. Instead, we can build the min and + // max incrementally by computing each term in the above matrix multiply separately then summing the min + // (or max). For instance, to find the new minimum contributed by the original min and max x component, we + // compute this: + // + // newMin.x = min(c0.x * Min.x, c0.x * Max.x); + // newMin.y = min(c0.y * Min.x, c0.y * Max.x); + // newMin.z = min(c0.z * Min.x, c0.z * Max.x); + // + // Then we add minimum contributed by the original min and max y components: + // + // newMin.x += min(c1.x * Min.y, c1.x * Max.y); + // newMin.y += min(c1.y * Min.y, c1.y * Max.y); + // newMin.z += min(c1.z * Min.y, c1.z * Max.y); + // + // And so on. Translation can be handled by simply initializing the new min and max with the translation + // amount since it does not affect the min and max bounds in local space. + var t1 = transform.c0.xyz * aabb.Min.xxx; + var t2 = transform.c0.xyz * aabb.Max.xxx; + var minMask = t1 < t2; + var transformed = new MinMaxAABB(select(t2, t1, minMask), select(t2, t1, !minMask)); + t1 = transform.c1.xyz * aabb.Min.yyy; + t2 = transform.c1.xyz * aabb.Max.yyy; + minMask = t1 < t2; + transformed.Min += select(t2, t1, minMask); + transformed.Max += select(t2, t1, !minMask); + t1 = transform.c2.xyz * aabb.Min.zzz; + t2 = transform.c2.xyz * aabb.Max.zzz; + minMask = t1 < t2; + transformed.Min += select(t2, t1, minMask); + transformed.Max += select(t2, t1, !minMask); + return transformed; + } } } From 441ac4f3a01d6156c5c329168e0c39eb74a2df0f Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Mon, 20 Apr 2020 17:32:20 -0700 Subject: [PATCH 293/437] Change static field to const for burst. --- src/Tests/Tests/Shared/TestPlane.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tests/Tests/Shared/TestPlane.cs b/src/Tests/Tests/Shared/TestPlane.cs index 17f41312..91e60044 100644 --- a/src/Tests/Tests/Shared/TestPlane.cs +++ b/src/Tests/Tests/Shared/TestPlane.cs @@ -8,7 +8,7 @@ namespace Unity.Mathematics.Tests public class TestPlane { // An arbitrary tolerance. - static float Tolerance = 0.0000025f; + const float Tolerance = 0.0000025f; [TestCompiler] public static void Empty() From b54e6453dc0f32e9c2e074b2ef192efe7ecef987 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Wed, 22 Apr 2020 10:04:01 -0700 Subject: [PATCH 294/437] Addressing review comments. Fixed up documentation and added a comment explaning AABB.Extent being half extents instead of full. --- src/Unity.Mathematics/Geometry/MinMaxAABB.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs index fee1feff..c252b538 100644 --- a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs +++ b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs @@ -17,25 +17,25 @@ namespace Unity.Mathematics.Geometry internal struct MinMaxAABB : IEquatable { /// - /// The most minimum point contained by the AABB. + /// The minimum point contained by the AABB. /// /// - /// If is greater than then this AABB is invalid. + /// If any component of is greater than then this AABB is invalid. /// /// public float3 Min; /// - /// The most maximum point contained by the AABB. + /// The maximum point contained by the AABB. /// /// - /// If is less than then this AABB is invalid. + /// If any component of is less than then this AABB is invalid. /// /// public float3 Max; /// - /// Constructs the AABB with the given minimum and maximums. + /// Constructs the AABB with the given minimum and maximum. /// /// /// If you have a center and extents, you can call or @@ -206,6 +206,7 @@ public static implicit operator MinMaxAABB(AABB aabb) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator AABB(MinMaxAABB aabb) { + // AABB Extents are actually half extents. The full extents in AABB is called Size. return new AABB { Center = aabb.Center, Extents = aabb.HalfExtents }; } From e80b860ea269d045c658a9f45169e625c0ab4ab5 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Thu, 23 Apr 2020 09:56:51 -0700 Subject: [PATCH 295/437] Rename AABB.Extents to AABB.HalfExtents and try in parameters. --- src/Tests/Tests/Shared/TestAABB.cs | 38 +++++++++--------- src/Tests/Tests/Shared/TestMinMaxAABB.cs | 4 +- src/Unity.Mathematics/Geometry/AABB.cs | 42 ++++++++++---------- src/Unity.Mathematics/Geometry/MinMaxAABB.cs | 16 ++++---- 4 files changed, 50 insertions(+), 50 deletions(-) diff --git a/src/Tests/Tests/Shared/TestAABB.cs b/src/Tests/Tests/Shared/TestAABB.cs index b39bc6a6..4ec5d15c 100644 --- a/src/Tests/Tests/Shared/TestAABB.cs +++ b/src/Tests/Tests/Shared/TestAABB.cs @@ -19,7 +19,7 @@ public static void Min_trivial() [TestCompiler] public static void Min() { - var aabb = new AABB { Center = new float3(1.0f, -1.0f, 1.0f), Extents = new float3(0.5f) }; + var aabb = new AABB { Center = new float3(1.0f, -1.0f, 1.0f), HalfExtents = new float3(0.5f) }; TestUtils.AreEqual(new float3(0.5f, -1.5f, 0.5f), aabb.Min); } @@ -35,7 +35,7 @@ public static void Max_trivial() [TestCompiler] public static void Max() { - var aabb = new AABB { Center = new float3(1.0f, -1.0f, 1.0f), Extents = new float3(0.5f) }; + var aabb = new AABB { Center = new float3(1.0f, -1.0f, 1.0f), HalfExtents = new float3(0.5f) }; TestUtils.AreEqual(new float3(1.5f, -0.5f, 1.5f), aabb.Max); } @@ -45,15 +45,15 @@ public static void Size_trivial() { var aabb = new AABB(); - TestUtils.AreEqual(float3.zero, aabb.Size); + TestUtils.AreEqual(float3.zero, aabb.Extents); } [TestCompiler] public static void Size() { - var aabb = new AABB { Center = new float3(1.0f, -1.0f, 1.0f), Extents = new float3(0.5f) }; + var aabb = new AABB { Center = new float3(1.0f, -1.0f, 1.0f), HalfExtents = new float3(0.5f) }; - TestUtils.AreEqual(new float3(1.0f), aabb.Size); + TestUtils.AreEqual(new float3(1.0f), aabb.Extents); } [TestCompiler] @@ -85,7 +85,7 @@ public static void Contains_float3_nonzero_center() public static void Contains_float3_nonzero_extents() { var extents = new float3(0.5f, 0.5f, 0.5f); - AABB aabb = new AABB { Extents = extents }; + AABB aabb = new AABB { HalfExtents = extents }; TestUtils.IsTrue(aabb.Contains(float3.zero)); TestUtils.IsTrue(aabb.Contains(new float3(0.5f, 0.0f, 0.0f))); @@ -116,7 +116,7 @@ public static void Contains_AABB_trivial() [TestCompiler] public static void Contains_AABB() { - var aabb_outer = new AABB { Extents = new float3(0.5f, 0.5f, 0.5f) }; + var aabb_outer = new AABB { HalfExtents = new float3(0.5f, 0.5f, 0.5f) }; var aabb_inner = new AABB(); TestUtils.IsTrue(aabb_outer.Contains(aabb_inner)); @@ -126,8 +126,8 @@ public static void Contains_AABB() [TestCompiler] public static void Contains_AABB_partial_overlap() { - var aabb1 = new AABB { Extents = new float3(0.5f, 0.5f, 0.5f) }; - var aabb2 = new AABB { Center = new float3(0.5f, 0.5f, 0.5f), Extents = new float3(0.5f)}; + var aabb1 = new AABB { HalfExtents = new float3(0.5f, 0.5f, 0.5f) }; + var aabb2 = new AABB { Center = new float3(0.5f, 0.5f, 0.5f), HalfExtents = new float3(0.5f)}; TestUtils.IsFalse(aabb1.Contains(aabb2)); TestUtils.IsFalse(aabb2.Contains(aabb1)); @@ -145,7 +145,7 @@ public static void DistanceSq_trivial() public static void DistanceSq_point_inside() { var center = new float3(1.0f); - var aabb = new AABB { Center = center, Extents = new float3(0.5f) }; + var aabb = new AABB { Center = center, HalfExtents = new float3(0.5f) }; TestUtils.AreEqual(0.0f, aabb.DistanceSq(center), 0.0f); TestUtils.AreEqual(0.0f, aabb.DistanceSq(center + new float3(0.5f))); @@ -156,7 +156,7 @@ public static void DistanceSq_point_inside() public static void DistanceSq_point_outside() { var center = new float3(1.0f); - var aabb = new AABB { Center = center, Extents = new float3(0.5f) }; + var aabb = new AABB { Center = center, HalfExtents = new float3(0.5f) }; TestUtils.AreEqual(0.25f, aabb.DistanceSq(center + new float3(1.0f, 0.0f, 0.0f))); TestUtils.AreEqual(0.25f, aabb.DistanceSq(center + new float3(-1.0f, 0.0f, 0.0f))); @@ -170,7 +170,7 @@ public static void DistanceSq_point_outside() public static void DistanceSq_point_outside_corner() { var center = new float3(1.0f); - var aabb = new AABB { Center = center, Extents = new float3(0.5f) }; + var aabb = new AABB { Center = center, HalfExtents = new float3(0.5f) }; TestUtils.AreEqual(0.75f, aabb.DistanceSq(center + new float3(1.0f))); } @@ -183,40 +183,40 @@ public static void Transform_trivial() var transformedAabb = AABB.Transform(transform, localAabb); TestUtils.AreEqual(float3.zero, transformedAabb.Center); - TestUtils.AreEqual(float3.zero, transformedAabb.Extents); + TestUtils.AreEqual(float3.zero, transformedAabb.HalfExtents); } [TestCompiler] public static void Transform_translation() { - var localAabb = new AABB { Center = float3.zero, Extents = new float3(1.0f) }; + var localAabb = new AABB { Center = float3.zero, HalfExtents = new float3(1.0f) }; var transform = float4x4.Translate(new float3(1.0f)); var transformedAabb = AABB.Transform(transform, localAabb); TestUtils.AreEqual(new float3(1.0f), transformedAabb.Center); - TestUtils.AreEqual(localAabb.Extents, transformedAabb.Extents); + TestUtils.AreEqual(localAabb.HalfExtents, transformedAabb.HalfExtents); } [TestCompiler] public static void Transform_rotation() { - var localAabb = new AABB { Center = float3.zero, Extents = new float3(1.0f) }; + var localAabb = new AABB { Center = float3.zero, HalfExtents = new float3(1.0f) }; var transform = float4x4.EulerZXY(new float3(PI * 0.25f)); var transformedAabb = AABB.Transform(transform, localAabb); TestUtils.AreEqual(float3.zero, transformedAabb.Center); - TestUtils.AreEqual(new float3( 1.5f, 1.70710678118f, 1.5f), transformedAabb.Extents, 0.0001f); + TestUtils.AreEqual(new float3( 1.5f, 1.70710678118f, 1.5f), transformedAabb.HalfExtents, 0.0001f); } [TestCompiler] public static void Transform_translation_rotation() { - var localAabb = new AABB { Center = float3.zero, Extents = new float3(1.0f) }; + var localAabb = new AABB { Center = float3.zero, HalfExtents = new float3(1.0f) }; var transform = float4x4.TRS(new float3(1.0f), quaternion.EulerZXY(new float3(PI * 0.25f)), new float3(1.0f)); var transformedAabb = AABB.Transform(transform, localAabb); TestUtils.AreEqual(new float3(1.0f), transformedAabb.Center); - TestUtils.AreEqual(new float3( 1.5f, 1.70710678118f, 1.5f), transformedAabb.Extents, 0.0001f); + TestUtils.AreEqual(new float3( 1.5f, 1.70710678118f, 1.5f), transformedAabb.HalfExtents, 0.0001f); } } } diff --git a/src/Tests/Tests/Shared/TestMinMaxAABB.cs b/src/Tests/Tests/Shared/TestMinMaxAABB.cs index c7fae618..f93c23ef 100644 --- a/src/Tests/Tests/Shared/TestMinMaxAABB.cs +++ b/src/Tests/Tests/Shared/TestMinMaxAABB.cs @@ -161,13 +161,13 @@ public static void Convert_MinMaxAABB_to_AABB() var minmax = new MinMaxAABB { Min = new float3(1.0f), Max = new float3(2.0f) }; AABB aabb = minmax; TestUtils.AreEqual(new float3(1.5f), aabb.Center); - TestUtils.AreEqual(new float3(0.5f), aabb.Extents); + TestUtils.AreEqual(new float3(0.5f), aabb.HalfExtents); } [TestCompiler] public static void Convert_AABB_to_MinMaxAABB() { - AABB aabb = new AABB { Center = new float3(1.5f), Extents = new float3(0.5f) }; + AABB aabb = new AABB { Center = new float3(1.5f), HalfExtents = new float3(0.5f) }; MinMaxAABB minmax = aabb; TestUtils.AreEqual(new float3(1.0f), minmax.Min); TestUtils.AreEqual(new float3(2.0f), minmax.Max); diff --git a/src/Unity.Mathematics/Geometry/AABB.cs b/src/Unity.Mathematics/Geometry/AABB.cs index 9216daa1..f04712bc 100644 --- a/src/Unity.Mathematics/Geometry/AABB.cs +++ b/src/Unity.Mathematics/Geometry/AABB.cs @@ -7,33 +7,33 @@ namespace Unity.Mathematics.Geometry internal partial struct AABB { public float3 Center; - public float3 Extents; + public float3 HalfExtents; - public float3 Size { get { return Extents * 2; } } - public float3 Min { get { return Center - Extents; } } - public float3 Max { get { return Center + Extents; } } + public float3 Extents { get { return HalfExtents * 2; } } + public float3 Min { get { return Center - HalfExtents; } } + public float3 Max { get { return Center + HalfExtents; } } /// Returns a string representation of the AABB. public override string ToString() { - return $"AABB(Center:{Center}, Extents:{Extents}"; + return $"AABB(Center:{Center}, HalfExtents:{HalfExtents}"; } public bool Contains(float3 point) { - if (point[0] < Center[0] - Extents[0]) + if (point[0] < Center[0] - HalfExtents[0]) return false; - if (point[0] > Center[0] + Extents[0]) + if (point[0] > Center[0] + HalfExtents[0]) return false; - if (point[1] < Center[1] - Extents[1]) + if (point[1] < Center[1] - HalfExtents[1]) return false; - if (point[1] > Center[1] + Extents[1]) + if (point[1] > Center[1] + HalfExtents[1]) return false; - if (point[2] < Center[2] - Extents[2]) + if (point[2] < Center[2] - HalfExtents[2]) return false; - if (point[2] > Center[2] + Extents[2]) + if (point[2] > Center[2] + HalfExtents[2]) return false; return true; @@ -41,14 +41,14 @@ public bool Contains(float3 point) public bool Contains(AABB b) { - return Contains(b.Center + float3(-b.Extents.x, -b.Extents.y, -b.Extents.z)) - && Contains(b.Center + float3(-b.Extents.x, -b.Extents.y, b.Extents.z)) - && Contains(b.Center + float3(-b.Extents.x, b.Extents.y, -b.Extents.z)) - && Contains(b.Center + float3(-b.Extents.x, b.Extents.y, b.Extents.z)) - && Contains(b.Center + float3( b.Extents.x, -b.Extents.y, -b.Extents.z)) - && Contains(b.Center + float3( b.Extents.x, -b.Extents.y, b.Extents.z)) - && Contains(b.Center + float3( b.Extents.x, b.Extents.y, -b.Extents.z)) - && Contains(b.Center + float3( b.Extents.x, b.Extents.y, b.Extents.z)); + return Contains(b.Center + float3(-b.HalfExtents.x, -b.HalfExtents.y, -b.HalfExtents.z)) + && Contains(b.Center + float3(-b.HalfExtents.x, -b.HalfExtents.y, b.HalfExtents.z)) + && Contains(b.Center + float3(-b.HalfExtents.x, b.HalfExtents.y, -b.HalfExtents.z)) + && Contains(b.Center + float3(-b.HalfExtents.x, b.HalfExtents.y, b.HalfExtents.z)) + && Contains(b.Center + float3( b.HalfExtents.x, -b.HalfExtents.y, -b.HalfExtents.z)) + && Contains(b.Center + float3( b.HalfExtents.x, -b.HalfExtents.y, b.HalfExtents.z)) + && Contains(b.Center + float3( b.HalfExtents.x, b.HalfExtents.y, -b.HalfExtents.z)) + && Contains(b.Center + float3( b.HalfExtents.x, b.HalfExtents.y, b.HalfExtents.z)); } static float3 RotateExtents(float3 extents, float3 m0, float3 m1, float3 m2) @@ -59,14 +59,14 @@ static float3 RotateExtents(float3 extents, float3 m0, float3 m1, float3 m2) public static AABB Transform(float4x4 transform, AABB localBounds) { AABB transformed; - transformed.Extents = RotateExtents(localBounds.Extents, transform.c0.xyz, transform.c1.xyz, transform.c2.xyz); + transformed.HalfExtents = RotateExtents(localBounds.HalfExtents, transform.c0.xyz, transform.c1.xyz, transform.c2.xyz); transformed.Center = math.transform(transform, localBounds.Center); return transformed; } public float DistanceSq(float3 point) { - return lengthsq(max(abs(point - Center), Extents) - Extents); + return lengthsq(max(abs(point - Center), HalfExtents) - HalfExtents); } } } diff --git a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs index c252b538..165d5ab7 100644 --- a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs +++ b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs @@ -5,11 +5,11 @@ namespace Unity.Mathematics.Geometry { /// - /// Axis aligned bounding box (AABB) stored in min/max form. + /// Axis aligned bounding box (AABB) stored in min and max form. /// /// /// Axis aligned bounding boxes (AABB) are boxes where each side is parallel with one of the Cartesian coordinate axes - /// X, Y, and Z. AABBs are useful for approximating the region an object (or collection of objects) occupy and quickly + /// X, Y, and Z. AABBs are useful for approximating the region an object (or collection of objects) occupies and quickly /// testing whether or not that object (or collection of objects) is relevant. Because they are axis aligned, they /// are very cheap to construct and perform overlap tests with them. /// @@ -43,6 +43,7 @@ internal struct MinMaxAABB : IEquatable /// /// Minimum point inside AABB. /// Maximum point inside AABB. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public MinMaxAABB(float3 min, float3 max) { Min = min; @@ -200,14 +201,13 @@ public void Encapsulate(float3 point) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator MinMaxAABB(AABB aabb) { - return new MinMaxAABB {Min = aabb.Center - aabb.Extents, Max = aabb.Center + aabb.Extents}; + return new MinMaxAABB {Min = aabb.Center - aabb.HalfExtents, Max = aabb.Center + aabb.HalfExtents}; } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator AABB(MinMaxAABB aabb) { - // AABB Extents are actually half extents. The full extents in AABB is called Size. - return new AABB { Center = aabb.Center, Extents = aabb.HalfExtents }; + return new AABB { Center = aabb.Center, HalfExtents = aabb.HalfExtents }; } [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -235,7 +235,7 @@ internal static partial class Math /// AABB to be transformed. /// Transformed AABB. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static MinMaxAABB Transform(RigidTransform transform, MinMaxAABB aabb) + public static MinMaxAABB Transform(in RigidTransform transform, in MinMaxAABB aabb) { float3 halfExtentsInA = aabb.HalfExtents; @@ -262,7 +262,7 @@ public static MinMaxAABB Transform(RigidTransform transform, MinMaxAABB aabb) /// AABB to be transformed. /// Transformed AABB. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static MinMaxAABB Transform(float4x4 transform, MinMaxAABB aabb) + public static MinMaxAABB Transform(in float4x4 transform, in MinMaxAABB aabb) { var transformed = Transform(new float3x3(transform), aabb); transformed.Min += transform.c3.xyz; @@ -280,7 +280,7 @@ public static MinMaxAABB Transform(float4x4 transform, MinMaxAABB aabb) /// AABB to be transformed. /// Transformed AABB. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static MinMaxAABB Transform(float3x3 transform, MinMaxAABB aabb) + public static MinMaxAABB Transform(in float3x3 transform, in MinMaxAABB aabb) { // From Christer Ericson's Real-Time Collision Detection on page 86 and 87. // We want the transformed minimum and maximums of the AABB. Multiplying a 3x3 matrix on the left of a From 9a087809f775d3baa84cee0bb32ed7343e2b5311 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Thu, 23 Apr 2020 13:05:25 -0700 Subject: [PATCH 296/437] Back out using in parameters. --- src/Unity.Mathematics/Geometry/MinMaxAABB.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs index 165d5ab7..2e3efa44 100644 --- a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs +++ b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs @@ -235,7 +235,7 @@ internal static partial class Math /// AABB to be transformed. /// Transformed AABB. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static MinMaxAABB Transform(in RigidTransform transform, in MinMaxAABB aabb) + public static MinMaxAABB Transform(RigidTransform transform, MinMaxAABB aabb) { float3 halfExtentsInA = aabb.HalfExtents; @@ -262,7 +262,7 @@ public static MinMaxAABB Transform(in RigidTransform transform, in MinMaxAABB aa /// AABB to be transformed. /// Transformed AABB. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static MinMaxAABB Transform(in float4x4 transform, in MinMaxAABB aabb) + public static MinMaxAABB Transform(float4x4 transform, MinMaxAABB aabb) { var transformed = Transform(new float3x3(transform), aabb); transformed.Min += transform.c3.xyz; @@ -280,7 +280,7 @@ public static MinMaxAABB Transform(in float4x4 transform, in MinMaxAABB aabb) /// AABB to be transformed. /// Transformed AABB. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static MinMaxAABB Transform(in float3x3 transform, in MinMaxAABB aabb) + public static MinMaxAABB Transform(float3x3 transform, MinMaxAABB aabb) { // From Christer Ericson's Real-Time Collision Detection on page 86 and 87. // We want the transformed minimum and maximums of the AABB. Multiplying a 3x3 matrix on the left of a From 5fd4c47a006d54c18bbb693ad0c498ab8575141f Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Tue, 28 Apr 2020 09:22:39 -0700 Subject: [PATCH 297/437] Change npm registry to internal one to fix CI. --- .yamato/upm-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index dfccf488..58bed2d5 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -53,7 +53,7 @@ validate_package_minimal: type: Unity::VM flavor: b1.large commands: - - npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - DISPLAY=:0.0 upm-ci package pack --package-path src/ - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.1 artifacts: @@ -77,7 +77,7 @@ validate_package_{{platform.name}}_{{editor.version}}: type: {{platform.type}} flavor: {{platform.flavor}} commands: - - {{platform.npm_cmd}} install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g + - {{platform.npm_cmd}} install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - {{platform.upm_cmd}} package pack --package-path src/ - {{platform.upm_cmd}} package test --package-path src/ --unity-version {{ editor.version }} artifacts: @@ -104,7 +104,7 @@ publish: image: package-ci/win10:stable flavor: m1.large commands: - - npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - upm-ci package publish --package-path src/ artifacts: packages: @@ -123,7 +123,7 @@ promote: variables: UPMCI_PROMOTION: 1 commands: - - npm install upm-ci-utils@stable --registry https://api.bintray.com/npm/unity/unity-npm -g + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - upm-ci package promote --package-path src/ artifacts: packages: From 5437c62891dfaa0f1732bdd27b3e3d756383777f Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Tue, 28 Apr 2020 13:56:25 -0700 Subject: [PATCH 298/437] Updating changelog to include all things done since 1.1.0. (#144) DOTS-1513 --- src/CHANGELOG.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 56dd9fd3..9ad23c36 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,10 +1,24 @@ # Changelog ## [Unreleased] -- Added Unity.Mathematics.Geometry.Plane to represent planes in 3D space. -- Adding Random.CreateFromIndex() to assist in creating Random instances from loop indices. -- Added more MinMaxAABB functionality from Unity.Physics.Aabb. -- Added Unity.Mathematics.Geometry.Math to hold static functions like AABB transformations. +- Added math.EPSILON, math.INFINITY, math.NAN and their double counterparts. +- Added [Serializable] to RigidTransform. +- Added math.ceillog2(). +- Added math.floorlog2(). +- Added math.down(), math.forward(), etc for Cartesian coordinate axes that match UnityEngine Vector3 equivalents. +- Added math.ispow2(). +- Added half.MinValueAsHalf and half.MaxValueAsHalf to avoid having to explicitly convert from float. +- Added a float3x3 constructor which takes a float4x4 as input. +- Added [Serializable] to half types. +- Added some performance tests which can be run from the Unity test project. +- Added Random.CreateFromIndex() to assist in creating Random instances from loop indices. +- Fixed documentation bug where quaternion.RotateX/Y/Z referred to a float4x4 instead of quaternion. +- Fixed code generation bugs which could cause Windows and Mac to generate different test code. +- Updated documentation for math.countbits() to include equivalent names on Intel and ARM architectures to aid in discoverability. +- Internal: Added Unity.Mathematics.Geometry.Plane to represent planes in 3D space. +- Internal: Added more MinMaxAABB functionality from Unity.Physics.Aabb. +- Internal: Added Unity.Mathematics.Geometry.Math to hold static functions like AABB transformations. +- Internal: Added AABB and MinMaxAABB. ## [1.1.0] - 2019-07-08 From 3390665c2f0c3c622e1aeeb582dddca6e45a5565 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Tue, 5 May 2020 08:12:50 -0700 Subject: [PATCH 299/437] Removing AABB. https://unity3d.atlassian.net/browse/DOTS-1697 (#147) --- src/CHANGELOG.md | 2 +- src/Tests/Tests/Shared/TestAABB.cs | 222 ------------------ src/Tests/Tests/Shared/TestAABB.cs.meta | 11 - src/Tests/Tests/Shared/TestMinMaxAABB.cs | 18 -- src/Tests/Unity.Mathematics.Tests.csproj | 1 - src/Unity.Mathematics/Geometry/AABB.cs | 72 ------ src/Unity.Mathematics/Geometry/AABB.cs.meta | 11 - src/Unity.Mathematics/Geometry/MinMaxAABB.cs | 12 - .../Unity.Mathematics.csproj | 1 - 9 files changed, 1 insertion(+), 349 deletions(-) delete mode 100644 src/Tests/Tests/Shared/TestAABB.cs delete mode 100644 src/Tests/Tests/Shared/TestAABB.cs.meta delete mode 100644 src/Unity.Mathematics/Geometry/AABB.cs delete mode 100644 src/Unity.Mathematics/Geometry/AABB.cs.meta diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 9ad23c36..b52797a1 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -18,7 +18,7 @@ - Internal: Added Unity.Mathematics.Geometry.Plane to represent planes in 3D space. - Internal: Added more MinMaxAABB functionality from Unity.Physics.Aabb. - Internal: Added Unity.Mathematics.Geometry.Math to hold static functions like AABB transformations. -- Internal: Added AABB and MinMaxAABB. +- Internal: Added MinMaxAABB. ## [1.1.0] - 2019-07-08 diff --git a/src/Tests/Tests/Shared/TestAABB.cs b/src/Tests/Tests/Shared/TestAABB.cs deleted file mode 100644 index 4ec5d15c..00000000 --- a/src/Tests/Tests/Shared/TestAABB.cs +++ /dev/null @@ -1,222 +0,0 @@ -using NUnit.Framework; -using static Unity.Mathematics.math; -using Unity.Mathematics.Geometry; -using Burst.Compiler.IL.Tests; - -namespace Unity.Mathematics.Tests -{ - [TestFixture] - public class TestAABB - { - [TestCompiler] - public static void Min_trivial() - { - var aabb = new AABB(); - - TestUtils.AreEqual(float3.zero, aabb.Min); - } - - [TestCompiler] - public static void Min() - { - var aabb = new AABB { Center = new float3(1.0f, -1.0f, 1.0f), HalfExtents = new float3(0.5f) }; - - TestUtils.AreEqual(new float3(0.5f, -1.5f, 0.5f), aabb.Min); - } - - [TestCompiler] - public static void Max_trivial() - { - var aabb = new AABB(); - - TestUtils.AreEqual(float3.zero, aabb.Max); - } - - [TestCompiler] - public static void Max() - { - var aabb = new AABB { Center = new float3(1.0f, -1.0f, 1.0f), HalfExtents = new float3(0.5f) }; - - TestUtils.AreEqual(new float3(1.5f, -0.5f, 1.5f), aabb.Max); - } - - [TestCompiler] - public static void Size_trivial() - { - var aabb = new AABB(); - - TestUtils.AreEqual(float3.zero, aabb.Extents); - } - - [TestCompiler] - public static void Size() - { - var aabb = new AABB { Center = new float3(1.0f, -1.0f, 1.0f), HalfExtents = new float3(0.5f) }; - - TestUtils.AreEqual(new float3(1.0f), aabb.Extents); - } - - [TestCompiler] - public static void Contains_float3() - { - AABB aabb = new AABB(); - - TestUtils.IsTrue(aabb.Contains(float3.zero)); - TestUtils.IsFalse(aabb.Contains(new float3(FLT_MIN_NORMAL, 0.0f, 0.0f))); - TestUtils.IsFalse(aabb.Contains(new float3(-FLT_MIN_NORMAL, 0.0f, 0.0f))); - TestUtils.IsFalse(aabb.Contains(new float3(0.0f, FLT_MIN_NORMAL, 0.0f))); - TestUtils.IsFalse(aabb.Contains(new float3(0.0f, -FLT_MIN_NORMAL, 0.0f))); - TestUtils.IsFalse(aabb.Contains(new float3(0.0f, 0.0f, FLT_MIN_NORMAL))); - TestUtils.IsFalse(aabb.Contains(new float3(0.0f, 0.0f, -FLT_MIN_NORMAL))); - } - - [TestCompiler] - public static void Contains_float3_nonzero_center() - { - var center = new float3(1.0f, -1.0f, 1.0f); - AABB aabb = new AABB { Center = center }; - - TestUtils.IsFalse(aabb.Contains(float3.zero)); - TestUtils.IsFalse(aabb.Contains(-center)); - TestUtils.IsTrue(aabb.Contains(center)); - } - - [TestCompiler] - public static void Contains_float3_nonzero_extents() - { - var extents = new float3(0.5f, 0.5f, 0.5f); - AABB aabb = new AABB { HalfExtents = extents }; - - TestUtils.IsTrue(aabb.Contains(float3.zero)); - TestUtils.IsTrue(aabb.Contains(new float3(0.5f, 0.0f, 0.0f))); - TestUtils.IsTrue(aabb.Contains(new float3(-0.5f, 0.0f, 0.0f))); - TestUtils.IsTrue(aabb.Contains(new float3(0.0f, 0.5f, 0.0f))); - TestUtils.IsTrue(aabb.Contains(new float3(0.0f, -0.5f, 0.0f))); - TestUtils.IsTrue(aabb.Contains(new float3(0.0f, 0.0f, 0.5f))); - TestUtils.IsTrue(aabb.Contains(new float3(0.0f, 0.0f, -0.5f))); - - TestUtils.IsFalse(aabb.Contains(new float3(0.6f, 0.0f, 0.0f))); - TestUtils.IsFalse(aabb.Contains(new float3(-0.6f, 0.0f, 0.0f))); - TestUtils.IsFalse(aabb.Contains(new float3(0.0f, 0.6f, 0.0f))); - TestUtils.IsFalse(aabb.Contains(new float3(0.0f, -0.6f, 0.0f))); - TestUtils.IsFalse(aabb.Contains(new float3(0.0f, 0.0f, 0.6f))); - TestUtils.IsFalse(aabb.Contains(new float3(0.0f, 0.0f, -0.6f))); - } - - [TestCompiler] - public static void Contains_AABB_trivial() - { - var aabb1 = new AABB(); - var aabb2 = new AABB(); - - TestUtils.IsTrue(aabb1.Contains(aabb2)); - TestUtils.IsTrue(aabb2.Contains(aabb1)); - } - - [TestCompiler] - public static void Contains_AABB() - { - var aabb_outer = new AABB { HalfExtents = new float3(0.5f, 0.5f, 0.5f) }; - var aabb_inner = new AABB(); - - TestUtils.IsTrue(aabb_outer.Contains(aabb_inner)); - TestUtils.IsFalse(aabb_inner.Contains(aabb_outer)); - } - - [TestCompiler] - public static void Contains_AABB_partial_overlap() - { - var aabb1 = new AABB { HalfExtents = new float3(0.5f, 0.5f, 0.5f) }; - var aabb2 = new AABB { Center = new float3(0.5f, 0.5f, 0.5f), HalfExtents = new float3(0.5f)}; - - TestUtils.IsFalse(aabb1.Contains(aabb2)); - TestUtils.IsFalse(aabb2.Contains(aabb1)); - } - - [TestCompiler] - public static void DistanceSq_trivial() - { - var aabb = new AABB(); - - TestUtils.AreEqual(0.0f, aabb.DistanceSq(float3.zero)); - } - - [TestCompiler] - public static void DistanceSq_point_inside() - { - var center = new float3(1.0f); - var aabb = new AABB { Center = center, HalfExtents = new float3(0.5f) }; - - TestUtils.AreEqual(0.0f, aabb.DistanceSq(center), 0.0f); - TestUtils.AreEqual(0.0f, aabb.DistanceSq(center + new float3(0.5f))); - TestUtils.AreEqual(0.0f, aabb.DistanceSq(center + new float3(-0.5f))); - } - - [TestCompiler] - public static void DistanceSq_point_outside() - { - var center = new float3(1.0f); - var aabb = new AABB { Center = center, HalfExtents = new float3(0.5f) }; - - TestUtils.AreEqual(0.25f, aabb.DistanceSq(center + new float3(1.0f, 0.0f, 0.0f))); - TestUtils.AreEqual(0.25f, aabb.DistanceSq(center + new float3(-1.0f, 0.0f, 0.0f))); - TestUtils.AreEqual(0.25f, aabb.DistanceSq(center + new float3(0.0f, 1.0f, 0.0f))); - TestUtils.AreEqual(0.25f, aabb.DistanceSq(center + new float3(0.0f, -1.0f, 0.0f))); - TestUtils.AreEqual(0.25f, aabb.DistanceSq(center + new float3(0.0f, 0.0f, 1.0f))); - TestUtils.AreEqual(0.25f, aabb.DistanceSq(center + new float3(0.0f, 0.0f, -1.0f))); - } - - [TestCompiler] - public static void DistanceSq_point_outside_corner() - { - var center = new float3(1.0f); - var aabb = new AABB { Center = center, HalfExtents = new float3(0.5f) }; - - TestUtils.AreEqual(0.75f, aabb.DistanceSq(center + new float3(1.0f))); - } - - [TestCompiler] - public static void Transform_trivial() - { - var localAabb = new AABB(); - var transform = float4x4.identity; - var transformedAabb = AABB.Transform(transform, localAabb); - - TestUtils.AreEqual(float3.zero, transformedAabb.Center); - TestUtils.AreEqual(float3.zero, transformedAabb.HalfExtents); - } - - [TestCompiler] - public static void Transform_translation() - { - var localAabb = new AABB { Center = float3.zero, HalfExtents = new float3(1.0f) }; - var transform = float4x4.Translate(new float3(1.0f)); - var transformedAabb = AABB.Transform(transform, localAabb); - - TestUtils.AreEqual(new float3(1.0f), transformedAabb.Center); - TestUtils.AreEqual(localAabb.HalfExtents, transformedAabb.HalfExtents); - } - - [TestCompiler] - public static void Transform_rotation() - { - var localAabb = new AABB { Center = float3.zero, HalfExtents = new float3(1.0f) }; - var transform = float4x4.EulerZXY(new float3(PI * 0.25f)); - var transformedAabb = AABB.Transform(transform, localAabb); - - TestUtils.AreEqual(float3.zero, transformedAabb.Center); - TestUtils.AreEqual(new float3( 1.5f, 1.70710678118f, 1.5f), transformedAabb.HalfExtents, 0.0001f); - } - - [TestCompiler] - public static void Transform_translation_rotation() - { - var localAabb = new AABB { Center = float3.zero, HalfExtents = new float3(1.0f) }; - var transform = float4x4.TRS(new float3(1.0f), quaternion.EulerZXY(new float3(PI * 0.25f)), new float3(1.0f)); - var transformedAabb = AABB.Transform(transform, localAabb); - - TestUtils.AreEqual(new float3(1.0f), transformedAabb.Center); - TestUtils.AreEqual(new float3( 1.5f, 1.70710678118f, 1.5f), transformedAabb.HalfExtents, 0.0001f); - } - } -} diff --git a/src/Tests/Tests/Shared/TestAABB.cs.meta b/src/Tests/Tests/Shared/TestAABB.cs.meta deleted file mode 100644 index 2a90232d..00000000 --- a/src/Tests/Tests/Shared/TestAABB.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 1c1223fe5c61b40478947ba533684984 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/src/Tests/Tests/Shared/TestMinMaxAABB.cs b/src/Tests/Tests/Shared/TestMinMaxAABB.cs index f93c23ef..7c5c5e8c 100644 --- a/src/Tests/Tests/Shared/TestMinMaxAABB.cs +++ b/src/Tests/Tests/Shared/TestMinMaxAABB.cs @@ -155,24 +155,6 @@ public static void Encapsulate_MinMaxAABB_new_miny_maxxz() TestUtils.AreEqual(new float3(1.0f, 0.0f, 1.0f), aabb.Max); } - [TestCompiler] - public static void Convert_MinMaxAABB_to_AABB() - { - var minmax = new MinMaxAABB { Min = new float3(1.0f), Max = new float3(2.0f) }; - AABB aabb = minmax; - TestUtils.AreEqual(new float3(1.5f), aabb.Center); - TestUtils.AreEqual(new float3(0.5f), aabb.HalfExtents); - } - - [TestCompiler] - public static void Convert_AABB_to_MinMaxAABB() - { - AABB aabb = new AABB { Center = new float3(1.5f), HalfExtents = new float3(0.5f) }; - MinMaxAABB minmax = aabb; - TestUtils.AreEqual(new float3(1.0f), minmax.Min); - TestUtils.AreEqual(new float3(2.0f), minmax.Max); - } - [TestCompiler] public static void Equals_trivial() { diff --git a/src/Tests/Unity.Mathematics.Tests.csproj b/src/Tests/Unity.Mathematics.Tests.csproj index 603a84f1..4ca36bde 100644 --- a/src/Tests/Unity.Mathematics.Tests.csproj +++ b/src/Tests/Unity.Mathematics.Tests.csproj @@ -49,7 +49,6 @@ - diff --git a/src/Unity.Mathematics/Geometry/AABB.cs b/src/Unity.Mathematics/Geometry/AABB.cs deleted file mode 100644 index f04712bc..00000000 --- a/src/Unity.Mathematics/Geometry/AABB.cs +++ /dev/null @@ -1,72 +0,0 @@ -using System; -using static Unity.Mathematics.math; - -namespace Unity.Mathematics.Geometry -{ - [Serializable] - internal partial struct AABB - { - public float3 Center; - public float3 HalfExtents; - - public float3 Extents { get { return HalfExtents * 2; } } - public float3 Min { get { return Center - HalfExtents; } } - public float3 Max { get { return Center + HalfExtents; } } - - /// Returns a string representation of the AABB. - public override string ToString() - { - return $"AABB(Center:{Center}, HalfExtents:{HalfExtents}"; - } - - public bool Contains(float3 point) - { - if (point[0] < Center[0] - HalfExtents[0]) - return false; - if (point[0] > Center[0] + HalfExtents[0]) - return false; - - if (point[1] < Center[1] - HalfExtents[1]) - return false; - if (point[1] > Center[1] + HalfExtents[1]) - return false; - - if (point[2] < Center[2] - HalfExtents[2]) - return false; - if (point[2] > Center[2] + HalfExtents[2]) - return false; - - return true; - } - - public bool Contains(AABB b) - { - return Contains(b.Center + float3(-b.HalfExtents.x, -b.HalfExtents.y, -b.HalfExtents.z)) - && Contains(b.Center + float3(-b.HalfExtents.x, -b.HalfExtents.y, b.HalfExtents.z)) - && Contains(b.Center + float3(-b.HalfExtents.x, b.HalfExtents.y, -b.HalfExtents.z)) - && Contains(b.Center + float3(-b.HalfExtents.x, b.HalfExtents.y, b.HalfExtents.z)) - && Contains(b.Center + float3( b.HalfExtents.x, -b.HalfExtents.y, -b.HalfExtents.z)) - && Contains(b.Center + float3( b.HalfExtents.x, -b.HalfExtents.y, b.HalfExtents.z)) - && Contains(b.Center + float3( b.HalfExtents.x, b.HalfExtents.y, -b.HalfExtents.z)) - && Contains(b.Center + float3( b.HalfExtents.x, b.HalfExtents.y, b.HalfExtents.z)); - } - - static float3 RotateExtents(float3 extents, float3 m0, float3 m1, float3 m2) - { - return math.abs(m0 * extents.x) + math.abs(m1 * extents.y) + math.abs(m2 * extents.z); - } - - public static AABB Transform(float4x4 transform, AABB localBounds) - { - AABB transformed; - transformed.HalfExtents = RotateExtents(localBounds.HalfExtents, transform.c0.xyz, transform.c1.xyz, transform.c2.xyz); - transformed.Center = math.transform(transform, localBounds.Center); - return transformed; - } - - public float DistanceSq(float3 point) - { - return lengthsq(max(abs(point - Center), HalfExtents) - HalfExtents); - } - } -} diff --git a/src/Unity.Mathematics/Geometry/AABB.cs.meta b/src/Unity.Mathematics/Geometry/AABB.cs.meta deleted file mode 100644 index 171c9355..00000000 --- a/src/Unity.Mathematics/Geometry/AABB.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 96f2ab6de5db04aaca1f9bc73ae69367 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs index 2e3efa44..4d996e42 100644 --- a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs +++ b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs @@ -198,18 +198,6 @@ public void Encapsulate(float3 point) Max = math.max(Max, point); } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator MinMaxAABB(AABB aabb) - { - return new MinMaxAABB {Min = aabb.Center - aabb.HalfExtents, Max = aabb.Center + aabb.HalfExtents}; - } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator AABB(MinMaxAABB aabb) - { - return new AABB { Center = aabb.Center, HalfExtents = aabb.HalfExtents }; - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(MinMaxAABB other) { diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 3233614b..29fb827f 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -120,7 +120,6 @@ - From e1340b2b26ed1d78f9a2f59da63c230c2462170d Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Tue, 5 May 2020 22:51:50 -0700 Subject: [PATCH 300/437] Move axes from math to float3 (#146) DOTS-1356 --- src/CHANGELOG.md | 2 +- src/Tests/Tests/Shared/TestMath.cs | 12 ++--- src/Tests/Tests/Shared/TestPlane.cs | 46 ++++++++--------- .../Unity.Mathematics.csproj | 1 + src/Unity.Mathematics/float3.cs | 49 +++++++++++++++++++ src/Unity.Mathematics/float3.cs.meta | 11 +++++ src/Unity.Mathematics/math.cs | 41 ---------------- 7 files changed, 91 insertions(+), 71 deletions(-) create mode 100644 src/Unity.Mathematics/float3.cs create mode 100644 src/Unity.Mathematics/float3.cs.meta diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index b52797a1..bc87a5ab 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -5,7 +5,7 @@ - Added [Serializable] to RigidTransform. - Added math.ceillog2(). - Added math.floorlog2(). -- Added math.down(), math.forward(), etc for Cartesian coordinate axes that match UnityEngine Vector3 equivalents. +- Added float3.down, float3.forward, etc for Cartesian coordinate axes that match UnityEngine Vector3 equivalents. - Added math.ispow2(). - Added half.MinValueAsHalf and half.MaxValueAsHalf to avoid having to explicitly convert from float. - Added a float3x3 constructor which takes a float4x4 as input. diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index a6ad177c..1aac624f 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -2992,12 +2992,12 @@ public static void infinity_double() [TestCompiler] public static void helper_axes() { - TestUtils.AreEqual(float3(1.0f, 0.0f, 0.0f), right()); - TestUtils.AreEqual(float3(-1.0f, 0.0f, 0.0f), left()); - TestUtils.AreEqual(float3(0.0f, 1.0f, 0.0f), up()); - TestUtils.AreEqual(float3(0.0f, -1.0f, 0.0f), down()); - TestUtils.AreEqual(float3(0.0f, 0.0f, 1.0f), forward()); - TestUtils.AreEqual(float3(0.0f, 0.0f, -1.0f), back()); + TestUtils.AreEqual(float3(1.0f, 0.0f, 0.0f), float3.right); + TestUtils.AreEqual(float3(-1.0f, 0.0f, 0.0f), float3.left); + TestUtils.AreEqual(float3(0.0f, 1.0f, 0.0f), float3.up); + TestUtils.AreEqual(float3(0.0f, -1.0f, 0.0f), float3.down); + TestUtils.AreEqual(float3(0.0f, 0.0f, 1.0f), float3.forward); + TestUtils.AreEqual(float3(0.0f, 0.0f, -1.0f), float3.back); } [TestCompiler] diff --git a/src/Tests/Tests/Shared/TestPlane.cs b/src/Tests/Tests/Shared/TestPlane.cs index 91e60044..9bfbfd83 100644 --- a/src/Tests/Tests/Shared/TestPlane.cs +++ b/src/Tests/Tests/Shared/TestPlane.cs @@ -81,11 +81,11 @@ public static void ConstructWithCoefficients_NonUnitLengthNormal() [TestCompiler] public static void ConstructWithNormalAndPointInPlane_NegativeDistance() { - var n = math.up(); - var pointInPlane = math.up(); + var n = float3.up; + var pointInPlane = float3.up; var p = new Plane(n, pointInPlane); - TestUtils.AreEqual(new float4(math.up(), -1.0f), p.NormalAndDistance); + TestUtils.AreEqual(new float4(float3.up, -1.0f), p.NormalAndDistance); TestUtils.AreEqual(n, p.Normal); TestUtils.AreEqual(-1.0f, p.Distance); } @@ -93,11 +93,11 @@ public static void ConstructWithNormalAndPointInPlane_NegativeDistance() [TestCompiler] public static void ConstructWithNormalAndPointInPlane_PositiveDistance() { - var n = math.down(); - var pointInPlane = math.up(); + var n = float3.down; + var pointInPlane = float3.up; var p = new Plane(n, pointInPlane); - TestUtils.AreEqual(new float4(math.down(), 1.0f), p.NormalAndDistance); + TestUtils.AreEqual(new float4(float3.down, 1.0f), p.NormalAndDistance); TestUtils.AreEqual(n, p.Normal); TestUtils.AreEqual(1.0f, p.Distance); } @@ -158,29 +158,29 @@ public static void SignedDistanceToPointTrivial() var p = new Plane(math.up(), 0.0f); TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(float3.zero)); - TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(math.left())); - TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(math.right())); - TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(math.forward())); - TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(math.back())); - TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up())); - TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up() + math.left())); - TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up() + math.right())); - TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up() + math.back())); - TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up() + math.forward())); - TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down())); - TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down() + math.left())); - TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down() + math.right())); - TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down() + math.back())); - TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down() + math.forward())); + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(float3.left)); + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(float3.right)); + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(float3.forward)); + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(float3.back)); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(float3.up)); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(float3.up + float3.left)); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(float3.up + float3.right)); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(float3.up + float3.back)); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(float3.up + float3.forward)); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(float3.down)); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(float3.down + float3.left)); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(float3.down + float3.right)); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(float3.down + float3.back)); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(float3.down + float3.forward)); } [TestCompiler] public static void ProjectionTrivial() { - var p = new Plane(math.up(), 0.0f); - var expected = math.left() + math.forward(); + var p = new Plane(float3.up, 0.0f); + var expected = float3.left + float3.forward; - TestUtils.AreEqual(expected, p.Projection(math.up() + expected)); + TestUtils.AreEqual(expected, p.Projection(float3.up + expected)); } [TestCompiler] diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 29fb827f..76e633ca 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -87,6 +87,7 @@ + diff --git a/src/Unity.Mathematics/float3.cs b/src/Unity.Mathematics/float3.cs new file mode 100644 index 00000000..ff49a4a2 --- /dev/null +++ b/src/Unity.Mathematics/float3.cs @@ -0,0 +1,49 @@ +using System.Runtime.CompilerServices; + +namespace Unity.Mathematics +{ + public partial struct float3 + { + /// + /// Unity's up axis (0, 1, 0). + /// + /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-up.html](https://docs.unity3d.com/ScriptReference/Vector3-up.html) + /// The up axis. + public static float3 up => math.up(); + + /// + /// Unity's down axis (0, -1, 0). + /// + /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-down.html](https://docs.unity3d.com/ScriptReference/Vector3-down.html) + /// The down axis. + public static float3 down => new float3(0.0f, -1.0f, 0.0f); + + /// + /// Unity's forward axis (0, 0, 1). + /// + /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-forward.html](https://docs.unity3d.com/ScriptReference/Vector3-forward.html) + /// The forward axis. + public static float3 forward => new float3(0.0f, 0.0f, 1.0f); + + /// + /// Unity's back axis (0, 0, -1). + /// + /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-back.html](https://docs.unity3d.com/ScriptReference/Vector3-back.html) + /// The back axis. + public static float3 back => new float3(0.0f, 0.0f, -1.0f); + + /// + /// Unity's left axis (-1, 0, 0). + /// + /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-left.html](https://docs.unity3d.com/ScriptReference/Vector3-left.html) + /// The left axis. + public static float3 left => new float3(-1.0f, 0.0f, 0.0f); + + /// + /// Unity's right axis (1, 0, 0). + /// + /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-right.html](https://docs.unity3d.com/ScriptReference/Vector3-right.html) + /// The right axis. + public static float3 right => new float3(1.0f, 0.0f, 0.0f); + } +} \ No newline at end of file diff --git a/src/Unity.Mathematics/float3.cs.meta b/src/Unity.Mathematics/float3.cs.meta new file mode 100644 index 00000000..a920dff7 --- /dev/null +++ b/src/Unity.Mathematics/float3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f7a3a0142502d4d2e9ceeb72c710dcba +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index eae6afb2..ac083687 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -3754,47 +3754,6 @@ public static unsafe uint hash(void* pBuffer, int numBytes, uint seed = 0) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 up() { return new float3(0.0f, 1.0f, 0.0f); } // for compatibility - /// - /// Unity's down axis (0, -1, 0). - /// - /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-down.html](https://docs.unity3d.com/ScriptReference/Vector3-down.html) - /// The down axis. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 down() { return new float3(0.0f, -1.0f, 0.0f); } - - /// - /// Unity's forward axis (0, 0, 1). - /// - /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-forward.html](https://docs.unity3d.com/ScriptReference/Vector3-forward.html) - /// The forward axis. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 forward() { return new float3(0.0f, 0.0f, 1.0f); } - - /// - /// Unity's back axis (0, 0, -1). - /// - /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-back.html](https://docs.unity3d.com/ScriptReference/Vector3-back.html) - /// The back axis. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 back() { return new float3(0.0f, 0.0f, -1.0f); } - - /// - /// Unity's left axis (-1, 0, 0). - /// - /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-left.html](https://docs.unity3d.com/ScriptReference/Vector3-left.html) - /// The left axis. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 left() { return new float3(-1.0f, 0.0f, 0.0f); } - - /// - /// Unity's right axis (1, 0, 0). - /// - /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-right.html](https://docs.unity3d.com/ScriptReference/Vector3-right.html) - /// The right axis. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 right() { return new float3(1.0f, 0.0f, 0.0f); } - - // Internal // SSE shuffles From 3c8786af7e66a22831eb9b55f81614539163b6c2 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 6 May 2020 13:12:07 -0700 Subject: [PATCH 301/437] Implementing vector projection for floatN and doubleN. (#148) https://unity3d.atlassian.net/browse/DOTS-1429 --- src/CHANGELOG.md | 1 + src/Tests/Tests/Shared/TestMath.cs | 129 ++++++++++++++++ src/Unity.Mathematics/math.cs | 233 +++++++++++++++++++++++++++++ 3 files changed, 363 insertions(+) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index bc87a5ab..611be2b2 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- Added math.project() and math.projectsafe() for vector projection. - Added math.EPSILON, math.INFINITY, math.NAN and their double counterparts. - Added [Serializable] to RigidTransform. - Added math.ceillog2(). diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index 1aac624f..5aa5a322 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -902,6 +902,135 @@ public static void refract_double4() TestUtils.AreEqual(double4(0.0, 0.0, 0.0, 0.0), refract(double4(0.278154, 0.834461, -0.39582, -0.26388), double4(0.652208, -0.565247, 0.474685, -0.172613), 1.5)); } + [TestCompiler] + public static void project_float2() + { + var a = float2(-0.161021441221237182617f, 0.429202795028686523438f); + var b = float2(-0.0599312856793403625488f, -0.150524005293846130371f); + TestUtils.AreEqual(float2(0.125471457839012145996f, 0.315135329961776733398f), project(a, b), 1, true); + TestUtils.AreEqual(float2(1.0f, 0.0f), project(float2(1.0f), float2(1.0f, 0.0f))); + } + + [TestCompiler] + public static void project_float3() + { + var a = float3(0.394884318113327026367f, 0.148208647966384887695f, -0.264224529266357421875f); + var b = float3(-0.101686701178550720215f, 0.206427112221717834473f, 0.232919931411743164063f); + TestUtils.AreEqual(float3(0.0674439668655395507813f, -0.136913314461708068848f, -0.15448474884033203125f), project(a, b), 1, true); + TestUtils.AreEqual(float3(1.0f, 0.0f, 0.0f), project(float3(1.0f), float3(1.0f, 0.0f, 0.0f))); + } + + [TestCompiler] + public static void project_float4() + { + var a = float4(0.122686818242073059082f, 0.465182095766067504883f, -0.388583064079284667969f, -0.15201015770435333252f); + var b = float4(-0.309838652610778808594f, -0.456567704677581787109f, 0.36733195185661315918f, -0.222711801528930664063f); + TestUtils.AreEqual(float4(0.227654770016670227051f, 0.335464328527450561523f, -0.269898116588592529297f, 0.163638085126876831055f), project(a, b), 1, true); + TestUtils.AreEqual(float4(1.0f, 0.0f, 0.0f, 0.0f), project(float4(1.0f), float4(1.0f, 0.0f, 0.0f, 0.0f))); + } + + [TestCompiler] + public static void projectsafe_float2() + { + var a = float2(-0.161021441221237182617f, 0.429202795028686523438f); + var b = float2(-0.0599312856793403625488f, -0.150524005293846130371f); + TestUtils.AreEqual(float2(0.125471457839012145996f, 0.315135329961776733398f), projectsafe(a, b), 1, true); + TestUtils.AreEqual(float2(1.0f, 0.0f), projectsafe(float2(1.0f), float2(1.0f, 0.0f))); + TestUtils.AreEqual(float2(1.0f), projectsafe(a, float2(FLT_MIN_NORMAL), float2(1.0f))); + TestUtils.AreEqual(float2(3.0f), projectsafe(float2(Single.MaxValue), float2(1.0f), float2(3.0f))); + TestUtils.AreEqual(float2(4.0f), projectsafe(float2(NAN), float2(0.0f), float2(4.0f))); + } + + [TestCompiler] + public static void projectsafe_float3() + { + var a = float3(0.394884318113327026367f, 0.148208647966384887695f, -0.264224529266357421875f); + var b = float3(-0.101686701178550720215f, 0.206427112221717834473f, 0.232919931411743164063f); + TestUtils.AreEqual(float3(0.0674439668655395507813f, -0.136913314461708068848f, -0.15448474884033203125f), projectsafe(a, b), 1, true); + TestUtils.AreEqual(float3(1.0f, 0.0f, 0.0f), projectsafe(float3(1.0f), float3(1.0f, 0.0f, 0.0f))); + TestUtils.AreEqual(float3(1.0f), projectsafe(a, float3(FLT_MIN_NORMAL), float3(1.0f))); + TestUtils.AreEqual(float3(3.0f), projectsafe(float3(Single.MaxValue), float3(1.0f), float3(3.0f))); + TestUtils.AreEqual(float3(4.0f), projectsafe(float3(NAN), float3(0.0f), float3(4.0f))); + } + + [TestCompiler] + public static void projectsafe_float4() + { + var a = float4(0.122686818242073059082f, 0.465182095766067504883f, -0.388583064079284667969f, -0.15201015770435333252f); + var b = float4(-0.309838652610778808594f, -0.456567704677581787109f, 0.36733195185661315918f, -0.222711801528930664063f); + TestUtils.AreEqual(float4(0.227654770016670227051f, 0.335464328527450561523f, -0.269898116588592529297f, 0.163638085126876831055f), projectsafe(a, b), 1, true); + TestUtils.AreEqual(float4(1.0f, 0.0f, 0.0f, 0.0f), projectsafe(float4(1.0f), float4(1.0f, 0.0f, 0.0f, 0.0f))); + TestUtils.AreEqual(float4(1.0f), projectsafe(a, float4(FLT_MIN_NORMAL), float4(1.0f))); + TestUtils.AreEqual(float4(3.0f), projectsafe(float4(Single.MaxValue), float4(1.0f), float4(3.0f))); + TestUtils.AreEqual(float4(4.0f), projectsafe(float4(NAN), float4(0.0f), float4(4.0f))); + } + + [TestCompiler] + public static void project_double2() + { + var a = double2(-0.435219509355847911092, -0.359623376546357509387); + var b = double2(-0.332390389310175893289, 0.358699148796679301299); + TestUtils.AreEqual(double2(-0.0217742941367157077925, 0.0234977334594353125252), project(a, b), 1, true); + TestUtils.AreEqual(double2(1.0, 0.0), project(double2(1.0), double2(1.0, 0.0))); + TestUtils.AreEqual(double2.zero, projectsafe(a, double2(DBL_MIN_NORMAL))); + } + + [TestCompiler] + public static void project_double3() + { + var a = double3(-0.3102470377532390855, -0.255432695780735075086, -0.180834679740036918805); + var b = double3(-0.203341282534090506129, -0.470673723467076310367, -0.488817492459550251294); + TestUtils.AreEqual(double3(-0.110096727918742851027, -0.254840710284045091072, -0.26466443900892921981), project(a, b), 1, true); + TestUtils.AreEqual(double3(1.0, 0.0, 0.0), project(double3(1.0), double3(1.0, 0.0, 0.0))); + TestUtils.AreEqual(double3.zero, projectsafe(a, double3(DBL_MIN_NORMAL))); + } + + [TestCompiler] + public static void project_double4() + { + var a = double4(0.452051837682779789063, -0.0365627422588526429514, 0.236716008642456676725, 0.397823192622046239997); + var b = double4(0.294256018645240757792, 0.062793063668604487404, 0.0790497661060386436205, 0.396864526681538709596); + TestUtils.AreEqual(double4(0.355631654768521932031, 0.0758903802316912984294, 0.0955378899598586933672, 0.479642146293154714165), project(a, b), 1, true); + TestUtils.AreEqual(double4(1.0, 0.0, 0.0, 0.0), project(double4(1.0), double4(1.0, 0.0, 0.0, 0.0))); + TestUtils.AreEqual(double4.zero, projectsafe(a, double4(DBL_MIN_NORMAL))); + } + + [TestCompiler] + public static void projectsafe_double2() + { + var a = double2(-0.435219509355847911092, -0.359623376546357509387); + var b = double2(-0.332390389310175893289, 0.358699148796679301299); + TestUtils.AreEqual(double2(-0.0217742941367157077925, 0.0234977334594353125252), projectsafe(a, b), 1, true); + TestUtils.AreEqual(double2(1.0, 0.0), projectsafe(double2(1.0), double2(1.0, 0.0))); + TestUtils.AreEqual(double2(1.0), projectsafe(a, double2(DBL_MIN_NORMAL), double2(1.0))); + TestUtils.AreEqual(double2(3.0), projectsafe(double2(Double.MaxValue), double2(1.0), double2(3.0))); + TestUtils.AreEqual(double2(4.0), projectsafe(double2(NAN_DBL), double2(0.0), double2(4.0))); + } + + [TestCompiler] + public static void projectsafe_double3() + { + var a = double3(-0.3102470377532390855, -0.255432695780735075086, -0.180834679740036918805); + var b = double3(-0.203341282534090506129, -0.470673723467076310367, -0.488817492459550251294); + TestUtils.AreEqual(double3(-0.110096727918742851027, -0.254840710284045091072, -0.26466443900892921981), projectsafe(a, b), 1, true); + TestUtils.AreEqual(double3(1.0, 0.0, 0.0), projectsafe(double3(1.0), double3(1.0, 0.0, 0.0))); + TestUtils.AreEqual(double3(1.0), projectsafe(a, double3(DBL_MIN_NORMAL), double3(1.0))); + TestUtils.AreEqual(double3(3.0), projectsafe(double3(Double.MaxValue), double3(1.0), double3(3.0))); + TestUtils.AreEqual(double3(4.0), projectsafe(double3(NAN_DBL), double3(0.0), double3(4.0))); + } + + [TestCompiler] + public static void projectsafe_double4() + { + var a = double4(0.452051837682779789063, -0.0365627422588526429514, 0.236716008642456676725, 0.397823192622046239997); + var b = double4(0.294256018645240757792, 0.062793063668604487404, 0.0790497661060386436205, 0.396864526681538709596); + TestUtils.AreEqual(double4(0.355631654768521932031, 0.0758903802316912984294, 0.0955378899598586933672, 0.479642146293154714165), projectsafe(a, b), 1, true); + TestUtils.AreEqual(double4(1.0, 0.0, 0.0, 0.0), projectsafe(double4(1.0), double4(1.0, 0.0, 0.0, 0.0))); + TestUtils.AreEqual(double4(1.0), projectsafe(a, double4(DBL_MIN_NORMAL), double4(1.0))); + TestUtils.AreEqual(double4(3.0), projectsafe(double4(Double.MaxValue), double4(1.0), double4(3.0))); + TestUtils.AreEqual(double4(4.0), projectsafe(double4(NAN_DBL), double4(0.0), double4(4.0))); + } + [TestCompiler] public static void sincos_float() { diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index ac083687..8caf2118 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -2536,6 +2536,239 @@ public static double4 refract(double4 i, double4 n, double eta) return select(0.0f, eta * i - (eta * ni + sqrt(k)) * n, k >= 0); } + /// + /// Compute vector projection of a onto b. + /// + /// + /// Some finite vectors a and b could generate a non-finite result. This is most likely when a's components + /// are very large (close to Single.MaxValue) or when b's components are very small (close to FLT_MIN_NORMAL). + /// In these cases, you can call + /// which will use a given default value if the result is not finite. + /// + /// Vector to project. + /// Non-zero vector to project onto. + /// Vector projection of a onto b. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 project(float2 a, float2 b) + { + return (dot(a, b) / dot(b, b)) * b; + } + + /// + /// Compute vector projection of a onto b. + /// + /// + /// Some finite vectors a and b could generate a non-finite result. This is most likely when a's components + /// are very large (close to Single.MaxValue) or when b's components are very small (close to FLT_MIN_NORMAL). + /// In these cases, you can call + /// which will use a given default value if the result is not finite. + /// + /// Vector to project. + /// Non-zero vector to project onto. + /// Vector projection of a onto b. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 project(float3 a, float3 b) + { + return (dot(a, b) / dot(b, b)) * b; + } + + /// + /// Compute vector projection of a onto b. + /// + /// + /// Some finite vectors a and b could generate a non-finite result. This is most likely when a's components + /// are very large (close to Single.MaxValue) or when b's components are very small (close to FLT_MIN_NORMAL). + /// In these cases, you can call + /// which will use a given default value if the result is not finite. + /// + /// Vector to project. + /// Non-zero vector to project onto. + /// Vector projection of a onto b. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 project(float4 a, float4 b) + { + return (dot(a, b) / dot(b, b)) * b; + } + + /// + /// Compute vector projection of a onto b. If result is not finite, then return the default value instead. + /// + /// + /// This function performs extra checks to see if the result of projecting a onto b is finite. If you know that + /// your inputs will generate a finite result or you don't care if the result is finite, then you can call + /// instead which is faster than this + /// function. + /// + /// Vector to project. + /// Non-zero vector to project onto. + /// Default value to return if projection is not finite. + /// Vector projection of a onto b or the default value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 projectsafe(float2 a, float2 b, float2 defaultValue = new float2()) + { + var proj = project(a, b); + + return select(defaultValue, proj, all(isfinite(proj))); + } + + /// + /// Compute vector projection of a onto b. If result is not finite, then return the default value instead. + /// + /// + /// This function performs extra checks to see if the result of projecting a onto b is finite. If you know that + /// your inputs will generate a finite result or you don't care if the result is finite, then you can call + /// instead which is faster than this + /// function. + /// + /// Vector to project. + /// Non-zero vector to project onto. + /// Default value to return if projection is not finite. + /// Vector projection of a onto b or the default value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 projectsafe(float3 a, float3 b, float3 defaultValue = new float3()) + { + var proj = project(a, b); + + return select(defaultValue, proj, all(isfinite(proj))); + } + + /// + /// Compute vector projection of a onto b. If result is not finite, then return the default value instead. + /// + /// + /// This function performs extra checks to see if the result of projecting a onto b is finite. If you know that + /// your inputs will generate a finite result or you don't care if the result is finite, then you can call + /// instead which is faster than this + /// function. + /// + /// Vector to project. + /// Non-zero vector to project onto. + /// Default value to return if projection is not finite. + /// Vector projection of a onto b or the default value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 projectsafe(float4 a, float4 b, float4 defaultValue = new float4()) + { + var proj = project(a, b); + + return select(defaultValue, proj, all(isfinite(proj))); + } + + /// + /// Compute vector projection of a onto b. + /// + /// + /// Some finite vectors a and b could generate a non-finite result. This is most likely when a's components + /// are very large (close to Double.MaxValue) or when b's components are very small (close to DBL_MIN_NORMAL). + /// In these cases, you can call + /// which will use a given default value if the result is not finite. + /// + /// Vector to project. + /// Non-zero vector to project onto. + /// Vector projection of a onto b. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double2 project(double2 a, double2 b) + { + return (dot(a, b) / dot(b, b)) * b; + } + + /// + /// Compute vector projection of a onto b. + /// + /// + /// Some finite vectors a and b could generate a non-finite result. This is most likely when a's components + /// are very large (close to Double.MaxValue) or when b's components are very small (close to DBL_MIN_NORMAL). + /// In these cases, you can call + /// which will use a given default value if the result is not finite. + /// + /// Vector to project. + /// Non-zero vector to project onto. + /// Vector projection of a onto b. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double3 project(double3 a, double3 b) + { + return (dot(a, b) / dot(b, b)) * b; + } + + /// + /// Compute vector projection of a onto b. + /// + /// + /// Some finite vectors a and b could generate a non-finite result. This is most likely when a's components + /// are very large (close to Double.MaxValue) or when b's components are very small (close to DBL_MIN_NORMAL). + /// In these cases, you can call + /// which will use a given default value if the result is not finite. + /// + /// Vector to project. + /// Non-zero vector to project onto. + /// Vector projection of a onto b. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double4 project(double4 a, double4 b) + { + return (dot(a, b) / dot(b, b)) * b; + } + + /// + /// Compute vector projection of a onto b. If result is not finite, then return the default value instead. + /// + /// + /// This function performs extra checks to see if the result of projecting a onto b is finite. If you know that + /// your inputs will generate a finite result or you don't care if the result is finite, then you can call + /// instead which is faster than this + /// function. + /// + /// Vector to project. + /// Non-zero vector to project onto. + /// Default value to return if projection is not finite. + /// Vector projection of a onto b or the default value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double2 projectsafe(double2 a, double2 b, double2 defaultValue = new double2()) + { + var proj = project(a, b); + + return select(defaultValue, proj, all(isfinite(proj))); + } + + /// + /// Compute vector projection of a onto b. If result is not finite, then return the default value instead. + /// + /// + /// This function performs extra checks to see if the result of projecting a onto b is finite. If you know that + /// your inputs will generate a finite result or you don't care if the result is finite, then you can call + /// instead which is faster than this + /// function. + /// + /// Vector to project. + /// Non-zero vector to project onto. + /// Default value to return if projection is not finite. + /// Vector projection of a onto b or the default value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double3 projectsafe(double3 a, double3 b, double3 defaultValue = new double3()) + { + var proj = project(a, b); + + return select(defaultValue, proj, all(isfinite(proj))); + } + + /// + /// Compute vector projection of a onto b. If result is not finite, then return the default value instead. + /// + /// + /// This function performs extra checks to see if the result of projecting a onto b is finite. If you know that + /// your inputs will generate a finite result or you don't care if the result is finite, then you can call + /// instead which is faster than this + /// function. + /// + /// Vector to project. + /// Non-zero vector to project onto. + /// Default value to return if projection is not finite. + /// Vector projection of a onto b or the default value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double4 projectsafe(double4 a, double4 b, double4 defaultValue = new double4()) + { + var proj = project(a, b); + + return select(defaultValue, proj, all(isfinite(proj))); + } /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] From 076a614adfc76a35ca763fdd98a6a308269e6635 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Fri, 8 May 2020 15:21:56 -0700 Subject: [PATCH 302/437] Revert "Move axes from math to float3 (#146)" (#149) This reverts commit e1340b2b26ed1d78f9a2f59da63c230c2462170d. Reverting because this change broke burst compilation. This reopens DOTS-1356 and is now blocked. --- src/CHANGELOG.md | 2 +- src/Tests/Tests/Shared/TestMath.cs | 12 ++--- src/Tests/Tests/Shared/TestPlane.cs | 46 ++++++++--------- .../Unity.Mathematics.csproj | 1 - src/Unity.Mathematics/float3.cs | 49 ------------------- src/Unity.Mathematics/float3.cs.meta | 11 ----- src/Unity.Mathematics/math.cs | 41 ++++++++++++++++ 7 files changed, 71 insertions(+), 91 deletions(-) delete mode 100644 src/Unity.Mathematics/float3.cs delete mode 100644 src/Unity.Mathematics/float3.cs.meta diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 611be2b2..4ed53a9c 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -6,7 +6,7 @@ - Added [Serializable] to RigidTransform. - Added math.ceillog2(). - Added math.floorlog2(). -- Added float3.down, float3.forward, etc for Cartesian coordinate axes that match UnityEngine Vector3 equivalents. +- Added math.down(), math.forward(), etc for Cartesian coordinate axes that match UnityEngine Vector3 equivalents. - Added math.ispow2(). - Added half.MinValueAsHalf and half.MaxValueAsHalf to avoid having to explicitly convert from float. - Added a float3x3 constructor which takes a float4x4 as input. diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index 5aa5a322..ab43cf22 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -3121,12 +3121,12 @@ public static void infinity_double() [TestCompiler] public static void helper_axes() { - TestUtils.AreEqual(float3(1.0f, 0.0f, 0.0f), float3.right); - TestUtils.AreEqual(float3(-1.0f, 0.0f, 0.0f), float3.left); - TestUtils.AreEqual(float3(0.0f, 1.0f, 0.0f), float3.up); - TestUtils.AreEqual(float3(0.0f, -1.0f, 0.0f), float3.down); - TestUtils.AreEqual(float3(0.0f, 0.0f, 1.0f), float3.forward); - TestUtils.AreEqual(float3(0.0f, 0.0f, -1.0f), float3.back); + TestUtils.AreEqual(float3(1.0f, 0.0f, 0.0f), right()); + TestUtils.AreEqual(float3(-1.0f, 0.0f, 0.0f), left()); + TestUtils.AreEqual(float3(0.0f, 1.0f, 0.0f), up()); + TestUtils.AreEqual(float3(0.0f, -1.0f, 0.0f), down()); + TestUtils.AreEqual(float3(0.0f, 0.0f, 1.0f), forward()); + TestUtils.AreEqual(float3(0.0f, 0.0f, -1.0f), back()); } [TestCompiler] diff --git a/src/Tests/Tests/Shared/TestPlane.cs b/src/Tests/Tests/Shared/TestPlane.cs index 9bfbfd83..91e60044 100644 --- a/src/Tests/Tests/Shared/TestPlane.cs +++ b/src/Tests/Tests/Shared/TestPlane.cs @@ -81,11 +81,11 @@ public static void ConstructWithCoefficients_NonUnitLengthNormal() [TestCompiler] public static void ConstructWithNormalAndPointInPlane_NegativeDistance() { - var n = float3.up; - var pointInPlane = float3.up; + var n = math.up(); + var pointInPlane = math.up(); var p = new Plane(n, pointInPlane); - TestUtils.AreEqual(new float4(float3.up, -1.0f), p.NormalAndDistance); + TestUtils.AreEqual(new float4(math.up(), -1.0f), p.NormalAndDistance); TestUtils.AreEqual(n, p.Normal); TestUtils.AreEqual(-1.0f, p.Distance); } @@ -93,11 +93,11 @@ public static void ConstructWithNormalAndPointInPlane_NegativeDistance() [TestCompiler] public static void ConstructWithNormalAndPointInPlane_PositiveDistance() { - var n = float3.down; - var pointInPlane = float3.up; + var n = math.down(); + var pointInPlane = math.up(); var p = new Plane(n, pointInPlane); - TestUtils.AreEqual(new float4(float3.down, 1.0f), p.NormalAndDistance); + TestUtils.AreEqual(new float4(math.down(), 1.0f), p.NormalAndDistance); TestUtils.AreEqual(n, p.Normal); TestUtils.AreEqual(1.0f, p.Distance); } @@ -158,29 +158,29 @@ public static void SignedDistanceToPointTrivial() var p = new Plane(math.up(), 0.0f); TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(float3.zero)); - TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(float3.left)); - TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(float3.right)); - TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(float3.forward)); - TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(float3.back)); - TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(float3.up)); - TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(float3.up + float3.left)); - TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(float3.up + float3.right)); - TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(float3.up + float3.back)); - TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(float3.up + float3.forward)); - TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(float3.down)); - TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(float3.down + float3.left)); - TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(float3.down + float3.right)); - TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(float3.down + float3.back)); - TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(float3.down + float3.forward)); + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(math.left())); + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(math.right())); + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(math.forward())); + TestUtils.AreEqual(0.0f, p.SignedDistanceToPoint(math.back())); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up())); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up() + math.left())); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up() + math.right())); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up() + math.back())); + TestUtils.AreEqual(1.0f, p.SignedDistanceToPoint(math.up() + math.forward())); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down())); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down() + math.left())); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down() + math.right())); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down() + math.back())); + TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down() + math.forward())); } [TestCompiler] public static void ProjectionTrivial() { - var p = new Plane(float3.up, 0.0f); - var expected = float3.left + float3.forward; + var p = new Plane(math.up(), 0.0f); + var expected = math.left() + math.forward(); - TestUtils.AreEqual(expected, p.Projection(float3.up + expected)); + TestUtils.AreEqual(expected, p.Projection(math.up() + expected)); } [TestCompiler] diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 76e633ca..29fb827f 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -87,7 +87,6 @@ - diff --git a/src/Unity.Mathematics/float3.cs b/src/Unity.Mathematics/float3.cs deleted file mode 100644 index ff49a4a2..00000000 --- a/src/Unity.Mathematics/float3.cs +++ /dev/null @@ -1,49 +0,0 @@ -using System.Runtime.CompilerServices; - -namespace Unity.Mathematics -{ - public partial struct float3 - { - /// - /// Unity's up axis (0, 1, 0). - /// - /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-up.html](https://docs.unity3d.com/ScriptReference/Vector3-up.html) - /// The up axis. - public static float3 up => math.up(); - - /// - /// Unity's down axis (0, -1, 0). - /// - /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-down.html](https://docs.unity3d.com/ScriptReference/Vector3-down.html) - /// The down axis. - public static float3 down => new float3(0.0f, -1.0f, 0.0f); - - /// - /// Unity's forward axis (0, 0, 1). - /// - /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-forward.html](https://docs.unity3d.com/ScriptReference/Vector3-forward.html) - /// The forward axis. - public static float3 forward => new float3(0.0f, 0.0f, 1.0f); - - /// - /// Unity's back axis (0, 0, -1). - /// - /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-back.html](https://docs.unity3d.com/ScriptReference/Vector3-back.html) - /// The back axis. - public static float3 back => new float3(0.0f, 0.0f, -1.0f); - - /// - /// Unity's left axis (-1, 0, 0). - /// - /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-left.html](https://docs.unity3d.com/ScriptReference/Vector3-left.html) - /// The left axis. - public static float3 left => new float3(-1.0f, 0.0f, 0.0f); - - /// - /// Unity's right axis (1, 0, 0). - /// - /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-right.html](https://docs.unity3d.com/ScriptReference/Vector3-right.html) - /// The right axis. - public static float3 right => new float3(1.0f, 0.0f, 0.0f); - } -} \ No newline at end of file diff --git a/src/Unity.Mathematics/float3.cs.meta b/src/Unity.Mathematics/float3.cs.meta deleted file mode 100644 index a920dff7..00000000 --- a/src/Unity.Mathematics/float3.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f7a3a0142502d4d2e9ceeb72c710dcba -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 8caf2118..d427228c 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -3987,6 +3987,47 @@ public static unsafe uint hash(void* pBuffer, int numBytes, uint seed = 0) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 up() { return new float3(0.0f, 1.0f, 0.0f); } // for compatibility + /// + /// Unity's down axis (0, -1, 0). + /// + /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-down.html](https://docs.unity3d.com/ScriptReference/Vector3-down.html) + /// The down axis. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 down() { return new float3(0.0f, -1.0f, 0.0f); } + + /// + /// Unity's forward axis (0, 0, 1). + /// + /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-forward.html](https://docs.unity3d.com/ScriptReference/Vector3-forward.html) + /// The forward axis. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 forward() { return new float3(0.0f, 0.0f, 1.0f); } + + /// + /// Unity's back axis (0, 0, -1). + /// + /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-back.html](https://docs.unity3d.com/ScriptReference/Vector3-back.html) + /// The back axis. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 back() { return new float3(0.0f, 0.0f, -1.0f); } + + /// + /// Unity's left axis (-1, 0, 0). + /// + /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-left.html](https://docs.unity3d.com/ScriptReference/Vector3-left.html) + /// The left axis. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 left() { return new float3(-1.0f, 0.0f, 0.0f); } + + /// + /// Unity's right axis (1, 0, 0). + /// + /// Matches [https://docs.unity3d.com/ScriptReference/Vector3-right.html](https://docs.unity3d.com/ScriptReference/Vector3-right.html) + /// The right axis. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 right() { return new float3(1.0f, 0.0f, 0.0f); } + + // Internal // SSE shuffles From 46ff098aede13b079b201806121660373fabb66b Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Mon, 11 May 2020 18:54:48 -0700 Subject: [PATCH 303/437] Implement compress() for float4 and uint4. https://unity3d.atlassian.net/browse/DOTS-960 Updated documentation and also made the compress() test check the return value. --- src/CHANGELOG.md | 1 + src/Tests/Tests/Shared/TestMath.cs | 102 ++++++++++++++++++++++++++++- src/Unity.Mathematics/math.cs | 55 +++++++++++++++- 3 files changed, 154 insertions(+), 4 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 4ed53a9c..020ce489 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- Added compress() that accepts a float4 and uint4. - Added math.project() and math.projectsafe() for vector projection. - Added math.EPSILON, math.INFINITY, math.NAN and their double counterparts. - Added [Serializable] to RigidTransform. diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index ab43cf22..165e4efc 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -3205,7 +3205,14 @@ unsafe public static void compress_test() dest[i] = 0; bool4 mask = bool4((m & 1) != 0, (m & 2) != 0, (m & 4) != 0, (m & 8) != 0); - compress(ptr, offset, value, mask); + int expectedOutputIndex = offset; + + if (mask.x) ++expectedOutputIndex; + if (mask.y) ++expectedOutputIndex; + if (mask.z) ++expectedOutputIndex; + if (mask.w) ++expectedOutputIndex; + + int actualOutputIndex = compress(ptr, offset, value, mask); for(int i = 0; i < 16; i++) { @@ -3221,6 +3228,99 @@ unsafe public static void compress_test() } } TestUtils.AreEqual(v, dest[i]); + TestUtils.AreEqual(expectedOutputIndex, actualOutputIndex); + } + } + } + } + + [TestCompiler] + unsafe public static void compress_uint4_test() + { + uint4 value = uint4(0x12345678u, 0x2468ACE0u, 0x369BE147u, 0x48C059D1u); + + int ptrOffset = 4; + uint* dest = stackalloc uint[16]; + uint* ptr = dest + ptrOffset; + + for(int offset = -4; offset <= 4; offset++) + { + for (int m = 0; m < 16; m++) + { + for (int i = 0; i < 16; i++) + dest[i] = 0; + + bool4 mask = bool4((m & 1) != 0, (m & 2) != 0, (m & 4) != 0, (m & 8) != 0); + int expectedOutputIndex = offset; + + if (mask.x) ++expectedOutputIndex; + if (mask.y) ++expectedOutputIndex; + if (mask.z) ++expectedOutputIndex; + if (mask.w) ++expectedOutputIndex; + + int actualOutputIndex = compress(ptr, offset, value, mask); + + for(int i = 0; i < 16; i++) + { + int vectorIdx = i - (ptrOffset + offset); + + float v = 0; + if (vectorIdx >= 0 && vectorIdx < 4) + { + for(int k = 0; k < 4; k++) + { + if (mask[k] && vectorIdx-- == 0) + v = value[k]; + } + } + TestUtils.AreEqual(v, dest[i]); + TestUtils.AreEqual(expectedOutputIndex, actualOutputIndex); + } + } + } + } + + [TestCompiler] + unsafe public static void compress_float4_test() + { + float4 value = float4(float.PositiveInfinity, EPSILON, PI, -0.25f); + + int ptrOffset = 4; + float* dest = stackalloc float[16]; + float* ptr = dest + ptrOffset; + + for(int offset = -4; offset <= 4; offset++) + { + for (int m = 0; m < 16; m++) + { + for (int i = 0; i < 16; i++) + dest[i] = 0; + + bool4 mask = bool4((m & 1) != 0, (m & 2) != 0, (m & 4) != 0, (m & 8) != 0); + int expectedOutputIndex = offset; + + if (mask.x) ++expectedOutputIndex; + if (mask.y) ++expectedOutputIndex; + if (mask.z) ++expectedOutputIndex; + if (mask.w) ++expectedOutputIndex; + + int actualOutputIndex = compress(ptr, offset, value, mask); + + for(int i = 0; i < 16; i++) + { + int vectorIdx = i - (ptrOffset + offset); + + float v = 0; + if (vectorIdx >= 0 && vectorIdx < 4) + { + for(int k = 0; k < 4; k++) + { + if (mask[k] && vectorIdx-- == 0) + v = value[k]; + } + } + TestUtils.AreEqual(v, dest[i]); + TestUtils.AreEqual(expectedOutputIndex, actualOutputIndex); } } } diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index d427228c..2c6e7b7b 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -3790,10 +3790,19 @@ public static int4 floorlog2(uint4 x) public static double csum(double4 x) { return (x.x + x.y) + (x.z + x.w); } /// - /// Packs components with an enabled mask (LSB) to the left - /// The value of components after the last packed component are undefined. - /// Returns the number of enabled mask bits. (0 ... 4) + /// Packs components with an enabled mask to the left. /// + /// + /// This function is also known as left packing. The effect of this function is to filter out components that + /// are not enabled and leave an output buffer tightly packed with only the enabled components. A common use + /// case is if you perform intersection tests on arrays of data in structure of arrays (SoA) form and need to + /// produce an output array of the things that intersected. + /// + /// Pointer to packed output array where enabled components should be stored to. + /// Index into output array where first enabled component should be stored to. + /// The value to to compress. + /// Mask indicating which components are enabled. + /// Index to element after the last one stored. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static unsafe int compress(int* output, int index, int4 val, bool4 mask) { @@ -3809,6 +3818,46 @@ public static unsafe int compress(int* output, int index, int4 val, bool4 mask) return index; } + /// + /// Packs components with an enabled mask to the left. + /// + /// + /// This function is also known as left packing. The effect of this function is to filter out components that + /// are not enabled and leave an output buffer tightly packed with only the enabled components. A common use + /// case is if you perform intersection tests on arrays of data in structure of arrays (SoA) form and need to + /// produce an output array of the things that intersected. + /// + /// Pointer to packed output array where enabled components should be stored to. + /// Index into output array where first enabled component should be stored to. + /// The value to to compress. + /// Mask indicating which components are enabled. + /// Index to element after the last one stored. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static unsafe int compress(uint* output, int index, uint4 val, bool4 mask) + { + return compress((int*)output, index, *(int4*)&val, mask); + } + + /// + /// Packs components with an enabled mask to the left. + /// + /// + /// This function is also known as left packing. The effect of this function is to filter out components that + /// are not enabled and leave an output buffer tightly packed with only the enabled components. A common use + /// case is if you perform intersection tests on arrays of data in structure of arrays (SoA) form and need to + /// produce an output array of the things that intersected. + /// + /// Pointer to packed output array where enabled components should be stored to. + /// Index into output array where first enabled component should be stored to. + /// The value to to compress. + /// Mask indicating which components are enabled. + /// Index to element after the last one stored. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static unsafe int compress(float* output, int index, float4 val, bool4 mask) + { + return compress((int*)output, index, *(int4*)&val, mask); + } + /// Returns the floating point representation of a half-precision floating point value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float f16tof32(uint x) From 6ba848421310995f2cb3dd9aac580232577d0f40 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Mon, 11 May 2020 16:38:29 -0700 Subject: [PATCH 304/437] Fix test asserts that fail in Tiny IL2CPP builds. https://unity3d.atlassian.net/browse/DOTS-1745 NaN and signed zeros were not matching the expected bit pattern so the tests were changed to explicitly use the correct value. Additionally, the pow() function in il2cpp appears to have a bug where it handles a base of negative infinity incorrectly. The asserts corresponding to those cases were removed while a fix to il2cpp is made. This needs a follow-up: https://unity3d.atlassian.net/browse/DOTS-1833 --- src/CHANGELOG.md | 1 + src/Tests/Properties/AssemblyInfo.cs | 4 +- src/Tests/Tests/Shared/TestHalf.cs | 32 +- src/Tests/Tests/Shared/TestMath.cs | 112 +++--- src/Tests/Tests/Shared/TestMath.gen.cs | 376 +++++++++--------- src/Tests/Tests/Shared/TestUtils.cs | 10 + .../VectorGenerator.cs | 12 +- .../Properties/AssemblyInfo.cs | 10 +- 8 files changed, 290 insertions(+), 267 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 4ed53a9c..51f41b1d 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -15,6 +15,7 @@ - Added Random.CreateFromIndex() to assist in creating Random instances from loop indices. - Fixed documentation bug where quaternion.RotateX/Y/Z referred to a float4x4 instead of quaternion. - Fixed code generation bugs which could cause Windows and Mac to generate different test code. +- Fixed some test asserts which used NaNs and signed zeros which failed in IL2CPP builds. - Updated documentation for math.countbits() to include equivalent names on Intel and ARM architectures to aid in discoverability. - Internal: Added Unity.Mathematics.Geometry.Plane to represent planes in 3D space. - Internal: Added more MinMaxAABB functionality from Unity.Physics.Aabb. diff --git a/src/Tests/Properties/AssemblyInfo.cs b/src/Tests/Properties/AssemblyInfo.cs index 91dea7f7..b4fed52a 100644 --- a/src/Tests/Properties/AssemblyInfo.cs +++ b/src/Tests/Properties/AssemblyInfo.cs @@ -1,4 +1,5 @@ -using System.Reflection; +#if !UNITY_DOTSPLAYER +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -34,3 +35,4 @@ // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] +#endif \ No newline at end of file diff --git a/src/Tests/Tests/Shared/TestHalf.cs b/src/Tests/Tests/Shared/TestHalf.cs index ea790e79..a2262a8e 100644 --- a/src/Tests/Tests/Shared/TestHalf.cs +++ b/src/Tests/Tests/Shared/TestHalf.cs @@ -48,7 +48,7 @@ public static void half_from_float_construction() TestUtils.AreEqual(0x7BFF, half(65504.0f).value); TestUtils.AreEqual(0x7C00, half(65520.0f).value); TestUtils.AreEqual(0x7C00, half(float.PositiveInfinity).value); - TestUtils.AreEqual(0xFE00, half(float.NaN).value); + TestUtils.AreEqual(0xFE00, half(TestUtils.SignedFloatQNaN()).value); TestUtils.AreEqual(0x8000, half(-2.98e-08f).value); TestUtils.AreEqual(0x8001, half(-5.96046448e-08f).value); @@ -62,7 +62,7 @@ public static void half_from_float_construction() [WindowsOnly("Mono on linux ignores signed zero.")] public static void half_from_float_construction_signed_zero() { - TestUtils.AreEqual(0x8000, half(-0.0f).value); + TestUtils.AreEqual(0x8000, half(TestUtils.SignedFloatZero()).value); } [TestCompiler] @@ -71,7 +71,7 @@ public static void half2_from_float2_construction() half2 h0 = half2(float2(0.0f, 2.98e-08f)); half2 h1 = half2(float2(5.96046448e-08f, 123.4f)); half2 h2 = half2(float2(65504.0f, 65520.0f)); - half2 h3 = half2(float2(float.PositiveInfinity, float.NaN)); + half2 h3 = half2(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN())); half2 h4 = half2(float2(-2.98e-08f, -5.96046448e-08f)); half2 h5 = half2(float2(-123.4f, -65504.0f)); @@ -93,7 +93,7 @@ public static void half2_from_float2_construction() [WindowsOnly("Mono on linux ignores signed zero.")] public static void half2_from_float2_construction_signed_zero() { - half2 h0 = half2(float2(-0.0f, -0.0f)); + half2 h0 = half2(float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())); TestUtils.AreEqual(uint2(0x8000, 0x8000), uint2(h0.x.value, h0.y.value)); } @@ -102,7 +102,7 @@ public static void half3_from_float3_construction() { half3 h0 = half3(float3(0.0f, 2.98e-08f, 5.96046448e-08f)); half3 h1 = half3(float3(123.4f, 65504.0f, 65520.0f)); - half3 h2 = half3(float3(float.PositiveInfinity, float.NaN, -2.98e-08f)); + half3 h2 = half3(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), -2.98e-08f)); half3 h3 = half3(float3(-5.96046448e-08f, -123.4f, -65504.0f)); half3 h4 = half3(float3(-65520.0f, float.NegativeInfinity, 0.0f)); @@ -118,7 +118,7 @@ public static void half3_from_float3_construction() [WindowsOnly("Mono on linux ignores signed zero.")] public static void half3_from_float3_construction_signed_zero() { - half3 h0 = half3(float3(-0.0f, -0.0f, -0.0f)); + half3 h0 = half3(float3(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())); TestUtils.AreEqual(uint3(0x8000, 0x8000, 0x8000), uint3(h0.x.value, h0.y.value, h0.z.value)); } @@ -126,7 +126,7 @@ public static void half3_from_float3_construction_signed_zero() public static void half4_from_float4_construction() { half4 h0 = half4(float4(0.0f, 2.98e-08f, 5.96046448e-08f, 123.4f)); - half4 h1 = half4(float4(65504.0f, 65520.0f, float.PositiveInfinity, float.NaN)); + half4 h1 = half4(float4(65504.0f, 65520.0f, float.PositiveInfinity, TestUtils.SignedFloatQNaN())); half4 h2 = half4(float4(-2.98e-08f, -5.96046448e-08f, -123.4f, -65504.0f)); half4 h3 = half4(float4(-65520.0f, float.NegativeInfinity, float.NegativeInfinity, 0.0f)); @@ -140,7 +140,7 @@ public static void half4_from_float4_construction() [WindowsOnly("Mono on linux ignores signed zero.")] public static void half4_from_float4_construction_signed_zero() { - half4 h0 = half4(float4(-0.0f, -0.0f, -0.0f, -0.0f)); + half4 h0 = half4(float4(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())); TestUtils.AreEqual(uint4(0x8000, 0x8000, 0x8000, 0x8000), uint4(h0.x.value, h0.y.value, h0.z.value, h0.w.value)); } @@ -155,7 +155,7 @@ public static void half_from_double_construction() TestUtils.AreEqual(0x7BFF, half(65504.0).value); TestUtils.AreEqual(0x7C00, half(65520.0).value); TestUtils.AreEqual(0x7C00, half(double.PositiveInfinity).value); - TestUtils.AreEqual(0xFE00, half(double.NaN).value); + TestUtils.AreEqual(0xFE00, half(TestUtils.SignedDoubleQNaN()).value); TestUtils.AreEqual(0x8000, half(-2.98e-08).value); TestUtils.AreEqual(0x8001, half(-5.96046448e-08).value); @@ -169,7 +169,7 @@ public static void half_from_double_construction() [WindowsOnly("Mono on linux ignores signed zero.")] public static void half_from_double_construction_signed_zero() { - TestUtils.AreEqual(0x8000, half(-0.0).value); + TestUtils.AreEqual(0x8000, half(TestUtils.SignedDoubleZero()).value); } [TestCompiler] @@ -178,7 +178,7 @@ public static void half2_from_double2_construction() half2 h0 = half2(double2(0.0, 2.98e-08)); half2 h1 = half2(double2(5.96046448e-08, 123.4)); half2 h2 = half2(double2(65504.0, 65520.0)); - half2 h3 = half2(double2(double.PositiveInfinity, double.NaN)); + half2 h3 = half2(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN())); half2 h4 = half2(double2(-2.98e-08, -5.96046448e-08)); half2 h5 = half2(double2(-123.4, -65504.0)); @@ -200,7 +200,7 @@ public static void half2_from_double2_construction() [WindowsOnly("Mono on linux ignores signed zero.")] public static void half2_from_double2_construction_signed_zero() { - half2 h0 = half2(double2(-0.0, -0.0)); + half2 h0 = half2(double2(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())); TestUtils.AreEqual(uint2(0x8000, 0x8000), uint2(h0.x.value, h0.y.value)); } @@ -209,7 +209,7 @@ public static void half3_from_double3_construction() { half3 h0 = half3(double3(0.0, 2.98e-08, 5.96046448e-08)); half3 h1 = half3(double3(123.4, 65504.0, 65520.0)); - half3 h2 = half3(double3(double.PositiveInfinity, double.NaN, -2.98e-08)); + half3 h2 = half3(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), -2.98e-08)); half3 h3 = half3(double3(-5.96046448e-08, -123.4, -65504.0)); half3 h4 = half3(double3(-65520.0, double.NegativeInfinity, 0.0)); @@ -225,7 +225,7 @@ public static void half3_from_double3_construction() [WindowsOnly("Mono on linux ignores signed zero.")] public static void half3_from_double3_construction_signed_zero() { - half3 h0 = half3(double3(-0.0, -0.0, -0.0)); + half3 h0 = half3(double3(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())); TestUtils.AreEqual(uint3(0x8000, 0x8000, 0x8000), uint3(h0.x.value, h0.y.value, h0.z.value)); } @@ -233,7 +233,7 @@ public static void half3_from_double3_construction_signed_zero() public static void half4_from_double4_construction() { half4 h0 = half4(double4(0.0, 2.98e-08, 5.96046448e-08, 123.4)); - half4 h1 = half4(double4(65504.0, 65520.0, double.PositiveInfinity, double.NaN)); + half4 h1 = half4(double4(65504.0, 65520.0, double.PositiveInfinity, TestUtils.SignedDoubleQNaN())); half4 h2 = half4(double4(-2.98e-08, -5.96046448e-08, -123.4, -65504.0)); half4 h3 = half4(double4(-65520.0, double.NegativeInfinity, double.NegativeInfinity, 0.0)); @@ -247,7 +247,7 @@ public static void half4_from_double4_construction() [WindowsOnly("Mono on linux ignores signed zero.")] public static void half4_from_double4_construction_signed_zero() { - half4 h0 = half4(double4(-0.0, -0.0, -0.0, -0.0)); + half4 h0 = half4(double4(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())); TestUtils.AreEqual(uint4(0x8000, 0x8000, 0x8000, 0x8000), uint4(h0.x.value, h0.y.value, h0.z.value, h0.w.value)); } diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index ab43cf22..e3535976 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -48,7 +48,8 @@ public static void asint_float() TestUtils.AreEqual(0x3F800000, asint(1.0f)); TestUtils.AreEqual(0x449A51EC, asint(1234.56f)); TestUtils.AreEqual(0x7F800000, asint(float.PositiveInfinity)); - TestUtils.AreEqual(unchecked((int)0xFFC00000), asint(float.NaN)); + TestUtils.AreEqual(unchecked((int)0xFFC00000), asint(TestUtils.SignedFloatQNaN())); + TestUtils.AreEqual(unchecked((int)0x7FC00000), asint(TestUtils.UnsignedFloatQNaN())); TestUtils.AreEqual(unchecked((int)0xBF800000), asint(-1.0f)); TestUtils.AreEqual(unchecked((int)0xC49A51EC), asint(-1234.56f)); @@ -59,7 +60,7 @@ public static void asint_float() [WindowsOnly("Mono on linux ignores signed zero.")] public static void asint_float_signed_zero() { - TestUtils.AreEqual(unchecked((int)0x80000000), asint(-0.0f)); + TestUtils.AreEqual(unchecked((int)0x80000000), asint(TestUtils.SignedFloatZero())); } [TestCompiler] @@ -67,7 +68,8 @@ public static void asint_float2() { TestUtils.AreEqual(int2(0, 0x3F800000), asint(float2(0.0f, 1.0f))); TestUtils.AreEqual(int2(0x449A51EC, 0x7F800000), asint(float2(1234.56f, float.PositiveInfinity))); - TestUtils.AreEqual(int2(unchecked((int)0xFFC00000), unchecked((int)0xBF800000)), asint(float2(float.NaN, -1.0f))); + TestUtils.AreEqual(int2(unchecked((int)0xFFC00000), unchecked((int)0xBF800000)), asint(float2(TestUtils.SignedFloatQNaN(), -1.0f))); + TestUtils.AreEqual(int2(unchecked((int)0x7FC00000), unchecked((int)0xBF800000)), asint(float2(TestUtils.UnsignedFloatQNaN(), -1.0f))); TestUtils.AreEqual(int2(unchecked((int)0xC49A51EC), unchecked((int)0xFF800000)), asint(float2(-1234.56f, float.NegativeInfinity))); TestUtils.AreEqual(int2(0, 0), asint(float2(0.0f, 0.0f))); @@ -77,14 +79,15 @@ public static void asint_float2() [WindowsOnly("Mono on linux ignores signed zero.")] public static void asint_float2_signed_zero() { - TestUtils.AreEqual(int2(unchecked((int)0x80000000), unchecked((int)0x80000000)), asint(float2(-0.0f, -0.0f))); + TestUtils.AreEqual(int2(unchecked((int)0x80000000), unchecked((int)0x80000000)), asint(float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } [TestCompiler] public static void asint_float3() { TestUtils.AreEqual(int3(0, 0x3F800000, 0x449A51EC), asint(float3(0.0f, 1.0f, 1234.56f))); - TestUtils.AreEqual(int3(0x7F800000, unchecked((int)0xFFC00000), unchecked((int)0xBF800000)), asint(float3(float.PositiveInfinity, float.NaN, -1.0f))); + TestUtils.AreEqual(int3(0x7F800000, unchecked((int)0xFFC00000), unchecked((int)0xBF800000)), asint(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), -1.0f))); + TestUtils.AreEqual(int3(0x7F800000, unchecked((int)0x7FC00000), unchecked((int)0xBF800000)), asint(float3(float.PositiveInfinity, TestUtils.UnsignedFloatQNaN(), -1.0f))); TestUtils.AreEqual(int3(unchecked((int)0xC49A51EC), unchecked((int)0xFF800000), 0), asint(float3(-1234.56f, float.NegativeInfinity, 0.0f))); } @@ -92,21 +95,22 @@ public static void asint_float3() [WindowsOnly("Mono on linux ignores signed zero.")] public static void asint_float3_signed_zero() { - TestUtils.AreEqual(int3(unchecked((int)0x80000000), unchecked((int)0x80000000), unchecked((int)0x80000000)), asint(float3(-0.0f, -0.0f, -0.0f))); + TestUtils.AreEqual(int3(unchecked((int)0x80000000), unchecked((int)0x80000000), unchecked((int)0x80000000)), asint(float3(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } [TestCompiler] public static void asint_float4() { TestUtils.AreEqual(int4(0, 0x3F800000, 0x449A51EC, 0x7F800000), asint(float4(0.0f, 1.0f, 1234.56f, float.PositiveInfinity))); - TestUtils.AreEqual(int4(unchecked((int)0xFFC00000), unchecked((int)0xBF800000), unchecked((int)0xC49A51EC), unchecked((int)0xFF800000)), asint(float4(float.NaN, -1.0f, -1234.56f, float.NegativeInfinity))); + TestUtils.AreEqual(int4(unchecked((int)0xFFC00000), unchecked((int)0xBF800000), unchecked((int)0xC49A51EC), unchecked((int)0xFF800000)), asint(float4(TestUtils.SignedFloatQNaN(), -1.0f, -1234.56f, float.NegativeInfinity))); + TestUtils.AreEqual(int4(unchecked((int)0x7FC00000), unchecked((int)0xBF800000), unchecked((int)0xC49A51EC), unchecked((int)0xFF800000)), asint(float4(TestUtils.UnsignedFloatQNaN(), -1.0f, -1234.56f, float.NegativeInfinity))); } [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asint_float4_signed_zero() { - TestUtils.AreEqual(int4(unchecked((int)0x80000000), unchecked((int)0x80000000), unchecked((int)0x80000000), unchecked((int)0x80000000)), asint(float4(-0.0f, -0.0f, -0.0f, -0.0f))); + TestUtils.AreEqual(int4(unchecked((int)0x80000000), unchecked((int)0x80000000), unchecked((int)0x80000000), unchecked((int)0x80000000)), asint(float4(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } [TestCompiler] @@ -149,7 +153,8 @@ public static void asuint_float() TestUtils.AreEqual(0x3F800000u, asuint(1.0f)); TestUtils.AreEqual(0x449A51ECu, asuint(1234.56f)); TestUtils.AreEqual(0x7F800000u, asuint(float.PositiveInfinity)); - TestUtils.AreEqual(0xFFC00000u, asuint(float.NaN)); + TestUtils.AreEqual(0xFFC00000u, asuint(TestUtils.SignedFloatQNaN())); + TestUtils.AreEqual(0x7FC00000u, asuint(TestUtils.UnsignedFloatQNaN())); TestUtils.AreEqual(0xBF800000u, asuint(-1.0f)); TestUtils.AreEqual(0xC49A51ECu, asuint(-1234.56f)); @@ -160,7 +165,7 @@ public static void asuint_float() [WindowsOnly("Mono on linux ignores signed zero.")] public static void asuint_float_signed_zero() { - TestUtils.AreEqual(0x80000000u, asuint(-0.0f)); + TestUtils.AreEqual(0x80000000u, asuint(TestUtils.SignedFloatZero())); } [TestCompiler] @@ -168,7 +173,8 @@ public static void asuint_float2() { TestUtils.AreEqual(uint2(0u, 0x3F800000u), asuint(float2(0.0f, 1.0f))); TestUtils.AreEqual(uint2(0x449A51Ecu, 0x7F800000u), asuint(float2(1234.56f, float.PositiveInfinity))); - TestUtils.AreEqual(uint2(0xFFC00000u, 0xBF800000u), asuint(float2(float.NaN, -1.0f))); + TestUtils.AreEqual(uint2(0xFFC00000u, 0xBF800000u), asuint(float2(TestUtils.SignedFloatQNaN(), -1.0f))); + TestUtils.AreEqual(uint2(0x7FC00000u, 0xBF800000u), asuint(float2(TestUtils.UnsignedFloatQNaN(), -1.0f))); TestUtils.AreEqual(uint2(0xC49A51ECu, 0xFF800000u), asuint(float2(-1234.56f, float.NegativeInfinity))); } @@ -177,14 +183,15 @@ public static void asuint_float2() [WindowsOnly("Mono on linux ignores signed zero.")] public static void asuint_float2_signed_zero() { - TestUtils.AreEqual(uint2(0x80000000u, 0x80000000u), asuint(float2(-0.0f, -0.0f))); + TestUtils.AreEqual(uint2(0x80000000u, 0x80000000u), asuint(float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } [TestCompiler] public static void asuint_float3() { TestUtils.AreEqual(uint3(0u, 0x3F800000u, 0x449A51ECu), asuint(float3(0.0f, 1.0f, 1234.56f))); - TestUtils.AreEqual(uint3(0x7F800000u, 0xFFC00000u, 0xBF800000u), asuint(float3(float.PositiveInfinity, float.NaN, -1.0f))); + TestUtils.AreEqual(uint3(0x7F800000u, 0xFFC00000u, 0xBF800000u), asuint(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), -1.0f))); + TestUtils.AreEqual(uint3(0x7F800000u, 0x7FC00000u, 0xBF800000u), asuint(float3(float.PositiveInfinity, TestUtils.UnsignedFloatQNaN(), -1.0f))); TestUtils.AreEqual(uint3(0xC49A51ECu, 0xff800000u, 0u), asuint(float3(-1234.56f, float.NegativeInfinity, 0.0f))); } @@ -192,21 +199,22 @@ public static void asuint_float3() [WindowsOnly("Mono on linux ignores signed zero.")] public static void asuint_float3_signed_zero() { - TestUtils.AreEqual(uint3(0x80000000u, 0x80000000u, 0x80000000u), asuint(float3(-0.0f, -0.0f, -0.0f))); + TestUtils.AreEqual(uint3(0x80000000u, 0x80000000u, 0x80000000u), asuint(float3(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } [TestCompiler] public static void asuint_float4() { TestUtils.AreEqual(uint4(0u, 0x3F800000u, 0x449A51ECu, 0x7F800000u), asuint(float4(0.0f, 1.0f, 1234.56f, float.PositiveInfinity))); - TestUtils.AreEqual(uint4(0xFFC00000u, 0xBF800000u, 0xC49A51ECu, 0xFF800000u), asuint(float4(float.NaN, -1.0f, -1234.56f, float.NegativeInfinity))); + TestUtils.AreEqual(uint4(0xFFC00000u, 0xBF800000u, 0xC49A51ECu, 0xFF800000u), asuint(float4(TestUtils.SignedFloatQNaN(), -1.0f, -1234.56f, float.NegativeInfinity))); + TestUtils.AreEqual(uint4(0x7FC00000u, 0xBF800000u, 0xC49A51ECu, 0xFF800000u), asuint(float4(TestUtils.UnsignedFloatQNaN(), -1.0f, -1234.56f, float.NegativeInfinity))); } [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asuint_float4_singed_zero() { - TestUtils.AreEqual(uint4(0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u), asuint(float4(-0.0f, -0.0f, -0.0f, -0.0f))); + TestUtils.AreEqual(uint4(0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u), asuint(float4(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } [TestCompiler] @@ -227,7 +235,7 @@ public static void aslong_double() TestUtils.AreEqual(0x3FF0000000000000L, aslong(1.0)); TestUtils.AreEqual(0x40934A3D70A3D70AL, aslong(1234.56)); TestUtils.AreEqual(0x7FF0000000000000L, aslong(double.PositiveInfinity)); - TestUtils.AreEqual(unchecked((long)0xFFF8000000000000UL), aslong(double.NaN)); + TestUtils.AreEqual(unchecked((long)0xFFF8000000000000UL), aslong(TestUtils.SignedDoubleQNaN())); TestUtils.AreEqual(unchecked((long)0xBFF0000000000000UL), aslong(-1.0)); TestUtils.AreEqual(unchecked((long)0xC0934A3D70A3D70AUL), aslong(-1234.56)); @@ -238,7 +246,7 @@ public static void aslong_double() [WindowsOnly("Mono on linux ignores signed zero.")] public static void aslong_double_signed_zero() { - TestUtils.AreEqual(unchecked((long)0x8000000000000000UL), aslong(-0.0)); + TestUtils.AreEqual(unchecked((long)0x8000000000000000UL), aslong(TestUtils.SignedDoubleZero())); } [TestCompiler] @@ -259,7 +267,7 @@ public static void asulong_double() TestUtils.AreEqual(0x3FF0000000000000UL, asulong(1.0)); TestUtils.AreEqual(0x40934A3D70A3D70AUL, asulong(1234.56)); TestUtils.AreEqual(0x7FF0000000000000UL, asulong(double.PositiveInfinity)); - TestUtils.AreEqual(0xFFF8000000000000UL, asulong(double.NaN)); + TestUtils.AreEqual(0xFFF8000000000000UL, asulong(TestUtils.SignedDoubleQNaN())); TestUtils.AreEqual(0xBFF0000000000000UL, asulong(-1.0)); TestUtils.AreEqual(0xC0934A3D70A3D70AUL, asulong(-1234.56)); @@ -270,7 +278,7 @@ public static void asulong_double() [WindowsOnly("Mono on linux ignores signed zero.")] public static void asulong_double_signed_zero() { - TestUtils.AreEqual(0x8000000000000000UL, asulong(-0.0)); + TestUtils.AreEqual(0x8000000000000000UL, asulong(TestUtils.SignedDoubleZero())); } [TestCompiler] @@ -285,7 +293,8 @@ public static void asfloat_int() TestUtils.AreEqual(-1234.56f, asfloat(unchecked((int)0xC49A51EC))); TestUtils.AreEqual(float.NegativeInfinity, asfloat(unchecked((int)0xFF800000))); - TestUtils.AreEqual(asuint(float.NaN), asuint(asfloat(unchecked((int)0xFFC00000)))); + TestUtils.AreEqual(asuint(TestUtils.SignedFloatQNaN()), asuint(asfloat(unchecked((int)0xFFC00000)))); + TestUtils.AreEqual(asuint(TestUtils.UnsignedFloatQNaN()), asuint(asfloat(unchecked((int)0x7FC00000)))); } [TestCompiler] @@ -296,7 +305,8 @@ public static void asfloat_int2() TestUtils.AreEqual(float2(-0.0f, -1.0f), asfloat(int2(unchecked((int)0x80000000), unchecked((int)0xBF800000)))); TestUtils.AreEqual(float2(-1234.56f, float.NegativeInfinity), asfloat(int2(unchecked((int)0xC49A51EC), unchecked((int)0xFF800000)))); - TestUtils.AreEqual(asuint(float2(float.NaN, float.NaN)), asuint(asfloat(int2(unchecked((int)0xFFC00000), unchecked((int)0xFFC00000))))); + TestUtils.AreEqual(asuint(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), asuint(asfloat(int2(unchecked((int)0xFFC00000), unchecked((int)0xFFC00000))))); + TestUtils.AreEqual(asuint(float2(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(int2(unchecked((int)0x7FC00000), unchecked((int)0x7FC00000))))); } [TestCompiler] @@ -306,7 +316,8 @@ public static void asfloat_int3() TestUtils.AreEqual(float3(float.PositiveInfinity, -0.0f, -1.0f), asfloat(int3(0x7F800000, unchecked((int)0x80000000), unchecked((int)0xBF800000)))); TestUtils.AreEqual(float3(-1234.56f, float.NegativeInfinity, 0.0f), asfloat(int3(unchecked((int)0xC49A51EC), unchecked((int)0xFF800000), 0))); - TestUtils.AreEqual(asuint(float3(float.NaN, float.NaN, float.NaN)), asuint(asfloat(int3(unchecked((int)0xFFC00000), unchecked((int)0xFFC00000), unchecked((int)0xFFC00000))))); + TestUtils.AreEqual(asuint(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), asuint(asfloat(int3(unchecked((int)0xFFC00000), unchecked((int)0xFFC00000), unchecked((int)0xFFC00000))))); + TestUtils.AreEqual(asuint(float3(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(int3(unchecked((int)0x7FC00000), unchecked((int)0x7FC00000), unchecked((int)0x7FC00000))))); } [TestCompiler] @@ -315,7 +326,8 @@ public static void asfloat_int4() TestUtils.AreEqual(float4(0.0f, 1.0f, 1234.56f, float.PositiveInfinity), asfloat(int4(0, 0x3F800000, 0x449A51EC, 0x7F800000))); TestUtils.AreEqual(float4(-0.0f, -1.0f, -1234.56f, float.NegativeInfinity), asfloat(int4(unchecked((int)0x80000000), unchecked((int)0xBF800000), unchecked((int)0xC49A51EC), unchecked((int)0xFF800000)))); - TestUtils.AreEqual(asuint(float4(float.NaN, float.NaN, float.NaN, float.NaN)), asuint(asfloat(int4(unchecked((int)0xFFC00000), unchecked((int)0xFFC00000), unchecked((int)0xFFC00000), unchecked((int)0xFFC00000))))); + TestUtils.AreEqual(asuint(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), asuint(asfloat(int4(unchecked((int)0xFFC00000), unchecked((int)0xFFC00000), unchecked((int)0xFFC00000), unchecked((int)0xFFC00000))))); + TestUtils.AreEqual(asuint(float4(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(int4(unchecked((int)0x7FC00000), unchecked((int)0x7FC00000), unchecked((int)0x7FC00000), unchecked((int)0x7FC00000))))); } [TestCompiler] @@ -330,7 +342,8 @@ public static void asfloat_uint() TestUtils.AreEqual(-1234.56f, asfloat(0xC49A51ECu)); TestUtils.AreEqual(float.NegativeInfinity, asfloat(0xFF800000u)); - TestUtils.AreEqual(asuint(float.NaN), asuint(asfloat(0xFFC00000u))); + TestUtils.AreEqual(asuint(TestUtils.SignedFloatQNaN()), asuint(asfloat(0xFFC00000u))); + TestUtils.AreEqual(asuint(TestUtils.UnsignedFloatQNaN()), asuint(asfloat(0x7FC00000u))); } [TestCompiler] @@ -341,7 +354,8 @@ public static void asfloat_uint2() TestUtils.AreEqual(float2(-0.0f, -1.0f), asfloat(uint2(0x80000000u, 0xBF800000u))); TestUtils.AreEqual(float2(-1234.56f, float.NegativeInfinity), asfloat(uint2(0xC49A51ECu, 0xFF800000u))); - TestUtils.AreEqual(asuint(float2(float.NaN, float.NaN)), asuint(asfloat(uint2(0xFFC00000u, 0xFFC00000u)))); + TestUtils.AreEqual(asuint(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), asuint(asfloat(uint2(0xFFC00000u, 0xFFC00000u)))); + TestUtils.AreEqual(asuint(float2(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(uint2(0x7FC00000u, 0x7FC00000u)))); } [TestCompiler] @@ -351,7 +365,8 @@ public static void asfloat_uint3() TestUtils.AreEqual(float3(float.PositiveInfinity, -0.0f, -1.0f), asfloat(uint3(0x7F800000u, 0x80000000u, 0xBF800000u))); TestUtils.AreEqual(float3(-1234.56f, float.NegativeInfinity, 0.0f), asfloat(uint3(0xC49A51ECu, 0xFF800000u, 0u))); - TestUtils.AreEqual(asuint(float3(float.NaN, float.NaN, float.NaN)), asuint(asfloat(uint3(0xFFC00000u, 0xFFC00000u, 0xFFC00000u)))); + TestUtils.AreEqual(asuint(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), asuint(asfloat(uint3(0xFFC00000u, 0xFFC00000u, 0xFFC00000u)))); + TestUtils.AreEqual(asuint(float3(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(uint3(0x7FC00000u, 0x7FC00000u, 0x7FC00000u)))); } [TestCompiler] @@ -360,7 +375,8 @@ public static void asfloat_uint4() TestUtils.AreEqual(float4(0.0f, 1.0f, 1234.56f, float.PositiveInfinity), asfloat(uint4(0u, 0x3F800000u, 0x449A51ECu, 0x7F800000u))); TestUtils.AreEqual(float4(-0.0f, -1.0f, -1234.56f, float.NegativeInfinity), asfloat(uint4(0x80000000u, 0xBF800000u, 0xC49A51ECu, 0xFF800000u))); - TestUtils.AreEqual(asuint(float4(float.NaN, float.NaN, float.NaN, float.NaN)), asuint(asfloat(uint4(0xFFC00000u, 0xFFC00000u, 0xFFC00000u, 0xFFC00000u)))); + TestUtils.AreEqual(asuint(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), asuint(asfloat(uint4(0xFFC00000u, 0xFFC00000u, 0xFFC00000u, 0xFFC00000u)))); + TestUtils.AreEqual(asuint(float4(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(uint4(0x7FC00000u, 0x7FC00000u, 0x7FC00000u, 0x7FC00000u)))); } [TestCompiler] @@ -370,7 +386,7 @@ public static void asdouble_long() TestUtils.AreEqual(1.0, asdouble(0x3FF0000000000000L)); TestUtils.AreEqual(1234.56, asdouble(0x40934A3D70A3D70AL)); TestUtils.AreEqual(double.PositiveInfinity, asdouble(0x7FF0000000000000L)); - TestUtils.AreEqual(double.NaN, asdouble(unchecked((long)0xFFF8000000000000UL))); + TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), asdouble(unchecked((long)0xFFF8000000000000UL))); TestUtils.AreEqual(-0.0, asdouble(unchecked((long)0x8000000000000000UL))); TestUtils.AreEqual(-1.0, asdouble(unchecked((long)0xBFF0000000000000UL))); @@ -385,7 +401,7 @@ public static void asdouble_ulong() TestUtils.AreEqual(1.0, asdouble(0x3FF0000000000000UL)); TestUtils.AreEqual(1234.56, asdouble(0x40934A3D70A3D70AUL)); TestUtils.AreEqual(double.PositiveInfinity, asdouble(0x7FF0000000000000UL)); - TestUtils.AreEqual(double.NaN, asdouble(0xFFF8000000000000UL)); + TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), asdouble(0xFFF8000000000000UL)); TestUtils.AreEqual(-0.0, asdouble(0x8000000000000000UL)); TestUtils.AreEqual(-1.0, asdouble(0xBFF0000000000000UL)); @@ -725,7 +741,7 @@ public static void f32tof16_float() TestUtils.AreEqual(0x7BFF, f32tof16(65504.0f)); TestUtils.AreEqual(0x7C00, f32tof16(65520.0f)); TestUtils.AreEqual(0x7C00, f32tof16(float.PositiveInfinity)); - TestUtils.AreEqual(0xFE00, f32tof16(float.NaN)); + TestUtils.AreEqual(0xFE00, f32tof16(TestUtils.SignedFloatQNaN())); TestUtils.AreEqual(0x8000, f32tof16(-2.98e-08f)); TestUtils.AreEqual(0x8001, f32tof16(-5.96046448e-08f)); @@ -739,7 +755,7 @@ public static void f32tof16_float() [WindowsOnly("Mono on linux ignores signed zero.")] public static void f32tof16_float_signed_zero() { - TestUtils.AreEqual(0x8000, f32tof16(-0.0f)); + TestUtils.AreEqual(0x8000, f32tof16(TestUtils.SignedFloatZero())); } [TestCompiler] @@ -748,7 +764,7 @@ public static void f32tof16_float2() TestUtils.AreEqual(uint2(0x0000, 0x0000), f32tof16(float2(0.0f, 2.98e-08f))); TestUtils.AreEqual(uint2(0x0001, 0x57B6), f32tof16(float2(5.96046448e-08f, 123.4f))); TestUtils.AreEqual(uint2(0x7BFF, 0x7C00), f32tof16(float2(65504.0f, 65520.0f))); - TestUtils.AreEqual(uint2(0x7C00, 0xFE00), f32tof16(float2(float.PositiveInfinity, float.NaN))); + TestUtils.AreEqual(uint2(0x7C00, 0xFE00), f32tof16(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()))); TestUtils.AreEqual(uint2(0x8000, 0x8001), f32tof16(float2(-2.98e-08f, -5.96046448e-08f))); TestUtils.AreEqual(uint2(0xD7B6, 0xFBFF), f32tof16(float2(-123.4f, -65504.0f))); @@ -760,7 +776,7 @@ public static void f32tof16_float2() [WindowsOnly("Mono on linux ignores signed zero.")] public static void f32tof16_float2_signed_zero() { - TestUtils.AreEqual(uint2(0x8000, 0x8000), f32tof16(float2(-0.0f, -0.0f))); + TestUtils.AreEqual(uint2(0x8000, 0x8000), f32tof16(float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } [TestCompiler] @@ -768,7 +784,7 @@ public static void f32tof16_float3() { TestUtils.AreEqual(uint3(0x0000, 0x0000, 0x0001), f32tof16(float3(0.0f, 2.98e-08f, 5.96046448e-08f))); TestUtils.AreEqual(uint3(0x57B6, 0x7BFF, 0x7C00), f32tof16(float3(123.4f, 65504.0f, 65520.0f))); - TestUtils.AreEqual(uint3(0x7C00, 0xFE00, 0x8000), f32tof16(float3(float.PositiveInfinity, float.NaN, -2.98e-08f))); + TestUtils.AreEqual(uint3(0x7C00, 0xFE00, 0x8000), f32tof16(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), -2.98e-08f))); TestUtils.AreEqual(uint3(0x8001, 0xD7B6, 0xFBFF), f32tof16(float3(-5.96046448e-08f, -123.4f, -65504.0f))); TestUtils.AreEqual(uint3(0xFC00, 0xFC00, 0x0000), f32tof16(float3(-65520.0f, float.NegativeInfinity, 0.0f))); @@ -778,14 +794,14 @@ public static void f32tof16_float3() [WindowsOnly("Mono on linux ignores signed zero.")] public static void f32tof16_float3_signed_zero() { - TestUtils.AreEqual(uint3(0x8000, 0x8000, 0x8000), f32tof16(float3(-0.0f, -0.0f, -0.0f))); + TestUtils.AreEqual(uint3(0x8000, 0x8000, 0x8000), f32tof16(float3(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } [TestCompiler] public static void f32tof16_float4() { TestUtils.AreEqual(uint4(0x0000, 0x0000, 0x0001, 0x57B6), f32tof16(float4(0.0f, 2.98e-08f, 5.96046448e-08f, 123.4f))); - TestUtils.AreEqual(uint4(0x7BFF, 0x7C00, 0x7C00, 0xFE00), f32tof16(float4(65504.0f, 65520.0f, float.PositiveInfinity, float.NaN))); + TestUtils.AreEqual(uint4(0x7BFF, 0x7C00, 0x7C00, 0xFE00), f32tof16(float4(65504.0f, 65520.0f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()))); TestUtils.AreEqual(uint4(0x8000, 0x8001, 0xD7B6, 0xFBFF), f32tof16(float4(-2.98e-08f, -5.96046448e-08f, -123.4f, -65504.0f))); TestUtils.AreEqual(uint4(0xFC00, 0xFC00, 0xFC00, 0x0000), f32tof16(float4(-65520.0f, float.NegativeInfinity, float.NegativeInfinity, 0.0f))); } @@ -794,7 +810,7 @@ public static void f32tof16_float4() [WindowsOnly("Mono on linux ignores signed zero.")] public static void f32tof16_float4_signed_zero() { - TestUtils.AreEqual(uint4(0x8000, 0x8000, 0x8000, 0x8000), f32tof16(float4(-0.0f, -0.0f, -0.0f, -0.0f))); + TestUtils.AreEqual(uint4(0x8000, 0x8000, 0x8000, 0x8000), f32tof16(float4(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } [TestCompiler] @@ -3133,29 +3149,29 @@ public static void helper_axes() [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_float_signed_zero() { - TestUtils.AreEqual(float.NegativeInfinity, rcp(-0.0f)); - TestUtils.AreEqual(-0.0f, rcp(float.NegativeInfinity)); + TestUtils.AreEqual(float.NegativeInfinity, rcp(TestUtils.SignedFloatZero())); + TestUtils.AreEqual(TestUtils.SignedFloatZero(), rcp(float.NegativeInfinity)); } [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_float2_signed_zero() { - TestUtils.AreEqual(float2(float.NegativeInfinity, -0.0f), rcp(float2(-0.0f, float.NegativeInfinity))); + TestUtils.AreEqual(float2(float.NegativeInfinity, TestUtils.SignedFloatZero()), rcp(float2(TestUtils.SignedFloatZero(), float.NegativeInfinity))); } [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_float3_signed_zero() { - TestUtils.AreEqual(float3(float.NegativeInfinity, -0.0f, float.NegativeInfinity), rcp(float3(-0.0f, float.NegativeInfinity, -0.0f))); + TestUtils.AreEqual(float3(float.NegativeInfinity, TestUtils.SignedFloatZero(), float.NegativeInfinity), rcp(float3(TestUtils.SignedFloatZero(), float.NegativeInfinity, TestUtils.SignedFloatZero()))); } [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_float4_signed_zero() { - TestUtils.AreEqual(float4(float.NegativeInfinity, -0.0f, float.NegativeInfinity, -0.0f), rcp(float4(-0.0f, float.NegativeInfinity, -0.0f, float.NegativeInfinity))); + TestUtils.AreEqual(float4(float.NegativeInfinity, TestUtils.SignedFloatZero(), float.NegativeInfinity, TestUtils.SignedFloatZero()), rcp(float4(TestUtils.SignedFloatZero(), float.NegativeInfinity, TestUtils.SignedFloatZero(), float.NegativeInfinity))); } @@ -3163,29 +3179,29 @@ public static void rcp_float4_signed_zero() [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_double_signed_zero() { - TestUtils.AreEqual(double.NegativeInfinity, rcp(-0.0)); - TestUtils.AreEqual(-0.0, rcp(double.NegativeInfinity)); + TestUtils.AreEqual(double.NegativeInfinity, rcp(TestUtils.SignedDoubleZero())); + TestUtils.AreEqual(TestUtils.SignedDoubleZero(), rcp(double.NegativeInfinity)); } [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_double2_signed_zero() { - TestUtils.AreEqual(double2(double.NegativeInfinity, -0.0), rcp(double2(-0.0, double.NegativeInfinity))); + TestUtils.AreEqual(double2(double.NegativeInfinity, TestUtils.SignedDoubleZero()), rcp(double2(TestUtils.SignedDoubleZero(), double.NegativeInfinity))); } [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_double3_signed_zero() { - TestUtils.AreEqual(double3(double.NegativeInfinity, -0.0, double.NegativeInfinity), rcp(double3(-0.0, double.NegativeInfinity, -0.0))); + TestUtils.AreEqual(double3(double.NegativeInfinity, TestUtils.SignedDoubleZero(), double.NegativeInfinity), rcp(double3(TestUtils.SignedDoubleZero(), double.NegativeInfinity, TestUtils.SignedDoubleZero()))); } [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_double4_signed_zero() { - TestUtils.AreEqual(double4(double.NegativeInfinity, -0.0, double.NegativeInfinity, -0.0), rcp(double4(-0.0, double.NegativeInfinity, -0.0, double.NegativeInfinity))); + TestUtils.AreEqual(double4(double.NegativeInfinity, TestUtils.SignedDoubleZero(), double.NegativeInfinity, TestUtils.SignedDoubleZero()), rcp(double4(TestUtils.SignedDoubleZero(), double.NegativeInfinity, TestUtils.SignedDoubleZero(), double.NegativeInfinity))); } [TestCompiler] diff --git a/src/Tests/Tests/Shared/TestMath.gen.cs b/src/Tests/Tests/Shared/TestMath.gen.cs index 7e39b7d2..6b4039c1 100644 --- a/src/Tests/Tests/Shared/TestMath.gen.cs +++ b/src/Tests/Tests/Shared/TestMath.gen.cs @@ -3549,49 +3549,49 @@ public static void fmod_float() { TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.NegativeInfinity, float.NegativeInfinity), 1, false); TestUtils.AreEqual(-323.4f, fmod(-323.4f, float.NegativeInfinity), 1, false); - TestUtils.AreEqual(-0.0f, fmod(-0.0f, float.NegativeInfinity), 1, false); + TestUtils.AreEqual(TestUtils.SignedFloatZero(), fmod(TestUtils.SignedFloatZero(), float.NegativeInfinity), 1, false); TestUtils.AreEqual(0f, fmod(0f, float.NegativeInfinity), 1, false); TestUtils.AreEqual(323.4f, fmod(323.4f, float.NegativeInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.PositiveInfinity, float.NegativeInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(TestUtils.SignedFloatQNaN(), float.NegativeInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.NegativeInfinity, -123.6f), 1, false); TestUtils.AreEqual(-76.2f, fmod(-323.4f, -123.6f), 1, false); - TestUtils.AreEqual(-0.0f, fmod(-0.0f, -123.6f), 1, false); + TestUtils.AreEqual(TestUtils.SignedFloatZero(), fmod(TestUtils.SignedFloatZero(), -123.6f), 1, false); TestUtils.AreEqual(0f, fmod(0f, -123.6f), 1, false); TestUtils.AreEqual(76.2f, fmod(323.4f, -123.6f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.PositiveInfinity, -123.6f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(TestUtils.SignedFloatQNaN(), -123.6f), 1, false); - TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.NegativeInfinity, -0.0f), 1, false); - TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(-323.4f, -0.0f), 1, false); - TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(-0.0f, -0.0f), 1, false); - TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(0f, -0.0f), 1, false); - TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(323.4f, -0.0f), 1, false); - TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.PositiveInfinity, -0.0f), 1, false); - TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(TestUtils.SignedFloatQNaN(), -0.0f), 1, false); + TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.NegativeInfinity, TestUtils.SignedFloatZero()), 1, false); + TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(-323.4f, TestUtils.SignedFloatZero()), 1, false); + TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()), 1, false); + TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(0f, TestUtils.SignedFloatZero()), 1, false); + TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(323.4f, TestUtils.SignedFloatZero()), 1, false); + TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.PositiveInfinity, TestUtils.SignedFloatZero()), 1, false); + TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatZero()), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.NegativeInfinity, 0f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(-323.4f, 0f), 1, false); - TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(-0.0f, 0f), 1, false); + TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(TestUtils.SignedFloatZero(), 0f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(0f, 0f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(323.4f, 0f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.PositiveInfinity, 0f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(TestUtils.SignedFloatQNaN(), 0f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.NegativeInfinity, 123.6f), 1, false); TestUtils.AreEqual(-76.2f, fmod(-323.4f, 123.6f), 1, false); - TestUtils.AreEqual(-0.0f, fmod(-0.0f, 123.6f), 1, false); + TestUtils.AreEqual(TestUtils.SignedFloatZero(), fmod(TestUtils.SignedFloatZero(), 123.6f), 1, false); TestUtils.AreEqual(0f, fmod(0f, 123.6f), 1, false); TestUtils.AreEqual(76.2f, fmod(323.4f, 123.6f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.PositiveInfinity, 123.6f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(TestUtils.SignedFloatQNaN(), 123.6f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.NegativeInfinity, float.PositiveInfinity), 1, false); TestUtils.AreEqual(-323.4f, fmod(-323.4f, float.PositiveInfinity), 1, false); - TestUtils.AreEqual(-0.0f, fmod(-0.0f, float.PositiveInfinity), 1, false); + TestUtils.AreEqual(TestUtils.SignedFloatZero(), fmod(TestUtils.SignedFloatZero(), float.PositiveInfinity), 1, false); TestUtils.AreEqual(0f, fmod(0f, float.PositiveInfinity), 1, false); TestUtils.AreEqual(323.4f, fmod(323.4f, float.PositiveInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.PositiveInfinity, float.PositiveInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(TestUtils.SignedFloatQNaN(), float.PositiveInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.NegativeInfinity, TestUtils.SignedFloatQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(-323.4f, TestUtils.SignedFloatQNaN()), 1, false); - TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(-0.0f, TestUtils.SignedFloatQNaN()), 1, false); + TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(TestUtils.SignedFloatZero(), TestUtils.SignedFloatQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(0f, TestUtils.SignedFloatQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(323.4f, TestUtils.SignedFloatQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.PositiveInfinity, TestUtils.SignedFloatQNaN()), 1, false); @@ -3602,28 +3602,28 @@ public static void fmod_float() public static void fmod_float2() { TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), -323.4f), fmod(float2(float.NegativeInfinity, -323.4f), float2(float.NegativeInfinity, float.NegativeInfinity)), 1, false); - TestUtils.AreEqual(float2(-0.0f, 0f), fmod(float2(-0.0f, 0f), float2(float.NegativeInfinity, float.NegativeInfinity)), 1, false); + TestUtils.AreEqual(float2(TestUtils.SignedFloatZero(), 0f), fmod(float2(TestUtils.SignedFloatZero(), 0f), float2(float.NegativeInfinity, float.NegativeInfinity)), 1, false); TestUtils.AreEqual(float2(323.4f, TestUtils.SignedFloatQNaN()), fmod(float2(323.4f, float.PositiveInfinity), float2(float.NegativeInfinity, float.NegativeInfinity)), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float2(float.NegativeInfinity, -123.6f)), 1, false); - TestUtils.AreEqual(float2(-76.2f, -0.0f), fmod(float2(-323.4f, -0.0f), float2(-123.6f, -123.6f)), 1, false); + TestUtils.AreEqual(float2(-76.2f, TestUtils.SignedFloatZero()), fmod(float2(-323.4f, TestUtils.SignedFloatZero()), float2(-123.6f, -123.6f)), 1, false); TestUtils.AreEqual(float2(0f, 76.2f), fmod(float2(0f, 323.4f), float2(-123.6f, -123.6f)), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float2(-123.6f, -123.6f)), 1, false); - TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(float.NegativeInfinity, -323.4f), float2(-0.0f, -0.0f)), 1, false); - TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(-0.0f, 0f), float2(-0.0f, -0.0f)), 1, false); - TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(323.4f, float.PositiveInfinity), float2(-0.0f, -0.0f)), 1, false); - TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float2(-0.0f, 0f)), 1, false); - TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(-323.4f, -0.0f), float2(0f, 0f)), 1, false); + TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(float.NegativeInfinity, -323.4f), float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())), 1, false); + TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(TestUtils.SignedFloatZero(), 0f), float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())), 1, false); + TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(323.4f, float.PositiveInfinity), float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())), 1, false); + TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float2(TestUtils.SignedFloatZero(), 0f)), 1, false); + TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(-323.4f, TestUtils.SignedFloatZero()), float2(0f, 0f)), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(0f, 323.4f), float2(0f, 0f)), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float2(0f, 0f)), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), -76.2f), fmod(float2(float.NegativeInfinity, -323.4f), float2(123.6f, 123.6f)), 1, false); - TestUtils.AreEqual(float2(-0.0f, 0f), fmod(float2(-0.0f, 0f), float2(123.6f, 123.6f)), 1, false); + TestUtils.AreEqual(float2(TestUtils.SignedFloatZero(), 0f), fmod(float2(TestUtils.SignedFloatZero(), 0f), float2(123.6f, 123.6f)), 1, false); TestUtils.AreEqual(float2(76.2f, TestUtils.SignedFloatQNaN()), fmod(float2(323.4f, float.PositiveInfinity), float2(123.6f, 123.6f)), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float2(123.6f, float.PositiveInfinity)), 1, false); - TestUtils.AreEqual(float2(-323.4f, -0.0f), fmod(float2(-323.4f, -0.0f), float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); + TestUtils.AreEqual(float2(-323.4f, TestUtils.SignedFloatZero()), fmod(float2(-323.4f, TestUtils.SignedFloatZero()), float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); TestUtils.AreEqual(float2(0f, 323.4f), fmod(float2(0f, 323.4f), float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(float.NegativeInfinity, -323.4f), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); - TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(-0.0f, 0f), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); + TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(TestUtils.SignedFloatZero(), 0f), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(323.4f, float.PositiveInfinity), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } @@ -3631,21 +3631,21 @@ public static void fmod_float2() [TestCompiler] public static void fmod_float3() { - TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), -323.4f, -0.0f), fmod(float3(float.NegativeInfinity, -323.4f, -0.0f), float3(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); + TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), -323.4f, TestUtils.SignedFloatZero()), fmod(float3(float.NegativeInfinity, -323.4f, TestUtils.SignedFloatZero()), float3(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); TestUtils.AreEqual(float3(0f, 323.4f, TestUtils.SignedFloatQNaN()), fmod(float3(0f, 323.4f, float.PositiveInfinity), float3(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), -76.2f), fmod(float3(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -323.4f), float3(float.NegativeInfinity, -123.6f, -123.6f)), 1, false); - TestUtils.AreEqual(float3(-0.0f, 0f, 76.2f), fmod(float3(-0.0f, 0f, 323.4f), float3(-123.6f, -123.6f, -123.6f)), 1, false); - TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float3(-123.6f, -123.6f, -0.0f)), 1, false); - TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(-323.4f, -0.0f, 0f), float3(-0.0f, -0.0f, -0.0f)), 1, false); - TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(323.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float3(-0.0f, -0.0f, -0.0f)), 1, false); - TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(float.NegativeInfinity, -323.4f, -0.0f), float3(0f, 0f, 0f)), 1, false); + TestUtils.AreEqual(float3(TestUtils.SignedFloatZero(), 0f, 76.2f), fmod(float3(TestUtils.SignedFloatZero(), 0f, 323.4f), float3(-123.6f, -123.6f, -123.6f)), 1, false); + TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float3(-123.6f, -123.6f, TestUtils.SignedFloatZero())), 1, false); + TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(-323.4f, TestUtils.SignedFloatZero(), 0f), float3(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())), 1, false); + TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(323.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())), 1, false); + TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(float.NegativeInfinity, -323.4f, TestUtils.SignedFloatZero()), float3(0f, 0f, 0f)), 1, false); TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(0f, 323.4f, float.PositiveInfinity), float3(0f, 0f, 0f)), 1, false); TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), -76.2f), fmod(float3(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -323.4f), float3(0f, 123.6f, 123.6f)), 1, false); - TestUtils.AreEqual(float3(-0.0f, 0f, 76.2f), fmod(float3(-0.0f, 0f, 323.4f), float3(123.6f, 123.6f, 123.6f)), 1, false); + TestUtils.AreEqual(float3(TestUtils.SignedFloatZero(), 0f, 76.2f), fmod(float3(TestUtils.SignedFloatZero(), 0f, 323.4f), float3(123.6f, 123.6f, 123.6f)), 1, false); TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float3(123.6f, 123.6f, float.PositiveInfinity)), 1, false); - TestUtils.AreEqual(float3(-323.4f, -0.0f, 0f), fmod(float3(-323.4f, -0.0f, 0f), float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); + TestUtils.AreEqual(float3(-323.4f, TestUtils.SignedFloatZero(), 0f), fmod(float3(-323.4f, TestUtils.SignedFloatZero(), 0f), float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); TestUtils.AreEqual(float3(323.4f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(323.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); - TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(float.NegativeInfinity, -323.4f, -0.0f), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); + TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(float.NegativeInfinity, -323.4f, TestUtils.SignedFloatZero()), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(0f, 323.4f, float.PositiveInfinity), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } @@ -3653,18 +3653,18 @@ public static void fmod_float3() [TestCompiler] public static void fmod_float4() { - TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), -323.4f, -0.0f, 0f), fmod(float4(float.NegativeInfinity, -323.4f, -0.0f, 0f), float4(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); + TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), -323.4f, TestUtils.SignedFloatZero(), 0f), fmod(float4(float.NegativeInfinity, -323.4f, TestUtils.SignedFloatZero(), 0f), float4(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); TestUtils.AreEqual(float4(323.4f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(323.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float4(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, -123.6f)), 1, false); - TestUtils.AreEqual(float4(-76.2f, -0.0f, 0f, 76.2f), fmod(float4(-323.4f, -0.0f, 0f, 323.4f), float4(-123.6f, -123.6f, -123.6f, -123.6f)), 1, false); - TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -323.4f), float4(-123.6f, -123.6f, -0.0f, -0.0f)), 1, false); - TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(-0.0f, 0f, 323.4f, float.PositiveInfinity), float4(-0.0f, -0.0f, -0.0f, -0.0f)), 1, false); - TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -323.4f, -0.0f), float4(-0.0f, 0f, 0f, 0f)), 1, false); + TestUtils.AreEqual(float4(-76.2f, TestUtils.SignedFloatZero(), 0f, 76.2f), fmod(float4(-323.4f, TestUtils.SignedFloatZero(), 0f, 323.4f), float4(-123.6f, -123.6f, -123.6f, -123.6f)), 1, false); + TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -323.4f), float4(-123.6f, -123.6f, TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())), 1, false); + TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(TestUtils.SignedFloatZero(), 0f, 323.4f, float.PositiveInfinity), float4(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())), 1, false); + TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -323.4f, TestUtils.SignedFloatZero()), float4(TestUtils.SignedFloatZero(), 0f, 0f, 0f)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(0f, 323.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float4(0f, 0f, 0f, 0f)), 1, false); - TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), -76.2f, -0.0f, 0f), fmod(float4(float.NegativeInfinity, -323.4f, -0.0f, 0f), float4(123.6f, 123.6f, 123.6f, 123.6f)), 1, false); + TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), -76.2f, TestUtils.SignedFloatZero(), 0f), fmod(float4(float.NegativeInfinity, -323.4f, TestUtils.SignedFloatZero(), 0f), float4(123.6f, 123.6f, 123.6f, 123.6f)), 1, false); TestUtils.AreEqual(float4(76.2f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(323.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float4(123.6f, 123.6f, 123.6f, float.PositiveInfinity)), 1, false); - TestUtils.AreEqual(float4(-323.4f, -0.0f, 0f, 323.4f), fmod(float4(-323.4f, -0.0f, 0f, 323.4f), float4(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); + TestUtils.AreEqual(float4(-323.4f, TestUtils.SignedFloatZero(), 0f, 323.4f), fmod(float4(-323.4f, TestUtils.SignedFloatZero(), 0f, 323.4f), float4(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -323.4f), float4(float.PositiveInfinity, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); - TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(-0.0f, 0f, 323.4f, float.PositiveInfinity), float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); + TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(TestUtils.SignedFloatZero(), 0f, 323.4f, float.PositiveInfinity), float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } @@ -3673,49 +3673,49 @@ public static void fmod_double() { TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.NegativeInfinity, double.NegativeInfinity), 1, false); TestUtils.AreEqual(-323.4, fmod(-323.4, double.NegativeInfinity), 1, false); - TestUtils.AreEqual(-0.0, fmod(-0.0, double.NegativeInfinity), 1, false); + TestUtils.AreEqual(TestUtils.SignedDoubleZero(), fmod(TestUtils.SignedDoubleZero(), double.NegativeInfinity), 1, false); TestUtils.AreEqual(0.0, fmod(0.0, double.NegativeInfinity), 1, false); TestUtils.AreEqual(323.4, fmod(323.4, double.NegativeInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.PositiveInfinity, double.NegativeInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.NegativeInfinity, -123.6), 1, false); TestUtils.AreEqual(-76.2, fmod(-323.4, -123.6), 1, false); - TestUtils.AreEqual(-0.0, fmod(-0.0, -123.6), 1, false); + TestUtils.AreEqual(TestUtils.SignedDoubleZero(), fmod(TestUtils.SignedDoubleZero(), -123.6), 1, false); TestUtils.AreEqual(0.0, fmod(0.0, -123.6), 1, false); TestUtils.AreEqual(76.2, fmod(323.4, -123.6), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.PositiveInfinity, -123.6), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(TestUtils.SignedDoubleQNaN(), -123.6), 1, false); - TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.NegativeInfinity, -0.0), 1, false); - TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(-323.4, -0.0), 1, false); - TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(-0.0, -0.0), 1, false); - TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(0.0, -0.0), 1, false); - TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(323.4, -0.0), 1, false); - TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.PositiveInfinity, -0.0), 1, false); - TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(TestUtils.SignedDoubleQNaN(), -0.0), 1, false); + TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.NegativeInfinity, TestUtils.SignedDoubleZero()), 1, false); + TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(-323.4, TestUtils.SignedDoubleZero()), 1, false); + TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero()), 1, false); + TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(0.0, TestUtils.SignedDoubleZero()), 1, false); + TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(323.4, TestUtils.SignedDoubleZero()), 1, false); + TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.PositiveInfinity, TestUtils.SignedDoubleZero()), 1, false); + TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleZero()), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.NegativeInfinity, 0.0), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(-323.4, 0.0), 1, false); - TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(-0.0, 0.0), 1, false); + TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(TestUtils.SignedDoubleZero(), 0.0), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(0.0, 0.0), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(323.4, 0.0), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.PositiveInfinity, 0.0), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(TestUtils.SignedDoubleQNaN(), 0.0), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.NegativeInfinity, 123.6), 1, false); TestUtils.AreEqual(-76.2, fmod(-323.4, 123.6), 1, false); - TestUtils.AreEqual(-0.0, fmod(-0.0, 123.6), 1, false); + TestUtils.AreEqual(TestUtils.SignedDoubleZero(), fmod(TestUtils.SignedDoubleZero(), 123.6), 1, false); TestUtils.AreEqual(0.0, fmod(0.0, 123.6), 1, false); TestUtils.AreEqual(76.2, fmod(323.4, 123.6), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.PositiveInfinity, 123.6), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(TestUtils.SignedDoubleQNaN(), 123.6), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.NegativeInfinity, double.PositiveInfinity), 1, false); TestUtils.AreEqual(-323.4, fmod(-323.4, double.PositiveInfinity), 1, false); - TestUtils.AreEqual(-0.0, fmod(-0.0, double.PositiveInfinity), 1, false); + TestUtils.AreEqual(TestUtils.SignedDoubleZero(), fmod(TestUtils.SignedDoubleZero(), double.PositiveInfinity), 1, false); TestUtils.AreEqual(0.0, fmod(0.0, double.PositiveInfinity), 1, false); TestUtils.AreEqual(323.4, fmod(323.4, double.PositiveInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.PositiveInfinity, double.PositiveInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.NegativeInfinity, TestUtils.SignedDoubleQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(-323.4, TestUtils.SignedDoubleQNaN()), 1, false); - TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(-0.0, TestUtils.SignedDoubleQNaN()), 1, false); + TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(0.0, TestUtils.SignedDoubleQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(323.4, TestUtils.SignedDoubleQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), 1, false); @@ -3726,28 +3726,28 @@ public static void fmod_double() public static void fmod_double2() { TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), -323.4), fmod(double2(double.NegativeInfinity, -323.4), double2(double.NegativeInfinity, double.NegativeInfinity)), 1, false); - TestUtils.AreEqual(double2(-0.0, 0.0), fmod(double2(-0.0, 0.0), double2(double.NegativeInfinity, double.NegativeInfinity)), 1, false); + TestUtils.AreEqual(double2(TestUtils.SignedDoubleZero(), 0.0), fmod(double2(TestUtils.SignedDoubleZero(), 0.0), double2(double.NegativeInfinity, double.NegativeInfinity)), 1, false); TestUtils.AreEqual(double2(323.4, TestUtils.SignedDoubleQNaN()), fmod(double2(323.4, double.PositiveInfinity), double2(double.NegativeInfinity, double.NegativeInfinity)), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double2(double.NegativeInfinity, -123.6)), 1, false); - TestUtils.AreEqual(double2(-76.2, -0.0), fmod(double2(-323.4, -0.0), double2(-123.6, -123.6)), 1, false); + TestUtils.AreEqual(double2(-76.2, TestUtils.SignedDoubleZero()), fmod(double2(-323.4, TestUtils.SignedDoubleZero()), double2(-123.6, -123.6)), 1, false); TestUtils.AreEqual(double2(0.0, 76.2), fmod(double2(0.0, 323.4), double2(-123.6, -123.6)), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double2(-123.6, -123.6)), 1, false); - TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(double.NegativeInfinity, -323.4), double2(-0.0, -0.0)), 1, false); - TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(-0.0, 0.0), double2(-0.0, -0.0)), 1, false); - TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(323.4, double.PositiveInfinity), double2(-0.0, -0.0)), 1, false); - TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double2(-0.0, 0.0)), 1, false); - TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(-323.4, -0.0), double2(0.0, 0.0)), 1, false); + TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(double.NegativeInfinity, -323.4), double2(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())), 1, false); + TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(TestUtils.SignedDoubleZero(), 0.0), double2(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())), 1, false); + TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(323.4, double.PositiveInfinity), double2(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())), 1, false); + TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double2(TestUtils.SignedDoubleZero(), 0.0)), 1, false); + TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(-323.4, TestUtils.SignedDoubleZero()), double2(0.0, 0.0)), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(0.0, 323.4), double2(0.0, 0.0)), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double2(0.0, 0.0)), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), -76.2), fmod(double2(double.NegativeInfinity, -323.4), double2(123.6, 123.6)), 1, false); - TestUtils.AreEqual(double2(-0.0, 0.0), fmod(double2(-0.0, 0.0), double2(123.6, 123.6)), 1, false); + TestUtils.AreEqual(double2(TestUtils.SignedDoubleZero(), 0.0), fmod(double2(TestUtils.SignedDoubleZero(), 0.0), double2(123.6, 123.6)), 1, false); TestUtils.AreEqual(double2(76.2, TestUtils.SignedDoubleQNaN()), fmod(double2(323.4, double.PositiveInfinity), double2(123.6, 123.6)), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double2(123.6, double.PositiveInfinity)), 1, false); - TestUtils.AreEqual(double2(-323.4, -0.0), fmod(double2(-323.4, -0.0), double2(double.PositiveInfinity, double.PositiveInfinity)), 1, false); + TestUtils.AreEqual(double2(-323.4, TestUtils.SignedDoubleZero()), fmod(double2(-323.4, TestUtils.SignedDoubleZero()), double2(double.PositiveInfinity, double.PositiveInfinity)), 1, false); TestUtils.AreEqual(double2(0.0, 323.4), fmod(double2(0.0, 323.4), double2(double.PositiveInfinity, double.PositiveInfinity)), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double2(double.PositiveInfinity, double.PositiveInfinity)), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(double.NegativeInfinity, -323.4), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); - TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(-0.0, 0.0), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); + TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(TestUtils.SignedDoubleZero(), 0.0), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(323.4, double.PositiveInfinity), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } @@ -3755,21 +3755,21 @@ public static void fmod_double2() [TestCompiler] public static void fmod_double3() { - TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), -323.4, -0.0), fmod(double3(double.NegativeInfinity, -323.4, -0.0), double3(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); + TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), -323.4, TestUtils.SignedDoubleZero()), fmod(double3(double.NegativeInfinity, -323.4, TestUtils.SignedDoubleZero()), double3(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); TestUtils.AreEqual(double3(0.0, 323.4, TestUtils.SignedDoubleQNaN()), fmod(double3(0.0, 323.4, double.PositiveInfinity), double3(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), -76.2), fmod(double3(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -323.4), double3(double.NegativeInfinity, -123.6, -123.6)), 1, false); - TestUtils.AreEqual(double3(-0.0, 0.0, 76.2), fmod(double3(-0.0, 0.0, 323.4), double3(-123.6, -123.6, -123.6)), 1, false); - TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double3(-123.6, -123.6, -0.0)), 1, false); - TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(-323.4, -0.0, 0.0), double3(-0.0, -0.0, -0.0)), 1, false); - TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(323.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double3(-0.0, -0.0, -0.0)), 1, false); - TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(double.NegativeInfinity, -323.4, -0.0), double3(0.0, 0.0, 0.0)), 1, false); + TestUtils.AreEqual(double3(TestUtils.SignedDoubleZero(), 0.0, 76.2), fmod(double3(TestUtils.SignedDoubleZero(), 0.0, 323.4), double3(-123.6, -123.6, -123.6)), 1, false); + TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double3(-123.6, -123.6, TestUtils.SignedDoubleZero())), 1, false); + TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(-323.4, TestUtils.SignedDoubleZero(), 0.0), double3(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())), 1, false); + TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(323.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())), 1, false); + TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(double.NegativeInfinity, -323.4, TestUtils.SignedDoubleZero()), double3(0.0, 0.0, 0.0)), 1, false); TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(0.0, 323.4, double.PositiveInfinity), double3(0.0, 0.0, 0.0)), 1, false); TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), -76.2), fmod(double3(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -323.4), double3(0.0, 123.6, 123.6)), 1, false); - TestUtils.AreEqual(double3(-0.0, 0.0, 76.2), fmod(double3(-0.0, 0.0, 323.4), double3(123.6, 123.6, 123.6)), 1, false); + TestUtils.AreEqual(double3(TestUtils.SignedDoubleZero(), 0.0, 76.2), fmod(double3(TestUtils.SignedDoubleZero(), 0.0, 323.4), double3(123.6, 123.6, 123.6)), 1, false); TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double3(123.6, 123.6, double.PositiveInfinity)), 1, false); - TestUtils.AreEqual(double3(-323.4, -0.0, 0.0), fmod(double3(-323.4, -0.0, 0.0), double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); + TestUtils.AreEqual(double3(-323.4, TestUtils.SignedDoubleZero(), 0.0), fmod(double3(-323.4, TestUtils.SignedDoubleZero(), 0.0), double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); TestUtils.AreEqual(double3(323.4, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(323.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); - TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(double.NegativeInfinity, -323.4, -0.0), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); + TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(double.NegativeInfinity, -323.4, TestUtils.SignedDoubleZero()), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(0.0, 323.4, double.PositiveInfinity), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } @@ -3777,18 +3777,18 @@ public static void fmod_double3() [TestCompiler] public static void fmod_double4() { - TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), -323.4, -0.0, 0.0), fmod(double4(double.NegativeInfinity, -323.4, -0.0, 0.0), double4(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); + TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), -323.4, TestUtils.SignedDoubleZero(), 0.0), fmod(double4(double.NegativeInfinity, -323.4, TestUtils.SignedDoubleZero(), 0.0), double4(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); TestUtils.AreEqual(double4(323.4, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(323.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double4(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity, -123.6)), 1, false); - TestUtils.AreEqual(double4(-76.2, -0.0, 0.0, 76.2), fmod(double4(-323.4, -0.0, 0.0, 323.4), double4(-123.6, -123.6, -123.6, -123.6)), 1, false); - TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -323.4), double4(-123.6, -123.6, -0.0, -0.0)), 1, false); - TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(-0.0, 0.0, 323.4, double.PositiveInfinity), double4(-0.0, -0.0, -0.0, -0.0)), 1, false); - TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -323.4, -0.0), double4(-0.0, 0.0, 0.0, 0.0)), 1, false); + TestUtils.AreEqual(double4(-76.2, TestUtils.SignedDoubleZero(), 0.0, 76.2), fmod(double4(-323.4, TestUtils.SignedDoubleZero(), 0.0, 323.4), double4(-123.6, -123.6, -123.6, -123.6)), 1, false); + TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -323.4), double4(-123.6, -123.6, TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())), 1, false); + TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(TestUtils.SignedDoubleZero(), 0.0, 323.4, double.PositiveInfinity), double4(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())), 1, false); + TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -323.4, TestUtils.SignedDoubleZero()), double4(TestUtils.SignedDoubleZero(), 0.0, 0.0, 0.0)), 1, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(0.0, 323.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double4(0.0, 0.0, 0.0, 0.0)), 1, false); - TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), -76.2, -0.0, 0.0), fmod(double4(double.NegativeInfinity, -323.4, -0.0, 0.0), double4(123.6, 123.6, 123.6, 123.6)), 1, false); + TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), -76.2, TestUtils.SignedDoubleZero(), 0.0), fmod(double4(double.NegativeInfinity, -323.4, TestUtils.SignedDoubleZero(), 0.0), double4(123.6, 123.6, 123.6, 123.6)), 1, false); TestUtils.AreEqual(double4(76.2, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(323.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double4(123.6, 123.6, 123.6, double.PositiveInfinity)), 1, false); - TestUtils.AreEqual(double4(-323.4, -0.0, 0.0, 323.4), fmod(double4(-323.4, -0.0, 0.0, 323.4), double4(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); + TestUtils.AreEqual(double4(-323.4, TestUtils.SignedDoubleZero(), 0.0, 323.4), fmod(double4(-323.4, TestUtils.SignedDoubleZero(), 0.0, 323.4), double4(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -323.4), double4(double.PositiveInfinity, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); - TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(-0.0, 0.0, 323.4, double.PositiveInfinity), double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); + TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(TestUtils.SignedDoubleZero(), 0.0, 323.4, double.PositiveInfinity), double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } @@ -3797,47 +3797,45 @@ public static void pow_float() { TestUtils.AreEqual(0f, pow(float.NegativeInfinity, float.NegativeInfinity), 1, false); TestUtils.AreEqual(0f, pow(-3.4f, float.NegativeInfinity), 1, false); - TestUtils.AreEqual(float.PositiveInfinity, pow(-0.0f, float.NegativeInfinity), 1, false); + TestUtils.AreEqual(float.PositiveInfinity, pow(TestUtils.SignedFloatZero(), float.NegativeInfinity), 1, false); TestUtils.AreEqual(float.PositiveInfinity, pow(0f, float.NegativeInfinity), 1, false); TestUtils.AreEqual(0f, pow(3.4f, float.NegativeInfinity), 1, false); TestUtils.AreEqual(0f, pow(float.PositiveInfinity, float.NegativeInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(TestUtils.SignedFloatQNaN(), float.NegativeInfinity), 1, false); - TestUtils.AreEqual(0f, pow(float.NegativeInfinity, -2.6f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(-3.4f, -2.6f), 1, false); - TestUtils.AreEqual(float.PositiveInfinity, pow(-0.0f, -2.6f), 1, false); + TestUtils.AreEqual(float.PositiveInfinity, pow(TestUtils.SignedFloatZero(), -2.6f), 1, false); TestUtils.AreEqual(float.PositiveInfinity, pow(0f, -2.6f), 1, false); TestUtils.AreEqual(0.0415102f, pow(3.4f, -2.6f), 1, false); TestUtils.AreEqual(0f, pow(float.PositiveInfinity, -2.6f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(TestUtils.SignedFloatQNaN(), -2.6f), 1, false); - TestUtils.AreEqual(1f, pow(float.NegativeInfinity, -0.0f), 1, false); - TestUtils.AreEqual(1f, pow(-3.4f, -0.0f), 1, false); - TestUtils.AreEqual(1f, pow(-0.0f, -0.0f), 1, false); - TestUtils.AreEqual(1f, pow(0f, -0.0f), 1, false); - TestUtils.AreEqual(1f, pow(3.4f, -0.0f), 1, false); - TestUtils.AreEqual(1f, pow(float.PositiveInfinity, -0.0f), 1, false); + TestUtils.AreEqual(1f, pow(float.NegativeInfinity, TestUtils.SignedFloatZero()), 1, false); + TestUtils.AreEqual(1f, pow(-3.4f, TestUtils.SignedFloatZero()), 1, false); + TestUtils.AreEqual(1f, pow(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()), 1, false); + TestUtils.AreEqual(1f, pow(0f, TestUtils.SignedFloatZero()), 1, false); + TestUtils.AreEqual(1f, pow(3.4f, TestUtils.SignedFloatZero()), 1, false); + TestUtils.AreEqual(1f, pow(float.PositiveInfinity, TestUtils.SignedFloatZero()), 1, false); TestUtils.AreEqual(1f, pow(float.NegativeInfinity, 0f), 1, false); TestUtils.AreEqual(1f, pow(-3.4f, 0f), 1, false); - TestUtils.AreEqual(1f, pow(-0.0f, 0f), 1, false); + TestUtils.AreEqual(1f, pow(TestUtils.SignedFloatZero(), 0f), 1, false); TestUtils.AreEqual(1f, pow(0f, 0f), 1, false); TestUtils.AreEqual(1f, pow(3.4f, 0f), 1, false); TestUtils.AreEqual(1f, pow(float.PositiveInfinity, 0f), 1, false); - TestUtils.AreEqual(float.PositiveInfinity, pow(float.NegativeInfinity, 2.6f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(-3.4f, 2.6f), 1, false); - TestUtils.AreEqual(0f, pow(-0.0f, 2.6f), 1, false); + TestUtils.AreEqual(0f, pow(TestUtils.SignedFloatZero(), 2.6f), 1, false); TestUtils.AreEqual(0f, pow(0f, 2.6f), 1, false); TestUtils.AreEqual(24.0904655f, pow(3.4f, 2.6f), 1, false); TestUtils.AreEqual(float.PositiveInfinity, pow(float.PositiveInfinity, 2.6f), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(TestUtils.SignedFloatQNaN(), 2.6f), 1, false); TestUtils.AreEqual(float.PositiveInfinity, pow(float.NegativeInfinity, float.PositiveInfinity), 1, false); TestUtils.AreEqual(float.PositiveInfinity, pow(-3.4f, float.PositiveInfinity), 1, false); - TestUtils.AreEqual(0f, pow(-0.0f, float.PositiveInfinity), 1, false); + TestUtils.AreEqual(0f, pow(TestUtils.SignedFloatZero(), float.PositiveInfinity), 1, false); TestUtils.AreEqual(0f, pow(0f, float.PositiveInfinity), 1, false); TestUtils.AreEqual(float.PositiveInfinity, pow(3.4f, float.PositiveInfinity), 1, false); TestUtils.AreEqual(float.PositiveInfinity, pow(float.PositiveInfinity, float.PositiveInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(TestUtils.SignedFloatQNaN(), float.PositiveInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(float.NegativeInfinity, TestUtils.SignedFloatQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(-3.4f, TestUtils.SignedFloatQNaN()), 1, false); - TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(-0.0f, TestUtils.SignedFloatQNaN()), 1, false); + TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(TestUtils.SignedFloatZero(), TestUtils.SignedFloatQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(0f, TestUtils.SignedFloatQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(3.4f, TestUtils.SignedFloatQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(float.PositiveInfinity, TestUtils.SignedFloatQNaN()), 1, false); @@ -3848,27 +3846,26 @@ public static void pow_float() public static void pow_float2() { TestUtils.AreEqual(float2(0f, 0f), pow(float2(float.NegativeInfinity, -3.4f), float2(float.NegativeInfinity, float.NegativeInfinity)), 1, false); - TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), pow(float2(-0.0f, 0f), float2(float.NegativeInfinity, float.NegativeInfinity)), 1, false); + TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), pow(float2(TestUtils.SignedFloatZero(), 0f), float2(float.NegativeInfinity, float.NegativeInfinity)), 1, false); TestUtils.AreEqual(float2(0f, 0f), pow(float2(3.4f, float.PositiveInfinity), float2(float.NegativeInfinity, float.NegativeInfinity)), 1, false); - TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), 0f), pow(float2(TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float2(float.NegativeInfinity, -2.6f)), 1, false); - TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity), pow(float2(-3.4f, -0.0f), float2(-2.6f, -2.6f)), 1, false); - TestUtils.AreEqual(float2(float.PositiveInfinity, 0.0415102f), pow(float2(0f, 3.4f), float2(-2.6f, -2.6f)), 1, false); - TestUtils.AreEqual(float2(0f, TestUtils.SignedFloatQNaN()), pow(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float2(-2.6f, -2.6f)), 1, false); - TestUtils.AreEqual(float2(1f, 1f), pow(float2(float.NegativeInfinity, -3.4f), float2(-0.0f, -0.0f)), 1, false); - TestUtils.AreEqual(float2(1f, 1f), pow(float2(-0.0f, 0f), float2(-0.0f, -0.0f)), 1, false); - TestUtils.AreEqual(float2(1f, 1f), pow(float2(3.4f, float.PositiveInfinity), float2(-0.0f, -0.0f)), 1, false); - TestUtils.AreEqual(float2(1f, 1f), pow(float2(float.NegativeInfinity, -3.4f), float2(0f, 0f)), 1, false); - TestUtils.AreEqual(float2(1f, 1f), pow(float2(-0.0f, 0f), float2(0f, 0f)), 1, false); - TestUtils.AreEqual(float2(1f, 1f), pow(float2(3.4f, float.PositiveInfinity), float2(0f, 0f)), 1, false); - TestUtils.AreEqual(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()), pow(float2(float.NegativeInfinity, -3.4f), float2(2.6f, 2.6f)), 1, false); - TestUtils.AreEqual(float2(0f, 0f), pow(float2(-0.0f, 0f), float2(2.6f, 2.6f)), 1, false); + TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float2(TestUtils.SignedFloatQNaN(), -3.4f), float2(float.NegativeInfinity, -2.6f)), 1, false); + TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), pow(float2(TestUtils.SignedFloatZero(), 0f), float2(-2.6f, -2.6f)), 1, false); + TestUtils.AreEqual(float2(0.0415102f, 0f), pow(float2(3.4f, float.PositiveInfinity), float2(-2.6f, -2.6f)), 1, false); + TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), 1f), pow(float2(TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float2(-2.6f, TestUtils.SignedFloatZero())), 1, false); + TestUtils.AreEqual(float2(1f, 1f), pow(float2(-3.4f, TestUtils.SignedFloatZero()), float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())), 1, false); + TestUtils.AreEqual(float2(1f, 1f), pow(float2(0f, 3.4f), float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())), 1, false); + TestUtils.AreEqual(float2(1f, 1f), pow(float2(float.PositiveInfinity, float.NegativeInfinity), float2(TestUtils.SignedFloatZero(), 0f)), 1, false); + TestUtils.AreEqual(float2(1f, 1f), pow(float2(-3.4f, TestUtils.SignedFloatZero()), float2(0f, 0f)), 1, false); + TestUtils.AreEqual(float2(1f, 1f), pow(float2(0f, 3.4f), float2(0f, 0f)), 1, false); + TestUtils.AreEqual(float2(1f, TestUtils.SignedFloatQNaN()), pow(float2(float.PositiveInfinity, -3.4f), float2(0f, 2.6f)), 1, false); + TestUtils.AreEqual(float2(0f, 0f), pow(float2(TestUtils.SignedFloatZero(), 0f), float2(2.6f, 2.6f)), 1, false); TestUtils.AreEqual(float2(24.0904655f, float.PositiveInfinity), pow(float2(3.4f, float.PositiveInfinity), float2(2.6f, 2.6f)), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity), pow(float2(TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float2(2.6f, float.PositiveInfinity)), 1, false); - TestUtils.AreEqual(float2(float.PositiveInfinity, 0f), pow(float2(-3.4f, -0.0f), float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); + TestUtils.AreEqual(float2(float.PositiveInfinity, 0f), pow(float2(-3.4f, TestUtils.SignedFloatZero()), float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); TestUtils.AreEqual(float2(0f, float.PositiveInfinity), pow(float2(0f, 3.4f), float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); TestUtils.AreEqual(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()), pow(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float2(float.NegativeInfinity, -3.4f), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); - TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float2(-0.0f, 0f), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); + TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float2(TestUtils.SignedFloatZero(), 0f), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float2(3.4f, float.PositiveInfinity), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } @@ -3876,39 +3873,38 @@ public static void pow_float2() [TestCompiler] public static void pow_float3() { - TestUtils.AreEqual(float3(0f, 0f, float.PositiveInfinity), pow(float3(float.NegativeInfinity, -3.4f, -0.0f), float3(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); + TestUtils.AreEqual(float3(0f, 0f, float.PositiveInfinity), pow(float3(float.NegativeInfinity, -3.4f, TestUtils.SignedFloatZero()), float3(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); TestUtils.AreEqual(float3(float.PositiveInfinity, 0f, 0f), pow(float3(0f, 3.4f, float.PositiveInfinity), float3(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); - TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), 0f, TestUtils.SignedFloatQNaN()), pow(float3(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -3.4f), float3(float.NegativeInfinity, -2.6f, -2.6f)), 1, false); - TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, 0.0415102f), pow(float3(-0.0f, 0f, 3.4f), float3(-2.6f, -2.6f, -2.6f)), 1, false); - TestUtils.AreEqual(float3(0f, TestUtils.SignedFloatQNaN(), 1f), pow(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float3(-2.6f, -2.6f, -0.0f)), 1, false); - TestUtils.AreEqual(float3(1f, 1f, 1f), pow(float3(-3.4f, -0.0f, 0f), float3(-0.0f, -0.0f, -0.0f)), 1, false); - TestUtils.AreEqual(float3(1f, 1f, 1f), pow(float3(3.4f, float.PositiveInfinity, float.NegativeInfinity), float3(-0.0f, -0.0f, 0f)), 1, false); - TestUtils.AreEqual(float3(1f, 1f, 1f), pow(float3(-3.4f, -0.0f, 0f), float3(0f, 0f, 0f)), 1, false); - TestUtils.AreEqual(float3(1f, 1f, float.PositiveInfinity), pow(float3(3.4f, float.PositiveInfinity, float.NegativeInfinity), float3(0f, 0f, 2.6f)), 1, false); - TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), 0f, 0f), pow(float3(-3.4f, -0.0f, 0f), float3(2.6f, 2.6f, 2.6f)), 1, false); - TestUtils.AreEqual(float3(24.0904655f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()), pow(float3(3.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float3(2.6f, 2.6f, 2.6f)), 1, false); - TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, 0f), pow(float3(float.NegativeInfinity, -3.4f, -0.0f), float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); - TestUtils.AreEqual(float3(0f, float.PositiveInfinity, float.PositiveInfinity), pow(float3(0f, 3.4f, float.PositiveInfinity), float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); - TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float3(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -3.4f), float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); - TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float3(-0.0f, 0f, 3.4f), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); - TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); + TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), float.PositiveInfinity), pow(float3(TestUtils.SignedFloatQNaN(), -3.4f, TestUtils.SignedFloatZero()), float3(float.NegativeInfinity, -2.6f, -2.6f)), 1, false); + TestUtils.AreEqual(float3(float.PositiveInfinity, 0.0415102f, 0f), pow(float3(0f, 3.4f, float.PositiveInfinity), float3(-2.6f, -2.6f, -2.6f)), 1, false); + TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), 1f, 1f), pow(float3(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -3.4f), float3(-2.6f, TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())), 1, false); + TestUtils.AreEqual(float3(1f, 1f, 1f), pow(float3(TestUtils.SignedFloatZero(), 0f, 3.4f), float3(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())), 1, false); + TestUtils.AreEqual(float3(1f, 1f, 1f), pow(float3(float.PositiveInfinity, float.NegativeInfinity, -3.4f), float3(TestUtils.SignedFloatZero(), 0f, 0f)), 1, false); + TestUtils.AreEqual(float3(1f, 1f, 1f), pow(float3(TestUtils.SignedFloatZero(), 0f, 3.4f), float3(0f, 0f, 0f)), 1, false); + TestUtils.AreEqual(float3(1f, TestUtils.SignedFloatQNaN(), 0f), pow(float3(float.PositiveInfinity, -3.4f, TestUtils.SignedFloatZero()), float3(0f, 2.6f, 2.6f)), 1, false); + TestUtils.AreEqual(float3(0f, 24.0904655f, float.PositiveInfinity), pow(float3(0f, 3.4f, float.PositiveInfinity), float3(2.6f, 2.6f, 2.6f)), 1, false); + TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), pow(float3(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -3.4f), float3(2.6f, float.PositiveInfinity, float.PositiveInfinity)), 1, false); + TestUtils.AreEqual(float3(0f, 0f, float.PositiveInfinity), pow(float3(TestUtils.SignedFloatZero(), 0f, 3.4f), float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); + TestUtils.AreEqual(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float3(float.PositiveInfinity, float.PositiveInfinity, TestUtils.SignedFloatQNaN())), 1, false); + TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float3(-3.4f, TestUtils.SignedFloatZero(), 0f), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); + TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float3(3.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } [TestCompiler] public static void pow_float4() { - TestUtils.AreEqual(float4(0f, 0f, float.PositiveInfinity, float.PositiveInfinity), pow(float4(float.NegativeInfinity, -3.4f, -0.0f, 0f), float4(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); - TestUtils.AreEqual(float4(0f, 0f, TestUtils.SignedFloatQNaN(), 0f), pow(float4(3.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float4(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, -2.6f)), 1, false); - TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity, 0.0415102f), pow(float4(-3.4f, -0.0f, 0f, 3.4f), float4(-2.6f, -2.6f, -2.6f, -2.6f)), 1, false); - TestUtils.AreEqual(float4(0f, TestUtils.SignedFloatQNaN(), 1f, 1f), pow(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -3.4f), float4(-2.6f, -2.6f, -0.0f, -0.0f)), 1, false); - TestUtils.AreEqual(float4(1f, 1f, 1f, 1f), pow(float4(-0.0f, 0f, 3.4f, float.PositiveInfinity), float4(-0.0f, -0.0f, -0.0f, -0.0f)), 1, false); - TestUtils.AreEqual(float4(1f, 1f, 1f, 1f), pow(float4(float.NegativeInfinity, -3.4f, -0.0f, 0f), float4(0f, 0f, 0f, 0f)), 1, false); - TestUtils.AreEqual(float4(1f, 1f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()), pow(float4(3.4f, float.PositiveInfinity, float.NegativeInfinity, -3.4f), float4(0f, 0f, 2.6f, 2.6f)), 1, false); - TestUtils.AreEqual(float4(0f, 0f, 24.0904655f, float.PositiveInfinity), pow(float4(-0.0f, 0f, 3.4f, float.PositiveInfinity), float4(2.6f, 2.6f, 2.6f, 2.6f)), 1, false); - TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity, 0f), pow(float4(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -3.4f, -0.0f), float4(2.6f, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); - TestUtils.AreEqual(float4(0f, float.PositiveInfinity, float.PositiveInfinity, TestUtils.SignedFloatQNaN()), pow(float4(0f, 3.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float4(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); - TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float4(float.NegativeInfinity, -3.4f, -0.0f, 0f), float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); - TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float4(3.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); + TestUtils.AreEqual(float4(0f, 0f, float.PositiveInfinity, float.PositiveInfinity), pow(float4(float.NegativeInfinity, -3.4f, TestUtils.SignedFloatZero(), 0f), float4(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); + TestUtils.AreEqual(float4(0f, 0f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float4(3.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), -3.4f), float4(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, -2.6f)), 1, false); + TestUtils.AreEqual(float4(float.PositiveInfinity, float.PositiveInfinity, 0.0415102f, 0f), pow(float4(TestUtils.SignedFloatZero(), 0f, 3.4f, float.PositiveInfinity), float4(-2.6f, -2.6f, -2.6f, -2.6f)), 1, false); + TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), 1f, 1f, 1f), pow(float4(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -3.4f, TestUtils.SignedFloatZero()), float4(-2.6f, TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero())), 1, false); + TestUtils.AreEqual(float4(1f, 1f, 1f, 1f), pow(float4(0f, 3.4f, float.PositiveInfinity, float.NegativeInfinity), float4(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), 0f)), 1, false); + TestUtils.AreEqual(float4(1f, 1f, 1f, 1f), pow(float4(-3.4f, TestUtils.SignedFloatZero(), 0f, 3.4f), float4(0f, 0f, 0f, 0f)), 1, false); + TestUtils.AreEqual(float4(1f, TestUtils.SignedFloatQNaN(), 0f, 0f), pow(float4(float.PositiveInfinity, -3.4f, TestUtils.SignedFloatZero(), 0f), float4(0f, 2.6f, 2.6f, 2.6f)), 1, false); + TestUtils.AreEqual(float4(24.0904655f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity), pow(float4(3.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.NegativeInfinity), float4(2.6f, 2.6f, 2.6f, float.PositiveInfinity)), 1, false); + TestUtils.AreEqual(float4(float.PositiveInfinity, 0f, 0f, float.PositiveInfinity), pow(float4(-3.4f, TestUtils.SignedFloatZero(), 0f, 3.4f), float4(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); + TestUtils.AreEqual(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.NegativeInfinity, -3.4f), float4(float.PositiveInfinity, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); + TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float4(TestUtils.SignedFloatZero(), 0f, 3.4f, float.PositiveInfinity), float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); + TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } [TestCompiler] @@ -3916,47 +3912,45 @@ public static void pow_double() { TestUtils.AreEqual(0.0, pow(double.NegativeInfinity, double.NegativeInfinity), 1, false); TestUtils.AreEqual(0.0, pow(-3.4, double.NegativeInfinity), 1, false); - TestUtils.AreEqual(double.PositiveInfinity, pow(-0.0, double.NegativeInfinity), 1, false); + TestUtils.AreEqual(double.PositiveInfinity, pow(TestUtils.SignedDoubleZero(), double.NegativeInfinity), 1, false); TestUtils.AreEqual(double.PositiveInfinity, pow(0.0, double.NegativeInfinity), 1, false); TestUtils.AreEqual(0.0, pow(3.4, double.NegativeInfinity), 1, false); TestUtils.AreEqual(0.0, pow(double.PositiveInfinity, double.NegativeInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), 1, false); - TestUtils.AreEqual(0.0, pow(double.NegativeInfinity, -2.6), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(-3.4, -2.6), 1, false); - TestUtils.AreEqual(double.PositiveInfinity, pow(-0.0, -2.6), 1, false); + TestUtils.AreEqual(double.PositiveInfinity, pow(TestUtils.SignedDoubleZero(), -2.6), 1, false); TestUtils.AreEqual(double.PositiveInfinity, pow(0.0, -2.6), 1, false); TestUtils.AreEqual(0.041510199028461224, pow(3.4, -2.6), 1, false); TestUtils.AreEqual(0.0, pow(double.PositiveInfinity, -2.6), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(TestUtils.SignedDoubleQNaN(), -2.6), 1, false); - TestUtils.AreEqual(1.0, pow(double.NegativeInfinity, -0.0), 1, false); - TestUtils.AreEqual(1.0, pow(-3.4, -0.0), 1, false); - TestUtils.AreEqual(1.0, pow(-0.0, -0.0), 1, false); - TestUtils.AreEqual(1.0, pow(0.0, -0.0), 1, false); - TestUtils.AreEqual(1.0, pow(3.4, -0.0), 1, false); - TestUtils.AreEqual(1.0, pow(double.PositiveInfinity, -0.0), 1, false); + TestUtils.AreEqual(1.0, pow(double.NegativeInfinity, TestUtils.SignedDoubleZero()), 1, false); + TestUtils.AreEqual(1.0, pow(-3.4, TestUtils.SignedDoubleZero()), 1, false); + TestUtils.AreEqual(1.0, pow(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero()), 1, false); + TestUtils.AreEqual(1.0, pow(0.0, TestUtils.SignedDoubleZero()), 1, false); + TestUtils.AreEqual(1.0, pow(3.4, TestUtils.SignedDoubleZero()), 1, false); + TestUtils.AreEqual(1.0, pow(double.PositiveInfinity, TestUtils.SignedDoubleZero()), 1, false); TestUtils.AreEqual(1.0, pow(double.NegativeInfinity, 0.0), 1, false); TestUtils.AreEqual(1.0, pow(-3.4, 0.0), 1, false); - TestUtils.AreEqual(1.0, pow(-0.0, 0.0), 1, false); + TestUtils.AreEqual(1.0, pow(TestUtils.SignedDoubleZero(), 0.0), 1, false); TestUtils.AreEqual(1.0, pow(0.0, 0.0), 1, false); TestUtils.AreEqual(1.0, pow(3.4, 0.0), 1, false); TestUtils.AreEqual(1.0, pow(double.PositiveInfinity, 0.0), 1, false); - TestUtils.AreEqual(double.PositiveInfinity, pow(double.NegativeInfinity, 2.6), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(-3.4, 2.6), 1, false); - TestUtils.AreEqual(0.0, pow(-0.0, 2.6), 1, false); + TestUtils.AreEqual(0.0, pow(TestUtils.SignedDoubleZero(), 2.6), 1, false); TestUtils.AreEqual(0.0, pow(0.0, 2.6), 1, false); TestUtils.AreEqual(24.090465076169735, pow(3.4, 2.6), 1, false); TestUtils.AreEqual(double.PositiveInfinity, pow(double.PositiveInfinity, 2.6), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(TestUtils.SignedDoubleQNaN(), 2.6), 1, false); TestUtils.AreEqual(double.PositiveInfinity, pow(double.NegativeInfinity, double.PositiveInfinity), 1, false); TestUtils.AreEqual(double.PositiveInfinity, pow(-3.4, double.PositiveInfinity), 1, false); - TestUtils.AreEqual(0.0, pow(-0.0, double.PositiveInfinity), 1, false); + TestUtils.AreEqual(0.0, pow(TestUtils.SignedDoubleZero(), double.PositiveInfinity), 1, false); TestUtils.AreEqual(0.0, pow(0.0, double.PositiveInfinity), 1, false); TestUtils.AreEqual(double.PositiveInfinity, pow(3.4, double.PositiveInfinity), 1, false); TestUtils.AreEqual(double.PositiveInfinity, pow(double.PositiveInfinity, double.PositiveInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(double.NegativeInfinity, TestUtils.SignedDoubleQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(-3.4, TestUtils.SignedDoubleQNaN()), 1, false); - TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(-0.0, TestUtils.SignedDoubleQNaN()), 1, false); + TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(0.0, TestUtils.SignedDoubleQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(3.4, TestUtils.SignedDoubleQNaN()), 1, false); TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), 1, false); @@ -3967,27 +3961,26 @@ public static void pow_double() public static void pow_double2() { TestUtils.AreEqual(double2(0.0, 0.0), pow(double2(double.NegativeInfinity, -3.4), double2(double.NegativeInfinity, double.NegativeInfinity)), 1, false); - TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), pow(double2(-0.0, 0.0), double2(double.NegativeInfinity, double.NegativeInfinity)), 1, false); + TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), pow(double2(TestUtils.SignedDoubleZero(), 0.0), double2(double.NegativeInfinity, double.NegativeInfinity)), 1, false); TestUtils.AreEqual(double2(0.0, 0.0), pow(double2(3.4, double.PositiveInfinity), double2(double.NegativeInfinity, double.NegativeInfinity)), 1, false); - TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), 0.0), pow(double2(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double2(double.NegativeInfinity, -2.6)), 1, false); - TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), pow(double2(-3.4, -0.0), double2(-2.6, -2.6)), 1, false); - TestUtils.AreEqual(double2(double.PositiveInfinity, 0.041510199028461224), pow(double2(0.0, 3.4), double2(-2.6, -2.6)), 1, false); - TestUtils.AreEqual(double2(0.0, TestUtils.SignedDoubleQNaN()), pow(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double2(-2.6, -2.6)), 1, false); - TestUtils.AreEqual(double2(1.0, 1.0), pow(double2(double.NegativeInfinity, -3.4), double2(-0.0, -0.0)), 1, false); - TestUtils.AreEqual(double2(1.0, 1.0), pow(double2(-0.0, 0.0), double2(-0.0, -0.0)), 1, false); - TestUtils.AreEqual(double2(1.0, 1.0), pow(double2(3.4, double.PositiveInfinity), double2(-0.0, -0.0)), 1, false); - TestUtils.AreEqual(double2(1.0, 1.0), pow(double2(double.NegativeInfinity, -3.4), double2(0.0, 0.0)), 1, false); - TestUtils.AreEqual(double2(1.0, 1.0), pow(double2(-0.0, 0.0), double2(0.0, 0.0)), 1, false); - TestUtils.AreEqual(double2(1.0, 1.0), pow(double2(3.4, double.PositiveInfinity), double2(0.0, 0.0)), 1, false); - TestUtils.AreEqual(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), pow(double2(double.NegativeInfinity, -3.4), double2(2.6, 2.6)), 1, false); - TestUtils.AreEqual(double2(0.0, 0.0), pow(double2(-0.0, 0.0), double2(2.6, 2.6)), 1, false); + TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double2(TestUtils.SignedDoubleQNaN(), -3.4), double2(double.NegativeInfinity, -2.6)), 1, false); + TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), pow(double2(TestUtils.SignedDoubleZero(), 0.0), double2(-2.6, -2.6)), 1, false); + TestUtils.AreEqual(double2(0.041510199028461224, 0.0), pow(double2(3.4, double.PositiveInfinity), double2(-2.6, -2.6)), 1, false); + TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), 1.0), pow(double2(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double2(-2.6, TestUtils.SignedDoubleZero())), 1, false); + TestUtils.AreEqual(double2(1.0, 1.0), pow(double2(-3.4, TestUtils.SignedDoubleZero()), double2(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())), 1, false); + TestUtils.AreEqual(double2(1.0, 1.0), pow(double2(0.0, 3.4), double2(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())), 1, false); + TestUtils.AreEqual(double2(1.0, 1.0), pow(double2(double.PositiveInfinity, double.NegativeInfinity), double2(TestUtils.SignedDoubleZero(), 0.0)), 1, false); + TestUtils.AreEqual(double2(1.0, 1.0), pow(double2(-3.4, TestUtils.SignedDoubleZero()), double2(0.0, 0.0)), 1, false); + TestUtils.AreEqual(double2(1.0, 1.0), pow(double2(0.0, 3.4), double2(0.0, 0.0)), 1, false); + TestUtils.AreEqual(double2(1.0, TestUtils.SignedDoubleQNaN()), pow(double2(double.PositiveInfinity, -3.4), double2(0.0, 2.6)), 1, false); + TestUtils.AreEqual(double2(0.0, 0.0), pow(double2(TestUtils.SignedDoubleZero(), 0.0), double2(2.6, 2.6)), 1, false); TestUtils.AreEqual(double2(24.090465076169735, double.PositiveInfinity), pow(double2(3.4, double.PositiveInfinity), double2(2.6, 2.6)), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), pow(double2(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double2(2.6, double.PositiveInfinity)), 1, false); - TestUtils.AreEqual(double2(double.PositiveInfinity, 0.0), pow(double2(-3.4, -0.0), double2(double.PositiveInfinity, double.PositiveInfinity)), 1, false); + TestUtils.AreEqual(double2(double.PositiveInfinity, 0.0), pow(double2(-3.4, TestUtils.SignedDoubleZero()), double2(double.PositiveInfinity, double.PositiveInfinity)), 1, false); TestUtils.AreEqual(double2(0.0, double.PositiveInfinity), pow(double2(0.0, 3.4), double2(double.PositiveInfinity, double.PositiveInfinity)), 1, false); TestUtils.AreEqual(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), pow(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double2(double.PositiveInfinity, double.PositiveInfinity)), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double2(double.NegativeInfinity, -3.4), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); - TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double2(-0.0, 0.0), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); + TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double2(TestUtils.SignedDoubleZero(), 0.0), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double2(3.4, double.PositiveInfinity), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } @@ -3995,39 +3988,38 @@ public static void pow_double2() [TestCompiler] public static void pow_double3() { - TestUtils.AreEqual(double3(0.0, 0.0, double.PositiveInfinity), pow(double3(double.NegativeInfinity, -3.4, -0.0), double3(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); + TestUtils.AreEqual(double3(0.0, 0.0, double.PositiveInfinity), pow(double3(double.NegativeInfinity, -3.4, TestUtils.SignedDoubleZero()), double3(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); TestUtils.AreEqual(double3(double.PositiveInfinity, 0.0, 0.0), pow(double3(0.0, 3.4, double.PositiveInfinity), double3(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); - TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), 0.0, TestUtils.SignedDoubleQNaN()), pow(double3(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -3.4), double3(double.NegativeInfinity, -2.6, -2.6)), 1, false); - TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, 0.041510199028461224), pow(double3(-0.0, 0.0, 3.4), double3(-2.6, -2.6, -2.6)), 1, false); - TestUtils.AreEqual(double3(0.0, TestUtils.SignedDoubleQNaN(), 1.0), pow(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double3(-2.6, -2.6, -0.0)), 1, false); - TestUtils.AreEqual(double3(1.0, 1.0, 1.0), pow(double3(-3.4, -0.0, 0.0), double3(-0.0, -0.0, -0.0)), 1, false); - TestUtils.AreEqual(double3(1.0, 1.0, 1.0), pow(double3(3.4, double.PositiveInfinity, double.NegativeInfinity), double3(-0.0, -0.0, 0.0)), 1, false); - TestUtils.AreEqual(double3(1.0, 1.0, 1.0), pow(double3(-3.4, -0.0, 0.0), double3(0.0, 0.0, 0.0)), 1, false); - TestUtils.AreEqual(double3(1.0, 1.0, double.PositiveInfinity), pow(double3(3.4, double.PositiveInfinity, double.NegativeInfinity), double3(0.0, 0.0, 2.6)), 1, false); - TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), 0.0, 0.0), pow(double3(-3.4, -0.0, 0.0), double3(2.6, 2.6, 2.6)), 1, false); - TestUtils.AreEqual(double3(24.090465076169735, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), pow(double3(3.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double3(2.6, 2.6, 2.6)), 1, false); - TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, 0.0), pow(double3(double.NegativeInfinity, -3.4, -0.0), double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); - TestUtils.AreEqual(double3(0.0, double.PositiveInfinity, double.PositiveInfinity), pow(double3(0.0, 3.4, double.PositiveInfinity), double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); - TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double3(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -3.4), double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); - TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double3(-0.0, 0.0, 3.4), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); - TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); + TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), pow(double3(TestUtils.SignedDoubleQNaN(), -3.4, TestUtils.SignedDoubleZero()), double3(double.NegativeInfinity, -2.6, -2.6)), 1, false); + TestUtils.AreEqual(double3(double.PositiveInfinity, 0.041510199028461224, 0.0), pow(double3(0.0, 3.4, double.PositiveInfinity), double3(-2.6, -2.6, -2.6)), 1, false); + TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), 1.0, 1.0), pow(double3(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -3.4), double3(-2.6, TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())), 1, false); + TestUtils.AreEqual(double3(1.0, 1.0, 1.0), pow(double3(TestUtils.SignedDoubleZero(), 0.0, 3.4), double3(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())), 1, false); + TestUtils.AreEqual(double3(1.0, 1.0, 1.0), pow(double3(double.PositiveInfinity, double.NegativeInfinity, -3.4), double3(TestUtils.SignedDoubleZero(), 0.0, 0.0)), 1, false); + TestUtils.AreEqual(double3(1.0, 1.0, 1.0), pow(double3(TestUtils.SignedDoubleZero(), 0.0, 3.4), double3(0.0, 0.0, 0.0)), 1, false); + TestUtils.AreEqual(double3(1.0, TestUtils.SignedDoubleQNaN(), 0.0), pow(double3(double.PositiveInfinity, -3.4, TestUtils.SignedDoubleZero()), double3(0.0, 2.6, 2.6)), 1, false); + TestUtils.AreEqual(double3(0.0, 24.090465076169735, double.PositiveInfinity), pow(double3(0.0, 3.4, double.PositiveInfinity), double3(2.6, 2.6, 2.6)), 1, false); + TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), pow(double3(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -3.4), double3(2.6, double.PositiveInfinity, double.PositiveInfinity)), 1, false); + TestUtils.AreEqual(double3(0.0, 0.0, double.PositiveInfinity), pow(double3(TestUtils.SignedDoubleZero(), 0.0, 3.4), double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); + TestUtils.AreEqual(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double3(double.PositiveInfinity, double.PositiveInfinity, TestUtils.SignedDoubleQNaN())), 1, false); + TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double3(-3.4, TestUtils.SignedDoubleZero(), 0.0), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); + TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double3(3.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } [TestCompiler] public static void pow_double4() { - TestUtils.AreEqual(double4(0.0, 0.0, double.PositiveInfinity, double.PositiveInfinity), pow(double4(double.NegativeInfinity, -3.4, -0.0, 0.0), double4(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); - TestUtils.AreEqual(double4(0.0, 0.0, TestUtils.SignedDoubleQNaN(), 0.0), pow(double4(3.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double4(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity, -2.6)), 1, false); - TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity, 0.041510199028461224), pow(double4(-3.4, -0.0, 0.0, 3.4), double4(-2.6, -2.6, -2.6, -2.6)), 1, false); - TestUtils.AreEqual(double4(0.0, TestUtils.SignedDoubleQNaN(), 1.0, 1.0), pow(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -3.4), double4(-2.6, -2.6, -0.0, -0.0)), 1, false); - TestUtils.AreEqual(double4(1.0, 1.0, 1.0, 1.0), pow(double4(-0.0, 0.0, 3.4, double.PositiveInfinity), double4(-0.0, -0.0, -0.0, -0.0)), 1, false); - TestUtils.AreEqual(double4(1.0, 1.0, 1.0, 1.0), pow(double4(double.NegativeInfinity, -3.4, -0.0, 0.0), double4(0.0, 0.0, 0.0, 0.0)), 1, false); - TestUtils.AreEqual(double4(1.0, 1.0, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), pow(double4(3.4, double.PositiveInfinity, double.NegativeInfinity, -3.4), double4(0.0, 0.0, 2.6, 2.6)), 1, false); - TestUtils.AreEqual(double4(0.0, 0.0, 24.090465076169735, double.PositiveInfinity), pow(double4(-0.0, 0.0, 3.4, double.PositiveInfinity), double4(2.6, 2.6, 2.6, 2.6)), 1, false); - TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity, 0.0), pow(double4(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -3.4, -0.0), double4(2.6, double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); - TestUtils.AreEqual(double4(0.0, double.PositiveInfinity, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), pow(double4(0.0, 3.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double4(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); - TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double4(double.NegativeInfinity, -3.4, -0.0, 0.0), double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); - TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double4(3.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); + TestUtils.AreEqual(double4(0.0, 0.0, double.PositiveInfinity, double.PositiveInfinity), pow(double4(double.NegativeInfinity, -3.4, TestUtils.SignedDoubleZero(), 0.0), double4(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); + TestUtils.AreEqual(double4(0.0, 0.0, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double4(3.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), -3.4), double4(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity, -2.6)), 1, false); + TestUtils.AreEqual(double4(double.PositiveInfinity, double.PositiveInfinity, 0.041510199028461224, 0.0), pow(double4(TestUtils.SignedDoubleZero(), 0.0, 3.4, double.PositiveInfinity), double4(-2.6, -2.6, -2.6, -2.6)), 1, false); + TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), 1.0, 1.0, 1.0), pow(double4(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -3.4, TestUtils.SignedDoubleZero()), double4(-2.6, TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero())), 1, false); + TestUtils.AreEqual(double4(1.0, 1.0, 1.0, 1.0), pow(double4(0.0, 3.4, double.PositiveInfinity, double.NegativeInfinity), double4(TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero(), TestUtils.SignedDoubleZero(), 0.0)), 1, false); + TestUtils.AreEqual(double4(1.0, 1.0, 1.0, 1.0), pow(double4(-3.4, TestUtils.SignedDoubleZero(), 0.0, 3.4), double4(0.0, 0.0, 0.0, 0.0)), 1, false); + TestUtils.AreEqual(double4(1.0, TestUtils.SignedDoubleQNaN(), 0.0, 0.0), pow(double4(double.PositiveInfinity, -3.4, TestUtils.SignedDoubleZero(), 0.0), double4(0.0, 2.6, 2.6, 2.6)), 1, false); + TestUtils.AreEqual(double4(24.090465076169735, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), pow(double4(3.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.NegativeInfinity), double4(2.6, 2.6, 2.6, double.PositiveInfinity)), 1, false); + TestUtils.AreEqual(double4(double.PositiveInfinity, 0.0, 0.0, double.PositiveInfinity), pow(double4(-3.4, TestUtils.SignedDoubleZero(), 0.0, 3.4), double4(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); + TestUtils.AreEqual(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, -3.4), double4(double.PositiveInfinity, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); + TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double4(TestUtils.SignedDoubleZero(), 0.0, 3.4, double.PositiveInfinity), double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); + TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } [TestCompiler] diff --git a/src/Tests/Tests/Shared/TestUtils.cs b/src/Tests/Tests/Shared/TestUtils.cs index 0edd372d..48de3b4f 100644 --- a/src/Tests/Tests/Shared/TestUtils.cs +++ b/src/Tests/Tests/Shared/TestUtils.cs @@ -733,5 +733,15 @@ public static double SignedDoubleQNaN() { return asdouble(0xfff8_0000_0000_0000ul); } + + public static float SignedFloatZero() + { + return asfloat(0x8000_0000u); + } + + public static double SignedDoubleZero() + { + return asdouble(0x8000_0000_0000_0000ul); + } } } diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index 210003f8..26294da7 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -2424,7 +2424,7 @@ private string ToLiteral(T value) else if (float.IsNaN(f)) return uf < 0x80000000u ? "TestUtils.UnsignedFloatQNaN()" : "TestUtils.SignedFloatQNaN()"; else if (uf == 0x80000000u) - return "-0.0f"; + return "TestUtils.SignedFloatZero()"; else return ((float)(object)value).ToString("R") + "f"; } @@ -2443,7 +2443,7 @@ private string ToLiteral(T value) else if (double.IsNaN(d)) return ud < 0x8000000000000000ul ? "TestUtils.UnsignedDoubleQNaN()" : "TestUtils.SignedDoubleQNaN()"; else if (ud == 0x8000000000000000ul) - return "-0.0"; + return "TestUtils.SignedDoubleZero()"; else { string s = ((double)(object)value).ToString("R"); @@ -2900,23 +2900,23 @@ private void GenerateMathTests(StringBuilder str) GenerateComponentWiseTestFloatAndDouble(str, "pow", new double[,] { { double.NegativeInfinity, double.NegativeInfinity }, { -3.4, double.NegativeInfinity }, { -0.0, double.NegativeInfinity}, { 0.0, double.NegativeInfinity}, { 3.4, double.NegativeInfinity}, { double.PositiveInfinity, double.NegativeInfinity}, { double.NaN, double.NegativeInfinity}, - { double.NegativeInfinity, -2.6}, { -3.4, -2.6}, { -0.0, -2.6}, { 0.0, -2.6}, { 3.4, -2.6}, { double.PositiveInfinity, -2.6}, { double.NaN, -2.6}, + /*{ double.NegativeInfinity, -2.6} DOTS-1833 */ { -3.4, -2.6}, { -0.0, -2.6}, { 0.0, -2.6}, { 3.4, -2.6}, { double.PositiveInfinity, -2.6}, { double.NaN, -2.6}, { double.NegativeInfinity, -0.0}, { -3.4, -0.0}, { -0.0, -0.0}, { 0.0, -0.0}, { 3.4, -0.0}, { double.PositiveInfinity, -0.0}, // { double.NaN, -0.0}, // TODO: fails with burst { double.NegativeInfinity, 0.0}, { -3.4, 0.0}, { -0.0, 0.0}, { 0.0, 0.0}, { 3.4, 0.0}, { double.PositiveInfinity, 0.0}, // { double.NaN, 0.0}, // TODO: fails with burst - { double.NegativeInfinity, 2.6}, { -3.4, 2.6}, { -0.0, 2.6}, { 0.0, 2.6}, { 3.4, 2.6}, { double.PositiveInfinity, 2.6}, { double.NaN, 2.6}, + /*{ double.NegativeInfinity, 2.6}, DOTS-1833 */ { -3.4, 2.6}, { -0.0, 2.6}, { 0.0, 2.6}, { 3.4, 2.6}, { double.PositiveInfinity, 2.6}, { double.NaN, 2.6}, { double.NegativeInfinity, double.PositiveInfinity}, { -3.4, double.PositiveInfinity}, { -0.0, double.PositiveInfinity}, { 0.0, double.PositiveInfinity}, { 3.4, double.PositiveInfinity}, { double.PositiveInfinity, double.PositiveInfinity}, { double.NaN, double.PositiveInfinity}, { double.NegativeInfinity, double.NaN}, { -3.4, double.NaN}, { -0.0, double.NaN}, { 0.0, double.NaN}, { 3.4, double.NaN}, { double.PositiveInfinity, double.NaN}, { double.NaN, double.NaN}, }, new double[] { 0.0, 0.0, double.PositiveInfinity, double.PositiveInfinity, 0.0, 0.0, double.NaN, - 0.0, double.NaN, double.PositiveInfinity, double.PositiveInfinity, 0.041510199028461224, 0.0, double.NaN, + /*0.0, DOTS-1833 */ double.NaN, double.PositiveInfinity, double.PositiveInfinity, 0.041510199028461224, 0.0, double.NaN, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, // double.NaN, // TODO: fails with burst 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, // double.NaN, // TODO: fails with burst - double.PositiveInfinity, double.NaN, 0.0, 0.0, 24.090465076169736, double.PositiveInfinity, double.NaN, + /*double.PositiveInfinity, DOTS-1833 */ double.NaN, 0.0, 0.0, 24.090465076169736, double.PositiveInfinity, double.NaN, double.PositiveInfinity, double.PositiveInfinity, 0.0, 0.0, double.PositiveInfinity, double.PositiveInfinity, double.NaN, double.NaN, double.NaN, double.NaN, double.NaN, double.NaN, double.NaN, double.NaN, diff --git a/src/Unity.Mathematics/Properties/AssemblyInfo.cs b/src/Unity.Mathematics/Properties/AssemblyInfo.cs index cf79a97d..c090f5b4 100644 --- a/src/Unity.Mathematics/Properties/AssemblyInfo.cs +++ b/src/Unity.Mathematics/Properties/AssemblyInfo.cs @@ -1,8 +1,9 @@ -#if !UNITY_DOTSPLAYER -using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +#if !UNITY_DOTSPLAYER +using System.Reflection; + // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. @@ -39,7 +40,8 @@ [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] +#endif + [assembly: InternalsVisibleTo("Unity.Mathematics.Tests")] [assembly: InternalsVisibleTo("Unity.Mathematics.PerformanceTests")] -[assembly: InternalsVisibleTo("btests")] -#endif +[assembly: InternalsVisibleTo("btests")] \ No newline at end of file From fb7e80a1399172a77c69920f939b6bb3a642932c Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Wed, 1 Jul 2020 18:32:58 -0700 Subject: [PATCH 305/437] DOTS-2112 Adding aggressive inlining attribute to a bunch of static functions. --- src/CHANGELOG.md | 1 + src/Unity.Mathematics/math.cs | 270 +++++++++++++++++++++++ src/Unity.Mathematics/matrix.cs | 47 ++++ src/Unity.Mathematics/quaternion.cs | 10 + src/Unity.Mathematics/rigid_transform.cs | 1 + 5 files changed, 329 insertions(+) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index c75d3651..589ddadc 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- Added [MethodImpl(MethodImplOptions.AggressiveInlining)] to many static functions to improve IL2CPP performance. - Added compress() that accepts a float4 and uint4. - Added math.project() and math.projectsafe() for vector projection. - Added math.EPSILON, math.INFINITY, math.NAN and their double counterparts. diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 2c6e7b7b..5d59cd78 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -1124,721 +1124,937 @@ public static bool4 ispow2(uint4 x) /// Returns the tangent of a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float tan(float x) { return (float)System.Math.Tan(x); } /// Returns the componentwise tangent of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 tan(float2 x) { return new float2(tan(x.x), tan(x.y)); } /// Returns the componentwise tangent of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 tan(float3 x) { return new float3(tan(x.x), tan(x.y), tan(x.z)); } /// Returns the componentwise tangent of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 tan(float4 x) { return new float4(tan(x.x), tan(x.y), tan(x.z), tan(x.w)); } /// Returns the tangent of a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double tan(double x) { return System.Math.Tan(x); } /// Returns the componentwise tangent of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 tan(double2 x) { return new double2(tan(x.x), tan(x.y)); } /// Returns the componentwise tangent of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 tan(double3 x) { return new double3(tan(x.x), tan(x.y), tan(x.z)); } /// Returns the componentwise tangent of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 tan(double4 x) { return new double4(tan(x.x), tan(x.y), tan(x.z), tan(x.w)); } /// Returns the hyperbolic tangent of a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float tanh(float x) { return (float)System.Math.Tanh(x); } /// Returns the componentwise hyperbolic tangent of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 tanh(float2 x) { return new float2(tanh(x.x), tanh(x.y)); } /// Returns the componentwise hyperbolic tangent of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 tanh(float3 x) { return new float3(tanh(x.x), tanh(x.y), tanh(x.z)); } /// Returns the componentwise hyperbolic tangent of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 tanh(float4 x) { return new float4(tanh(x.x), tanh(x.y), tanh(x.z), tanh(x.w)); } /// Returns the hyperbolic tangent of a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double tanh(double x) { return System.Math.Tanh(x); } /// Returns the componentwise hyperbolic tangent of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 tanh(double2 x) { return new double2(tanh(x.x), tanh(x.y)); } /// Returns the componentwise hyperbolic tangent of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 tanh(double3 x) { return new double3(tanh(x.x), tanh(x.y), tanh(x.z)); } /// Returns the componentwise hyperbolic tangent of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 tanh(double4 x) { return new double4(tanh(x.x), tanh(x.y), tanh(x.z), tanh(x.w)); } /// Returns the arctangent of a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float atan(float x) { return (float)System.Math.Atan(x); } /// Returns the componentwise arctangent of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 atan(float2 x) { return new float2(atan(x.x), atan(x.y)); } /// Returns the componentwise arctangent of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 atan(float3 x) { return new float3(atan(x.x), atan(x.y), atan(x.z)); } /// Returns the componentwise arctangent of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 atan(float4 x) { return new float4(atan(x.x), atan(x.y), atan(x.z), atan(x.w)); } /// Returns the arctangent of a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double atan(double x) { return System.Math.Atan(x); } /// Returns the componentwise arctangent of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 atan(double2 x) { return new double2(atan(x.x), atan(x.y)); } /// Returns the componentwise arctangent of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 atan(double3 x) { return new double3(atan(x.x), atan(x.y), atan(x.z)); } /// Returns the componentwise arctangent of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 atan(double4 x) { return new double4(atan(x.x), atan(x.y), atan(x.z), atan(x.w)); } /// Returns the 2-argument arctangent of a pair of float values. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float atan2(float y, float x) { return (float)System.Math.Atan2(y, x); } /// Returns the componentwise 2-argument arctangent of a pair of floats2 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 atan2(float2 y, float2 x) { return new float2(atan2(y.x, x.x), atan2(y.y, x.y)); } /// Returns the componentwise 2-argument arctangent of a pair of floats3 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 atan2(float3 y, float3 x) { return new float3(atan2(y.x, x.x), atan2(y.y, x.y), atan2(y.z, x.z)); } /// Returns the componentwise 2-argument arctangent of a pair of floats4 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 atan2(float4 y, float4 x) { return new float4(atan2(y.x, x.x), atan2(y.y, x.y), atan2(y.z, x.z), atan2(y.w, x.w)); } /// Returns the 2-argument arctangent of a pair of double values. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double atan2(double y, double x) { return System.Math.Atan2(y, x); } /// Returns the 2-argument arctangent of a pair of double2 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 atan2(double2 y, double2 x) { return new double2(atan2(y.x, x.x), atan2(y.y, x.y)); } /// Returns the 2-argument arctangent of a pair of double3 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 atan2(double3 y, double3 x) { return new double3(atan2(y.x, x.x), atan2(y.y, x.y), atan2(y.z, x.z)); } /// Returns the 2-argument arctangent of a pair of double4 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 atan2(double4 y, double4 x) { return new double4(atan2(y.x, x.x), atan2(y.y, x.y), atan2(y.z, x.z), atan2(y.w, x.w)); } /// Returns the cosine of a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cos(float x) { return (float)System.Math.Cos(x); } /// Returns the componentwise cosine of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 cos(float2 x) { return new float2(cos(x.x), cos(x.y)); } /// Returns the componentwise cosine of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 cos(float3 x) { return new float3(cos(x.x), cos(x.y), cos(x.z)); } /// Returns the componentwise cosine of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 cos(float4 x) { return new float4(cos(x.x), cos(x.y), cos(x.z), cos(x.w)); } /// Returns the cosine of a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double cos(double x) { return System.Math.Cos(x); } /// Returns the componentwise cosine of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 cos(double2 x) { return new double2(cos(x.x), cos(x.y)); } /// Returns the componentwise cosine of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 cos(double3 x) { return new double3(cos(x.x), cos(x.y), cos(x.z)); } /// Returns the componentwise cosine of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 cos(double4 x) { return new double4(cos(x.x), cos(x.y), cos(x.z), cos(x.w)); } /// Returns the hyperbolic cosine of a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cosh(float x) { return (float)System.Math.Cosh(x); } /// Returns the componentwise hyperbolic cosine of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 cosh(float2 x) { return new float2(cosh(x.x), cosh(x.y)); } /// Returns the componentwise hyperbolic cosine of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 cosh(float3 x) { return new float3(cosh(x.x), cosh(x.y), cosh(x.z)); } /// Returns the componentwise hyperbolic cosine of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 cosh(float4 x) { return new float4(cosh(x.x), cosh(x.y), cosh(x.z), cosh(x.w)); } /// Returns the hyperbolic cosine of a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double cosh(double x) { return System.Math.Cosh(x); } /// Returns the componentwise hyperbolic cosine of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 cosh(double2 x) { return new double2(cosh(x.x), cosh(x.y)); } /// Returns the componentwise hyperbolic cosine of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 cosh(double3 x) { return new double3(cosh(x.x), cosh(x.y), cosh(x.z)); } /// Returns the componentwise hyperbolic cosine of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 cosh(double4 x) { return new double4(cosh(x.x), cosh(x.y), cosh(x.z), cosh(x.w)); } /// Returns the arccosine of a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float acos(float x) { return (float)System.Math.Acos((float)x); } /// Returns the componentwise arccosine of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 acos(float2 x) { return new float2(acos(x.x), acos(x.y)); } /// Returns the componentwise arccosine of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 acos(float3 x) { return new float3(acos(x.x), acos(x.y), acos(x.z)); } /// Returns the componentwise arccosine of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 acos(float4 x) { return new float4(acos(x.x), acos(x.y), acos(x.z), acos(x.w)); } /// Returns the arccosine of a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double acos(double x) { return System.Math.Acos(x); } /// Returns the componentwise arccosine of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 acos(double2 x) { return new double2(acos(x.x), acos(x.y)); } /// Returns the componentwise arccosine of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 acos(double3 x) { return new double3(acos(x.x), acos(x.y), acos(x.z)); } /// Returns the componentwise arccosine of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 acos(double4 x) { return new double4(acos(x.x), acos(x.y), acos(x.z), acos(x.w)); } /// Returns the sine of a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float sin(float x) { return (float)System.Math.Sin((float)x); } /// Returns the componentwise sine of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 sin(float2 x) { return new float2(sin(x.x), sin(x.y)); } /// Returns the componentwise sine of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 sin(float3 x) { return new float3(sin(x.x), sin(x.y), sin(x.z)); } /// Returns the componentwise sine of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 sin(float4 x) { return new float4(sin(x.x), sin(x.y), sin(x.z), sin(x.w)); } /// Returns the sine of a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double sin(double x) { return System.Math.Sin(x); } /// Returns the componentwise sine of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 sin(double2 x) { return new double2(sin(x.x), sin(x.y)); } /// Returns the componentwise sine of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 sin(double3 x) { return new double3(sin(x.x), sin(x.y), sin(x.z)); } /// Returns the componentwise sine of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 sin(double4 x) { return new double4(sin(x.x), sin(x.y), sin(x.z), sin(x.w)); } /// Returns the hyperbolic sine of a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float sinh(float x) { return (float)System.Math.Sinh((float)x); } /// Returns the componentwise hyperbolic sine of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 sinh(float2 x) { return new float2(sinh(x.x), sinh(x.y)); } /// Returns the componentwise hyperbolic sine of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 sinh(float3 x) { return new float3(sinh(x.x), sinh(x.y), sinh(x.z)); } /// Returns the componentwise hyperbolic sine of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 sinh(float4 x) { return new float4(sinh(x.x), sinh(x.y), sinh(x.z), sinh(x.w)); } /// Returns the hyperbolic sine of a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double sinh(double x) { return System.Math.Sinh(x); } /// Returns the componentwise hyperbolic sine of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 sinh(double2 x) { return new double2(sinh(x.x), sinh(x.y)); } /// Returns the componentwise hyperbolic sine of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 sinh(double3 x) { return new double3(sinh(x.x), sinh(x.y), sinh(x.z)); } /// Returns the componentwise hyperbolic sine of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 sinh(double4 x) { return new double4(sinh(x.x), sinh(x.y), sinh(x.z), sinh(x.w)); } /// Returns the arcsine of a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float asin(float x) { return (float)System.Math.Asin((float)x); } /// Returns the componentwise arcsine of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 asin(float2 x) { return new float2(asin(x.x), asin(x.y)); } /// Returns the componentwise arcsine of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 asin(float3 x) { return new float3(asin(x.x), asin(x.y), asin(x.z)); } /// Returns the componentwise arcsine of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 asin(float4 x) { return new float4(asin(x.x), asin(x.y), asin(x.z), asin(x.w)); } /// Returns the arcsine of a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double asin(double x) { return System.Math.Asin(x); } /// Returns the componentwise arcsine of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 asin(double2 x) { return new double2(asin(x.x), asin(x.y)); } /// Returns the componentwise arcsine of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 asin(double3 x) { return new double3(asin(x.x), asin(x.y), asin(x.z)); } /// Returns the componentwise arcsine of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 asin(double4 x) { return new double4(asin(x.x), asin(x.y), asin(x.z), asin(x.w)); } /// Returns the result of rounding a float value up to the nearest integral value less or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float floor(float x) { return (float)System.Math.Floor((float)x); } /// Returns the result of rounding each component of a float2 vector value down to the nearest value less or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 floor(float2 x) { return new float2(floor(x.x), floor(x.y)); } /// Returns the result of rounding each component of a float3 vector value down to the nearest value less or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 floor(float3 x) { return new float3(floor(x.x), floor(x.y), floor(x.z)); } /// Returns the result of rounding each component of a float4 vector value down to the nearest value less or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 floor(float4 x) { return new float4(floor(x.x), floor(x.y), floor(x.z), floor(x.w)); } /// Returns the result of rounding a double value up to the nearest integral value less or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double floor(double x) { return System.Math.Floor(x); } /// Returns the result of rounding each component of a double2 vector value down to the nearest value less or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 floor(double2 x) { return new double2(floor(x.x), floor(x.y)); } /// Returns the result of rounding each component of a double3 vector value down to the nearest value less or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 floor(double3 x) { return new double3(floor(x.x), floor(x.y), floor(x.z)); } /// Returns the result of rounding each component of a double4 vector value down to the nearest value less or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 floor(double4 x) { return new double4(floor(x.x), floor(x.y), floor(x.z), floor(x.w)); } /// Returns the result of rounding a float value up to the nearest integral value greater or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float ceil(float x) { return (float)System.Math.Ceiling((float)x); } /// Returns the result of rounding each component of a float2 vector value up to the nearest value greater or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 ceil(float2 x) { return new float2(ceil(x.x), ceil(x.y)); } /// Returns the result of rounding each component of a float3 vector value up to the nearest value greater or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 ceil(float3 x) { return new float3(ceil(x.x), ceil(x.y), ceil(x.z)); } /// Returns the result of rounding each component of a float4 vector value up to the nearest value greater or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 ceil(float4 x) { return new float4(ceil(x.x), ceil(x.y), ceil(x.z), ceil(x.w)); } /// Returns the result of rounding a double value up to the nearest greater integral value greater or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double ceil(double x) { return System.Math.Ceiling(x); } /// Returns the result of rounding each component of a double2 vector value up to the nearest integral value greater or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 ceil(double2 x) { return new double2(ceil(x.x), ceil(x.y)); } /// Returns the result of rounding each component of a double3 vector value up to the nearest integral value greater or equal to the original value.. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 ceil(double3 x) { return new double3(ceil(x.x), ceil(x.y), ceil(x.z)); } /// Returns the result of rounding each component of a double4 vector value up to the nearest integral value greater or equal to the original value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 ceil(double4 x) { return new double4(ceil(x.x), ceil(x.y), ceil(x.z), ceil(x.w)); } /// Returns the result of rounding a float value to the nearest integral value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float round(float x) { return (float)System.Math.Round((float)x); } /// Returns the result of rounding each component of a float2 vector value to the nearest integral value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 round(float2 x) { return new float2(round(x.x), round(x.y)); } /// Returns the result of rounding each component of a float3 vector value to the nearest integral value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 round(float3 x) { return new float3(round(x.x), round(x.y), round(x.z)); } /// Returns the result of rounding each component of a float4 vector value to the nearest integral value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 round(float4 x) { return new float4(round(x.x), round(x.y), round(x.z), round(x.w)); } /// Returns the result of rounding a double value to the nearest integral value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double round(double x) { return System.Math.Round(x); } /// Returns the result of rounding each component of a double2 vector value to the nearest integral value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 round(double2 x) { return new double2(round(x.x), round(x.y)); } /// Returns the result of rounding each component of a double3 vector value to the nearest integral value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 round(double3 x) { return new double3(round(x.x), round(x.y), round(x.z)); } /// Returns the result of rounding each component of a double4 vector value to the nearest integral value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 round(double4 x) { return new double4(round(x.x), round(x.y), round(x.z), round(x.w)); } /// Returns the result of truncating a float value to an integral float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float trunc(float x) { return (float)System.Math.Truncate((float)x); } /// Returns the result of a componentwise truncation of a float2 value to an integral float2 value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 trunc(float2 x) { return new float2(trunc(x.x), trunc(x.y)); } /// Returns the result of a componentwise truncation of a float3 value to an integral float3 value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 trunc(float3 x) { return new float3(trunc(x.x), trunc(x.y), trunc(x.z)); } /// Returns the result of a componentwise truncation of a float4 value to an integral float4 value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 trunc(float4 x) { return new float4(trunc(x.x), trunc(x.y), trunc(x.z), trunc(x.w)); } /// Returns the result of truncating a double value to an integral double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double trunc(double x) { return System.Math.Truncate(x); } /// Returns the result of a componentwise truncation of a double2 value to an integral double2 value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 trunc(double2 x) { return new double2(trunc(x.x), trunc(x.y)); } /// Returns the result of a componentwise truncation of a double3 value to an integral double3 value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 trunc(double3 x) { return new double3(trunc(x.x), trunc(x.y), trunc(x.z)); } /// Returns the result of a componentwise truncation of a double4 value to an integral double4 value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 trunc(double4 x) { return new double4(trunc(x.x), trunc(x.y), trunc(x.z), trunc(x.w)); } /// Returns the fractional part of a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float frac(float x) { return x - floor(x); } /// Returns the componentwise fractional parts of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 frac(float2 x) { return x - floor(x); } /// Returns the componentwise fractional parts of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 frac(float3 x) { return x - floor(x); } /// Returns the componentwise fractional parts of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 frac(float4 x) { return x - floor(x); } /// Returns the fractional part of a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double frac(double x) { return x - floor(x); } /// Returns the componentwise fractional parts of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 frac(double2 x) { return x - floor(x); } /// Returns the componentwise fractional parts of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 frac(double3 x) { return x - floor(x); } /// Returns the componentwise fractional parts of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 frac(double4 x) { return x - floor(x); } /// Returns the reciprocal a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float rcp(float x) { return 1.0f / x; } /// Returns the componentwise reciprocal a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 rcp(float2 x) { return 1.0f / x; } /// Returns the componentwise reciprocal a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 rcp(float3 x) { return 1.0f / x; } /// Returns the componentwise reciprocal a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 rcp(float4 x) { return 1.0f / x; } /// Returns the reciprocal a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double rcp(double x) { return 1.0 / x; } /// Returns the componentwise reciprocal a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 rcp(double2 x) { return 1.0 / x; } /// Returns the componentwise reciprocal a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 rcp(double3 x) { return 1.0 / x; } /// Returns the componentwise reciprocal a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 rcp(double4 x) { return 1.0 / x; } /// Returns the sign of a float value. -1.0f if it is less than zero, 0.0f if it is zero and 1.0f if it greater than zero. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float sign(float x) { return (x > 0.0f ? 1.0f : 0.0f) - (x < 0.0f ? 1.0f : 0.0f); } /// Returns the componentwise sign of a float2 value. 1.0f for positive components, 0.0f for zero components and -1.0f for negative components. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 sign(float2 x) { return new float2(sign(x.x), sign(x.y)); } /// Returns the componentwise sign of a float3 value. 1.0f for positive components, 0.0f for zero components and -1.0f for negative components. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 sign(float3 x) { return new float3(sign(x.x), sign(x.y), sign(x.z)); } /// Returns the componentwise sign of a float4 value. 1.0f for positive components, 0.0f for zero components and -1.0f for negative components. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 sign(float4 x) { return new float4(sign(x.x), sign(x.y), sign(x.z), sign(x.w)); } /// Returns the sign of a double value. -1.0 if it is less than zero, 0.0 if it is zero and 1.0 if it greater than zero. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double sign(double x) { return x == 0 ? 0 : (x > 0.0 ? 1.0 : 0.0) - (x < 0.0 ? 1.0 : 0.0); } /// Returns the componentwise sign of a double2 value. 1.0 for positive components, 0.0 for zero components and -1.0 for negative components. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 sign(double2 x) { return new double2(sign(x.x), sign(x.y)); } /// Returns the componentwise sign of a double3 value. 1.0 for positive components, 0.0 for zero components and -1.0 for negative components. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 sign(double3 x) { return new double3(sign(x.x), sign(x.y), sign(x.z)); } /// Returns the componentwise sign of a double4 value. 1.0 for positive components, 0.0 for zero components and -1.0 for negative components. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 sign(double4 x) { return new double4(sign(x.x), sign(x.y), sign(x.z), sign(x.w)); } /// Returns x raised to the power y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float pow(float x, float y) { return (float)System.Math.Pow((float)x, (float)y); } /// Returns the componentwise result of raising x to the power y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 pow(float2 x, float2 y) { return new float2(pow(x.x, y.x), pow(x.y, y.y)); } /// Returns the componentwise result of raising x to the power y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 pow(float3 x, float3 y) { return new float3(pow(x.x, y.x), pow(x.y, y.y), pow(x.z, y.z)); } /// Returns the componentwise result of raising x to the power y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 pow(float4 x, float4 y) { return new float4(pow(x.x, y.x), pow(x.y, y.y), pow(x.z, y.z), pow(x.w, y.w)); } /// Returns x raised to the power y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double pow(double x, double y) { return System.Math.Pow(x, y); } /// Returns the componentwise result of raising x to the power y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 pow(double2 x, double2 y) { return new double2(pow(x.x, y.x), pow(x.y, y.y)); } /// Returns the componentwise result of raising x to the power y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 pow(double3 x, double3 y) { return new double3(pow(x.x, y.x), pow(x.y, y.y), pow(x.z, y.z)); } /// Returns the componentwise result of raising x to the power y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 pow(double4 x, double4 y) { return new double4(pow(x.x, y.x), pow(x.y, y.y), pow(x.z, y.z), pow(x.w, y.w)); } /// Returns the base-e exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float exp(float x) { return (float)System.Math.Exp((float)x); } /// Returns the componentwise base-e exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 exp(float2 x) { return new float2(exp(x.x), exp(x.y)); } /// Returns the componentwise base-e exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 exp(float3 x) { return new float3(exp(x.x), exp(x.y), exp(x.z)); } /// Returns the componentwise base-e exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 exp(float4 x) { return new float4(exp(x.x), exp(x.y), exp(x.z), exp(x.w)); } /// Returns the base-e exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double exp(double x) { return System.Math.Exp(x); } /// Returns the componentwise base-e exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 exp(double2 x) { return new double2(exp(x.x), exp(x.y)); } /// Returns the componentwise base-e exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 exp(double3 x) { return new double3(exp(x.x), exp(x.y), exp(x.z)); } /// Returns the componentwise base-e exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 exp(double4 x) { return new double4(exp(x.x), exp(x.y), exp(x.z), exp(x.w)); } /// Returns the base-2 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float exp2(float x) { return (float)System.Math.Exp((float)x * 0.69314718f); } /// Returns the componentwise base-2 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 exp2(float2 x) { return new float2(exp2(x.x), exp2(x.y)); } /// Returns the componentwise base-2 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 exp2(float3 x) { return new float3(exp2(x.x), exp2(x.y), exp2(x.z)); } /// Returns the componentwise base-2 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 exp2(float4 x) { return new float4(exp2(x.x), exp2(x.y), exp2(x.z), exp2(x.w)); } /// Returns the base-2 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double exp2(double x) { return System.Math.Exp(x * 0.693147180559945309); } /// Returns the componentwise base-2 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 exp2(double2 x) { return new double2(exp2(x.x), exp2(x.y)); } /// Returns the componentwise base-2 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 exp2(double3 x) { return new double3(exp2(x.x), exp2(x.y), exp2(x.z)); } /// Returns the componentwise base-2 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 exp2(double4 x) { return new double4(exp2(x.x), exp2(x.y), exp2(x.z), exp2(x.w)); } /// Returns the base-10 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float exp10(float x) { return (float)System.Math.Exp((float)x * 2.30258509f); } /// Returns the componentwise base-10 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 exp10(float2 x) { return new float2(exp10(x.x), exp10(x.y)); } /// Returns the componentwise base-10 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 exp10(float3 x) { return new float3(exp10(x.x), exp10(x.y), exp10(x.z)); } /// Returns the componentwise base-10 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 exp10(float4 x) { return new float4(exp10(x.x), exp10(x.y), exp10(x.z), exp10(x.w)); } /// Returns the base-10 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double exp10(double x) { return System.Math.Exp(x * 2.302585092994045684); } /// Returns the componentwise base-10 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 exp10(double2 x) { return new double2(exp10(x.x), exp10(x.y)); } /// Returns the componentwise base-10 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 exp10(double3 x) { return new double3(exp10(x.x), exp10(x.y), exp10(x.z)); } /// Returns the componentwise base-10 exponential of x. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 exp10(double4 x) { return new double4(exp10(x.x), exp10(x.y), exp10(x.z), exp10(x.w)); } /// Returns the natural logarithm of a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float log(float x) { return (float)System.Math.Log((float)x); } /// Returns the componentwise natural logarithm of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 log(float2 x) { return new float2(log(x.x), log(x.y)); } /// Returns the componentwise natural logarithm of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 log(float3 x) { return new float3(log(x.x), log(x.y), log(x.z)); } /// Returns the componentwise natural logarithm of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 log(float4 x) { return new float4(log(x.x), log(x.y), log(x.z), log(x.w)); } /// Returns the natural logarithm of a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double log(double x) { return System.Math.Log(x); } /// Returns the componentwise natural logarithm of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 log(double2 x) { return new double2(log(x.x), log(x.y)); } /// Returns the componentwise natural logarithm of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 log(double3 x) { return new double3(log(x.x), log(x.y), log(x.z)); } /// Returns the componentwise natural logarithm of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 log(double4 x) { return new double4(log(x.x), log(x.y), log(x.z), log(x.w)); } /// Returns the base-2 logarithm of a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float log2(float x) { return (float)System.Math.Log((float)x, 2.0f); } /// Returns the componentwise base-2 logarithm of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 log2(float2 x) { return new float2(log2(x.x), log2(x.y)); } /// Returns the componentwise base-2 logarithm of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 log2(float3 x) { return new float3(log2(x.x), log2(x.y), log2(x.z)); } /// Returns the componentwise base-2 logarithm of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 log2(float4 x) { return new float4(log2(x.x), log2(x.y), log2(x.z), log2(x.w)); } /// Returns the base-2 logarithm of a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double log2(double x) { return System.Math.Log(x, 2.0); } /// Returns the componentwise base-2 logarithm of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 log2(double2 x) { return new double2(log2(x.x), log2(x.y)); } /// Returns the componentwise base-2 logarithm of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 log2(double3 x) { return new double3(log2(x.x), log2(x.y), log2(x.z)); } /// Returns the componentwise base-2 logarithm of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 log2(double4 x) { return new double4(log2(x.x), log2(x.y), log2(x.z), log2(x.w)); } /// Returns the base-10 logarithm of a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float log10(float x) { return (float)System.Math.Log10((float)x); } /// Returns the componentwise base-10 logarithm of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 log10(float2 x) { return new float2(log10(x.x), log10(x.y)); } /// Returns the componentwise base-10 logarithm of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 log10(float3 x) { return new float3(log10(x.x), log10(x.y), log10(x.z)); } /// Returns the componentwise base-10 logarithm of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 log10(float4 x) { return new float4(log10(x.x), log10(x.y), log10(x.z), log10(x.w)); } /// Returns the base-10 logarithm of a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double log10(double x) { return System.Math.Log10(x); } /// Returns the componentwise base-10 logarithm of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 log10(double2 x) { return new double2(log10(x.x), log10(x.y)); } /// Returns the componentwise base-10 logarithm of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 log10(double3 x) { return new double3(log10(x.x), log10(x.y), log10(x.z)); } /// Returns the componentwise base-10 logarithm of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 log10(double4 x) { return new double4(log10(x.x), log10(x.y), log10(x.z), log10(x.w)); } /// Returns the floating point remainder of x/y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float fmod(float x, float y) { return x % y; } /// Returns the componentwise floating point remainder of x/y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 fmod(float2 x, float2 y) { return new float2(x.x % y.x, x.y % y.y); } /// Returns the componentwise floating point remainder of x/y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 fmod(float3 x, float3 y) { return new float3(x.x % y.x, x.y % y.y, x.z % y.z); } /// Returns the componentwise floating point remainder of x/y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 fmod(float4 x, float4 y) { return new float4(x.x % y.x, x.y % y.y, x.z % y.z, x.w % y.w); } /// Returns the double precision floating point remainder of x/y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double fmod(double x, double y) { return x % y; } /// Returns the componentwise double precision floating point remainder of x/y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 fmod(double2 x, double2 y) { return new double2(x.x % y.x, x.y % y.y); } /// Returns the componentwise double precision floating point remainder of x/y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 fmod(double3 x, double3 y) { return new double3(x.x % y.x, x.y % y.y, x.z % y.z); } /// Returns the componentwise double precision floating point remainder of x/y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 fmod(double4 x, double4 y) { return new double4(x.x % y.x, x.y % y.y, x.z % y.z, x.w % y.w); } /// Splits a float value into an integral part i and a fractional part that gets returned. Both parts take the sign of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float modf(float x, out float i) { i = trunc(x); return x - i; } /// /// Performs a componentwise split of a float2 vector into an integral part i and a fractional part that gets returned. /// Both parts take the sign of the corresponding input component. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 modf(float2 x, out float2 i) { i = trunc(x); return x - i; } /// /// Performs a componentwise split of a float3 vector into an integral part i and a fractional part that gets returned. /// Both parts take the sign of the corresponding input component. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 modf(float3 x, out float3 i) { i = trunc(x); return x - i; } /// /// Performs a componentwise split of a float4 vector into an integral part i and a fractional part that gets returned. /// Both parts take the sign of the corresponding input component. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 modf(float4 x, out float4 i) { i = trunc(x); return x - i; } /// Splits a double value into an integral part i and a fractional part that gets returned. Both parts take the sign of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double modf(double x, out double i) { i = trunc(x); return x - i; } /// /// Performs a componentwise split of a double2 vector into an integral part i and a fractional part that gets returned. /// Both parts take the sign of the corresponding input component. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 modf(double2 x, out double2 i) { i = trunc(x); return x - i; } /// /// Performs a componentwise split of a double3 vector into an integral part i and a fractional part that gets returned. /// Both parts take the sign of the corresponding input component. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 modf(double3 x, out double3 i) { i = trunc(x); return x - i; } /// /// Performs a componentwise split of a double4 vector into an integral part i and a fractional part that gets returned. /// Both parts take the sign of the corresponding input component. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 modf(double4 x, out double4 i) { i = trunc(x); return x - i; } /// Returns the square root of a float value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float sqrt(float x) { return (float)System.Math.Sqrt((float)x); } /// Returns the componentwise square root of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 sqrt(float2 x) { return new float2(sqrt(x.x), sqrt(x.y)); } /// Returns the componentwise square root of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 sqrt(float3 x) { return new float3(sqrt(x.x), sqrt(x.y), sqrt(x.z)); } /// Returns the componentwise square root of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 sqrt(float4 x) { return new float4(sqrt(x.x), sqrt(x.y), sqrt(x.z), sqrt(x.w)); } /// Returns the square root of a double value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double sqrt(double x) { return System.Math.Sqrt(x); } /// Returns the componentwise square root of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 sqrt(double2 x) { return new double2(sqrt(x.x), sqrt(x.y)); } /// Returns the componentwise square root of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 sqrt(double3 x) { return new double3(sqrt(x.x), sqrt(x.y), sqrt(x.z)); } /// Returns the componentwise square root of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 sqrt(double4 x) { return new double4(sqrt(x.x), sqrt(x.y), sqrt(x.z), sqrt(x.w)); } @@ -1877,22 +2093,28 @@ public static bool4 ispow2(uint4 x) /// Returns a normalized version of the float2 vector x by scaling it by 1 / length(x). + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 normalize(float2 x) { return rsqrt(dot(x, x)) * x; } /// Returns a normalized version of the float3 vector x by scaling it by 1 / length(x). + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 normalize(float3 x) { return rsqrt(dot(x, x)) * x; } /// Returns a normalized version of the float4 vector x by scaling it by 1 / length(x). + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 normalize(float4 x) { return rsqrt(dot(x, x)) * x; } /// Returns a normalized version of the double2 vector x by scaling it by 1 / length(x). + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 normalize(double2 x) { return rsqrt(dot(x, x)) * x; } /// Returns a normalized version of the double3 vector x by scaling it by 1 / length(x). + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 normalize(double3 x) { return rsqrt(dot(x, x)) * x; } /// Returns a normalized version of the double4 vector x by scaling it by 1 / length(x). + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 normalize(double4 x) { return rsqrt(dot(x, x)) * x; } @@ -1900,6 +2122,7 @@ public static bool4 ispow2(uint4 x) /// Returns a safe normalized version of the float2 vector x by scaling it by 1 / length(x). /// Returns the given default value when 1 / length(x) does not produce a finite number. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] static public float2 normalizesafe(float2 x, float2 defaultvalue = new float2()) { float len = math.dot(x, x); @@ -1910,6 +2133,7 @@ public static bool4 ispow2(uint4 x) /// Returns a safe normalized version of the float3 vector x by scaling it by 1 / length(x). /// Returns the given default value when 1 / length(x) does not produce a finite number. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] static public float3 normalizesafe(float3 x, float3 defaultvalue = new float3()) { float len = math.dot(x, x); @@ -1920,6 +2144,7 @@ public static bool4 ispow2(uint4 x) /// Returns a safe normalized version of the float4 vector x by scaling it by 1 / length(x). /// Returns the given default value when 1 / length(x) does not produce a finite number. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] static public float4 normalizesafe(float4 x, float4 defaultvalue = new float4()) { float len = math.dot(x, x); @@ -1931,6 +2156,7 @@ public static bool4 ispow2(uint4 x) /// Returns a safe normalized version of the double4 vector x by scaling it by 1 / length(x). /// Returns the given default value when 1 / length(x) does not produce a finite number. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] static public double2 normalizesafe(double2 x, double2 defaultvalue = new double2()) { double len = math.dot(x, x); @@ -1941,6 +2167,7 @@ public static bool4 ispow2(uint4 x) /// Returns a safe normalized version of the double4 vector x by scaling it by 1 / length(x). /// Returns the given default value when 1 / length(x) does not produce a finite number. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] static public double3 normalizesafe(double3 x, double3 defaultvalue = new double3()) { double len = math.dot(x, x); @@ -1951,6 +2178,7 @@ public static bool4 ispow2(uint4 x) /// Returns a safe normalized version of the double4 vector x by scaling it by 1 / length(x). /// Returns the given default value when 1 / length(x) does not produce a finite number. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] static public double4 normalizesafe(double4 x, double4 defaultvalue = new double4()) { double len = math.dot(x, x); @@ -1959,117 +2187,152 @@ public static bool4 ispow2(uint4 x) /// Returns the length of a float value. Equivalent to the absolute value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float length(float x) { return abs(x); } /// Returns the length of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float length(float2 x) { return sqrt(dot(x, x)); } /// Returns the length of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float length(float3 x) { return sqrt(dot(x, x)); } /// Returns the length of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float length(float4 x) { return sqrt(dot(x, x)); } /// Returns the length of a double value. Equivalent to the absolute value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double length(double x) { return abs(x); } /// Returns the length of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double length(double2 x) { return sqrt(dot(x, x)); } /// Returns the length of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double length(double3 x) { return sqrt(dot(x, x)); } /// Returns the length of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double length(double4 x) { return sqrt(dot(x, x)); } /// Returns the squared length of a float value. Equivalent to squaring the value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float lengthsq(float x) { return x*x; } /// Returns the squared length of a float2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float lengthsq(float2 x) { return dot(x, x); } /// Returns the squared length of a float3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float lengthsq(float3 x) { return dot(x, x); } /// Returns the squared length of a float4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float lengthsq(float4 x) { return dot(x, x); } /// Returns the squared length of a double value. Equivalent to squaring the value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double lengthsq(double x) { return x * x; } /// Returns the squared length of a double2 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double lengthsq(double2 x) { return dot(x, x); } /// Returns the squared length of a double3 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double lengthsq(double3 x) { return dot(x, x); } /// Returns the squared length of a double4 vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double lengthsq(double4 x) { return dot(x, x); } /// Returns the distance between two float values. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distance(float x, float y) { return abs(y - x); } /// Returns the distance between two float2 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distance(float2 x, float2 y) { return length(y - x); } /// Returns the distance between two float3 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distance(float3 x, float3 y) { return length(y - x); } /// Returns the distance between two float4 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distance(float4 x, float4 y) { return length(y - x); } /// Returns the distance between two double values. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distance(double x, double y) { return abs(y - x); } /// Returns the distance between two double2 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distance(double2 x, double2 y) { return length(y - x); } /// Returns the distance between two double3 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distance(double3 x, double3 y) { return length(y - x); } /// Returns the distance between two double4 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distance(double4 x, double4 y) { return length(y - x); } /// Returns the distance between two float values. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distancesq(float x, float y) { return (y - x) * (y - x); } /// Returns the distance between two float2 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distancesq(float2 x, float2 y) { return lengthsq(y - x); } /// Returns the distance between two float3 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distancesq(float3 x, float3 y) { return lengthsq(y - x); } /// Returns the distance between two float4 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distancesq(float4 x, float4 y) { return lengthsq(y - x); } /// Returns the distance between two double values. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distancesq(double x, double y) { return (y - x) * (y - x); } /// Returns the distance between two double2 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distancesq(double2 x, double2 y) { return lengthsq(y - x); } /// Returns the distance between two double3 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distancesq(double3 x, double3 y) { return lengthsq(y - x); } /// Returns the distance between two double4 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distancesq(double4 x, double4 y) { return lengthsq(y - x); } /// Returns the cross product of two float3 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 cross(float3 x, float3 y) { return (x * y.yzx - x.yzx * y).yzx; } /// Returns the cross product of two double3 vectors. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 cross(double3 x, double3 y) { return (x * y.yzx - x.yzx * y).yzx; } /// Returns a smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float smoothstep(float a, float b, float x) { var t = saturate((x - a) / (b - a)); @@ -2077,6 +2340,7 @@ public static float smoothstep(float a, float b, float x) } /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 smoothstep(float2 a, float2 b, float2 x) { var t = saturate((x - a) / (b - a)); @@ -2084,6 +2348,7 @@ public static float2 smoothstep(float2 a, float2 b, float2 x) } /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 smoothstep(float3 a, float3 b, float3 x) { var t = saturate((x - a) / (b - a)); @@ -2091,6 +2356,7 @@ public static float3 smoothstep(float3 a, float3 b, float3 x) } /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 smoothstep(float4 a, float4 b, float4 x) { var t = saturate((x - a) / (b - a)); @@ -2099,6 +2365,7 @@ public static float4 smoothstep(float4 a, float4 b, float4 x) /// Returns a smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double smoothstep(double a, double b, double x) { var t = saturate((x - a) / (b - a)); @@ -2106,6 +2373,7 @@ public static double smoothstep(double a, double b, double x) } /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 smoothstep(double2 a, double2 b, double2 x) { var t = saturate((x - a) / (b - a)); @@ -2113,6 +2381,7 @@ public static double2 smoothstep(double2 a, double2 b, double2 x) } /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 smoothstep(double3 a, double3 b, double3 x) { var t = saturate((x - a) / (b - a)); @@ -2120,6 +2389,7 @@ public static double3 smoothstep(double3 a, double3 b, double3 x) } /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 smoothstep(double4 a, double4 b, double4 x) { var t = saturate((x - a) / (b - a)); diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index 6dbe2165..431870bf 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -6,6 +6,7 @@ namespace Unity.Mathematics public partial struct float2x2 { /// Returns a float2x2 matrix representing a counter-clockwise rotation of angle degrees. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 Rotate(float angle) { float s, c; @@ -15,6 +16,7 @@ public static float2x2 Rotate(float angle) } /// Returns a float2x2 matrix representing a uniform scaling of both axes by s. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 Scale(float s) { return float2x2(s, 0.0f, @@ -22,6 +24,7 @@ public static float2x2 Scale(float s) } /// Returns a float2x2 matrix representing a non-uniform axis scaling by x and y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 Scale(float x, float y) { return float2x2(x, 0.0f, @@ -29,6 +32,7 @@ public static float2x2 Scale(float x, float y) } /// Returns a float2x2 matrix representing a non-uniform axis scaling by the components of the float2 vector v. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 Scale(float2 v) { return Scale(v.x, v.y); @@ -66,6 +70,7 @@ public float3x3(quaternion q) /// Returns a float3x3 matrix representing a rotation around a unit axis by an angle in radians. /// The rotation direction is clockwise when looking along the rotation axis towards the origin. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 AxisAngle(float3 axis, float angle) { float sina, cosa; @@ -100,6 +105,7 @@ public static float3x3 AxisAngle(float3 axis, float angle) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerXYZ(float3 xyz) { // return mul(rotateZ(xyz.z), mul(rotateY(xyz.y), rotateX(xyz.x))); @@ -117,6 +123,7 @@ public static float3x3 EulerXYZ(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerXZY(float3 xyz) { // return mul(rotateY(xyz.y), mul(rotateZ(xyz.z), rotateX(xyz.x))); } @@ -134,6 +141,7 @@ public static float3x3 EulerXZY(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerYXZ(float3 xyz) { // return mul(rotateZ(xyz.z), mul(rotateX(xyz.x), rotateY(xyz.y))); @@ -151,6 +159,7 @@ public static float3x3 EulerYXZ(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerYZX(float3 xyz) { // return mul(rotateX(xyz.x), mul(rotateZ(xyz.z), rotateY(xyz.y))); @@ -169,6 +178,7 @@ public static float3x3 EulerYZX(float3 xyz) /// This is the default order rotation order in Unity. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerZXY(float3 xyz) { // return mul(rotateY(xyz.y), mul(rotateX(xyz.x), rotateZ(xyz.z))); @@ -186,6 +196,7 @@ public static float3x3 EulerZXY(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerZYX(float3 xyz) { // return mul(rotateX(xyz.x), mul(rotateY(xyz.y), rotateZ(xyz.z))); @@ -267,6 +278,7 @@ public static float3x3 EulerZYX(float3 xyz) /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. /// The order in which the rotations are applied. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 Euler(float3 xyz, RotationOrder order = RotationOrder.Default) { switch (order) @@ -306,6 +318,7 @@ public static float3x3 Euler(float x, float y, float z, RotationOrder order = Ro /// Returns a float4x4 matrix that rotates around the x-axis by a given number of radians. /// The clockwise rotation angle when looking along the x-axis towards the origin in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 RotateX(float angle) { // {{1, 0, 0}, {0, c_0, -s_0}, {0, s_0, c_0}} @@ -318,6 +331,7 @@ public static float3x3 RotateX(float angle) /// Returns a float4x4 matrix that rotates around the y-axis by a given number of radians. /// The clockwise rotation angle when looking along the y-axis towards the origin in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 RotateY(float angle) { // {{c_1, 0, s_1}, {0, 1, 0}, {-s_1, 0, c_1}} @@ -330,6 +344,7 @@ public static float3x3 RotateY(float angle) /// Returns a float4x4 matrix that rotates around the z-axis by a given number of radians. /// The clockwise rotation angle when looking along the z-axis towards the origin in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 RotateZ(float angle) { // {{c_2, -s_2, 0}, {s_2, c_2, 0}, {0, 0, 1}} @@ -341,6 +356,7 @@ public static float3x3 RotateZ(float angle) } //Returns a float3x3 matrix representing a uniform scaling of all axes by s. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 Scale(float s) { return float3x3(s, 0.0f, 0.0f, @@ -349,6 +365,7 @@ public static float3x3 Scale(float s) } /// Returns a float3x3 matrix representing a non-uniform axis scaling by x, y and z. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 Scale(float x, float y, float z) { return float3x3(x, 0.0f, 0.0f, @@ -357,6 +374,7 @@ public static float3x3 Scale(float x, float y, float z) } /// Returns a float3x3 matrix representing a non-uniform axis scaling by the components of the float3 vector v. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 Scale(float3 v) { return Scale(v.x, v.y, v.z); @@ -367,6 +385,7 @@ public static float3x3 Scale(float3 v) /// The two input vectors are assumed to be unit length and not collinear. /// If these assumptions are not met use float3x3.LookRotationSafe instead. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 LookRotation(float3 forward, float3 up) { float3 t = normalize(cross(up, forward)); @@ -379,6 +398,7 @@ public static float3x3 LookRotation(float3 forward, float3 up) /// If the magnitude of either of the vectors is so extreme that the calculation cannot be carried out reliably or the vectors are collinear, /// the identity will be returned instead. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 LookRotationSafe(float3 forward, float3 up) { float forwardLengthSq = dot(forward, forward); @@ -439,6 +459,7 @@ public float4x4(RigidTransform transform) /// Returns a float4x4 matrix representing a rotation around a unit axis by an angle in radians. /// The rotation direction is clockwise when looking along the rotation axis towards the origin. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 AxisAngle(float3 axis, float angle) { float sina, cosa; @@ -469,6 +490,7 @@ public static float4x4 AxisAngle(float3 axis, float angle) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerXYZ(float3 xyz) { // return mul(rotateZ(xyz.z), mul(rotateY(xyz.y), rotateX(xyz.x))); @@ -487,6 +509,7 @@ public static float4x4 EulerXYZ(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerXZY(float3 xyz) { // return mul(rotateY(xyz.y), mul(rotateZ(xyz.z), rotateX(xyz.x))); } @@ -505,6 +528,7 @@ public static float4x4 EulerXZY(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerYXZ(float3 xyz) { // return mul(rotateZ(xyz.z), mul(rotateX(xyz.x), rotateY(xyz.y))); @@ -523,6 +547,7 @@ public static float4x4 EulerYXZ(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerYZX(float3 xyz) { // return mul(rotateX(xyz.x), mul(rotateZ(xyz.z), rotateY(xyz.y))); @@ -542,6 +567,7 @@ public static float4x4 EulerYZX(float3 xyz) /// This is the default order rotation order in Unity. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerZXY(float3 xyz) { // return mul(rotateY(xyz.y), mul(rotateX(xyz.x), rotateZ(xyz.z))); @@ -560,6 +586,7 @@ public static float4x4 EulerZXY(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerZYX(float3 xyz) { // return mul(rotateX(xyz.x), mul(rotateY(xyz.y), rotateZ(xyz.z))); @@ -634,6 +661,7 @@ public static float4x4 EulerZYX(float3 xyz) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerZYX(float x, float y, float z) { return EulerZYX(float3(x, y, z)); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 Euler(float3 xyz, RotationOrder order = RotationOrder.Default) { switch (order) @@ -673,6 +701,7 @@ public static float4x4 Euler(float x, float y, float z, RotationOrder order = Ro /// Returns a float4x4 matrix that rotates around the x-axis by a given number of radians. /// The clockwise rotation angle when looking along the x-axis towards the origin in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 RotateX(float angle) { // {{1, 0, 0}, {0, c_0, -s_0}, {0, s_0, c_0}} @@ -687,6 +716,7 @@ public static float4x4 RotateX(float angle) /// Returns a float4x4 matrix that rotates around the y-axis by a given number of radians. /// The clockwise rotation angle when looking along the y-axis towards the origin in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 RotateY(float angle) { // {{c_1, 0, s_1}, {0, 1, 0}, {-s_1, 0, c_1}} @@ -701,6 +731,7 @@ public static float4x4 RotateY(float angle) /// Returns a float4x4 matrix that rotates around the z-axis by a given number of radians. /// The clockwise rotation angle when looking along the z-axis towards the origin in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 RotateZ(float angle) { // {{c_2, -s_2, 0}, {s_2, c_2, 0}, {0, 0, 1}} @@ -714,6 +745,7 @@ public static float4x4 RotateZ(float angle) } /// Returns a float4x4 scale matrix given 3 axis scales. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 Scale(float s) { return float4x4(s, 0.0f, 0.0f, 0.0f, @@ -723,6 +755,7 @@ public static float4x4 Scale(float s) } /// Returns a float4x4 scale matrix given a float3 vector containing the 3 axis scales. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 Scale(float x, float y, float z) { return float4x4(x, 0.0f, 0.0f, 0.0f, @@ -732,12 +765,14 @@ public static float4x4 Scale(float x, float y, float z) } /// Returns a float4x4 scale matrix given a float3 vector containing the 3 axis scales. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 Scale(float3 scales) { return Scale(scales.x, scales.y, scales.z); } /// Returns a float4x4 translation matrix given a float3 translation vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 Translate(float3 vector) { return float4x4(float4(1.0f, 0.0f, 0.0f, 0.0f), @@ -752,6 +787,7 @@ public static float4x4 Translate(float3 vector) /// the vector between them is assumes to be collinear with the up vector. /// If these assumptions are not met use float4x4.LookRotationSafe instead. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 LookAt(float3 eye, float3 target, float3 up) { float3x3 rot = float3x3.LookRotation(normalize(target - eye), up); @@ -771,6 +807,7 @@ public static float4x4 LookAt(float3 eye, float3 target, float3 up) /// The height of the view volume. /// The distance to the near plane. /// The distance to the far plane. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 Ortho(float width, float height, float near, float far) { float rcpdx = 1.0f / width; @@ -794,6 +831,7 @@ public static float4x4 Ortho(float width, float height, float near, float far) /// The minimum y-coordinate of the view volume. /// The distance to the near plane. /// The distance to the far plane. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 OrthoOffCenter(float left, float right, float bottom, float top, float near, float far) { float rcpdx = 1.0f / (right - left); @@ -815,6 +853,7 @@ public static float4x4 OrthoOffCenter(float left, float right, float bottom, flo /// X:Y aspect ratio. /// Distance to near plane. Must be greater than zero. /// Distance to far plane. Must be greater than zero. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 PerspectiveFov(float verticalFov, float aspect, float near, float far) { float cotangent = 1.0f / tan(verticalFov * 0.5f); @@ -837,6 +876,7 @@ public static float4x4 PerspectiveFov(float verticalFov, float aspect, float nea /// The y-coordinate of the top side of the clipping frustum at the near plane. /// Distance to the near plane. Must be greater than zero. /// Distance to the far plane. Must be greater than zero. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 PerspectiveOffCenter(float left, float right, float bottom, float top, float near, float far) { float rcpdz = 1.0f / (near - far); @@ -855,6 +895,7 @@ public static float4x4 PerspectiveOffCenter(float left, float right, float botto /// Returns a float4x4 matrix representing a combined scale-, rotation- and translation transform. /// Equivalent to mul(translationTransform, mul(rotationTransform, scaleTransform)). /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 TRS(float3 translation, quaternion rotation, float3 scale) { float3x3 r = float3x3(rotation); @@ -872,36 +913,42 @@ partial class math /// /// to extract a float3x3 from. /// Upper left 3x3 matrix as float3x3. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 float3x3(float4x4 f4x4) { return new float3x3(f4x4); } /// Returns a float3x3 matrix constructed from a quaternion. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 float3x3(quaternion rotation) { return new float3x3(rotation); } /// Returns a float4x4 constructed from a float3x3 rotation matrix and a float3 translation vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(float3x3 rotation, float3 translation) { return new float4x4(rotation, translation); } /// Returns a float4x4 constructed from a quaternion and a float3 translation vector. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(quaternion rotation, float3 translation) { return new float4x4(rotation, translation); } /// Returns a float4x4 constructed from a RigidTransform. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(RigidTransform transform) { return new float4x4(transform); } /// Returns an orthonormalized version of a float3x3 matrix. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 orthonormalize(float3x3 i) { float3x3 o; diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index eb7b0310..fa2ec7ea 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -88,6 +88,7 @@ public static quaternion AxisAngle(float3 axis, float angle) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerXYZ(float3 xyz) { // return mul(rotateZ(xyz.z), mul(rotateY(xyz.y), rotateX(xyz.x))); @@ -107,6 +108,7 @@ public static quaternion EulerXYZ(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerXZY(float3 xyz) { // return mul(rotateY(xyz.y), mul(rotateZ(xyz.z), rotateX(xyz.x))); @@ -126,6 +128,7 @@ public static quaternion EulerXZY(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerYXZ(float3 xyz) { // return mul(rotateZ(xyz.z), mul(rotateX(xyz.x), rotateY(xyz.y))); @@ -145,6 +148,7 @@ public static quaternion EulerYXZ(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerYZX(float3 xyz) { // return mul(rotateX(xyz.x), mul(rotateZ(xyz.z), rotateY(xyz.y))); @@ -165,6 +169,7 @@ public static quaternion EulerYZX(float3 xyz) /// This is the default order rotation order in Unity. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerZXY(float3 xyz) { // return mul(rotateY(xyz.y), mul(rotateX(xyz.x), rotateZ(xyz.z))); @@ -184,6 +189,7 @@ public static quaternion EulerZXY(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerZYX(float3 xyz) { // return mul(rotateX(xyz.x), mul(rotateY(xyz.y), rotateZ(xyz.z))); @@ -267,6 +273,7 @@ public static quaternion EulerZYX(float3 xyz) /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. /// The order in which the rotations are applied. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion Euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) { switch (order) @@ -339,6 +346,7 @@ public static quaternion RotateZ(float angle) /// The two input vectors are assumed to be unit length and not collinear. /// If these assumptions are not met use float3x3.LookRotationSafe instead. /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion LookRotation(float3 forward, float3 up) { float3 t = normalize(cross(up, forward)); @@ -375,6 +383,7 @@ public static quaternion LookRotationSafe(float3 forward, float3 up) public bool Equals(quaternion x) { return value.x == x.value.x && value.y == x.value.y && value.z == x.value.z && value.w == x.value.w; } /// Returns whether true if the quaternion is equal to a given quaternion, false otherwise. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public override bool Equals(object x) { return Equals((quaternion)x); } /// Returns a hash code for the quaternion. @@ -561,6 +570,7 @@ public static quaternion nlerp(quaternion q1, quaternion q2, float t) } /// Returns the result of a spherical interpolation between two quaternions q1 and a2 using an interpolation parameter t. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion slerp(quaternion q1, quaternion q2, float t) { float dt = dot(q1, q2); diff --git a/src/Unity.Mathematics/rigid_transform.cs b/src/Unity.Mathematics/rigid_transform.cs index b207f59e..9ab9adeb 100644 --- a/src/Unity.Mathematics/rigid_transform.cs +++ b/src/Unity.Mathematics/rigid_transform.cs @@ -239,6 +239,7 @@ public static RigidTransform Translate(float3 vector) public bool Equals(RigidTransform x) { return rot.Equals(x.rot) && pos.Equals(x.pos); } /// Returns true if the RigidTransform is equal to a given RigidTransform, false otherwise. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public override bool Equals(object x) { return Equals((RigidTransform)x); } /// Returns a hash code for the RigidTransform. From 09cada0e82c4433192775fef65730bb4f9994f2a Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Tue, 7 Jul 2020 11:41:02 +0200 Subject: [PATCH 306/437] Add old readme --- doc/readme.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 doc/readme.md diff --git a/doc/readme.md b/doc/readme.md new file mode 100644 index 00000000..1c1c41c1 --- /dev/null +++ b/doc/readme.md @@ -0,0 +1,67 @@ +Document written by Rune Stubbe, December 14th 2018 + +Pseudorandom notes on mathematics +============================================== +Differences between Mathematics and HLSL +----------------------------------------- +Unity Mathematics tries to follow familiar HLSL conventions whenever possible. Formulas and computations are generally more succintly expressed in a HLSL-like syntax with swizzles and free function than the traditional C# Unity Math library. Unity Mathematics is not HLSL, but is in most instances trivially portable. The large common subset allows for code to directly shared between the two in many cases. +Due to inherent limitations in C# and for consistency reasons there are some notable differences between Unity Mathematics and HLSL. +1. Type conversion rules: +HLSL will implicitly perform narrowing conversions. This could for instance be a float2 assigned directly to an int2/bool2. +C# requires explict casts to perform these kinds of potentially lossy conversions. We have chosen to follow the C# conventions here for consistency with how the conversions already function with C#'s builtin types int/float/etc. +2. Floating point literals: +In HLSL the default floating point literal precision is float, while it is double in C#. The `1.5` float literal in HLSL corresponds to `1.5f` in C# and the likewise the double literal `3.2L` in HLSL corresponds to `3.2` in C#. +3. Half precision floating point: `half`/`halfN` are supported in Mathematics, but only as storage types that implicitly convert to `float`/`double` types and can be explicitly converted to from these types. No arithmetic operation are defined on them as opposed to the HLSL types. We chose to do this as these operations would insolve implicit conversion to and from `half`. These operations would be expensive and we believe that expensive operations should not happen implicitly. +4. Implicit truncation: +HLSL allows you to assign a float4 to a float2. As long as the source has at least as many components as the destination, the assignment is allowed. Any additional components are truncated away. We consider this behavior counter intuitive and error prone, so Unity.Mathematics does not try to mimic this behavior. +Mathematics aims to be a lean core library without domain specific features such as colision detection primitives, colorspace conversions, etc. Within these constraints, we decided to make the following additions. +1. Named constructors for matrix types: +A lot of game code is centred around manipulating transforms. To ease this work we have added a number of constructors and converions between various transform representations and added a number of named constructors for constructing various transforms for Rotation, Translation, Scaling, Orthographic/Perspective projections, LookAt transforms, etc. +2. A `quaternion` type: +Considering how ubiquitous quaternions are in games, it seems appropriate to provide a good standard implementation in core mathematics. Whenever possible `quaternion` is a drop in replacement for `float3x3`. `mul` is also defined for `quaternion` just as for `float3x3`, `quaternion` can be used to initialize matrices and `quaternion` defines the same set of named constructors as the equivalent `float3x3` type. +3. Various additional utility functions: +`inverse`/`fastinverse` for inverting a matrix or quaternion. Horizontal operations `csum`/`cmin`/`cmax`. `compress` for left packing a vector using a boolean mask. Squared length/distance functions `lengthsq/distancesq`. `orthonormalize` functions. And many others. +4. Random Number Generator: `Random`. Basic PRNG with support for drawing uniformly random values of the basic scalar and vector types. It also has functions for generating uniformly random directions and rotation. The generator is based on the xor-shift algorithm. This algorithm was chosen primarily because it has a small state and unlike most PRNGs doesn't require integer multiplication, which is a problematic operation on lower-tier vector instruction sets. +5. Rigid Transform (quaternion + position) and Cellular/Perlin Noise: The current math library includes these, but while useful, they would would probably find a better home somewhere outside the core mathematics library. + +Generated code +-------------- +The mathematics library has a high degree of regularity that is not easily expressed in ordinary C# code. Constructors, conversion operators, conversion operators, arithmetic operators, swizzles, ToString-methods, Hash functions, etc. of the many vector and matrix type variants are all distinct, but all follow the same basic structure. To avoid the error prone process of to writing and maintaining the many variants, we generate the code for these regular functions using the C# program **Unity.Mathematics.CodeGen**. The resulting generated files are easily recognizable by their *.gen.cs extension. To get test coverage of these functions, the corresponding tests are also generated by this program. + +Tests +--- + +Mathematics includes thousands of Unit tests to cover methods and operator overloads for the vector, matrix and quaterion types that can be found in the **Unity.Mathematics.Tests** project. +The tests aim to exercise the entire set of Mathematics features using a combination of generated and manual tests. As Mathematics is intended to be used with the Burst compiler, we also include most of these tests as part of the Burst compiler tests in the **Burst.Compiler.IL.Tests** project. All shared tests between the two are in the `Tests/Shared` folder. A few tests have had to be omitted as the testing code it self uses unburstable code. + +Floating point precision and floating point overflow/underflow +-------------------------------------------------------------- + +Floating point precision in C# guarantees a minimum, but not a maximum precision. float might be evaluated as double (which mono likes to do) or double might be evaluated using extended precision (80bits). The precision is not even guaranteed to be consistent on a specific platform or even a concrete program. It might vary depending on how the JIT decides to optimize a particular piece of code! +Anecdotely it seems these two otherwise semantically identical pieces of code can behave differently because of JIT optimization decisions (x86): +1. Constants in array +```C# +var a = new double[2] = { -2.5e160, 1.2e160 }; +double d = System.Math.Sqrt(a[0] * a[0] + a[1] * a[1]); +System.Console.WriteLine("" + d); // Debug Build: Infinity, Release Build: 2.86356e160. +``` +2. Constants in local variables +```C# +double a = -2.6e160; +double b = -1.2e160; +double d = System.Math.Sqrt(a * a + b * b); +System.Console.WriteLine("" + d); // Debug Build: Infinity, Release Build: Infinity. +``` +You would expect the result to always be Infinity as the intermediate value inside the Sqrt (8.2e320) is outside the valid double precision range. But depending on the platform, whether optimizations are enabled and surprisingly even whether or not the constants come from a local variable or array, this might produce a finite value. Seemingly this happens because it might decide to perform the calculation in extended precision. +This behavior is specified in the C# specification (9.3.7) where it states: "Floating-point operations may be performed with higher precision than the result type of the operation.". +Due to this inconsistency, we have to avoid floating point overflow behavior, as it is simple not guaranteed even using microsofts own runtime! + +Signed zeroes +------------- + +According to the C# specification section 9.3.7 C# supports and distinguishes between positive and negative floating point zeros. In practice we have found this not to be the case on our current Linux Mono environement, where seemingly negative zeroes are initialized as postive zeroes. We should investigate this further at some point, but so far the affected tests are simply disabled in Linux using the `[WindowsOnlyAttribute]`. + +Known issues +------------ + +1. In order for code to be burstable we have to define all class-like objects as structs, but unlike a classes there is no way to enforce that a struct gets initialized in any particular way. Just declaring a struct will give the user a zero-initialized instance. One instance where this limitation is very apparent is with the `Random`. There is no way for us to guarantee that the user doesn't accidentally declare a zero-initialized instance. Such an instance has the unfortunate property that it will be stuck perpetually generating nothing but zeros. This is by the nature of the xor-shift algorithm, but it seems unnecessarily error-prone. While we could work around the problem by internally remapping the seed space, it would incur some unnecessary additional overhead and it seems this problem is likely to arrise in other class-like objects implemented with structs. \ No newline at end of file From 2f16a320b52e2de34cade87afd2816eded4f8e1d Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Wed, 8 Jul 2020 13:27:21 +0200 Subject: [PATCH 307/437] Apply suggestions from code review Co-authored-by: Dale Kim <3121968+unpacklo@users.noreply.github.com> --- doc/readme.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/doc/readme.md b/doc/readme.md index 1c1c41c1..3e317b39 100644 --- a/doc/readme.md +++ b/doc/readme.md @@ -1,38 +1,38 @@ Document written by Rune Stubbe, December 14th 2018 -Pseudorandom notes on mathematics +Pseudorandom notes on Unity.Mathematics ============================================== Differences between Mathematics and HLSL ----------------------------------------- -Unity Mathematics tries to follow familiar HLSL conventions whenever possible. Formulas and computations are generally more succintly expressed in a HLSL-like syntax with swizzles and free function than the traditional C# Unity Math library. Unity Mathematics is not HLSL, but is in most instances trivially portable. The large common subset allows for code to directly shared between the two in many cases. -Due to inherent limitations in C# and for consistency reasons there are some notable differences between Unity Mathematics and HLSL. +Unity.Mathematics tries to follow familiar HLSL conventions whenever possible. Formulas and computations are generally more succintly expressed in a HLSL-like syntax with swizzles and free function than the traditional C# Unity Math library. Unity.Mathematics is not HLSL, but is in most instances trivially portable. The large common subset allows for code to directly shared between the two in many cases. +Due to inherent limitations in C# and for consistency reasons there are some notable differences between Unity.Mathematics and HLSL. 1. Type conversion rules: HLSL will implicitly perform narrowing conversions. This could for instance be a float2 assigned directly to an int2/bool2. C# requires explict casts to perform these kinds of potentially lossy conversions. We have chosen to follow the C# conventions here for consistency with how the conversions already function with C#'s builtin types int/float/etc. 2. Floating point literals: In HLSL the default floating point literal precision is float, while it is double in C#. The `1.5` float literal in HLSL corresponds to `1.5f` in C# and the likewise the double literal `3.2L` in HLSL corresponds to `3.2` in C#. -3. Half precision floating point: `half`/`halfN` are supported in Mathematics, but only as storage types that implicitly convert to `float`/`double` types and can be explicitly converted to from these types. No arithmetic operation are defined on them as opposed to the HLSL types. We chose to do this as these operations would insolve implicit conversion to and from `half`. These operations would be expensive and we believe that expensive operations should not happen implicitly. +3. Half precision floating point: `half`/`halfN` are supported in Mathematics, but only as storage types that implicitly convert to `float`/`double` types and can be explicitly converted to from these types. No arithmetic operation are defined on them as opposed to the HLSL types. We chose to do this as these operations would involve implicit conversion to and from `half`. These operations would be expensive and we believe that expensive operations should not happen implicitly. 4. Implicit truncation: HLSL allows you to assign a float4 to a float2. As long as the source has at least as many components as the destination, the assignment is allowed. Any additional components are truncated away. We consider this behavior counter intuitive and error prone, so Unity.Mathematics does not try to mimic this behavior. -Mathematics aims to be a lean core library without domain specific features such as colision detection primitives, colorspace conversions, etc. Within these constraints, we decided to make the following additions. +Unity.Mathematics aims to be a lean core library without domain specific features such as collision detection primitives, color space conversions, etc. Within these constraints, we decided to make the following additions. 1. Named constructors for matrix types: -A lot of game code is centred around manipulating transforms. To ease this work we have added a number of constructors and converions between various transform representations and added a number of named constructors for constructing various transforms for Rotation, Translation, Scaling, Orthographic/Perspective projections, LookAt transforms, etc. +A lot of game code is centered around manipulating transforms. To ease this work we have added a number of constructors and conversions between various transform representations and added a number of named constructors for constructing various transforms for Rotation, Translation, Scaling, Orthographic/Perspective projections, LookAt transforms, etc. 2. A `quaternion` type: Considering how ubiquitous quaternions are in games, it seems appropriate to provide a good standard implementation in core mathematics. Whenever possible `quaternion` is a drop in replacement for `float3x3`. `mul` is also defined for `quaternion` just as for `float3x3`, `quaternion` can be used to initialize matrices and `quaternion` defines the same set of named constructors as the equivalent `float3x3` type. 3. Various additional utility functions: -`inverse`/`fastinverse` for inverting a matrix or quaternion. Horizontal operations `csum`/`cmin`/`cmax`. `compress` for left packing a vector using a boolean mask. Squared length/distance functions `lengthsq/distancesq`. `orthonormalize` functions. And many others. +`inverse`/`fastinverse` for inverting a matrix or quaternion. Horizontal operations `csum`/`cmin`/`cmax`. `compress` for left packing a vector using a boolean mask. Squared length/distance functions `lengthsq/distancesq`. `orthonormalize` functions, and many others. 4. Random Number Generator: `Random`. Basic PRNG with support for drawing uniformly random values of the basic scalar and vector types. It also has functions for generating uniformly random directions and rotation. The generator is based on the xor-shift algorithm. This algorithm was chosen primarily because it has a small state and unlike most PRNGs doesn't require integer multiplication, which is a problematic operation on lower-tier vector instruction sets. -5. Rigid Transform (quaternion + position) and Cellular/Perlin Noise: The current math library includes these, but while useful, they would would probably find a better home somewhere outside the core mathematics library. +5. `RigidTransform` (quaternion + position) and Cellular/Perlin Noise: The current math library includes these, but while useful, they would would probably find a better home somewhere outside the core mathematics library. Generated code -------------- -The mathematics library has a high degree of regularity that is not easily expressed in ordinary C# code. Constructors, conversion operators, conversion operators, arithmetic operators, swizzles, ToString-methods, Hash functions, etc. of the many vector and matrix type variants are all distinct, but all follow the same basic structure. To avoid the error prone process of to writing and maintaining the many variants, we generate the code for these regular functions using the C# program **Unity.Mathematics.CodeGen**. The resulting generated files are easily recognizable by their *.gen.cs extension. To get test coverage of these functions, the corresponding tests are also generated by this program. +Unity.Mathematics has a high degree of regularity that is not easily expressed in ordinary C# code. Constructors, conversion operators, conversion operators, arithmetic operators, swizzles, ToString-methods, Hash functions, etc. of the many vector and matrix type variants are all distinct, but all follow the same basic structure. To avoid the error prone process of writing and maintaining the many variants, we generate the code for these regular functions using the C# program **Unity.Mathematics.CodeGen**. The resulting generated files are easily recognizable by their *.gen.cs extension. To get test coverage of these functions, the corresponding tests are also generated by this program. Tests --- -Mathematics includes thousands of Unit tests to cover methods and operator overloads for the vector, matrix and quaterion types that can be found in the **Unity.Mathematics.Tests** project. -The tests aim to exercise the entire set of Mathematics features using a combination of generated and manual tests. As Mathematics is intended to be used with the Burst compiler, we also include most of these tests as part of the Burst compiler tests in the **Burst.Compiler.IL.Tests** project. All shared tests between the two are in the `Tests/Shared` folder. A few tests have had to be omitted as the testing code it self uses unburstable code. +Unity.Mathematics includes thousands of unit tests to cover methods and operator overloads for the vector, matrix and quaternion types that can be found in the **Unity.Mathematics.Tests** project. +The tests aim to exercise the entire set of Unity.Mathematics features using a combination of generated and manual tests. As Unity.Mathematics is intended to be used with the Burst compiler, we also include most of these tests as part of the Burst compiler tests in the **Burst.Compiler.IL.Tests** project. All shared tests between the two are in the `Tests/Shared` folder. A few tests have had to be omitted as the testing code it self uses unburstable code. Floating point precision and floating point overflow/underflow -------------------------------------------------------------- @@ -54,14 +54,14 @@ System.Console.WriteLine("" + d); // Debug Build: Infinity, Release Build: Infin ``` You would expect the result to always be Infinity as the intermediate value inside the Sqrt (8.2e320) is outside the valid double precision range. But depending on the platform, whether optimizations are enabled and surprisingly even whether or not the constants come from a local variable or array, this might produce a finite value. Seemingly this happens because it might decide to perform the calculation in extended precision. This behavior is specified in the C# specification (9.3.7) where it states: "Floating-point operations may be performed with higher precision than the result type of the operation.". -Due to this inconsistency, we have to avoid floating point overflow behavior, as it is simple not guaranteed even using microsofts own runtime! +Due to this inconsistency, we have to avoid floating point overflow behavior, as it is simple not guaranteed even using Microsoft's own runtime! -Signed zeroes +Signed zeros ------------- -According to the C# specification section 9.3.7 C# supports and distinguishes between positive and negative floating point zeros. In practice we have found this not to be the case on our current Linux Mono environement, where seemingly negative zeroes are initialized as postive zeroes. We should investigate this further at some point, but so far the affected tests are simply disabled in Linux using the `[WindowsOnlyAttribute]`. +According to the C# specification section 9.3.7 C# supports and distinguishes between positive and negative floating point zeros. In practice we have found this not to be the case on our current Linux Mono environment, where seemingly negative zeroes are initialized as positive zeros. We should investigate this further at some point, but so far the affected tests are simply disabled in Linux using the `[WindowsOnlyAttribute]`. Known issues ------------ -1. In order for code to be burstable we have to define all class-like objects as structs, but unlike a classes there is no way to enforce that a struct gets initialized in any particular way. Just declaring a struct will give the user a zero-initialized instance. One instance where this limitation is very apparent is with the `Random`. There is no way for us to guarantee that the user doesn't accidentally declare a zero-initialized instance. Such an instance has the unfortunate property that it will be stuck perpetually generating nothing but zeros. This is by the nature of the xor-shift algorithm, but it seems unnecessarily error-prone. While we could work around the problem by internally remapping the seed space, it would incur some unnecessary additional overhead and it seems this problem is likely to arrise in other class-like objects implemented with structs. \ No newline at end of file +1. In order for code to be burstable we have to define all class-like objects as structs, but unlike classes there is no way to enforce that a struct gets initialized in any particular way. Just declaring a struct will give the user a zero-initialized instance. One instance where this limitation is very apparent is with `Random`. There is no way for us to guarantee that the user doesn't accidentally declare a zero-initialized instance. Such an instance has the unfortunate property that it will be stuck perpetually generating nothing but zeros. This is by the nature of the xor-shift algorithm, but it seems unnecessarily error-prone. While we could work around the problem by internally remapping the seed space, it would incur some unnecessary additional overhead and it seems this problem is likely to arise in other class-like objects implemented with structs. From 0bc94172333203cb370a8ff5ed9572c92362ad18 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Thu, 9 Jul 2020 13:33:10 -0700 Subject: [PATCH 308/437] Remove second instance of "conversion operators" --- doc/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/readme.md b/doc/readme.md index 3e317b39..b2cbf2a3 100644 --- a/doc/readme.md +++ b/doc/readme.md @@ -26,7 +26,7 @@ Considering how ubiquitous quaternions are in games, it seems appropriate to pro Generated code -------------- -Unity.Mathematics has a high degree of regularity that is not easily expressed in ordinary C# code. Constructors, conversion operators, conversion operators, arithmetic operators, swizzles, ToString-methods, Hash functions, etc. of the many vector and matrix type variants are all distinct, but all follow the same basic structure. To avoid the error prone process of writing and maintaining the many variants, we generate the code for these regular functions using the C# program **Unity.Mathematics.CodeGen**. The resulting generated files are easily recognizable by their *.gen.cs extension. To get test coverage of these functions, the corresponding tests are also generated by this program. +Unity.Mathematics has a high degree of regularity that is not easily expressed in ordinary C# code. Constructors, conversion operators, arithmetic operators, swizzles, ToString-methods, Hash functions, etc. of the many vector and matrix type variants are all distinct, but all follow the same basic structure. To avoid the error prone process of writing and maintaining the many variants, we generate the code for these regular functions using the C# program **Unity.Mathematics.CodeGen**. The resulting generated files are easily recognizable by their *.gen.cs extension. To get test coverage of these functions, the corresponding tests are also generated by this program. Tests --- From 734903a18dea0bad4b5f08cd5d7094cbf16311ef Mon Sep 17 00:00:00 2001 From: Henrik Kjellander Date: Wed, 15 Jul 2020 07:36:54 +0200 Subject: [PATCH 309/437] Commit initial unfolded files --- .yamato/expectations/upm-ci.unfolded.yaml | 361 ++++++++++++++++++++++ 1 file changed, 361 insertions(+) create mode 100644 .yamato/expectations/upm-ci.unfolded.yaml diff --git a/.yamato/expectations/upm-ci.unfolded.yaml b/.yamato/expectations/upm-ci.unfolded.yaml new file mode 100644 index 00000000..0eafcc47 --- /dev/null +++ b/.yamato/expectations/upm-ci.unfolded.yaml @@ -0,0 +1,361 @@ + +commit_ci: + name: all CI pipeline + dependencies: + - .yamato/upm-ci.yml#validate_package_minimal + triggers: + branches: + only: + - /.*/ +nightly_ci: + name: all Nightly Pipeline + dependencies: + - .yamato/upm-ci.yml#validate_package_windows_2018.4 + - .yamato/upm-ci.yml#validate_package_windows_2019.2 + - .yamato/upm-ci.yml#validate_package_windows_2019.3 + - .yamato/upm-ci.yml#validate_package_windows_trunk + - .yamato/upm-ci.yml#validate_package_linux_2018.4 + - .yamato/upm-ci.yml#validate_package_linux_2019.2 + - .yamato/upm-ci.yml#validate_package_linux_2019.3 + - .yamato/upm-ci.yml#validate_package_linux_trunk + - .yamato/upm-ci.yml#validate_package_macOS_2018.4 + - .yamato/upm-ci.yml#validate_package_macOS_2019.2 + - .yamato/upm-ci.yml#validate_package_macOS_2019.3 + - .yamato/upm-ci.yml#validate_package_macOS_trunk + triggers: + recurring: + - branch: master + frequency: daily +promote: + name: Promote + agent: + flavor: m1.large + image: package-ci/win10:stable + type: Unity::VM + artifacts: + packages: + paths: + - upm-ci~/packages/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - upm-ci package promote --package-path src/ + dependencies: + - .yamato/upm-ci.yml#publish + variables: + UPMCI_PROMOTION: 1 +publish: + name: Publish + agent: + flavor: m1.large + image: package-ci/win10:stable + type: Unity::VM + artifacts: + packages: + paths: + - upm-ci~/packages/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - upm-ci package publish --package-path src/ + dependencies: + - .yamato/upm-ci.yml#validate_package_minimal +publish_ci: + name: all Publish Pipeline + dependencies: + - .yamato/upm-ci.yml#publish + triggers: + tags: + only: + - /^\d+\.\d+\.\d+(-preview(\.\d+)?)?$/ +run_tests_on_mono_macOS: + name: Tests NUnit on macOS + agent: + name: macOS + flavor: m1.mac + image: burst/burst_mac:stable + type: Unity::VM::osx + commands: + - nuget restore src + - msbuild src/Unity.Mathematics.sln + - mono src/packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe src/Tests/bin/Debug/Unity.Mathematics.Tests.dll --process=single +run_tests_on_mono_windows: + name: Tests NUnit on windows + agent: + name: windows + flavor: b1.large + image: sdet/burst-devimage:stable + type: Unity::VM + commands: + - choco install nuget.commandline + - nuget restore src + - msbuild src/Unity.Mathematics.sln + - mono src/packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe src/Tests/bin/Debug/Unity.Mathematics.Tests.dll --process=single +validate_package_linux_2018.4: + name: Validate package linux 2018.4 + agent: + name: linux + flavor: b1.large + image: package-ci/ubuntu:stable + type: Unity::VM + artifacts: + packages_linux_2018.4: + paths: + - upm-ci~/packages/**/* + results_linux_2018.4: + paths: + - upm-ci~/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - DISPLAY=:0.0 upm-ci package pack --package-path src/ + - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2018.4 + dependencies: + - .yamato/upm-ci.yml#run_tests_on_mono_windows + - .yamato/upm-ci.yml#run_tests_on_mono_macOS +validate_package_linux_2019.2: + name: Validate package linux 2019.2 + agent: + name: linux + flavor: b1.large + image: package-ci/ubuntu:stable + type: Unity::VM + artifacts: + packages_linux_2019.2: + paths: + - upm-ci~/packages/**/* + results_linux_2019.2: + paths: + - upm-ci~/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - DISPLAY=:0.0 upm-ci package pack --package-path src/ + - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.2 + dependencies: + - .yamato/upm-ci.yml#run_tests_on_mono_windows + - .yamato/upm-ci.yml#run_tests_on_mono_macOS +validate_package_linux_2019.3: + name: Validate package linux 2019.3 + agent: + name: linux + flavor: b1.large + image: package-ci/ubuntu:stable + type: Unity::VM + artifacts: + packages_linux_2019.3: + paths: + - upm-ci~/packages/**/* + results_linux_2019.3: + paths: + - upm-ci~/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - DISPLAY=:0.0 upm-ci package pack --package-path src/ + - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.3 + dependencies: + - .yamato/upm-ci.yml#run_tests_on_mono_windows + - .yamato/upm-ci.yml#run_tests_on_mono_macOS +validate_package_linux_trunk: + name: Validate package linux trunk + agent: + name: linux + flavor: b1.large + image: package-ci/ubuntu:stable + type: Unity::VM + artifacts: + packages_linux_trunk: + paths: + - upm-ci~/packages/**/* + results_linux_trunk: + paths: + - upm-ci~/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - DISPLAY=:0.0 upm-ci package pack --package-path src/ + - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version trunk + dependencies: + - .yamato/upm-ci.yml#run_tests_on_mono_windows + - .yamato/upm-ci.yml#run_tests_on_mono_macOS +validate_package_macOS_2018.4: + name: Validate package macOS 2018.4 + agent: + name: macOS + flavor: m1.mac + image: burst/burst_mac:stable + type: Unity::VM::osx + artifacts: + packages_macOS_2018.4: + paths: + - upm-ci~/packages/**/* + results_macOS_2018.4: + paths: + - upm-ci~/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version 2018.4 + dependencies: + - .yamato/upm-ci.yml#run_tests_on_mono_windows + - .yamato/upm-ci.yml#run_tests_on_mono_macOS +validate_package_macOS_2019.2: + name: Validate package macOS 2019.2 + agent: + name: macOS + flavor: m1.mac + image: burst/burst_mac:stable + type: Unity::VM::osx + artifacts: + packages_macOS_2019.2: + paths: + - upm-ci~/packages/**/* + results_macOS_2019.2: + paths: + - upm-ci~/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version 2019.2 + dependencies: + - .yamato/upm-ci.yml#run_tests_on_mono_windows + - .yamato/upm-ci.yml#run_tests_on_mono_macOS +validate_package_macOS_2019.3: + name: Validate package macOS 2019.3 + agent: + name: macOS + flavor: m1.mac + image: burst/burst_mac:stable + type: Unity::VM::osx + artifacts: + packages_macOS_2019.3: + paths: + - upm-ci~/packages/**/* + results_macOS_2019.3: + paths: + - upm-ci~/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version 2019.3 + dependencies: + - .yamato/upm-ci.yml#run_tests_on_mono_windows + - .yamato/upm-ci.yml#run_tests_on_mono_macOS +validate_package_macOS_trunk: + name: Validate package macOS trunk + agent: + name: macOS + flavor: m1.mac + image: burst/burst_mac:stable + type: Unity::VM::osx + artifacts: + packages_macOS_trunk: + paths: + - upm-ci~/packages/**/* + results_macOS_trunk: + paths: + - upm-ci~/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version trunk + dependencies: + - .yamato/upm-ci.yml#run_tests_on_mono_windows + - .yamato/upm-ci.yml#run_tests_on_mono_macOS +validate_package_minimal: + name: Validate Package Linux Minimal + agent: + name: linux + flavor: b1.large + image: package-ci/ubuntu:stable + type: Unity::VM + artifacts: + packages: + paths: + - upm-ci~/packages/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - DISPLAY=:0.0 upm-ci package pack --package-path src/ + - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.1 + dependencies: + - .yamato/upm-ci.yml#run_tests_on_mono_windows + - .yamato/upm-ci.yml#run_tests_on_mono_macOS +validate_package_windows_2018.4: + name: Validate package windows 2018.4 + agent: + name: windows + flavor: b1.large + image: sdet/burst-devimage:stable + type: Unity::VM + artifacts: + packages_windows_2018.4: + paths: + - upm-ci~/packages/**/* + results_windows_2018.4: + paths: + - upm-ci~/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version 2018.4 + dependencies: + - .yamato/upm-ci.yml#run_tests_on_mono_windows + - .yamato/upm-ci.yml#run_tests_on_mono_macOS +validate_package_windows_2019.2: + name: Validate package windows 2019.2 + agent: + name: windows + flavor: b1.large + image: sdet/burst-devimage:stable + type: Unity::VM + artifacts: + packages_windows_2019.2: + paths: + - upm-ci~/packages/**/* + results_windows_2019.2: + paths: + - upm-ci~/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version 2019.2 + dependencies: + - .yamato/upm-ci.yml#run_tests_on_mono_windows + - .yamato/upm-ci.yml#run_tests_on_mono_macOS +validate_package_windows_2019.3: + name: Validate package windows 2019.3 + agent: + name: windows + flavor: b1.large + image: sdet/burst-devimage:stable + type: Unity::VM + artifacts: + packages_windows_2019.3: + paths: + - upm-ci~/packages/**/* + results_windows_2019.3: + paths: + - upm-ci~/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version 2019.3 + dependencies: + - .yamato/upm-ci.yml#run_tests_on_mono_windows + - .yamato/upm-ci.yml#run_tests_on_mono_macOS +validate_package_windows_trunk: + name: Validate package windows trunk + agent: + name: windows + flavor: b1.large + image: sdet/burst-devimage:stable + type: Unity::VM + artifacts: + packages_windows_trunk: + paths: + - upm-ci~/packages/**/* + results_windows_trunk: + paths: + - upm-ci~/**/* + commands: + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version trunk + dependencies: + - .yamato/upm-ci.yml#run_tests_on_mono_windows + - .yamato/upm-ci.yml#run_tests_on_mono_macOS From 8219912b84abfd198902f5e2ef82b34c2ae55d29 Mon Sep 17 00:00:00 2001 From: Henrik Kjellander Date: Wed, 15 Jul 2020 07:49:35 +0200 Subject: [PATCH 310/437] Use package-ci images for upm-ci commands --- .yamato/expectations/upm-ci.unfolded.yaml | 59 +++++++++-------------- .yamato/upm-ci.yml | 34 +++++++------ 2 files changed, 41 insertions(+), 52 deletions(-) diff --git a/.yamato/expectations/upm-ci.unfolded.yaml b/.yamato/expectations/upm-ci.unfolded.yaml index 0eafcc47..b77f8c59 100644 --- a/.yamato/expectations/upm-ci.unfolded.yaml +++ b/.yamato/expectations/upm-ci.unfolded.yaml @@ -69,7 +69,6 @@ publish_ci: run_tests_on_mono_macOS: name: Tests NUnit on macOS agent: - name: macOS flavor: m1.mac image: burst/burst_mac:stable type: Unity::VM::osx @@ -80,7 +79,6 @@ run_tests_on_mono_macOS: run_tests_on_mono_windows: name: Tests NUnit on windows agent: - name: windows flavor: b1.large image: sdet/burst-devimage:stable type: Unity::VM @@ -92,7 +90,6 @@ run_tests_on_mono_windows: validate_package_linux_2018.4: name: Validate package linux 2018.4 agent: - name: linux flavor: b1.large image: package-ci/ubuntu:stable type: Unity::VM @@ -105,15 +102,14 @@ validate_package_linux_2018.4: - upm-ci~/**/* commands: - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - DISPLAY=:0.0 upm-ci package pack --package-path src/ - - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2018.4 + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version 2018.4 dependencies: - .yamato/upm-ci.yml#run_tests_on_mono_windows - .yamato/upm-ci.yml#run_tests_on_mono_macOS validate_package_linux_2019.2: name: Validate package linux 2019.2 agent: - name: linux flavor: b1.large image: package-ci/ubuntu:stable type: Unity::VM @@ -126,15 +122,14 @@ validate_package_linux_2019.2: - upm-ci~/**/* commands: - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - DISPLAY=:0.0 upm-ci package pack --package-path src/ - - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.2 + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version 2019.2 dependencies: - .yamato/upm-ci.yml#run_tests_on_mono_windows - .yamato/upm-ci.yml#run_tests_on_mono_macOS validate_package_linux_2019.3: name: Validate package linux 2019.3 agent: - name: linux flavor: b1.large image: package-ci/ubuntu:stable type: Unity::VM @@ -147,15 +142,14 @@ validate_package_linux_2019.3: - upm-ci~/**/* commands: - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - DISPLAY=:0.0 upm-ci package pack --package-path src/ - - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.3 + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version 2019.3 dependencies: - .yamato/upm-ci.yml#run_tests_on_mono_windows - .yamato/upm-ci.yml#run_tests_on_mono_macOS validate_package_linux_trunk: name: Validate package linux trunk agent: - name: linux flavor: b1.large image: package-ci/ubuntu:stable type: Unity::VM @@ -168,17 +162,16 @@ validate_package_linux_trunk: - upm-ci~/**/* commands: - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - DISPLAY=:0.0 upm-ci package pack --package-path src/ - - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version trunk + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version trunk dependencies: - .yamato/upm-ci.yml#run_tests_on_mono_windows - .yamato/upm-ci.yml#run_tests_on_mono_macOS validate_package_macOS_2018.4: name: Validate package macOS 2018.4 agent: - name: macOS flavor: m1.mac - image: burst/burst_mac:stable + image: package-ci/mac:stable type: Unity::VM::osx artifacts: packages_macOS_2018.4: @@ -197,9 +190,8 @@ validate_package_macOS_2018.4: validate_package_macOS_2019.2: name: Validate package macOS 2019.2 agent: - name: macOS flavor: m1.mac - image: burst/burst_mac:stable + image: package-ci/mac:stable type: Unity::VM::osx artifacts: packages_macOS_2019.2: @@ -218,9 +210,8 @@ validate_package_macOS_2019.2: validate_package_macOS_2019.3: name: Validate package macOS 2019.3 agent: - name: macOS flavor: m1.mac - image: burst/burst_mac:stable + image: package-ci/mac:stable type: Unity::VM::osx artifacts: packages_macOS_2019.3: @@ -239,9 +230,8 @@ validate_package_macOS_2019.3: validate_package_macOS_trunk: name: Validate package macOS trunk agent: - name: macOS flavor: m1.mac - image: burst/burst_mac:stable + image: package-ci/mac:stable type: Unity::VM::osx artifacts: packages_macOS_trunk: @@ -260,7 +250,6 @@ validate_package_macOS_trunk: validate_package_minimal: name: Validate Package Linux Minimal agent: - name: linux flavor: b1.large image: package-ci/ubuntu:stable type: Unity::VM @@ -270,17 +259,16 @@ validate_package_minimal: - upm-ci~/packages/**/* commands: - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - DISPLAY=:0.0 upm-ci package pack --package-path src/ - - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.1 + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version 2019.1 dependencies: - .yamato/upm-ci.yml#run_tests_on_mono_windows - .yamato/upm-ci.yml#run_tests_on_mono_macOS validate_package_windows_2018.4: name: Validate package windows 2018.4 agent: - name: windows - flavor: b1.large - image: sdet/burst-devimage:stable + flavor: m1.large + image: package-ci/win10:stable type: Unity::VM artifacts: packages_windows_2018.4: @@ -299,9 +287,8 @@ validate_package_windows_2018.4: validate_package_windows_2019.2: name: Validate package windows 2019.2 agent: - name: windows - flavor: b1.large - image: sdet/burst-devimage:stable + flavor: m1.large + image: package-ci/win10:stable type: Unity::VM artifacts: packages_windows_2019.2: @@ -320,9 +307,8 @@ validate_package_windows_2019.2: validate_package_windows_2019.3: name: Validate package windows 2019.3 agent: - name: windows - flavor: b1.large - image: sdet/burst-devimage:stable + flavor: m1.large + image: package-ci/win10:stable type: Unity::VM artifacts: packages_windows_2019.3: @@ -341,9 +327,8 @@ validate_package_windows_2019.3: validate_package_windows_trunk: name: Validate package windows trunk agent: - name: windows - flavor: b1.large - image: sdet/burst-devimage:stable + flavor: m1.large + image: package-ci/win10:stable type: Unity::VM artifacts: packages_windows_trunk: diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index 58bed2d5..aab57ab4 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -3,21 +3,28 @@ build_platforms: type: Unity::VM image: sdet/burst-devimage:stable flavor: b1.large - npm_cmd: "npm" - upm_cmd: "upm-ci" - name: linux image: package-ci/ubuntu:stable type: Unity::VM flavor: b1.large - npm_cmd: "npm" - upm_cmd: "DISPLAY=:0.0 upm-ci" - name: macOS image: burst/burst_mac:stable type: Unity::VM::osx flavor: m1.mac - npm_cmd: "npm" - upm_cmd: "upm-ci" +upmci_platforms: + - name: windows + type: Unity::VM + image: package-ci/win10:stable + flavor: m1.large + - name: linux + image: package-ci/ubuntu:stable + type: Unity::VM + flavor: b1.large + - name: macOS + image: package-ci/mac:stable + type: Unity::VM::osx + flavor: m1.mac editor_versions: - version: "2018.4" @@ -31,7 +38,6 @@ editor_versions: run_tests_on_mono_{{platform.name}}: name: Tests NUnit on {{platform.name}} agent: - name: {{platform.name}} type: {{platform.type}} image: {{platform.image}} flavor: {{platform.flavor}} @@ -48,14 +54,13 @@ run_tests_on_mono_{{platform.name}}: validate_package_minimal: name: Validate Package Linux Minimal agent: - name: linux image: package-ci/ubuntu:stable type: Unity::VM flavor: b1.large commands: - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - DISPLAY=:0.0 upm-ci package pack --package-path src/ - - DISPLAY=:0.0 upm-ci package test --package-path src/ --unity-version 2019.1 + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version 2019.1 artifacts: packages: paths: @@ -67,19 +72,18 @@ validate_package_minimal: {% endunless %} {% endfor %} - {% for platform in build_platforms %} + {% for platform in upmci_platforms %} {% for editor in editor_versions %} validate_package_{{platform.name}}_{{editor.version}}: name: Validate package {{platform.name}} {{editor.version}} agent: - name: {{platform.name}} image: {{platform.image}} type: {{platform.type}} flavor: {{platform.flavor}} commands: - - {{platform.npm_cmd}} install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - {{platform.upm_cmd}} package pack --package-path src/ - - {{platform.upm_cmd}} package test --package-path src/ --unity-version {{ editor.version }} + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - upm-ci package pack --package-path src/ + - upm-ci package test --package-path src/ --unity-version {{ editor.version }} artifacts: packages_{{platform.name}}_{{editor.version}}: paths: From 480d19d9df36264dab81845671f5c311d418ade7 Mon Sep 17 00:00:00 2001 From: Henrik Kjellander Date: Wed, 15 Jul 2020 10:45:12 +0200 Subject: [PATCH 311/437] Change to b1.large --- .yamato/expectations/upm-ci.unfolded.yaml | 8 ++++---- .yamato/upm-ci.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.yamato/expectations/upm-ci.unfolded.yaml b/.yamato/expectations/upm-ci.unfolded.yaml index b77f8c59..da997747 100644 --- a/.yamato/expectations/upm-ci.unfolded.yaml +++ b/.yamato/expectations/upm-ci.unfolded.yaml @@ -267,7 +267,7 @@ validate_package_minimal: validate_package_windows_2018.4: name: Validate package windows 2018.4 agent: - flavor: m1.large + flavor: b1.large image: package-ci/win10:stable type: Unity::VM artifacts: @@ -287,7 +287,7 @@ validate_package_windows_2018.4: validate_package_windows_2019.2: name: Validate package windows 2019.2 agent: - flavor: m1.large + flavor: b1.large image: package-ci/win10:stable type: Unity::VM artifacts: @@ -307,7 +307,7 @@ validate_package_windows_2019.2: validate_package_windows_2019.3: name: Validate package windows 2019.3 agent: - flavor: m1.large + flavor: b1.large image: package-ci/win10:stable type: Unity::VM artifacts: @@ -327,7 +327,7 @@ validate_package_windows_2019.3: validate_package_windows_trunk: name: Validate package windows trunk agent: - flavor: m1.large + flavor: b1.large image: package-ci/win10:stable type: Unity::VM artifacts: diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index aab57ab4..b11d6911 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -16,7 +16,7 @@ upmci_platforms: - name: windows type: Unity::VM image: package-ci/win10:stable - flavor: m1.large + flavor: b1.large - name: linux image: package-ci/ubuntu:stable type: Unity::VM From ebe28c4c5ab4dfd24394750340c2708263a34e9f Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Wed, 29 Jul 2020 10:20:33 -0700 Subject: [PATCH 312/437] Reformat changelog to follow the organization in Collections. --- src/CHANGELOG.md | 53 ++++++++++++++++++++++++++++-------------------- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 589ddadc..d9964c10 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,28 +1,37 @@ # Changelog ## [Unreleased] -- Added [MethodImpl(MethodImplOptions.AggressiveInlining)] to many static functions to improve IL2CPP performance. -- Added compress() that accepts a float4 and uint4. -- Added math.project() and math.projectsafe() for vector projection. -- Added math.EPSILON, math.INFINITY, math.NAN and their double counterparts. -- Added [Serializable] to RigidTransform. -- Added math.ceillog2(). -- Added math.floorlog2(). -- Added math.down(), math.forward(), etc for Cartesian coordinate axes that match UnityEngine Vector3 equivalents. -- Added math.ispow2(). -- Added half.MinValueAsHalf and half.MaxValueAsHalf to avoid having to explicitly convert from float. -- Added a float3x3 constructor which takes a float4x4 as input. -- Added [Serializable] to half types. -- Added some performance tests which can be run from the Unity test project. -- Added Random.CreateFromIndex() to assist in creating Random instances from loop indices. -- Fixed documentation bug where quaternion.RotateX/Y/Z referred to a float4x4 instead of quaternion. -- Fixed code generation bugs which could cause Windows and Mac to generate different test code. -- Fixed some test asserts which used NaNs and signed zeros which failed in IL2CPP builds. -- Updated documentation for math.countbits() to include equivalent names on Intel and ARM architectures to aid in discoverability. -- Internal: Added Unity.Mathematics.Geometry.Plane to represent planes in 3D space. -- Internal: Added more MinMaxAABB functionality from Unity.Physics.Aabb. -- Internal: Added Unity.Mathematics.Geometry.Math to hold static functions like AABB transformations. -- Internal: Added MinMaxAABB. + +### Added +* Added `[MethodImpl(MethodImplOptions.AggressiveInlining)]` to many static functions to improve IL2CPP performance. +* Added `compress()` that accepts a `float4` and `uint4`. +* Added `math.project()` and `math.projectsafe()` for vector projection. +* Added `math.EPSILON`, `math.INFINITY`, `math.NAN` and their double counterparts. +* Added `[Serializable]` to `RigidTransform`. +* Added `math.ceillog2()`. +* Added `math.floorlog2()`. +* Added `math.down()`, `math.forward()`, etc for Cartesian coordinate axes that match UnityEngine Vector3 equivalents. +* Added `math.ispow2()`. +* Added `half.MinValueAsHalf` and `half.MaxValueAsHalf` to avoid having to explicitly convert from float. +* Added a `float3x3` constructor which takes a `float4x4` as input. +* Added `[Serializable]` to half types. +* Added some performance tests which can be run from the Unity test project. +* Added `Random.CreateFromIndex()` to assist in creating Random instances from loop indices. + +### Changed +### Deprecated +### Removed +### Fixed +* Fixed documentation bug where `quaternion.RotateX/Y/Z` referred to a `float4x4` instead of quaternion. +* Fixed code generation bugs which could cause Windows and Mac to generate different test code. +* Fixed some test asserts which used NaNs and signed zeros which failed in IL2CPP builds. +* Updated documentation for `math.countbits()` to include equivalent names on Intel and ARM architectures to aid in discoverability. + +### Internal (Not ready for production) +* Added `Unity.Mathematics.Geometry.Plane` to represent planes in 3D space. +* Added more `MinMaxAABB` functionality from `Unity.Physics.Aabb`. +* Added `Unity.Mathematics.Geometry.Math` to hold static functions like AABB transformations. +* Added `MinMaxAABB`. ## [1.1.0] - 2019-07-08 From e52fbe8e7137edbc380773325a75d9ce2badc97f Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Fri, 31 Jul 2020 12:03:33 -0700 Subject: [PATCH 313/437] Tag Unity.Mathematics types with new IL2CPP attribute. [Il2CppEagerStaticClassConstruction] makes it so that Unity will run static constructors eagerly at start time rather than lazily at execution time. --- src/CHANGELOG.md | 1 + .../VectorGenerator.cs | 2 + src/Unity.Mathematics/Geometry/MinMaxAABB.cs | 2 + src/Unity.Mathematics/Geometry/Plane.cs | 6 ++- ...ppEagerStaticClassConstructionAttribute.cs | 9 ++++ ...erStaticClassConstructionAttribute.cs.meta | 11 ++++ src/Unity.Mathematics/Noise/common.cs | 2 + .../Unity.Mathematics.csproj | 1 + src/Unity.Mathematics/bool2.gen.cs | 2 + src/Unity.Mathematics/bool2x2.gen.cs | 2 + src/Unity.Mathematics/bool2x3.gen.cs | 2 + src/Unity.Mathematics/bool2x4.gen.cs | 2 + src/Unity.Mathematics/bool3.gen.cs | 2 + src/Unity.Mathematics/bool3x2.gen.cs | 2 + src/Unity.Mathematics/bool3x3.gen.cs | 2 + src/Unity.Mathematics/bool3x4.gen.cs | 2 + src/Unity.Mathematics/bool4.gen.cs | 2 + src/Unity.Mathematics/bool4x2.gen.cs | 2 + src/Unity.Mathematics/bool4x3.gen.cs | 2 + src/Unity.Mathematics/bool4x4.gen.cs | 2 + src/Unity.Mathematics/double2.gen.cs | 2 + src/Unity.Mathematics/double2x2.gen.cs | 2 + src/Unity.Mathematics/double2x3.gen.cs | 2 + src/Unity.Mathematics/double2x4.gen.cs | 2 + src/Unity.Mathematics/double3.gen.cs | 2 + src/Unity.Mathematics/double3x2.gen.cs | 2 + src/Unity.Mathematics/double3x3.gen.cs | 2 + src/Unity.Mathematics/double3x4.gen.cs | 2 + src/Unity.Mathematics/double4.gen.cs | 2 + src/Unity.Mathematics/double4x2.gen.cs | 2 + src/Unity.Mathematics/double4x3.gen.cs | 2 + src/Unity.Mathematics/double4x4.gen.cs | 2 + src/Unity.Mathematics/float2.gen.cs | 2 + src/Unity.Mathematics/float2x2.gen.cs | 2 + src/Unity.Mathematics/float2x3.gen.cs | 2 + src/Unity.Mathematics/float2x4.gen.cs | 2 + src/Unity.Mathematics/float3.gen.cs | 2 + src/Unity.Mathematics/float3x2.gen.cs | 2 + src/Unity.Mathematics/float3x3.gen.cs | 2 + src/Unity.Mathematics/float3x4.gen.cs | 2 + src/Unity.Mathematics/float4.gen.cs | 2 + src/Unity.Mathematics/float4x2.gen.cs | 2 + src/Unity.Mathematics/float4x3.gen.cs | 2 + src/Unity.Mathematics/float4x4.gen.cs | 2 + src/Unity.Mathematics/half.cs | 2 + src/Unity.Mathematics/half2.gen.cs | 2 + src/Unity.Mathematics/half3.gen.cs | 2 + src/Unity.Mathematics/half4.gen.cs | 2 + src/Unity.Mathematics/int2.gen.cs | 2 + src/Unity.Mathematics/int2x2.gen.cs | 2 + src/Unity.Mathematics/int2x3.gen.cs | 2 + src/Unity.Mathematics/int2x4.gen.cs | 2 + src/Unity.Mathematics/int3.gen.cs | 2 + src/Unity.Mathematics/int3x2.gen.cs | 2 + src/Unity.Mathematics/int3x3.gen.cs | 2 + src/Unity.Mathematics/int3x4.gen.cs | 2 + src/Unity.Mathematics/int4.gen.cs | 2 + src/Unity.Mathematics/int4x2.gen.cs | 2 + src/Unity.Mathematics/int4x3.gen.cs | 2 + src/Unity.Mathematics/int4x4.gen.cs | 2 + src/Unity.Mathematics/math.cs | 50 ++++++++++--------- src/Unity.Mathematics/quaternion.cs | 2 + src/Unity.Mathematics/random.cs | 2 + src/Unity.Mathematics/rigid_transform.cs | 2 + src/Unity.Mathematics/uint2.gen.cs | 2 + src/Unity.Mathematics/uint2x2.gen.cs | 2 + src/Unity.Mathematics/uint2x3.gen.cs | 2 + src/Unity.Mathematics/uint2x4.gen.cs | 2 + src/Unity.Mathematics/uint3.gen.cs | 2 + src/Unity.Mathematics/uint3x2.gen.cs | 2 + src/Unity.Mathematics/uint3x3.gen.cs | 2 + src/Unity.Mathematics/uint3x4.gen.cs | 2 + src/Unity.Mathematics/uint4.gen.cs | 2 + src/Unity.Mathematics/uint4x2.gen.cs | 2 + src/Unity.Mathematics/uint4x3.gen.cs | 2 + src/Unity.Mathematics/uint4x4.gen.cs | 2 + 76 files changed, 192 insertions(+), 26 deletions(-) create mode 100644 src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs create mode 100644 src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs.meta diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index d9964c10..b18c5f87 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -3,6 +3,7 @@ ## [Unreleased] ### Added +* Added `[Il2CppEagerStaticClassConstruction]` to Unity.Mathematics types to run static constructors at startup. This improves IL2CPP performance slightly for types that have static constructors. * Added `[MethodImpl(MethodImplOptions.AggressiveInlining)]` to many static functions to improve IL2CPP performance. * Added `compress()` that accepts a `float4` and `uint4`. * Added `math.project()` and `math.projectsafe()` for vector projection. diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index 26294da7..a3c97744 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -506,6 +506,7 @@ private void GenerateTypeImplementation(StringBuilder str) str.Append("using System.Runtime.InteropServices;\n"); // for MarshalAs if (m_Columns == 1) str.Append("using System.Diagnostics;\n"); // for DebuggerTypeProxy + str.Append("using Unity.IL2CPP.CompilerServices;\n"); str.Append("\n"); str.Append("#pragma warning disable 0660, 0661\n\n"); str.Append("namespace Unity.Mathematics\n"); @@ -514,6 +515,7 @@ private void GenerateTypeImplementation(StringBuilder str) if (m_Columns == 1) str.AppendFormat("\t[DebuggerTypeProxy(typeof({0}.DebuggerProxy))]\n", m_TypeName); str.Append("\t[System.Serializable]\n"); + str.Append("\t[Il2CppEagerStaticClassConstruction]\n"); str.AppendFormat("\tpublic partial struct {0} : System.IEquatable<{0}>", m_TypeName); if (m_BaseType != "bool") str.Append(", IFormattable"); diff --git a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs index 4d996e42..eb4a3876 100644 --- a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs +++ b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs @@ -1,5 +1,6 @@ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; using static Unity.Mathematics.math; namespace Unity.Mathematics.Geometry @@ -14,6 +15,7 @@ namespace Unity.Mathematics.Geometry /// are very cheap to construct and perform overlap tests with them. /// [System.Serializable] + [Il2CppEagerStaticClassConstruction] internal struct MinMaxAABB : IEquatable { /// diff --git a/src/Unity.Mathematics/Geometry/Plane.cs b/src/Unity.Mathematics/Geometry/Plane.cs index de19935b..92d47c5e 100644 --- a/src/Unity.Mathematics/Geometry/Plane.cs +++ b/src/Unity.Mathematics/Geometry/Plane.cs @@ -1,6 +1,7 @@ using System; using System.Diagnostics; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; namespace Unity.Mathematics.Geometry { @@ -13,6 +14,7 @@ namespace Unity.Mathematics.Geometry /// [DebuggerDisplay("{Normal}, {Distance}")] [Serializable] + [Il2CppEagerStaticClassConstruction] internal struct Plane { /// @@ -122,7 +124,7 @@ public static Plane CreateFromUnitNormalAndPointInPlane(float3 unitNormal, float /// /// /// It is assumed that the normal is unit length. If you set a new plane such that Ax + By + Cz + Dw = 0 but - /// (A, B, C) is not unit length, then you must normalize the plane by calling . + /// (A, B, C) is not unit length, then you must normalize the plane by calling . /// public float3 Normal { @@ -135,7 +137,7 @@ public float3 Normal /// /// /// It is assumed that the normal is unit length. If you set a new plane such that Ax + By + Cz + Dw = 0 but - /// (A, B, C) is not unit length, then you must normalize the plane by calling . + /// (A, B, C) is not unit length, then you must normalize the plane by calling . /// public float Distance { diff --git a/src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs b/src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs new file mode 100644 index 00000000..259f4a87 --- /dev/null +++ b/src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs @@ -0,0 +1,9 @@ +using System; + +namespace Unity.IL2CPP.CompilerServices +{ + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)] + public class Il2CppEagerStaticClassConstructionAttribute : Attribute + { + } +} \ No newline at end of file diff --git a/src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs.meta b/src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs.meta new file mode 100644 index 00000000..643f0d34 --- /dev/null +++ b/src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3c7ef86a2cddb4254810c84d4f6e6618 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics/Noise/common.cs b/src/Unity.Mathematics/Noise/common.cs index 3ff3f8d7..971189c0 100644 --- a/src/Unity.Mathematics/Noise/common.cs +++ b/src/Unity.Mathematics/Noise/common.cs @@ -1,7 +1,9 @@ +using Unity.IL2CPP.CompilerServices; using static Unity.Mathematics.math; namespace Unity.Mathematics { + [Il2CppEagerStaticClassConstruction] public static partial class noise { // Modulo 289 without a division (only multiplications) diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 29fb827f..11383fbb 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -105,6 +105,7 @@ + diff --git a/src/Unity.Mathematics/bool2.gen.cs b/src/Unity.Mathematics/bool2.gen.cs index 2a7a062f..c4b45c8c 100644 --- a/src/Unity.Mathematics/bool2.gen.cs +++ b/src/Unity.Mathematics/bool2.gen.cs @@ -10,6 +10,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -17,6 +18,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(bool2.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct bool2 : System.IEquatable { [MarshalAs(UnmanagedType.U1)] diff --git a/src/Unity.Mathematics/bool2x2.gen.cs b/src/Unity.Mathematics/bool2x2.gen.cs index 5d891c9b..477f5bd1 100644 --- a/src/Unity.Mathematics/bool2x2.gen.cs +++ b/src/Unity.Mathematics/bool2x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct bool2x2 : System.IEquatable { public bool2 c0; diff --git a/src/Unity.Mathematics/bool2x3.gen.cs b/src/Unity.Mathematics/bool2x3.gen.cs index 7da87cb5..5c5054c3 100644 --- a/src/Unity.Mathematics/bool2x3.gen.cs +++ b/src/Unity.Mathematics/bool2x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct bool2x3 : System.IEquatable { public bool2 c0; diff --git a/src/Unity.Mathematics/bool2x4.gen.cs b/src/Unity.Mathematics/bool2x4.gen.cs index 99701e62..3ce041ca 100644 --- a/src/Unity.Mathematics/bool2x4.gen.cs +++ b/src/Unity.Mathematics/bool2x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct bool2x4 : System.IEquatable { public bool2 c0; diff --git a/src/Unity.Mathematics/bool3.gen.cs b/src/Unity.Mathematics/bool3.gen.cs index 96fe7d26..0576bb51 100644 --- a/src/Unity.Mathematics/bool3.gen.cs +++ b/src/Unity.Mathematics/bool3.gen.cs @@ -10,6 +10,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -17,6 +18,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(bool3.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct bool3 : System.IEquatable { [MarshalAs(UnmanagedType.U1)] diff --git a/src/Unity.Mathematics/bool3x2.gen.cs b/src/Unity.Mathematics/bool3x2.gen.cs index 4b95e5c6..4e28ff8d 100644 --- a/src/Unity.Mathematics/bool3x2.gen.cs +++ b/src/Unity.Mathematics/bool3x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct bool3x2 : System.IEquatable { public bool3 c0; diff --git a/src/Unity.Mathematics/bool3x3.gen.cs b/src/Unity.Mathematics/bool3x3.gen.cs index 2f052066..e7bd69b9 100644 --- a/src/Unity.Mathematics/bool3x3.gen.cs +++ b/src/Unity.Mathematics/bool3x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct bool3x3 : System.IEquatable { public bool3 c0; diff --git a/src/Unity.Mathematics/bool3x4.gen.cs b/src/Unity.Mathematics/bool3x4.gen.cs index 608f08c0..4e30c238 100644 --- a/src/Unity.Mathematics/bool3x4.gen.cs +++ b/src/Unity.Mathematics/bool3x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct bool3x4 : System.IEquatable { public bool3 c0; diff --git a/src/Unity.Mathematics/bool4.gen.cs b/src/Unity.Mathematics/bool4.gen.cs index 80afd4ee..7b7e5b50 100644 --- a/src/Unity.Mathematics/bool4.gen.cs +++ b/src/Unity.Mathematics/bool4.gen.cs @@ -10,6 +10,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -17,6 +18,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(bool4.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct bool4 : System.IEquatable { [MarshalAs(UnmanagedType.U1)] diff --git a/src/Unity.Mathematics/bool4x2.gen.cs b/src/Unity.Mathematics/bool4x2.gen.cs index 191df9fe..5901d017 100644 --- a/src/Unity.Mathematics/bool4x2.gen.cs +++ b/src/Unity.Mathematics/bool4x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct bool4x2 : System.IEquatable { public bool4 c0; diff --git a/src/Unity.Mathematics/bool4x3.gen.cs b/src/Unity.Mathematics/bool4x3.gen.cs index 3bbca320..b9f55151 100644 --- a/src/Unity.Mathematics/bool4x3.gen.cs +++ b/src/Unity.Mathematics/bool4x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct bool4x3 : System.IEquatable { public bool4 c0; diff --git a/src/Unity.Mathematics/bool4x4.gen.cs b/src/Unity.Mathematics/bool4x4.gen.cs index 24c2a2f7..5ab020cc 100644 --- a/src/Unity.Mathematics/bool4x4.gen.cs +++ b/src/Unity.Mathematics/bool4x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct bool4x4 : System.IEquatable { public bool4 c0; diff --git a/src/Unity.Mathematics/double2.gen.cs b/src/Unity.Mathematics/double2.gen.cs index 9a3758e3..9ce315ab 100644 --- a/src/Unity.Mathematics/double2.gen.cs +++ b/src/Unity.Mathematics/double2.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(double2.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct double2 : System.IEquatable, IFormattable { public double x; diff --git a/src/Unity.Mathematics/double2x2.gen.cs b/src/Unity.Mathematics/double2x2.gen.cs index 1a706882..ff698405 100644 --- a/src/Unity.Mathematics/double2x2.gen.cs +++ b/src/Unity.Mathematics/double2x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct double2x2 : System.IEquatable, IFormattable { public double2 c0; diff --git a/src/Unity.Mathematics/double2x3.gen.cs b/src/Unity.Mathematics/double2x3.gen.cs index 251715ea..94ca998c 100644 --- a/src/Unity.Mathematics/double2x3.gen.cs +++ b/src/Unity.Mathematics/double2x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct double2x3 : System.IEquatable, IFormattable { public double2 c0; diff --git a/src/Unity.Mathematics/double2x4.gen.cs b/src/Unity.Mathematics/double2x4.gen.cs index 58fb2d43..747ccb3c 100644 --- a/src/Unity.Mathematics/double2x4.gen.cs +++ b/src/Unity.Mathematics/double2x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct double2x4 : System.IEquatable, IFormattable { public double2 c0; diff --git a/src/Unity.Mathematics/double3.gen.cs b/src/Unity.Mathematics/double3.gen.cs index eca8d3ad..d6c56d6d 100644 --- a/src/Unity.Mathematics/double3.gen.cs +++ b/src/Unity.Mathematics/double3.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(double3.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct double3 : System.IEquatable, IFormattable { public double x; diff --git a/src/Unity.Mathematics/double3x2.gen.cs b/src/Unity.Mathematics/double3x2.gen.cs index 86ea7f65..159187d9 100644 --- a/src/Unity.Mathematics/double3x2.gen.cs +++ b/src/Unity.Mathematics/double3x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct double3x2 : System.IEquatable, IFormattable { public double3 c0; diff --git a/src/Unity.Mathematics/double3x3.gen.cs b/src/Unity.Mathematics/double3x3.gen.cs index de7c165e..1d5dee38 100644 --- a/src/Unity.Mathematics/double3x3.gen.cs +++ b/src/Unity.Mathematics/double3x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct double3x3 : System.IEquatable, IFormattable { public double3 c0; diff --git a/src/Unity.Mathematics/double3x4.gen.cs b/src/Unity.Mathematics/double3x4.gen.cs index 32ff8597..2162fa67 100644 --- a/src/Unity.Mathematics/double3x4.gen.cs +++ b/src/Unity.Mathematics/double3x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct double3x4 : System.IEquatable, IFormattable { public double3 c0; diff --git a/src/Unity.Mathematics/double4.gen.cs b/src/Unity.Mathematics/double4.gen.cs index 3c57ef4a..84491ac3 100644 --- a/src/Unity.Mathematics/double4.gen.cs +++ b/src/Unity.Mathematics/double4.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(double4.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct double4 : System.IEquatable, IFormattable { public double x; diff --git a/src/Unity.Mathematics/double4x2.gen.cs b/src/Unity.Mathematics/double4x2.gen.cs index 0375ee74..09ba6427 100644 --- a/src/Unity.Mathematics/double4x2.gen.cs +++ b/src/Unity.Mathematics/double4x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct double4x2 : System.IEquatable, IFormattable { public double4 c0; diff --git a/src/Unity.Mathematics/double4x3.gen.cs b/src/Unity.Mathematics/double4x3.gen.cs index c0d6a24f..88a680e5 100644 --- a/src/Unity.Mathematics/double4x3.gen.cs +++ b/src/Unity.Mathematics/double4x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct double4x3 : System.IEquatable, IFormattable { public double4 c0; diff --git a/src/Unity.Mathematics/double4x4.gen.cs b/src/Unity.Mathematics/double4x4.gen.cs index 687e5f32..6e192ff9 100644 --- a/src/Unity.Mathematics/double4x4.gen.cs +++ b/src/Unity.Mathematics/double4x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct double4x4 : System.IEquatable, IFormattable { public double4 c0; diff --git a/src/Unity.Mathematics/float2.gen.cs b/src/Unity.Mathematics/float2.gen.cs index 4a0ccab0..58b5bc2b 100644 --- a/src/Unity.Mathematics/float2.gen.cs +++ b/src/Unity.Mathematics/float2.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(float2.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct float2 : System.IEquatable, IFormattable { public float x; diff --git a/src/Unity.Mathematics/float2x2.gen.cs b/src/Unity.Mathematics/float2x2.gen.cs index 16012a61..9dfecac7 100644 --- a/src/Unity.Mathematics/float2x2.gen.cs +++ b/src/Unity.Mathematics/float2x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct float2x2 : System.IEquatable, IFormattable { public float2 c0; diff --git a/src/Unity.Mathematics/float2x3.gen.cs b/src/Unity.Mathematics/float2x3.gen.cs index 4a067080..a407ff8c 100644 --- a/src/Unity.Mathematics/float2x3.gen.cs +++ b/src/Unity.Mathematics/float2x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct float2x3 : System.IEquatable, IFormattable { public float2 c0; diff --git a/src/Unity.Mathematics/float2x4.gen.cs b/src/Unity.Mathematics/float2x4.gen.cs index 3c08d6b4..f7161c64 100644 --- a/src/Unity.Mathematics/float2x4.gen.cs +++ b/src/Unity.Mathematics/float2x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct float2x4 : System.IEquatable, IFormattable { public float2 c0; diff --git a/src/Unity.Mathematics/float3.gen.cs b/src/Unity.Mathematics/float3.gen.cs index e63262f1..31c8a0f2 100644 --- a/src/Unity.Mathematics/float3.gen.cs +++ b/src/Unity.Mathematics/float3.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(float3.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct float3 : System.IEquatable, IFormattable { public float x; diff --git a/src/Unity.Mathematics/float3x2.gen.cs b/src/Unity.Mathematics/float3x2.gen.cs index 3aab7288..323cd793 100644 --- a/src/Unity.Mathematics/float3x2.gen.cs +++ b/src/Unity.Mathematics/float3x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct float3x2 : System.IEquatable, IFormattable { public float3 c0; diff --git a/src/Unity.Mathematics/float3x3.gen.cs b/src/Unity.Mathematics/float3x3.gen.cs index 8ee2d59f..22ab1390 100644 --- a/src/Unity.Mathematics/float3x3.gen.cs +++ b/src/Unity.Mathematics/float3x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct float3x3 : System.IEquatable, IFormattable { public float3 c0; diff --git a/src/Unity.Mathematics/float3x4.gen.cs b/src/Unity.Mathematics/float3x4.gen.cs index c511421f..0519f777 100644 --- a/src/Unity.Mathematics/float3x4.gen.cs +++ b/src/Unity.Mathematics/float3x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct float3x4 : System.IEquatable, IFormattable { public float3 c0; diff --git a/src/Unity.Mathematics/float4.gen.cs b/src/Unity.Mathematics/float4.gen.cs index 29d0430c..673d487e 100644 --- a/src/Unity.Mathematics/float4.gen.cs +++ b/src/Unity.Mathematics/float4.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(float4.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct float4 : System.IEquatable, IFormattable { public float x; diff --git a/src/Unity.Mathematics/float4x2.gen.cs b/src/Unity.Mathematics/float4x2.gen.cs index daf5fb58..4dbcc98f 100644 --- a/src/Unity.Mathematics/float4x2.gen.cs +++ b/src/Unity.Mathematics/float4x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct float4x2 : System.IEquatable, IFormattable { public float4 c0; diff --git a/src/Unity.Mathematics/float4x3.gen.cs b/src/Unity.Mathematics/float4x3.gen.cs index c4c6b6cf..b1465f8b 100644 --- a/src/Unity.Mathematics/float4x3.gen.cs +++ b/src/Unity.Mathematics/float4x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct float4x3 : System.IEquatable, IFormattable { public float4 c0; diff --git a/src/Unity.Mathematics/float4x4.gen.cs b/src/Unity.Mathematics/float4x4.gen.cs index cff6c399..13c25303 100644 --- a/src/Unity.Mathematics/float4x4.gen.cs +++ b/src/Unity.Mathematics/float4x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct float4x4 : System.IEquatable, IFormattable { public float4 c0; diff --git a/src/Unity.Mathematics/half.cs b/src/Unity.Mathematics/half.cs index 0db48d8f..66ae35e3 100644 --- a/src/Unity.Mathematics/half.cs +++ b/src/Unity.Mathematics/half.cs @@ -1,8 +1,10 @@ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; namespace Unity.Mathematics { + [Il2CppEagerStaticClassConstruction] [Serializable] public struct half : System.IEquatable, IFormattable { diff --git a/src/Unity.Mathematics/half2.gen.cs b/src/Unity.Mathematics/half2.gen.cs index bdf8ae87..99a4e2fd 100644 --- a/src/Unity.Mathematics/half2.gen.cs +++ b/src/Unity.Mathematics/half2.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(half2.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct half2 : System.IEquatable, IFormattable { public half x; diff --git a/src/Unity.Mathematics/half3.gen.cs b/src/Unity.Mathematics/half3.gen.cs index f81744f2..8ca8b67e 100644 --- a/src/Unity.Mathematics/half3.gen.cs +++ b/src/Unity.Mathematics/half3.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(half3.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct half3 : System.IEquatable, IFormattable { public half x; diff --git a/src/Unity.Mathematics/half4.gen.cs b/src/Unity.Mathematics/half4.gen.cs index d488930a..aa0441cd 100644 --- a/src/Unity.Mathematics/half4.gen.cs +++ b/src/Unity.Mathematics/half4.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(half4.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct half4 : System.IEquatable, IFormattable { public half x; diff --git a/src/Unity.Mathematics/int2.gen.cs b/src/Unity.Mathematics/int2.gen.cs index 03c0d633..29b00bcc 100644 --- a/src/Unity.Mathematics/int2.gen.cs +++ b/src/Unity.Mathematics/int2.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(int2.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct int2 : System.IEquatable, IFormattable { public int x; diff --git a/src/Unity.Mathematics/int2x2.gen.cs b/src/Unity.Mathematics/int2x2.gen.cs index 460d8e8e..14c3b292 100644 --- a/src/Unity.Mathematics/int2x2.gen.cs +++ b/src/Unity.Mathematics/int2x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct int2x2 : System.IEquatable, IFormattable { public int2 c0; diff --git a/src/Unity.Mathematics/int2x3.gen.cs b/src/Unity.Mathematics/int2x3.gen.cs index c80c0c0b..ff6322e9 100644 --- a/src/Unity.Mathematics/int2x3.gen.cs +++ b/src/Unity.Mathematics/int2x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct int2x3 : System.IEquatable, IFormattable { public int2 c0; diff --git a/src/Unity.Mathematics/int2x4.gen.cs b/src/Unity.Mathematics/int2x4.gen.cs index 60165dde..fa11f97f 100644 --- a/src/Unity.Mathematics/int2x4.gen.cs +++ b/src/Unity.Mathematics/int2x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct int2x4 : System.IEquatable, IFormattable { public int2 c0; diff --git a/src/Unity.Mathematics/int3.gen.cs b/src/Unity.Mathematics/int3.gen.cs index 3d74b6a9..bf90e90a 100644 --- a/src/Unity.Mathematics/int3.gen.cs +++ b/src/Unity.Mathematics/int3.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(int3.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct int3 : System.IEquatable, IFormattable { public int x; diff --git a/src/Unity.Mathematics/int3x2.gen.cs b/src/Unity.Mathematics/int3x2.gen.cs index 0a4001ff..164123da 100644 --- a/src/Unity.Mathematics/int3x2.gen.cs +++ b/src/Unity.Mathematics/int3x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct int3x2 : System.IEquatable, IFormattable { public int3 c0; diff --git a/src/Unity.Mathematics/int3x3.gen.cs b/src/Unity.Mathematics/int3x3.gen.cs index 57d827f5..3a685a0c 100644 --- a/src/Unity.Mathematics/int3x3.gen.cs +++ b/src/Unity.Mathematics/int3x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct int3x3 : System.IEquatable, IFormattable { public int3 c0; diff --git a/src/Unity.Mathematics/int3x4.gen.cs b/src/Unity.Mathematics/int3x4.gen.cs index a0fc8eb6..837fa2a8 100644 --- a/src/Unity.Mathematics/int3x4.gen.cs +++ b/src/Unity.Mathematics/int3x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct int3x4 : System.IEquatable, IFormattable { public int3 c0; diff --git a/src/Unity.Mathematics/int4.gen.cs b/src/Unity.Mathematics/int4.gen.cs index c004ebb4..08fea17a 100644 --- a/src/Unity.Mathematics/int4.gen.cs +++ b/src/Unity.Mathematics/int4.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(int4.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct int4 : System.IEquatable, IFormattable { public int x; diff --git a/src/Unity.Mathematics/int4x2.gen.cs b/src/Unity.Mathematics/int4x2.gen.cs index f3a9c1ae..fc850b4b 100644 --- a/src/Unity.Mathematics/int4x2.gen.cs +++ b/src/Unity.Mathematics/int4x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct int4x2 : System.IEquatable, IFormattable { public int4 c0; diff --git a/src/Unity.Mathematics/int4x3.gen.cs b/src/Unity.Mathematics/int4x3.gen.cs index 028d8c3b..630fce70 100644 --- a/src/Unity.Mathematics/int4x3.gen.cs +++ b/src/Unity.Mathematics/int4x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct int4x3 : System.IEquatable, IFormattable { public int4 c0; diff --git a/src/Unity.Mathematics/int4x4.gen.cs b/src/Unity.Mathematics/int4x4.gen.cs index c1c58c01..d621f7af 100644 --- a/src/Unity.Mathematics/int4x4.gen.cs +++ b/src/Unity.Mathematics/int4x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct int4x4 : System.IEquatable, IFormattable { public int4 c0; diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 5d59cd78..58333852 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -1,9 +1,11 @@ using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; namespace Unity.Mathematics { + [Il2CppEagerStaticClassConstruction] public static partial class math { /// Extrinsic rotation order. Specifies in which order rotations around the principal axes (x, y and z) are to be applied. @@ -447,8 +449,8 @@ public static bool ispow2(int x) /// Checks if each component of the input is a power of two. /// /// If a component of x is less than or equal to zero, then this function returns false in that component. - /// input - /// where true in a component indicates the same component in the input was a power of two. + /// input + /// where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 ispow2(int2 x) { @@ -459,8 +461,8 @@ public static bool2 ispow2(int2 x) /// Checks if each component of the input is a power of two. /// /// If a component of x is less than or equal to zero, then this function returns false in that component. - /// input - /// where true in a component indicates the same component in the input was a power of two. + /// input + /// where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 ispow2(int3 x) { @@ -471,8 +473,8 @@ public static bool3 ispow2(int3 x) /// Checks if each component of the input is a power of two. /// /// If a component of x is less than or equal to zero, then this function returns false in that component. - /// input - /// where true in a component indicates the same component in the input was a power of two. + /// input + /// where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 ispow2(int4 x) { @@ -495,8 +497,8 @@ public static bool ispow2(uint x) /// Checks if each component of the input is a power of two. /// /// If a component of x is less than or equal to zero, then this function returns false in that component. - /// input - /// where true in a component indicates the same component in the input was a power of two. + /// input + /// where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 ispow2(uint2 x) { @@ -507,8 +509,8 @@ public static bool2 ispow2(uint2 x) /// Checks if each component of the input is a power of two. /// /// If a component of x is less than or equal to zero, then this function returns false in that component. - /// input - /// where true in a component indicates the same component in the input was a power of two. + /// input + /// where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 ispow2(uint3 x) { @@ -519,8 +521,8 @@ public static bool3 ispow2(uint3 x) /// Checks if each component of the input is a power of two. /// /// If a component of x is less than or equal to zero, then this function returns false in that component. - /// input - /// where true in a component indicates the same component in the input was a power of two. + /// input + /// where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 ispow2(uint4 x) { @@ -3648,7 +3650,7 @@ public static int ceillog2(int x) /// /// Components of x must be greater than 0, otherwise the result for that component is undefined. /// - /// to be used as input. + /// to be used as input. /// Componentwise ceiling of the base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 ceillog2(int2 x) @@ -3662,7 +3664,7 @@ public static int2 ceillog2(int2 x) /// /// Components of x must be greater than 0, otherwise the result for that component is undefined. /// - /// to be used as input. + /// to be used as input. /// Componentwise ceiling of the base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 ceillog2(int3 x) @@ -3676,7 +3678,7 @@ public static int3 ceillog2(int3 x) /// /// Components of x must be greater than 0, otherwise the result for that component is undefined. /// - /// to be used as input. + /// to be used as input. /// Componentwise ceiling of the base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 ceillog2(int4 x) @@ -3704,7 +3706,7 @@ public static int ceillog2(uint x) /// /// Components of x must be greater than 0, otherwise the result for that component is undefined. /// - /// to be used as input. + /// to be used as input. /// Componentwise ceiling of the base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 ceillog2(uint2 x) @@ -3718,7 +3720,7 @@ public static int2 ceillog2(uint2 x) /// /// Components of x must be greater than 0, otherwise the result for that component is undefined. /// - /// to be used as input. + /// to be used as input. /// Componentwise ceiling of the base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 ceillog2(uint3 x) @@ -3732,7 +3734,7 @@ public static int3 ceillog2(uint3 x) /// /// Components of x must be greater than 0, otherwise the result for that component is undefined. /// - /// to be used as input. + /// to be used as input. /// Componentwise ceiling of the base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 ceillog2(uint4 x) @@ -3756,7 +3758,7 @@ public static int floorlog2(int x) /// Computes the componentwise floor of the base-2 logarithm of x. /// /// Components of x must be greater than zero, otherwise the result of the component is undefined. - /// to be used as input. + /// to be used as input. /// Componentwise floor of base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 floorlog2(int2 x) @@ -3768,7 +3770,7 @@ public static int2 floorlog2(int2 x) /// Computes the componentwise floor of the base-2 logarithm of x. /// /// Components of x must be greater than zero, otherwise the result of the component is undefined. - /// to be used as input. + /// to be used as input. /// Componentwise floor of base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 floorlog2(int3 x) @@ -3780,7 +3782,7 @@ public static int3 floorlog2(int3 x) /// Computes the componentwise floor of the base-2 logarithm of x. /// /// Components of x must be greater than zero, otherwise the result of the component is undefined. - /// to be used as input. + /// to be used as input. /// Componentwise floor of base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 floorlog2(int4 x) @@ -3804,7 +3806,7 @@ public static int floorlog2(uint x) /// Computes the componentwise floor of the base-2 logarithm of x. /// /// Components of x must be greater than zero, otherwise the result of the component is undefined. - /// to be used as input. + /// to be used as input. /// Componentwise floor of base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 floorlog2(uint2 x) @@ -3816,7 +3818,7 @@ public static int2 floorlog2(uint2 x) /// Computes the componentwise floor of the base-2 logarithm of x. /// /// Components of x must be greater than zero, otherwise the result of the component is undefined. - /// to be used as input. + /// to be used as input. /// Componentwise floor of base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 floorlog2(uint3 x) @@ -3828,7 +3830,7 @@ public static int3 floorlog2(uint3 x) /// Computes the componentwise floor of the base-2 logarithm of x. /// /// Components of x must be greater than zero, otherwise the result of the component is undefined. - /// to be used as input. + /// to be used as input. /// Componentwise floor of base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 floorlog2(uint4 x) diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index fa2ec7ea..8728c802 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -1,9 +1,11 @@ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; using static Unity.Mathematics.math; namespace Unity.Mathematics { + [Il2CppEagerStaticClassConstruction] [Serializable] public partial struct quaternion : System.IEquatable, IFormattable { diff --git a/src/Unity.Mathematics/random.cs b/src/Unity.Mathematics/random.cs index 50554163..7b2f4e05 100644 --- a/src/Unity.Mathematics/random.cs +++ b/src/Unity.Mathematics/random.cs @@ -2,6 +2,7 @@ using System.Runtime.CompilerServices; using static Unity.Mathematics.math; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; namespace Unity.Mathematics { @@ -11,6 +12,7 @@ namespace Unity.Mathematics /// Core functionality is integer multiplication free to improve vectorization /// on less capable SIMD instruction sets. /// + [Il2CppEagerStaticClassConstruction] [Serializable] public partial struct Random { diff --git a/src/Unity.Mathematics/rigid_transform.cs b/src/Unity.Mathematics/rigid_transform.cs index 9ab9adeb..9f768670 100644 --- a/src/Unity.Mathematics/rigid_transform.cs +++ b/src/Unity.Mathematics/rigid_transform.cs @@ -1,9 +1,11 @@ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; using static Unity.Mathematics.math; namespace Unity.Mathematics { + [Il2CppEagerStaticClassConstruction] [Serializable] public struct RigidTransform { diff --git a/src/Unity.Mathematics/uint2.gen.cs b/src/Unity.Mathematics/uint2.gen.cs index 04892e9b..02ae1994 100644 --- a/src/Unity.Mathematics/uint2.gen.cs +++ b/src/Unity.Mathematics/uint2.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(uint2.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct uint2 : System.IEquatable, IFormattable { public uint x; diff --git a/src/Unity.Mathematics/uint2x2.gen.cs b/src/Unity.Mathematics/uint2x2.gen.cs index fd1a8ea8..45a3bf14 100644 --- a/src/Unity.Mathematics/uint2x2.gen.cs +++ b/src/Unity.Mathematics/uint2x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct uint2x2 : System.IEquatable, IFormattable { public uint2 c0; diff --git a/src/Unity.Mathematics/uint2x3.gen.cs b/src/Unity.Mathematics/uint2x3.gen.cs index 22c752ec..b751f139 100644 --- a/src/Unity.Mathematics/uint2x3.gen.cs +++ b/src/Unity.Mathematics/uint2x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct uint2x3 : System.IEquatable, IFormattable { public uint2 c0; diff --git a/src/Unity.Mathematics/uint2x4.gen.cs b/src/Unity.Mathematics/uint2x4.gen.cs index 88bbb9b6..02acfcc4 100644 --- a/src/Unity.Mathematics/uint2x4.gen.cs +++ b/src/Unity.Mathematics/uint2x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct uint2x4 : System.IEquatable, IFormattable { public uint2 c0; diff --git a/src/Unity.Mathematics/uint3.gen.cs b/src/Unity.Mathematics/uint3.gen.cs index 8859c12a..4480a2e5 100644 --- a/src/Unity.Mathematics/uint3.gen.cs +++ b/src/Unity.Mathematics/uint3.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(uint3.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct uint3 : System.IEquatable, IFormattable { public uint x; diff --git a/src/Unity.Mathematics/uint3x2.gen.cs b/src/Unity.Mathematics/uint3x2.gen.cs index 827462ec..618f8d93 100644 --- a/src/Unity.Mathematics/uint3x2.gen.cs +++ b/src/Unity.Mathematics/uint3x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct uint3x2 : System.IEquatable, IFormattable { public uint3 c0; diff --git a/src/Unity.Mathematics/uint3x3.gen.cs b/src/Unity.Mathematics/uint3x3.gen.cs index 418130d1..11b17e91 100644 --- a/src/Unity.Mathematics/uint3x3.gen.cs +++ b/src/Unity.Mathematics/uint3x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct uint3x3 : System.IEquatable, IFormattable { public uint3 c0; diff --git a/src/Unity.Mathematics/uint3x4.gen.cs b/src/Unity.Mathematics/uint3x4.gen.cs index a8245e0e..10ffb7c3 100644 --- a/src/Unity.Mathematics/uint3x4.gen.cs +++ b/src/Unity.Mathematics/uint3x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct uint3x4 : System.IEquatable, IFormattable { public uint3 c0; diff --git a/src/Unity.Mathematics/uint4.gen.cs b/src/Unity.Mathematics/uint4.gen.cs index 12ac4d46..1688e365 100644 --- a/src/Unity.Mathematics/uint4.gen.cs +++ b/src/Unity.Mathematics/uint4.gen.cs @@ -9,6 +9,7 @@ using System; using System.Runtime.CompilerServices; using System.Diagnostics; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 @@ -16,6 +17,7 @@ namespace Unity.Mathematics { [DebuggerTypeProxy(typeof(uint4.DebuggerProxy))] [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct uint4 : System.IEquatable, IFormattable { public uint x; diff --git a/src/Unity.Mathematics/uint4x2.gen.cs b/src/Unity.Mathematics/uint4x2.gen.cs index 5c75eab3..c43a4c83 100644 --- a/src/Unity.Mathematics/uint4x2.gen.cs +++ b/src/Unity.Mathematics/uint4x2.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct uint4x2 : System.IEquatable, IFormattable { public uint4 c0; diff --git a/src/Unity.Mathematics/uint4x3.gen.cs b/src/Unity.Mathematics/uint4x3.gen.cs index c8b55a35..ff5a39b6 100644 --- a/src/Unity.Mathematics/uint4x3.gen.cs +++ b/src/Unity.Mathematics/uint4x3.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct uint4x3 : System.IEquatable, IFormattable { public uint4 c0; diff --git a/src/Unity.Mathematics/uint4x4.gen.cs b/src/Unity.Mathematics/uint4x4.gen.cs index 44592353..6f50ffd9 100644 --- a/src/Unity.Mathematics/uint4x4.gen.cs +++ b/src/Unity.Mathematics/uint4x4.gen.cs @@ -8,12 +8,14 @@ //------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; #pragma warning disable 0660, 0661 namespace Unity.Mathematics { [System.Serializable] + [Il2CppEagerStaticClassConstruction] public partial struct uint4x4 : System.IEquatable, IFormattable { public uint4 c0; From b542314339036712d1d6b6a52f0f9998c7f8e686 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Mon, 3 Aug 2020 16:22:40 -0700 Subject: [PATCH 314/437] Bump version to 1.2.0 in preparation for release. --- src/CHANGELOG.md | 2 +- src/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index d9964c10..f66c88af 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [Unreleased] +## [1.2.0] - 2020-08-03 ### Added * Added `[MethodImpl(MethodImplOptions.AggressiveInlining)]` to many static functions to improve IL2CPP performance. diff --git a/src/package.json b/src/package.json index ee4d69f5..09f32399 100755 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.mathematics", "displayName": "Mathematics", - "version": "1.1.0", + "version": "1.2.0", "unity": "2018.3", "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax.", "keywords": [ From 3fe3227f9ed762b908129176751df123236d32b5 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Tue, 4 Aug 2020 23:15:14 -0700 Subject: [PATCH 315/437] Change image flavor from m1.large to b1.large. --- .yamato/upm-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index b11d6911..afb53833 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -106,7 +106,7 @@ publish: agent: type: Unity::VM image: package-ci/win10:stable - flavor: m1.large + flavor: b1.large commands: - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - upm-ci package publish --package-path src/ @@ -123,7 +123,7 @@ promote: agent: type: Unity::VM image: package-ci/win10:stable - flavor: m1.large + flavor: b1.large variables: UPMCI_PROMOTION: 1 commands: From 588b89ff0f5441b39b5d9c7590f288d4200268c3 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Tue, 4 Aug 2020 23:37:57 -0700 Subject: [PATCH 316/437] Also change m1.mac to b1.large. --- .yamato/upm-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index afb53833..7cbfc0c8 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -10,7 +10,7 @@ build_platforms: - name: macOS image: burst/burst_mac:stable type: Unity::VM::osx - flavor: m1.mac + flavor: b1.large upmci_platforms: - name: windows @@ -24,7 +24,7 @@ upmci_platforms: - name: macOS image: package-ci/mac:stable type: Unity::VM::osx - flavor: m1.mac + flavor: b1.large editor_versions: - version: "2018.4" From b5c4c39b0e6c003ffa75dbf54e360079e0bcf97b Mon Sep 17 00:00:00 2001 From: Fabrizio Perria Date: Wed, 5 Aug 2020 09:05:12 +0200 Subject: [PATCH 317/437] Fix expectations before merge --- .yamato/expectations/upm-ci.unfolded.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.yamato/expectations/upm-ci.unfolded.yaml b/.yamato/expectations/upm-ci.unfolded.yaml index da997747..466cf842 100644 --- a/.yamato/expectations/upm-ci.unfolded.yaml +++ b/.yamato/expectations/upm-ci.unfolded.yaml @@ -29,7 +29,7 @@ nightly_ci: promote: name: Promote agent: - flavor: m1.large + flavor: b1.large image: package-ci/win10:stable type: Unity::VM artifacts: @@ -46,7 +46,7 @@ promote: publish: name: Publish agent: - flavor: m1.large + flavor: b1.large image: package-ci/win10:stable type: Unity::VM artifacts: @@ -69,7 +69,7 @@ publish_ci: run_tests_on_mono_macOS: name: Tests NUnit on macOS agent: - flavor: m1.mac + flavor: b1.large image: burst/burst_mac:stable type: Unity::VM::osx commands: @@ -170,7 +170,7 @@ validate_package_linux_trunk: validate_package_macOS_2018.4: name: Validate package macOS 2018.4 agent: - flavor: m1.mac + flavor: b1.large image: package-ci/mac:stable type: Unity::VM::osx artifacts: @@ -190,7 +190,7 @@ validate_package_macOS_2018.4: validate_package_macOS_2019.2: name: Validate package macOS 2019.2 agent: - flavor: m1.mac + flavor: b1.large image: package-ci/mac:stable type: Unity::VM::osx artifacts: @@ -210,7 +210,7 @@ validate_package_macOS_2019.2: validate_package_macOS_2019.3: name: Validate package macOS 2019.3 agent: - flavor: m1.mac + flavor: b1.large image: package-ci/mac:stable type: Unity::VM::osx artifacts: @@ -230,7 +230,7 @@ validate_package_macOS_2019.3: validate_package_macOS_trunk: name: Validate package macOS trunk agent: - flavor: m1.mac + flavor: b1.large image: package-ci/mac:stable type: Unity::VM::osx artifacts: From 5cf4669b3ee8085856ed435e9f171beaad8e452a Mon Sep 17 00:00:00 2001 From: Henrik Kjellander Date: Thu, 6 Aug 2020 08:53:22 +0200 Subject: [PATCH 318/437] Archive vetting test results to unblock publish --- .yamato/expectations/upm-ci.unfolded.yaml | 3 +++ .yamato/upm-ci.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.yamato/expectations/upm-ci.unfolded.yaml b/.yamato/expectations/upm-ci.unfolded.yaml index 466cf842..f2f363aa 100644 --- a/.yamato/expectations/upm-ci.unfolded.yaml +++ b/.yamato/expectations/upm-ci.unfolded.yaml @@ -257,6 +257,9 @@ validate_package_minimal: packages: paths: - upm-ci~/packages/**/* + test_results: + paths: + - upm-ci~/**/* commands: - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - upm-ci package pack --package-path src/ diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index 7cbfc0c8..f457636e 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -65,6 +65,9 @@ validate_package_minimal: packages: paths: - "upm-ci~/packages/**/*" + test_results: + paths: + - "upm-ci~/**/*" dependencies: {% for platform in build_platforms %} {% unless platform.name == "linux" %} From b0538bb253cc090087b47f134318068e20be4591 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Thu, 6 Aug 2020 09:58:22 -0700 Subject: [PATCH 319/437] Set up unreleased section in changelog for next Mathematics version. --- src/CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index f66c88af..70c8a4b4 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [Unreleased] +### Added +### Changed +### Deprecated +### Removed +### Fixed +### Internal (Not ready for production) + ## [1.2.0] - 2020-08-03 ### Added From 59348e62dfbe06ae86b69a0a9d27059502aca5dd Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Thu, 6 Aug 2020 14:52:46 -0700 Subject: [PATCH 320/437] Fix .npmignore to ignore some files/dirs *and* their meta files. Upon publishing 1.2.0 to candidates, when testing in Entities, I noticed a bunch of warnings for meta files existing but the files they represent not being on disk. This appeared to be due to the .npmignore being too specific about keeping the meta files around. --- src/.npmignore | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/.npmignore b/src/.npmignore index f98ab88f..72855d0d 100755 --- a/src/.npmignore +++ b/src/.npmignore @@ -8,13 +8,13 @@ Documentation/ApiDocs/** .gitignore QAReport.md QAReport.md.meta -Unity.Mathematics.CodeGen -Unity.Mathematics.PerformanceTests -Unity.Mathematics.Shaders -*.sln -*.db -**/*.csproj -**/packages.config +Unity.Mathematics.CodeGen* +Unity.Mathematics.PerformanceTests* +Unity.Mathematics.Shaders* +*.sln* +*.db* +**/*.csproj* +**/packages.config* **/bin **/obj From 6f482ca0f0ab2e9de42ff0b8fe82a029f0a604dc Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Thu, 6 Aug 2020 14:52:46 -0700 Subject: [PATCH 321/437] Fix .npmignore to ignore some files/dirs *and* their meta files. Upon publishing 1.2.0 to candidates, when testing in Entities, I noticed a bunch of warnings for meta files existing but the files they represent not being on disk. This appeared to be due to the .npmignore being too specific about keeping the meta files around. --- src/.npmignore | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/.npmignore b/src/.npmignore index f98ab88f..72855d0d 100755 --- a/src/.npmignore +++ b/src/.npmignore @@ -8,13 +8,13 @@ Documentation/ApiDocs/** .gitignore QAReport.md QAReport.md.meta -Unity.Mathematics.CodeGen -Unity.Mathematics.PerformanceTests -Unity.Mathematics.Shaders -*.sln -*.db -**/*.csproj -**/packages.config +Unity.Mathematics.CodeGen* +Unity.Mathematics.PerformanceTests* +Unity.Mathematics.Shaders* +*.sln* +*.db* +**/*.csproj* +**/packages.config* **/bin **/obj From a52ee0c83f4711163802fa6c5e245847f08684a0 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Thu, 6 Aug 2020 15:32:28 -0700 Subject: [PATCH 322/437] Changelog update for 1.2.1. --- src/CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index f66c88af..f3467281 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [1.2.1] - 2020-08-06 + +### Added +### Changed +### Deprecated +### Removed +### Fixed +* Fixed warnings for meta files existing even though the files they represent did not exist. + +### Internal (Not ready for production) + ## [1.2.0] - 2020-08-03 ### Added From 43163dc2524d2d025110d909f9172b5857c78766 Mon Sep 17 00:00:00 2001 From: Dale Kim Date: Thu, 6 Aug 2020 15:33:42 -0700 Subject: [PATCH 323/437] Version bump 1.2.1. --- src/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/package.json b/src/package.json index 09f32399..ac714659 100755 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.mathematics", "displayName": "Mathematics", - "version": "1.2.0", + "version": "1.2.1", "unity": "2018.3", "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax.", "keywords": [ From 64b94d5e0107dd6b6500fad0f77ce295e17510fb Mon Sep 17 00:00:00 2001 From: Elizabeth Baumel Date: Thu, 6 Aug 2020 15:59:45 -0700 Subject: [PATCH 324/437] Added xmldoc comments to noise functions. (#162) * Added xmldoc comments to noise functions. --- src/CHANGELOG.md | 2 + src/Unity.Mathematics/Noise/cellular2D.cs | 7 +- src/Unity.Mathematics/Noise/cellular2x2.cs | 14 +-- src/Unity.Mathematics/Noise/cellular2x2x2.cs | 13 ++- src/Unity.Mathematics/Noise/cellular3D.cs | 8 +- src/Unity.Mathematics/Noise/classicnoise2D.cs | 13 ++- src/Unity.Mathematics/Noise/classicnoise3D.cs | 13 ++- src/Unity.Mathematics/Noise/classicnoise4D.cs | 13 ++- src/Unity.Mathematics/Noise/noise2D.cs | 5 + src/Unity.Mathematics/Noise/noise3D.cs | 5 + src/Unity.Mathematics/Noise/noise3Dgrad.cs | 6 ++ src/Unity.Mathematics/Noise/noise4D.cs | 5 + src/Unity.Mathematics/Noise/psrdnoise2D.cs | 93 ++++++++++--------- 13 files changed, 130 insertions(+), 67 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 70c8a4b4..0ee4b96b 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -27,6 +27,8 @@ * Added `Random.CreateFromIndex()` to assist in creating Random instances from loop indices. ### Changed +* Changed noise documentation in comments to xmldoc comments. + ### Deprecated ### Removed ### Fixed diff --git a/src/Unity.Mathematics/Noise/cellular2D.cs b/src/Unity.Mathematics/Noise/cellular2D.cs index 564d414e..ab962a65 100644 --- a/src/Unity.Mathematics/Noise/cellular2D.cs +++ b/src/Unity.Mathematics/Noise/cellular2D.cs @@ -10,8 +10,11 @@ namespace Unity.Mathematics { public static partial class noise { - // Cellular noise, returning F1 and F2 in a float2. - // Standard 3x3 search window for good F1 and F2 values + /// + /// 2D Cellular noise ("Worley noise") with standard 3x3 search window for good feature point values. + /// + /// A point in 2D space. + /// Feature points. F1 is in the x component, F2 in the y component. public static float2 cellular(float2 P) { const float K = 0.142857142857f; // 1/7 diff --git a/src/Unity.Mathematics/Noise/cellular2x2.cs b/src/Unity.Mathematics/Noise/cellular2x2.cs index 7475ee48..5c677bca 100644 --- a/src/Unity.Mathematics/Noise/cellular2x2.cs +++ b/src/Unity.Mathematics/Noise/cellular2x2.cs @@ -10,12 +10,14 @@ namespace Unity.Mathematics { public static partial class noise { - // Cellular noise, returning F1 and F2 in a float2. - // Speeded up by umath.sing 2x2 search window instead of 3x3, - // at the expense of some strong pattern artifacts. - // F2 is often wrong and has sharp discontinuities. - // If you need a smooth F2, use the slower 3x3 version. - // F1 is sometimes wrong, too, but OK for most purposes. + /// + /// 2D Cellular noise ("Worley noise") with a 2x2 search window. + /// + /// + /// Faster than using 3x3, at the expense of some strong pattern artifacts. F2 is often wrong and has sharp discontinuities. If you need a smooth F2, use the slower 3x3 version. F1 is sometimes wrong, too, but OK for most purposes. + /// + /// A point in 2D space. + /// Feature points. F1 is in the x component, F2 in the y component. public static float2 cellular2x2(float2 P) { const float K = 0.142857142857f; // 1/7 diff --git a/src/Unity.Mathematics/Noise/cellular2x2x2.cs b/src/Unity.Mathematics/Noise/cellular2x2x2.cs index dc6cd96c..b146d2d6 100644 --- a/src/Unity.Mathematics/Noise/cellular2x2x2.cs +++ b/src/Unity.Mathematics/Noise/cellular2x2x2.cs @@ -10,11 +10,14 @@ namespace Unity.Mathematics { public static partial class noise { - // Cellular noise, returning F1 and F2 in a float2. - // Speeded up by umath.sing 2x2x2 search window instead of 3x3x3, - // at the expense of some pattern artifacts. - // F2 is often wrong and has sharp discontinuities. - // If you need a good F2, use the slower 3x3x3 version. + /// + /// 3D Cellular noise ("Worley noise") with a 2x2x2 search window. + /// + /// + /// Faster than using 3x3x3, at the expense of some pattern artifacts. F2 is often wrong and has sharp discontinuities. If you need a smooth F2, use the slower 3x3x3 version. + /// + /// A point in 3D space. + /// Feature points. F1 is in the x component, F2 in the y component. public static float2 cellular2x2x2(float3 P) { const float K = 0.142857142857f; // 1/7 diff --git a/src/Unity.Mathematics/Noise/cellular3D.cs b/src/Unity.Mathematics/Noise/cellular3D.cs index 24400014..4de3daee 100644 --- a/src/Unity.Mathematics/Noise/cellular3D.cs +++ b/src/Unity.Mathematics/Noise/cellular3D.cs @@ -10,9 +10,11 @@ namespace Unity.Mathematics { public static partial class noise { - // Cellular noise, returning F1 and F2 in a float2. - // 3x3x3 search region for good F2 everywhere, but a lot - // slower than the 2x2x2 version. + /// + /// 3D Cellular noise ("Worley noise") with 3x3x3 search region for good F2 everywhere, but a lot slower than the 2x2x2 version. + /// + /// A point in 2D space. + /// Feature points. F1 is in the x component, F2 in the y component. // The code below is a bit scary even to its author, // but it has at least half decent performance on a // math.modern GPU. In any case, it beats any software diff --git a/src/Unity.Mathematics/Noise/classicnoise2D.cs b/src/Unity.Mathematics/Noise/classicnoise2D.cs index fa4712a8..6d8d6f39 100644 --- a/src/Unity.Mathematics/Noise/classicnoise2D.cs +++ b/src/Unity.Mathematics/Noise/classicnoise2D.cs @@ -18,7 +18,11 @@ namespace Unity.Mathematics { public static partial class noise { - // Classic Perlin noise + /// + /// Classic Perlin noise + /// + /// Point on a 2D grid of gradient vectors. + /// Noise value. public static float cnoise(float2 P) { float4 Pi = floor(P.xyxy) + float4(0.0f, 0.0f, 1.0f, 1.0f); @@ -58,7 +62,12 @@ public static float cnoise(float2 P) return 2.3f * n_xy; } - // Classic Perlin noise, periodic variant + /// + /// Classic Perlin noise, periodic variant + /// + /// Point on a 2D grid of gradient vectors. + /// Period of repetition. + /// Noise value. public static float pnoise(float2 P, float2 rep) { float4 Pi = floor(P.xyxy) + float4(0.0f, 0.0f, 1.0f, 1.0f); diff --git a/src/Unity.Mathematics/Noise/classicnoise3D.cs b/src/Unity.Mathematics/Noise/classicnoise3D.cs index 9015e6bb..be4893c6 100644 --- a/src/Unity.Mathematics/Noise/classicnoise3D.cs +++ b/src/Unity.Mathematics/Noise/classicnoise3D.cs @@ -18,7 +18,11 @@ namespace Unity.Mathematics { public static partial class noise { - // Classic Perlin noise + /// + /// Classic Perlin noise + /// + /// Point on a 3D grid of gradient vectors. + /// Noise value. public static float cnoise(float3 P) { float3 Pi0 = floor(P); // Integer part for indexing @@ -88,7 +92,12 @@ public static float cnoise(float3 P) return 2.2f * n_xyz; } - // Classic Perlin noise, periodic variant + /// + /// Classic Perlin noise, periodic variant + /// + /// Point on a 3D grid of gradient vectors. + /// Period of repetition. + /// Noise value. public static float pnoise(float3 P, float3 rep) { float3 Pi0 = fmod(floor(P), rep); // Integer part, math.modulo period diff --git a/src/Unity.Mathematics/Noise/classicnoise4D.cs b/src/Unity.Mathematics/Noise/classicnoise4D.cs index 57a9116b..60f5f474 100644 --- a/src/Unity.Mathematics/Noise/classicnoise4D.cs +++ b/src/Unity.Mathematics/Noise/classicnoise4D.cs @@ -18,7 +18,11 @@ namespace Unity.Mathematics { public static partial class noise { - // Classic Perlin noise + /// + /// Classic Perlin noise + /// + /// Point on a 4D grid of gradient vectors. + /// Noise value. public static float cnoise(float4 P) { float4 Pi0 = floor(P); // Integer part for indexing @@ -153,7 +157,12 @@ public static float cnoise(float4 P) return 2.2f * n_xyzw; } - // Classic Perlin noise, periodic version + /// + /// Classic Perlin noise, periodic variant + /// + /// Point on a 4D grid of gradient vectors. + /// Period of repetition. + /// Noise value. public static float pnoise(float4 P, float4 rep) { float4 Pi0 = fmod(floor(P), rep); // Integer part math.modulo rep diff --git a/src/Unity.Mathematics/Noise/noise2D.cs b/src/Unity.Mathematics/Noise/noise2D.cs index e143c952..f723e0b9 100644 --- a/src/Unity.Mathematics/Noise/noise2D.cs +++ b/src/Unity.Mathematics/Noise/noise2D.cs @@ -15,6 +15,11 @@ namespace Unity.Mathematics { public static partial class noise { + /// + /// Simplex noise. + /// + /// Input coordinate. + /// Noise value. public static float snoise(float2 v) { float4 C = float4(0.211324865405187f, // (3.0-math.sqrt(3.0))/6.0 diff --git a/src/Unity.Mathematics/Noise/noise3D.cs b/src/Unity.Mathematics/Noise/noise3D.cs index 4f4d60d2..9e55c46c 100644 --- a/src/Unity.Mathematics/Noise/noise3D.cs +++ b/src/Unity.Mathematics/Noise/noise3D.cs @@ -16,6 +16,11 @@ namespace Unity.Mathematics { public static partial class noise { + /// + /// Simplex noise. + /// + /// Input coordinate. + /// Noise value. public static float snoise(float3 v) { float2 C = float2(1.0f / 6.0f, 1.0f / 3.0f); diff --git a/src/Unity.Mathematics/Noise/noise3Dgrad.cs b/src/Unity.Mathematics/Noise/noise3Dgrad.cs index 70d20def..7f33bfec 100644 --- a/src/Unity.Mathematics/Noise/noise3Dgrad.cs +++ b/src/Unity.Mathematics/Noise/noise3Dgrad.cs @@ -16,6 +16,12 @@ namespace Unity.Mathematics { public static partial class noise { + /// + /// Simplex noise. + /// + /// Input coordinate. + /// Output 3D noise gradient. + /// Noise value. public static float snoise(float3 v, out float3 gradient) { float2 C = float2(1.0f / 6.0f, 1.0f / 3.0f); diff --git a/src/Unity.Mathematics/Noise/noise4D.cs b/src/Unity.Mathematics/Noise/noise4D.cs index b4476569..78ff63c5 100644 --- a/src/Unity.Mathematics/Noise/noise4D.cs +++ b/src/Unity.Mathematics/Noise/noise4D.cs @@ -16,6 +16,11 @@ namespace Unity.Mathematics { public static partial class noise { + /// + /// Simplex noise. + /// + /// Input coordinate. + /// Noise value. public static float snoise(float4 v) { // (math.sqrt(5) - 1)/4 = F4, used once below diff --git a/src/Unity.Mathematics/Noise/psrdnoise2D.cs b/src/Unity.Mathematics/Noise/psrdnoise2D.cs index 0dc8e437..0bde5f2f 100644 --- a/src/Unity.Mathematics/Noise/psrdnoise2D.cs +++ b/src/Unity.Mathematics/Noise/psrdnoise2D.cs @@ -73,11 +73,13 @@ namespace Unity.Mathematics { public static partial class noise { - // - // 2-D tiling simplex noise with rotating gradients and analytical derivative. - // The first component of the 3-element return vector is the noise value, - // and the second and third components are the x and y partial derivatives. - // + /// + /// 2-D tiling simplex noise with rotating gradients and analytical derivative. + /// + /// Input (x,y) coordinate. + /// The x and y period, where per.x is a positive integer and per.y is a positive even integer. + /// Angle to rotate the gradients. + /// The first component of the 3-element return vector is the noise value, and the second and third components are the x and y partial derivatives. public static float3 psrdnoise(float2 pos, float2 per, float rot) { // Hack: offset y slightly to hide some rare artifacts @@ -166,21 +168,24 @@ public static float3 psrdnoise(float2 pos, float2 per, float rot) return 11.0f * float3(n, dn0 + dn1 + dn2); } - // - // 2-D tiling simplex noise with fixed gradients - // and analytical derivative. - // This function is implemented as a wrapper to "psrdnoise", - // at the math.minimal math.cost of three extra additions. - // + /// + /// 2-D tiling simplex noise with fixed gradients and analytical derivative. + /// + /// Input (x,y) coordinate. + /// The x and y period, where per.x is a positive integer and per.y is a positive even integer. + /// The first component of the 3-element return vector is the noise value, and the second and third components are the x and y partial derivatives. public static float3 psrdnoise(float2 pos, float2 per) { return psrdnoise(pos, per, 0.0f); } - // - // 2-D tiling simplex noise with rotating gradients, - // but without the analytical derivative. - // + /// + /// 2-D tiling simplex noise with rotating gradients, but without the analytical derivative. + /// + /// Input (x,y) coordinate. + /// The x and y period, where per.x is a positive integer and per.y is a positive even integer. + /// Angle to rotate the gradients. + /// Noise value. public static float psrnoise(float2 pos, float2 per, float rot) { // Offset y slightly to hide some rare artifacts @@ -240,22 +245,23 @@ public static float psrnoise(float2 pos, float2 per, float rot) return 11.0f * n; } - // - // 2-D tiling simplex noise with fixed gradients, - // without the analytical derivative. - // This function is implemented as a wrapper to "psrnoise", - // at the math.minimal math.cost of three extra additions. - // + /// + /// 2-D tiling simplex noise with fixed gradients, without the analytical derivative. + /// + /// Input (x,y) coordinate. + /// The x and y period, where per.x is a positive integer and per.y is a positive even integer. + /// Noise value. public static float psrnoise(float2 pos, float2 per) { return psrnoise(pos, per, 0.0f); } - // - // 2-D non-tiling simplex noise with rotating gradients and analytical derivative. - // The first component of the 3-element return vector is the noise value, - // and the second and third components are the x and y partial derivatives. - // + /// + /// 2-D non-tiling simplex noise with rotating gradients and analytical derivative. + /// + /// Input (x,y) coordinate. + /// Angle to rotate the gradients. + /// The first component of the 3-element return vector is the noise value, and the second and third components are the x and y partial derivatives. public static float3 srdnoise(float2 pos, float rot) { // Offset y slightly to hide some rare artifacts @@ -346,20 +352,22 @@ public static float3 srdnoise(float2 pos, float rot) return 11.0f * float3(n, dn0 + dn1 + dn2); } - // - // 2-D non-tiling simplex noise with fixed gradients and analytical derivative. - // This function is implemented as a wrapper to "srdnoise", - // at the math.minimal math.cost of three extra additions. - // + /// + /// 2-D non-tiling simplex noise with fixed gradients and analytical derivative. + /// + /// Input (x,y) coordinate. + /// The first component of the 3-element return vector is the noise value, and the second and third components are the x and y partial derivatives. public static float3 srdnoise(float2 pos) { return srdnoise(pos, 0.0f); } - // - // 2-D non-tiling simplex noise with rotating gradients, - // without the analytical derivative. - // + /// + /// 2-D non-tiling simplex noise with rotating gradients, without the analytical derivative. + /// + /// Input (x,y) coordinate. + /// Angle to rotate the gradients. + /// Noise value. public static float srnoise(float2 pos, float rot) { // Offset y slightly to hide some rare artifacts @@ -421,16 +429,11 @@ public static float srnoise(float2 pos, float rot) return 11.0f * n; } - // - // 2-D non-tiling simplex noise with fixed gradients, - // without the analytical derivative. - // This function is implemented as a wrapper to "srnoise", - // at the math.minimal math.cost of three extra additions. - // Note: if this kind of noise is all you want, there are faster - // GLSL implementations of non-tiling simplex noise out there. - // This one is included mainly for completeness and compatibility - // with the other functions in the file. - // + /// + /// 2-D non-tiling simplex noise with fixed gradients, without the analytical derivative. + /// + /// Input (x,y) coordinate. + /// Noise value. public static float srnoise(float2 pos) { return srnoise(pos, 0.0f); From 71412d94b7a0b0fdbb3195a5e6559bf6a761e91a Mon Sep 17 00:00:00 2001 From: Henrik Kjellander Date: Thu, 6 Aug 2020 10:51:12 +0200 Subject: [PATCH 325/437] Archive vetting test results to unblock publish (#165) Publishing currently fails ([example](https://yamato.prd.cds.internal.unity3d.com/jobs/212-Unity.Mathematics/tree/1.2.0%2520%28tag%29/.yamato%252Fupm-ci.yml%2523publish/3023395/job/pipeline)) due to not finding test results from the `upm-ci package test` run in `Validate Package Linux Minimal` job. Likely this broke due to some refactoring in https://github.com/Unity-Technologies/Unity.Mathematics/commit/d34adde4dc163fed544334b513cbccce2ceb839a# or similar PR. This PR adds archiving of these results, which should unblock the Publish job. --- .yamato/expectations/upm-ci.unfolded.yaml | 3 +++ .yamato/upm-ci.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.yamato/expectations/upm-ci.unfolded.yaml b/.yamato/expectations/upm-ci.unfolded.yaml index 466cf842..f2f363aa 100644 --- a/.yamato/expectations/upm-ci.unfolded.yaml +++ b/.yamato/expectations/upm-ci.unfolded.yaml @@ -257,6 +257,9 @@ validate_package_minimal: packages: paths: - upm-ci~/packages/**/* + test_results: + paths: + - upm-ci~/**/* commands: - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - upm-ci package pack --package-path src/ diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index 7cbfc0c8..f457636e 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -65,6 +65,9 @@ validate_package_minimal: packages: paths: - "upm-ci~/packages/**/*" + test_results: + paths: + - "upm-ci~/**/*" dependencies: {% for platform in build_platforms %} {% unless platform.name == "linux" %} From 0089a2fc52e65d73b1c0a6c5cb35d8fba99ae882 Mon Sep 17 00:00:00 2001 From: Joe Ward Date: Thu, 24 Sep 2020 10:23:13 -0700 Subject: [PATCH 326/437] Add filter to remove test classes from API reference; enable DocFX member page plugin to show members on thier own pages. --- src/Documentation~/filter.yml | 7 +++++++ src/Documentation~/projectMetadata.json | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 src/Documentation~/filter.yml create mode 100644 src/Documentation~/projectMetadata.json diff --git a/src/Documentation~/filter.yml b/src/Documentation~/filter.yml new file mode 100644 index 00000000..5c6a86ea --- /dev/null +++ b/src/Documentation~/filter.yml @@ -0,0 +1,7 @@ +apiRules: + - exclude: + uidRegex: Tests$ + type: Namespace + - exclude: + uidRegex: ^Unity\..*\.Tests\..*$ + type: Namespace diff --git a/src/Documentation~/projectMetadata.json b/src/Documentation~/projectMetadata.json new file mode 100644 index 00000000..d0b7a216 --- /dev/null +++ b/src/Documentation~/projectMetadata.json @@ -0,0 +1,5 @@ +{ + "useMemberPages": true, + "hideGlobalNamespace": false, + "symbolDefines":"" +} \ No newline at end of file From 9bbbfdd4976340fa556a3aec176f847e272771f4 Mon Sep 17 00:00:00 2001 From: Joe Ward Date: Thu, 24 Sep 2020 10:29:35 -0700 Subject: [PATCH 327/437] Update projectMetadata.json --- src/Documentation~/projectMetadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Documentation~/projectMetadata.json b/src/Documentation~/projectMetadata.json index d0b7a216..11f3f1c8 100644 --- a/src/Documentation~/projectMetadata.json +++ b/src/Documentation~/projectMetadata.json @@ -2,4 +2,4 @@ "useMemberPages": true, "hideGlobalNamespace": false, "symbolDefines":"" -} \ No newline at end of file +} From 645c00bfcc42405bf0c7bb729043f0e454bdcd07 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Tue, 6 Oct 2020 11:21:32 -0700 Subject: [PATCH 328/437] Implement math.square() for int, uint, float, and double types. (#172) Closes #129. --- src/CHANGELOG.md | 1 + src/Tests/Tests/Shared/TestMath.cs | 444 +++++++++++++++++++++++++++++ src/Unity.Mathematics/math.cs | 208 ++++++++++++++ 3 files changed, 653 insertions(+) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 1365cbfe..b9c8562d 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -3,6 +3,7 @@ ## [Unreleased] ### Added * Added `[Il2CppEagerStaticClassConstruction]` to Unity.Mathematics types to run static constructors at startup. This improves IL2CPP performance slightly for types that have static constructors. +* Added `math.square()` to compute the square (x * x). ### Changed * Changed noise documentation in comments to xmldoc comments. diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index 8ae042d1..4d6b7bf9 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -3341,5 +3341,449 @@ unsafe public static void compress_float4_test() } } } + + [TestCompiler] + public static void square_float() + { + TestUtils.AreEqual(0.0f, math.square(0.0f)); + TestUtils.AreEqual(0.25f, math.square(0.5f)); + TestUtils.AreEqual(1.0f, math.square(1.0f)); + TestUtils.AreEqual(4.0f, math.square(2.0f)); + TestUtils.AreEqual(9.0f, math.square(3.0f)); + TestUtils.AreEqual(0.0f, math.square(-0.0f)); + TestUtils.AreEqual(0.25f, math.square(-0.5f)); + TestUtils.AreEqual(1.0f, math.square(-1.0f)); + TestUtils.AreEqual(4.0f, math.square(-2.0f)); + TestUtils.AreEqual(9.0f, math.square(-3.0f)); + TestUtils.AreEqual(0.0331537127494812011719f, math.square(0.182081609964370727539f)); + TestUtils.AreEqual(0.0331537127494812011719f, math.square(-0.182081609964370727539f)); + TestUtils.AreEqual(225642.59375f, math.square(475.018524169921875f)); + TestUtils.AreEqual(225642.59375f, math.square(-475.018524169921875f)); + TestUtils.IsTrue(math.isnan(math.square(float.NaN))); + + // Square the largest finite number that will still produce a finite result. + TestUtils.AreEqual(3.4028232635611925616e+38f, math.square(18446742974197923840.0f)); + TestUtils.AreEqual(3.4028232635611925616e+38f, math.square(-18446742974197923840.0f)); + + // Square the smallest finite number that will produce a non-finite result. + TestUtils.AreEqual(float.PositiveInfinity, math.square(18446744073709551616.0f)); + TestUtils.AreEqual(float.PositiveInfinity, math.square(-18446744073709551616.0f)); + } + + [TestCompiler] + public static void square_float2() + { + TestUtils.AreEqual(new float2(0.0f), math.square(new float2(0.0f))); + TestUtils.AreEqual(new float2(0.25f), math.square(new float2(0.5f))); + TestUtils.AreEqual(new float2(1.0f), math.square(new float2(1.0f))); + TestUtils.AreEqual(new float2(4.0f), math.square(new float2(2.0f))); + TestUtils.AreEqual(new float2(9.0f), math.square(new float2(3.0f))); + TestUtils.AreEqual(new float2(0.0f), math.square(new float2(-0.0f))); + TestUtils.AreEqual(new float2(0.25f), math.square(new float2(-0.5f))); + TestUtils.AreEqual(new float2(1.0f), math.square(new float2(-1.0f))); + TestUtils.AreEqual(new float2(4.0f), math.square(new float2(-2.0f))); + TestUtils.AreEqual(new float2(9.0f), math.square(new float2(-3.0f))); + TestUtils.AreEqual(new float2(0.0331537127494812011719f), math.square(new float2(0.182081609964370727539f))); + TestUtils.AreEqual(new float2(0.0331537127494812011719f), math.square(new float2(-0.182081609964370727539f))); + TestUtils.AreEqual(new float2(225642.59375f), math.square(new float2(475.018524169921875f))); + TestUtils.AreEqual(new float2(225642.59375f), math.square(new float2(-475.018524169921875f))); + TestUtils.IsTrue(math.all(math.isnan(math.square(new float2(float.NaN))))); + + // Square the largest finite number that will still produce a finite result. + TestUtils.AreEqual(new float2(3.4028232635611925616e+38f), math.square(new float2(18446742974197923840.0f))); + TestUtils.AreEqual(new float2(3.4028232635611925616e+38f), math.square(new float2(-18446742974197923840.0f))); + + // Square the smallest finite number that will produce a non-finite result. + TestUtils.AreEqual(new float2(float.PositiveInfinity), math.square(new float2(18446744073709551616.0f))); + TestUtils.AreEqual(new float2(float.PositiveInfinity), math.square(new float2(-18446744073709551616.0f))); + + // Random inputs. + TestUtils.AreEqual(new float2(0.272176146507263183594f, 96307.6015625f), math.square(new float2(0.521705031394958496094f, -310.33465576171875f))); + } + + [TestCompiler] + public static void square_float3() + { + TestUtils.AreEqual(new float3(0.0f), math.square(new float3(0.0f))); + TestUtils.AreEqual(new float3(0.25f), math.square(new float3(0.5f))); + TestUtils.AreEqual(new float3(1.0f), math.square(new float3(1.0f))); + TestUtils.AreEqual(new float3(4.0f), math.square(new float3(2.0f))); + TestUtils.AreEqual(new float3(9.0f), math.square(new float3(3.0f))); + TestUtils.AreEqual(new float3(0.0f), math.square(new float3(-0.0f))); + TestUtils.AreEqual(new float3(0.25f), math.square(new float3(-0.5f))); + TestUtils.AreEqual(new float3(1.0f), math.square(new float3(-1.0f))); + TestUtils.AreEqual(new float3(4.0f), math.square(new float3(-2.0f))); + TestUtils.AreEqual(new float3(9.0f), math.square(new float3(-3.0f))); + TestUtils.AreEqual(new float3(0.0331537127494812011719f), math.square(new float3(0.182081609964370727539f))); + TestUtils.AreEqual(new float3(0.0331537127494812011719f), math.square(new float3(-0.182081609964370727539f))); + TestUtils.AreEqual(new float3(225642.59375f), math.square(new float3(475.018524169921875f))); + TestUtils.AreEqual(new float3(225642.59375f), math.square(new float3(-475.018524169921875f))); + TestUtils.IsTrue(math.all(math.isnan(math.square(new float3(float.NaN))))); + + // Square the largest finite number that will still produce a finite result. + TestUtils.AreEqual(new float3(3.4028232635611925616e+38f), math.square(new float3(18446742974197923840.0f))); + TestUtils.AreEqual(new float3(3.4028232635611925616e+38f), math.square(new float3(-18446742974197923840.0f))); + + // Square the smallest finite number that will produce a non-finite result. + TestUtils.AreEqual(new float3(float.PositiveInfinity), math.square(new float3(18446744073709551616.0f))); + TestUtils.AreEqual(new float3(float.PositiveInfinity), math.square(new float3(-18446744073709551616.0f))); + + // Random inputs. + TestUtils.AreEqual(new float3(0.272176146507263183594f, 96307.6015625f, 5591.6337890625f), math.square(new float3(0.521705031394958496094f, -310.33465576171875f, -74.77722930908203125f))); + } + + [TestCompiler] + public static void square_float4() + { + TestUtils.AreEqual(new float4(0.0f), math.square(new float4(0.0f))); + TestUtils.AreEqual(new float4(0.25f), math.square(new float4(0.5f))); + TestUtils.AreEqual(new float4(1.0f), math.square(new float4(1.0f))); + TestUtils.AreEqual(new float4(4.0f), math.square(new float4(2.0f))); + TestUtils.AreEqual(new float4(9.0f), math.square(new float4(3.0f))); + TestUtils.AreEqual(new float4(0.0f), math.square(new float4(-0.0f))); + TestUtils.AreEqual(new float4(0.25f), math.square(new float4(-0.5f))); + TestUtils.AreEqual(new float4(1.0f), math.square(new float4(-1.0f))); + TestUtils.AreEqual(new float4(4.0f), math.square(new float4(-2.0f))); + TestUtils.AreEqual(new float4(9.0f), math.square(new float4(-3.0f))); + TestUtils.AreEqual(new float4(0.0331537127494812011719f), math.square(new float4(0.182081609964370727539f))); + TestUtils.AreEqual(new float4(0.0331537127494812011719f), math.square(new float4(-0.182081609964370727539f))); + TestUtils.AreEqual(new float4(225642.59375f), math.square(new float4(475.018524169921875f))); + TestUtils.AreEqual(new float4(225642.59375f), math.square(new float4(-475.018524169921875f))); + TestUtils.IsTrue(math.all(math.isnan(math.square(new float4(float.NaN))))); + + // Square the largest finite number that will still produce a finite result. + TestUtils.AreEqual(new float4(3.4028232635611925616e+38f), math.square(new float4(18446742974197923840.0f))); + TestUtils.AreEqual(new float4(3.4028232635611925616e+38f), math.square(new float4(-18446742974197923840.0f))); + + // Square the smallest finite number that will produce a non-finite result. + TestUtils.AreEqual(new float4(float.PositiveInfinity), math.square(new float4(18446744073709551616.0f))); + TestUtils.AreEqual(new float4(float.PositiveInfinity), math.square(new float4(-18446744073709551616.0f))); + + // Random inputs. + TestUtils.AreEqual(new float4(0.272176146507263183594f, 96307.6015625f, 5591.6337890625f, 152764.28125f), math.square(new float4(0.521705031394958496094f, -310.33465576171875f, -74.77722930908203125f, 390.8507080078125f))); + } + + [TestCompiler] + public static void square_double() + { + TestUtils.AreEqual(0.0, math.square(0.0)); + TestUtils.AreEqual(0.25, math.square(0.5)); + TestUtils.AreEqual(1.0, math.square(1.0)); + TestUtils.AreEqual(4.0, math.square(2.0)); + TestUtils.AreEqual(9.0, math.square(3.0)); + TestUtils.AreEqual(0.0, math.square(-0.0)); + TestUtils.AreEqual(0.25, math.square(-0.5)); + TestUtils.AreEqual(1.0, math.square(-1.0)); + TestUtils.AreEqual(4.0, math.square(-2.0)); + TestUtils.AreEqual(9.0, math.square(-3.0)); + TestUtils.AreEqual(0.0331537126872172294156, math.square(0.182081609964370727539)); + TestUtils.AreEqual(0.0331537126872172294156, math.square(-0.182081609964370727539)); + TestUtils.AreEqual(225642.598304570652544, math.square(475.018524169921875)); + TestUtils.AreEqual(225642.598304570652544, math.square(-475.018524169921875)); + TestUtils.IsTrue(math.isnan(math.square(double.NaN))); + + // Square the largest finite number that will still produce a finite result. + TestUtils.AreEqual(1.79769313486231550856e+308, math.square(1.3407807929942595611e+154)); + TestUtils.AreEqual(1.79769313486231550856e+308, math.square(-1.3407807929942595611e+154)); + + // Square the smallest finite number that will produce a non-finite result. + TestUtils.AreEqual(double.PositiveInfinity, math.square(1.34078079299425970996e+154)); + TestUtils.AreEqual(double.PositiveInfinity, math.square(-1.34078079299425970996e+154)); + } + + [TestCompiler] + public static void square_double2() + { + TestUtils.AreEqual(new double2(0.0), math.square(new double2(0.0))); + TestUtils.AreEqual(new double2(0.25), math.square(new double2(0.5))); + TestUtils.AreEqual(new double2(1.0), math.square(new double2(1.0))); + TestUtils.AreEqual(new double2(4.0), math.square(new double2(2.0))); + TestUtils.AreEqual(new double2(9.0), math.square(new double2(3.0))); + TestUtils.AreEqual(new double2(0.0), math.square(new double2(-0.0))); + TestUtils.AreEqual(new double2(0.25), math.square(new double2(-0.5))); + TestUtils.AreEqual(new double2(1.0), math.square(new double2(-1.0))); + TestUtils.AreEqual(new double2(4.0), math.square(new double2(-2.0))); + TestUtils.AreEqual(new double2(9.0), math.square(new double2(-3.0))); + TestUtils.AreEqual(new double2(0.0331537126872172294156), math.square(new double2(0.182081609964370727539))); + TestUtils.AreEqual(new double2(0.0331537126872172294156), math.square(new double2(-0.182081609964370727539))); + TestUtils.AreEqual(new double2(225642.598304570652544), math.square(new double2(475.018524169921875))); + TestUtils.AreEqual(new double2(225642.598304570652544), math.square(new double2(-475.018524169921875))); + TestUtils.IsTrue(math.all(math.isnan(math.square(new double2(double.NaN))))); + + // Square the largest finite number that will still produce a finite result. + TestUtils.AreEqual(new double2(1.79769313486231550856e+308), math.square(new double2(1.3407807929942595611e+154))); + TestUtils.AreEqual(new double2(1.79769313486231550856e+308), math.square(new double2(-1.3407807929942595611e+154))); + + // Square the smallest finite number that will produce a non-finite result. + TestUtils.AreEqual(new double2(double.PositiveInfinity), math.square(new double2(1.34078079299425970996e+154))); + TestUtils.AreEqual(new double2(double.PositiveInfinity), math.square(new double2(-1.34078079299425970996e+154))); + + // Random inputs. + TestUtils.AreEqual(new double2(0.272176139782814630053, 96307.5985667444765568), math.square(new double2(0.521705031394958496094, -310.33465576171875))); + } + + [TestCompiler] + public static void square_double3() + { + TestUtils.AreEqual(new double3(0.0), math.square(new double3(0.0))); + TestUtils.AreEqual(new double3(0.25), math.square(new double3(0.5))); + TestUtils.AreEqual(new double3(1.0), math.square(new double3(1.0))); + TestUtils.AreEqual(new double3(4.0), math.square(new double3(2.0))); + TestUtils.AreEqual(new double3(9.0), math.square(new double3(3.0))); + TestUtils.AreEqual(new double3(0.0), math.square(new double3(-0.0))); + TestUtils.AreEqual(new double3(0.25), math.square(new double3(-0.5))); + TestUtils.AreEqual(new double3(1.0), math.square(new double3(-1.0))); + TestUtils.AreEqual(new double3(4.0), math.square(new double3(-2.0))); + TestUtils.AreEqual(new double3(9.0), math.square(new double3(-3.0))); + TestUtils.AreEqual(new double3(0.0331537126872172294156), math.square(new double3(0.182081609964370727539))); + TestUtils.AreEqual(new double3(0.0331537126872172294156), math.square(new double3(-0.182081609964370727539))); + TestUtils.AreEqual(new double3(225642.598304570652544), math.square(new double3(475.018524169921875))); + TestUtils.AreEqual(new double3(225642.598304570652544), math.square(new double3(-475.018524169921875))); + TestUtils.IsTrue(math.all(math.isnan(math.square(new double3(double.NaN))))); + + // Square the largest finite number that will still produce a finite result. + TestUtils.AreEqual(new double3(1.79769313486231550856e+308), math.square(new double3(1.3407807929942595611e+154))); + TestUtils.AreEqual(new double3(1.79769313486231550856e+308), math.square(new double3(-1.3407807929942595611e+154))); + + // Square the smallest finite number that will produce a non-finite result. + TestUtils.AreEqual(new double3(double.PositiveInfinity), math.square(new double3(1.34078079299425970996e+154))); + TestUtils.AreEqual(new double3(double.PositiveInfinity), math.square(new double3(-1.34078079299425970996e+154))); + + // Random inputs. + TestUtils.AreEqual(new double3(0.272176139782814630053, 96307.5985667444765568, 5591.63402314303675666), math.square(new double3(0.521705031394958496094, -310.33465576171875, -74.77722930908203125))); + } + + [TestCompiler] + public static void square_double4() + { + TestUtils.AreEqual(new double4(0.0), math.square(new double4(0.0))); + TestUtils.AreEqual(new double4(0.25), math.square(new double4(0.5))); + TestUtils.AreEqual(new double4(1.0), math.square(new double4(1.0))); + TestUtils.AreEqual(new double4(4.0), math.square(new double4(2.0))); + TestUtils.AreEqual(new double4(9.0), math.square(new double4(3.0))); + TestUtils.AreEqual(new double4(0.0), math.square(new double4(-0.0))); + TestUtils.AreEqual(new double4(0.25), math.square(new double4(-0.5))); + TestUtils.AreEqual(new double4(1.0), math.square(new double4(-1.0))); + TestUtils.AreEqual(new double4(4.0), math.square(new double4(-2.0))); + TestUtils.AreEqual(new double4(9.0), math.square(new double4(-3.0))); + TestUtils.AreEqual(new double4(0.0331537126872172294156), math.square(new double4(0.182081609964370727539))); + TestUtils.AreEqual(new double4(0.0331537126872172294156), math.square(new double4(-0.182081609964370727539))); + TestUtils.AreEqual(new double4(225642.598304570652544), math.square(new double4(475.018524169921875))); + TestUtils.AreEqual(new double4(225642.598304570652544), math.square(new double4(-475.018524169921875))); + TestUtils.IsTrue(math.all(math.isnan(math.square(new double4(double.NaN))))); + + // Square the largest finite number that will still produce a finite result. + TestUtils.AreEqual(new double4(1.79769313486231550856e+308), math.square(new double4(1.3407807929942595611e+154))); + TestUtils.AreEqual(new double4(1.79769313486231550856e+308), math.square(new double4(-1.3407807929942595611e+154))); + + // Square the smallest finite number that will produce a non-finite result. + TestUtils.AreEqual(new double4(double.PositiveInfinity), math.square(new double4(1.34078079299425970996e+154))); + TestUtils.AreEqual(new double4(double.PositiveInfinity), math.square(new double4(-1.34078079299425970996e+154))); + + // Random inputs. + TestUtils.AreEqual(new double4(0.272176139782814630053, 96307.5985667444765568 /*96307.5985667444765568*/, 5591.63402314303675666 /*5591.6337890625*/, 152764.275950208306313 /*152764.28125*/), math.square(new double4(0.521705031394958496094, -310.33465576171875, -74.77722930908203125, 390.8507080078125))); + } + + [TestCompiler] + public static void square_int() + { + TestUtils.AreEqual(0, math.square(0)); + TestUtils.AreEqual(1, math.square(-1)); + TestUtils.AreEqual(4, math.square(-2)); + TestUtils.AreEqual(9, math.square(-3)); + TestUtils.AreEqual(16, math.square(-4)); + TestUtils.AreEqual(152399025, math.square(-12345)); + TestUtils.AreEqual(2147395600, math.square(-46340)); + TestUtils.AreEqual(0, math.square(0)); + TestUtils.AreEqual(1, math.square(1)); + TestUtils.AreEqual(4, math.square(2)); + TestUtils.AreEqual(9, math.square(3)); + TestUtils.AreEqual(16, math.square(4)); + TestUtils.AreEqual(152399025, math.square(12345)); + TestUtils.AreEqual(2147395600, math.square(46340)); + + // Overflow cases. + TestUtils.AreEqual(-2147479015, math.square(46341)); + TestUtils.AreEqual(-2147479015, math.square(-46341)); + TestUtils.AreEqual(-1938485248, math.square(123456)); + TestUtils.AreEqual(-1938485248, math.square(-123456)); + TestUtils.AreEqual(1, math.square(2147483647)); + TestUtils.AreEqual(1, math.square(-2147483647)); + TestUtils.AreEqual(0, math.square(-2147483648)); + } + + [TestCompiler] + public static void square_int2() + { + TestUtils.AreEqual(new int2(0), math.square(new int2(0))); + TestUtils.AreEqual(new int2(1), math.square(new int2(-1))); + TestUtils.AreEqual(new int2(4), math.square(new int2(-2))); + TestUtils.AreEqual(new int2(9), math.square(new int2(-3))); + TestUtils.AreEqual(new int2(16), math.square(new int2(-4))); + TestUtils.AreEqual(new int2(152399025), math.square(new int2(-12345))); + TestUtils.AreEqual(new int2(2147395600), math.square(new int2(-46340))); + TestUtils.AreEqual(new int2(0), math.square(new int2(0))); + TestUtils.AreEqual(new int2(1), math.square(new int2(1))); + TestUtils.AreEqual(new int2(4), math.square(new int2(2))); + TestUtils.AreEqual(new int2(9), math.square(new int2(3))); + TestUtils.AreEqual(new int2(16), math.square(new int2(4))); + TestUtils.AreEqual(new int2(152399025), math.square(new int2(12345))); + TestUtils.AreEqual(new int2(2147395600), math.square(new int2(46340))); + + // Overflow cases. + TestUtils.AreEqual(new int2(-2147479015), math.square(new int2(46341))); + TestUtils.AreEqual(new int2(-2147479015), math.square(new int2(-46341))); + TestUtils.AreEqual(new int2(-1938485248), math.square(new int2(123456))); + TestUtils.AreEqual(new int2(-1938485248), math.square(new int2(-123456))); + TestUtils.AreEqual(new int2(1), math.square(new int2(2147483647))); + TestUtils.AreEqual(new int2(1), math.square(new int2(-2147483647))); + TestUtils.AreEqual(new int2(0), math.square(new int2(-2147483648))); + + // Random inputs. + TestUtils.AreEqual(new int2(2121580241, -685235535), math.square(new int2(-831443639, 1415191751))); + } + + [TestCompiler] + public static void square_int3() + { + TestUtils.AreEqual(new int3(0), math.square(new int3(0))); + TestUtils.AreEqual(new int3(1), math.square(new int3(-1))); + TestUtils.AreEqual(new int3(4), math.square(new int3(-2))); + TestUtils.AreEqual(new int3(9), math.square(new int3(-3))); + TestUtils.AreEqual(new int3(16), math.square(new int3(-4))); + TestUtils.AreEqual(new int3(152399025), math.square(new int3(-12345))); + TestUtils.AreEqual(new int3(2147395600), math.square(new int3(-46340))); + TestUtils.AreEqual(new int3(0), math.square(new int3(0))); + TestUtils.AreEqual(new int3(1), math.square(new int3(1))); + TestUtils.AreEqual(new int3(4), math.square(new int3(2))); + TestUtils.AreEqual(new int3(9), math.square(new int3(3))); + TestUtils.AreEqual(new int3(16), math.square(new int3(4))); + TestUtils.AreEqual(new int3(152399025), math.square(new int3(12345))); + TestUtils.AreEqual(new int3(2147395600), math.square(new int3(46340))); + + // Overflow cases. + TestUtils.AreEqual(new int3(-2147479015), math.square(new int3(46341))); + TestUtils.AreEqual(new int3(-2147479015), math.square(new int3(-46341))); + TestUtils.AreEqual(new int3(-1938485248), math.square(new int3(123456))); + TestUtils.AreEqual(new int3(-1938485248), math.square(new int3(-123456))); + TestUtils.AreEqual(new int3(1), math.square(new int3(2147483647))); + TestUtils.AreEqual(new int3(1), math.square(new int3(-2147483647))); + TestUtils.AreEqual(new int3(0), math.square(new int3(-2147483648))); + + // Random inputs. + TestUtils.AreEqual(new int3(2121580241, -685235535, 468048505), math.square(new int3(-831443639, 1415191751, -178100469))); + } + + [TestCompiler] + public static void square_int4() + { + TestUtils.AreEqual(new int4(0), math.square(new int4(0))); + TestUtils.AreEqual(new int4(1), math.square(new int4(-1))); + TestUtils.AreEqual(new int4(4), math.square(new int4(-2))); + TestUtils.AreEqual(new int4(9), math.square(new int4(-3))); + TestUtils.AreEqual(new int4(16), math.square(new int4(-4))); + TestUtils.AreEqual(new int4(152399025), math.square(new int4(-12345))); + TestUtils.AreEqual(new int4(2147395600), math.square(new int4(-46340))); + TestUtils.AreEqual(new int4(0), math.square(new int4(0))); + TestUtils.AreEqual(new int4(1), math.square(new int4(1))); + TestUtils.AreEqual(new int4(4), math.square(new int4(2))); + TestUtils.AreEqual(new int4(9), math.square(new int4(3))); + TestUtils.AreEqual(new int4(16), math.square(new int4(4))); + TestUtils.AreEqual(new int4(152399025), math.square(new int4(12345))); + TestUtils.AreEqual(new int4(2147395600), math.square(new int4(46340))); + + // Overflow cases. + TestUtils.AreEqual(new int4(-2147479015), math.square(new int4(46341))); + TestUtils.AreEqual(new int4(-2147479015), math.square(new int4(-46341))); + TestUtils.AreEqual(new int4(-1938485248), math.square(new int4(123456))); + TestUtils.AreEqual(new int4(-1938485248), math.square(new int4(-123456))); + TestUtils.AreEqual(new int4(1), math.square(new int4(2147483647))); + TestUtils.AreEqual(new int4(1), math.square(new int4(-2147483647))); + TestUtils.AreEqual(new int4(0), math.square(new int4(-2147483648))); + + // Random inputs. + TestUtils.AreEqual(new int4(2121580241, -685235535, 468048505, -1902728316), math.square(new int4(-831443639, 1415191751, -178100469, 1331775970))); + } + + [TestCompiler] + public static void square_uint() + { + TestUtils.AreEqual(0u, math.square(0u)); + TestUtils.AreEqual(1u, math.square(1u)); + TestUtils.AreEqual(4u, math.square(2u)); + TestUtils.AreEqual(9u, math.square(3u)); + TestUtils.AreEqual(16u, math.square(4u)); + TestUtils.AreEqual(152399025u, math.square(12345u)); + TestUtils.AreEqual(2147395600u, math.square(46340u)); + TestUtils.AreEqual(2147488281u, math.square(46341u)); + + // Overflow cases. + TestUtils.AreEqual(1u, math.square(4294967295u)); + TestUtils.AreEqual(1u, math.square(2147483647u)); + TestUtils.AreEqual(2356482048u, math.square(123456u)); + } + + [TestCompiler] + public static void square_uint2() + { + TestUtils.AreEqual(new uint2(0u), math.square(new uint2(0u))); + TestUtils.AreEqual(new uint2(1u), math.square(new uint2(1u))); + TestUtils.AreEqual(new uint2(4u), math.square(new uint2(2u))); + TestUtils.AreEqual(new uint2(9u), math.square(new uint2(3u))); + TestUtils.AreEqual(new uint2(16u), math.square(new uint2(4u))); + TestUtils.AreEqual(new uint2(152399025u), math.square(new uint2(12345u))); + TestUtils.AreEqual(new uint2(2147395600u), math.square(new uint2(46340u))); + TestUtils.AreEqual(new uint2(2147488281u), math.square(new uint2(46341u))); + + // Overflow cases. + TestUtils.AreEqual(new uint2(1u), math.square(new uint2(4294967295u))); + TestUtils.AreEqual(new uint2(1u), math.square(new uint2(2147483647u))); + TestUtils.AreEqual(new uint2(2356482048u), math.square(new uint2(123456u))); + + // Random inputs. + TestUtils.AreEqual(new uint2(3982663844u, 503153673u), math.square(new uint2(779359642u, 2488899075u))); + } + + [TestCompiler] + public static void square_uint3() + { + TestUtils.AreEqual(new uint3(0u), math.square(new uint3(0u))); + TestUtils.AreEqual(new uint3(1u), math.square(new uint3(1u))); + TestUtils.AreEqual(new uint3(4u), math.square(new uint3(2u))); + TestUtils.AreEqual(new uint3(9u), math.square(new uint3(3u))); + TestUtils.AreEqual(new uint3(16u), math.square(new uint3(4u))); + TestUtils.AreEqual(new uint3(152399025u), math.square(new uint3(12345u))); + TestUtils.AreEqual(new uint3(2147395600u), math.square(new uint3(46340u))); + TestUtils.AreEqual(new uint3(2147488281u), math.square(new uint3(46341u))); + + // Overflow cases. + TestUtils.AreEqual(new uint3(1u), math.square(new uint3(4294967295u))); + TestUtils.AreEqual(new uint3(1u), math.square(new uint3(2147483647u))); + TestUtils.AreEqual(new uint3(2356482048u), math.square(new uint3(123456u))); + + // Random inputs. + TestUtils.AreEqual(new uint3(3982663844u, 503153673u, 4101817232u), math.square(new uint3(779359642u, 2488899075u, 407772844u))); + } + + [TestCompiler] + public static void square_uint4() + { + TestUtils.AreEqual(new uint4(0u), math.square(new uint4(0u))); + TestUtils.AreEqual(new uint4(1u), math.square(new uint4(1u))); + TestUtils.AreEqual(new uint4(4u), math.square(new uint4(2u))); + TestUtils.AreEqual(new uint4(9u), math.square(new uint4(3u))); + TestUtils.AreEqual(new uint4(16u), math.square(new uint4(4u))); + TestUtils.AreEqual(new uint4(152399025u), math.square(new uint4(12345u))); + TestUtils.AreEqual(new uint4(2147395600u), math.square(new uint4(46340u))); + TestUtils.AreEqual(new uint4(2147488281u), math.square(new uint4(46341u))); + + // Overflow cases. + TestUtils.AreEqual(new uint4(1u), math.square(new uint4(4294967295u))); + TestUtils.AreEqual(new uint4(1u), math.square(new uint4(2147483647u))); + TestUtils.AreEqual(new uint4(2356482048u), math.square(new uint4(123456u))); + + // Random inputs. + TestUtils.AreEqual(new uint4(3982663844u, 503153673u, 4101817232u, 2726088561u), math.square(new uint4(779359642u, 2488899075u, 407772844u, 2862593383u))); + } } } diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 58333852..38de19b1 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -4061,6 +4061,214 @@ public static int4 floorlog2(uint4 x) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double csum(double4 x) { return (x.x + x.y) + (x.z + x.w); } + /// + /// Computes the square (x * x) of the input argument x. + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float square(float x) + { + return x * x; + } + + /// + /// Computes the component-wise square (x * x) of the input argument x. + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 square(float2 x) + { + return x * x; + } + + /// + /// Computes the component-wise square (x * x) of the input argument x. + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 square(float3 x) + { + return x * x; + } + + /// + /// Computes the component-wise square (x * x) of the input argument x. + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 square(float4 x) + { + return x * x; + } + + /// + /// Computes the square (x * x) of the input argument x. + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double square(double x) + { + return x * x; + } + + /// + /// Computes the component-wise square (x * x) of the input argument x. + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double2 square(double2 x) + { + return x * x; + } + + /// + /// Computes the component-wise square (x * x) of the input argument x. + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double3 square(double3 x) + { + return x * x; + } + + /// + /// Computes the component-wise square (x * x) of the input argument x. + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static double4 square(double4 x) + { + return x * x; + } + + /// + /// Computes the square (x * x) of the input argument x. + /// + /// + /// Due to integer overflow, it's not always guaranteed that square(x) is positive. For example, square(46341) + /// will return -2147479015. + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int square(int x) + { + return x * x; + } + + /// + /// Computes the component-wise square (x * x) of the input argument x. + /// + /// + /// Due to integer overflow, it's not always guaranteed that square(x) is positive. For example, square(new int2(46341)) + /// will return new int2(-2147479015). + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 square(int2 x) + { + return x * x; + } + + /// + /// Computes the component-wise square (x * x) of the input argument x. + /// + /// + /// Due to integer overflow, it's not always guaranteed that square(x) is positive. For example, square(new int3(46341)) + /// will return new int3(-2147479015). + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 square(int3 x) + { + return x * x; + } + + /// + /// Computes the component-wise square (x * x) of the input argument x. + /// + /// + /// Due to integer overflow, it's not always guaranteed that square(x) is positive. For example, square(new int4(46341)) + /// will return new int4(-2147479015). + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 square(int4 x) + { + return x * x; + } + + /// + /// Computes the square (x * x) of the input argument x. + /// + /// + /// Due to integer overflow, it's not always guaranteed that square(x) >= x. For example, square(4294967295u) + /// will return 1u. + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint square(uint x) + { + return x * x; + } + + /// + /// Computes the component-wise square (x * x) of the input argument x. + /// + /// + /// Due to integer overflow, it's not always guaranteed that square(x) >= x. For example, square(new uint2(4294967295u)) + /// will return new uint2(1u). + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint2 square(uint2 x) + { + return x * x; + } + + /// + /// Computes the component-wise square (x * x) of the input argument x. + /// + /// + /// Due to integer overflow, it's not always guaranteed that square(x) >= x. For example, square(new uint3(4294967295u)) + /// will return new uint3(1u). + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 square(uint3 x) + { + return x * x; + } + + /// + /// Computes the component-wise square (x * x) of the input argument x. + /// + /// + /// Due to integer overflow, it's not always guaranteed that square(x) >= x. For example, square(new uint4(4294967295u)) + /// will return new uint4(1u). + /// + /// Value to square. + /// Returns the square of the input. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 square(uint4 x) + { + return x * x; + } + /// /// Packs components with an enabled mask to the left. /// From 79d02c91c475fbd9879d0094a0735acbe5c1a5a6 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Tue, 6 Oct 2020 13:52:52 -0700 Subject: [PATCH 329/437] Add orthonormal_basis() to compute orthonormal basis. (#173) DOTS-2395. --- src/CHANGELOG.md | 1 + src/Tests/Tests/Shared/TestMath.cs | 53 ++++ .../VectorGenerator.cs | 29 +++ .../TestMath.gen.cs | 230 ++++++++++++++++++ .../TestMath.gen.cs.meta | 11 + src/Unity.Mathematics/math.cs | 45 ++++ 6 files changed, 369 insertions(+) create mode 100644 src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs create mode 100644 src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs.meta diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index b9c8562d..28f35edd 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -4,6 +4,7 @@ ### Added * Added `[Il2CppEagerStaticClassConstruction]` to Unity.Mathematics types to run static constructors at startup. This improves IL2CPP performance slightly for types that have static constructors. * Added `math.square()` to compute the square (x * x). +* Added `math.orthonormal_basis()` to compute an orthonormal basis from a single unit length vector. ### Changed * Changed noise documentation in comments to xmldoc comments. diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index 4d6b7bf9..ffe458f6 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -3785,5 +3785,58 @@ public static void square_uint4() // Random inputs. TestUtils.AreEqual(new uint4(3982663844u, 503153673u, 4101817232u, 2726088561u), math.square(new uint4(779359642u, 2488899075u, 407772844u, 2862593383u))); } + + // This utility function comes from footnote 1 of "Building an Orthonormal Basis, Revisited" by + // Duff, Burgess, Christensen, Hery, Kensler, Liani and Villemin. + // + // It simply computes the average squared error of the basis vectors by taking into account + // their lengths (which should be one) and dot products (which should be zero). + // + // https://graphics.pixar.com/library/OrthonormalB/paper.pdf + static double OrthonormalBasisSquaredError(double3 v1, double3 v2, double3 v3) + { + var d1 = math.length(v1) - 1.0; + var d2 = math.length(v2) - 1.0; + var d3 = math.length(v3) - 1.0; + var dot1 = math.dot(v1, v2); + var dot2 = math.dot(v1, v3); + var dot3 = math.dot(v2, v3); + + return ((d1 * d1) + (d2 * d2) + (d3 * d3) + (dot1 * dot1) + (dot2 * dot2) + (dot3 * dot3)) / 6.0; + } + + // The value chosen for tolerance here is the maximum error observed in + // "Building an Orthonormal Basis, Revisited" table 1. + private const double kOrthonormalBasisSqErrorTolerance = 1.04e-7d; + + [TestCompiler] + public static void orthonormal_basis_float() + { + var random = new Random(8189782u); + + for (int i = 0; i < 10000; ++i) + { + var v1 = random.NextFloat3Direction(); + var v2 = new float3(); + var v3 = new float3(); + math.orthonormal_basis(v1, out v2, out v3); + TestUtils.IsTrue(OrthonormalBasisSquaredError(v1, v2, v3) < kOrthonormalBasisSqErrorTolerance); + } + } + + [TestCompiler] + public static void orthonormal_basis_double() + { + var random = new Random(99917872u); + + for (int i = 0; i < 10000; ++i) + { + var v1 = random.NextDouble3Direction(); + var v2 = new double3(); + var v3 = new double3(); + math.orthonormal_basis(v1, out v2, out v3); + TestUtils.IsTrue(OrthonormalBasisSquaredError(v1, v2, v3) < kOrthonormalBasisSqErrorTolerance); + } + } } } diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index a3c97744..30b74e11 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -3515,6 +3515,31 @@ public void GenerateMinMaxAabbPerformanceTests(StringBuilder str) EndPerformanceTestCodeGen(str); } + public void GenerateMathPerformanceTests(StringBuilder str) + { + BeginPerformanceTestCodeGen(str, "TestMath"); + + GeneratePerformanceTest(str, "orthonormal_basis_float", new PerformanceTestArrayArgument[] + { + // This rng array is totally wasteful since we create loopIterations of them when we just need one. + new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Random(1234u)" }, + new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "v1", m_ElementInitializer = "rng[0].NextFloat3Direction()" }, + new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "v2", m_ElementInitializer = "new float3()" }, + new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "v3", m_ElementInitializer = "new float3()" }, + }, "math.orthonormal_basis(args.v1[i], out args.v2[i], out args.v3[i]);", 1000000); + + GeneratePerformanceTest(str, "orthonormal_basis_double", new PerformanceTestArrayArgument[] + { + // This rng array is totally wasteful since we create loopIterations of them when we just need one. + new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Random(1234u)" }, + new PerformanceTestArrayArgument { m_ElementType = "double3", m_MemberName = "v1", m_ElementInitializer = "rng[0].NextDouble3Direction()" }, + new PerformanceTestArrayArgument { m_ElementType = "double3", m_MemberName = "v2", m_ElementInitializer = "new double()" }, + new PerformanceTestArrayArgument { m_ElementType = "double3", m_MemberName = "v3", m_ElementInitializer = "new double()" }, + }, "math.orthonormal_basis(args.v1[i], out args.v2[i], out args.v3[i]);", 1000000); + + EndPerformanceTestCodeGen(str); + } + public struct PerformanceTestArrayArgument { public string m_ElementType; @@ -3672,6 +3697,10 @@ void WritePerformanceTests() StringBuilder minMaxAabbStr = new StringBuilder(); GenerateMinMaxAabbPerformanceTests(minMaxAabbStr); WriteFile(m_PerformanceTestDirectory + "/TestMinMaxAABB.gen.cs", minMaxAabbStr.ToString()); + + StringBuilder mathStr = new StringBuilder(); + GenerateMathPerformanceTests(mathStr); + WriteFile(m_PerformanceTestDirectory + "/TestMath.gen.cs", mathStr.ToString()); } } } diff --git a/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs new file mode 100644 index 00000000..15c6c2a2 --- /dev/null +++ b/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs @@ -0,0 +1,230 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ +using System; +using NUnit.Framework; +using Unity.Collections; +using Unity.Collections.LowLevel.Unsafe; +using Unity.PerformanceTesting; +using Unity.Mathematics.Geometry; +using Unity.Burst; + +namespace Unity.Mathematics.PerformanceTests +{ + partial class TestMath + { + [BurstCompile(CompileSynchronously = true)] + public unsafe class orthonormal_basis_float + { + public struct Arguments : IDisposable + { + public Random* rng; + public float3* v1; + public float3* v2; + public float3* v3; + + public void Init() + { + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < 1000000; ++i) + { + rng[i] = new Random(1234u); + } + + v1 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < 1000000; ++i) + { + v1[i] = rng[0].NextFloat3Direction(); + } + + v2 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < 1000000; ++i) + { + v2[i] = new float3(); + } + + v3 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < 1000000; ++i) + { + v3[i] = new float3(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(rng, Allocator.Persistent); + UnsafeUtility.Free(v1, Allocator.Persistent); + UnsafeUtility.Free(v2, Allocator.Persistent); + UnsafeUtility.Free(v3, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < 1000000; ++i) + { + math.orthonormal_basis(args.v1[i], out args.v2[i], out args.v3[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void orthonormal_basis_float_mono() + { + orthonormal_basis_float.TestFunction testFunction = orthonormal_basis_float.MonoTestFunction; + var args = new orthonormal_basis_float.Arguments(); + args.Init(); + + Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .Definition(sampleUnit: SampleUnit.Microsecond) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void orthonormal_basis_float_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(orthonormal_basis_float.BurstTestFunction); + var args = new orthonormal_basis_float.Arguments(); + args.Init(); + + Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .Definition(sampleUnit: SampleUnit.Microsecond) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class orthonormal_basis_double + { + public struct Arguments : IDisposable + { + public Random* rng; + public double3* v1; + public double3* v2; + public double3* v3; + + public void Init() + { + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < 1000000; ++i) + { + rng[i] = new Random(1234u); + } + + v1 = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < 1000000; ++i) + { + v1[i] = rng[0].NextDouble3Direction(); + } + + v2 = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < 1000000; ++i) + { + v2[i] = new double(); + } + + v3 = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < 1000000; ++i) + { + v3[i] = new double(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(rng, Allocator.Persistent); + UnsafeUtility.Free(v1, Allocator.Persistent); + UnsafeUtility.Free(v2, Allocator.Persistent); + UnsafeUtility.Free(v3, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < 1000000; ++i) + { + math.orthonormal_basis(args.v1[i], out args.v2[i], out args.v3[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void orthonormal_basis_double_mono() + { + orthonormal_basis_double.TestFunction testFunction = orthonormal_basis_double.MonoTestFunction; + var args = new orthonormal_basis_double.Arguments(); + args.Init(); + + Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .Definition(sampleUnit: SampleUnit.Microsecond) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void orthonormal_basis_double_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(orthonormal_basis_double.BurstTestFunction); + var args = new orthonormal_basis_double.Arguments(); + args.Init(); + + Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .Definition(sampleUnit: SampleUnit.Microsecond) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + } +} diff --git a/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs.meta b/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs.meta new file mode 100644 index 00000000..05b64bda --- /dev/null +++ b/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f84a39ab49a9b42a7b7d6430da01c134 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 38de19b1..452c9fc6 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -4450,6 +4450,51 @@ public static uint4 f32tof16(float4 x) return h | (ux & ~msk) >> 16; } + /// + /// Generate an orthonormal basis given a single unit length normal vector. + /// + /// + /// This implementation is from "Building an Orthonormal Basis, Revisited" + /// https://graphics.pixar.com/library/OrthonormalB/paper.pdf + /// + /// Unit length normal vector. + /// Output unit length vector, orthogonal to normal vector. + /// Output unit length vector, orthogonal to normal vector and basis1. + public static void orthonormal_basis(float3 normal, out float3 basis1, out float3 basis2) + { + var sign = normal.z >= 0.0f ? 1.0f : -1.0f; + var a = -1.0f / (sign + normal.z); + var b = normal.x * normal.y * a; + basis1.x = 1.0f + sign * normal.x * normal.x * a; + basis1.y = sign * b; + basis1.z = -sign * normal.x; + basis2.x = b; + basis2.y = sign + normal.y * normal.y * a; + basis2.z = -normal.y; + } + + /// + /// Generate an orthonormal basis given a single unit length normal vector. + /// + /// + /// This implementation is from "Building an Orthonormal Basis, Revisited" + /// https://graphics.pixar.com/library/OrthonormalB/paper.pdf + /// + /// Unit length normal vector. + /// Output unit length vector, orthogonal to normal vector. + /// Output unit length vector, orthogonal to normal vector and basis1. + public static void orthonormal_basis(double3 normal, out double3 basis1, out double3 basis2) + { + var sign = normal.z >= 0.0 ? 1.0 : -1.0; + var a = -1.0 / (sign + normal.z); + var b = normal.x * normal.y * a; + basis1.x = 1.0 + sign * normal.x * normal.x * a; + basis1.y = sign * b; + basis1.z = -sign * normal.x; + basis2.x = b; + basis2.y = sign + normal.y * normal.y * a; + basis2.z = -normal.y; + } /// Returns a uint hash from a block of memory using the xxhash32 algorithm. Can only be used in an unsafe context. /// A pointer to the beginning of the data. From d2dcf30f1dbd395171350304442c6a4f647cf290 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Tue, 6 Oct 2020 15:42:38 -0700 Subject: [PATCH 330/437] Check type before casting in Equals override. (#174) Closes #153 and DOTS-2836. --- src/CHANGELOG.md | 2 ++ src/Tests/Tests/Shared/TestBool2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestBool2x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestBool2x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestBool2x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestBool3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestBool3x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestBool3x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestBool3x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestBool4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestBool4x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestBool4x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestBool4x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestDouble2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestDouble2x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestDouble2x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestDouble2x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestDouble3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestDouble3x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestDouble3x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestDouble3x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestDouble4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestDouble4x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestDouble4x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestDouble4x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestFloat2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestFloat2x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestFloat2x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestFloat2x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestFloat3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestFloat3x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestFloat3x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestFloat3x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestFloat4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestFloat4x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestFloat4x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestFloat4x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestHalf.cs | 28 +++++++++++++++++++ src/Tests/Tests/Shared/TestInt2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestInt2x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestInt2x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestInt2x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestInt3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestInt3x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestInt3x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestInt3x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestInt4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestInt4x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestInt4x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestInt4x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestQuaternion.cs | 7 +++++ src/Tests/Tests/Shared/TestRigidTransform.cs | 7 +++++ src/Tests/Tests/Shared/TestUint2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestUint2x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestUint2x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestUint2x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestUint3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestUint3x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestUint3x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestUint3x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestUint4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestUint4x2.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestUint4x3.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestUint4x4.gen.cs | 7 +++++ src/Tests/Tests/Shared/TestUtils.cs | 1 - .../VectorGenerator.cs | 24 +++++++++++++--- src/Unity.Mathematics/bool2.gen.cs | 2 +- src/Unity.Mathematics/bool2x2.gen.cs | 2 +- src/Unity.Mathematics/bool2x3.gen.cs | 2 +- src/Unity.Mathematics/bool2x4.gen.cs | 2 +- src/Unity.Mathematics/bool3.gen.cs | 2 +- src/Unity.Mathematics/bool3x2.gen.cs | 2 +- src/Unity.Mathematics/bool3x3.gen.cs | 2 +- src/Unity.Mathematics/bool3x4.gen.cs | 2 +- src/Unity.Mathematics/bool4.gen.cs | 2 +- src/Unity.Mathematics/bool4x2.gen.cs | 2 +- src/Unity.Mathematics/bool4x3.gen.cs | 2 +- src/Unity.Mathematics/bool4x4.gen.cs | 2 +- src/Unity.Mathematics/double2.gen.cs | 2 +- src/Unity.Mathematics/double2x2.gen.cs | 2 +- src/Unity.Mathematics/double2x3.gen.cs | 2 +- src/Unity.Mathematics/double2x4.gen.cs | 2 +- src/Unity.Mathematics/double3.gen.cs | 2 +- src/Unity.Mathematics/double3x2.gen.cs | 2 +- src/Unity.Mathematics/double3x3.gen.cs | 2 +- src/Unity.Mathematics/double3x4.gen.cs | 2 +- src/Unity.Mathematics/double4.gen.cs | 2 +- src/Unity.Mathematics/double4x2.gen.cs | 2 +- src/Unity.Mathematics/double4x3.gen.cs | 2 +- src/Unity.Mathematics/double4x4.gen.cs | 2 +- src/Unity.Mathematics/float2.gen.cs | 2 +- src/Unity.Mathematics/float2x2.gen.cs | 2 +- src/Unity.Mathematics/float2x3.gen.cs | 2 +- src/Unity.Mathematics/float2x4.gen.cs | 2 +- src/Unity.Mathematics/float3.gen.cs | 2 +- src/Unity.Mathematics/float3x2.gen.cs | 2 +- src/Unity.Mathematics/float3x3.gen.cs | 2 +- src/Unity.Mathematics/float3x4.gen.cs | 2 +- src/Unity.Mathematics/float4.gen.cs | 2 +- src/Unity.Mathematics/float4x2.gen.cs | 2 +- src/Unity.Mathematics/float4x3.gen.cs | 2 +- src/Unity.Mathematics/float4x4.gen.cs | 2 +- src/Unity.Mathematics/half.cs | 2 +- src/Unity.Mathematics/half2.gen.cs | 2 +- src/Unity.Mathematics/half3.gen.cs | 2 +- src/Unity.Mathematics/half4.gen.cs | 2 +- src/Unity.Mathematics/int2.gen.cs | 2 +- src/Unity.Mathematics/int2x2.gen.cs | 2 +- src/Unity.Mathematics/int2x3.gen.cs | 2 +- src/Unity.Mathematics/int2x4.gen.cs | 2 +- src/Unity.Mathematics/int3.gen.cs | 2 +- src/Unity.Mathematics/int3x2.gen.cs | 2 +- src/Unity.Mathematics/int3x3.gen.cs | 2 +- src/Unity.Mathematics/int3x4.gen.cs | 2 +- src/Unity.Mathematics/int4.gen.cs | 2 +- src/Unity.Mathematics/int4x2.gen.cs | 2 +- src/Unity.Mathematics/int4x3.gen.cs | 2 +- src/Unity.Mathematics/int4x4.gen.cs | 2 +- src/Unity.Mathematics/quaternion.cs | 2 +- src/Unity.Mathematics/rigid_transform.cs | 2 +- src/Unity.Mathematics/uint2.gen.cs | 2 +- src/Unity.Mathematics/uint2x2.gen.cs | 2 +- src/Unity.Mathematics/uint2x3.gen.cs | 2 +- src/Unity.Mathematics/uint2x4.gen.cs | 2 +- src/Unity.Mathematics/uint3.gen.cs | 2 +- src/Unity.Mathematics/uint3x2.gen.cs | 2 +- src/Unity.Mathematics/uint3x3.gen.cs | 2 +- src/Unity.Mathematics/uint3x4.gen.cs | 2 +- src/Unity.Mathematics/uint4.gen.cs | 2 +- src/Unity.Mathematics/uint4x2.gen.cs | 2 +- src/Unity.Mathematics/uint4x3.gen.cs | 2 +- src/Unity.Mathematics/uint4x4.gen.cs | 2 +- 132 files changed, 550 insertions(+), 71 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 28f35edd..741787b7 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -12,6 +12,8 @@ ### Deprecated ### Removed ### Fixed +* Fixed Equals(object) override which did not check type before casting. This could cause exceptions to be thrown when the object did not match the expected type. + ### Internal (Not ready for production) ## [1.2.1] - 2020-08-06 diff --git a/src/Tests/Tests/Shared/TestBool2.gen.cs b/src/Tests/Tests/Shared/TestBool2.gen.cs index a5a7339f..e6611a21 100644 --- a/src/Tests/Tests/Shared/TestBool2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2.gen.cs @@ -427,6 +427,13 @@ public static void bool2_operator_logical_not() TestUtils.AreEqual(r3, !a3); } + [TestCase] + public static void bool2_EqualsObjectOverride() + { + TestUtils.IsFalse(new bool2().Equals((object)new int())); + TestUtils.IsTrue(new bool2().Equals((object)new bool2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestBool2x2.gen.cs b/src/Tests/Tests/Shared/TestBool2x2.gen.cs index 4219b240..1e1796c1 100644 --- a/src/Tests/Tests/Shared/TestBool2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2x2.gen.cs @@ -395,6 +395,13 @@ public static void bool2x2_operator_logical_not() TestUtils.AreEqual(r3, !a3); } + [TestCase] + public static void bool2x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new bool2x2().Equals((object)new int())); + TestUtils.IsTrue(new bool2x2().Equals((object)new bool2x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestBool2x3.gen.cs b/src/Tests/Tests/Shared/TestBool2x3.gen.cs index 3d714c74..0a48b12b 100644 --- a/src/Tests/Tests/Shared/TestBool2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2x3.gen.cs @@ -395,6 +395,13 @@ public static void bool2x3_operator_logical_not() TestUtils.AreEqual(r3, !a3); } + [TestCase] + public static void bool2x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new bool2x3().Equals((object)new int())); + TestUtils.IsTrue(new bool2x3().Equals((object)new bool2x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestBool2x4.gen.cs b/src/Tests/Tests/Shared/TestBool2x4.gen.cs index ab739402..14783e3f 100644 --- a/src/Tests/Tests/Shared/TestBool2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2x4.gen.cs @@ -395,6 +395,13 @@ public static void bool2x4_operator_logical_not() TestUtils.AreEqual(r3, !a3); } + [TestCase] + public static void bool2x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new bool2x4().Equals((object)new int())); + TestUtils.IsTrue(new bool2x4().Equals((object)new bool2x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestBool3.gen.cs b/src/Tests/Tests/Shared/TestBool3.gen.cs index 75771255..445a9368 100644 --- a/src/Tests/Tests/Shared/TestBool3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3.gen.cs @@ -431,6 +431,13 @@ public static void bool3_operator_logical_not() TestUtils.AreEqual(r3, !a3); } + [TestCase] + public static void bool3_EqualsObjectOverride() + { + TestUtils.IsFalse(new bool3().Equals((object)new int())); + TestUtils.IsTrue(new bool3().Equals((object)new bool3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestBool3x2.gen.cs b/src/Tests/Tests/Shared/TestBool3x2.gen.cs index 48431bca..18a6862a 100644 --- a/src/Tests/Tests/Shared/TestBool3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3x2.gen.cs @@ -395,6 +395,13 @@ public static void bool3x2_operator_logical_not() TestUtils.AreEqual(r3, !a3); } + [TestCase] + public static void bool3x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new bool3x2().Equals((object)new int())); + TestUtils.IsTrue(new bool3x2().Equals((object)new bool3x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestBool3x3.gen.cs b/src/Tests/Tests/Shared/TestBool3x3.gen.cs index 07893ed8..48edee0c 100644 --- a/src/Tests/Tests/Shared/TestBool3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3x3.gen.cs @@ -395,6 +395,13 @@ public static void bool3x3_operator_logical_not() TestUtils.AreEqual(r3, !a3); } + [TestCase] + public static void bool3x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new bool3x3().Equals((object)new int())); + TestUtils.IsTrue(new bool3x3().Equals((object)new bool3x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestBool3x4.gen.cs b/src/Tests/Tests/Shared/TestBool3x4.gen.cs index 12da8e2a..ac7c65f4 100644 --- a/src/Tests/Tests/Shared/TestBool3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3x4.gen.cs @@ -395,6 +395,13 @@ public static void bool3x4_operator_logical_not() TestUtils.AreEqual(r3, !a3); } + [TestCase] + public static void bool3x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new bool3x4().Equals((object)new int())); + TestUtils.IsTrue(new bool3x4().Equals((object)new bool3x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestBool4.gen.cs b/src/Tests/Tests/Shared/TestBool4.gen.cs index ad61a88c..73ed49b9 100644 --- a/src/Tests/Tests/Shared/TestBool4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4.gen.cs @@ -435,6 +435,13 @@ public static void bool4_operator_logical_not() TestUtils.AreEqual(r3, !a3); } + [TestCase] + public static void bool4_EqualsObjectOverride() + { + TestUtils.IsFalse(new bool4().Equals((object)new int())); + TestUtils.IsTrue(new bool4().Equals((object)new bool4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestBool4x2.gen.cs b/src/Tests/Tests/Shared/TestBool4x2.gen.cs index 3dca6c52..b689182a 100644 --- a/src/Tests/Tests/Shared/TestBool4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4x2.gen.cs @@ -395,6 +395,13 @@ public static void bool4x2_operator_logical_not() TestUtils.AreEqual(r3, !a3); } + [TestCase] + public static void bool4x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new bool4x2().Equals((object)new int())); + TestUtils.IsTrue(new bool4x2().Equals((object)new bool4x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestBool4x3.gen.cs b/src/Tests/Tests/Shared/TestBool4x3.gen.cs index 5f948ffa..c2ae3231 100644 --- a/src/Tests/Tests/Shared/TestBool4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4x3.gen.cs @@ -395,6 +395,13 @@ public static void bool4x3_operator_logical_not() TestUtils.AreEqual(r3, !a3); } + [TestCase] + public static void bool4x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new bool4x3().Equals((object)new int())); + TestUtils.IsTrue(new bool4x3().Equals((object)new bool4x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestBool4x4.gen.cs b/src/Tests/Tests/Shared/TestBool4x4.gen.cs index a1942413..da5ea36c 100644 --- a/src/Tests/Tests/Shared/TestBool4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4x4.gen.cs @@ -395,6 +395,13 @@ public static void bool4x4_operator_logical_not() TestUtils.AreEqual(r3, !a3); } + [TestCase] + public static void bool4x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new bool4x4().Equals((object)new int())); + TestUtils.IsTrue(new bool4x4().Equals((object)new bool4x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestDouble2.gen.cs b/src/Tests/Tests/Shared/TestDouble2.gen.cs index 281fe51d..ec155483 100644 --- a/src/Tests/Tests/Shared/TestDouble2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2.gen.cs @@ -1050,6 +1050,13 @@ public static void double2_shuffle_result_4() TestUtils.AreEqual(double4(2, 0, 0, 0), shuffle(a, b, ShuffleComponent.RightX, ShuffleComponent.LeftX, ShuffleComponent.LeftX, ShuffleComponent.LeftX)); } + [TestCase] + public static void double2_EqualsObjectOverride() + { + TestUtils.IsFalse(new double2().Equals((object)new int())); + TestUtils.IsTrue(new double2().Equals((object)new double2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestDouble2x2.gen.cs b/src/Tests/Tests/Shared/TestDouble2x2.gen.cs index dfb169f7..1a222ad6 100644 --- a/src/Tests/Tests/Shared/TestDouble2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2x2.gen.cs @@ -945,6 +945,13 @@ public static void double2x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void double2x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new double2x2().Equals((object)new int())); + TestUtils.IsTrue(new double2x2().Equals((object)new double2x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestDouble2x3.gen.cs b/src/Tests/Tests/Shared/TestDouble2x3.gen.cs index 51b09ef2..b93357a2 100644 --- a/src/Tests/Tests/Shared/TestDouble2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2x3.gen.cs @@ -938,6 +938,13 @@ public static void double2x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void double2x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new double2x3().Equals((object)new int())); + TestUtils.IsTrue(new double2x3().Equals((object)new double2x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestDouble2x4.gen.cs b/src/Tests/Tests/Shared/TestDouble2x4.gen.cs index d27b8e2a..76cf4e06 100644 --- a/src/Tests/Tests/Shared/TestDouble2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2x4.gen.cs @@ -940,6 +940,13 @@ public static void double2x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void double2x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new double2x4().Equals((object)new int())); + TestUtils.IsTrue(new double2x4().Equals((object)new double2x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestDouble3.gen.cs b/src/Tests/Tests/Shared/TestDouble3.gen.cs index 194c3039..3f5a847d 100644 --- a/src/Tests/Tests/Shared/TestDouble3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3.gen.cs @@ -1057,6 +1057,13 @@ public static void double3_shuffle_result_4() TestUtils.AreEqual(double4(2, 5, 0, 4), shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftX, ShuffleComponent.RightY)); } + [TestCase] + public static void double3_EqualsObjectOverride() + { + TestUtils.IsFalse(new double3().Equals((object)new int())); + TestUtils.IsTrue(new double3().Equals((object)new double3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestDouble3x2.gen.cs b/src/Tests/Tests/Shared/TestDouble3x2.gen.cs index e3056160..6a93f3bc 100644 --- a/src/Tests/Tests/Shared/TestDouble3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3x2.gen.cs @@ -938,6 +938,13 @@ public static void double3x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void double3x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new double3x2().Equals((object)new int())); + TestUtils.IsTrue(new double3x2().Equals((object)new double3x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestDouble3x3.gen.cs b/src/Tests/Tests/Shared/TestDouble3x3.gen.cs index 3a459dd3..f1b508e6 100644 --- a/src/Tests/Tests/Shared/TestDouble3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3x3.gen.cs @@ -955,6 +955,13 @@ public static void double3x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void double3x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new double3x3().Equals((object)new int())); + TestUtils.IsTrue(new double3x3().Equals((object)new double3x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestDouble3x4.gen.cs b/src/Tests/Tests/Shared/TestDouble3x4.gen.cs index 74beef29..d9ef296f 100644 --- a/src/Tests/Tests/Shared/TestDouble3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3x4.gen.cs @@ -944,6 +944,13 @@ public static void double3x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void double3x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new double3x4().Equals((object)new int())); + TestUtils.IsTrue(new double3x4().Equals((object)new double3x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestDouble4.gen.cs b/src/Tests/Tests/Shared/TestDouble4.gen.cs index 8becc8ae..1ec83d7c 100644 --- a/src/Tests/Tests/Shared/TestDouble4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4.gen.cs @@ -1064,6 +1064,13 @@ public static void double4_shuffle_result_4() TestUtils.AreEqual(double4(3, 7, 1, 5), shuffle(a, b, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.LeftY, ShuffleComponent.RightY)); } + [TestCase] + public static void double4_EqualsObjectOverride() + { + TestUtils.IsFalse(new double4().Equals((object)new int())); + TestUtils.IsTrue(new double4().Equals((object)new double4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestDouble4x2.gen.cs b/src/Tests/Tests/Shared/TestDouble4x2.gen.cs index 9a535305..5c64b8ac 100644 --- a/src/Tests/Tests/Shared/TestDouble4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4x2.gen.cs @@ -940,6 +940,13 @@ public static void double4x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void double4x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new double4x2().Equals((object)new int())); + TestUtils.IsTrue(new double4x2().Equals((object)new double4x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestDouble4x3.gen.cs b/src/Tests/Tests/Shared/TestDouble4x3.gen.cs index dc64a27f..b146bab3 100644 --- a/src/Tests/Tests/Shared/TestDouble4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4x3.gen.cs @@ -944,6 +944,13 @@ public static void double4x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void double4x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new double4x3().Equals((object)new int())); + TestUtils.IsTrue(new double4x3().Equals((object)new double4x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestDouble4x4.gen.cs b/src/Tests/Tests/Shared/TestDouble4x4.gen.cs index db214794..abac180a 100644 --- a/src/Tests/Tests/Shared/TestDouble4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4x4.gen.cs @@ -969,6 +969,13 @@ public static void double4x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void double4x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new double4x4().Equals((object)new int())); + TestUtils.IsTrue(new double4x4().Equals((object)new double4x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestFloat2.gen.cs b/src/Tests/Tests/Shared/TestFloat2.gen.cs index 159879c3..cac2a3ea 100644 --- a/src/Tests/Tests/Shared/TestFloat2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2.gen.cs @@ -1050,6 +1050,13 @@ public static void float2_shuffle_result_4() TestUtils.AreEqual(float4(2, 0, 0, 0), shuffle(a, b, ShuffleComponent.RightX, ShuffleComponent.LeftX, ShuffleComponent.LeftX, ShuffleComponent.LeftX)); } + [TestCase] + public static void float2_EqualsObjectOverride() + { + TestUtils.IsFalse(new float2().Equals((object)new int())); + TestUtils.IsTrue(new float2().Equals((object)new float2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestFloat2x2.gen.cs b/src/Tests/Tests/Shared/TestFloat2x2.gen.cs index 92cf959a..c3a18f19 100644 --- a/src/Tests/Tests/Shared/TestFloat2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2x2.gen.cs @@ -945,6 +945,13 @@ public static void float2x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void float2x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new float2x2().Equals((object)new int())); + TestUtils.IsTrue(new float2x2().Equals((object)new float2x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestFloat2x3.gen.cs b/src/Tests/Tests/Shared/TestFloat2x3.gen.cs index 56b46205..5bc914e6 100644 --- a/src/Tests/Tests/Shared/TestFloat2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2x3.gen.cs @@ -938,6 +938,13 @@ public static void float2x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void float2x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new float2x3().Equals((object)new int())); + TestUtils.IsTrue(new float2x3().Equals((object)new float2x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestFloat2x4.gen.cs b/src/Tests/Tests/Shared/TestFloat2x4.gen.cs index 63aecc73..110ab303 100644 --- a/src/Tests/Tests/Shared/TestFloat2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2x4.gen.cs @@ -940,6 +940,13 @@ public static void float2x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void float2x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new float2x4().Equals((object)new int())); + TestUtils.IsTrue(new float2x4().Equals((object)new float2x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestFloat3.gen.cs b/src/Tests/Tests/Shared/TestFloat3.gen.cs index da15dfbc..8a9a1a0b 100644 --- a/src/Tests/Tests/Shared/TestFloat3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3.gen.cs @@ -1057,6 +1057,13 @@ public static void float3_shuffle_result_4() TestUtils.AreEqual(float4(2, 5, 0, 4), shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftX, ShuffleComponent.RightY)); } + [TestCase] + public static void float3_EqualsObjectOverride() + { + TestUtils.IsFalse(new float3().Equals((object)new int())); + TestUtils.IsTrue(new float3().Equals((object)new float3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestFloat3x2.gen.cs b/src/Tests/Tests/Shared/TestFloat3x2.gen.cs index 7ea84b30..05ea64d1 100644 --- a/src/Tests/Tests/Shared/TestFloat3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3x2.gen.cs @@ -938,6 +938,13 @@ public static void float3x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void float3x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new float3x2().Equals((object)new int())); + TestUtils.IsTrue(new float3x2().Equals((object)new float3x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestFloat3x3.gen.cs b/src/Tests/Tests/Shared/TestFloat3x3.gen.cs index 3b22958d..5d9caf1c 100644 --- a/src/Tests/Tests/Shared/TestFloat3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3x3.gen.cs @@ -955,6 +955,13 @@ public static void float3x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void float3x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new float3x3().Equals((object)new int())); + TestUtils.IsTrue(new float3x3().Equals((object)new float3x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestFloat3x4.gen.cs b/src/Tests/Tests/Shared/TestFloat3x4.gen.cs index add2339c..a1f0204f 100644 --- a/src/Tests/Tests/Shared/TestFloat3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3x4.gen.cs @@ -944,6 +944,13 @@ public static void float3x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void float3x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new float3x4().Equals((object)new int())); + TestUtils.IsTrue(new float3x4().Equals((object)new float3x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestFloat4.gen.cs b/src/Tests/Tests/Shared/TestFloat4.gen.cs index 33d2c799..c6ee4bf6 100644 --- a/src/Tests/Tests/Shared/TestFloat4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4.gen.cs @@ -1064,6 +1064,13 @@ public static void float4_shuffle_result_4() TestUtils.AreEqual(float4(3, 7, 1, 5), shuffle(a, b, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.LeftY, ShuffleComponent.RightY)); } + [TestCase] + public static void float4_EqualsObjectOverride() + { + TestUtils.IsFalse(new float4().Equals((object)new int())); + TestUtils.IsTrue(new float4().Equals((object)new float4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestFloat4x2.gen.cs b/src/Tests/Tests/Shared/TestFloat4x2.gen.cs index 087de092..39ef2f86 100644 --- a/src/Tests/Tests/Shared/TestFloat4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4x2.gen.cs @@ -940,6 +940,13 @@ public static void float4x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void float4x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new float4x2().Equals((object)new int())); + TestUtils.IsTrue(new float4x2().Equals((object)new float4x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestFloat4x3.gen.cs b/src/Tests/Tests/Shared/TestFloat4x3.gen.cs index f4f33f76..bdf4402c 100644 --- a/src/Tests/Tests/Shared/TestFloat4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4x3.gen.cs @@ -944,6 +944,13 @@ public static void float4x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void float4x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new float4x3().Equals((object)new int())); + TestUtils.IsTrue(new float4x3().Equals((object)new float4x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestFloat4x4.gen.cs b/src/Tests/Tests/Shared/TestFloat4x4.gen.cs index d7c3ae0f..1dc9a2e4 100644 --- a/src/Tests/Tests/Shared/TestFloat4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4x4.gen.cs @@ -969,6 +969,13 @@ public static void float4x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } + [TestCase] + public static void float4x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new float4x4().Equals((object)new int())); + TestUtils.IsTrue(new float4x4().Equals((object)new float4x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestHalf.cs b/src/Tests/Tests/Shared/TestHalf.cs index a2262a8e..7cd3e330 100644 --- a/src/Tests/Tests/Shared/TestHalf.cs +++ b/src/Tests/Tests/Shared/TestHalf.cs @@ -521,5 +521,33 @@ public static void half4_maxvalue() TestUtils.AreEqual(0x7bff, max.z.value); TestUtils.AreEqual(0x7bff, max.w.value); } + + [TestCase] + public static void half_EqualsObjectOverride() + { + TestUtils.IsFalse(new half().Equals((object) new int())); + TestUtils.IsTrue(new half().Equals((object) new half())); + } + + [TestCase] + public static void half2_EqualsObjectOverride() + { + TestUtils.IsFalse(new half2().Equals((object) new int())); + TestUtils.IsTrue(new half2().Equals((object) new half2())); + } + + [TestCase] + public static void half3_EqualsObjectOverride() + { + TestUtils.IsFalse(new half3().Equals((object) new int())); + TestUtils.IsTrue(new half3().Equals((object) new half3())); + } + + [TestCase] + public static void half4_EqualsObjectOverride() + { + TestUtils.IsFalse(new half4().Equals((object) new int())); + TestUtils.IsTrue(new half4().Equals((object) new half4())); + } } } diff --git a/src/Tests/Tests/Shared/TestInt2.gen.cs b/src/Tests/Tests/Shared/TestInt2.gen.cs index 73cff776..0a3fb248 100644 --- a/src/Tests/Tests/Shared/TestInt2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2.gen.cs @@ -1334,6 +1334,13 @@ public static void int2_shuffle_result_4() TestUtils.AreEqual(int4(2, 0, 0, 0), shuffle(a, b, ShuffleComponent.RightX, ShuffleComponent.LeftX, ShuffleComponent.LeftX, ShuffleComponent.LeftX)); } + [TestCase] + public static void int2_EqualsObjectOverride() + { + TestUtils.IsFalse(new int2().Equals((object)new int())); + TestUtils.IsTrue(new int2().Equals((object)new int2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestInt2x2.gen.cs b/src/Tests/Tests/Shared/TestInt2x2.gen.cs index 7b9f3d94..8e225ff5 100644 --- a/src/Tests/Tests/Shared/TestInt2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2x2.gen.cs @@ -1229,6 +1229,13 @@ public static void int2x2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void int2x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new int2x2().Equals((object)new int())); + TestUtils.IsTrue(new int2x2().Equals((object)new int2x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestInt2x3.gen.cs b/src/Tests/Tests/Shared/TestInt2x3.gen.cs index 7b6abac7..c876a7a7 100644 --- a/src/Tests/Tests/Shared/TestInt2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2x3.gen.cs @@ -1222,6 +1222,13 @@ public static void int2x3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void int2x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new int2x3().Equals((object)new int())); + TestUtils.IsTrue(new int2x3().Equals((object)new int2x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestInt2x4.gen.cs b/src/Tests/Tests/Shared/TestInt2x4.gen.cs index 3c8ed182..281ef525 100644 --- a/src/Tests/Tests/Shared/TestInt2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2x4.gen.cs @@ -1224,6 +1224,13 @@ public static void int2x4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void int2x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new int2x4().Equals((object)new int())); + TestUtils.IsTrue(new int2x4().Equals((object)new int2x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestInt3.gen.cs b/src/Tests/Tests/Shared/TestInt3.gen.cs index d30a56e9..e8bcab87 100644 --- a/src/Tests/Tests/Shared/TestInt3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3.gen.cs @@ -1341,6 +1341,13 @@ public static void int3_shuffle_result_4() TestUtils.AreEqual(int4(2, 5, 0, 4), shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftX, ShuffleComponent.RightY)); } + [TestCase] + public static void int3_EqualsObjectOverride() + { + TestUtils.IsFalse(new int3().Equals((object)new int())); + TestUtils.IsTrue(new int3().Equals((object)new int3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestInt3x2.gen.cs b/src/Tests/Tests/Shared/TestInt3x2.gen.cs index 1af724a5..c9d36991 100644 --- a/src/Tests/Tests/Shared/TestInt3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3x2.gen.cs @@ -1222,6 +1222,13 @@ public static void int3x2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void int3x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new int3x2().Equals((object)new int())); + TestUtils.IsTrue(new int3x2().Equals((object)new int3x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestInt3x3.gen.cs b/src/Tests/Tests/Shared/TestInt3x3.gen.cs index 9511231c..8442d1df 100644 --- a/src/Tests/Tests/Shared/TestInt3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3x3.gen.cs @@ -1239,6 +1239,13 @@ public static void int3x3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void int3x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new int3x3().Equals((object)new int())); + TestUtils.IsTrue(new int3x3().Equals((object)new int3x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestInt3x4.gen.cs b/src/Tests/Tests/Shared/TestInt3x4.gen.cs index 748ab263..f0151852 100644 --- a/src/Tests/Tests/Shared/TestInt3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3x4.gen.cs @@ -1228,6 +1228,13 @@ public static void int3x4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void int3x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new int3x4().Equals((object)new int())); + TestUtils.IsTrue(new int3x4().Equals((object)new int3x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestInt4.gen.cs b/src/Tests/Tests/Shared/TestInt4.gen.cs index f8c9fb75..926a3d46 100644 --- a/src/Tests/Tests/Shared/TestInt4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4.gen.cs @@ -1348,6 +1348,13 @@ public static void int4_shuffle_result_4() TestUtils.AreEqual(int4(3, 7, 1, 5), shuffle(a, b, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.LeftY, ShuffleComponent.RightY)); } + [TestCase] + public static void int4_EqualsObjectOverride() + { + TestUtils.IsFalse(new int4().Equals((object)new int())); + TestUtils.IsTrue(new int4().Equals((object)new int4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestInt4x2.gen.cs b/src/Tests/Tests/Shared/TestInt4x2.gen.cs index 28d7cb0d..fc73ff2f 100644 --- a/src/Tests/Tests/Shared/TestInt4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4x2.gen.cs @@ -1224,6 +1224,13 @@ public static void int4x2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void int4x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new int4x2().Equals((object)new int())); + TestUtils.IsTrue(new int4x2().Equals((object)new int4x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestInt4x3.gen.cs b/src/Tests/Tests/Shared/TestInt4x3.gen.cs index bb469225..58bb3a13 100644 --- a/src/Tests/Tests/Shared/TestInt4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4x3.gen.cs @@ -1228,6 +1228,13 @@ public static void int4x3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void int4x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new int4x3().Equals((object)new int())); + TestUtils.IsTrue(new int4x3().Equals((object)new int4x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestInt4x4.gen.cs b/src/Tests/Tests/Shared/TestInt4x4.gen.cs index 5c8082aa..13d08338 100644 --- a/src/Tests/Tests/Shared/TestInt4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4x4.gen.cs @@ -1253,6 +1253,13 @@ public static void int4x4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void int4x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new int4x4().Equals((object)new int())); + TestUtils.IsTrue(new int4x4().Equals((object)new int4x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestQuaternion.cs b/src/Tests/Tests/Shared/TestQuaternion.cs index 2126cac9..9bd5ebf6 100644 --- a/src/Tests/Tests/Shared/TestQuaternion.cs +++ b/src/Tests/Tests/Shared/TestQuaternion.cs @@ -337,5 +337,12 @@ public static void quaternion_look_rotation_safe() quaternion q2 = quaternion.LookRotationSafe(forward2, up2); TestUtils.AreEqual(quaternion.identity, q2, 0.001f); } + + [TestCase] + public static void quaternion_EqualsObjectOverride() + { + TestUtils.IsFalse(new quaternion().Equals((object) new int())); + TestUtils.IsTrue(new quaternion().Equals((object) new quaternion())); + } } } diff --git a/src/Tests/Tests/Shared/TestRigidTransform.cs b/src/Tests/Tests/Shared/TestRigidTransform.cs index 0a1721c8..ac0d8060 100644 --- a/src/Tests/Tests/Shared/TestRigidTransform.cs +++ b/src/Tests/Tests/Shared/TestRigidTransform.cs @@ -159,5 +159,12 @@ public static void rigid_transform_mul_vector() float4 qvector1 = mul(q, float4(vector, 1)); TestUtils.AreEqual(mvector1, qvector1, 0.0001f); } + + [TestCase] + public static void rigid_transform_EqualsObjectOverride() + { + TestUtils.IsFalse(new RigidTransform().Equals((object) new int())); + TestUtils.IsTrue(new RigidTransform().Equals((object) new RigidTransform())); + } } } diff --git a/src/Tests/Tests/Shared/TestUint2.gen.cs b/src/Tests/Tests/Shared/TestUint2.gen.cs index 7ea68a16..11c09fa2 100644 --- a/src/Tests/Tests/Shared/TestUint2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2.gen.cs @@ -1334,6 +1334,13 @@ public static void uint2_shuffle_result_4() TestUtils.AreEqual(uint4(2, 0, 0, 0), shuffle(a, b, ShuffleComponent.RightX, ShuffleComponent.LeftX, ShuffleComponent.LeftX, ShuffleComponent.LeftX)); } + [TestCase] + public static void uint2_EqualsObjectOverride() + { + TestUtils.IsFalse(new uint2().Equals((object)new int())); + TestUtils.IsTrue(new uint2().Equals((object)new uint2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestUint2x2.gen.cs b/src/Tests/Tests/Shared/TestUint2x2.gen.cs index 8f91da94..53d7d008 100644 --- a/src/Tests/Tests/Shared/TestUint2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2x2.gen.cs @@ -1229,6 +1229,13 @@ public static void uint2x2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void uint2x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new uint2x2().Equals((object)new int())); + TestUtils.IsTrue(new uint2x2().Equals((object)new uint2x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestUint2x3.gen.cs b/src/Tests/Tests/Shared/TestUint2x3.gen.cs index f108f283..ed4ce8e4 100644 --- a/src/Tests/Tests/Shared/TestUint2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2x3.gen.cs @@ -1222,6 +1222,13 @@ public static void uint2x3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void uint2x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new uint2x3().Equals((object)new int())); + TestUtils.IsTrue(new uint2x3().Equals((object)new uint2x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestUint2x4.gen.cs b/src/Tests/Tests/Shared/TestUint2x4.gen.cs index 3cc9a99b..c17978c3 100644 --- a/src/Tests/Tests/Shared/TestUint2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2x4.gen.cs @@ -1224,6 +1224,13 @@ public static void uint2x4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void uint2x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new uint2x4().Equals((object)new int())); + TestUtils.IsTrue(new uint2x4().Equals((object)new uint2x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestUint3.gen.cs b/src/Tests/Tests/Shared/TestUint3.gen.cs index 8b11fc92..d1bd8f32 100644 --- a/src/Tests/Tests/Shared/TestUint3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3.gen.cs @@ -1341,6 +1341,13 @@ public static void uint3_shuffle_result_4() TestUtils.AreEqual(uint4(2, 5, 0, 4), shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftX, ShuffleComponent.RightY)); } + [TestCase] + public static void uint3_EqualsObjectOverride() + { + TestUtils.IsFalse(new uint3().Equals((object)new int())); + TestUtils.IsTrue(new uint3().Equals((object)new uint3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestUint3x2.gen.cs b/src/Tests/Tests/Shared/TestUint3x2.gen.cs index c67a75de..655dfafe 100644 --- a/src/Tests/Tests/Shared/TestUint3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3x2.gen.cs @@ -1222,6 +1222,13 @@ public static void uint3x2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void uint3x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new uint3x2().Equals((object)new int())); + TestUtils.IsTrue(new uint3x2().Equals((object)new uint3x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestUint3x3.gen.cs b/src/Tests/Tests/Shared/TestUint3x3.gen.cs index cf6671be..97c0b837 100644 --- a/src/Tests/Tests/Shared/TestUint3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3x3.gen.cs @@ -1239,6 +1239,13 @@ public static void uint3x3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void uint3x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new uint3x3().Equals((object)new int())); + TestUtils.IsTrue(new uint3x3().Equals((object)new uint3x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestUint3x4.gen.cs b/src/Tests/Tests/Shared/TestUint3x4.gen.cs index 759211bb..e3b5fe1f 100644 --- a/src/Tests/Tests/Shared/TestUint3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3x4.gen.cs @@ -1228,6 +1228,13 @@ public static void uint3x4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void uint3x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new uint3x4().Equals((object)new int())); + TestUtils.IsTrue(new uint3x4().Equals((object)new uint3x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestUint4.gen.cs b/src/Tests/Tests/Shared/TestUint4.gen.cs index 36d21a7b..8fbcf5cf 100644 --- a/src/Tests/Tests/Shared/TestUint4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4.gen.cs @@ -1348,6 +1348,13 @@ public static void uint4_shuffle_result_4() TestUtils.AreEqual(uint4(3, 7, 1, 5), shuffle(a, b, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.LeftY, ShuffleComponent.RightY)); } + [TestCase] + public static void uint4_EqualsObjectOverride() + { + TestUtils.IsFalse(new uint4().Equals((object)new int())); + TestUtils.IsTrue(new uint4().Equals((object)new uint4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestUint4x2.gen.cs b/src/Tests/Tests/Shared/TestUint4x2.gen.cs index e87d329d..0743f6b4 100644 --- a/src/Tests/Tests/Shared/TestUint4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4x2.gen.cs @@ -1224,6 +1224,13 @@ public static void uint4x2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void uint4x2_EqualsObjectOverride() + { + TestUtils.IsFalse(new uint4x2().Equals((object)new int())); + TestUtils.IsTrue(new uint4x2().Equals((object)new uint4x2())); + } + } } diff --git a/src/Tests/Tests/Shared/TestUint4x3.gen.cs b/src/Tests/Tests/Shared/TestUint4x3.gen.cs index 90d94ba5..7e5fe851 100644 --- a/src/Tests/Tests/Shared/TestUint4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4x3.gen.cs @@ -1228,6 +1228,13 @@ public static void uint4x3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void uint4x3_EqualsObjectOverride() + { + TestUtils.IsFalse(new uint4x3().Equals((object)new int())); + TestUtils.IsTrue(new uint4x3().Equals((object)new uint4x3())); + } + } } diff --git a/src/Tests/Tests/Shared/TestUint4x4.gen.cs b/src/Tests/Tests/Shared/TestUint4x4.gen.cs index c190e48a..0feed624 100644 --- a/src/Tests/Tests/Shared/TestUint4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4x4.gen.cs @@ -1253,6 +1253,13 @@ public static void uint4x4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } + [TestCase] + public static void uint4x4_EqualsObjectOverride() + { + TestUtils.IsFalse(new uint4x4().Equals((object)new int())); + TestUtils.IsTrue(new uint4x4().Equals((object)new uint4x4())); + } + } } diff --git a/src/Tests/Tests/Shared/TestUtils.cs b/src/Tests/Tests/Shared/TestUtils.cs index 48de3b4f..f015648c 100644 --- a/src/Tests/Tests/Shared/TestUtils.cs +++ b/src/Tests/Tests/Shared/TestUtils.cs @@ -5,7 +5,6 @@ namespace Unity.Mathematics.Tests { class TestUtils { - public static void AreEqual(bool expected, bool actual) { Assert.AreEqual(expected, actual); diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index 30b74e11..73f14a3d 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -1710,7 +1710,7 @@ void GenerateEquals(StringBuilder str) str.Append("; }\n\n"); str.AppendFormat("\t\t/// Returns true if the {0} is equal to a given {0}, false otherwise.\n", m_TypeName); - str.AppendFormat("\t\tpublic override bool Equals(object o) {{ return Equals(({0})o); }}\n\n", m_TypeName); + str.AppendFormat("\t\tpublic override bool Equals(object o) {{ return o is {0} converted && Equals(converted); }}\n\n", m_TypeName); } void GenerateGetHashCode(StringBuilder str) @@ -1920,10 +1920,17 @@ void GenerateSwizzles(int[] swizzle, StringBuilder str) } // Test Generation - - private void BeginTest(StringBuilder str, string name) + private void BeginTest(StringBuilder str, string name, bool testCompiler = true) { - str.Append("\t\t[TestCompiler]\n"); + if (testCompiler) + { + str.Append("\t\t[TestCompiler]\n"); + } + else + { + str.Append("\t\t[TestCase]\n"); + } + str.AppendFormat("\t\tpublic static void {0}()\n", name); str.Append("\t\t{\n"); } @@ -2951,6 +2958,14 @@ private void GenerateMathTests(StringBuilder str) str.Append("\n}\n"); } + void TestEqualsObjectOverride(StringBuilder str) + { + BeginTest(str, m_TypeName + "_EqualsObjectOverride", false); + str.Append($"\t\t\tTestUtils.IsFalse(new {m_TypeName}().Equals((object)new int()));\n"); + str.Append($"\t\t\tTestUtils.IsTrue(new {m_TypeName}().Equals((object)new {m_TypeName}()));\n"); + EndTest(str); + } + private void GenerateTypeTests(StringBuilder str) { StringBuilder mathStr = new StringBuilder(); @@ -2967,6 +2982,7 @@ private void GenerateTypeTests(StringBuilder str) TestStaticFields(str); TestConstructors(str); TestOperators(str); + TestEqualsObjectOverride(str); str.Append("\n\t}"); str.Append("\n}\n"); diff --git a/src/Unity.Mathematics/bool2.gen.cs b/src/Unity.Mathematics/bool2.gen.cs index c4b45c8c..37703ec0 100644 --- a/src/Unity.Mathematics/bool2.gen.cs +++ b/src/Unity.Mathematics/bool2.gen.cs @@ -384,7 +384,7 @@ unsafe public bool this[int index] public bool Equals(bool2 rhs) { return x == rhs.x && y == rhs.y; } /// Returns true if the bool2 is equal to a given bool2, false otherwise. - public override bool Equals(object o) { return Equals((bool2)o); } + public override bool Equals(object o) { return o is bool2 converted && Equals(converted); } /// Returns a hash code for the bool2. diff --git a/src/Unity.Mathematics/bool2x2.gen.cs b/src/Unity.Mathematics/bool2x2.gen.cs index 477f5bd1..39932544 100644 --- a/src/Unity.Mathematics/bool2x2.gen.cs +++ b/src/Unity.Mathematics/bool2x2.gen.cs @@ -142,7 +142,7 @@ unsafe public ref bool2 this[int index] public bool Equals(bool2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the bool2x2 is equal to a given bool2x2, false otherwise. - public override bool Equals(object o) { return Equals((bool2x2)o); } + public override bool Equals(object o) { return o is bool2x2 converted && Equals(converted); } /// Returns a hash code for the bool2x2. diff --git a/src/Unity.Mathematics/bool2x3.gen.cs b/src/Unity.Mathematics/bool2x3.gen.cs index 5c5054c3..64e10222 100644 --- a/src/Unity.Mathematics/bool2x3.gen.cs +++ b/src/Unity.Mathematics/bool2x3.gen.cs @@ -146,7 +146,7 @@ unsafe public ref bool2 this[int index] public bool Equals(bool2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the bool2x3 is equal to a given bool2x3, false otherwise. - public override bool Equals(object o) { return Equals((bool2x3)o); } + public override bool Equals(object o) { return o is bool2x3 converted && Equals(converted); } /// Returns a hash code for the bool2x3. diff --git a/src/Unity.Mathematics/bool2x4.gen.cs b/src/Unity.Mathematics/bool2x4.gen.cs index 3ce041ca..0f096421 100644 --- a/src/Unity.Mathematics/bool2x4.gen.cs +++ b/src/Unity.Mathematics/bool2x4.gen.cs @@ -150,7 +150,7 @@ unsafe public ref bool2 this[int index] public bool Equals(bool2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the bool2x4 is equal to a given bool2x4, false otherwise. - public override bool Equals(object o) { return Equals((bool2x4)o); } + public override bool Equals(object o) { return o is bool2x4 converted && Equals(converted); } /// Returns a hash code for the bool2x4. diff --git a/src/Unity.Mathematics/bool3.gen.cs b/src/Unity.Mathematics/bool3.gen.cs index 0576bb51..fe63b11f 100644 --- a/src/Unity.Mathematics/bool3.gen.cs +++ b/src/Unity.Mathematics/bool3.gen.cs @@ -1139,7 +1139,7 @@ unsafe public bool this[int index] public bool Equals(bool3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } /// Returns true if the bool3 is equal to a given bool3, false otherwise. - public override bool Equals(object o) { return Equals((bool3)o); } + public override bool Equals(object o) { return o is bool3 converted && Equals(converted); } /// Returns a hash code for the bool3. diff --git a/src/Unity.Mathematics/bool3x2.gen.cs b/src/Unity.Mathematics/bool3x2.gen.cs index 4e28ff8d..1d899414 100644 --- a/src/Unity.Mathematics/bool3x2.gen.cs +++ b/src/Unity.Mathematics/bool3x2.gen.cs @@ -143,7 +143,7 @@ unsafe public ref bool3 this[int index] public bool Equals(bool3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the bool3x2 is equal to a given bool3x2, false otherwise. - public override bool Equals(object o) { return Equals((bool3x2)o); } + public override bool Equals(object o) { return o is bool3x2 converted && Equals(converted); } /// Returns a hash code for the bool3x2. diff --git a/src/Unity.Mathematics/bool3x3.gen.cs b/src/Unity.Mathematics/bool3x3.gen.cs index e7bd69b9..d77fbbb8 100644 --- a/src/Unity.Mathematics/bool3x3.gen.cs +++ b/src/Unity.Mathematics/bool3x3.gen.cs @@ -147,7 +147,7 @@ unsafe public ref bool3 this[int index] public bool Equals(bool3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the bool3x3 is equal to a given bool3x3, false otherwise. - public override bool Equals(object o) { return Equals((bool3x3)o); } + public override bool Equals(object o) { return o is bool3x3 converted && Equals(converted); } /// Returns a hash code for the bool3x3. diff --git a/src/Unity.Mathematics/bool3x4.gen.cs b/src/Unity.Mathematics/bool3x4.gen.cs index 4e30c238..05c7d79e 100644 --- a/src/Unity.Mathematics/bool3x4.gen.cs +++ b/src/Unity.Mathematics/bool3x4.gen.cs @@ -151,7 +151,7 @@ unsafe public ref bool3 this[int index] public bool Equals(bool3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the bool3x4 is equal to a given bool3x4, false otherwise. - public override bool Equals(object o) { return Equals((bool3x4)o); } + public override bool Equals(object o) { return o is bool3x4 converted && Equals(converted); } /// Returns a hash code for the bool3x4. diff --git a/src/Unity.Mathematics/bool4.gen.cs b/src/Unity.Mathematics/bool4.gen.cs index 7b7e5b50..cfa48a39 100644 --- a/src/Unity.Mathematics/bool4.gen.cs +++ b/src/Unity.Mathematics/bool4.gen.cs @@ -3034,7 +3034,7 @@ unsafe public bool this[int index] public bool Equals(bool4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } /// Returns true if the bool4 is equal to a given bool4, false otherwise. - public override bool Equals(object o) { return Equals((bool4)o); } + public override bool Equals(object o) { return o is bool4 converted && Equals(converted); } /// Returns a hash code for the bool4. diff --git a/src/Unity.Mathematics/bool4x2.gen.cs b/src/Unity.Mathematics/bool4x2.gen.cs index 5901d017..d08929c1 100644 --- a/src/Unity.Mathematics/bool4x2.gen.cs +++ b/src/Unity.Mathematics/bool4x2.gen.cs @@ -144,7 +144,7 @@ unsafe public ref bool4 this[int index] public bool Equals(bool4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the bool4x2 is equal to a given bool4x2, false otherwise. - public override bool Equals(object o) { return Equals((bool4x2)o); } + public override bool Equals(object o) { return o is bool4x2 converted && Equals(converted); } /// Returns a hash code for the bool4x2. diff --git a/src/Unity.Mathematics/bool4x3.gen.cs b/src/Unity.Mathematics/bool4x3.gen.cs index b9f55151..b42b5b2b 100644 --- a/src/Unity.Mathematics/bool4x3.gen.cs +++ b/src/Unity.Mathematics/bool4x3.gen.cs @@ -148,7 +148,7 @@ unsafe public ref bool4 this[int index] public bool Equals(bool4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the bool4x3 is equal to a given bool4x3, false otherwise. - public override bool Equals(object o) { return Equals((bool4x3)o); } + public override bool Equals(object o) { return o is bool4x3 converted && Equals(converted); } /// Returns a hash code for the bool4x3. diff --git a/src/Unity.Mathematics/bool4x4.gen.cs b/src/Unity.Mathematics/bool4x4.gen.cs index 5ab020cc..9230e00f 100644 --- a/src/Unity.Mathematics/bool4x4.gen.cs +++ b/src/Unity.Mathematics/bool4x4.gen.cs @@ -152,7 +152,7 @@ unsafe public ref bool4 this[int index] public bool Equals(bool4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the bool4x4 is equal to a given bool4x4, false otherwise. - public override bool Equals(object o) { return Equals((bool4x4)o); } + public override bool Equals(object o) { return o is bool4x4 converted && Equals(converted); } /// Returns a hash code for the bool4x4. diff --git a/src/Unity.Mathematics/double2.gen.cs b/src/Unity.Mathematics/double2.gen.cs index 9ce315ab..1566f3da 100644 --- a/src/Unity.Mathematics/double2.gen.cs +++ b/src/Unity.Mathematics/double2.gen.cs @@ -596,7 +596,7 @@ unsafe public double this[int index] public bool Equals(double2 rhs) { return x == rhs.x && y == rhs.y; } /// Returns true if the double2 is equal to a given double2, false otherwise. - public override bool Equals(object o) { return Equals((double2)o); } + public override bool Equals(object o) { return o is double2 converted && Equals(converted); } /// Returns a hash code for the double2. diff --git a/src/Unity.Mathematics/double2x2.gen.cs b/src/Unity.Mathematics/double2x2.gen.cs index ff698405..44360256 100644 --- a/src/Unity.Mathematics/double2x2.gen.cs +++ b/src/Unity.Mathematics/double2x2.gen.cs @@ -336,7 +336,7 @@ unsafe public ref double2 this[int index] public bool Equals(double2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the double2x2 is equal to a given double2x2, false otherwise. - public override bool Equals(object o) { return Equals((double2x2)o); } + public override bool Equals(object o) { return o is double2x2 converted && Equals(converted); } /// Returns a hash code for the double2x2. diff --git a/src/Unity.Mathematics/double2x3.gen.cs b/src/Unity.Mathematics/double2x3.gen.cs index 94ca998c..f1512833 100644 --- a/src/Unity.Mathematics/double2x3.gen.cs +++ b/src/Unity.Mathematics/double2x3.gen.cs @@ -345,7 +345,7 @@ unsafe public ref double2 this[int index] public bool Equals(double2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the double2x3 is equal to a given double2x3, false otherwise. - public override bool Equals(object o) { return Equals((double2x3)o); } + public override bool Equals(object o) { return o is double2x3 converted && Equals(converted); } /// Returns a hash code for the double2x3. diff --git a/src/Unity.Mathematics/double2x4.gen.cs b/src/Unity.Mathematics/double2x4.gen.cs index 747ccb3c..e9b571ce 100644 --- a/src/Unity.Mathematics/double2x4.gen.cs +++ b/src/Unity.Mathematics/double2x4.gen.cs @@ -357,7 +357,7 @@ unsafe public ref double2 this[int index] public bool Equals(double2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the double2x4 is equal to a given double2x4, false otherwise. - public override bool Equals(object o) { return Equals((double2x4)o); } + public override bool Equals(object o) { return o is double2x4 converted && Equals(converted); } /// Returns a hash code for the double2x4. diff --git a/src/Unity.Mathematics/double3.gen.cs b/src/Unity.Mathematics/double3.gen.cs index d6c56d6d..d7959517 100644 --- a/src/Unity.Mathematics/double3.gen.cs +++ b/src/Unity.Mathematics/double3.gen.cs @@ -1360,7 +1360,7 @@ unsafe public double this[int index] public bool Equals(double3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } /// Returns true if the double3 is equal to a given double3, false otherwise. - public override bool Equals(object o) { return Equals((double3)o); } + public override bool Equals(object o) { return o is double3 converted && Equals(converted); } /// Returns a hash code for the double3. diff --git a/src/Unity.Mathematics/double3x2.gen.cs b/src/Unity.Mathematics/double3x2.gen.cs index 159187d9..080f10e8 100644 --- a/src/Unity.Mathematics/double3x2.gen.cs +++ b/src/Unity.Mathematics/double3x2.gen.cs @@ -334,7 +334,7 @@ unsafe public ref double3 this[int index] public bool Equals(double3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the double3x2 is equal to a given double3x2, false otherwise. - public override bool Equals(object o) { return Equals((double3x2)o); } + public override bool Equals(object o) { return o is double3x2 converted && Equals(converted); } /// Returns a hash code for the double3x2. diff --git a/src/Unity.Mathematics/double3x3.gen.cs b/src/Unity.Mathematics/double3x3.gen.cs index 1d5dee38..68e215e1 100644 --- a/src/Unity.Mathematics/double3x3.gen.cs +++ b/src/Unity.Mathematics/double3x3.gen.cs @@ -349,7 +349,7 @@ unsafe public ref double3 this[int index] public bool Equals(double3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the double3x3 is equal to a given double3x3, false otherwise. - public override bool Equals(object o) { return Equals((double3x3)o); } + public override bool Equals(object o) { return o is double3x3 converted && Equals(converted); } /// Returns a hash code for the double3x3. diff --git a/src/Unity.Mathematics/double3x4.gen.cs b/src/Unity.Mathematics/double3x4.gen.cs index 2162fa67..912a7436 100644 --- a/src/Unity.Mathematics/double3x4.gen.cs +++ b/src/Unity.Mathematics/double3x4.gen.cs @@ -358,7 +358,7 @@ unsafe public ref double3 this[int index] public bool Equals(double3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the double3x4 is equal to a given double3x4, false otherwise. - public override bool Equals(object o) { return Equals((double3x4)o); } + public override bool Equals(object o) { return o is double3x4 converted && Equals(converted); } /// Returns a hash code for the double3x4. diff --git a/src/Unity.Mathematics/double4.gen.cs b/src/Unity.Mathematics/double4.gen.cs index 84491ac3..d3ce15e6 100644 --- a/src/Unity.Mathematics/double4.gen.cs +++ b/src/Unity.Mathematics/double4.gen.cs @@ -3264,7 +3264,7 @@ unsafe public double this[int index] public bool Equals(double4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } /// Returns true if the double4 is equal to a given double4, false otherwise. - public override bool Equals(object o) { return Equals((double4)o); } + public override bool Equals(object o) { return o is double4 converted && Equals(converted); } /// Returns a hash code for the double4. diff --git a/src/Unity.Mathematics/double4x2.gen.cs b/src/Unity.Mathematics/double4x2.gen.cs index 09ba6427..3b827aa0 100644 --- a/src/Unity.Mathematics/double4x2.gen.cs +++ b/src/Unity.Mathematics/double4x2.gen.cs @@ -335,7 +335,7 @@ unsafe public ref double4 this[int index] public bool Equals(double4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the double4x2 is equal to a given double4x2, false otherwise. - public override bool Equals(object o) { return Equals((double4x2)o); } + public override bool Equals(object o) { return o is double4x2 converted && Equals(converted); } /// Returns a hash code for the double4x2. diff --git a/src/Unity.Mathematics/double4x3.gen.cs b/src/Unity.Mathematics/double4x3.gen.cs index 88a680e5..17dedd62 100644 --- a/src/Unity.Mathematics/double4x3.gen.cs +++ b/src/Unity.Mathematics/double4x3.gen.cs @@ -347,7 +347,7 @@ unsafe public ref double4 this[int index] public bool Equals(double4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the double4x3 is equal to a given double4x3, false otherwise. - public override bool Equals(object o) { return Equals((double4x3)o); } + public override bool Equals(object o) { return o is double4x3 converted && Equals(converted); } /// Returns a hash code for the double4x3. diff --git a/src/Unity.Mathematics/double4x4.gen.cs b/src/Unity.Mathematics/double4x4.gen.cs index 6e192ff9..357a6b7d 100644 --- a/src/Unity.Mathematics/double4x4.gen.cs +++ b/src/Unity.Mathematics/double4x4.gen.cs @@ -362,7 +362,7 @@ unsafe public ref double4 this[int index] public bool Equals(double4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the double4x4 is equal to a given double4x4, false otherwise. - public override bool Equals(object o) { return Equals((double4x4)o); } + public override bool Equals(object o) { return o is double4x4 converted && Equals(converted); } /// Returns a hash code for the double4x4. diff --git a/src/Unity.Mathematics/float2.gen.cs b/src/Unity.Mathematics/float2.gen.cs index 58b5bc2b..2dde4d0d 100644 --- a/src/Unity.Mathematics/float2.gen.cs +++ b/src/Unity.Mathematics/float2.gen.cs @@ -596,7 +596,7 @@ unsafe public float this[int index] public bool Equals(float2 rhs) { return x == rhs.x && y == rhs.y; } /// Returns true if the float2 is equal to a given float2, false otherwise. - public override bool Equals(object o) { return Equals((float2)o); } + public override bool Equals(object o) { return o is float2 converted && Equals(converted); } /// Returns a hash code for the float2. diff --git a/src/Unity.Mathematics/float2x2.gen.cs b/src/Unity.Mathematics/float2x2.gen.cs index 9dfecac7..d5adcf45 100644 --- a/src/Unity.Mathematics/float2x2.gen.cs +++ b/src/Unity.Mathematics/float2x2.gen.cs @@ -336,7 +336,7 @@ unsafe public ref float2 this[int index] public bool Equals(float2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the float2x2 is equal to a given float2x2, false otherwise. - public override bool Equals(object o) { return Equals((float2x2)o); } + public override bool Equals(object o) { return o is float2x2 converted && Equals(converted); } /// Returns a hash code for the float2x2. diff --git a/src/Unity.Mathematics/float2x3.gen.cs b/src/Unity.Mathematics/float2x3.gen.cs index a407ff8c..7b77caa6 100644 --- a/src/Unity.Mathematics/float2x3.gen.cs +++ b/src/Unity.Mathematics/float2x3.gen.cs @@ -345,7 +345,7 @@ unsafe public ref float2 this[int index] public bool Equals(float2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the float2x3 is equal to a given float2x3, false otherwise. - public override bool Equals(object o) { return Equals((float2x3)o); } + public override bool Equals(object o) { return o is float2x3 converted && Equals(converted); } /// Returns a hash code for the float2x3. diff --git a/src/Unity.Mathematics/float2x4.gen.cs b/src/Unity.Mathematics/float2x4.gen.cs index f7161c64..4a113146 100644 --- a/src/Unity.Mathematics/float2x4.gen.cs +++ b/src/Unity.Mathematics/float2x4.gen.cs @@ -357,7 +357,7 @@ unsafe public ref float2 this[int index] public bool Equals(float2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the float2x4 is equal to a given float2x4, false otherwise. - public override bool Equals(object o) { return Equals((float2x4)o); } + public override bool Equals(object o) { return o is float2x4 converted && Equals(converted); } /// Returns a hash code for the float2x4. diff --git a/src/Unity.Mathematics/float3.gen.cs b/src/Unity.Mathematics/float3.gen.cs index 31c8a0f2..0abae229 100644 --- a/src/Unity.Mathematics/float3.gen.cs +++ b/src/Unity.Mathematics/float3.gen.cs @@ -1360,7 +1360,7 @@ unsafe public float this[int index] public bool Equals(float3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } /// Returns true if the float3 is equal to a given float3, false otherwise. - public override bool Equals(object o) { return Equals((float3)o); } + public override bool Equals(object o) { return o is float3 converted && Equals(converted); } /// Returns a hash code for the float3. diff --git a/src/Unity.Mathematics/float3x2.gen.cs b/src/Unity.Mathematics/float3x2.gen.cs index 323cd793..ae385ff6 100644 --- a/src/Unity.Mathematics/float3x2.gen.cs +++ b/src/Unity.Mathematics/float3x2.gen.cs @@ -334,7 +334,7 @@ unsafe public ref float3 this[int index] public bool Equals(float3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the float3x2 is equal to a given float3x2, false otherwise. - public override bool Equals(object o) { return Equals((float3x2)o); } + public override bool Equals(object o) { return o is float3x2 converted && Equals(converted); } /// Returns a hash code for the float3x2. diff --git a/src/Unity.Mathematics/float3x3.gen.cs b/src/Unity.Mathematics/float3x3.gen.cs index 22ab1390..27a08d8b 100644 --- a/src/Unity.Mathematics/float3x3.gen.cs +++ b/src/Unity.Mathematics/float3x3.gen.cs @@ -349,7 +349,7 @@ unsafe public ref float3 this[int index] public bool Equals(float3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the float3x3 is equal to a given float3x3, false otherwise. - public override bool Equals(object o) { return Equals((float3x3)o); } + public override bool Equals(object o) { return o is float3x3 converted && Equals(converted); } /// Returns a hash code for the float3x3. diff --git a/src/Unity.Mathematics/float3x4.gen.cs b/src/Unity.Mathematics/float3x4.gen.cs index 0519f777..394f11ef 100644 --- a/src/Unity.Mathematics/float3x4.gen.cs +++ b/src/Unity.Mathematics/float3x4.gen.cs @@ -358,7 +358,7 @@ unsafe public ref float3 this[int index] public bool Equals(float3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the float3x4 is equal to a given float3x4, false otherwise. - public override bool Equals(object o) { return Equals((float3x4)o); } + public override bool Equals(object o) { return o is float3x4 converted && Equals(converted); } /// Returns a hash code for the float3x4. diff --git a/src/Unity.Mathematics/float4.gen.cs b/src/Unity.Mathematics/float4.gen.cs index 673d487e..a5e86de1 100644 --- a/src/Unity.Mathematics/float4.gen.cs +++ b/src/Unity.Mathematics/float4.gen.cs @@ -3264,7 +3264,7 @@ unsafe public float this[int index] public bool Equals(float4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } /// Returns true if the float4 is equal to a given float4, false otherwise. - public override bool Equals(object o) { return Equals((float4)o); } + public override bool Equals(object o) { return o is float4 converted && Equals(converted); } /// Returns a hash code for the float4. diff --git a/src/Unity.Mathematics/float4x2.gen.cs b/src/Unity.Mathematics/float4x2.gen.cs index 4dbcc98f..1c4541b5 100644 --- a/src/Unity.Mathematics/float4x2.gen.cs +++ b/src/Unity.Mathematics/float4x2.gen.cs @@ -335,7 +335,7 @@ unsafe public ref float4 this[int index] public bool Equals(float4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the float4x2 is equal to a given float4x2, false otherwise. - public override bool Equals(object o) { return Equals((float4x2)o); } + public override bool Equals(object o) { return o is float4x2 converted && Equals(converted); } /// Returns a hash code for the float4x2. diff --git a/src/Unity.Mathematics/float4x3.gen.cs b/src/Unity.Mathematics/float4x3.gen.cs index b1465f8b..840b5be1 100644 --- a/src/Unity.Mathematics/float4x3.gen.cs +++ b/src/Unity.Mathematics/float4x3.gen.cs @@ -347,7 +347,7 @@ unsafe public ref float4 this[int index] public bool Equals(float4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the float4x3 is equal to a given float4x3, false otherwise. - public override bool Equals(object o) { return Equals((float4x3)o); } + public override bool Equals(object o) { return o is float4x3 converted && Equals(converted); } /// Returns a hash code for the float4x3. diff --git a/src/Unity.Mathematics/float4x4.gen.cs b/src/Unity.Mathematics/float4x4.gen.cs index 13c25303..3ca89e45 100644 --- a/src/Unity.Mathematics/float4x4.gen.cs +++ b/src/Unity.Mathematics/float4x4.gen.cs @@ -362,7 +362,7 @@ unsafe public ref float4 this[int index] public bool Equals(float4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the float4x4 is equal to a given float4x4, false otherwise. - public override bool Equals(object o) { return Equals((float4x4)o); } + public override bool Equals(object o) { return o is float4x4 converted && Equals(converted); } /// Returns a hash code for the float4x4. diff --git a/src/Unity.Mathematics/half.cs b/src/Unity.Mathematics/half.cs index 66ae35e3..7b6901f9 100644 --- a/src/Unity.Mathematics/half.cs +++ b/src/Unity.Mathematics/half.cs @@ -71,7 +71,7 @@ public half(double v) public bool Equals(half rhs) { return value == rhs.value; } /// Returns true if the half is equal to a given half, false otherwise. - public override bool Equals(object o) { return Equals((half)o); } + public override bool Equals(object o) { return o is half converted && Equals(converted); } /// Returns a hash code for the half. [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/half2.gen.cs b/src/Unity.Mathematics/half2.gen.cs index 99a4e2fd..4b6acd2b 100644 --- a/src/Unity.Mathematics/half2.gen.cs +++ b/src/Unity.Mathematics/half2.gen.cs @@ -387,7 +387,7 @@ unsafe public half this[int index] public bool Equals(half2 rhs) { return x == rhs.x && y == rhs.y; } /// Returns true if the half2 is equal to a given half2, false otherwise. - public override bool Equals(object o) { return Equals((half2)o); } + public override bool Equals(object o) { return o is half2 converted && Equals(converted); } /// Returns a hash code for the half2. diff --git a/src/Unity.Mathematics/half3.gen.cs b/src/Unity.Mathematics/half3.gen.cs index 8ca8b67e..d785a6e3 100644 --- a/src/Unity.Mathematics/half3.gen.cs +++ b/src/Unity.Mathematics/half3.gen.cs @@ -1145,7 +1145,7 @@ unsafe public half this[int index] public bool Equals(half3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } /// Returns true if the half3 is equal to a given half3, false otherwise. - public override bool Equals(object o) { return Equals((half3)o); } + public override bool Equals(object o) { return o is half3 converted && Equals(converted); } /// Returns a hash code for the half3. diff --git a/src/Unity.Mathematics/half4.gen.cs b/src/Unity.Mathematics/half4.gen.cs index aa0441cd..a1e444a2 100644 --- a/src/Unity.Mathematics/half4.gen.cs +++ b/src/Unity.Mathematics/half4.gen.cs @@ -3043,7 +3043,7 @@ unsafe public half this[int index] public bool Equals(half4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } /// Returns true if the half4 is equal to a given half4, false otherwise. - public override bool Equals(object o) { return Equals((half4)o); } + public override bool Equals(object o) { return o is half4 converted && Equals(converted); } /// Returns a hash code for the half4. diff --git a/src/Unity.Mathematics/int2.gen.cs b/src/Unity.Mathematics/int2.gen.cs index 29b00bcc..dbc92219 100644 --- a/src/Unity.Mathematics/int2.gen.cs +++ b/src/Unity.Mathematics/int2.gen.cs @@ -624,7 +624,7 @@ unsafe public int this[int index] public bool Equals(int2 rhs) { return x == rhs.x && y == rhs.y; } /// Returns true if the int2 is equal to a given int2, false otherwise. - public override bool Equals(object o) { return Equals((int2)o); } + public override bool Equals(object o) { return o is int2 converted && Equals(converted); } /// Returns a hash code for the int2. diff --git a/src/Unity.Mathematics/int2x2.gen.cs b/src/Unity.Mathematics/int2x2.gen.cs index 14c3b292..4a365ca2 100644 --- a/src/Unity.Mathematics/int2x2.gen.cs +++ b/src/Unity.Mathematics/int2x2.gen.cs @@ -388,7 +388,7 @@ unsafe public ref int2 this[int index] public bool Equals(int2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the int2x2 is equal to a given int2x2, false otherwise. - public override bool Equals(object o) { return Equals((int2x2)o); } + public override bool Equals(object o) { return o is int2x2 converted && Equals(converted); } /// Returns a hash code for the int2x2. diff --git a/src/Unity.Mathematics/int2x3.gen.cs b/src/Unity.Mathematics/int2x3.gen.cs index ff6322e9..a9cacd8b 100644 --- a/src/Unity.Mathematics/int2x3.gen.cs +++ b/src/Unity.Mathematics/int2x3.gen.cs @@ -397,7 +397,7 @@ unsafe public ref int2 this[int index] public bool Equals(int2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the int2x3 is equal to a given int2x3, false otherwise. - public override bool Equals(object o) { return Equals((int2x3)o); } + public override bool Equals(object o) { return o is int2x3 converted && Equals(converted); } /// Returns a hash code for the int2x3. diff --git a/src/Unity.Mathematics/int2x4.gen.cs b/src/Unity.Mathematics/int2x4.gen.cs index fa11f97f..5ee41ace 100644 --- a/src/Unity.Mathematics/int2x4.gen.cs +++ b/src/Unity.Mathematics/int2x4.gen.cs @@ -409,7 +409,7 @@ unsafe public ref int2 this[int index] public bool Equals(int2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the int2x4 is equal to a given int2x4, false otherwise. - public override bool Equals(object o) { return Equals((int2x4)o); } + public override bool Equals(object o) { return o is int2x4 converted && Equals(converted); } /// Returns a hash code for the int2x4. diff --git a/src/Unity.Mathematics/int3.gen.cs b/src/Unity.Mathematics/int3.gen.cs index bf90e90a..2d7715dc 100644 --- a/src/Unity.Mathematics/int3.gen.cs +++ b/src/Unity.Mathematics/int3.gen.cs @@ -1386,7 +1386,7 @@ unsafe public int this[int index] public bool Equals(int3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } /// Returns true if the int3 is equal to a given int3, false otherwise. - public override bool Equals(object o) { return Equals((int3)o); } + public override bool Equals(object o) { return o is int3 converted && Equals(converted); } /// Returns a hash code for the int3. diff --git a/src/Unity.Mathematics/int3x2.gen.cs b/src/Unity.Mathematics/int3x2.gen.cs index 164123da..6036113c 100644 --- a/src/Unity.Mathematics/int3x2.gen.cs +++ b/src/Unity.Mathematics/int3x2.gen.cs @@ -386,7 +386,7 @@ unsafe public ref int3 this[int index] public bool Equals(int3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the int3x2 is equal to a given int3x2, false otherwise. - public override bool Equals(object o) { return Equals((int3x2)o); } + public override bool Equals(object o) { return o is int3x2 converted && Equals(converted); } /// Returns a hash code for the int3x2. diff --git a/src/Unity.Mathematics/int3x3.gen.cs b/src/Unity.Mathematics/int3x3.gen.cs index 3a685a0c..d5426e99 100644 --- a/src/Unity.Mathematics/int3x3.gen.cs +++ b/src/Unity.Mathematics/int3x3.gen.cs @@ -401,7 +401,7 @@ unsafe public ref int3 this[int index] public bool Equals(int3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the int3x3 is equal to a given int3x3, false otherwise. - public override bool Equals(object o) { return Equals((int3x3)o); } + public override bool Equals(object o) { return o is int3x3 converted && Equals(converted); } /// Returns a hash code for the int3x3. diff --git a/src/Unity.Mathematics/int3x4.gen.cs b/src/Unity.Mathematics/int3x4.gen.cs index 837fa2a8..71953977 100644 --- a/src/Unity.Mathematics/int3x4.gen.cs +++ b/src/Unity.Mathematics/int3x4.gen.cs @@ -410,7 +410,7 @@ unsafe public ref int3 this[int index] public bool Equals(int3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the int3x4 is equal to a given int3x4, false otherwise. - public override bool Equals(object o) { return Equals((int3x4)o); } + public override bool Equals(object o) { return o is int3x4 converted && Equals(converted); } /// Returns a hash code for the int3x4. diff --git a/src/Unity.Mathematics/int4.gen.cs b/src/Unity.Mathematics/int4.gen.cs index 08fea17a..07218a7a 100644 --- a/src/Unity.Mathematics/int4.gen.cs +++ b/src/Unity.Mathematics/int4.gen.cs @@ -3288,7 +3288,7 @@ unsafe public int this[int index] public bool Equals(int4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } /// Returns true if the int4 is equal to a given int4, false otherwise. - public override bool Equals(object o) { return Equals((int4)o); } + public override bool Equals(object o) { return o is int4 converted && Equals(converted); } /// Returns a hash code for the int4. diff --git a/src/Unity.Mathematics/int4x2.gen.cs b/src/Unity.Mathematics/int4x2.gen.cs index fc850b4b..51390127 100644 --- a/src/Unity.Mathematics/int4x2.gen.cs +++ b/src/Unity.Mathematics/int4x2.gen.cs @@ -387,7 +387,7 @@ unsafe public ref int4 this[int index] public bool Equals(int4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the int4x2 is equal to a given int4x2, false otherwise. - public override bool Equals(object o) { return Equals((int4x2)o); } + public override bool Equals(object o) { return o is int4x2 converted && Equals(converted); } /// Returns a hash code for the int4x2. diff --git a/src/Unity.Mathematics/int4x3.gen.cs b/src/Unity.Mathematics/int4x3.gen.cs index 630fce70..c22f21f2 100644 --- a/src/Unity.Mathematics/int4x3.gen.cs +++ b/src/Unity.Mathematics/int4x3.gen.cs @@ -399,7 +399,7 @@ unsafe public ref int4 this[int index] public bool Equals(int4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the int4x3 is equal to a given int4x3, false otherwise. - public override bool Equals(object o) { return Equals((int4x3)o); } + public override bool Equals(object o) { return o is int4x3 converted && Equals(converted); } /// Returns a hash code for the int4x3. diff --git a/src/Unity.Mathematics/int4x4.gen.cs b/src/Unity.Mathematics/int4x4.gen.cs index d621f7af..856197ab 100644 --- a/src/Unity.Mathematics/int4x4.gen.cs +++ b/src/Unity.Mathematics/int4x4.gen.cs @@ -414,7 +414,7 @@ unsafe public ref int4 this[int index] public bool Equals(int4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the int4x4 is equal to a given int4x4, false otherwise. - public override bool Equals(object o) { return Equals((int4x4)o); } + public override bool Equals(object o) { return o is int4x4 converted && Equals(converted); } /// Returns a hash code for the int4x4. diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index 8728c802..882b0533 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -386,7 +386,7 @@ public static quaternion LookRotationSafe(float3 forward, float3 up) /// Returns whether true if the quaternion is equal to a given quaternion, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override bool Equals(object x) { return Equals((quaternion)x); } + public override bool Equals(object x) { return x is quaternion converted && Equals(converted); } /// Returns a hash code for the quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/rigid_transform.cs b/src/Unity.Mathematics/rigid_transform.cs index 9f768670..832a0ad7 100644 --- a/src/Unity.Mathematics/rigid_transform.cs +++ b/src/Unity.Mathematics/rigid_transform.cs @@ -242,7 +242,7 @@ public static RigidTransform Translate(float3 vector) /// Returns true if the RigidTransform is equal to a given RigidTransform, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override bool Equals(object x) { return Equals((RigidTransform)x); } + public override bool Equals(object x) { return x is RigidTransform converted && Equals(converted); } /// Returns a hash code for the RigidTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/uint2.gen.cs b/src/Unity.Mathematics/uint2.gen.cs index 02ae1994..a9f4eda5 100644 --- a/src/Unity.Mathematics/uint2.gen.cs +++ b/src/Unity.Mathematics/uint2.gen.cs @@ -624,7 +624,7 @@ unsafe public uint this[int index] public bool Equals(uint2 rhs) { return x == rhs.x && y == rhs.y; } /// Returns true if the uint2 is equal to a given uint2, false otherwise. - public override bool Equals(object o) { return Equals((uint2)o); } + public override bool Equals(object o) { return o is uint2 converted && Equals(converted); } /// Returns a hash code for the uint2. diff --git a/src/Unity.Mathematics/uint2x2.gen.cs b/src/Unity.Mathematics/uint2x2.gen.cs index 45a3bf14..75ec2c24 100644 --- a/src/Unity.Mathematics/uint2x2.gen.cs +++ b/src/Unity.Mathematics/uint2x2.gen.cs @@ -388,7 +388,7 @@ unsafe public ref uint2 this[int index] public bool Equals(uint2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the uint2x2 is equal to a given uint2x2, false otherwise. - public override bool Equals(object o) { return Equals((uint2x2)o); } + public override bool Equals(object o) { return o is uint2x2 converted && Equals(converted); } /// Returns a hash code for the uint2x2. diff --git a/src/Unity.Mathematics/uint2x3.gen.cs b/src/Unity.Mathematics/uint2x3.gen.cs index b751f139..4198368e 100644 --- a/src/Unity.Mathematics/uint2x3.gen.cs +++ b/src/Unity.Mathematics/uint2x3.gen.cs @@ -397,7 +397,7 @@ unsafe public ref uint2 this[int index] public bool Equals(uint2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the uint2x3 is equal to a given uint2x3, false otherwise. - public override bool Equals(object o) { return Equals((uint2x3)o); } + public override bool Equals(object o) { return o is uint2x3 converted && Equals(converted); } /// Returns a hash code for the uint2x3. diff --git a/src/Unity.Mathematics/uint2x4.gen.cs b/src/Unity.Mathematics/uint2x4.gen.cs index 02acfcc4..c547202d 100644 --- a/src/Unity.Mathematics/uint2x4.gen.cs +++ b/src/Unity.Mathematics/uint2x4.gen.cs @@ -409,7 +409,7 @@ unsafe public ref uint2 this[int index] public bool Equals(uint2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the uint2x4 is equal to a given uint2x4, false otherwise. - public override bool Equals(object o) { return Equals((uint2x4)o); } + public override bool Equals(object o) { return o is uint2x4 converted && Equals(converted); } /// Returns a hash code for the uint2x4. diff --git a/src/Unity.Mathematics/uint3.gen.cs b/src/Unity.Mathematics/uint3.gen.cs index 4480a2e5..80e9cc68 100644 --- a/src/Unity.Mathematics/uint3.gen.cs +++ b/src/Unity.Mathematics/uint3.gen.cs @@ -1386,7 +1386,7 @@ unsafe public uint this[int index] public bool Equals(uint3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } /// Returns true if the uint3 is equal to a given uint3, false otherwise. - public override bool Equals(object o) { return Equals((uint3)o); } + public override bool Equals(object o) { return o is uint3 converted && Equals(converted); } /// Returns a hash code for the uint3. diff --git a/src/Unity.Mathematics/uint3x2.gen.cs b/src/Unity.Mathematics/uint3x2.gen.cs index 618f8d93..8fcfc20f 100644 --- a/src/Unity.Mathematics/uint3x2.gen.cs +++ b/src/Unity.Mathematics/uint3x2.gen.cs @@ -386,7 +386,7 @@ unsafe public ref uint3 this[int index] public bool Equals(uint3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the uint3x2 is equal to a given uint3x2, false otherwise. - public override bool Equals(object o) { return Equals((uint3x2)o); } + public override bool Equals(object o) { return o is uint3x2 converted && Equals(converted); } /// Returns a hash code for the uint3x2. diff --git a/src/Unity.Mathematics/uint3x3.gen.cs b/src/Unity.Mathematics/uint3x3.gen.cs index 11b17e91..4a75ea25 100644 --- a/src/Unity.Mathematics/uint3x3.gen.cs +++ b/src/Unity.Mathematics/uint3x3.gen.cs @@ -401,7 +401,7 @@ unsafe public ref uint3 this[int index] public bool Equals(uint3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the uint3x3 is equal to a given uint3x3, false otherwise. - public override bool Equals(object o) { return Equals((uint3x3)o); } + public override bool Equals(object o) { return o is uint3x3 converted && Equals(converted); } /// Returns a hash code for the uint3x3. diff --git a/src/Unity.Mathematics/uint3x4.gen.cs b/src/Unity.Mathematics/uint3x4.gen.cs index 10ffb7c3..79af8c16 100644 --- a/src/Unity.Mathematics/uint3x4.gen.cs +++ b/src/Unity.Mathematics/uint3x4.gen.cs @@ -410,7 +410,7 @@ unsafe public ref uint3 this[int index] public bool Equals(uint3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the uint3x4 is equal to a given uint3x4, false otherwise. - public override bool Equals(object o) { return Equals((uint3x4)o); } + public override bool Equals(object o) { return o is uint3x4 converted && Equals(converted); } /// Returns a hash code for the uint3x4. diff --git a/src/Unity.Mathematics/uint4.gen.cs b/src/Unity.Mathematics/uint4.gen.cs index 1688e365..e925058a 100644 --- a/src/Unity.Mathematics/uint4.gen.cs +++ b/src/Unity.Mathematics/uint4.gen.cs @@ -3288,7 +3288,7 @@ unsafe public uint this[int index] public bool Equals(uint4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } /// Returns true if the uint4 is equal to a given uint4, false otherwise. - public override bool Equals(object o) { return Equals((uint4)o); } + public override bool Equals(object o) { return o is uint4 converted && Equals(converted); } /// Returns a hash code for the uint4. diff --git a/src/Unity.Mathematics/uint4x2.gen.cs b/src/Unity.Mathematics/uint4x2.gen.cs index c43a4c83..b4acde82 100644 --- a/src/Unity.Mathematics/uint4x2.gen.cs +++ b/src/Unity.Mathematics/uint4x2.gen.cs @@ -387,7 +387,7 @@ unsafe public ref uint4 this[int index] public bool Equals(uint4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the uint4x2 is equal to a given uint4x2, false otherwise. - public override bool Equals(object o) { return Equals((uint4x2)o); } + public override bool Equals(object o) { return o is uint4x2 converted && Equals(converted); } /// Returns a hash code for the uint4x2. diff --git a/src/Unity.Mathematics/uint4x3.gen.cs b/src/Unity.Mathematics/uint4x3.gen.cs index ff5a39b6..33d72765 100644 --- a/src/Unity.Mathematics/uint4x3.gen.cs +++ b/src/Unity.Mathematics/uint4x3.gen.cs @@ -399,7 +399,7 @@ unsafe public ref uint4 this[int index] public bool Equals(uint4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the uint4x3 is equal to a given uint4x3, false otherwise. - public override bool Equals(object o) { return Equals((uint4x3)o); } + public override bool Equals(object o) { return o is uint4x3 converted && Equals(converted); } /// Returns a hash code for the uint4x3. diff --git a/src/Unity.Mathematics/uint4x4.gen.cs b/src/Unity.Mathematics/uint4x4.gen.cs index 6f50ffd9..692154cf 100644 --- a/src/Unity.Mathematics/uint4x4.gen.cs +++ b/src/Unity.Mathematics/uint4x4.gen.cs @@ -414,7 +414,7 @@ unsafe public ref uint4 this[int index] public bool Equals(uint4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the uint4x4 is equal to a given uint4x4, false otherwise. - public override bool Equals(object o) { return Equals((uint4x4)o); } + public override bool Equals(object o) { return o is uint4x4 converted && Equals(converted); } /// Returns a hash code for the uint4x4. From 6f8aaeea623446e7cf2faf155d57c73309560a9a Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Mon, 12 Oct 2020 11:35:13 -0700 Subject: [PATCH 331/437] Fix incorrect tzcnt documentation. (#175) DOTS-2969. --- src/CHANGELOG.md | 1 + src/Unity.Mathematics/math.cs | 117 +++++++++++++++++++++++++++++----- 2 files changed, 103 insertions(+), 15 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 741787b7..18da338a 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -13,6 +13,7 @@ ### Removed ### Fixed * Fixed Equals(object) override which did not check type before casting. This could cause exceptions to be thrown when the object did not match the expected type. +* Fixed incorrect `math.tzcnt` documentation which mentioned leading zero counts instead of trailing zero counts. ### Internal (Not ready for production) diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 452c9fc6..dc0f5799 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -3255,25 +3255,69 @@ public static int lzcnt(ulong x) return offset - (int)(u.longValue >> 52); } - - /// Returns number of trailing zeros in the binary representations of an int value. + /// + /// Computes the trailing zero count in the binary representation of the input value. + /// + /// + /// Assuming that the least significant bit is on the right, the integer value 4 has a binary representation + /// 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the + /// trailing zero count is zero. + /// + /// Input to use when computing the trailing zero count. + /// Returns the trailing zero count of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int tzcnt(int x) { return tzcnt((uint)x); } - /// Returns the componentwise number of leading zeros in the binary representations of an int2 vector. + /// + /// Computes the component-wise trailing zero count in the binary representation of the input value. + /// + /// + /// Assuming that the least significant bit is on the right, the integer value 4 has a binary representation + /// 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the + /// trailing zero count is zero. + /// + /// Input to use when computing the trailing zero count. + /// Returns the component-wise trailing zero count of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 tzcnt(int2 x) { return int2(tzcnt(x.x), tzcnt(x.y)); } - /// Returns the componentwise number of leading zeros in the binary representations of an int3 vector. + /// + /// Computes the component-wise trailing zero count in the binary representation of the input value. + /// + /// + /// Assuming that the least significant bit is on the right, the integer value 4 has a binary representation + /// 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the + /// trailing zero count is zero. + /// + /// Input to use when computing the trailing zero count. + /// Returns the component-wise trailing zero count of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 tzcnt(int3 v) { return int3(tzcnt(v.x), tzcnt(v.y), tzcnt(v.z)); } + public static int3 tzcnt(int3 x) { return int3(tzcnt(x.x), tzcnt(x.y), tzcnt(x.z)); } - /// Returns the componentwise number of leading zeros in the binary representations of an int4 vector. + /// + /// Computes the component-wise trailing zero count in the binary representation of the input value. + /// + /// + /// Assuming that the least significant bit is on the right, the integer value 4 has a binary representation + /// 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the + /// trailing zero count is zero. + /// + /// Input to use when computing the trailing zero count. + /// Returns the component-wise trailing zero count of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 tzcnt(int4 v) { return int4(tzcnt(v.x), tzcnt(v.y), tzcnt(v.z), tzcnt(v.w)); } + public static int4 tzcnt(int4 x) { return int4(tzcnt(x.x), tzcnt(x.y), tzcnt(x.z), tzcnt(x.w)); } - /// Returns number of trailing zeros in the binary representations of a uint value. + /// + /// Computes the trailing zero count in the binary representation of the input value. + /// + /// + /// Assuming that the least significant bit is on the right, the integer value 4 has a binary representation + /// 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the + /// trailing zero count is zero. + /// + /// Input to use when computing the trailing zero count. + /// Returns the trailing zero count of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int tzcnt(uint x) { @@ -3288,25 +3332,68 @@ public static int tzcnt(uint x) return (int)(u.longValue >> 52) - 0x3FF; } - /// Returns the componentwise number of leading zeros in the binary representations of an uint2 vector. + /// + /// Computes the component-wise trailing zero count in the binary representation of the input value. + /// + /// + /// Assuming that the least significant bit is on the right, the integer value 4 has a binary representation + /// 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the + /// trailing zero count is zero. + /// + /// Input to use when computing the trailing zero count. + /// Returns the component-wise trailing zero count of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 tzcnt(uint2 x) { return int2(tzcnt(x.x), tzcnt(x.y)); } - /// Returns the componentwise number of leading zeros in the binary representations of an uint3 vector. + /// + /// Computes the component-wise trailing zero count in the binary representation of the input value. + /// + /// + /// Assuming that the least significant bit is on the right, the integer value 4 has a binary representation + /// 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the + /// trailing zero count is zero. + /// + /// Input to use when computing the trailing zero count. + /// Returns the component-wise trailing zero count of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 tzcnt(uint3 x) { return int3(tzcnt(x.x), tzcnt(x.y), tzcnt(x.z)); } - /// Returns the componentwise number of leading zeros in the binary representations of an uint4 vector. + /// + /// Computes the component-wise trailing zero count in the binary representation of the input value. + /// + /// + /// Assuming that the least significant bit is on the right, the integer value 4 has a binary representation + /// 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the + /// trailing zero count is zero. + /// + /// Input to use when computing the trailing zero count. + /// Returns the component-wise trailing zero count of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 tzcnt(uint4 x) { return int4(tzcnt(x.x), tzcnt(x.y), tzcnt(x.z), tzcnt(x.w)); } - - /// Returns number of trailing zeros in the binary representations of a long value. + /// + /// Computes the trailing zero count in the binary representation of the input value. + /// + /// + /// Assuming that the least significant bit is on the right, the integer value 4 has a binary representation + /// 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the + /// trailing zero count is zero. + /// + /// Input to use when computing the trailing zero count. + /// Returns the trailing zero count of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int tzcnt(long x) { return tzcnt((ulong)x); } - - /// Returns number of trailing zeros in the binary representations of a ulong value. + /// + /// Computes the trailing zero count in the binary representation of the input value. + /// + /// + /// Assuming that the least significant bit is on the right, the integer value 4 has a binary representation + /// 0100 and the trailing zero count is two. The integer value 1 has a binary representation 0001 and the + /// trailing zero count is zero. + /// + /// Input to use when computing the trailing zero count. + /// Returns the trailing zero count of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int tzcnt(ulong x) { From a8f3a3aab067bd26ff1e70a0bd47ecb8ebfbe88e Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 14 Oct 2020 10:33:52 -0700 Subject: [PATCH 332/437] Fix float2x2.Rotate() documentation to use radians. (#179) Closes #178, DOTS-3008. --- src/CHANGELOG.md | 1 + src/Unity.Mathematics/matrix.cs | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 18da338a..4520e94f 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -14,6 +14,7 @@ ### Fixed * Fixed Equals(object) override which did not check type before casting. This could cause exceptions to be thrown when the object did not match the expected type. * Fixed incorrect `math.tzcnt` documentation which mentioned leading zero counts instead of trailing zero counts. +* Fixed `float2x2.Rotate` documentation to mention radians instead of degrees. ### Internal (Not ready for production) diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index 431870bf..af8a42e4 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -5,7 +5,15 @@ namespace Unity.Mathematics { public partial struct float2x2 { - /// Returns a float2x2 matrix representing a counter-clockwise rotation of angle degrees. + /// + /// Computes a float2x2 matrix representing a counter-clockwise rotation by an angle in radians. + /// + /// + /// A positive rotation angle will produce a counter-clockwise rotation and a negative rotation angle will + /// produce a clockwise rotation. + /// + /// Rotation angle in radians. + /// Returns the 2x2 rotation matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 Rotate(float angle) { From 688d7233003dd7bdacb8fece08ffdf5552c7ff2b Mon Sep 17 00:00:00 2001 From: Barbara Wang <68035018+barbara-wang@users.noreply.github.com> Date: Fri, 13 Nov 2020 19:10:40 -0500 Subject: [PATCH 333/437] Add math.sign(x) for integers. (#181) * Add math.sign(x) for integers. * Add code generator to generate tests for math.sign(x) for integers. --- src/CHANGELOG.md | 1 + src/Tests/Tests/Shared/TestMath.gen.cs | 45 +++++++++++++++++++ .../VectorGenerator.cs | 3 ++ src/Unity.Mathematics/math.cs | 17 +++++++ 4 files changed, 66 insertions(+) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 4520e94f..7f0d7db1 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -5,6 +5,7 @@ * Added `[Il2CppEagerStaticClassConstruction]` to Unity.Mathematics types to run static constructors at startup. This improves IL2CPP performance slightly for types that have static constructors. * Added `math.square()` to compute the square (x * x). * Added `math.orthonormal_basis()` to compute an orthonormal basis from a single unit length vector. +* Added `math.sign(x)` for int, int2, int3 and int4. ### Changed * Changed noise documentation in comments to xmldoc comments. diff --git a/src/Tests/Tests/Shared/TestMath.gen.cs b/src/Tests/Tests/Shared/TestMath.gen.cs index 6b4039c1..04115f0f 100644 --- a/src/Tests/Tests/Shared/TestMath.gen.cs +++ b/src/Tests/Tests/Shared/TestMath.gen.cs @@ -1523,6 +1523,51 @@ public static void degrees_double4() TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), degrees(double4(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); } + [TestCompiler] + public static void sign_int() + { + TestUtils.AreEqual(-1, sign(-156)); + TestUtils.AreEqual(-1, sign(-214748346)); + TestUtils.AreEqual(0, sign(0)); + TestUtils.AreEqual(1, sign(214748346)); + TestUtils.AreEqual(1, sign(1537)); + TestUtils.AreEqual(1, sign(17)); + TestUtils.AreEqual(-1, sign(-39)); + TestUtils.AreEqual(0, sign(0)); + TestUtils.AreEqual(-1, sign(-15379)); + TestUtils.AreEqual(1, sign(64583)); + TestUtils.AreEqual(1, sign(2147483647)); + TestUtils.AreEqual(-1, sign(-2147483648)); + } + + [TestCompiler] + public static void sign_int2() + { + TestUtils.AreEqual(int2(-1, -1), sign(int2(-156, -214748346))); + TestUtils.AreEqual(int2(0, 1), sign(int2(0, 214748346))); + TestUtils.AreEqual(int2(1, 1), sign(int2(1537, 17))); + TestUtils.AreEqual(int2(-1, 0), sign(int2(-39, 0))); + TestUtils.AreEqual(int2(-1, 1), sign(int2(-15379, 64583))); + TestUtils.AreEqual(int2(1, -1), sign(int2(2147483647, -2147483648))); + } + + [TestCompiler] + public static void sign_int3() + { + TestUtils.AreEqual(int3(-1, -1, 0), sign(int3(-156, -214748346, 0))); + TestUtils.AreEqual(int3(1, 1, 1), sign(int3(214748346, 1537, 17))); + TestUtils.AreEqual(int3(-1, 0, -1), sign(int3(-39, 0, -15379))); + TestUtils.AreEqual(int3(1, 1, -1), sign(int3(64583, 2147483647, -2147483648))); + } + + [TestCompiler] + public static void sign_int4() + { + TestUtils.AreEqual(int4(-1, -1, 0, 1), sign(int4(-156, -214748346, 0, 214748346))); + TestUtils.AreEqual(int4(1, 1, -1, 0), sign(int4(1537, 17, -39, 0))); + TestUtils.AreEqual(int4(-1, 1, 1, -1), sign(int4(-15379, 64583, 2147483647, -2147483648))); + } + [TestCompiler] public static void sign_float() { diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index 73f14a3d..b5b4537f 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -2686,6 +2686,9 @@ private void GenerateMathTests(StringBuilder str) GenerateComponentWiseTestFloatAndDouble(str, "degrees", new double[,] { { -123.45 }, { 0.0 }, { 123.45 }, { double.NegativeInfinity }, { double.NaN }, { double.PositiveInfinity } }, new double[] { -7073.1639808900125122, 0.0, 7073.1639808900125122, double.NegativeInfinity, double.NaN, double.PositiveInfinity}, 1, 1); + GenerateComponentWiseTest(str, "sign", new int[,] { { -156 }, { -214748346 }, { 0 }, { 214748346 }, { 1537 }, { 17 }, { -39 }, { 0 }, { -15379 }, { 64583 }, { int.MaxValue }, { int.MinValue } }, + new int[] { -1, -1, 0, 1, 1, 1, -1, 0, -1, 1, 1, -1 }, 4); + GenerateComponentWiseTestFloatAndDouble(str, "sign",new double[,] { { -123.45 }, { -1e-20 }, { 0.0 }, { 1e-10 }, { 123.45 }, { double.NegativeInfinity }, { double.NaN }, { double.PositiveInfinity } }, new double[] { -1.0, -1.0, 0.0, 1.0, 1.0, -1.0, 0.0, 1.0 }); diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index dc0f5799..bb1d4f97 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -1669,6 +1669,23 @@ public static bool4 ispow2(uint4 x) public static double4 rcp(double4 x) { return 1.0 / x; } + /// Returns the sign of a int value. -1 if it is less than zero, 0 if it is zero and 1 if it greater than zero. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int sign(int x) { return (x > 0 ? 1 : 0) - (x < 0 ? 1 : 0); } + + /// Returns the componentwise sign of a int2 value. 1 for positive components, 0 for zero components and -1 for negative components. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int2 sign(int2 x) { return new int2(sign(x.x), sign(x.y)); } + + /// Returns the componentwise sign of a int3 value. 1 for positive components, 0 for zero components and -1 for negative components. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 sign(int3 x) { return new int3(sign(x.x), sign(x.y), sign(x.z)); } + + /// Returns the componentwise sign of a int4 value. 1 for positive components, 0 for zero components and -1 for negative components. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 sign(int4 x) { return new int4(sign(x.x), sign(x.y), sign(x.z), sign(x.w)); } + + /// Returns the sign of a float value. -1.0f if it is less than zero, 0.0f if it is zero and 1.0f if it greater than zero. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float sign(float x) { return (x > 0.0f ? 1.0f : 0.0f) - (x < 0.0f ? 1.0f : 0.0f); } From cfd8bfdf8fa3dce9fa7a905fb27ec0e9e04812a1 Mon Sep 17 00:00:00 2001 From: Bogdan Corciova Date: Fri, 15 Jan 2021 12:19:18 -0500 Subject: [PATCH 334/437] Fixed the floatX property drawer to support fields inside polymorphic objects --- src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs b/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs index 4e3913e1..e6688c3f 100644 --- a/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs +++ b/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs @@ -42,7 +42,15 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten { var subLabels = Content.labels4; var startIter = "x"; - switch (property.type[property.type.Length - 1]) + var propertyType = property.type; + var isManagedRef = property.type.StartsWith("managedReference", StringComparison.Ordinal); + if (isManagedRef) + { + var startIndex = "managedReference<".Length; + var length = propertyType.Length - startIndex - 1; + propertyType = propertyType.Substring("managedReference<".Length, length); + } + switch (propertyType[propertyType.Length - 1]) { case '2': subLabels = Content.labels2; From b0d4bfb2d28e73a874ea9b4204369475dabe8106 Mon Sep 17 00:00:00 2001 From: Bogdan Corciova Date: Fri, 15 Jan 2021 14:53:29 -0500 Subject: [PATCH 335/437] Cache the property type to avoid GC allocations --- .../PrimitiveVectorDrawer.cs | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs b/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs index e6688c3f..d84d81f9 100644 --- a/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs +++ b/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs @@ -12,6 +12,25 @@ namespace Unity.Mathematics.Editor [CustomPropertyDrawer(typeof(DoNotNormalizeAttribute))] class PrimitiveVectorDrawer : PropertyDrawer { + private string _PropertyType; + + string GetPropertyType(SerializedProperty property) + { + if (_PropertyType == null) + { + _PropertyType = property.type; + var isManagedRef = property.type.StartsWith("managedReference", StringComparison.Ordinal); + if (isManagedRef) + { + var startIndex = "managedReference<".Length; + var length = _PropertyType.Length - startIndex - 1; + _PropertyType = _PropertyType.Substring("managedReference<".Length, length); + } + } + + return _PropertyType; + } + static class Content { public static readonly string doNotNormalizeCompatibility = L10n.Tr( @@ -42,14 +61,7 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten { var subLabels = Content.labels4; var startIter = "x"; - var propertyType = property.type; - var isManagedRef = property.type.StartsWith("managedReference", StringComparison.Ordinal); - if (isManagedRef) - { - var startIndex = "managedReference<".Length; - var length = propertyType.Length - startIndex - 1; - propertyType = propertyType.Substring("managedReference<".Length, length); - } + var propertyType = GetPropertyType(property); switch (propertyType[propertyType.Length - 1]) { case '2': From f57ff12cf7e0b08903b083891af3eebbc967bafd Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Fri, 22 Jan 2021 15:50:17 -0800 Subject: [PATCH 336/437] Adding DOTS partner branch to CI mix. (#187) --- .yamato/upm-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index f457636e..ccc24ddf 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -30,6 +30,7 @@ editor_versions: - version: "2018.4" - version: "2019.2" - version: "2019.3" + - version: "2020.2/partner/staging" - version: "trunk" --- From ab4ebbebc1411ab5b9ba9a2969881c76ee59acab Mon Sep 17 00:00:00 2001 From: Henrik Kjellander Date: Mon, 25 Jan 2021 16:44:03 +0100 Subject: [PATCH 337/437] Fix archiving problem due to 2020.2/partner/staging branch (#188) --- .yamato/expectations/upm-ci.unfolded.yaml | 349 ---------------------- .yamato/upm-ci.yml | 15 +- 2 files changed, 10 insertions(+), 354 deletions(-) delete mode 100644 .yamato/expectations/upm-ci.unfolded.yaml diff --git a/.yamato/expectations/upm-ci.unfolded.yaml b/.yamato/expectations/upm-ci.unfolded.yaml deleted file mode 100644 index f2f363aa..00000000 --- a/.yamato/expectations/upm-ci.unfolded.yaml +++ /dev/null @@ -1,349 +0,0 @@ - -commit_ci: - name: all CI pipeline - dependencies: - - .yamato/upm-ci.yml#validate_package_minimal - triggers: - branches: - only: - - /.*/ -nightly_ci: - name: all Nightly Pipeline - dependencies: - - .yamato/upm-ci.yml#validate_package_windows_2018.4 - - .yamato/upm-ci.yml#validate_package_windows_2019.2 - - .yamato/upm-ci.yml#validate_package_windows_2019.3 - - .yamato/upm-ci.yml#validate_package_windows_trunk - - .yamato/upm-ci.yml#validate_package_linux_2018.4 - - .yamato/upm-ci.yml#validate_package_linux_2019.2 - - .yamato/upm-ci.yml#validate_package_linux_2019.3 - - .yamato/upm-ci.yml#validate_package_linux_trunk - - .yamato/upm-ci.yml#validate_package_macOS_2018.4 - - .yamato/upm-ci.yml#validate_package_macOS_2019.2 - - .yamato/upm-ci.yml#validate_package_macOS_2019.3 - - .yamato/upm-ci.yml#validate_package_macOS_trunk - triggers: - recurring: - - branch: master - frequency: daily -promote: - name: Promote - agent: - flavor: b1.large - image: package-ci/win10:stable - type: Unity::VM - artifacts: - packages: - paths: - - upm-ci~/packages/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package promote --package-path src/ - dependencies: - - .yamato/upm-ci.yml#publish - variables: - UPMCI_PROMOTION: 1 -publish: - name: Publish - agent: - flavor: b1.large - image: package-ci/win10:stable - type: Unity::VM - artifacts: - packages: - paths: - - upm-ci~/packages/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package publish --package-path src/ - dependencies: - - .yamato/upm-ci.yml#validate_package_minimal -publish_ci: - name: all Publish Pipeline - dependencies: - - .yamato/upm-ci.yml#publish - triggers: - tags: - only: - - /^\d+\.\d+\.\d+(-preview(\.\d+)?)?$/ -run_tests_on_mono_macOS: - name: Tests NUnit on macOS - agent: - flavor: b1.large - image: burst/burst_mac:stable - type: Unity::VM::osx - commands: - - nuget restore src - - msbuild src/Unity.Mathematics.sln - - mono src/packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe src/Tests/bin/Debug/Unity.Mathematics.Tests.dll --process=single -run_tests_on_mono_windows: - name: Tests NUnit on windows - agent: - flavor: b1.large - image: sdet/burst-devimage:stable - type: Unity::VM - commands: - - choco install nuget.commandline - - nuget restore src - - msbuild src/Unity.Mathematics.sln - - mono src/packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe src/Tests/bin/Debug/Unity.Mathematics.Tests.dll --process=single -validate_package_linux_2018.4: - name: Validate package linux 2018.4 - agent: - flavor: b1.large - image: package-ci/ubuntu:stable - type: Unity::VM - artifacts: - packages_linux_2018.4: - paths: - - upm-ci~/packages/**/* - results_linux_2018.4: - paths: - - upm-ci~/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version 2018.4 - dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono_windows - - .yamato/upm-ci.yml#run_tests_on_mono_macOS -validate_package_linux_2019.2: - name: Validate package linux 2019.2 - agent: - flavor: b1.large - image: package-ci/ubuntu:stable - type: Unity::VM - artifacts: - packages_linux_2019.2: - paths: - - upm-ci~/packages/**/* - results_linux_2019.2: - paths: - - upm-ci~/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version 2019.2 - dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono_windows - - .yamato/upm-ci.yml#run_tests_on_mono_macOS -validate_package_linux_2019.3: - name: Validate package linux 2019.3 - agent: - flavor: b1.large - image: package-ci/ubuntu:stable - type: Unity::VM - artifacts: - packages_linux_2019.3: - paths: - - upm-ci~/packages/**/* - results_linux_2019.3: - paths: - - upm-ci~/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version 2019.3 - dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono_windows - - .yamato/upm-ci.yml#run_tests_on_mono_macOS -validate_package_linux_trunk: - name: Validate package linux trunk - agent: - flavor: b1.large - image: package-ci/ubuntu:stable - type: Unity::VM - artifacts: - packages_linux_trunk: - paths: - - upm-ci~/packages/**/* - results_linux_trunk: - paths: - - upm-ci~/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version trunk - dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono_windows - - .yamato/upm-ci.yml#run_tests_on_mono_macOS -validate_package_macOS_2018.4: - name: Validate package macOS 2018.4 - agent: - flavor: b1.large - image: package-ci/mac:stable - type: Unity::VM::osx - artifacts: - packages_macOS_2018.4: - paths: - - upm-ci~/packages/**/* - results_macOS_2018.4: - paths: - - upm-ci~/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version 2018.4 - dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono_windows - - .yamato/upm-ci.yml#run_tests_on_mono_macOS -validate_package_macOS_2019.2: - name: Validate package macOS 2019.2 - agent: - flavor: b1.large - image: package-ci/mac:stable - type: Unity::VM::osx - artifacts: - packages_macOS_2019.2: - paths: - - upm-ci~/packages/**/* - results_macOS_2019.2: - paths: - - upm-ci~/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version 2019.2 - dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono_windows - - .yamato/upm-ci.yml#run_tests_on_mono_macOS -validate_package_macOS_2019.3: - name: Validate package macOS 2019.3 - agent: - flavor: b1.large - image: package-ci/mac:stable - type: Unity::VM::osx - artifacts: - packages_macOS_2019.3: - paths: - - upm-ci~/packages/**/* - results_macOS_2019.3: - paths: - - upm-ci~/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version 2019.3 - dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono_windows - - .yamato/upm-ci.yml#run_tests_on_mono_macOS -validate_package_macOS_trunk: - name: Validate package macOS trunk - agent: - flavor: b1.large - image: package-ci/mac:stable - type: Unity::VM::osx - artifacts: - packages_macOS_trunk: - paths: - - upm-ci~/packages/**/* - results_macOS_trunk: - paths: - - upm-ci~/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version trunk - dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono_windows - - .yamato/upm-ci.yml#run_tests_on_mono_macOS -validate_package_minimal: - name: Validate Package Linux Minimal - agent: - flavor: b1.large - image: package-ci/ubuntu:stable - type: Unity::VM - artifacts: - packages: - paths: - - upm-ci~/packages/**/* - test_results: - paths: - - upm-ci~/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version 2019.1 - dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono_windows - - .yamato/upm-ci.yml#run_tests_on_mono_macOS -validate_package_windows_2018.4: - name: Validate package windows 2018.4 - agent: - flavor: b1.large - image: package-ci/win10:stable - type: Unity::VM - artifacts: - packages_windows_2018.4: - paths: - - upm-ci~/packages/**/* - results_windows_2018.4: - paths: - - upm-ci~/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version 2018.4 - dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono_windows - - .yamato/upm-ci.yml#run_tests_on_mono_macOS -validate_package_windows_2019.2: - name: Validate package windows 2019.2 - agent: - flavor: b1.large - image: package-ci/win10:stable - type: Unity::VM - artifacts: - packages_windows_2019.2: - paths: - - upm-ci~/packages/**/* - results_windows_2019.2: - paths: - - upm-ci~/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version 2019.2 - dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono_windows - - .yamato/upm-ci.yml#run_tests_on_mono_macOS -validate_package_windows_2019.3: - name: Validate package windows 2019.3 - agent: - flavor: b1.large - image: package-ci/win10:stable - type: Unity::VM - artifacts: - packages_windows_2019.3: - paths: - - upm-ci~/packages/**/* - results_windows_2019.3: - paths: - - upm-ci~/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version 2019.3 - dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono_windows - - .yamato/upm-ci.yml#run_tests_on_mono_macOS -validate_package_windows_trunk: - name: Validate package windows trunk - agent: - flavor: b1.large - image: package-ci/win10:stable - type: Unity::VM - artifacts: - packages_windows_trunk: - paths: - - upm-ci~/packages/**/* - results_windows_trunk: - paths: - - upm-ci~/**/* - commands: - - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version trunk - dependencies: - - .yamato/upm-ci.yml#run_tests_on_mono_windows - - .yamato/upm-ci.yml#run_tests_on_mono_macOS diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index ccc24ddf..ee8ad143 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -28,10 +28,15 @@ upmci_platforms: editor_versions: - version: "2018.4" + display_name: "2018.4" - version: "2019.2" + display_name: "2019.2" - version: "2019.3" + display_name: "2019.3" - version: "2020.2/partner/staging" + display_name: "2020.2_partner_staging" - version: "trunk" + display_name: "trunk" --- {% for platform in build_platforms %} @@ -78,8 +83,8 @@ validate_package_minimal: {% for platform in upmci_platforms %} {% for editor in editor_versions %} -validate_package_{{platform.name}}_{{editor.version}}: - name: Validate package {{platform.name}} {{editor.version}} +validate_package_{{platform.name}}_{{editor.display_name}}: + name: Validate package {{platform.name}} {{editor.display_name}} agent: image: {{platform.image}} type: {{platform.type}} @@ -89,10 +94,10 @@ validate_package_{{platform.name}}_{{editor.version}}: - upm-ci package pack --package-path src/ - upm-ci package test --package-path src/ --unity-version {{ editor.version }} artifacts: - packages_{{platform.name}}_{{editor.version}}: + packages_{{platform.name}}_{{editor.display_name}}: paths: - "upm-ci~/packages/**/*" - results_{{platform.name}}_{{editor.version}}: + results_{{platform.name}}_{{editor.display_name}}: paths: - "upm-ci~/**/*" dependencies: @@ -159,7 +164,7 @@ nightly_ci: dependencies: {% for platform in build_platforms %} {% for editor in editor_versions %} - - .yamato/upm-ci.yml#validate_package_{{platform.name}}_{{editor.version}} + - .yamato/upm-ci.yml#validate_package_{{platform.name}}_{{editor.display_name}} {% endfor %} {% endfor %} From 7da8f190d976ab687187eaeb3d42408e7f606667 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Mon, 8 Feb 2021 11:00:05 -0800 Subject: [PATCH 338/437] Update documentation to fix validation errors (#189) DOTS-3656 fix documentation warnings and errors to keep the package publishable. --- src/Documentation~/filter.yml | 6 + .../VectorGenerator.cs | 249 +- src/Unity.Mathematics.Shaders/hlsl.cs | 39 +- ...ppEagerStaticClassConstructionAttribute.cs | 4 + src/Unity.Mathematics/Noise/common.cs | 3 + src/Unity.Mathematics/PropertyAttributes.cs | 6 + src/Unity.Mathematics/bool2.gen.cs | 151 +- src/Unity.Mathematics/bool2x2.gen.cs | 85 +- src/Unity.Mathematics/bool2x3.gen.cs | 92 +- src/Unity.Mathematics/bool2x4.gen.cs | 99 +- src/Unity.Mathematics/bool3.gen.cs | 253 ++- src/Unity.Mathematics/bool3x2.gen.cs | 89 +- src/Unity.Mathematics/bool3x3.gen.cs | 98 +- src/Unity.Mathematics/bool3x4.gen.cs | 107 +- src/Unity.Mathematics/bool4.gen.cs | 501 +++- src/Unity.Mathematics/bool4x2.gen.cs | 93 +- src/Unity.Mathematics/bool4x3.gen.cs | 104 +- src/Unity.Mathematics/bool4x4.gen.cs | 115 +- src/Unity.Mathematics/double2.gen.cs | 264 ++- src/Unity.Mathematics/double2x2.gen.cs | 192 +- src/Unity.Mathematics/double2x3.gen.cs | 195 +- src/Unity.Mathematics/double2x4.gen.cs | 202 +- src/Unity.Mathematics/double3.gen.cs | 366 ++- src/Unity.Mathematics/double3x2.gen.cs | 192 +- src/Unity.Mathematics/double3x3.gen.cs | 205 +- src/Unity.Mathematics/double3x4.gen.cs | 214 +- src/Unity.Mathematics/double4.gen.cs | 614 ++++- src/Unity.Mathematics/double4x2.gen.cs | 196 +- src/Unity.Mathematics/double4x3.gen.cs | 207 +- src/Unity.Mathematics/double4x4.gen.cs | 232 +- src/Unity.Mathematics/float2.gen.cs | 264 ++- src/Unity.Mathematics/float2x2.gen.cs | 192 +- src/Unity.Mathematics/float2x3.gen.cs | 195 +- src/Unity.Mathematics/float2x4.gen.cs | 202 +- src/Unity.Mathematics/float3.gen.cs | 366 ++- src/Unity.Mathematics/float3x2.gen.cs | 192 +- src/Unity.Mathematics/float3x3.gen.cs | 205 +- src/Unity.Mathematics/float3x4.gen.cs | 214 +- src/Unity.Mathematics/float4.gen.cs | 614 ++++- src/Unity.Mathematics/float4x2.gen.cs | 196 +- src/Unity.Mathematics/float4x3.gen.cs | 207 +- src/Unity.Mathematics/float4x4.gen.cs | 232 +- src/Unity.Mathematics/half.cs | 60 +- src/Unity.Mathematics/half2.gen.cs | 95 + src/Unity.Mathematics/half3.gen.cs | 197 ++ src/Unity.Mathematics/half4.gen.cs | 445 ++++ src/Unity.Mathematics/int2.gen.cs | 293 ++- src/Unity.Mathematics/int2x2.gen.cs | 225 +- src/Unity.Mathematics/int2x3.gen.cs | 230 +- src/Unity.Mathematics/int2x4.gen.cs | 237 +- src/Unity.Mathematics/int3.gen.cs | 391 +++- src/Unity.Mathematics/int3x2.gen.cs | 227 +- src/Unity.Mathematics/int3x3.gen.cs | 238 +- src/Unity.Mathematics/int3x4.gen.cs | 245 +- src/Unity.Mathematics/int4.gen.cs | 639 +++++- src/Unity.Mathematics/int4x2.gen.cs | 231 +- src/Unity.Mathematics/int4x3.gen.cs | 242 +- src/Unity.Mathematics/int4x4.gen.cs | 255 ++- src/Unity.Mathematics/math.cs | 2012 ++++++++++++++++- .../math_unity_conversion.cs | 55 + src/Unity.Mathematics/matrix.cs | 122 +- src/Unity.Mathematics/matrix.gen.cs | 588 +++++ src/Unity.Mathematics/quaternion.cs | 117 + src/Unity.Mathematics/random.cs | 110 + src/Unity.Mathematics/rigid_transform.cs | 82 +- src/Unity.Mathematics/uint2.gen.cs | 293 ++- src/Unity.Mathematics/uint2x2.gen.cs | 223 +- src/Unity.Mathematics/uint2x3.gen.cs | 230 +- src/Unity.Mathematics/uint2x4.gen.cs | 237 +- src/Unity.Mathematics/uint3.gen.cs | 391 +++- src/Unity.Mathematics/uint3x2.gen.cs | 227 +- src/Unity.Mathematics/uint3x3.gen.cs | 236 +- src/Unity.Mathematics/uint3x4.gen.cs | 245 +- src/Unity.Mathematics/uint4.gen.cs | 639 +++++- src/Unity.Mathematics/uint4x2.gen.cs | 231 +- src/Unity.Mathematics/uint4x3.gen.cs | 242 +- src/Unity.Mathematics/uint4x4.gen.cs | 253 ++- 77 files changed, 18595 insertions(+), 440 deletions(-) diff --git a/src/Documentation~/filter.yml b/src/Documentation~/filter.yml index 5c6a86ea..a101da86 100644 --- a/src/Documentation~/filter.yml +++ b/src/Documentation~/filter.yml @@ -5,3 +5,9 @@ apiRules: - exclude: uidRegex: ^Unity\..*\.Tests\..*$ type: Namespace + - exclude: + uidRegex: Unity\.Mathematics\.Shaders$ + type: Namespace + - exclude: + uidRegex: Unity\.IL2CPP\.CompilerServices$ + type: Namespace \ No newline at end of file diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index b5b4537f..95d8dfc2 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -282,12 +282,16 @@ private void GenerateMemberVariables(StringBuilder str) { string columnType = ToTypeName(m_BaseType, m_Rows, 1); for (int i = 0; i < m_Columns; i++) + { + str.AppendFormat($"\t\t/// Column {i} of the matrix.\n"); str.AppendFormat("\t\tpublic {0} {1};\n", columnType, matrixFields[i]); + } } else { for (int i = 0; i < m_Rows; i++) { + str.AppendFormat($"\t\t/// {vectorFields[i]} component of the vector.\n"); if (m_Columns == 1 && m_BaseType == "bool") str.Append("\t\t[MarshalAs(UnmanagedType.U1)]\n"); str.AppendFormat("\t\tpublic {0} {1};\n", m_BaseType, vectorFields[i]); @@ -367,14 +371,24 @@ private void GenerateConversion(StringBuilder str, StringBuilder opStr, StringBu if(sourceBaseType != m_BaseType) { str.AppendFormat("\t\t/// Constructs a {0} {1} from a single {2} value by converting it to {3} and assigning it to every component.\n", m_TypeName, dstTypeCategory, sourceType, m_BaseType); + str.AppendFormat($"\t\t/// {sourceType} to convert to {m_TypeName}\n"); + mathStr.AppendFormat("\t\t/// Returns a {0} {1} constructed from a single {2} value by converting it to {3} and assigning it to every component.\n", m_TypeName, dstTypeCategory, sourceType, m_BaseType); + mathStr.AppendFormat($"\t\t/// {sourceType} to convert to {m_TypeName}\n"); + opStr.AppendFormat("\t\t/// {0} converts a single {1} value to a {2} {3} by converting it to {4} and assigning it to every component.\n", plicitlyString, sourceType, m_TypeName, dstTypeCategory, m_BaseType); + opStr.AppendFormat($"\t\t/// {sourceType} to convert to {m_TypeName}\n"); } else { str.AppendFormat("\t\t/// Constructs a {0} {1} from a single {2} value by assigning it to every component.\n", m_TypeName, dstTypeCategory, sourceType); + str.AppendFormat($"\t\t/// {sourceType} to convert to {m_TypeName}\n"); + mathStr.AppendFormat("\t\t/// Returns a {0} {1} constructed from a single {2} value by assigning it to every component.\n", m_TypeName, dstTypeCategory, sourceType); + mathStr.AppendFormat($"\t\t/// {sourceType} to convert to {m_TypeName}\n"); + opStr.AppendFormat("\t\t/// {0} converts a single {1} value to a {2} {3} by assigning it to every component.\n", plicitlyString, sourceType, m_TypeName, dstTypeCategory); + opStr.AppendFormat($"\t\t/// {sourceType} to convert to {m_TypeName}\n"); } } else @@ -382,8 +396,13 @@ private void GenerateConversion(StringBuilder str, StringBuilder opStr, StringBu if (sourceBaseType != m_BaseType) { str.AppendFormat("\t\t/// Constructs a {0} {1} from a {2} {1} by componentwise conversion.\n", m_TypeName, dstTypeCategory, sourceType); + str.AppendFormat($"\t\t/// {sourceType} to convert to {m_TypeName}\n"); + mathStr.AppendFormat("\t\t/// Return a {0} {1} constructed from a {2} {1} by componentwise conversion.\n", m_TypeName, dstTypeCategory, sourceType); + mathStr.AppendFormat($"\t\t/// {sourceType} to convert to {m_TypeName}\n"); + opStr.AppendFormat("\t\t/// {0} converts a {1} {2} to a {3} {2} by componentwise conversion.\n", plicitlyString, sourceType, dstTypeCategory, m_TypeName); + opStr.AppendFormat($"\t\t/// {sourceType} to convert to {m_TypeName}\n"); } } @@ -414,9 +433,11 @@ private void GenerateConversion(StringBuilder str, StringBuilder opStr, StringBu } str.Append("\t\t}\n\n"); + mathStr.Append("\t\t/// Converted value.\n"); mathStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); mathStr.AppendFormat("\t\tpublic static {0} {0}({1} v) {{ return new {0}(v); }}\n\n", m_TypeName, sourceType); + opStr.Append("\t\t/// Converted value.\n"); opStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); opStr.AppendFormat("\t\tpublic static {0} operator {1}({2} v) {{ return new {1}(v); }}\n\n", isExplicit ? "explicit" : "implicit", m_TypeName, sourceType); } @@ -512,6 +533,15 @@ private void GenerateTypeImplementation(StringBuilder str) str.Append("namespace Unity.Mathematics\n"); str.Append("{\n"); + if (m_Columns > 1) + { + str.Append($"\t/// A {m_Rows}x{m_Columns} matrix of {m_BaseType}s.\n"); + } + else + { + str.Append($"\t/// A {m_Rows} component vector of {m_BaseType}s.\n"); + } + if (m_Columns == 1) str.AppendFormat("\t[DebuggerTypeProxy(typeof({0}.DebuggerProxy))]\n", m_TypeName); str.Append("\t[System.Serializable]\n"); @@ -536,10 +566,8 @@ private void GenerateTypeImplementation(StringBuilder str) if(m_Rows == 4 && m_Columns == 4 && (m_BaseType == "float" || m_BaseType == "double")) { - GenerateMulImplementation("rotate", m_BaseType, mathStr, 4, 4, 3, 1, false, - string.Format("Return the result of rotating a {0} vector by a {1} matrix", ToTypeName(m_BaseType, 3, 1), ToTypeName(m_BaseType, 4, 4))); - GenerateMulImplementation("transform", m_BaseType, mathStr, 4, 4, 3, 1, true, - string.Format("Return the result of transforming a {0} point by a {1} matrix", ToTypeName(m_BaseType, 3, 1), ToTypeName(m_BaseType, 4, 4))); + GenerateMulImplementation("rotate", m_BaseType, mathStr, 4, 4, 3, 1, false, GenerateMulType.Rotate); + GenerateMulImplementation("transform", m_BaseType, mathStr, 4, 4, 3, 1, true, GenerateMulType.Transform); } GenerateTransposeFunction(mathStr); @@ -625,8 +653,24 @@ private void GenerateShuffleImplementation(StringBuilder str) str.AppendFormat("\t\t/// Returns the result of specified shuffling of the components from {0} into {1}.\n", ToValueDescription(m_BaseType, m_Rows, m_Columns, 2), ToValueDescription(m_BaseType, resultComponents, m_Columns, 1)); + str.AppendFormat($"\t\t/// {ToTypeName(m_BaseType, m_Rows, m_Columns)} to use as the left argument of the shuffle operation.\n"); + str.AppendFormat($"\t\t/// {ToTypeName(m_BaseType, m_Rows, m_Columns)} to use as the right argument of the shuffle operation.\n"); + + if (resultComponents == 1) + { + str.AppendFormat($"\t\t/// The ShuffleComponent to use when setting the resulting {resultType}.\n"); + } + else + { + for (int i = 0; i < resultComponents; ++i) + { + str.AppendFormat($"\t\t/// The ShuffleComponent to use when setting the resulting {resultType} {vectorFields[i]} component.\n"); + } + } + + str.AppendFormat($"\t\t/// {resultType} result of the shuffle operation.\n"); str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); - str.AppendFormat("\t\tpublic static {0} shuffle({1} a, {2} b", resultType, m_TypeName, m_TypeName); + str.AppendFormat("\t\tpublic static {0} shuffle({1} left, {2} right", resultType, m_TypeName, m_TypeName); for(int i = 0; i < resultComponents; i++) { str.AppendFormat(", ShuffleComponent {0}", vectorFields[i]); @@ -644,7 +688,7 @@ private void GenerateShuffleImplementation(StringBuilder str) if (resultComponents != 1) str.Append("\t\t\t\t"); - str.AppendFormat("select_shuffle_component(a, b, {0})", vectorFields[i]); + str.AppendFormat("select_shuffle_component(left, right, {0})", vectorFields[i]); if(i != resultComponents - 1) str.Append(",\n"); } @@ -658,7 +702,14 @@ private void GenerateShuffleImplementation(StringBuilder str) } } - private void GenerateMulImplementation(string name, string baseType, StringBuilder str, int lhsRows, int lhsColumns, int rhsRows, int rhsColumns, bool doTranslation, string desc) + enum GenerateMulType + { + Mul, + Rotate, + Transform + } + + private void GenerateMulImplementation(string name, string baseType, StringBuilder str, int lhsRows, int lhsColumns, int rhsRows, int rhsColumns, bool doTranslation, GenerateMulType mulType) { // mul(a,b): if a is vector it is treated as a row vector. if b is a vector it is treaded as a column vector. bool isResultRowVector = (lhsRows == 1 && lhsColumns > 1); @@ -668,19 +719,34 @@ private void GenerateMulImplementation(string name, string baseType, StringBuild string rhsType = ToTypeName(baseType, rhsRows, rhsColumns); bool isScalarResult = (resultRows == 1 && rhsColumns == 1); - bool needsSwizzle = (resultRows != lhsRows); - if(desc == "") - { - str.AppendFormat("\t\t/// Returns the {0} result of a matrix multiplication between {1} and {2}.\n", - ToValueDescription(baseType, resultRows, rhsColumns, 0, true), - ToValueDescription(baseType, lhsRows, lhsColumns, 1, true), - ToValueDescription(baseType, rhsRows, rhsColumns, 1, true)); - } - else + + switch (mulType) { - str.AppendFormat("\t\t/// {0}\n", desc); + case GenerateMulType.Mul: + str.AppendFormat("\t\t/// Returns the {0} result of a matrix multiplication between {1} and {2}.\n", + ToValueDescription(baseType, resultRows, rhsColumns, 0, true), + ToValueDescription(baseType, lhsRows, lhsColumns, 1, true), + ToValueDescription(baseType, rhsRows, rhsColumns, 1, true)); + str.AppendFormat("\t\t/// Left hand side argument of the matrix multiply.\n"); + str.AppendFormat("\t\t/// Right hand side argument of the matrix multiply.\n"); + str.AppendFormat("\t\t/// The computed matrix multiplication.\n"); + break; + case GenerateMulType.Rotate: + str.AppendFormat("\t\t/// {0}\n", string.Format("Return the result of rotating a {0} vector by a {1} matrix", ToTypeName(m_BaseType, rhsRows, rhsColumns), ToTypeName(m_BaseType, lhsRows, lhsColumns))); + str.AppendFormat("\t\t/// Left hand side matrix argument that specifies the rotation.\n"); + str.AppendFormat("\t\t/// Right hand side vector argument to be rotated.\n"); + str.AppendFormat("\t\t/// The rotated vector.\n"); + break; + case GenerateMulType.Transform: + str.AppendFormat("\t\t/// {0}\n", string.Format("Return the result of transforming a {0} point by a {1} matrix", ToTypeName(m_BaseType, rhsRows, rhsColumns), ToTypeName(m_BaseType, lhsRows, lhsColumns))); + str.AppendFormat("\t\t/// Left hand side matrix argument that specifies the transformation.\n"); + str.AppendFormat("\t\t/// Right hand side point argument to be transformed.\n"); + str.AppendFormat("\t\t/// The transformed point.\n"); + break; } + bool needsSwizzle = (resultRows != lhsRows); + str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); str.AppendFormat("\t\tpublic static {1} {0}({2} a, {3} b)\n", name, resultType, lhsType, rhsType); str.Append("\t\t{\n"); @@ -755,7 +821,7 @@ private void GenerateMulImplementations(string baseType, StringBuilder str) if (m == 1 && k > 1) continue; // rhs cannot be row vector - GenerateMulImplementation("mul", baseType, str, n, m, m, k, false, ""); + GenerateMulImplementation("mul", baseType, str, n, m, m, k, false, GenerateMulType.Mul); } } } @@ -826,12 +892,35 @@ private void GenerateVectorConstructor(int numComponents, int numParameters, int constructorStr.AppendFormat("\t\t/// Constructs a {0} {1} from {2}.\n", m_TypeName, dstTypeCategory, descriptionStr.ToString()); + + int componentIndex = 0; + for (int i = 0; i < numParameters; ++i) + { + int paramComponents = parameterComponents[i]; + string componentString = GenerateComponentRangeString(componentIndex, paramComponents); + string componentPluralOrSingular = paramComponents > 1 ? "components" : "component"; + constructorStr.Append($"\t\t/// The constructed vector's {componentString} {componentPluralOrSingular} will be set to this value.\n"); + componentIndex += paramComponents; + } + constructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); constructorStr.Append("\t\tpublic "); constructorStr.Append(m_TypeName); constructorStr.Append("("); mathStr.AppendFormat("\t\t/// Returns a {0} {1} constructed from {2}.\n", m_TypeName, dstTypeCategory, descriptionStr.ToString()); + + componentIndex = 0; + for (int i = 0; i < numParameters; ++i) + { + int paramComponents = parameterComponents[i]; + string componentString = GenerateComponentRangeString(componentIndex, paramComponents); + string componentPluralOrSingular = paramComponents > 1 ? "components" : "component"; + mathStr.Append($"\t\t/// The constructed vector's {componentString} {componentPluralOrSingular} will be set to this value.\n"); + componentIndex += paramComponents; + } + + mathStr.Append($"\t\t/// {m_TypeName} constructed from arguments.\n"); mathStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); mathStr.Append("\t\tpublic static "); mathStr.Append(m_TypeName); @@ -839,7 +928,7 @@ private void GenerateVectorConstructor(int numComponents, int numParameters, int mathStr.Append(m_TypeName); mathStr.Append("("); - int componentIndex = 0; + componentIndex = 0; for (int i = 0; i < numParameters; i++) { if (i != 0) @@ -921,12 +1010,25 @@ public void GenerateMatrixColumnConstructor(StringBuilder constructorStr, String string columnType = ToTypeName(m_BaseType, m_Rows, 1); string columnDescription = ToValueDescription(m_BaseType, m_Rows, 1, m_Columns); constructorStr.AppendFormat("\t\t/// Constructs a {0} matrix from {1}.\n", m_TypeName, columnDescription); + + for (int col = 0; col < m_Columns; ++col) + { + constructorStr.Append($"\t\t/// The matrix column {matrixFields[col]} will be set to this value.\n"); + } + constructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); constructorStr.Append("\t\tpublic "); constructorStr.Append(m_TypeName); constructorStr.Append("("); mathStr.AppendFormat("\t\t/// Returns a {0} matrix constructed from {1}.\n", m_TypeName, columnDescription); + + for (int col = 0; col < m_Columns; ++col) + { + mathStr.Append($"\t\t/// The matrix column {matrixFields[col]} will be set to this value.\n"); + } + + mathStr.Append($"\t\t/// {m_TypeName} constructed from arguments.\n"); mathStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); mathStr.Append("\t\tpublic static "); mathStr.Append(m_TypeName); @@ -981,11 +1083,30 @@ public void GenerateMatrixRowConstructor(StringBuilder constructorStr, StringBui { // Generate signatures constructorStr.AppendFormat("\t\t/// Constructs a {0} matrix from {1} {2} values given in row-major order.\n", m_TypeName, m_Rows * m_Columns, m_BaseType); + + for (int row = 0; row < m_Rows; ++row) + { + for (int col = 0; col < m_Columns; ++col) + { + constructorStr.Append($"\t\t/// The matrix at row {row}, column {col} will be set to this value.\n"); + } + } + constructorStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); constructorStr.Append("\t\tpublic "); constructorStr.Append(m_TypeName); constructorStr.Append("("); mathStr.AppendFormat("\t\t/// Returns a {0} matrix constructed from from {1} {2} values given in row-major order.\n", m_TypeName, m_Rows * m_Columns, m_BaseType); + + for (int row = 0; row < m_Rows; ++row) + { + for (int col = 0; col < m_Columns; ++col) + { + mathStr.Append($"\t\t/// The matrix at row {row}, column {col} will be set to this value.\n"); + } + } + + mathStr.Append($"\t\t/// {m_TypeName} constructed from arguments.\n"); mathStr.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); mathStr.Append("\t\tpublic static "); mathStr.Append(m_TypeName); @@ -1163,6 +1284,8 @@ public void GenerateTransposeFunction(StringBuilder str) string resultType = ToTypeName(m_BaseType, m_Columns, m_Rows); str.AppendFormat("\t\t/// Return the {0} transpose of a {1} matrix.\n", resultType, m_TypeName); + str.Append($"\t\t/// Value to transpose.\n"); + str.Append($"\t\t/// Transposed value.\n"); str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); str.AppendFormat("\t\tpublic static {0} transpose({1} v)\n", resultType, m_TypeName); str.Append("\t\t{\n"); @@ -1197,9 +1320,10 @@ public void GenerateInverseFunction(StringBuilder str) if(m_Rows == 2) { - str.AppendFormat( - @" /// Returns the {0}2x2 full inverse of a {0}2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] + str.AppendFormat(" /// Returns the {0}2x2 full inverse of a {0}2x2 matrix.\n", m_BaseType); + str.AppendFormat(" /// Matrix to invert.\n"); + str.AppendFormat(" /// The inverted matrix.\n"); + str.AppendFormat(@" [MethodImpl(MethodImplOptions.AggressiveInlining)] public static {0}2x2 inverse({0}2x2 m) {{ {0} a = m.c0.x; @@ -1217,9 +1341,10 @@ public void GenerateInverseFunction(StringBuilder str) } else if(m_Rows == 3) { - str.AppendFormat( - @" /// Returns the {0}3x3 full inverse of a {0}3x3 matrix. - public static {0}3x3 inverse({0}3x3 m) + str.AppendFormat(" /// Returns the {0}3x3 full inverse of a {0}3x3 matrix.\n", m_BaseType); + str.AppendFormat(" /// Matrix to invert.\n"); + str.AppendFormat(" /// The inverted matrix.\n"); + str.AppendFormat(@" public static {0}3x3 inverse({0}3x3 m) {{ {0}3 c0 = m.c0; {0}3 c1 = m.c1; @@ -1242,9 +1367,10 @@ public void GenerateInverseFunction(StringBuilder str) } else if(m_Rows == 4) { - str.AppendFormat( - @" /// Returns the {0}4x4 full inverse of a {0}4x4 matrix. - public static {0}4x4 inverse({0}4x4 m) + str.AppendFormat(" /// Returns the {0}4x4 full inverse of a {0}4x4 matrix.\n", m_BaseType); + str.AppendFormat(" /// Matrix to invert.\n"); + str.AppendFormat(" /// The inverted matrix.\n"); + str.AppendFormat(@" public static {0}4x4 inverse({0}4x4 m) {{ {0}4 c0 = m.c0; {0}4 c1 = m.c1; @@ -1322,9 +1448,10 @@ public void GenerateFastInverseFunction(StringBuilder str) if(m_Columns == 4 && m_Rows == 3) { - str.AppendFormat( - @" // Fast matrix inverse for rigid transforms (Orthonormal basis and translation) - public static {0}3x4 fastinverse({0}3x4 m) + str.AppendFormat(" /// Fast matrix inverse for rigid transforms (orthonormal basis and translation)\n"); + str.AppendFormat(" /// Matrix to invert.\n"); + str.AppendFormat(" /// The inverted matrix.\n"); + str.AppendFormat(@" public static {0}3x4 fastinverse({0}3x4 m) {{ {0}3 c0 = m.c0; {0}3 c1 = m.c1; @@ -1345,9 +1472,10 @@ public void GenerateFastInverseFunction(StringBuilder str) } else if(m_Columns == 4 && m_Rows == 4) { - str.AppendFormat( - @" // Fast matrix inverse for rigid transforms (Orthonormal basis and translation) - public static {0}4x4 fastinverse({0}4x4 m) + str.AppendFormat(" /// Fast matrix inverse for rigid transforms (orthonormal basis and translation)\n"); + str.AppendFormat(" /// Matrix to invert.\n"); + str.AppendFormat(" /// The inverted matrix.\n"); + str.AppendFormat(@" public static {0}4x4 fastinverse({0}4x4 m) {{ {0}4 c0 = m.c0; {0}4 c1 = m.c1; @@ -1386,11 +1514,13 @@ public void GenerateDeterminantFunction(StringBuilder str) if (m_BaseType != "float" && m_BaseType != "double" && m_BaseType != "int") return; + str.Append($"\t\t/// Returns the determinant of a {ToTypeName(m_BaseType, m_Rows, m_Columns)} matrix.\n"); + str.Append($"\t\t/// Matrix to use when computing determinant.\n"); + str.Append($"\t\t/// The determinant of the matrix.\n"); + if (m_Rows == 2) { - str.AppendFormat( - @" /// Returns the determinant of a {0}2x2 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] + str.AppendFormat(@" [MethodImpl(MethodImplOptions.AggressiveInlining)] public static {0} determinant({0}2x2 m) {{ {0} a = m.c0.x; @@ -1406,9 +1536,7 @@ public void GenerateDeterminantFunction(StringBuilder str) } else if (m_Rows == 3) { - str.AppendFormat( - @" /// Returns the determinant of a {0}3x3 matrix. - [MethodImpl(MethodImplOptions.AggressiveInlining)] + str.AppendFormat(@" [MethodImpl(MethodImplOptions.AggressiveInlining)] public static {0} determinant({0}3x3 m) {{ {0}3 c0 = m.c0; @@ -1427,9 +1555,7 @@ public void GenerateDeterminantFunction(StringBuilder str) } else if (m_Rows == 4) { - str.AppendFormat( - @" /// Returns the determinant of a {0}4x4 matrix. - public static {0} determinant({0}4x4 m) + str.AppendFormat(@" public static {0} determinant({0}4x4 m) {{ {0}4 c0 = m.c0; {0}4 c1 = m.c1; @@ -1455,21 +1581,25 @@ public void GenerateHashFunction(StringBuilder str, bool wide) { string returnType = wide ? ToTypeName("uint", m_Rows, 1) : "uint"; string functionName = wide ? "hashwide" : "hash"; + string matrixOrVector = m_Columns > 1 ? "matrix" : "vector"; + string capitalMatrixOrVector = m_Columns > 1 ? "Matrix" : "Vector"; if(wide) { str.AppendFormat("\t\t/// \n" + - "\t\t/// Returns a {0} vector hash code of a {1} vector.\n" + + "\t\t/// Returns a {0} vector hash code of a {1} {2}.\n" + "\t\t/// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash\n" + "\t\t/// that are only reduced to a narrow uint hash at the very end instead of at every step.\n" + - "\t\t/// \n", returnType, m_TypeName); + "\t\t/// \n", returnType, m_TypeName, matrixOrVector); + str.Append($"\t\t/// {capitalMatrixOrVector} value to hash.\n"); } else { - str.AppendFormat("\t\t/// Returns a uint hash code of a {0} vector.\n", m_TypeName); + str.AppendFormat("\t\t/// Returns a uint hash code of a {0} {1}.\n", m_TypeName, matrixOrVector); + str.Append($"\t\t/// {capitalMatrixOrVector} value to hash.\n"); } - + str.Append($"\t\t/// {returnType} hash of the argument.\n"); str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); str.AppendFormat("\t\tpublic static {0} {1}({2} v)\n", returnType, functionName, m_TypeName); str.Append("\t\t{\n"); @@ -1532,11 +1662,16 @@ public void GenerateHashFunction(StringBuilder str, bool wide) public void GenerateToStringFunction(StringBuilder str, bool useFormat) { - if(useFormat) + if (useFormat) + { str.AppendFormat("\t\t/// Returns a string representation of the {0} using a specified format and culture-specific format information.\n", m_TypeName); + str.AppendFormat("\t\t/// Format string to use during string formatting.\n"); + str.AppendFormat("\t\t/// Format provider to use during string formatting.\n"); + } else str.AppendFormat("\t\t/// Returns a string representation of the {0}.\n", m_TypeName); + str.Append("\t\t/// String representation of the value.\n"); str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); if(useFormat) str.Append("\t\tpublic string ToString(string format, IFormatProvider formatProvider)\n\t\t{\n"); @@ -1592,11 +1727,14 @@ void GenerateBinaryOperator(int rows, int columns, string op, string resultType, void GenerateBinaryOperator(int lhsRows, int lhsColumns, int rhsRows, int rhsColumns, string op, string resultType, int resultRows, int resultColumns, StringBuilder str, string opDesc) { - if(lhsRows == rhsRows && lhsColumns == rhsColumns) + if (lhsRows == rhsRows && lhsColumns == rhsColumns) str.AppendFormat("\t\t/// Returns the result of a componentwise {0} operation on {1}.\n", opDesc, ToValueDescription(m_BaseType, lhsRows, lhsColumns, 2)); else str.AppendFormat("\t\t/// Returns the result of a componentwise {0} operation on {1} and {2}.\n", opDesc, ToValueDescription(m_BaseType, lhsRows, lhsColumns, 1), ToValueDescription(m_BaseType, rhsRows, rhsColumns, 1)); + str.AppendFormat($"\t\t/// Left hand side {ToTypeName(m_BaseType, lhsRows, lhsColumns)} to use to compute componentwise {opDesc}.\n"); + str.AppendFormat($"\t\t/// Right hand side {ToTypeName(m_BaseType, rhsRows, rhsColumns)} to use to compute componentwise {opDesc}.\n"); + str.AppendFormat($"\t\t/// {ToTypeName(resultType, resultRows, resultColumns)} result of the componentwise {opDesc}.\n"); str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); str.AppendFormat("\t\tpublic static {0} operator {1} ({2} lhs, {3} rhs)", ToTypeName(resultType, resultRows, resultColumns), op, ToTypeName(m_BaseType, lhsRows, lhsColumns), ToTypeName(m_BaseType, rhsRows, rhsColumns)); str.Append(" { "); @@ -1694,6 +1832,8 @@ void GenerateEquals(StringBuilder str) int resultCount = (m_Columns > 1) ? m_Columns : m_Rows; str.AppendFormat("\t\t/// Returns true if the {0} is equal to a given {0}, false otherwise.\n", m_TypeName); + str.AppendFormat("\t\t/// Right hand side argument to compare equality with.\n"); + str.AppendFormat("\t\t/// The result of the equality comparison.\n"); str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); str.AppendFormat("\t\tpublic bool Equals({0} rhs) {{ return ", m_TypeName); @@ -1710,12 +1850,15 @@ void GenerateEquals(StringBuilder str) str.Append("; }\n\n"); str.AppendFormat("\t\t/// Returns true if the {0} is equal to a given {0}, false otherwise.\n", m_TypeName); + str.AppendFormat("\t\t/// Right hand side argument to compare equality with.\n"); + str.AppendFormat("\t\t/// The result of the equality comparison.\n"); str.AppendFormat("\t\tpublic override bool Equals(object o) {{ return o is {0} converted && Equals(converted); }}\n\n", m_TypeName); } void GenerateGetHashCode(StringBuilder str) { str.AppendFormat("\t\t/// Returns a hash code for the {0}.\n", m_TypeName); + str.AppendFormat("\t\t/// The computed hash code.\n"); str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); str.Append("\t\tpublic override int GetHashCode() { return (int)math.hash(this); }\n\n"); } @@ -1726,8 +1869,12 @@ void GenerateShiftOperator(int lhsRows, string op, string resultBaseType, String string[] fields = (m_Columns > 1) ? matrixFields : vectorFields; int resultCount = (m_Columns > 1) ? m_Columns : m_Rows; + string matrixOrVector = m_Columns > 1 ? "matrix" : "vector"; string resultType = ToTypeName(resultBaseType, resultCount, 1); str.AppendFormat("\t\t/// Returns the result of a componentwise {0} operation on {1} by a number of bits specified by a single int.\n", opDesc, ToValueDescription(m_BaseType, m_Rows, m_Columns, 1)); + str.AppendFormat($"\t\t/// The {matrixOrVector} to {opDesc}.\n"); + str.AppendFormat($"\t\t/// The number of bits to {opDesc}.\n"); + str.AppendFormat($"\t\t/// The result of the componentwise {opDesc}.\n"); str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); str.AppendFormat("\t\tpublic static {0} operator {1} ({0} x, int n)", m_TypeName, op); str.Append(" { "); @@ -1756,6 +1903,8 @@ void GenerateShiftOperator(int lhsRows, string op, string resultBaseType, String void GenerateUnaryOperator(string op, StringBuilder str, string opDesc) { str.AppendFormat("\t\t/// Returns the result of a componentwise {0} operation on {1}.\n", opDesc, ToValueDescription(m_BaseType, m_Rows, m_Columns, 1)); + str.Append($"\t\t/// Value to use when computing the componentwise {opDesc}.\n"); + str.Append($"\t\t/// {m_TypeName} result of the componentwise {opDesc}.\n"); str.Append("\t\t[MethodImpl(MethodImplOptions.AggressiveInlining)]\n"); str.AppendFormat("\t\tpublic static {0} operator {1} ({0} val)", m_TypeName, op); str.Append(" { "); @@ -1853,6 +2002,8 @@ void GenerateSwizzles(int[] swizzle, StringBuilder str) bool hideAutoComplete = true; + str.Append("\t\t/// Swizzles the vector.\n"); + if (hideAutoComplete) str.Append("\t\t[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]\n"); diff --git a/src/Unity.Mathematics.Shaders/hlsl.cs b/src/Unity.Mathematics.Shaders/hlsl.cs index 78b6d648..c49ad5e8 100644 --- a/src/Unity.Mathematics.Shaders/hlsl.cs +++ b/src/Unity.Mathematics.Shaders/hlsl.cs @@ -1,4 +1,4 @@ -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; namespace Unity.Mathematics.Shaders { @@ -6,95 +6,130 @@ public static class hlsl { [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float ddx(float x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float2 ddx(float2 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float3 ddx(float3 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float4 ddx(float4 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float2x2 ddx(float2x2 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float3x3 ddx(float3x3 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float4x4 ddx(float4x4 x) { throw new System.NotImplementedException(); } [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float ddx_fine(float x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float2 ddx_fine(float2 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float3 ddx_fine(float3 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float4 ddx_fine(float4 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float2x2 ddx_fine(float2x2 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float3x3 ddx_fine(float3x3 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float4x4 ddx_fine(float4x4 x) { throw new System.NotImplementedException(); } [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float ddx_coarse(float x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float2 ddx_coarse(float2 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float3 ddx_coarse(float3 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float4 ddx_coarse(float4 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float2x2 ddx_coarse(float2x2 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float3x3 ddx_coarse(float3x3 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float4x4 ddx_coarse(float4x4 x) { throw new System.NotImplementedException(); } [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float ddy(float x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float2 ddy(float2 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float3 ddy(float3 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float4 ddy(float4 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float2x2 ddy(float2x2 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float3x3 ddy(float3x3 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float4x4 ddy(float4x4 x) { throw new System.NotImplementedException(); } [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float ddy_fine(float x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float2 ddy_fine(float2 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float3 ddy_fine(float3 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float4 ddy_fine(float4 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float2x2 ddy_fine(float2x2 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float3x3 ddy_fine(float3x3 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float4x4 ddy_fine(float4x4 x) { throw new System.NotImplementedException(); } [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float ddy_coarse(float x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float2 ddy_coarse(float2 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float3 ddy_coarse(float3 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float4 ddy_coarse(float4 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float2x2 ddy_coarse(float2x2 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float3x3 ddy_coarse(float3x3 x) { throw new System.NotImplementedException(); } + [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static float4x4 ddy_coarse(float4x4 x) { throw new System.NotImplementedException(); } - [MethodImpl((MethodImplOptions)0x100)] // agressive inline public static void discard() { } diff --git a/src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs b/src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs index 259f4a87..1588a77e 100644 --- a/src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs +++ b/src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs @@ -2,6 +2,10 @@ namespace Unity.IL2CPP.CompilerServices { + /// + /// This is used to indicate to IL2CPP that the static constructors should be executed eagerly at startup + /// rather than lazily at runtime. + /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)] public class Il2CppEagerStaticClassConstructionAttribute : Attribute { diff --git a/src/Unity.Mathematics/Noise/common.cs b/src/Unity.Mathematics/Noise/common.cs index 971189c0..1a8d1146 100644 --- a/src/Unity.Mathematics/Noise/common.cs +++ b/src/Unity.Mathematics/Noise/common.cs @@ -3,6 +3,9 @@ namespace Unity.Mathematics { + /// + /// A static class containing noise functions. + /// [Il2CppEagerStaticClassConstruction] public static partial class noise { diff --git a/src/Unity.Mathematics/PropertyAttributes.cs b/src/Unity.Mathematics/PropertyAttributes.cs index 75f8262a..d069f15b 100644 --- a/src/Unity.Mathematics/PropertyAttributes.cs +++ b/src/Unity.Mathematics/PropertyAttributes.cs @@ -1,6 +1,12 @@ namespace Unity.Mathematics { + /// + /// Used by property drawers when vectors should be post normalized. + /// public class PostNormalizeAttribute : UnityEngine.PropertyAttribute {} + /// + /// Used by property drawers when vectors should not be normalized. + /// public class DoNotNormalizeAttribute : UnityEngine.PropertyAttribute {} } diff --git a/src/Unity.Mathematics/bool2.gen.cs b/src/Unity.Mathematics/bool2.gen.cs index 37703ec0..5ada3003 100644 --- a/src/Unity.Mathematics/bool2.gen.cs +++ b/src/Unity.Mathematics/bool2.gen.cs @@ -16,18 +16,23 @@ namespace Unity.Mathematics { + /// A 2 component vector of bools. [DebuggerTypeProxy(typeof(bool2.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct bool2 : System.IEquatable { + /// x component of the vector. [MarshalAs(UnmanagedType.U1)] public bool x; + /// y component of the vector. [MarshalAs(UnmanagedType.U1)] public bool y; /// Constructs a bool2 vector from two bool values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2(bool x, bool y) { @@ -36,6 +41,7 @@ public bool2(bool x, bool y) } /// Constructs a bool2 vector from a bool2 vector. + /// The constructed vector's xy components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2(bool2 xy) { @@ -44,6 +50,7 @@ public bool2(bool2 xy) } /// Constructs a bool2 vector from a single bool value by assigning it to every component. + /// bool to convert to bool2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2(bool v) { @@ -53,82 +60,132 @@ public bool2(bool v) /// Implicitly converts a single bool value to a bool2 vector by assigning it to every component. + /// bool to convert to bool2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool2(bool v) { return new bool2(v); } /// Returns the result of a componentwise equality operation on two bool2 vectors. + /// Left hand side bool2 to use to compute componentwise equality. + /// Right hand side bool2 to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } /// Returns the result of a componentwise equality operation on a bool2 vector and a bool value. + /// Left hand side bool2 to use to compute componentwise equality. + /// Right hand side bool to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (bool2 lhs, bool rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } /// Returns the result of a componentwise equality operation on a bool value and a bool2 vector. + /// Left hand side bool to use to compute componentwise equality. + /// Right hand side bool2 to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (bool lhs, bool2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } /// Returns the result of a componentwise not equal operation on two bool2 vectors. + /// Left hand side bool2 to use to compute componentwise not equal. + /// Right hand side bool2 to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } /// Returns the result of a componentwise not equal operation on a bool2 vector and a bool value. + /// Left hand side bool2 to use to compute componentwise not equal. + /// Right hand side bool to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (bool2 lhs, bool rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } /// Returns the result of a componentwise not equal operation on a bool value and a bool2 vector. + /// Left hand side bool to use to compute componentwise not equal. + /// Right hand side bool2 to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (bool lhs, bool2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } /// Returns the result of a componentwise not operation on a bool2 vector. + /// Value to use when computing the componentwise not. + /// bool2 result of the componentwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator ! (bool2 val) { return new bool2 (!val.x, !val.y); } /// Returns the result of a componentwise bitwise and operation on two bool2 vectors. + /// Left hand side bool2 to use to compute componentwise bitwise and. + /// Right hand side bool2 to use to compute componentwise bitwise and. + /// bool2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator & (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x & rhs.x, lhs.y & rhs.y); } /// Returns the result of a componentwise bitwise and operation on a bool2 vector and a bool value. + /// Left hand side bool2 to use to compute componentwise bitwise and. + /// Right hand side bool to use to compute componentwise bitwise and. + /// bool2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator & (bool2 lhs, bool rhs) { return new bool2 (lhs.x & rhs, lhs.y & rhs); } /// Returns the result of a componentwise bitwise and operation on a bool value and a bool2 vector. + /// Left hand side bool to use to compute componentwise bitwise and. + /// Right hand side bool2 to use to compute componentwise bitwise and. + /// bool2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator & (bool lhs, bool2 rhs) { return new bool2 (lhs & rhs.x, lhs & rhs.y); } /// Returns the result of a componentwise bitwise or operation on two bool2 vectors. + /// Left hand side bool2 to use to compute componentwise bitwise or. + /// Right hand side bool2 to use to compute componentwise bitwise or. + /// bool2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator | (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x | rhs.x, lhs.y | rhs.y); } /// Returns the result of a componentwise bitwise or operation on a bool2 vector and a bool value. + /// Left hand side bool2 to use to compute componentwise bitwise or. + /// Right hand side bool to use to compute componentwise bitwise or. + /// bool2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator | (bool2 lhs, bool rhs) { return new bool2 (lhs.x | rhs, lhs.y | rhs); } /// Returns the result of a componentwise bitwise or operation on a bool value and a bool2 vector. + /// Left hand side bool to use to compute componentwise bitwise or. + /// Right hand side bool2 to use to compute componentwise bitwise or. + /// bool2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator | (bool lhs, bool2 rhs) { return new bool2 (lhs | rhs.x, lhs | rhs.y); } /// Returns the result of a componentwise bitwise exclusive or operation on two bool2 vectors. + /// Left hand side bool2 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool2 to use to compute componentwise bitwise exclusive or. + /// bool2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator ^ (bool2 lhs, bool2 rhs) { return new bool2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool2 vector and a bool value. + /// Left hand side bool2 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool to use to compute componentwise bitwise exclusive or. + /// bool2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator ^ (bool2 lhs, bool rhs) { return new bool2 (lhs.x ^ rhs, lhs.y ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool2 vector. + /// Left hand side bool to use to compute componentwise bitwise exclusive or. + /// Right hand side bool2 to use to compute componentwise bitwise exclusive or. + /// bool2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator ^ (bool lhs, bool2 rhs) { return new bool2 (lhs ^ rhs.x, lhs ^ rhs.y); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxx { @@ -137,6 +194,7 @@ public bool4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxy { @@ -145,6 +203,7 @@ public bool4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyx { @@ -153,6 +212,7 @@ public bool4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyy { @@ -161,6 +221,7 @@ public bool4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxx { @@ -169,6 +230,7 @@ public bool4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxy { @@ -177,6 +239,7 @@ public bool4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyx { @@ -185,6 +248,7 @@ public bool4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyy { @@ -193,6 +257,7 @@ public bool4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxx { @@ -201,6 +266,7 @@ public bool4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxy { @@ -209,6 +275,7 @@ public bool4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyx { @@ -217,6 +284,7 @@ public bool4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyy { @@ -225,6 +293,7 @@ public bool4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxx { @@ -233,6 +302,7 @@ public bool4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxy { @@ -241,6 +311,7 @@ public bool4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyx { @@ -249,6 +320,7 @@ public bool4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyy { @@ -257,6 +329,7 @@ public bool4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxx { @@ -265,6 +338,7 @@ public bool3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxy { @@ -273,6 +347,7 @@ public bool3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyx { @@ -281,6 +356,7 @@ public bool3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyy { @@ -289,6 +365,7 @@ public bool3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxx { @@ -297,6 +374,7 @@ public bool3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxy { @@ -305,6 +383,7 @@ public bool3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyx { @@ -313,6 +392,7 @@ public bool3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyy { @@ -321,6 +401,7 @@ public bool3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xx { @@ -329,6 +410,7 @@ public bool2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xy { @@ -339,6 +421,7 @@ public bool2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yx { @@ -349,6 +432,7 @@ public bool2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yy { @@ -380,19 +464,25 @@ unsafe public bool this[int index] } /// Returns true if the bool2 is equal to a given bool2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool2 rhs) { return x == rhs.x && y == rhs.y; } /// Returns true if the bool2 is equal to a given bool2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is bool2 converted && Equals(converted); } /// Returns a hash code for the bool2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the bool2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -415,18 +505,27 @@ public DebuggerProxy(bool2 v) public static partial class math { /// Returns a bool2 vector constructed from two bool values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// bool2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 bool2(bool x, bool y) { return new bool2(x, y); } /// Returns a bool2 vector constructed from a bool2 vector. + /// The constructed vector's xy components will be set to this value. + /// bool2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 bool2(bool2 xy) { return new bool2(xy); } /// Returns a bool2 vector constructed from a single bool value by assigning it to every component. + /// bool to convert to bool2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 bool2(bool v) { return new bool2(v); } /// Returns a uint hash code of a bool2 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(bool2 v) { @@ -438,6 +537,8 @@ public static uint hash(bool2 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(bool2 v) { @@ -445,40 +546,62 @@ public static uint2 hashwide(bool2 v) } /// Returns the result of specified shuffling of the components from two bool2 vectors into a bool value. + /// bool2 to use as the left argument of the shuffle operation. + /// bool2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting bool. + /// bool result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool shuffle(bool2 a, bool2 b, ShuffleComponent x) + public static bool shuffle(bool2 left, bool2 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two bool2 vectors into a bool2 vector. + /// bool2 to use as the left argument of the shuffle operation. + /// bool2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting bool2 x component. + /// The ShuffleComponent to use when setting the resulting bool2 y component. + /// bool2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 shuffle(bool2 a, bool2 b, ShuffleComponent x, ShuffleComponent y) + public static bool2 shuffle(bool2 left, bool2 right, ShuffleComponent x, ShuffleComponent y) { return bool2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two bool2 vectors into a bool3 vector. + /// bool2 to use as the left argument of the shuffle operation. + /// bool2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting bool3 x component. + /// The ShuffleComponent to use when setting the resulting bool3 y component. + /// The ShuffleComponent to use when setting the resulting bool3 z component. + /// bool3 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 shuffle(bool2 a, bool2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + public static bool3 shuffle(bool2 left, bool2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return bool3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two bool2 vectors into a bool4 vector. + /// bool2 to use as the left argument of the shuffle operation. + /// bool2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting bool4 x component. + /// The ShuffleComponent to use when setting the resulting bool4 y component. + /// The ShuffleComponent to use when setting the resulting bool4 z component. + /// The ShuffleComponent to use when setting the resulting bool4 w component. + /// bool4 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 shuffle(bool2 a, bool2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + public static bool4 shuffle(bool2 left, bool2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return bool4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/bool2x2.gen.cs b/src/Unity.Mathematics/bool2x2.gen.cs index 39932544..f42e505b 100644 --- a/src/Unity.Mathematics/bool2x2.gen.cs +++ b/src/Unity.Mathematics/bool2x2.gen.cs @@ -14,15 +14,20 @@ namespace Unity.Mathematics { + /// A 2x2 matrix of bools. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct bool2x2 : System.IEquatable { + /// Column 0 of the matrix. public bool2 c0; + /// Column 1 of the matrix. public bool2 c1; /// Constructs a bool2x2 matrix from two bool2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2x2(bool2 c0, bool2 c1) { @@ -31,6 +36,10 @@ public bool2x2(bool2 c0, bool2 c1) } /// Constructs a bool2x2 matrix from 4 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2x2(bool m00, bool m01, bool m10, bool m11) @@ -40,6 +49,7 @@ public bool2x2(bool m00, bool m01, } /// Constructs a bool2x2 matrix from a single bool value by assigning it to every component. + /// bool to convert to bool2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2x2(bool v) { @@ -49,76 +59,125 @@ public bool2x2(bool v) /// Implicitly converts a single bool value to a bool2x2 matrix by assigning it to every component. + /// bool to convert to bool2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool2x2(bool v) { return new bool2x2(v); } /// Returns the result of a componentwise equality operation on two bool2x2 matrices. + /// Left hand side bool2x2 to use to compute componentwise equality. + /// Right hand side bool2x2 to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (bool2x2 lhs, bool2x2 rhs) { return new bool2x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on a bool2x2 matrix and a bool value. + /// Left hand side bool2x2 to use to compute componentwise equality. + /// Right hand side bool to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (bool2x2 lhs, bool rhs) { return new bool2x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on a bool value and a bool2x2 matrix. + /// Left hand side bool to use to compute componentwise equality. + /// Right hand side bool2x2 to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (bool lhs, bool2x2 rhs) { return new bool2x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two bool2x2 matrices. + /// Left hand side bool2x2 to use to compute componentwise not equal. + /// Right hand side bool2x2 to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (bool2x2 lhs, bool2x2 rhs) { return new bool2x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on a bool2x2 matrix and a bool value. + /// Left hand side bool2x2 to use to compute componentwise not equal. + /// Right hand side bool to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (bool2x2 lhs, bool rhs) { return new bool2x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on a bool value and a bool2x2 matrix. + /// Left hand side bool to use to compute componentwise not equal. + /// Right hand side bool2x2 to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (bool lhs, bool2x2 rhs) { return new bool2x2 (lhs != rhs.c0, lhs != rhs.c1); } /// Returns the result of a componentwise not operation on a bool2x2 matrix. + /// Value to use when computing the componentwise not. + /// bool2x2 result of the componentwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator ! (bool2x2 val) { return new bool2x2 (!val.c0, !val.c1); } /// Returns the result of a componentwise bitwise and operation on two bool2x2 matrices. + /// Left hand side bool2x2 to use to compute componentwise bitwise and. + /// Right hand side bool2x2 to use to compute componentwise bitwise and. + /// bool2x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator & (bool2x2 lhs, bool2x2 rhs) { return new bool2x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } /// Returns the result of a componentwise bitwise and operation on a bool2x2 matrix and a bool value. + /// Left hand side bool2x2 to use to compute componentwise bitwise and. + /// Right hand side bool to use to compute componentwise bitwise and. + /// bool2x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator & (bool2x2 lhs, bool rhs) { return new bool2x2 (lhs.c0 & rhs, lhs.c1 & rhs); } /// Returns the result of a componentwise bitwise and operation on a bool value and a bool2x2 matrix. + /// Left hand side bool to use to compute componentwise bitwise and. + /// Right hand side bool2x2 to use to compute componentwise bitwise and. + /// bool2x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator & (bool lhs, bool2x2 rhs) { return new bool2x2 (lhs & rhs.c0, lhs & rhs.c1); } /// Returns the result of a componentwise bitwise or operation on two bool2x2 matrices. + /// Left hand side bool2x2 to use to compute componentwise bitwise or. + /// Right hand side bool2x2 to use to compute componentwise bitwise or. + /// bool2x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator | (bool2x2 lhs, bool2x2 rhs) { return new bool2x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } /// Returns the result of a componentwise bitwise or operation on a bool2x2 matrix and a bool value. + /// Left hand side bool2x2 to use to compute componentwise bitwise or. + /// Right hand side bool to use to compute componentwise bitwise or. + /// bool2x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator | (bool2x2 lhs, bool rhs) { return new bool2x2 (lhs.c0 | rhs, lhs.c1 | rhs); } /// Returns the result of a componentwise bitwise or operation on a bool value and a bool2x2 matrix. + /// Left hand side bool to use to compute componentwise bitwise or. + /// Right hand side bool2x2 to use to compute componentwise bitwise or. + /// bool2x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator | (bool lhs, bool2x2 rhs) { return new bool2x2 (lhs | rhs.c0, lhs | rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on two bool2x2 matrices. + /// Left hand side bool2x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool2x2 to use to compute componentwise bitwise exclusive or. + /// bool2x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator ^ (bool2x2 lhs, bool2x2 rhs) { return new bool2x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool2x2 matrix and a bool value. + /// Left hand side bool2x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool to use to compute componentwise bitwise exclusive or. + /// bool2x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator ^ (bool2x2 lhs, bool rhs) { return new bool2x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool2x2 matrix. + /// Left hand side bool to use to compute componentwise bitwise exclusive or. + /// Right hand side bool2x2 to use to compute componentwise bitwise exclusive or. + /// bool2x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator ^ (bool lhs, bool2x2 rhs) { return new bool2x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } @@ -138,19 +197,25 @@ unsafe public ref bool2 this[int index] } /// Returns true if the bool2x2 is equal to a given bool2x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the bool2x2 is equal to a given bool2x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is bool2x2 converted && Equals(converted); } /// Returns a hash code for the bool2x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the bool2x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -162,10 +227,18 @@ public override string ToString() public static partial class math { /// Returns a bool2x2 matrix constructed from two bool2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// bool2x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 bool2x2(bool2 c0, bool2 c1) { return new bool2x2(c0, c1); } /// Returns a bool2x2 matrix constructed from from 4 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// bool2x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 bool2x2(bool m00, bool m01, bool m10, bool m11) @@ -175,10 +248,14 @@ public static bool2x2 bool2x2(bool m00, bool m01, } /// Returns a bool2x2 matrix constructed from a single bool value by assigning it to every component. + /// bool to convert to bool2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 bool2x2(bool v) { return new bool2x2(v); } /// Return the bool2x2 transpose of a bool2x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 transpose(bool2x2 v) { @@ -187,7 +264,9 @@ public static bool2x2 transpose(bool2x2 v) v.c1.x, v.c1.y); } - /// Returns a uint hash code of a bool2x2 vector. + /// Returns a uint hash code of a bool2x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(bool2x2 v) { @@ -196,10 +275,12 @@ public static uint hash(bool2x2 v) } /// - /// Returns a uint2 vector hash code of a bool2x2 vector. + /// Returns a uint2 vector hash code of a bool2x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(bool2x2 v) { diff --git a/src/Unity.Mathematics/bool2x3.gen.cs b/src/Unity.Mathematics/bool2x3.gen.cs index 64e10222..778d32c7 100644 --- a/src/Unity.Mathematics/bool2x3.gen.cs +++ b/src/Unity.Mathematics/bool2x3.gen.cs @@ -14,16 +14,23 @@ namespace Unity.Mathematics { + /// A 2x3 matrix of bools. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct bool2x3 : System.IEquatable { + /// Column 0 of the matrix. public bool2 c0; + /// Column 1 of the matrix. public bool2 c1; + /// Column 2 of the matrix. public bool2 c2; /// Constructs a bool2x3 matrix from three bool2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2x3(bool2 c0, bool2 c1, bool2 c2) { @@ -33,6 +40,12 @@ public bool2x3(bool2 c0, bool2 c1, bool2 c2) } /// Constructs a bool2x3 matrix from 6 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2x3(bool m00, bool m01, bool m02, bool m10, bool m11, bool m12) @@ -43,6 +56,7 @@ public bool2x3(bool m00, bool m01, bool m02, } /// Constructs a bool2x3 matrix from a single bool value by assigning it to every component. + /// bool to convert to bool2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2x3(bool v) { @@ -53,76 +67,125 @@ public bool2x3(bool v) /// Implicitly converts a single bool value to a bool2x3 matrix by assigning it to every component. + /// bool to convert to bool2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool2x3(bool v) { return new bool2x3(v); } /// Returns the result of a componentwise equality operation on two bool2x3 matrices. + /// Left hand side bool2x3 to use to compute componentwise equality. + /// Right hand side bool2x3 to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (bool2x3 lhs, bool2x3 rhs) { return new bool2x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on a bool2x3 matrix and a bool value. + /// Left hand side bool2x3 to use to compute componentwise equality. + /// Right hand side bool to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (bool2x3 lhs, bool rhs) { return new bool2x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on a bool value and a bool2x3 matrix. + /// Left hand side bool to use to compute componentwise equality. + /// Right hand side bool2x3 to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (bool lhs, bool2x3 rhs) { return new bool2x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two bool2x3 matrices. + /// Left hand side bool2x3 to use to compute componentwise not equal. + /// Right hand side bool2x3 to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (bool2x3 lhs, bool2x3 rhs) { return new bool2x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on a bool2x3 matrix and a bool value. + /// Left hand side bool2x3 to use to compute componentwise not equal. + /// Right hand side bool to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (bool2x3 lhs, bool rhs) { return new bool2x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on a bool value and a bool2x3 matrix. + /// Left hand side bool to use to compute componentwise not equal. + /// Right hand side bool2x3 to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (bool lhs, bool2x3 rhs) { return new bool2x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } /// Returns the result of a componentwise not operation on a bool2x3 matrix. + /// Value to use when computing the componentwise not. + /// bool2x3 result of the componentwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator ! (bool2x3 val) { return new bool2x3 (!val.c0, !val.c1, !val.c2); } /// Returns the result of a componentwise bitwise and operation on two bool2x3 matrices. + /// Left hand side bool2x3 to use to compute componentwise bitwise and. + /// Right hand side bool2x3 to use to compute componentwise bitwise and. + /// bool2x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator & (bool2x3 lhs, bool2x3 rhs) { return new bool2x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } /// Returns the result of a componentwise bitwise and operation on a bool2x3 matrix and a bool value. + /// Left hand side bool2x3 to use to compute componentwise bitwise and. + /// Right hand side bool to use to compute componentwise bitwise and. + /// bool2x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator & (bool2x3 lhs, bool rhs) { return new bool2x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } /// Returns the result of a componentwise bitwise and operation on a bool value and a bool2x3 matrix. + /// Left hand side bool to use to compute componentwise bitwise and. + /// Right hand side bool2x3 to use to compute componentwise bitwise and. + /// bool2x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator & (bool lhs, bool2x3 rhs) { return new bool2x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } /// Returns the result of a componentwise bitwise or operation on two bool2x3 matrices. + /// Left hand side bool2x3 to use to compute componentwise bitwise or. + /// Right hand side bool2x3 to use to compute componentwise bitwise or. + /// bool2x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator | (bool2x3 lhs, bool2x3 rhs) { return new bool2x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } /// Returns the result of a componentwise bitwise or operation on a bool2x3 matrix and a bool value. + /// Left hand side bool2x3 to use to compute componentwise bitwise or. + /// Right hand side bool to use to compute componentwise bitwise or. + /// bool2x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator | (bool2x3 lhs, bool rhs) { return new bool2x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } /// Returns the result of a componentwise bitwise or operation on a bool value and a bool2x3 matrix. + /// Left hand side bool to use to compute componentwise bitwise or. + /// Right hand side bool2x3 to use to compute componentwise bitwise or. + /// bool2x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator | (bool lhs, bool2x3 rhs) { return new bool2x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on two bool2x3 matrices. + /// Left hand side bool2x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool2x3 to use to compute componentwise bitwise exclusive or. + /// bool2x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator ^ (bool2x3 lhs, bool2x3 rhs) { return new bool2x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool2x3 matrix and a bool value. + /// Left hand side bool2x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool to use to compute componentwise bitwise exclusive or. + /// bool2x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator ^ (bool2x3 lhs, bool rhs) { return new bool2x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool2x3 matrix. + /// Left hand side bool to use to compute componentwise bitwise exclusive or. + /// Right hand side bool2x3 to use to compute componentwise bitwise exclusive or. + /// bool2x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator ^ (bool lhs, bool2x3 rhs) { return new bool2x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } @@ -142,19 +205,25 @@ unsafe public ref bool2 this[int index] } /// Returns true if the bool2x3 is equal to a given bool2x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the bool2x3 is equal to a given bool2x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is bool2x3 converted && Equals(converted); } /// Returns a hash code for the bool2x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the bool2x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -166,10 +235,21 @@ public override string ToString() public static partial class math { /// Returns a bool2x3 matrix constructed from three bool2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// bool2x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 bool2x3(bool2 c0, bool2 c1, bool2 c2) { return new bool2x3(c0, c1, c2); } /// Returns a bool2x3 matrix constructed from from 6 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// bool2x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 bool2x3(bool m00, bool m01, bool m02, bool m10, bool m11, bool m12) @@ -179,10 +259,14 @@ public static bool2x3 bool2x3(bool m00, bool m01, bool m02, } /// Returns a bool2x3 matrix constructed from a single bool value by assigning it to every component. + /// bool to convert to bool2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 bool2x3(bool v) { return new bool2x3(v); } /// Return the bool3x2 transpose of a bool2x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 transpose(bool2x3 v) { @@ -192,7 +276,9 @@ public static bool3x2 transpose(bool2x3 v) v.c2.x, v.c2.y); } - /// Returns a uint hash code of a bool2x3 vector. + /// Returns a uint hash code of a bool2x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(bool2x3 v) { @@ -202,10 +288,12 @@ public static uint hash(bool2x3 v) } /// - /// Returns a uint2 vector hash code of a bool2x3 vector. + /// Returns a uint2 vector hash code of a bool2x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(bool2x3 v) { diff --git a/src/Unity.Mathematics/bool2x4.gen.cs b/src/Unity.Mathematics/bool2x4.gen.cs index 0f096421..ceef7bdc 100644 --- a/src/Unity.Mathematics/bool2x4.gen.cs +++ b/src/Unity.Mathematics/bool2x4.gen.cs @@ -14,17 +14,26 @@ namespace Unity.Mathematics { + /// A 2x4 matrix of bools. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct bool2x4 : System.IEquatable { + /// Column 0 of the matrix. public bool2 c0; + /// Column 1 of the matrix. public bool2 c1; + /// Column 2 of the matrix. public bool2 c2; + /// Column 3 of the matrix. public bool2 c3; /// Constructs a bool2x4 matrix from four bool2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2x4(bool2 c0, bool2 c1, bool2 c2, bool2 c3) { @@ -35,6 +44,14 @@ public bool2x4(bool2 c0, bool2 c1, bool2 c2, bool2 c3) } /// Constructs a bool2x4 matrix from 8 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2x4(bool m00, bool m01, bool m02, bool m03, bool m10, bool m11, bool m12, bool m13) @@ -46,6 +63,7 @@ public bool2x4(bool m00, bool m01, bool m02, bool m03, } /// Constructs a bool2x4 matrix from a single bool value by assigning it to every component. + /// bool to convert to bool2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2x4(bool v) { @@ -57,76 +75,125 @@ public bool2x4(bool v) /// Implicitly converts a single bool value to a bool2x4 matrix by assigning it to every component. + /// bool to convert to bool2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool2x4(bool v) { return new bool2x4(v); } /// Returns the result of a componentwise equality operation on two bool2x4 matrices. + /// Left hand side bool2x4 to use to compute componentwise equality. + /// Right hand side bool2x4 to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (bool2x4 lhs, bool2x4 rhs) { return new bool2x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on a bool2x4 matrix and a bool value. + /// Left hand side bool2x4 to use to compute componentwise equality. + /// Right hand side bool to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (bool2x4 lhs, bool rhs) { return new bool2x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on a bool value and a bool2x4 matrix. + /// Left hand side bool to use to compute componentwise equality. + /// Right hand side bool2x4 to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (bool lhs, bool2x4 rhs) { return new bool2x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two bool2x4 matrices. + /// Left hand side bool2x4 to use to compute componentwise not equal. + /// Right hand side bool2x4 to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (bool2x4 lhs, bool2x4 rhs) { return new bool2x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on a bool2x4 matrix and a bool value. + /// Left hand side bool2x4 to use to compute componentwise not equal. + /// Right hand side bool to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (bool2x4 lhs, bool rhs) { return new bool2x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on a bool value and a bool2x4 matrix. + /// Left hand side bool to use to compute componentwise not equal. + /// Right hand side bool2x4 to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (bool lhs, bool2x4 rhs) { return new bool2x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } /// Returns the result of a componentwise not operation on a bool2x4 matrix. + /// Value to use when computing the componentwise not. + /// bool2x4 result of the componentwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator ! (bool2x4 val) { return new bool2x4 (!val.c0, !val.c1, !val.c2, !val.c3); } /// Returns the result of a componentwise bitwise and operation on two bool2x4 matrices. + /// Left hand side bool2x4 to use to compute componentwise bitwise and. + /// Right hand side bool2x4 to use to compute componentwise bitwise and. + /// bool2x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator & (bool2x4 lhs, bool2x4 rhs) { return new bool2x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } /// Returns the result of a componentwise bitwise and operation on a bool2x4 matrix and a bool value. + /// Left hand side bool2x4 to use to compute componentwise bitwise and. + /// Right hand side bool to use to compute componentwise bitwise and. + /// bool2x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator & (bool2x4 lhs, bool rhs) { return new bool2x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } /// Returns the result of a componentwise bitwise and operation on a bool value and a bool2x4 matrix. + /// Left hand side bool to use to compute componentwise bitwise and. + /// Right hand side bool2x4 to use to compute componentwise bitwise and. + /// bool2x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator & (bool lhs, bool2x4 rhs) { return new bool2x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } /// Returns the result of a componentwise bitwise or operation on two bool2x4 matrices. + /// Left hand side bool2x4 to use to compute componentwise bitwise or. + /// Right hand side bool2x4 to use to compute componentwise bitwise or. + /// bool2x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator | (bool2x4 lhs, bool2x4 rhs) { return new bool2x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } /// Returns the result of a componentwise bitwise or operation on a bool2x4 matrix and a bool value. + /// Left hand side bool2x4 to use to compute componentwise bitwise or. + /// Right hand side bool to use to compute componentwise bitwise or. + /// bool2x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator | (bool2x4 lhs, bool rhs) { return new bool2x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } /// Returns the result of a componentwise bitwise or operation on a bool value and a bool2x4 matrix. + /// Left hand side bool to use to compute componentwise bitwise or. + /// Right hand side bool2x4 to use to compute componentwise bitwise or. + /// bool2x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator | (bool lhs, bool2x4 rhs) { return new bool2x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on two bool2x4 matrices. + /// Left hand side bool2x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool2x4 to use to compute componentwise bitwise exclusive or. + /// bool2x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator ^ (bool2x4 lhs, bool2x4 rhs) { return new bool2x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool2x4 matrix and a bool value. + /// Left hand side bool2x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool to use to compute componentwise bitwise exclusive or. + /// bool2x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator ^ (bool2x4 lhs, bool rhs) { return new bool2x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool2x4 matrix. + /// Left hand side bool to use to compute componentwise bitwise exclusive or. + /// Right hand side bool2x4 to use to compute componentwise bitwise exclusive or. + /// bool2x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator ^ (bool lhs, bool2x4 rhs) { return new bool2x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } @@ -146,19 +213,25 @@ unsafe public ref bool2 this[int index] } /// Returns true if the bool2x4 is equal to a given bool2x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the bool2x4 is equal to a given bool2x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is bool2x4 converted && Equals(converted); } /// Returns a hash code for the bool2x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the bool2x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -170,10 +243,24 @@ public override string ToString() public static partial class math { /// Returns a bool2x4 matrix constructed from four bool2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// bool2x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 bool2x4(bool2 c0, bool2 c1, bool2 c2, bool2 c3) { return new bool2x4(c0, c1, c2, c3); } /// Returns a bool2x4 matrix constructed from from 8 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// bool2x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 bool2x4(bool m00, bool m01, bool m02, bool m03, bool m10, bool m11, bool m12, bool m13) @@ -183,10 +270,14 @@ public static bool2x4 bool2x4(bool m00, bool m01, bool m02, bool m03, } /// Returns a bool2x4 matrix constructed from a single bool value by assigning it to every component. + /// bool to convert to bool2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 bool2x4(bool v) { return new bool2x4(v); } /// Return the bool4x2 transpose of a bool2x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 transpose(bool2x4 v) { @@ -197,7 +288,9 @@ public static bool4x2 transpose(bool2x4 v) v.c3.x, v.c3.y); } - /// Returns a uint hash code of a bool2x4 vector. + /// Returns a uint hash code of a bool2x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(bool2x4 v) { @@ -208,10 +301,12 @@ public static uint hash(bool2x4 v) } /// - /// Returns a uint2 vector hash code of a bool2x4 vector. + /// Returns a uint2 vector hash code of a bool2x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(bool2x4 v) { diff --git a/src/Unity.Mathematics/bool3.gen.cs b/src/Unity.Mathematics/bool3.gen.cs index fe63b11f..b3de0810 100644 --- a/src/Unity.Mathematics/bool3.gen.cs +++ b/src/Unity.Mathematics/bool3.gen.cs @@ -16,20 +16,27 @@ namespace Unity.Mathematics { + /// A 3 component vector of bools. [DebuggerTypeProxy(typeof(bool3.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct bool3 : System.IEquatable { + /// x component of the vector. [MarshalAs(UnmanagedType.U1)] public bool x; + /// y component of the vector. [MarshalAs(UnmanagedType.U1)] public bool y; + /// z component of the vector. [MarshalAs(UnmanagedType.U1)] public bool z; /// Constructs a bool3 vector from three bool values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3(bool x, bool y, bool z) { @@ -39,6 +46,8 @@ public bool3(bool x, bool y, bool z) } /// Constructs a bool3 vector from a bool value and a bool2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3(bool x, bool2 yz) { @@ -48,6 +57,8 @@ public bool3(bool x, bool2 yz) } /// Constructs a bool3 vector from a bool2 vector and a bool value. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3(bool2 xy, bool z) { @@ -57,6 +68,7 @@ public bool3(bool2 xy, bool z) } /// Constructs a bool3 vector from a bool3 vector. + /// The constructed vector's xyz components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3(bool3 xyz) { @@ -66,6 +78,7 @@ public bool3(bool3 xyz) } /// Constructs a bool3 vector from a single bool value by assigning it to every component. + /// bool to convert to bool3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3(bool v) { @@ -76,82 +89,132 @@ public bool3(bool v) /// Implicitly converts a single bool value to a bool3 vector by assigning it to every component. + /// bool to convert to bool3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool3(bool v) { return new bool3(v); } /// Returns the result of a componentwise equality operation on two bool3 vectors. + /// Left hand side bool3 to use to compute componentwise equality. + /// Right hand side bool3 to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } /// Returns the result of a componentwise equality operation on a bool3 vector and a bool value. + /// Left hand side bool3 to use to compute componentwise equality. + /// Right hand side bool to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (bool3 lhs, bool rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } /// Returns the result of a componentwise equality operation on a bool value and a bool3 vector. + /// Left hand side bool to use to compute componentwise equality. + /// Right hand side bool3 to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (bool lhs, bool3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } /// Returns the result of a componentwise not equal operation on two bool3 vectors. + /// Left hand side bool3 to use to compute componentwise not equal. + /// Right hand side bool3 to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } /// Returns the result of a componentwise not equal operation on a bool3 vector and a bool value. + /// Left hand side bool3 to use to compute componentwise not equal. + /// Right hand side bool to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (bool3 lhs, bool rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } /// Returns the result of a componentwise not equal operation on a bool value and a bool3 vector. + /// Left hand side bool to use to compute componentwise not equal. + /// Right hand side bool3 to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (bool lhs, bool3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } /// Returns the result of a componentwise not operation on a bool3 vector. + /// Value to use when computing the componentwise not. + /// bool3 result of the componentwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator ! (bool3 val) { return new bool3 (!val.x, !val.y, !val.z); } /// Returns the result of a componentwise bitwise and operation on two bool3 vectors. + /// Left hand side bool3 to use to compute componentwise bitwise and. + /// Right hand side bool3 to use to compute componentwise bitwise and. + /// bool3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator & (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } /// Returns the result of a componentwise bitwise and operation on a bool3 vector and a bool value. + /// Left hand side bool3 to use to compute componentwise bitwise and. + /// Right hand side bool to use to compute componentwise bitwise and. + /// bool3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator & (bool3 lhs, bool rhs) { return new bool3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } /// Returns the result of a componentwise bitwise and operation on a bool value and a bool3 vector. + /// Left hand side bool to use to compute componentwise bitwise and. + /// Right hand side bool3 to use to compute componentwise bitwise and. + /// bool3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator & (bool lhs, bool3 rhs) { return new bool3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } /// Returns the result of a componentwise bitwise or operation on two bool3 vectors. + /// Left hand side bool3 to use to compute componentwise bitwise or. + /// Right hand side bool3 to use to compute componentwise bitwise or. + /// bool3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator | (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } /// Returns the result of a componentwise bitwise or operation on a bool3 vector and a bool value. + /// Left hand side bool3 to use to compute componentwise bitwise or. + /// Right hand side bool to use to compute componentwise bitwise or. + /// bool3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator | (bool3 lhs, bool rhs) { return new bool3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } /// Returns the result of a componentwise bitwise or operation on a bool value and a bool3 vector. + /// Left hand side bool to use to compute componentwise bitwise or. + /// Right hand side bool3 to use to compute componentwise bitwise or. + /// bool3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator | (bool lhs, bool3 rhs) { return new bool3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } /// Returns the result of a componentwise bitwise exclusive or operation on two bool3 vectors. + /// Left hand side bool3 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool3 to use to compute componentwise bitwise exclusive or. + /// bool3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator ^ (bool3 lhs, bool3 rhs) { return new bool3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool3 vector and a bool value. + /// Left hand side bool3 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool to use to compute componentwise bitwise exclusive or. + /// bool3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator ^ (bool3 lhs, bool rhs) { return new bool3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool3 vector. + /// Left hand side bool to use to compute componentwise bitwise exclusive or. + /// Right hand side bool3 to use to compute componentwise bitwise exclusive or. + /// bool3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator ^ (bool lhs, bool3 rhs) { return new bool3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxx { @@ -160,6 +223,7 @@ public bool4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxy { @@ -168,6 +232,7 @@ public bool4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxz { @@ -176,6 +241,7 @@ public bool4 xxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyx { @@ -184,6 +250,7 @@ public bool4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyy { @@ -192,6 +259,7 @@ public bool4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyz { @@ -200,6 +268,7 @@ public bool4 xxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxzx { @@ -208,6 +277,7 @@ public bool4 xxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxzy { @@ -216,6 +286,7 @@ public bool4 xxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxzz { @@ -224,6 +295,7 @@ public bool4 xxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxx { @@ -232,6 +304,7 @@ public bool4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxy { @@ -240,6 +313,7 @@ public bool4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxz { @@ -248,6 +322,7 @@ public bool4 xyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyx { @@ -256,6 +331,7 @@ public bool4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyy { @@ -264,6 +340,7 @@ public bool4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyz { @@ -272,6 +349,7 @@ public bool4 xyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyzx { @@ -280,6 +358,7 @@ public bool4 xyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyzy { @@ -288,6 +367,7 @@ public bool4 xyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyzz { @@ -296,6 +376,7 @@ public bool4 xyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzxx { @@ -304,6 +385,7 @@ public bool4 xzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzxy { @@ -312,6 +394,7 @@ public bool4 xzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzxz { @@ -320,6 +403,7 @@ public bool4 xzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzyx { @@ -328,6 +412,7 @@ public bool4 xzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzyy { @@ -336,6 +421,7 @@ public bool4 xzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzyz { @@ -344,6 +430,7 @@ public bool4 xzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzzx { @@ -352,6 +439,7 @@ public bool4 xzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzzy { @@ -360,6 +448,7 @@ public bool4 xzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzzz { @@ -368,6 +457,7 @@ public bool4 xzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxx { @@ -376,6 +466,7 @@ public bool4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxy { @@ -384,6 +475,7 @@ public bool4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxz { @@ -392,6 +484,7 @@ public bool4 yxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyx { @@ -400,6 +493,7 @@ public bool4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyy { @@ -408,6 +502,7 @@ public bool4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyz { @@ -416,6 +511,7 @@ public bool4 yxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxzx { @@ -424,6 +520,7 @@ public bool4 yxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxzy { @@ -432,6 +529,7 @@ public bool4 yxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxzz { @@ -440,6 +538,7 @@ public bool4 yxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxx { @@ -448,6 +547,7 @@ public bool4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxy { @@ -456,6 +556,7 @@ public bool4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxz { @@ -464,6 +565,7 @@ public bool4 yyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyx { @@ -472,6 +574,7 @@ public bool4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyy { @@ -480,6 +583,7 @@ public bool4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyz { @@ -488,6 +592,7 @@ public bool4 yyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyzx { @@ -496,6 +601,7 @@ public bool4 yyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyzy { @@ -504,6 +610,7 @@ public bool4 yyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyzz { @@ -512,6 +619,7 @@ public bool4 yyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzxx { @@ -520,6 +628,7 @@ public bool4 yzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzxy { @@ -528,6 +637,7 @@ public bool4 yzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzxz { @@ -536,6 +646,7 @@ public bool4 yzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzyx { @@ -544,6 +655,7 @@ public bool4 yzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzyy { @@ -552,6 +664,7 @@ public bool4 yzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzyz { @@ -560,6 +673,7 @@ public bool4 yzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzzx { @@ -568,6 +682,7 @@ public bool4 yzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzzy { @@ -576,6 +691,7 @@ public bool4 yzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzzz { @@ -584,6 +700,7 @@ public bool4 yzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxxx { @@ -592,6 +709,7 @@ public bool4 zxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxxy { @@ -600,6 +718,7 @@ public bool4 zxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxxz { @@ -608,6 +727,7 @@ public bool4 zxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxyx { @@ -616,6 +736,7 @@ public bool4 zxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxyy { @@ -624,6 +745,7 @@ public bool4 zxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxyz { @@ -632,6 +754,7 @@ public bool4 zxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxzx { @@ -640,6 +763,7 @@ public bool4 zxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxzy { @@ -648,6 +772,7 @@ public bool4 zxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxzz { @@ -656,6 +781,7 @@ public bool4 zxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyxx { @@ -664,6 +790,7 @@ public bool4 zyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyxy { @@ -672,6 +799,7 @@ public bool4 zyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyxz { @@ -680,6 +808,7 @@ public bool4 zyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyyx { @@ -688,6 +817,7 @@ public bool4 zyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyyy { @@ -696,6 +826,7 @@ public bool4 zyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyyz { @@ -704,6 +835,7 @@ public bool4 zyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyzx { @@ -712,6 +844,7 @@ public bool4 zyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyzy { @@ -720,6 +853,7 @@ public bool4 zyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyzz { @@ -728,6 +862,7 @@ public bool4 zyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzxx { @@ -736,6 +871,7 @@ public bool4 zzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzxy { @@ -744,6 +880,7 @@ public bool4 zzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzxz { @@ -752,6 +889,7 @@ public bool4 zzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzyx { @@ -760,6 +898,7 @@ public bool4 zzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzyy { @@ -768,6 +907,7 @@ public bool4 zzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzyz { @@ -776,6 +916,7 @@ public bool4 zzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzzx { @@ -784,6 +925,7 @@ public bool4 zzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzzy { @@ -792,6 +934,7 @@ public bool4 zzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzzz { @@ -800,6 +943,7 @@ public bool4 zzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxx { @@ -808,6 +952,7 @@ public bool3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxy { @@ -816,6 +961,7 @@ public bool3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxz { @@ -824,6 +970,7 @@ public bool3 xxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyx { @@ -832,6 +979,7 @@ public bool3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyy { @@ -840,6 +988,7 @@ public bool3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyz { @@ -850,6 +999,7 @@ public bool3 xyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xzx { @@ -858,6 +1008,7 @@ public bool3 xzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xzy { @@ -868,6 +1019,7 @@ public bool3 xzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xzz { @@ -876,6 +1028,7 @@ public bool3 xzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxx { @@ -884,6 +1037,7 @@ public bool3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxy { @@ -892,6 +1046,7 @@ public bool3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxz { @@ -902,6 +1057,7 @@ public bool3 yxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyx { @@ -910,6 +1066,7 @@ public bool3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyy { @@ -918,6 +1075,7 @@ public bool3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyz { @@ -926,6 +1084,7 @@ public bool3 yyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yzx { @@ -936,6 +1095,7 @@ public bool3 yzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yzy { @@ -944,6 +1104,7 @@ public bool3 yzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yzz { @@ -952,6 +1113,7 @@ public bool3 yzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zxx { @@ -960,6 +1122,7 @@ public bool3 zxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zxy { @@ -970,6 +1133,7 @@ public bool3 zxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zxz { @@ -978,6 +1142,7 @@ public bool3 zxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zyx { @@ -988,6 +1153,7 @@ public bool3 zyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zyy { @@ -996,6 +1162,7 @@ public bool3 zyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zyz { @@ -1004,6 +1171,7 @@ public bool3 zyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zzx { @@ -1012,6 +1180,7 @@ public bool3 zzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zzy { @@ -1020,6 +1189,7 @@ public bool3 zzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zzz { @@ -1028,6 +1198,7 @@ public bool3 zzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xx { @@ -1036,6 +1207,7 @@ public bool2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xy { @@ -1046,6 +1218,7 @@ public bool2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xz { @@ -1056,6 +1229,7 @@ public bool2 xz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yx { @@ -1066,6 +1240,7 @@ public bool2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yy { @@ -1074,6 +1249,7 @@ public bool2 yy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yz { @@ -1084,6 +1260,7 @@ public bool2 yz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 zx { @@ -1094,6 +1271,7 @@ public bool2 zx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 zy { @@ -1104,6 +1282,7 @@ public bool2 zy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 zz { @@ -1135,19 +1314,25 @@ unsafe public bool this[int index] } /// Returns true if the bool3 is equal to a given bool3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } /// Returns true if the bool3 is equal to a given bool3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is bool3 converted && Equals(converted); } /// Returns a hash code for the bool3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the bool3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -1172,26 +1357,42 @@ public DebuggerProxy(bool3 v) public static partial class math { /// Returns a bool3 vector constructed from three bool values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// bool3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 bool3(bool x, bool y, bool z) { return new bool3(x, y, z); } /// Returns a bool3 vector constructed from a bool value and a bool2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// bool3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 bool3(bool x, bool2 yz) { return new bool3(x, yz); } /// Returns a bool3 vector constructed from a bool2 vector and a bool value. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// bool3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 bool3(bool2 xy, bool z) { return new bool3(xy, z); } /// Returns a bool3 vector constructed from a bool3 vector. + /// The constructed vector's xyz components will be set to this value. + /// bool3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 bool3(bool3 xyz) { return new bool3(xyz); } /// Returns a bool3 vector constructed from a single bool value by assigning it to every component. + /// bool to convert to bool3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 bool3(bool v) { return new bool3(v); } /// Returns a uint hash code of a bool3 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(bool3 v) { @@ -1203,6 +1404,8 @@ public static uint hash(bool3 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(bool3 v) { @@ -1210,40 +1413,62 @@ public static uint3 hashwide(bool3 v) } /// Returns the result of specified shuffling of the components from two bool3 vectors into a bool value. + /// bool3 to use as the left argument of the shuffle operation. + /// bool3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting bool. + /// bool result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool shuffle(bool3 a, bool3 b, ShuffleComponent x) + public static bool shuffle(bool3 left, bool3 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two bool3 vectors into a bool2 vector. + /// bool3 to use as the left argument of the shuffle operation. + /// bool3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting bool2 x component. + /// The ShuffleComponent to use when setting the resulting bool2 y component. + /// bool2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 shuffle(bool3 a, bool3 b, ShuffleComponent x, ShuffleComponent y) + public static bool2 shuffle(bool3 left, bool3 right, ShuffleComponent x, ShuffleComponent y) { return bool2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two bool3 vectors into a bool3 vector. + /// bool3 to use as the left argument of the shuffle operation. + /// bool3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting bool3 x component. + /// The ShuffleComponent to use when setting the resulting bool3 y component. + /// The ShuffleComponent to use when setting the resulting bool3 z component. + /// bool3 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 shuffle(bool3 a, bool3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + public static bool3 shuffle(bool3 left, bool3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return bool3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two bool3 vectors into a bool4 vector. + /// bool3 to use as the left argument of the shuffle operation. + /// bool3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting bool4 x component. + /// The ShuffleComponent to use when setting the resulting bool4 y component. + /// The ShuffleComponent to use when setting the resulting bool4 z component. + /// The ShuffleComponent to use when setting the resulting bool4 w component. + /// bool4 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 shuffle(bool3 a, bool3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + public static bool4 shuffle(bool3 left, bool3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return bool4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/bool3x2.gen.cs b/src/Unity.Mathematics/bool3x2.gen.cs index 1d899414..d1e5326b 100644 --- a/src/Unity.Mathematics/bool3x2.gen.cs +++ b/src/Unity.Mathematics/bool3x2.gen.cs @@ -14,15 +14,20 @@ namespace Unity.Mathematics { + /// A 3x2 matrix of bools. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct bool3x2 : System.IEquatable { + /// Column 0 of the matrix. public bool3 c0; + /// Column 1 of the matrix. public bool3 c1; /// Constructs a bool3x2 matrix from two bool3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3x2(bool3 c0, bool3 c1) { @@ -31,6 +36,12 @@ public bool3x2(bool3 c0, bool3 c1) } /// Constructs a bool3x2 matrix from 6 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3x2(bool m00, bool m01, bool m10, bool m11, @@ -41,6 +52,7 @@ public bool3x2(bool m00, bool m01, } /// Constructs a bool3x2 matrix from a single bool value by assigning it to every component. + /// bool to convert to bool3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3x2(bool v) { @@ -50,76 +62,125 @@ public bool3x2(bool v) /// Implicitly converts a single bool value to a bool3x2 matrix by assigning it to every component. + /// bool to convert to bool3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool3x2(bool v) { return new bool3x2(v); } /// Returns the result of a componentwise equality operation on two bool3x2 matrices. + /// Left hand side bool3x2 to use to compute componentwise equality. + /// Right hand side bool3x2 to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (bool3x2 lhs, bool3x2 rhs) { return new bool3x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on a bool3x2 matrix and a bool value. + /// Left hand side bool3x2 to use to compute componentwise equality. + /// Right hand side bool to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (bool3x2 lhs, bool rhs) { return new bool3x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on a bool value and a bool3x2 matrix. + /// Left hand side bool to use to compute componentwise equality. + /// Right hand side bool3x2 to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (bool lhs, bool3x2 rhs) { return new bool3x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two bool3x2 matrices. + /// Left hand side bool3x2 to use to compute componentwise not equal. + /// Right hand side bool3x2 to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (bool3x2 lhs, bool3x2 rhs) { return new bool3x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on a bool3x2 matrix and a bool value. + /// Left hand side bool3x2 to use to compute componentwise not equal. + /// Right hand side bool to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (bool3x2 lhs, bool rhs) { return new bool3x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on a bool value and a bool3x2 matrix. + /// Left hand side bool to use to compute componentwise not equal. + /// Right hand side bool3x2 to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (bool lhs, bool3x2 rhs) { return new bool3x2 (lhs != rhs.c0, lhs != rhs.c1); } /// Returns the result of a componentwise not operation on a bool3x2 matrix. + /// Value to use when computing the componentwise not. + /// bool3x2 result of the componentwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator ! (bool3x2 val) { return new bool3x2 (!val.c0, !val.c1); } /// Returns the result of a componentwise bitwise and operation on two bool3x2 matrices. + /// Left hand side bool3x2 to use to compute componentwise bitwise and. + /// Right hand side bool3x2 to use to compute componentwise bitwise and. + /// bool3x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator & (bool3x2 lhs, bool3x2 rhs) { return new bool3x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } /// Returns the result of a componentwise bitwise and operation on a bool3x2 matrix and a bool value. + /// Left hand side bool3x2 to use to compute componentwise bitwise and. + /// Right hand side bool to use to compute componentwise bitwise and. + /// bool3x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator & (bool3x2 lhs, bool rhs) { return new bool3x2 (lhs.c0 & rhs, lhs.c1 & rhs); } /// Returns the result of a componentwise bitwise and operation on a bool value and a bool3x2 matrix. + /// Left hand side bool to use to compute componentwise bitwise and. + /// Right hand side bool3x2 to use to compute componentwise bitwise and. + /// bool3x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator & (bool lhs, bool3x2 rhs) { return new bool3x2 (lhs & rhs.c0, lhs & rhs.c1); } /// Returns the result of a componentwise bitwise or operation on two bool3x2 matrices. + /// Left hand side bool3x2 to use to compute componentwise bitwise or. + /// Right hand side bool3x2 to use to compute componentwise bitwise or. + /// bool3x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator | (bool3x2 lhs, bool3x2 rhs) { return new bool3x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } /// Returns the result of a componentwise bitwise or operation on a bool3x2 matrix and a bool value. + /// Left hand side bool3x2 to use to compute componentwise bitwise or. + /// Right hand side bool to use to compute componentwise bitwise or. + /// bool3x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator | (bool3x2 lhs, bool rhs) { return new bool3x2 (lhs.c0 | rhs, lhs.c1 | rhs); } /// Returns the result of a componentwise bitwise or operation on a bool value and a bool3x2 matrix. + /// Left hand side bool to use to compute componentwise bitwise or. + /// Right hand side bool3x2 to use to compute componentwise bitwise or. + /// bool3x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator | (bool lhs, bool3x2 rhs) { return new bool3x2 (lhs | rhs.c0, lhs | rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on two bool3x2 matrices. + /// Left hand side bool3x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool3x2 to use to compute componentwise bitwise exclusive or. + /// bool3x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator ^ (bool3x2 lhs, bool3x2 rhs) { return new bool3x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool3x2 matrix and a bool value. + /// Left hand side bool3x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool to use to compute componentwise bitwise exclusive or. + /// bool3x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator ^ (bool3x2 lhs, bool rhs) { return new bool3x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool3x2 matrix. + /// Left hand side bool to use to compute componentwise bitwise exclusive or. + /// Right hand side bool3x2 to use to compute componentwise bitwise exclusive or. + /// bool3x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator ^ (bool lhs, bool3x2 rhs) { return new bool3x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } @@ -139,19 +200,25 @@ unsafe public ref bool3 this[int index] } /// Returns true if the bool3x2 is equal to a given bool3x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the bool3x2 is equal to a given bool3x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is bool3x2 converted && Equals(converted); } /// Returns a hash code for the bool3x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the bool3x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -163,10 +230,20 @@ public override string ToString() public static partial class math { /// Returns a bool3x2 matrix constructed from two bool3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// bool3x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 bool3x2(bool3 c0, bool3 c1) { return new bool3x2(c0, c1); } /// Returns a bool3x2 matrix constructed from from 6 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// bool3x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 bool3x2(bool m00, bool m01, bool m10, bool m11, @@ -178,10 +255,14 @@ public static bool3x2 bool3x2(bool m00, bool m01, } /// Returns a bool3x2 matrix constructed from a single bool value by assigning it to every component. + /// bool to convert to bool3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 bool3x2(bool v) { return new bool3x2(v); } /// Return the bool2x3 transpose of a bool3x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 transpose(bool3x2 v) { @@ -190,7 +271,9 @@ public static bool2x3 transpose(bool3x2 v) v.c1.x, v.c1.y, v.c1.z); } - /// Returns a uint hash code of a bool3x2 vector. + /// Returns a uint hash code of a bool3x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(bool3x2 v) { @@ -199,10 +282,12 @@ public static uint hash(bool3x2 v) } /// - /// Returns a uint3 vector hash code of a bool3x2 vector. + /// Returns a uint3 vector hash code of a bool3x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(bool3x2 v) { diff --git a/src/Unity.Mathematics/bool3x3.gen.cs b/src/Unity.Mathematics/bool3x3.gen.cs index d77fbbb8..e9ef62a8 100644 --- a/src/Unity.Mathematics/bool3x3.gen.cs +++ b/src/Unity.Mathematics/bool3x3.gen.cs @@ -14,16 +14,23 @@ namespace Unity.Mathematics { + /// A 3x3 matrix of bools. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct bool3x3 : System.IEquatable { + /// Column 0 of the matrix. public bool3 c0; + /// Column 1 of the matrix. public bool3 c1; + /// Column 2 of the matrix. public bool3 c2; /// Constructs a bool3x3 matrix from three bool3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3x3(bool3 c0, bool3 c1, bool3 c2) { @@ -33,6 +40,15 @@ public bool3x3(bool3 c0, bool3 c1, bool3 c2) } /// Constructs a bool3x3 matrix from 9 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3x3(bool m00, bool m01, bool m02, bool m10, bool m11, bool m12, @@ -44,6 +60,7 @@ public bool3x3(bool m00, bool m01, bool m02, } /// Constructs a bool3x3 matrix from a single bool value by assigning it to every component. + /// bool to convert to bool3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3x3(bool v) { @@ -54,76 +71,125 @@ public bool3x3(bool v) /// Implicitly converts a single bool value to a bool3x3 matrix by assigning it to every component. + /// bool to convert to bool3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool3x3(bool v) { return new bool3x3(v); } /// Returns the result of a componentwise equality operation on two bool3x3 matrices. + /// Left hand side bool3x3 to use to compute componentwise equality. + /// Right hand side bool3x3 to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (bool3x3 lhs, bool3x3 rhs) { return new bool3x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on a bool3x3 matrix and a bool value. + /// Left hand side bool3x3 to use to compute componentwise equality. + /// Right hand side bool to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (bool3x3 lhs, bool rhs) { return new bool3x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on a bool value and a bool3x3 matrix. + /// Left hand side bool to use to compute componentwise equality. + /// Right hand side bool3x3 to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (bool lhs, bool3x3 rhs) { return new bool3x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two bool3x3 matrices. + /// Left hand side bool3x3 to use to compute componentwise not equal. + /// Right hand side bool3x3 to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (bool3x3 lhs, bool3x3 rhs) { return new bool3x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on a bool3x3 matrix and a bool value. + /// Left hand side bool3x3 to use to compute componentwise not equal. + /// Right hand side bool to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (bool3x3 lhs, bool rhs) { return new bool3x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on a bool value and a bool3x3 matrix. + /// Left hand side bool to use to compute componentwise not equal. + /// Right hand side bool3x3 to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (bool lhs, bool3x3 rhs) { return new bool3x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } /// Returns the result of a componentwise not operation on a bool3x3 matrix. + /// Value to use when computing the componentwise not. + /// bool3x3 result of the componentwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator ! (bool3x3 val) { return new bool3x3 (!val.c0, !val.c1, !val.c2); } /// Returns the result of a componentwise bitwise and operation on two bool3x3 matrices. + /// Left hand side bool3x3 to use to compute componentwise bitwise and. + /// Right hand side bool3x3 to use to compute componentwise bitwise and. + /// bool3x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator & (bool3x3 lhs, bool3x3 rhs) { return new bool3x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } /// Returns the result of a componentwise bitwise and operation on a bool3x3 matrix and a bool value. + /// Left hand side bool3x3 to use to compute componentwise bitwise and. + /// Right hand side bool to use to compute componentwise bitwise and. + /// bool3x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator & (bool3x3 lhs, bool rhs) { return new bool3x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } /// Returns the result of a componentwise bitwise and operation on a bool value and a bool3x3 matrix. + /// Left hand side bool to use to compute componentwise bitwise and. + /// Right hand side bool3x3 to use to compute componentwise bitwise and. + /// bool3x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator & (bool lhs, bool3x3 rhs) { return new bool3x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } /// Returns the result of a componentwise bitwise or operation on two bool3x3 matrices. + /// Left hand side bool3x3 to use to compute componentwise bitwise or. + /// Right hand side bool3x3 to use to compute componentwise bitwise or. + /// bool3x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator | (bool3x3 lhs, bool3x3 rhs) { return new bool3x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } /// Returns the result of a componentwise bitwise or operation on a bool3x3 matrix and a bool value. + /// Left hand side bool3x3 to use to compute componentwise bitwise or. + /// Right hand side bool to use to compute componentwise bitwise or. + /// bool3x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator | (bool3x3 lhs, bool rhs) { return new bool3x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } /// Returns the result of a componentwise bitwise or operation on a bool value and a bool3x3 matrix. + /// Left hand side bool to use to compute componentwise bitwise or. + /// Right hand side bool3x3 to use to compute componentwise bitwise or. + /// bool3x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator | (bool lhs, bool3x3 rhs) { return new bool3x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on two bool3x3 matrices. + /// Left hand side bool3x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool3x3 to use to compute componentwise bitwise exclusive or. + /// bool3x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator ^ (bool3x3 lhs, bool3x3 rhs) { return new bool3x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool3x3 matrix and a bool value. + /// Left hand side bool3x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool to use to compute componentwise bitwise exclusive or. + /// bool3x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator ^ (bool3x3 lhs, bool rhs) { return new bool3x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool3x3 matrix. + /// Left hand side bool to use to compute componentwise bitwise exclusive or. + /// Right hand side bool3x3 to use to compute componentwise bitwise exclusive or. + /// bool3x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator ^ (bool lhs, bool3x3 rhs) { return new bool3x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } @@ -143,19 +209,25 @@ unsafe public ref bool3 this[int index] } /// Returns true if the bool3x3 is equal to a given bool3x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the bool3x3 is equal to a given bool3x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is bool3x3 converted && Equals(converted); } /// Returns a hash code for the bool3x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the bool3x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -167,10 +239,24 @@ public override string ToString() public static partial class math { /// Returns a bool3x3 matrix constructed from three bool3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// bool3x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 bool3x3(bool3 c0, bool3 c1, bool3 c2) { return new bool3x3(c0, c1, c2); } /// Returns a bool3x3 matrix constructed from from 9 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// bool3x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 bool3x3(bool m00, bool m01, bool m02, bool m10, bool m11, bool m12, @@ -182,10 +268,14 @@ public static bool3x3 bool3x3(bool m00, bool m01, bool m02, } /// Returns a bool3x3 matrix constructed from a single bool value by assigning it to every component. + /// bool to convert to bool3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 bool3x3(bool v) { return new bool3x3(v); } /// Return the bool3x3 transpose of a bool3x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 transpose(bool3x3 v) { @@ -195,7 +285,9 @@ public static bool3x3 transpose(bool3x3 v) v.c2.x, v.c2.y, v.c2.z); } - /// Returns a uint hash code of a bool3x3 vector. + /// Returns a uint hash code of a bool3x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(bool3x3 v) { @@ -205,10 +297,12 @@ public static uint hash(bool3x3 v) } /// - /// Returns a uint3 vector hash code of a bool3x3 vector. + /// Returns a uint3 vector hash code of a bool3x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(bool3x3 v) { diff --git a/src/Unity.Mathematics/bool3x4.gen.cs b/src/Unity.Mathematics/bool3x4.gen.cs index 05c7d79e..980f802c 100644 --- a/src/Unity.Mathematics/bool3x4.gen.cs +++ b/src/Unity.Mathematics/bool3x4.gen.cs @@ -14,17 +14,26 @@ namespace Unity.Mathematics { + /// A 3x4 matrix of bools. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct bool3x4 : System.IEquatable { + /// Column 0 of the matrix. public bool3 c0; + /// Column 1 of the matrix. public bool3 c1; + /// Column 2 of the matrix. public bool3 c2; + /// Column 3 of the matrix. public bool3 c3; /// Constructs a bool3x4 matrix from four bool3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3x4(bool3 c0, bool3 c1, bool3 c2, bool3 c3) { @@ -35,6 +44,18 @@ public bool3x4(bool3 c0, bool3 c1, bool3 c2, bool3 c3) } /// Constructs a bool3x4 matrix from 12 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3x4(bool m00, bool m01, bool m02, bool m03, bool m10, bool m11, bool m12, bool m13, @@ -47,6 +68,7 @@ public bool3x4(bool m00, bool m01, bool m02, bool m03, } /// Constructs a bool3x4 matrix from a single bool value by assigning it to every component. + /// bool to convert to bool3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3x4(bool v) { @@ -58,76 +80,125 @@ public bool3x4(bool v) /// Implicitly converts a single bool value to a bool3x4 matrix by assigning it to every component. + /// bool to convert to bool3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool3x4(bool v) { return new bool3x4(v); } /// Returns the result of a componentwise equality operation on two bool3x4 matrices. + /// Left hand side bool3x4 to use to compute componentwise equality. + /// Right hand side bool3x4 to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (bool3x4 lhs, bool3x4 rhs) { return new bool3x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on a bool3x4 matrix and a bool value. + /// Left hand side bool3x4 to use to compute componentwise equality. + /// Right hand side bool to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (bool3x4 lhs, bool rhs) { return new bool3x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on a bool value and a bool3x4 matrix. + /// Left hand side bool to use to compute componentwise equality. + /// Right hand side bool3x4 to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (bool lhs, bool3x4 rhs) { return new bool3x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two bool3x4 matrices. + /// Left hand side bool3x4 to use to compute componentwise not equal. + /// Right hand side bool3x4 to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (bool3x4 lhs, bool3x4 rhs) { return new bool3x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on a bool3x4 matrix and a bool value. + /// Left hand side bool3x4 to use to compute componentwise not equal. + /// Right hand side bool to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (bool3x4 lhs, bool rhs) { return new bool3x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on a bool value and a bool3x4 matrix. + /// Left hand side bool to use to compute componentwise not equal. + /// Right hand side bool3x4 to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (bool lhs, bool3x4 rhs) { return new bool3x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } /// Returns the result of a componentwise not operation on a bool3x4 matrix. + /// Value to use when computing the componentwise not. + /// bool3x4 result of the componentwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator ! (bool3x4 val) { return new bool3x4 (!val.c0, !val.c1, !val.c2, !val.c3); } /// Returns the result of a componentwise bitwise and operation on two bool3x4 matrices. + /// Left hand side bool3x4 to use to compute componentwise bitwise and. + /// Right hand side bool3x4 to use to compute componentwise bitwise and. + /// bool3x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator & (bool3x4 lhs, bool3x4 rhs) { return new bool3x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } /// Returns the result of a componentwise bitwise and operation on a bool3x4 matrix and a bool value. + /// Left hand side bool3x4 to use to compute componentwise bitwise and. + /// Right hand side bool to use to compute componentwise bitwise and. + /// bool3x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator & (bool3x4 lhs, bool rhs) { return new bool3x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } /// Returns the result of a componentwise bitwise and operation on a bool value and a bool3x4 matrix. + /// Left hand side bool to use to compute componentwise bitwise and. + /// Right hand side bool3x4 to use to compute componentwise bitwise and. + /// bool3x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator & (bool lhs, bool3x4 rhs) { return new bool3x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } /// Returns the result of a componentwise bitwise or operation on two bool3x4 matrices. + /// Left hand side bool3x4 to use to compute componentwise bitwise or. + /// Right hand side bool3x4 to use to compute componentwise bitwise or. + /// bool3x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator | (bool3x4 lhs, bool3x4 rhs) { return new bool3x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } /// Returns the result of a componentwise bitwise or operation on a bool3x4 matrix and a bool value. + /// Left hand side bool3x4 to use to compute componentwise bitwise or. + /// Right hand side bool to use to compute componentwise bitwise or. + /// bool3x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator | (bool3x4 lhs, bool rhs) { return new bool3x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } /// Returns the result of a componentwise bitwise or operation on a bool value and a bool3x4 matrix. + /// Left hand side bool to use to compute componentwise bitwise or. + /// Right hand side bool3x4 to use to compute componentwise bitwise or. + /// bool3x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator | (bool lhs, bool3x4 rhs) { return new bool3x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on two bool3x4 matrices. + /// Left hand side bool3x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool3x4 to use to compute componentwise bitwise exclusive or. + /// bool3x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator ^ (bool3x4 lhs, bool3x4 rhs) { return new bool3x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool3x4 matrix and a bool value. + /// Left hand side bool3x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool to use to compute componentwise bitwise exclusive or. + /// bool3x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator ^ (bool3x4 lhs, bool rhs) { return new bool3x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool3x4 matrix. + /// Left hand side bool to use to compute componentwise bitwise exclusive or. + /// Right hand side bool3x4 to use to compute componentwise bitwise exclusive or. + /// bool3x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator ^ (bool lhs, bool3x4 rhs) { return new bool3x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } @@ -147,19 +218,25 @@ unsafe public ref bool3 this[int index] } /// Returns true if the bool3x4 is equal to a given bool3x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the bool3x4 is equal to a given bool3x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is bool3x4 converted && Equals(converted); } /// Returns a hash code for the bool3x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the bool3x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -171,10 +248,28 @@ public override string ToString() public static partial class math { /// Returns a bool3x4 matrix constructed from four bool3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// bool3x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 bool3x4(bool3 c0, bool3 c1, bool3 c2, bool3 c3) { return new bool3x4(c0, c1, c2, c3); } /// Returns a bool3x4 matrix constructed from from 12 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// bool3x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 bool3x4(bool m00, bool m01, bool m02, bool m03, bool m10, bool m11, bool m12, bool m13, @@ -186,10 +281,14 @@ public static bool3x4 bool3x4(bool m00, bool m01, bool m02, bool m03, } /// Returns a bool3x4 matrix constructed from a single bool value by assigning it to every component. + /// bool to convert to bool3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 bool3x4(bool v) { return new bool3x4(v); } /// Return the bool4x3 transpose of a bool3x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 transpose(bool3x4 v) { @@ -200,7 +299,9 @@ public static bool4x3 transpose(bool3x4 v) v.c3.x, v.c3.y, v.c3.z); } - /// Returns a uint hash code of a bool3x4 vector. + /// Returns a uint hash code of a bool3x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(bool3x4 v) { @@ -211,10 +312,12 @@ public static uint hash(bool3x4 v) } /// - /// Returns a uint3 vector hash code of a bool3x4 vector. + /// Returns a uint3 vector hash code of a bool3x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(bool3x4 v) { diff --git a/src/Unity.Mathematics/bool4.gen.cs b/src/Unity.Mathematics/bool4.gen.cs index cfa48a39..6c793e35 100644 --- a/src/Unity.Mathematics/bool4.gen.cs +++ b/src/Unity.Mathematics/bool4.gen.cs @@ -16,22 +16,31 @@ namespace Unity.Mathematics { + /// A 4 component vector of bools. [DebuggerTypeProxy(typeof(bool4.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct bool4 : System.IEquatable { + /// x component of the vector. [MarshalAs(UnmanagedType.U1)] public bool x; + /// y component of the vector. [MarshalAs(UnmanagedType.U1)] public bool y; + /// z component of the vector. [MarshalAs(UnmanagedType.U1)] public bool z; + /// w component of the vector. [MarshalAs(UnmanagedType.U1)] public bool w; /// Constructs a bool4 vector from four bool values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4(bool x, bool y, bool z, bool w) { @@ -42,6 +51,9 @@ public bool4(bool x, bool y, bool z, bool w) } /// Constructs a bool4 vector from two bool values and a bool2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's zw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4(bool x, bool y, bool2 zw) { @@ -52,6 +64,9 @@ public bool4(bool x, bool y, bool2 zw) } /// Constructs a bool4 vector from a bool value, a bool2 vector and a bool value. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4(bool x, bool2 yz, bool w) { @@ -62,6 +77,8 @@ public bool4(bool x, bool2 yz, bool w) } /// Constructs a bool4 vector from a bool value and a bool3 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yzw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4(bool x, bool3 yzw) { @@ -72,6 +89,9 @@ public bool4(bool x, bool3 yzw) } /// Constructs a bool4 vector from a bool2 vector and two bool values. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4(bool2 xy, bool z, bool w) { @@ -82,6 +102,8 @@ public bool4(bool2 xy, bool z, bool w) } /// Constructs a bool4 vector from two bool2 vectors. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's zw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4(bool2 xy, bool2 zw) { @@ -92,6 +114,8 @@ public bool4(bool2 xy, bool2 zw) } /// Constructs a bool4 vector from a bool3 vector and a bool value. + /// The constructed vector's xyz components will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4(bool3 xyz, bool w) { @@ -102,6 +126,7 @@ public bool4(bool3 xyz, bool w) } /// Constructs a bool4 vector from a bool4 vector. + /// The constructed vector's xyzw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4(bool4 xyzw) { @@ -112,6 +137,7 @@ public bool4(bool4 xyzw) } /// Constructs a bool4 vector from a single bool value by assigning it to every component. + /// bool to convert to bool4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4(bool v) { @@ -123,82 +149,132 @@ public bool4(bool v) /// Implicitly converts a single bool value to a bool4 vector by assigning it to every component. + /// bool to convert to bool4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool4(bool v) { return new bool4(v); } /// Returns the result of a componentwise equality operation on two bool4 vectors. + /// Left hand side bool4 to use to compute componentwise equality. + /// Right hand side bool4 to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } /// Returns the result of a componentwise equality operation on a bool4 vector and a bool value. + /// Left hand side bool4 to use to compute componentwise equality. + /// Right hand side bool to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (bool4 lhs, bool rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } /// Returns the result of a componentwise equality operation on a bool value and a bool4 vector. + /// Left hand side bool to use to compute componentwise equality. + /// Right hand side bool4 to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (bool lhs, bool4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } /// Returns the result of a componentwise not equal operation on two bool4 vectors. + /// Left hand side bool4 to use to compute componentwise not equal. + /// Right hand side bool4 to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } /// Returns the result of a componentwise not equal operation on a bool4 vector and a bool value. + /// Left hand side bool4 to use to compute componentwise not equal. + /// Right hand side bool to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (bool4 lhs, bool rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } /// Returns the result of a componentwise not equal operation on a bool value and a bool4 vector. + /// Left hand side bool to use to compute componentwise not equal. + /// Right hand side bool4 to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (bool lhs, bool4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } /// Returns the result of a componentwise not operation on a bool4 vector. + /// Value to use when computing the componentwise not. + /// bool4 result of the componentwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator ! (bool4 val) { return new bool4 (!val.x, !val.y, !val.z, !val.w); } /// Returns the result of a componentwise bitwise and operation on two bool4 vectors. + /// Left hand side bool4 to use to compute componentwise bitwise and. + /// Right hand side bool4 to use to compute componentwise bitwise and. + /// bool4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator & (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } /// Returns the result of a componentwise bitwise and operation on a bool4 vector and a bool value. + /// Left hand side bool4 to use to compute componentwise bitwise and. + /// Right hand side bool to use to compute componentwise bitwise and. + /// bool4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator & (bool4 lhs, bool rhs) { return new bool4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } /// Returns the result of a componentwise bitwise and operation on a bool value and a bool4 vector. + /// Left hand side bool to use to compute componentwise bitwise and. + /// Right hand side bool4 to use to compute componentwise bitwise and. + /// bool4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator & (bool lhs, bool4 rhs) { return new bool4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } /// Returns the result of a componentwise bitwise or operation on two bool4 vectors. + /// Left hand side bool4 to use to compute componentwise bitwise or. + /// Right hand side bool4 to use to compute componentwise bitwise or. + /// bool4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator | (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } /// Returns the result of a componentwise bitwise or operation on a bool4 vector and a bool value. + /// Left hand side bool4 to use to compute componentwise bitwise or. + /// Right hand side bool to use to compute componentwise bitwise or. + /// bool4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator | (bool4 lhs, bool rhs) { return new bool4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } /// Returns the result of a componentwise bitwise or operation on a bool value and a bool4 vector. + /// Left hand side bool to use to compute componentwise bitwise or. + /// Right hand side bool4 to use to compute componentwise bitwise or. + /// bool4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator | (bool lhs, bool4 rhs) { return new bool4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } /// Returns the result of a componentwise bitwise exclusive or operation on two bool4 vectors. + /// Left hand side bool4 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool4 to use to compute componentwise bitwise exclusive or. + /// bool4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator ^ (bool4 lhs, bool4 rhs) { return new bool4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool4 vector and a bool value. + /// Left hand side bool4 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool to use to compute componentwise bitwise exclusive or. + /// bool4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator ^ (bool4 lhs, bool rhs) { return new bool4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool4 vector. + /// Left hand side bool to use to compute componentwise bitwise exclusive or. + /// Right hand side bool4 to use to compute componentwise bitwise exclusive or. + /// bool4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator ^ (bool lhs, bool4 rhs) { return new bool4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxx { @@ -207,6 +283,7 @@ public bool4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxy { @@ -215,6 +292,7 @@ public bool4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxz { @@ -223,6 +301,7 @@ public bool4 xxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxxw { @@ -231,6 +310,7 @@ public bool4 xxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyx { @@ -239,6 +319,7 @@ public bool4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyy { @@ -247,6 +328,7 @@ public bool4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyz { @@ -255,6 +337,7 @@ public bool4 xxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxyw { @@ -263,6 +346,7 @@ public bool4 xxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxzx { @@ -271,6 +355,7 @@ public bool4 xxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxzy { @@ -279,6 +364,7 @@ public bool4 xxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxzz { @@ -287,6 +373,7 @@ public bool4 xxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxzw { @@ -295,6 +382,7 @@ public bool4 xxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxwx { @@ -303,6 +391,7 @@ public bool4 xxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxwy { @@ -311,6 +400,7 @@ public bool4 xxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxwz { @@ -319,6 +409,7 @@ public bool4 xxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xxww { @@ -327,6 +418,7 @@ public bool4 xxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxx { @@ -335,6 +427,7 @@ public bool4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxy { @@ -343,6 +436,7 @@ public bool4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxz { @@ -351,6 +445,7 @@ public bool4 xyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyxw { @@ -359,6 +454,7 @@ public bool4 xyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyx { @@ -367,6 +463,7 @@ public bool4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyy { @@ -375,6 +472,7 @@ public bool4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyz { @@ -383,6 +481,7 @@ public bool4 xyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyyw { @@ -391,6 +490,7 @@ public bool4 xyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyzx { @@ -399,6 +499,7 @@ public bool4 xyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyzy { @@ -407,6 +508,7 @@ public bool4 xyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyzz { @@ -415,6 +517,7 @@ public bool4 xyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyzw { @@ -425,6 +528,7 @@ public bool4 xyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xywx { @@ -433,6 +537,7 @@ public bool4 xywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xywy { @@ -441,6 +546,7 @@ public bool4 xywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xywz { @@ -451,6 +557,7 @@ public bool4 xywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xyww { @@ -459,6 +566,7 @@ public bool4 xyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzxx { @@ -467,6 +575,7 @@ public bool4 xzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzxy { @@ -475,6 +584,7 @@ public bool4 xzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzxz { @@ -483,6 +593,7 @@ public bool4 xzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzxw { @@ -491,6 +602,7 @@ public bool4 xzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzyx { @@ -499,6 +611,7 @@ public bool4 xzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzyy { @@ -507,6 +620,7 @@ public bool4 xzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzyz { @@ -515,6 +629,7 @@ public bool4 xzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzyw { @@ -525,6 +640,7 @@ public bool4 xzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzzx { @@ -533,6 +649,7 @@ public bool4 xzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzzy { @@ -541,6 +658,7 @@ public bool4 xzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzzz { @@ -549,6 +667,7 @@ public bool4 xzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzzw { @@ -557,6 +676,7 @@ public bool4 xzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzwx { @@ -565,6 +685,7 @@ public bool4 xzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzwy { @@ -575,6 +696,7 @@ public bool4 xzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzwz { @@ -583,6 +705,7 @@ public bool4 xzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xzww { @@ -591,6 +714,7 @@ public bool4 xzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwxx { @@ -599,6 +723,7 @@ public bool4 xwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwxy { @@ -607,6 +732,7 @@ public bool4 xwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwxz { @@ -615,6 +741,7 @@ public bool4 xwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwxw { @@ -623,6 +750,7 @@ public bool4 xwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwyx { @@ -631,6 +759,7 @@ public bool4 xwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwyy { @@ -639,6 +768,7 @@ public bool4 xwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwyz { @@ -649,6 +779,7 @@ public bool4 xwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwyw { @@ -657,6 +788,7 @@ public bool4 xwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwzx { @@ -665,6 +797,7 @@ public bool4 xwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwzy { @@ -675,6 +808,7 @@ public bool4 xwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwzz { @@ -683,6 +817,7 @@ public bool4 xwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwzw { @@ -691,6 +826,7 @@ public bool4 xwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwwx { @@ -699,6 +835,7 @@ public bool4 xwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwwy { @@ -707,6 +844,7 @@ public bool4 xwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwwz { @@ -715,6 +853,7 @@ public bool4 xwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 xwww { @@ -723,6 +862,7 @@ public bool4 xwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxx { @@ -731,6 +871,7 @@ public bool4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxy { @@ -739,6 +880,7 @@ public bool4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxz { @@ -747,6 +889,7 @@ public bool4 yxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxxw { @@ -755,6 +898,7 @@ public bool4 yxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyx { @@ -763,6 +907,7 @@ public bool4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyy { @@ -771,6 +916,7 @@ public bool4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyz { @@ -779,6 +925,7 @@ public bool4 yxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxyw { @@ -787,6 +934,7 @@ public bool4 yxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxzx { @@ -795,6 +943,7 @@ public bool4 yxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxzy { @@ -803,6 +952,7 @@ public bool4 yxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxzz { @@ -811,6 +961,7 @@ public bool4 yxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxzw { @@ -821,6 +972,7 @@ public bool4 yxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxwx { @@ -829,6 +981,7 @@ public bool4 yxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxwy { @@ -837,6 +990,7 @@ public bool4 yxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxwz { @@ -847,6 +1001,7 @@ public bool4 yxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yxww { @@ -855,6 +1010,7 @@ public bool4 yxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxx { @@ -863,6 +1019,7 @@ public bool4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxy { @@ -871,6 +1028,7 @@ public bool4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxz { @@ -879,6 +1037,7 @@ public bool4 yyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyxw { @@ -887,6 +1046,7 @@ public bool4 yyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyx { @@ -895,6 +1055,7 @@ public bool4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyy { @@ -903,6 +1064,7 @@ public bool4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyz { @@ -911,6 +1073,7 @@ public bool4 yyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyyw { @@ -919,6 +1082,7 @@ public bool4 yyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyzx { @@ -927,6 +1091,7 @@ public bool4 yyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyzy { @@ -935,6 +1100,7 @@ public bool4 yyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyzz { @@ -943,6 +1109,7 @@ public bool4 yyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyzw { @@ -951,6 +1118,7 @@ public bool4 yyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yywx { @@ -959,6 +1127,7 @@ public bool4 yywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yywy { @@ -967,6 +1136,7 @@ public bool4 yywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yywz { @@ -975,6 +1145,7 @@ public bool4 yywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yyww { @@ -983,6 +1154,7 @@ public bool4 yyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzxx { @@ -991,6 +1163,7 @@ public bool4 yzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzxy { @@ -999,6 +1172,7 @@ public bool4 yzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzxz { @@ -1007,6 +1181,7 @@ public bool4 yzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzxw { @@ -1017,6 +1192,7 @@ public bool4 yzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzyx { @@ -1025,6 +1201,7 @@ public bool4 yzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzyy { @@ -1033,6 +1210,7 @@ public bool4 yzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzyz { @@ -1041,6 +1219,7 @@ public bool4 yzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzyw { @@ -1049,6 +1228,7 @@ public bool4 yzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzzx { @@ -1057,6 +1237,7 @@ public bool4 yzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzzy { @@ -1065,6 +1246,7 @@ public bool4 yzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzzz { @@ -1073,6 +1255,7 @@ public bool4 yzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzzw { @@ -1081,6 +1264,7 @@ public bool4 yzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzwx { @@ -1091,6 +1275,7 @@ public bool4 yzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzwy { @@ -1099,6 +1284,7 @@ public bool4 yzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzwz { @@ -1107,6 +1293,7 @@ public bool4 yzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 yzww { @@ -1115,6 +1302,7 @@ public bool4 yzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywxx { @@ -1123,6 +1311,7 @@ public bool4 ywxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywxy { @@ -1131,6 +1320,7 @@ public bool4 ywxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywxz { @@ -1141,6 +1331,7 @@ public bool4 ywxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywxw { @@ -1149,6 +1340,7 @@ public bool4 ywxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywyx { @@ -1157,6 +1349,7 @@ public bool4 ywyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywyy { @@ -1165,6 +1358,7 @@ public bool4 ywyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywyz { @@ -1173,6 +1367,7 @@ public bool4 ywyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywyw { @@ -1181,6 +1376,7 @@ public bool4 ywyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywzx { @@ -1191,6 +1387,7 @@ public bool4 ywzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywzy { @@ -1199,6 +1396,7 @@ public bool4 ywzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywzz { @@ -1207,6 +1405,7 @@ public bool4 ywzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywzw { @@ -1215,6 +1414,7 @@ public bool4 ywzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywwx { @@ -1223,6 +1423,7 @@ public bool4 ywwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywwy { @@ -1231,6 +1432,7 @@ public bool4 ywwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywwz { @@ -1239,6 +1441,7 @@ public bool4 ywwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 ywww { @@ -1247,6 +1450,7 @@ public bool4 ywww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxxx { @@ -1255,6 +1459,7 @@ public bool4 zxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxxy { @@ -1263,6 +1468,7 @@ public bool4 zxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxxz { @@ -1271,6 +1477,7 @@ public bool4 zxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxxw { @@ -1279,6 +1486,7 @@ public bool4 zxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxyx { @@ -1287,6 +1495,7 @@ public bool4 zxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxyy { @@ -1295,6 +1504,7 @@ public bool4 zxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxyz { @@ -1303,6 +1513,7 @@ public bool4 zxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxyw { @@ -1313,6 +1524,7 @@ public bool4 zxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxzx { @@ -1321,6 +1533,7 @@ public bool4 zxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxzy { @@ -1329,6 +1542,7 @@ public bool4 zxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxzz { @@ -1337,6 +1551,7 @@ public bool4 zxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxzw { @@ -1345,6 +1560,7 @@ public bool4 zxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxwx { @@ -1353,6 +1569,7 @@ public bool4 zxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxwy { @@ -1363,6 +1580,7 @@ public bool4 zxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxwz { @@ -1371,6 +1589,7 @@ public bool4 zxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zxww { @@ -1379,6 +1598,7 @@ public bool4 zxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyxx { @@ -1387,6 +1607,7 @@ public bool4 zyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyxy { @@ -1395,6 +1616,7 @@ public bool4 zyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyxz { @@ -1403,6 +1625,7 @@ public bool4 zyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyxw { @@ -1413,6 +1636,7 @@ public bool4 zyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyyx { @@ -1421,6 +1645,7 @@ public bool4 zyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyyy { @@ -1429,6 +1654,7 @@ public bool4 zyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyyz { @@ -1437,6 +1663,7 @@ public bool4 zyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyyw { @@ -1445,6 +1672,7 @@ public bool4 zyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyzx { @@ -1453,6 +1681,7 @@ public bool4 zyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyzy { @@ -1461,6 +1690,7 @@ public bool4 zyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyzz { @@ -1469,6 +1699,7 @@ public bool4 zyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyzw { @@ -1477,6 +1708,7 @@ public bool4 zyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zywx { @@ -1487,6 +1719,7 @@ public bool4 zywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zywy { @@ -1495,6 +1728,7 @@ public bool4 zywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zywz { @@ -1503,6 +1737,7 @@ public bool4 zywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zyww { @@ -1511,6 +1746,7 @@ public bool4 zyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzxx { @@ -1519,6 +1755,7 @@ public bool4 zzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzxy { @@ -1527,6 +1764,7 @@ public bool4 zzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzxz { @@ -1535,6 +1773,7 @@ public bool4 zzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzxw { @@ -1543,6 +1782,7 @@ public bool4 zzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzyx { @@ -1551,6 +1791,7 @@ public bool4 zzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzyy { @@ -1559,6 +1800,7 @@ public bool4 zzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzyz { @@ -1567,6 +1809,7 @@ public bool4 zzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzyw { @@ -1575,6 +1818,7 @@ public bool4 zzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzzx { @@ -1583,6 +1827,7 @@ public bool4 zzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzzy { @@ -1591,6 +1836,7 @@ public bool4 zzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzzz { @@ -1599,6 +1845,7 @@ public bool4 zzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzzw { @@ -1607,6 +1854,7 @@ public bool4 zzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzwx { @@ -1615,6 +1863,7 @@ public bool4 zzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzwy { @@ -1623,6 +1872,7 @@ public bool4 zzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzwz { @@ -1631,6 +1881,7 @@ public bool4 zzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zzww { @@ -1639,6 +1890,7 @@ public bool4 zzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwxx { @@ -1647,6 +1899,7 @@ public bool4 zwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwxy { @@ -1657,6 +1910,7 @@ public bool4 zwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwxz { @@ -1665,6 +1919,7 @@ public bool4 zwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwxw { @@ -1673,6 +1928,7 @@ public bool4 zwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwyx { @@ -1683,6 +1939,7 @@ public bool4 zwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwyy { @@ -1691,6 +1948,7 @@ public bool4 zwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwyz { @@ -1699,6 +1957,7 @@ public bool4 zwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwyw { @@ -1707,6 +1966,7 @@ public bool4 zwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwzx { @@ -1715,6 +1975,7 @@ public bool4 zwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwzy { @@ -1723,6 +1984,7 @@ public bool4 zwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwzz { @@ -1731,6 +1993,7 @@ public bool4 zwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwzw { @@ -1739,6 +2002,7 @@ public bool4 zwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwwx { @@ -1747,6 +2011,7 @@ public bool4 zwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwwy { @@ -1755,6 +2020,7 @@ public bool4 zwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwwz { @@ -1763,6 +2029,7 @@ public bool4 zwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 zwww { @@ -1771,6 +2038,7 @@ public bool4 zwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxxx { @@ -1779,6 +2047,7 @@ public bool4 wxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxxy { @@ -1787,6 +2056,7 @@ public bool4 wxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxxz { @@ -1795,6 +2065,7 @@ public bool4 wxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxxw { @@ -1803,6 +2074,7 @@ public bool4 wxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxyx { @@ -1811,6 +2083,7 @@ public bool4 wxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxyy { @@ -1819,6 +2092,7 @@ public bool4 wxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxyz { @@ -1829,6 +2103,7 @@ public bool4 wxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxyw { @@ -1837,6 +2112,7 @@ public bool4 wxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxzx { @@ -1845,6 +2121,7 @@ public bool4 wxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxzy { @@ -1855,6 +2132,7 @@ public bool4 wxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxzz { @@ -1863,6 +2141,7 @@ public bool4 wxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxzw { @@ -1871,6 +2150,7 @@ public bool4 wxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxwx { @@ -1879,6 +2159,7 @@ public bool4 wxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxwy { @@ -1887,6 +2168,7 @@ public bool4 wxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxwz { @@ -1895,6 +2177,7 @@ public bool4 wxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wxww { @@ -1903,6 +2186,7 @@ public bool4 wxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyxx { @@ -1911,6 +2195,7 @@ public bool4 wyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyxy { @@ -1919,6 +2204,7 @@ public bool4 wyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyxz { @@ -1929,6 +2215,7 @@ public bool4 wyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyxw { @@ -1937,6 +2224,7 @@ public bool4 wyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyyx { @@ -1945,6 +2233,7 @@ public bool4 wyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyyy { @@ -1953,6 +2242,7 @@ public bool4 wyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyyz { @@ -1961,6 +2251,7 @@ public bool4 wyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyyw { @@ -1969,6 +2260,7 @@ public bool4 wyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyzx { @@ -1979,6 +2271,7 @@ public bool4 wyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyzy { @@ -1987,6 +2280,7 @@ public bool4 wyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyzz { @@ -1995,6 +2289,7 @@ public bool4 wyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyzw { @@ -2003,6 +2298,7 @@ public bool4 wyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wywx { @@ -2011,6 +2307,7 @@ public bool4 wywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wywy { @@ -2019,6 +2316,7 @@ public bool4 wywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wywz { @@ -2027,6 +2325,7 @@ public bool4 wywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wyww { @@ -2035,6 +2334,7 @@ public bool4 wyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzxx { @@ -2043,6 +2343,7 @@ public bool4 wzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzxy { @@ -2053,6 +2354,7 @@ public bool4 wzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzxz { @@ -2061,6 +2363,7 @@ public bool4 wzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzxw { @@ -2069,6 +2372,7 @@ public bool4 wzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzyx { @@ -2079,6 +2383,7 @@ public bool4 wzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzyy { @@ -2087,6 +2392,7 @@ public bool4 wzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzyz { @@ -2095,6 +2401,7 @@ public bool4 wzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzyw { @@ -2103,6 +2410,7 @@ public bool4 wzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzzx { @@ -2111,6 +2419,7 @@ public bool4 wzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzzy { @@ -2119,6 +2428,7 @@ public bool4 wzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzzz { @@ -2127,6 +2437,7 @@ public bool4 wzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzzw { @@ -2135,6 +2446,7 @@ public bool4 wzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzwx { @@ -2143,6 +2455,7 @@ public bool4 wzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzwy { @@ -2151,6 +2464,7 @@ public bool4 wzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzwz { @@ -2159,6 +2473,7 @@ public bool4 wzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wzww { @@ -2167,6 +2482,7 @@ public bool4 wzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwxx { @@ -2175,6 +2491,7 @@ public bool4 wwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwxy { @@ -2183,6 +2500,7 @@ public bool4 wwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwxz { @@ -2191,6 +2509,7 @@ public bool4 wwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwxw { @@ -2199,6 +2518,7 @@ public bool4 wwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwyx { @@ -2207,6 +2527,7 @@ public bool4 wwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwyy { @@ -2215,6 +2536,7 @@ public bool4 wwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwyz { @@ -2223,6 +2545,7 @@ public bool4 wwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwyw { @@ -2231,6 +2554,7 @@ public bool4 wwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwzx { @@ -2239,6 +2563,7 @@ public bool4 wwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwzy { @@ -2247,6 +2572,7 @@ public bool4 wwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwzz { @@ -2255,6 +2581,7 @@ public bool4 wwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwzw { @@ -2263,6 +2590,7 @@ public bool4 wwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwwx { @@ -2271,6 +2599,7 @@ public bool4 wwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwwy { @@ -2279,6 +2608,7 @@ public bool4 wwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwwz { @@ -2287,6 +2617,7 @@ public bool4 wwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool4 wwww { @@ -2295,6 +2626,7 @@ public bool4 wwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxx { @@ -2303,6 +2635,7 @@ public bool3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxy { @@ -2311,6 +2644,7 @@ public bool3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxz { @@ -2319,6 +2653,7 @@ public bool3 xxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xxw { @@ -2327,6 +2662,7 @@ public bool3 xxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyx { @@ -2335,6 +2671,7 @@ public bool3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyy { @@ -2343,6 +2680,7 @@ public bool3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyz { @@ -2353,6 +2691,7 @@ public bool3 xyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xyw { @@ -2363,6 +2702,7 @@ public bool3 xyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xzx { @@ -2371,6 +2711,7 @@ public bool3 xzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xzy { @@ -2381,6 +2722,7 @@ public bool3 xzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xzz { @@ -2389,6 +2731,7 @@ public bool3 xzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xzw { @@ -2399,6 +2742,7 @@ public bool3 xzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xwx { @@ -2407,6 +2751,7 @@ public bool3 xwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xwy { @@ -2417,6 +2762,7 @@ public bool3 xwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xwz { @@ -2427,6 +2773,7 @@ public bool3 xwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 xww { @@ -2435,6 +2782,7 @@ public bool3 xww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxx { @@ -2443,6 +2791,7 @@ public bool3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxy { @@ -2451,6 +2800,7 @@ public bool3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxz { @@ -2461,6 +2811,7 @@ public bool3 yxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yxw { @@ -2471,6 +2822,7 @@ public bool3 yxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyx { @@ -2479,6 +2831,7 @@ public bool3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyy { @@ -2487,6 +2840,7 @@ public bool3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyz { @@ -2495,6 +2849,7 @@ public bool3 yyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yyw { @@ -2503,6 +2858,7 @@ public bool3 yyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yzx { @@ -2513,6 +2869,7 @@ public bool3 yzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yzy { @@ -2521,6 +2878,7 @@ public bool3 yzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yzz { @@ -2529,6 +2887,7 @@ public bool3 yzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yzw { @@ -2539,6 +2898,7 @@ public bool3 yzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 ywx { @@ -2549,6 +2909,7 @@ public bool3 ywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 ywy { @@ -2557,6 +2918,7 @@ public bool3 ywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 ywz { @@ -2567,6 +2929,7 @@ public bool3 ywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 yww { @@ -2575,6 +2938,7 @@ public bool3 yww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zxx { @@ -2583,6 +2947,7 @@ public bool3 zxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zxy { @@ -2593,6 +2958,7 @@ public bool3 zxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zxz { @@ -2601,6 +2967,7 @@ public bool3 zxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zxw { @@ -2611,6 +2978,7 @@ public bool3 zxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zyx { @@ -2621,6 +2989,7 @@ public bool3 zyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zyy { @@ -2629,6 +2998,7 @@ public bool3 zyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zyz { @@ -2637,6 +3007,7 @@ public bool3 zyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zyw { @@ -2647,6 +3018,7 @@ public bool3 zyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zzx { @@ -2655,6 +3027,7 @@ public bool3 zzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zzy { @@ -2663,6 +3036,7 @@ public bool3 zzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zzz { @@ -2671,6 +3045,7 @@ public bool3 zzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zzw { @@ -2679,6 +3054,7 @@ public bool3 zzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zwx { @@ -2689,6 +3065,7 @@ public bool3 zwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zwy { @@ -2699,6 +3076,7 @@ public bool3 zwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zwz { @@ -2707,6 +3085,7 @@ public bool3 zwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 zww { @@ -2715,6 +3094,7 @@ public bool3 zww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wxx { @@ -2723,6 +3103,7 @@ public bool3 wxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wxy { @@ -2733,6 +3114,7 @@ public bool3 wxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wxz { @@ -2743,6 +3125,7 @@ public bool3 wxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wxw { @@ -2751,6 +3134,7 @@ public bool3 wxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wyx { @@ -2761,6 +3145,7 @@ public bool3 wyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wyy { @@ -2769,6 +3154,7 @@ public bool3 wyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wyz { @@ -2779,6 +3165,7 @@ public bool3 wyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wyw { @@ -2787,6 +3174,7 @@ public bool3 wyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wzx { @@ -2797,6 +3185,7 @@ public bool3 wzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wzy { @@ -2807,6 +3196,7 @@ public bool3 wzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wzz { @@ -2815,6 +3205,7 @@ public bool3 wzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wzw { @@ -2823,6 +3214,7 @@ public bool3 wzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wwx { @@ -2831,6 +3223,7 @@ public bool3 wwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wwy { @@ -2839,6 +3232,7 @@ public bool3 wwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 wwz { @@ -2847,6 +3241,7 @@ public bool3 wwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool3 www { @@ -2855,6 +3250,7 @@ public bool3 www } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xx { @@ -2863,6 +3259,7 @@ public bool2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xy { @@ -2873,6 +3270,7 @@ public bool2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xz { @@ -2883,6 +3281,7 @@ public bool2 xz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 xw { @@ -2893,6 +3292,7 @@ public bool2 xw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yx { @@ -2903,6 +3303,7 @@ public bool2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yy { @@ -2911,6 +3312,7 @@ public bool2 yy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yz { @@ -2921,6 +3323,7 @@ public bool2 yz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 yw { @@ -2931,6 +3334,7 @@ public bool2 yw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 zx { @@ -2941,6 +3345,7 @@ public bool2 zx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 zy { @@ -2951,6 +3356,7 @@ public bool2 zy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 zz { @@ -2959,6 +3365,7 @@ public bool2 zz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 zw { @@ -2969,6 +3376,7 @@ public bool2 zw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 wx { @@ -2979,6 +3387,7 @@ public bool2 wx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 wy { @@ -2989,6 +3398,7 @@ public bool2 wy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 wz { @@ -2999,6 +3409,7 @@ public bool2 wz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public bool2 ww { @@ -3030,19 +3441,25 @@ unsafe public bool this[int index] } /// Returns true if the bool4 is equal to a given bool4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } /// Returns true if the bool4 is equal to a given bool4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is bool4 converted && Equals(converted); } /// Returns a hash code for the bool4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the bool4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -3069,42 +3486,74 @@ public DebuggerProxy(bool4 v) public static partial class math { /// Returns a bool4 vector constructed from four bool values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. + /// bool4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 bool4(bool x, bool y, bool z, bool w) { return new bool4(x, y, z, w); } /// Returns a bool4 vector constructed from two bool values and a bool2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's zw components will be set to this value. + /// bool4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 bool4(bool x, bool y, bool2 zw) { return new bool4(x, y, zw); } /// Returns a bool4 vector constructed from a bool value, a bool2 vector and a bool value. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// The constructed vector's w component will be set to this value. + /// bool4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 bool4(bool x, bool2 yz, bool w) { return new bool4(x, yz, w); } /// Returns a bool4 vector constructed from a bool value and a bool3 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yzw components will be set to this value. + /// bool4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 bool4(bool x, bool3 yzw) { return new bool4(x, yzw); } /// Returns a bool4 vector constructed from a bool2 vector and two bool values. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. + /// bool4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 bool4(bool2 xy, bool z, bool w) { return new bool4(xy, z, w); } /// Returns a bool4 vector constructed from two bool2 vectors. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's zw components will be set to this value. + /// bool4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 bool4(bool2 xy, bool2 zw) { return new bool4(xy, zw); } /// Returns a bool4 vector constructed from a bool3 vector and a bool value. + /// The constructed vector's xyz components will be set to this value. + /// The constructed vector's w component will be set to this value. + /// bool4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 bool4(bool3 xyz, bool w) { return new bool4(xyz, w); } /// Returns a bool4 vector constructed from a bool4 vector. + /// The constructed vector's xyzw components will be set to this value. + /// bool4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 bool4(bool4 xyzw) { return new bool4(xyzw); } /// Returns a bool4 vector constructed from a single bool value by assigning it to every component. + /// bool to convert to bool4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 bool4(bool v) { return new bool4(v); } /// Returns a uint hash code of a bool4 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(bool4 v) { @@ -3116,6 +3565,8 @@ public static uint hash(bool4 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(bool4 v) { @@ -3123,40 +3574,62 @@ public static uint4 hashwide(bool4 v) } /// Returns the result of specified shuffling of the components from two bool4 vectors into a bool value. + /// bool4 to use as the left argument of the shuffle operation. + /// bool4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting bool. + /// bool result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool shuffle(bool4 a, bool4 b, ShuffleComponent x) + public static bool shuffle(bool4 left, bool4 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two bool4 vectors into a bool2 vector. + /// bool4 to use as the left argument of the shuffle operation. + /// bool4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting bool2 x component. + /// The ShuffleComponent to use when setting the resulting bool2 y component. + /// bool2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool2 shuffle(bool4 a, bool4 b, ShuffleComponent x, ShuffleComponent y) + public static bool2 shuffle(bool4 left, bool4 right, ShuffleComponent x, ShuffleComponent y) { return bool2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two bool4 vectors into a bool3 vector. + /// bool4 to use as the left argument of the shuffle operation. + /// bool4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting bool3 x component. + /// The ShuffleComponent to use when setting the resulting bool3 y component. + /// The ShuffleComponent to use when setting the resulting bool3 z component. + /// bool3 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool3 shuffle(bool4 a, bool4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + public static bool3 shuffle(bool4 left, bool4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return bool3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two bool4 vectors into a bool4 vector. + /// bool4 to use as the left argument of the shuffle operation. + /// bool4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting bool4 x component. + /// The ShuffleComponent to use when setting the resulting bool4 y component. + /// The ShuffleComponent to use when setting the resulting bool4 z component. + /// The ShuffleComponent to use when setting the resulting bool4 w component. + /// bool4 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool4 shuffle(bool4 a, bool4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + public static bool4 shuffle(bool4 left, bool4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return bool4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/bool4x2.gen.cs b/src/Unity.Mathematics/bool4x2.gen.cs index d08929c1..e84c24ad 100644 --- a/src/Unity.Mathematics/bool4x2.gen.cs +++ b/src/Unity.Mathematics/bool4x2.gen.cs @@ -14,15 +14,20 @@ namespace Unity.Mathematics { + /// A 4x2 matrix of bools. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct bool4x2 : System.IEquatable { + /// Column 0 of the matrix. public bool4 c0; + /// Column 1 of the matrix. public bool4 c1; /// Constructs a bool4x2 matrix from two bool4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4x2(bool4 c0, bool4 c1) { @@ -31,6 +36,14 @@ public bool4x2(bool4 c0, bool4 c1) } /// Constructs a bool4x2 matrix from 8 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4x2(bool m00, bool m01, bool m10, bool m11, @@ -42,6 +55,7 @@ public bool4x2(bool m00, bool m01, } /// Constructs a bool4x2 matrix from a single bool value by assigning it to every component. + /// bool to convert to bool4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4x2(bool v) { @@ -51,76 +65,125 @@ public bool4x2(bool v) /// Implicitly converts a single bool value to a bool4x2 matrix by assigning it to every component. + /// bool to convert to bool4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool4x2(bool v) { return new bool4x2(v); } /// Returns the result of a componentwise equality operation on two bool4x2 matrices. + /// Left hand side bool4x2 to use to compute componentwise equality. + /// Right hand side bool4x2 to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (bool4x2 lhs, bool4x2 rhs) { return new bool4x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on a bool4x2 matrix and a bool value. + /// Left hand side bool4x2 to use to compute componentwise equality. + /// Right hand side bool to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (bool4x2 lhs, bool rhs) { return new bool4x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on a bool value and a bool4x2 matrix. + /// Left hand side bool to use to compute componentwise equality. + /// Right hand side bool4x2 to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (bool lhs, bool4x2 rhs) { return new bool4x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two bool4x2 matrices. + /// Left hand side bool4x2 to use to compute componentwise not equal. + /// Right hand side bool4x2 to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (bool4x2 lhs, bool4x2 rhs) { return new bool4x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on a bool4x2 matrix and a bool value. + /// Left hand side bool4x2 to use to compute componentwise not equal. + /// Right hand side bool to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (bool4x2 lhs, bool rhs) { return new bool4x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on a bool value and a bool4x2 matrix. + /// Left hand side bool to use to compute componentwise not equal. + /// Right hand side bool4x2 to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (bool lhs, bool4x2 rhs) { return new bool4x2 (lhs != rhs.c0, lhs != rhs.c1); } /// Returns the result of a componentwise not operation on a bool4x2 matrix. + /// Value to use when computing the componentwise not. + /// bool4x2 result of the componentwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator ! (bool4x2 val) { return new bool4x2 (!val.c0, !val.c1); } /// Returns the result of a componentwise bitwise and operation on two bool4x2 matrices. + /// Left hand side bool4x2 to use to compute componentwise bitwise and. + /// Right hand side bool4x2 to use to compute componentwise bitwise and. + /// bool4x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator & (bool4x2 lhs, bool4x2 rhs) { return new bool4x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } /// Returns the result of a componentwise bitwise and operation on a bool4x2 matrix and a bool value. + /// Left hand side bool4x2 to use to compute componentwise bitwise and. + /// Right hand side bool to use to compute componentwise bitwise and. + /// bool4x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator & (bool4x2 lhs, bool rhs) { return new bool4x2 (lhs.c0 & rhs, lhs.c1 & rhs); } /// Returns the result of a componentwise bitwise and operation on a bool value and a bool4x2 matrix. + /// Left hand side bool to use to compute componentwise bitwise and. + /// Right hand side bool4x2 to use to compute componentwise bitwise and. + /// bool4x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator & (bool lhs, bool4x2 rhs) { return new bool4x2 (lhs & rhs.c0, lhs & rhs.c1); } /// Returns the result of a componentwise bitwise or operation on two bool4x2 matrices. + /// Left hand side bool4x2 to use to compute componentwise bitwise or. + /// Right hand side bool4x2 to use to compute componentwise bitwise or. + /// bool4x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator | (bool4x2 lhs, bool4x2 rhs) { return new bool4x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } /// Returns the result of a componentwise bitwise or operation on a bool4x2 matrix and a bool value. + /// Left hand side bool4x2 to use to compute componentwise bitwise or. + /// Right hand side bool to use to compute componentwise bitwise or. + /// bool4x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator | (bool4x2 lhs, bool rhs) { return new bool4x2 (lhs.c0 | rhs, lhs.c1 | rhs); } /// Returns the result of a componentwise bitwise or operation on a bool value and a bool4x2 matrix. + /// Left hand side bool to use to compute componentwise bitwise or. + /// Right hand side bool4x2 to use to compute componentwise bitwise or. + /// bool4x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator | (bool lhs, bool4x2 rhs) { return new bool4x2 (lhs | rhs.c0, lhs | rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on two bool4x2 matrices. + /// Left hand side bool4x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool4x2 to use to compute componentwise bitwise exclusive or. + /// bool4x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator ^ (bool4x2 lhs, bool4x2 rhs) { return new bool4x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool4x2 matrix and a bool value. + /// Left hand side bool4x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool to use to compute componentwise bitwise exclusive or. + /// bool4x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator ^ (bool4x2 lhs, bool rhs) { return new bool4x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool4x2 matrix. + /// Left hand side bool to use to compute componentwise bitwise exclusive or. + /// Right hand side bool4x2 to use to compute componentwise bitwise exclusive or. + /// bool4x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator ^ (bool lhs, bool4x2 rhs) { return new bool4x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } @@ -140,19 +203,25 @@ unsafe public ref bool4 this[int index] } /// Returns true if the bool4x2 is equal to a given bool4x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the bool4x2 is equal to a given bool4x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is bool4x2 converted && Equals(converted); } /// Returns a hash code for the bool4x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the bool4x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -164,10 +233,22 @@ public override string ToString() public static partial class math { /// Returns a bool4x2 matrix constructed from two bool4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// bool4x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 bool4x2(bool4 c0, bool4 c1) { return new bool4x2(c0, c1); } /// Returns a bool4x2 matrix constructed from from 8 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// bool4x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 bool4x2(bool m00, bool m01, bool m10, bool m11, @@ -181,10 +262,14 @@ public static bool4x2 bool4x2(bool m00, bool m01, } /// Returns a bool4x2 matrix constructed from a single bool value by assigning it to every component. + /// bool to convert to bool4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 bool4x2(bool v) { return new bool4x2(v); } /// Return the bool2x4 transpose of a bool4x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 transpose(bool4x2 v) { @@ -193,7 +278,9 @@ public static bool2x4 transpose(bool4x2 v) v.c1.x, v.c1.y, v.c1.z, v.c1.w); } - /// Returns a uint hash code of a bool4x2 vector. + /// Returns a uint hash code of a bool4x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(bool4x2 v) { @@ -202,10 +289,12 @@ public static uint hash(bool4x2 v) } /// - /// Returns a uint4 vector hash code of a bool4x2 vector. + /// Returns a uint4 vector hash code of a bool4x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(bool4x2 v) { diff --git a/src/Unity.Mathematics/bool4x3.gen.cs b/src/Unity.Mathematics/bool4x3.gen.cs index b42b5b2b..7bf6773a 100644 --- a/src/Unity.Mathematics/bool4x3.gen.cs +++ b/src/Unity.Mathematics/bool4x3.gen.cs @@ -14,16 +14,23 @@ namespace Unity.Mathematics { + /// A 4x3 matrix of bools. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct bool4x3 : System.IEquatable { + /// Column 0 of the matrix. public bool4 c0; + /// Column 1 of the matrix. public bool4 c1; + /// Column 2 of the matrix. public bool4 c2; /// Constructs a bool4x3 matrix from three bool4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4x3(bool4 c0, bool4 c1, bool4 c2) { @@ -33,6 +40,18 @@ public bool4x3(bool4 c0, bool4 c1, bool4 c2) } /// Constructs a bool4x3 matrix from 12 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4x3(bool m00, bool m01, bool m02, bool m10, bool m11, bool m12, @@ -45,6 +64,7 @@ public bool4x3(bool m00, bool m01, bool m02, } /// Constructs a bool4x3 matrix from a single bool value by assigning it to every component. + /// bool to convert to bool4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4x3(bool v) { @@ -55,76 +75,125 @@ public bool4x3(bool v) /// Implicitly converts a single bool value to a bool4x3 matrix by assigning it to every component. + /// bool to convert to bool4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool4x3(bool v) { return new bool4x3(v); } /// Returns the result of a componentwise equality operation on two bool4x3 matrices. + /// Left hand side bool4x3 to use to compute componentwise equality. + /// Right hand side bool4x3 to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (bool4x3 lhs, bool4x3 rhs) { return new bool4x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on a bool4x3 matrix and a bool value. + /// Left hand side bool4x3 to use to compute componentwise equality. + /// Right hand side bool to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (bool4x3 lhs, bool rhs) { return new bool4x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on a bool value and a bool4x3 matrix. + /// Left hand side bool to use to compute componentwise equality. + /// Right hand side bool4x3 to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (bool lhs, bool4x3 rhs) { return new bool4x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two bool4x3 matrices. + /// Left hand side bool4x3 to use to compute componentwise not equal. + /// Right hand side bool4x3 to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (bool4x3 lhs, bool4x3 rhs) { return new bool4x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on a bool4x3 matrix and a bool value. + /// Left hand side bool4x3 to use to compute componentwise not equal. + /// Right hand side bool to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (bool4x3 lhs, bool rhs) { return new bool4x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on a bool value and a bool4x3 matrix. + /// Left hand side bool to use to compute componentwise not equal. + /// Right hand side bool4x3 to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (bool lhs, bool4x3 rhs) { return new bool4x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } /// Returns the result of a componentwise not operation on a bool4x3 matrix. + /// Value to use when computing the componentwise not. + /// bool4x3 result of the componentwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator ! (bool4x3 val) { return new bool4x3 (!val.c0, !val.c1, !val.c2); } /// Returns the result of a componentwise bitwise and operation on two bool4x3 matrices. + /// Left hand side bool4x3 to use to compute componentwise bitwise and. + /// Right hand side bool4x3 to use to compute componentwise bitwise and. + /// bool4x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator & (bool4x3 lhs, bool4x3 rhs) { return new bool4x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } /// Returns the result of a componentwise bitwise and operation on a bool4x3 matrix and a bool value. + /// Left hand side bool4x3 to use to compute componentwise bitwise and. + /// Right hand side bool to use to compute componentwise bitwise and. + /// bool4x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator & (bool4x3 lhs, bool rhs) { return new bool4x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } /// Returns the result of a componentwise bitwise and operation on a bool value and a bool4x3 matrix. + /// Left hand side bool to use to compute componentwise bitwise and. + /// Right hand side bool4x3 to use to compute componentwise bitwise and. + /// bool4x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator & (bool lhs, bool4x3 rhs) { return new bool4x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } /// Returns the result of a componentwise bitwise or operation on two bool4x3 matrices. + /// Left hand side bool4x3 to use to compute componentwise bitwise or. + /// Right hand side bool4x3 to use to compute componentwise bitwise or. + /// bool4x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator | (bool4x3 lhs, bool4x3 rhs) { return new bool4x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } /// Returns the result of a componentwise bitwise or operation on a bool4x3 matrix and a bool value. + /// Left hand side bool4x3 to use to compute componentwise bitwise or. + /// Right hand side bool to use to compute componentwise bitwise or. + /// bool4x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator | (bool4x3 lhs, bool rhs) { return new bool4x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } /// Returns the result of a componentwise bitwise or operation on a bool value and a bool4x3 matrix. + /// Left hand side bool to use to compute componentwise bitwise or. + /// Right hand side bool4x3 to use to compute componentwise bitwise or. + /// bool4x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator | (bool lhs, bool4x3 rhs) { return new bool4x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on two bool4x3 matrices. + /// Left hand side bool4x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool4x3 to use to compute componentwise bitwise exclusive or. + /// bool4x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator ^ (bool4x3 lhs, bool4x3 rhs) { return new bool4x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool4x3 matrix and a bool value. + /// Left hand side bool4x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool to use to compute componentwise bitwise exclusive or. + /// bool4x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator ^ (bool4x3 lhs, bool rhs) { return new bool4x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool4x3 matrix. + /// Left hand side bool to use to compute componentwise bitwise exclusive or. + /// Right hand side bool4x3 to use to compute componentwise bitwise exclusive or. + /// bool4x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator ^ (bool lhs, bool4x3 rhs) { return new bool4x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } @@ -144,19 +213,25 @@ unsafe public ref bool4 this[int index] } /// Returns true if the bool4x3 is equal to a given bool4x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the bool4x3 is equal to a given bool4x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is bool4x3 converted && Equals(converted); } /// Returns a hash code for the bool4x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the bool4x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -168,10 +243,27 @@ public override string ToString() public static partial class math { /// Returns a bool4x3 matrix constructed from three bool4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// bool4x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 bool4x3(bool4 c0, bool4 c1, bool4 c2) { return new bool4x3(c0, c1, c2); } /// Returns a bool4x3 matrix constructed from from 12 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// bool4x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 bool4x3(bool m00, bool m01, bool m02, bool m10, bool m11, bool m12, @@ -185,10 +277,14 @@ public static bool4x3 bool4x3(bool m00, bool m01, bool m02, } /// Returns a bool4x3 matrix constructed from a single bool value by assigning it to every component. + /// bool to convert to bool4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 bool4x3(bool v) { return new bool4x3(v); } /// Return the bool3x4 transpose of a bool4x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 transpose(bool4x3 v) { @@ -198,7 +294,9 @@ public static bool3x4 transpose(bool4x3 v) v.c2.x, v.c2.y, v.c2.z, v.c2.w); } - /// Returns a uint hash code of a bool4x3 vector. + /// Returns a uint hash code of a bool4x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(bool4x3 v) { @@ -208,10 +306,12 @@ public static uint hash(bool4x3 v) } /// - /// Returns a uint4 vector hash code of a bool4x3 vector. + /// Returns a uint4 vector hash code of a bool4x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(bool4x3 v) { diff --git a/src/Unity.Mathematics/bool4x4.gen.cs b/src/Unity.Mathematics/bool4x4.gen.cs index 9230e00f..ec9dff81 100644 --- a/src/Unity.Mathematics/bool4x4.gen.cs +++ b/src/Unity.Mathematics/bool4x4.gen.cs @@ -14,17 +14,26 @@ namespace Unity.Mathematics { + /// A 4x4 matrix of bools. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct bool4x4 : System.IEquatable { + /// Column 0 of the matrix. public bool4 c0; + /// Column 1 of the matrix. public bool4 c1; + /// Column 2 of the matrix. public bool4 c2; + /// Column 3 of the matrix. public bool4 c3; /// Constructs a bool4x4 matrix from four bool4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4x4(bool4 c0, bool4 c1, bool4 c2, bool4 c3) { @@ -35,6 +44,22 @@ public bool4x4(bool4 c0, bool4 c1, bool4 c2, bool4 c3) } /// Constructs a bool4x4 matrix from 16 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// The matrix at row 3, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4x4(bool m00, bool m01, bool m02, bool m03, bool m10, bool m11, bool m12, bool m13, @@ -48,6 +73,7 @@ public bool4x4(bool m00, bool m01, bool m02, bool m03, } /// Constructs a bool4x4 matrix from a single bool value by assigning it to every component. + /// bool to convert to bool4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4x4(bool v) { @@ -59,76 +85,125 @@ public bool4x4(bool v) /// Implicitly converts a single bool value to a bool4x4 matrix by assigning it to every component. + /// bool to convert to bool4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator bool4x4(bool v) { return new bool4x4(v); } /// Returns the result of a componentwise equality operation on two bool4x4 matrices. + /// Left hand side bool4x4 to use to compute componentwise equality. + /// Right hand side bool4x4 to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (bool4x4 lhs, bool4x4 rhs) { return new bool4x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on a bool4x4 matrix and a bool value. + /// Left hand side bool4x4 to use to compute componentwise equality. + /// Right hand side bool to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (bool4x4 lhs, bool rhs) { return new bool4x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on a bool value and a bool4x4 matrix. + /// Left hand side bool to use to compute componentwise equality. + /// Right hand side bool4x4 to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (bool lhs, bool4x4 rhs) { return new bool4x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two bool4x4 matrices. + /// Left hand side bool4x4 to use to compute componentwise not equal. + /// Right hand side bool4x4 to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (bool4x4 lhs, bool4x4 rhs) { return new bool4x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on a bool4x4 matrix and a bool value. + /// Left hand side bool4x4 to use to compute componentwise not equal. + /// Right hand side bool to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (bool4x4 lhs, bool rhs) { return new bool4x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on a bool value and a bool4x4 matrix. + /// Left hand side bool to use to compute componentwise not equal. + /// Right hand side bool4x4 to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (bool lhs, bool4x4 rhs) { return new bool4x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } /// Returns the result of a componentwise not operation on a bool4x4 matrix. + /// Value to use when computing the componentwise not. + /// bool4x4 result of the componentwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator ! (bool4x4 val) { return new bool4x4 (!val.c0, !val.c1, !val.c2, !val.c3); } /// Returns the result of a componentwise bitwise and operation on two bool4x4 matrices. + /// Left hand side bool4x4 to use to compute componentwise bitwise and. + /// Right hand side bool4x4 to use to compute componentwise bitwise and. + /// bool4x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator & (bool4x4 lhs, bool4x4 rhs) { return new bool4x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } /// Returns the result of a componentwise bitwise and operation on a bool4x4 matrix and a bool value. + /// Left hand side bool4x4 to use to compute componentwise bitwise and. + /// Right hand side bool to use to compute componentwise bitwise and. + /// bool4x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator & (bool4x4 lhs, bool rhs) { return new bool4x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } /// Returns the result of a componentwise bitwise and operation on a bool value and a bool4x4 matrix. + /// Left hand side bool to use to compute componentwise bitwise and. + /// Right hand side bool4x4 to use to compute componentwise bitwise and. + /// bool4x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator & (bool lhs, bool4x4 rhs) { return new bool4x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } /// Returns the result of a componentwise bitwise or operation on two bool4x4 matrices. + /// Left hand side bool4x4 to use to compute componentwise bitwise or. + /// Right hand side bool4x4 to use to compute componentwise bitwise or. + /// bool4x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator | (bool4x4 lhs, bool4x4 rhs) { return new bool4x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } /// Returns the result of a componentwise bitwise or operation on a bool4x4 matrix and a bool value. + /// Left hand side bool4x4 to use to compute componentwise bitwise or. + /// Right hand side bool to use to compute componentwise bitwise or. + /// bool4x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator | (bool4x4 lhs, bool rhs) { return new bool4x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } /// Returns the result of a componentwise bitwise or operation on a bool value and a bool4x4 matrix. + /// Left hand side bool to use to compute componentwise bitwise or. + /// Right hand side bool4x4 to use to compute componentwise bitwise or. + /// bool4x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator | (bool lhs, bool4x4 rhs) { return new bool4x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on two bool4x4 matrices. + /// Left hand side bool4x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool4x4 to use to compute componentwise bitwise exclusive or. + /// bool4x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator ^ (bool4x4 lhs, bool4x4 rhs) { return new bool4x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool4x4 matrix and a bool value. + /// Left hand side bool4x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side bool to use to compute componentwise bitwise exclusive or. + /// bool4x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator ^ (bool4x4 lhs, bool rhs) { return new bool4x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool4x4 matrix. + /// Left hand side bool to use to compute componentwise bitwise exclusive or. + /// Right hand side bool4x4 to use to compute componentwise bitwise exclusive or. + /// bool4x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator ^ (bool lhs, bool4x4 rhs) { return new bool4x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } @@ -148,19 +223,25 @@ unsafe public ref bool4 this[int index] } /// Returns true if the bool4x4 is equal to a given bool4x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(bool4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the bool4x4 is equal to a given bool4x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is bool4x4 converted && Equals(converted); } /// Returns a hash code for the bool4x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the bool4x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -172,10 +253,32 @@ public override string ToString() public static partial class math { /// Returns a bool4x4 matrix constructed from four bool4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// bool4x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 bool4x4(bool4 c0, bool4 c1, bool4 c2, bool4 c3) { return new bool4x4(c0, c1, c2, c3); } /// Returns a bool4x4 matrix constructed from from 16 bool values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// The matrix at row 3, column 3 will be set to this value. + /// bool4x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 bool4x4(bool m00, bool m01, bool m02, bool m03, bool m10, bool m11, bool m12, bool m13, @@ -189,10 +292,14 @@ public static bool4x4 bool4x4(bool m00, bool m01, bool m02, bool m03, } /// Returns a bool4x4 matrix constructed from a single bool value by assigning it to every component. + /// bool to convert to bool4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 bool4x4(bool v) { return new bool4x4(v); } /// Return the bool4x4 transpose of a bool4x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 transpose(bool4x4 v) { @@ -203,7 +310,9 @@ public static bool4x4 transpose(bool4x4 v) v.c3.x, v.c3.y, v.c3.z, v.c3.w); } - /// Returns a uint hash code of a bool4x4 vector. + /// Returns a uint hash code of a bool4x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(bool4x4 v) { @@ -214,10 +323,12 @@ public static uint hash(bool4x4 v) } /// - /// Returns a uint4 vector hash code of a bool4x4 vector. + /// Returns a uint4 vector hash code of a bool4x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(bool4x4 v) { diff --git a/src/Unity.Mathematics/double2.gen.cs b/src/Unity.Mathematics/double2.gen.cs index 1566f3da..11fbae9d 100644 --- a/src/Unity.Mathematics/double2.gen.cs +++ b/src/Unity.Mathematics/double2.gen.cs @@ -15,18 +15,23 @@ namespace Unity.Mathematics { + /// A 2 component vector of doubles. [DebuggerTypeProxy(typeof(double2.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct double2 : System.IEquatable, IFormattable { + /// x component of the vector. public double x; + /// y component of the vector. public double y; /// double2 zero value. public static readonly double2 zero; /// Constructs a double2 vector from two double values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2(double x, double y) { @@ -35,6 +40,7 @@ public double2(double x, double y) } /// Constructs a double2 vector from a double2 vector. + /// The constructed vector's xy components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2(double2 xy) { @@ -43,6 +49,7 @@ public double2(double2 xy) } /// Constructs a double2 vector from a single double value by assigning it to every component. + /// double to convert to double2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2(double v) { @@ -51,6 +58,7 @@ public double2(double v) } /// Constructs a double2 vector from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2(bool v) { @@ -59,6 +67,7 @@ public double2(bool v) } /// Constructs a double2 vector from a bool2 vector by componentwise conversion. + /// bool2 to convert to double2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2(bool2 v) { @@ -67,6 +76,7 @@ public double2(bool2 v) } /// Constructs a double2 vector from a single int value by converting it to double and assigning it to every component. + /// int to convert to double2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2(int v) { @@ -75,6 +85,7 @@ public double2(int v) } /// Constructs a double2 vector from a int2 vector by componentwise conversion. + /// int2 to convert to double2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2(int2 v) { @@ -83,6 +94,7 @@ public double2(int2 v) } /// Constructs a double2 vector from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2(uint v) { @@ -91,6 +103,7 @@ public double2(uint v) } /// Constructs a double2 vector from a uint2 vector by componentwise conversion. + /// uint2 to convert to double2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2(uint2 v) { @@ -99,6 +112,7 @@ public double2(uint2 v) } /// Constructs a double2 vector from a single half value by converting it to double and assigning it to every component. + /// half to convert to double2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2(half v) { @@ -107,6 +121,7 @@ public double2(half v) } /// Constructs a double2 vector from a half2 vector by componentwise conversion. + /// half2 to convert to double2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2(half2 v) { @@ -115,6 +130,7 @@ public double2(half2 v) } /// Constructs a double2 vector from a single float value by converting it to double and assigning it to every component. + /// float to convert to double2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2(float v) { @@ -123,6 +139,7 @@ public double2(float v) } /// Constructs a double2 vector from a float2 vector by componentwise conversion. + /// float2 to convert to double2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2(float2 v) { @@ -132,215 +149,345 @@ public double2(float2 v) /// Implicitly converts a single double value to a double2 vector by assigning it to every component. + /// double to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2(double v) { return new double2(v); } /// Explicitly converts a single bool value to a double2 vector by converting it to double and assigning it to every component. + /// bool to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double2(bool v) { return new double2(v); } /// Explicitly converts a bool2 vector to a double2 vector by componentwise conversion. + /// bool2 to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double2(bool2 v) { return new double2(v); } /// Implicitly converts a single int value to a double2 vector by converting it to double and assigning it to every component. + /// int to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2(int v) { return new double2(v); } /// Implicitly converts a int2 vector to a double2 vector by componentwise conversion. + /// int2 to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2(int2 v) { return new double2(v); } /// Implicitly converts a single uint value to a double2 vector by converting it to double and assigning it to every component. + /// uint to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2(uint v) { return new double2(v); } /// Implicitly converts a uint2 vector to a double2 vector by componentwise conversion. + /// uint2 to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2(uint2 v) { return new double2(v); } /// Implicitly converts a single half value to a double2 vector by converting it to double and assigning it to every component. + /// half to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2(half v) { return new double2(v); } /// Implicitly converts a half2 vector to a double2 vector by componentwise conversion. + /// half2 to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2(half2 v) { return new double2(v); } /// Implicitly converts a single float value to a double2 vector by converting it to double and assigning it to every component. + /// float to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2(float v) { return new double2(v); } /// Implicitly converts a float2 vector to a double2 vector by componentwise conversion. + /// float2 to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2(float2 v) { return new double2(v); } /// Returns the result of a componentwise multiplication operation on two double2 vectors. + /// Left hand side double2 to use to compute componentwise multiplication. + /// Right hand side double2 to use to compute componentwise multiplication. + /// double2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator * (double2 lhs, double2 rhs) { return new double2 (lhs.x * rhs.x, lhs.y * rhs.y); } /// Returns the result of a componentwise multiplication operation on a double2 vector and a double value. + /// Left hand side double2 to use to compute componentwise multiplication. + /// Right hand side double to use to compute componentwise multiplication. + /// double2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator * (double2 lhs, double rhs) { return new double2 (lhs.x * rhs, lhs.y * rhs); } /// Returns the result of a componentwise multiplication operation on a double value and a double2 vector. + /// Left hand side double to use to compute componentwise multiplication. + /// Right hand side double2 to use to compute componentwise multiplication. + /// double2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator * (double lhs, double2 rhs) { return new double2 (lhs * rhs.x, lhs * rhs.y); } /// Returns the result of a componentwise addition operation on two double2 vectors. + /// Left hand side double2 to use to compute componentwise addition. + /// Right hand side double2 to use to compute componentwise addition. + /// double2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator + (double2 lhs, double2 rhs) { return new double2 (lhs.x + rhs.x, lhs.y + rhs.y); } /// Returns the result of a componentwise addition operation on a double2 vector and a double value. + /// Left hand side double2 to use to compute componentwise addition. + /// Right hand side double to use to compute componentwise addition. + /// double2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator + (double2 lhs, double rhs) { return new double2 (lhs.x + rhs, lhs.y + rhs); } /// Returns the result of a componentwise addition operation on a double value and a double2 vector. + /// Left hand side double to use to compute componentwise addition. + /// Right hand side double2 to use to compute componentwise addition. + /// double2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator + (double lhs, double2 rhs) { return new double2 (lhs + rhs.x, lhs + rhs.y); } /// Returns the result of a componentwise subtraction operation on two double2 vectors. + /// Left hand side double2 to use to compute componentwise subtraction. + /// Right hand side double2 to use to compute componentwise subtraction. + /// double2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator - (double2 lhs, double2 rhs) { return new double2 (lhs.x - rhs.x, lhs.y - rhs.y); } /// Returns the result of a componentwise subtraction operation on a double2 vector and a double value. + /// Left hand side double2 to use to compute componentwise subtraction. + /// Right hand side double to use to compute componentwise subtraction. + /// double2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator - (double2 lhs, double rhs) { return new double2 (lhs.x - rhs, lhs.y - rhs); } /// Returns the result of a componentwise subtraction operation on a double value and a double2 vector. + /// Left hand side double to use to compute componentwise subtraction. + /// Right hand side double2 to use to compute componentwise subtraction. + /// double2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator - (double lhs, double2 rhs) { return new double2 (lhs - rhs.x, lhs - rhs.y); } /// Returns the result of a componentwise division operation on two double2 vectors. + /// Left hand side double2 to use to compute componentwise division. + /// Right hand side double2 to use to compute componentwise division. + /// double2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator / (double2 lhs, double2 rhs) { return new double2 (lhs.x / rhs.x, lhs.y / rhs.y); } /// Returns the result of a componentwise division operation on a double2 vector and a double value. + /// Left hand side double2 to use to compute componentwise division. + /// Right hand side double to use to compute componentwise division. + /// double2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator / (double2 lhs, double rhs) { return new double2 (lhs.x / rhs, lhs.y / rhs); } /// Returns the result of a componentwise division operation on a double value and a double2 vector. + /// Left hand side double to use to compute componentwise division. + /// Right hand side double2 to use to compute componentwise division. + /// double2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator / (double lhs, double2 rhs) { return new double2 (lhs / rhs.x, lhs / rhs.y); } /// Returns the result of a componentwise modulus operation on two double2 vectors. + /// Left hand side double2 to use to compute componentwise modulus. + /// Right hand side double2 to use to compute componentwise modulus. + /// double2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator % (double2 lhs, double2 rhs) { return new double2 (lhs.x % rhs.x, lhs.y % rhs.y); } /// Returns the result of a componentwise modulus operation on a double2 vector and a double value. + /// Left hand side double2 to use to compute componentwise modulus. + /// Right hand side double to use to compute componentwise modulus. + /// double2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator % (double2 lhs, double rhs) { return new double2 (lhs.x % rhs, lhs.y % rhs); } /// Returns the result of a componentwise modulus operation on a double value and a double2 vector. + /// Left hand side double to use to compute componentwise modulus. + /// Right hand side double2 to use to compute componentwise modulus. + /// double2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator % (double lhs, double2 rhs) { return new double2 (lhs % rhs.x, lhs % rhs.y); } /// Returns the result of a componentwise increment operation on a double2 vector. + /// Value to use when computing the componentwise increment. + /// double2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator ++ (double2 val) { return new double2 (++val.x, ++val.y); } /// Returns the result of a componentwise decrement operation on a double2 vector. + /// Value to use when computing the componentwise decrement. + /// double2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator -- (double2 val) { return new double2 (--val.x, --val.y); } /// Returns the result of a componentwise less than operation on two double2 vectors. + /// Left hand side double2 to use to compute componentwise less than. + /// Right hand side double2 to use to compute componentwise less than. + /// bool2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (double2 lhs, double2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } /// Returns the result of a componentwise less than operation on a double2 vector and a double value. + /// Left hand side double2 to use to compute componentwise less than. + /// Right hand side double to use to compute componentwise less than. + /// bool2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (double2 lhs, double rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } /// Returns the result of a componentwise less than operation on a double value and a double2 vector. + /// Left hand side double to use to compute componentwise less than. + /// Right hand side double2 to use to compute componentwise less than. + /// bool2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (double lhs, double2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } /// Returns the result of a componentwise less or equal operation on two double2 vectors. + /// Left hand side double2 to use to compute componentwise less or equal. + /// Right hand side double2 to use to compute componentwise less or equal. + /// bool2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (double2 lhs, double2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } /// Returns the result of a componentwise less or equal operation on a double2 vector and a double value. + /// Left hand side double2 to use to compute componentwise less or equal. + /// Right hand side double to use to compute componentwise less or equal. + /// bool2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (double2 lhs, double rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } /// Returns the result of a componentwise less or equal operation on a double value and a double2 vector. + /// Left hand side double to use to compute componentwise less or equal. + /// Right hand side double2 to use to compute componentwise less or equal. + /// bool2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (double lhs, double2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } /// Returns the result of a componentwise greater than operation on two double2 vectors. + /// Left hand side double2 to use to compute componentwise greater than. + /// Right hand side double2 to use to compute componentwise greater than. + /// bool2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (double2 lhs, double2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } /// Returns the result of a componentwise greater than operation on a double2 vector and a double value. + /// Left hand side double2 to use to compute componentwise greater than. + /// Right hand side double to use to compute componentwise greater than. + /// bool2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (double2 lhs, double rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } /// Returns the result of a componentwise greater than operation on a double value and a double2 vector. + /// Left hand side double to use to compute componentwise greater than. + /// Right hand side double2 to use to compute componentwise greater than. + /// bool2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (double lhs, double2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } /// Returns the result of a componentwise greater or equal operation on two double2 vectors. + /// Left hand side double2 to use to compute componentwise greater or equal. + /// Right hand side double2 to use to compute componentwise greater or equal. + /// bool2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (double2 lhs, double2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } /// Returns the result of a componentwise greater or equal operation on a double2 vector and a double value. + /// Left hand side double2 to use to compute componentwise greater or equal. + /// Right hand side double to use to compute componentwise greater or equal. + /// bool2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (double2 lhs, double rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } /// Returns the result of a componentwise greater or equal operation on a double value and a double2 vector. + /// Left hand side double to use to compute componentwise greater or equal. + /// Right hand side double2 to use to compute componentwise greater or equal. + /// bool2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (double lhs, double2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } /// Returns the result of a componentwise unary minus operation on a double2 vector. + /// Value to use when computing the componentwise unary minus. + /// double2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator - (double2 val) { return new double2 (-val.x, -val.y); } /// Returns the result of a componentwise unary plus operation on a double2 vector. + /// Value to use when computing the componentwise unary plus. + /// double2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 operator + (double2 val) { return new double2 (+val.x, +val.y); } /// Returns the result of a componentwise equality operation on two double2 vectors. + /// Left hand side double2 to use to compute componentwise equality. + /// Right hand side double2 to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (double2 lhs, double2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } /// Returns the result of a componentwise equality operation on a double2 vector and a double value. + /// Left hand side double2 to use to compute componentwise equality. + /// Right hand side double to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (double2 lhs, double rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } /// Returns the result of a componentwise equality operation on a double value and a double2 vector. + /// Left hand side double to use to compute componentwise equality. + /// Right hand side double2 to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (double lhs, double2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } /// Returns the result of a componentwise not equal operation on two double2 vectors. + /// Left hand side double2 to use to compute componentwise not equal. + /// Right hand side double2 to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (double2 lhs, double2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } /// Returns the result of a componentwise not equal operation on a double2 vector and a double value. + /// Left hand side double2 to use to compute componentwise not equal. + /// Right hand side double to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (double2 lhs, double rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } /// Returns the result of a componentwise not equal operation on a double value and a double2 vector. + /// Left hand side double to use to compute componentwise not equal. + /// Right hand side double2 to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (double lhs, double2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxxx { @@ -349,6 +496,7 @@ public double4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxxy { @@ -357,6 +505,7 @@ public double4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxyx { @@ -365,6 +514,7 @@ public double4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxyy { @@ -373,6 +523,7 @@ public double4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyxx { @@ -381,6 +532,7 @@ public double4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyxy { @@ -389,6 +541,7 @@ public double4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyyx { @@ -397,6 +550,7 @@ public double4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyyy { @@ -405,6 +559,7 @@ public double4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxxx { @@ -413,6 +568,7 @@ public double4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxxy { @@ -421,6 +577,7 @@ public double4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxyx { @@ -429,6 +586,7 @@ public double4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxyy { @@ -437,6 +595,7 @@ public double4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyxx { @@ -445,6 +604,7 @@ public double4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyxy { @@ -453,6 +613,7 @@ public double4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyyx { @@ -461,6 +622,7 @@ public double4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyyy { @@ -469,6 +631,7 @@ public double4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xxx { @@ -477,6 +640,7 @@ public double3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xxy { @@ -485,6 +649,7 @@ public double3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xyx { @@ -493,6 +658,7 @@ public double3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xyy { @@ -501,6 +667,7 @@ public double3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yxx { @@ -509,6 +676,7 @@ public double3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yxy { @@ -517,6 +685,7 @@ public double3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yyx { @@ -525,6 +694,7 @@ public double3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yyy { @@ -533,6 +703,7 @@ public double3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 xx { @@ -541,6 +712,7 @@ public double2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 xy { @@ -551,6 +723,7 @@ public double2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 yx { @@ -561,6 +734,7 @@ public double2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 yy { @@ -592,19 +766,25 @@ unsafe public double this[int index] } /// Returns true if the double2 is equal to a given double2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(double2 rhs) { return x == rhs.x && y == rhs.y; } /// Returns true if the double2 is equal to a given double2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is double2 converted && Equals(converted); } /// Returns a hash code for the double2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the double2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -612,6 +792,9 @@ public override string ToString() } /// Returns a string representation of the double2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -634,58 +817,87 @@ public DebuggerProxy(double2 v) public static partial class math { /// Returns a double2 vector constructed from two double values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// double2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 double2(double x, double y) { return new double2(x, y); } /// Returns a double2 vector constructed from a double2 vector. + /// The constructed vector's xy components will be set to this value. + /// double2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 double2(double2 xy) { return new double2(xy); } /// Returns a double2 vector constructed from a single double value by assigning it to every component. + /// double to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 double2(double v) { return new double2(v); } /// Returns a double2 vector constructed from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 double2(bool v) { return new double2(v); } /// Return a double2 vector constructed from a bool2 vector by componentwise conversion. + /// bool2 to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 double2(bool2 v) { return new double2(v); } /// Returns a double2 vector constructed from a single int value by converting it to double and assigning it to every component. + /// int to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 double2(int v) { return new double2(v); } /// Return a double2 vector constructed from a int2 vector by componentwise conversion. + /// int2 to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 double2(int2 v) { return new double2(v); } /// Returns a double2 vector constructed from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 double2(uint v) { return new double2(v); } /// Return a double2 vector constructed from a uint2 vector by componentwise conversion. + /// uint2 to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 double2(uint2 v) { return new double2(v); } /// Returns a double2 vector constructed from a single half value by converting it to double and assigning it to every component. + /// half to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 double2(half v) { return new double2(v); } /// Return a double2 vector constructed from a half2 vector by componentwise conversion. + /// half2 to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 double2(half2 v) { return new double2(v); } /// Returns a double2 vector constructed from a single float value by converting it to double and assigning it to every component. + /// float to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 double2(float v) { return new double2(v); } /// Return a double2 vector constructed from a float2 vector by componentwise conversion. + /// float2 to convert to double2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 double2(float2 v) { return new double2(v); } /// Returns a uint hash code of a double2 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(double2 v) { @@ -697,6 +909,8 @@ public static uint hash(double2 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(double2 v) { @@ -704,40 +918,62 @@ public static uint2 hashwide(double2 v) } /// Returns the result of specified shuffling of the components from two double2 vectors into a double value. + /// double2 to use as the left argument of the shuffle operation. + /// double2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting double. + /// double result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double shuffle(double2 a, double2 b, ShuffleComponent x) + public static double shuffle(double2 left, double2 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two double2 vectors into a double2 vector. + /// double2 to use as the left argument of the shuffle operation. + /// double2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting double2 x component. + /// The ShuffleComponent to use when setting the resulting double2 y component. + /// double2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 shuffle(double2 a, double2 b, ShuffleComponent x, ShuffleComponent y) + public static double2 shuffle(double2 left, double2 right, ShuffleComponent x, ShuffleComponent y) { return double2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two double2 vectors into a double3 vector. + /// double2 to use as the left argument of the shuffle operation. + /// double2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting double3 x component. + /// The ShuffleComponent to use when setting the resulting double3 y component. + /// The ShuffleComponent to use when setting the resulting double3 z component. + /// double3 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 shuffle(double2 a, double2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + public static double3 shuffle(double2 left, double2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return double3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two double2 vectors into a double4 vector. + /// double2 to use as the left argument of the shuffle operation. + /// double2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting double4 x component. + /// The ShuffleComponent to use when setting the resulting double4 y component. + /// The ShuffleComponent to use when setting the resulting double4 z component. + /// The ShuffleComponent to use when setting the resulting double4 w component. + /// double4 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 shuffle(double2 a, double2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + public static double4 shuffle(double2 left, double2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return double4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/double2x2.gen.cs b/src/Unity.Mathematics/double2x2.gen.cs index 44360256..5c21029c 100644 --- a/src/Unity.Mathematics/double2x2.gen.cs +++ b/src/Unity.Mathematics/double2x2.gen.cs @@ -14,11 +14,14 @@ namespace Unity.Mathematics { + /// A 2x2 matrix of doubles. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct double2x2 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public double2 c0; + /// Column 1 of the matrix. public double2 c1; /// double2x2 identity transform. @@ -28,6 +31,8 @@ public partial struct double2x2 : System.IEquatable, IFormattable public static readonly double2x2 zero; /// Constructs a double2x2 matrix from two double2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x2(double2 c0, double2 c1) { @@ -36,6 +41,10 @@ public double2x2(double2 c0, double2 c1) } /// Constructs a double2x2 matrix from 4 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x2(double m00, double m01, double m10, double m11) @@ -45,6 +54,7 @@ public double2x2(double m00, double m01, } /// Constructs a double2x2 matrix from a single double value by assigning it to every component. + /// double to convert to double2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x2(double v) { @@ -53,6 +63,7 @@ public double2x2(double v) } /// Constructs a double2x2 matrix from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x2(bool v) { @@ -61,6 +72,7 @@ public double2x2(bool v) } /// Constructs a double2x2 matrix from a bool2x2 matrix by componentwise conversion. + /// bool2x2 to convert to double2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x2(bool2x2 v) { @@ -69,6 +81,7 @@ public double2x2(bool2x2 v) } /// Constructs a double2x2 matrix from a single int value by converting it to double and assigning it to every component. + /// int to convert to double2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x2(int v) { @@ -77,6 +90,7 @@ public double2x2(int v) } /// Constructs a double2x2 matrix from a int2x2 matrix by componentwise conversion. + /// int2x2 to convert to double2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x2(int2x2 v) { @@ -85,6 +99,7 @@ public double2x2(int2x2 v) } /// Constructs a double2x2 matrix from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x2(uint v) { @@ -93,6 +108,7 @@ public double2x2(uint v) } /// Constructs a double2x2 matrix from a uint2x2 matrix by componentwise conversion. + /// uint2x2 to convert to double2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x2(uint2x2 v) { @@ -101,6 +117,7 @@ public double2x2(uint2x2 v) } /// Constructs a double2x2 matrix from a single float value by converting it to double and assigning it to every component. + /// float to convert to double2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x2(float v) { @@ -109,6 +126,7 @@ public double2x2(float v) } /// Constructs a double2x2 matrix from a float2x2 matrix by componentwise conversion. + /// float2x2 to convert to double2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x2(float2x2 v) { @@ -118,201 +136,326 @@ public double2x2(float2x2 v) /// Implicitly converts a single double value to a double2x2 matrix by assigning it to every component. + /// double to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x2(double v) { return new double2x2(v); } /// Explicitly converts a single bool value to a double2x2 matrix by converting it to double and assigning it to every component. + /// bool to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double2x2(bool v) { return new double2x2(v); } /// Explicitly converts a bool2x2 matrix to a double2x2 matrix by componentwise conversion. + /// bool2x2 to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double2x2(bool2x2 v) { return new double2x2(v); } /// Implicitly converts a single int value to a double2x2 matrix by converting it to double and assigning it to every component. + /// int to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x2(int v) { return new double2x2(v); } /// Implicitly converts a int2x2 matrix to a double2x2 matrix by componentwise conversion. + /// int2x2 to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x2(int2x2 v) { return new double2x2(v); } /// Implicitly converts a single uint value to a double2x2 matrix by converting it to double and assigning it to every component. + /// uint to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x2(uint v) { return new double2x2(v); } /// Implicitly converts a uint2x2 matrix to a double2x2 matrix by componentwise conversion. + /// uint2x2 to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x2(uint2x2 v) { return new double2x2(v); } /// Implicitly converts a single float value to a double2x2 matrix by converting it to double and assigning it to every component. + /// float to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x2(float v) { return new double2x2(v); } /// Implicitly converts a float2x2 matrix to a double2x2 matrix by componentwise conversion. + /// float2x2 to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x2(float2x2 v) { return new double2x2(v); } /// Returns the result of a componentwise multiplication operation on two double2x2 matrices. + /// Left hand side double2x2 to use to compute componentwise multiplication. + /// Right hand side double2x2 to use to compute componentwise multiplication. + /// double2x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator * (double2x2 lhs, double2x2 rhs) { return new double2x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } /// Returns the result of a componentwise multiplication operation on a double2x2 matrix and a double value. + /// Left hand side double2x2 to use to compute componentwise multiplication. + /// Right hand side double to use to compute componentwise multiplication. + /// double2x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator * (double2x2 lhs, double rhs) { return new double2x2 (lhs.c0 * rhs, lhs.c1 * rhs); } /// Returns the result of a componentwise multiplication operation on a double value and a double2x2 matrix. + /// Left hand side double to use to compute componentwise multiplication. + /// Right hand side double2x2 to use to compute componentwise multiplication. + /// double2x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator * (double lhs, double2x2 rhs) { return new double2x2 (lhs * rhs.c0, lhs * rhs.c1); } /// Returns the result of a componentwise addition operation on two double2x2 matrices. + /// Left hand side double2x2 to use to compute componentwise addition. + /// Right hand side double2x2 to use to compute componentwise addition. + /// double2x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator + (double2x2 lhs, double2x2 rhs) { return new double2x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } /// Returns the result of a componentwise addition operation on a double2x2 matrix and a double value. + /// Left hand side double2x2 to use to compute componentwise addition. + /// Right hand side double to use to compute componentwise addition. + /// double2x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator + (double2x2 lhs, double rhs) { return new double2x2 (lhs.c0 + rhs, lhs.c1 + rhs); } /// Returns the result of a componentwise addition operation on a double value and a double2x2 matrix. + /// Left hand side double to use to compute componentwise addition. + /// Right hand side double2x2 to use to compute componentwise addition. + /// double2x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator + (double lhs, double2x2 rhs) { return new double2x2 (lhs + rhs.c0, lhs + rhs.c1); } /// Returns the result of a componentwise subtraction operation on two double2x2 matrices. + /// Left hand side double2x2 to use to compute componentwise subtraction. + /// Right hand side double2x2 to use to compute componentwise subtraction. + /// double2x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator - (double2x2 lhs, double2x2 rhs) { return new double2x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } /// Returns the result of a componentwise subtraction operation on a double2x2 matrix and a double value. + /// Left hand side double2x2 to use to compute componentwise subtraction. + /// Right hand side double to use to compute componentwise subtraction. + /// double2x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator - (double2x2 lhs, double rhs) { return new double2x2 (lhs.c0 - rhs, lhs.c1 - rhs); } /// Returns the result of a componentwise subtraction operation on a double value and a double2x2 matrix. + /// Left hand side double to use to compute componentwise subtraction. + /// Right hand side double2x2 to use to compute componentwise subtraction. + /// double2x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator - (double lhs, double2x2 rhs) { return new double2x2 (lhs - rhs.c0, lhs - rhs.c1); } /// Returns the result of a componentwise division operation on two double2x2 matrices. + /// Left hand side double2x2 to use to compute componentwise division. + /// Right hand side double2x2 to use to compute componentwise division. + /// double2x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator / (double2x2 lhs, double2x2 rhs) { return new double2x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } /// Returns the result of a componentwise division operation on a double2x2 matrix and a double value. + /// Left hand side double2x2 to use to compute componentwise division. + /// Right hand side double to use to compute componentwise division. + /// double2x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator / (double2x2 lhs, double rhs) { return new double2x2 (lhs.c0 / rhs, lhs.c1 / rhs); } /// Returns the result of a componentwise division operation on a double value and a double2x2 matrix. + /// Left hand side double to use to compute componentwise division. + /// Right hand side double2x2 to use to compute componentwise division. + /// double2x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator / (double lhs, double2x2 rhs) { return new double2x2 (lhs / rhs.c0, lhs / rhs.c1); } /// Returns the result of a componentwise modulus operation on two double2x2 matrices. + /// Left hand side double2x2 to use to compute componentwise modulus. + /// Right hand side double2x2 to use to compute componentwise modulus. + /// double2x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator % (double2x2 lhs, double2x2 rhs) { return new double2x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } /// Returns the result of a componentwise modulus operation on a double2x2 matrix and a double value. + /// Left hand side double2x2 to use to compute componentwise modulus. + /// Right hand side double to use to compute componentwise modulus. + /// double2x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator % (double2x2 lhs, double rhs) { return new double2x2 (lhs.c0 % rhs, lhs.c1 % rhs); } /// Returns the result of a componentwise modulus operation on a double value and a double2x2 matrix. + /// Left hand side double to use to compute componentwise modulus. + /// Right hand side double2x2 to use to compute componentwise modulus. + /// double2x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator % (double lhs, double2x2 rhs) { return new double2x2 (lhs % rhs.c0, lhs % rhs.c1); } /// Returns the result of a componentwise increment operation on a double2x2 matrix. + /// Value to use when computing the componentwise increment. + /// double2x2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator ++ (double2x2 val) { return new double2x2 (++val.c0, ++val.c1); } /// Returns the result of a componentwise decrement operation on a double2x2 matrix. + /// Value to use when computing the componentwise decrement. + /// double2x2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator -- (double2x2 val) { return new double2x2 (--val.c0, --val.c1); } /// Returns the result of a componentwise less than operation on two double2x2 matrices. + /// Left hand side double2x2 to use to compute componentwise less than. + /// Right hand side double2x2 to use to compute componentwise less than. + /// bool2x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator < (double2x2 lhs, double2x2 rhs) { return new bool2x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } /// Returns the result of a componentwise less than operation on a double2x2 matrix and a double value. + /// Left hand side double2x2 to use to compute componentwise less than. + /// Right hand side double to use to compute componentwise less than. + /// bool2x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator < (double2x2 lhs, double rhs) { return new bool2x2 (lhs.c0 < rhs, lhs.c1 < rhs); } /// Returns the result of a componentwise less than operation on a double value and a double2x2 matrix. + /// Left hand side double to use to compute componentwise less than. + /// Right hand side double2x2 to use to compute componentwise less than. + /// bool2x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator < (double lhs, double2x2 rhs) { return new bool2x2 (lhs < rhs.c0, lhs < rhs.c1); } /// Returns the result of a componentwise less or equal operation on two double2x2 matrices. + /// Left hand side double2x2 to use to compute componentwise less or equal. + /// Right hand side double2x2 to use to compute componentwise less or equal. + /// bool2x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator <= (double2x2 lhs, double2x2 rhs) { return new bool2x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } /// Returns the result of a componentwise less or equal operation on a double2x2 matrix and a double value. + /// Left hand side double2x2 to use to compute componentwise less or equal. + /// Right hand side double to use to compute componentwise less or equal. + /// bool2x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator <= (double2x2 lhs, double rhs) { return new bool2x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } /// Returns the result of a componentwise less or equal operation on a double value and a double2x2 matrix. + /// Left hand side double to use to compute componentwise less or equal. + /// Right hand side double2x2 to use to compute componentwise less or equal. + /// bool2x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator <= (double lhs, double2x2 rhs) { return new bool2x2 (lhs <= rhs.c0, lhs <= rhs.c1); } /// Returns the result of a componentwise greater than operation on two double2x2 matrices. + /// Left hand side double2x2 to use to compute componentwise greater than. + /// Right hand side double2x2 to use to compute componentwise greater than. + /// bool2x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator > (double2x2 lhs, double2x2 rhs) { return new bool2x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } /// Returns the result of a componentwise greater than operation on a double2x2 matrix and a double value. + /// Left hand side double2x2 to use to compute componentwise greater than. + /// Right hand side double to use to compute componentwise greater than. + /// bool2x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator > (double2x2 lhs, double rhs) { return new bool2x2 (lhs.c0 > rhs, lhs.c1 > rhs); } /// Returns the result of a componentwise greater than operation on a double value and a double2x2 matrix. + /// Left hand side double to use to compute componentwise greater than. + /// Right hand side double2x2 to use to compute componentwise greater than. + /// bool2x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator > (double lhs, double2x2 rhs) { return new bool2x2 (lhs > rhs.c0, lhs > rhs.c1); } /// Returns the result of a componentwise greater or equal operation on two double2x2 matrices. + /// Left hand side double2x2 to use to compute componentwise greater or equal. + /// Right hand side double2x2 to use to compute componentwise greater or equal. + /// bool2x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator >= (double2x2 lhs, double2x2 rhs) { return new bool2x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } /// Returns the result of a componentwise greater or equal operation on a double2x2 matrix and a double value. + /// Left hand side double2x2 to use to compute componentwise greater or equal. + /// Right hand side double to use to compute componentwise greater or equal. + /// bool2x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator >= (double2x2 lhs, double rhs) { return new bool2x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a double value and a double2x2 matrix. + /// Left hand side double to use to compute componentwise greater or equal. + /// Right hand side double2x2 to use to compute componentwise greater or equal. + /// bool2x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator >= (double lhs, double2x2 rhs) { return new bool2x2 (lhs >= rhs.c0, lhs >= rhs.c1); } /// Returns the result of a componentwise unary minus operation on a double2x2 matrix. + /// Value to use when computing the componentwise unary minus. + /// double2x2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator - (double2x2 val) { return new double2x2 (-val.c0, -val.c1); } /// Returns the result of a componentwise unary plus operation on a double2x2 matrix. + /// Value to use when computing the componentwise unary plus. + /// double2x2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 operator + (double2x2 val) { return new double2x2 (+val.c0, +val.c1); } /// Returns the result of a componentwise equality operation on two double2x2 matrices. + /// Left hand side double2x2 to use to compute componentwise equality. + /// Right hand side double2x2 to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (double2x2 lhs, double2x2 rhs) { return new bool2x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on a double2x2 matrix and a double value. + /// Left hand side double2x2 to use to compute componentwise equality. + /// Right hand side double to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (double2x2 lhs, double rhs) { return new bool2x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on a double value and a double2x2 matrix. + /// Left hand side double to use to compute componentwise equality. + /// Right hand side double2x2 to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (double lhs, double2x2 rhs) { return new bool2x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two double2x2 matrices. + /// Left hand side double2x2 to use to compute componentwise not equal. + /// Right hand side double2x2 to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (double2x2 lhs, double2x2 rhs) { return new bool2x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on a double2x2 matrix and a double value. + /// Left hand side double2x2 to use to compute componentwise not equal. + /// Right hand side double to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (double2x2 lhs, double rhs) { return new bool2x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on a double value and a double2x2 matrix. + /// Left hand side double to use to compute componentwise not equal. + /// Right hand side double2x2 to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (double lhs, double2x2 rhs) { return new bool2x2 (lhs != rhs.c0, lhs != rhs.c1); } @@ -332,19 +475,25 @@ unsafe public ref double2 this[int index] } /// Returns true if the double2x2 is equal to a given double2x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(double2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the double2x2 is equal to a given double2x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is double2x2 converted && Equals(converted); } /// Returns a hash code for the double2x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the double2x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -352,6 +501,9 @@ public override string ToString() } /// Returns a string representation of the double2x2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -363,10 +515,18 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a double2x2 matrix constructed from two double2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// double2x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 double2x2(double2 c0, double2 c1) { return new double2x2(c0, c1); } /// Returns a double2x2 matrix constructed from from 4 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// double2x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 double2x2(double m00, double m01, double m10, double m11) @@ -376,42 +536,62 @@ public static double2x2 double2x2(double m00, double m01, } /// Returns a double2x2 matrix constructed from a single double value by assigning it to every component. + /// double to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 double2x2(double v) { return new double2x2(v); } /// Returns a double2x2 matrix constructed from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 double2x2(bool v) { return new double2x2(v); } /// Return a double2x2 matrix constructed from a bool2x2 matrix by componentwise conversion. + /// bool2x2 to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 double2x2(bool2x2 v) { return new double2x2(v); } /// Returns a double2x2 matrix constructed from a single int value by converting it to double and assigning it to every component. + /// int to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 double2x2(int v) { return new double2x2(v); } /// Return a double2x2 matrix constructed from a int2x2 matrix by componentwise conversion. + /// int2x2 to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 double2x2(int2x2 v) { return new double2x2(v); } /// Returns a double2x2 matrix constructed from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 double2x2(uint v) { return new double2x2(v); } /// Return a double2x2 matrix constructed from a uint2x2 matrix by componentwise conversion. + /// uint2x2 to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 double2x2(uint2x2 v) { return new double2x2(v); } /// Returns a double2x2 matrix constructed from a single float value by converting it to double and assigning it to every component. + /// float to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 double2x2(float v) { return new double2x2(v); } /// Return a double2x2 matrix constructed from a float2x2 matrix by componentwise conversion. + /// float2x2 to convert to double2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 double2x2(float2x2 v) { return new double2x2(v); } /// Return the double2x2 transpose of a double2x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 transpose(double2x2 v) { @@ -421,6 +601,8 @@ public static double2x2 transpose(double2x2 v) } /// Returns the double2x2 full inverse of a double2x2 matrix. + /// Matrix to invert. + /// The inverted matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 inverse(double2x2 m) { @@ -435,6 +617,8 @@ public static double2x2 inverse(double2x2 m) } /// Returns the determinant of a double2x2 matrix. + /// Matrix to use when computing determinant. + /// The determinant of the matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double determinant(double2x2 m) { @@ -446,7 +630,9 @@ public static double determinant(double2x2 m) return a * d - b * c; } - /// Returns a uint hash code of a double2x2 vector. + /// Returns a uint hash code of a double2x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(double2x2 v) { @@ -455,10 +641,12 @@ public static uint hash(double2x2 v) } /// - /// Returns a uint2 vector hash code of a double2x2 vector. + /// Returns a uint2 vector hash code of a double2x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(double2x2 v) { diff --git a/src/Unity.Mathematics/double2x3.gen.cs b/src/Unity.Mathematics/double2x3.gen.cs index f1512833..2509e351 100644 --- a/src/Unity.Mathematics/double2x3.gen.cs +++ b/src/Unity.Mathematics/double2x3.gen.cs @@ -14,18 +14,25 @@ namespace Unity.Mathematics { + /// A 2x3 matrix of doubles. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct double2x3 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public double2 c0; + /// Column 1 of the matrix. public double2 c1; + /// Column 2 of the matrix. public double2 c2; /// double2x3 zero value. public static readonly double2x3 zero; /// Constructs a double2x3 matrix from three double2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x3(double2 c0, double2 c1, double2 c2) { @@ -35,6 +42,12 @@ public double2x3(double2 c0, double2 c1, double2 c2) } /// Constructs a double2x3 matrix from 6 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x3(double m00, double m01, double m02, double m10, double m11, double m12) @@ -45,6 +58,7 @@ public double2x3(double m00, double m01, double m02, } /// Constructs a double2x3 matrix from a single double value by assigning it to every component. + /// double to convert to double2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x3(double v) { @@ -54,6 +68,7 @@ public double2x3(double v) } /// Constructs a double2x3 matrix from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x3(bool v) { @@ -63,6 +78,7 @@ public double2x3(bool v) } /// Constructs a double2x3 matrix from a bool2x3 matrix by componentwise conversion. + /// bool2x3 to convert to double2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x3(bool2x3 v) { @@ -72,6 +88,7 @@ public double2x3(bool2x3 v) } /// Constructs a double2x3 matrix from a single int value by converting it to double and assigning it to every component. + /// int to convert to double2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x3(int v) { @@ -81,6 +98,7 @@ public double2x3(int v) } /// Constructs a double2x3 matrix from a int2x3 matrix by componentwise conversion. + /// int2x3 to convert to double2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x3(int2x3 v) { @@ -90,6 +108,7 @@ public double2x3(int2x3 v) } /// Constructs a double2x3 matrix from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x3(uint v) { @@ -99,6 +118,7 @@ public double2x3(uint v) } /// Constructs a double2x3 matrix from a uint2x3 matrix by componentwise conversion. + /// uint2x3 to convert to double2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x3(uint2x3 v) { @@ -108,6 +128,7 @@ public double2x3(uint2x3 v) } /// Constructs a double2x3 matrix from a single float value by converting it to double and assigning it to every component. + /// float to convert to double2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x3(float v) { @@ -117,6 +138,7 @@ public double2x3(float v) } /// Constructs a double2x3 matrix from a float2x3 matrix by componentwise conversion. + /// float2x3 to convert to double2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x3(float2x3 v) { @@ -127,201 +149,326 @@ public double2x3(float2x3 v) /// Implicitly converts a single double value to a double2x3 matrix by assigning it to every component. + /// double to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x3(double v) { return new double2x3(v); } /// Explicitly converts a single bool value to a double2x3 matrix by converting it to double and assigning it to every component. + /// bool to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double2x3(bool v) { return new double2x3(v); } /// Explicitly converts a bool2x3 matrix to a double2x3 matrix by componentwise conversion. + /// bool2x3 to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double2x3(bool2x3 v) { return new double2x3(v); } /// Implicitly converts a single int value to a double2x3 matrix by converting it to double and assigning it to every component. + /// int to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x3(int v) { return new double2x3(v); } /// Implicitly converts a int2x3 matrix to a double2x3 matrix by componentwise conversion. + /// int2x3 to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x3(int2x3 v) { return new double2x3(v); } /// Implicitly converts a single uint value to a double2x3 matrix by converting it to double and assigning it to every component. + /// uint to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x3(uint v) { return new double2x3(v); } /// Implicitly converts a uint2x3 matrix to a double2x3 matrix by componentwise conversion. + /// uint2x3 to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x3(uint2x3 v) { return new double2x3(v); } /// Implicitly converts a single float value to a double2x3 matrix by converting it to double and assigning it to every component. + /// float to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x3(float v) { return new double2x3(v); } /// Implicitly converts a float2x3 matrix to a double2x3 matrix by componentwise conversion. + /// float2x3 to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x3(float2x3 v) { return new double2x3(v); } /// Returns the result of a componentwise multiplication operation on two double2x3 matrices. + /// Left hand side double2x3 to use to compute componentwise multiplication. + /// Right hand side double2x3 to use to compute componentwise multiplication. + /// double2x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator * (double2x3 lhs, double2x3 rhs) { return new double2x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } /// Returns the result of a componentwise multiplication operation on a double2x3 matrix and a double value. + /// Left hand side double2x3 to use to compute componentwise multiplication. + /// Right hand side double to use to compute componentwise multiplication. + /// double2x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator * (double2x3 lhs, double rhs) { return new double2x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } /// Returns the result of a componentwise multiplication operation on a double value and a double2x3 matrix. + /// Left hand side double to use to compute componentwise multiplication. + /// Right hand side double2x3 to use to compute componentwise multiplication. + /// double2x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator * (double lhs, double2x3 rhs) { return new double2x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } /// Returns the result of a componentwise addition operation on two double2x3 matrices. + /// Left hand side double2x3 to use to compute componentwise addition. + /// Right hand side double2x3 to use to compute componentwise addition. + /// double2x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator + (double2x3 lhs, double2x3 rhs) { return new double2x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } /// Returns the result of a componentwise addition operation on a double2x3 matrix and a double value. + /// Left hand side double2x3 to use to compute componentwise addition. + /// Right hand side double to use to compute componentwise addition. + /// double2x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator + (double2x3 lhs, double rhs) { return new double2x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } /// Returns the result of a componentwise addition operation on a double value and a double2x3 matrix. + /// Left hand side double to use to compute componentwise addition. + /// Right hand side double2x3 to use to compute componentwise addition. + /// double2x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator + (double lhs, double2x3 rhs) { return new double2x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } /// Returns the result of a componentwise subtraction operation on two double2x3 matrices. + /// Left hand side double2x3 to use to compute componentwise subtraction. + /// Right hand side double2x3 to use to compute componentwise subtraction. + /// double2x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator - (double2x3 lhs, double2x3 rhs) { return new double2x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } /// Returns the result of a componentwise subtraction operation on a double2x3 matrix and a double value. + /// Left hand side double2x3 to use to compute componentwise subtraction. + /// Right hand side double to use to compute componentwise subtraction. + /// double2x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator - (double2x3 lhs, double rhs) { return new double2x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } /// Returns the result of a componentwise subtraction operation on a double value and a double2x3 matrix. + /// Left hand side double to use to compute componentwise subtraction. + /// Right hand side double2x3 to use to compute componentwise subtraction. + /// double2x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator - (double lhs, double2x3 rhs) { return new double2x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } /// Returns the result of a componentwise division operation on two double2x3 matrices. + /// Left hand side double2x3 to use to compute componentwise division. + /// Right hand side double2x3 to use to compute componentwise division. + /// double2x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator / (double2x3 lhs, double2x3 rhs) { return new double2x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } /// Returns the result of a componentwise division operation on a double2x3 matrix and a double value. + /// Left hand side double2x3 to use to compute componentwise division. + /// Right hand side double to use to compute componentwise division. + /// double2x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator / (double2x3 lhs, double rhs) { return new double2x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } /// Returns the result of a componentwise division operation on a double value and a double2x3 matrix. + /// Left hand side double to use to compute componentwise division. + /// Right hand side double2x3 to use to compute componentwise division. + /// double2x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator / (double lhs, double2x3 rhs) { return new double2x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } /// Returns the result of a componentwise modulus operation on two double2x3 matrices. + /// Left hand side double2x3 to use to compute componentwise modulus. + /// Right hand side double2x3 to use to compute componentwise modulus. + /// double2x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator % (double2x3 lhs, double2x3 rhs) { return new double2x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } /// Returns the result of a componentwise modulus operation on a double2x3 matrix and a double value. + /// Left hand side double2x3 to use to compute componentwise modulus. + /// Right hand side double to use to compute componentwise modulus. + /// double2x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator % (double2x3 lhs, double rhs) { return new double2x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } /// Returns the result of a componentwise modulus operation on a double value and a double2x3 matrix. + /// Left hand side double to use to compute componentwise modulus. + /// Right hand side double2x3 to use to compute componentwise modulus. + /// double2x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator % (double lhs, double2x3 rhs) { return new double2x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } /// Returns the result of a componentwise increment operation on a double2x3 matrix. + /// Value to use when computing the componentwise increment. + /// double2x3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator ++ (double2x3 val) { return new double2x3 (++val.c0, ++val.c1, ++val.c2); } /// Returns the result of a componentwise decrement operation on a double2x3 matrix. + /// Value to use when computing the componentwise decrement. + /// double2x3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator -- (double2x3 val) { return new double2x3 (--val.c0, --val.c1, --val.c2); } /// Returns the result of a componentwise less than operation on two double2x3 matrices. + /// Left hand side double2x3 to use to compute componentwise less than. + /// Right hand side double2x3 to use to compute componentwise less than. + /// bool2x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator < (double2x3 lhs, double2x3 rhs) { return new bool2x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } /// Returns the result of a componentwise less than operation on a double2x3 matrix and a double value. + /// Left hand side double2x3 to use to compute componentwise less than. + /// Right hand side double to use to compute componentwise less than. + /// bool2x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator < (double2x3 lhs, double rhs) { return new bool2x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } /// Returns the result of a componentwise less than operation on a double value and a double2x3 matrix. + /// Left hand side double to use to compute componentwise less than. + /// Right hand side double2x3 to use to compute componentwise less than. + /// bool2x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator < (double lhs, double2x3 rhs) { return new bool2x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } /// Returns the result of a componentwise less or equal operation on two double2x3 matrices. + /// Left hand side double2x3 to use to compute componentwise less or equal. + /// Right hand side double2x3 to use to compute componentwise less or equal. + /// bool2x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator <= (double2x3 lhs, double2x3 rhs) { return new bool2x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } /// Returns the result of a componentwise less or equal operation on a double2x3 matrix and a double value. + /// Left hand side double2x3 to use to compute componentwise less or equal. + /// Right hand side double to use to compute componentwise less or equal. + /// bool2x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator <= (double2x3 lhs, double rhs) { return new bool2x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } /// Returns the result of a componentwise less or equal operation on a double value and a double2x3 matrix. + /// Left hand side double to use to compute componentwise less or equal. + /// Right hand side double2x3 to use to compute componentwise less or equal. + /// bool2x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator <= (double lhs, double2x3 rhs) { return new bool2x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } /// Returns the result of a componentwise greater than operation on two double2x3 matrices. + /// Left hand side double2x3 to use to compute componentwise greater than. + /// Right hand side double2x3 to use to compute componentwise greater than. + /// bool2x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator > (double2x3 lhs, double2x3 rhs) { return new bool2x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } /// Returns the result of a componentwise greater than operation on a double2x3 matrix and a double value. + /// Left hand side double2x3 to use to compute componentwise greater than. + /// Right hand side double to use to compute componentwise greater than. + /// bool2x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator > (double2x3 lhs, double rhs) { return new bool2x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } /// Returns the result of a componentwise greater than operation on a double value and a double2x3 matrix. + /// Left hand side double to use to compute componentwise greater than. + /// Right hand side double2x3 to use to compute componentwise greater than. + /// bool2x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator > (double lhs, double2x3 rhs) { return new bool2x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } /// Returns the result of a componentwise greater or equal operation on two double2x3 matrices. + /// Left hand side double2x3 to use to compute componentwise greater or equal. + /// Right hand side double2x3 to use to compute componentwise greater or equal. + /// bool2x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator >= (double2x3 lhs, double2x3 rhs) { return new bool2x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } /// Returns the result of a componentwise greater or equal operation on a double2x3 matrix and a double value. + /// Left hand side double2x3 to use to compute componentwise greater or equal. + /// Right hand side double to use to compute componentwise greater or equal. + /// bool2x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator >= (double2x3 lhs, double rhs) { return new bool2x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a double value and a double2x3 matrix. + /// Left hand side double to use to compute componentwise greater or equal. + /// Right hand side double2x3 to use to compute componentwise greater or equal. + /// bool2x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator >= (double lhs, double2x3 rhs) { return new bool2x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } /// Returns the result of a componentwise unary minus operation on a double2x3 matrix. + /// Value to use when computing the componentwise unary minus. + /// double2x3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator - (double2x3 val) { return new double2x3 (-val.c0, -val.c1, -val.c2); } /// Returns the result of a componentwise unary plus operation on a double2x3 matrix. + /// Value to use when computing the componentwise unary plus. + /// double2x3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 operator + (double2x3 val) { return new double2x3 (+val.c0, +val.c1, +val.c2); } /// Returns the result of a componentwise equality operation on two double2x3 matrices. + /// Left hand side double2x3 to use to compute componentwise equality. + /// Right hand side double2x3 to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (double2x3 lhs, double2x3 rhs) { return new bool2x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on a double2x3 matrix and a double value. + /// Left hand side double2x3 to use to compute componentwise equality. + /// Right hand side double to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (double2x3 lhs, double rhs) { return new bool2x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on a double value and a double2x3 matrix. + /// Left hand side double to use to compute componentwise equality. + /// Right hand side double2x3 to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (double lhs, double2x3 rhs) { return new bool2x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two double2x3 matrices. + /// Left hand side double2x3 to use to compute componentwise not equal. + /// Right hand side double2x3 to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (double2x3 lhs, double2x3 rhs) { return new bool2x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on a double2x3 matrix and a double value. + /// Left hand side double2x3 to use to compute componentwise not equal. + /// Right hand side double to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (double2x3 lhs, double rhs) { return new bool2x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on a double value and a double2x3 matrix. + /// Left hand side double to use to compute componentwise not equal. + /// Right hand side double2x3 to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (double lhs, double2x3 rhs) { return new bool2x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } @@ -341,19 +488,25 @@ unsafe public ref double2 this[int index] } /// Returns true if the double2x3 is equal to a given double2x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(double2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the double2x3 is equal to a given double2x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is double2x3 converted && Equals(converted); } /// Returns a hash code for the double2x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the double2x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -361,6 +514,9 @@ public override string ToString() } /// Returns a string representation of the double2x3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -372,10 +528,21 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a double2x3 matrix constructed from three double2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// double2x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 double2x3(double2 c0, double2 c1, double2 c2) { return new double2x3(c0, c1, c2); } /// Returns a double2x3 matrix constructed from from 6 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// double2x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 double2x3(double m00, double m01, double m02, double m10, double m11, double m12) @@ -385,42 +552,62 @@ public static double2x3 double2x3(double m00, double m01, double m02, } /// Returns a double2x3 matrix constructed from a single double value by assigning it to every component. + /// double to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 double2x3(double v) { return new double2x3(v); } /// Returns a double2x3 matrix constructed from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 double2x3(bool v) { return new double2x3(v); } /// Return a double2x3 matrix constructed from a bool2x3 matrix by componentwise conversion. + /// bool2x3 to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 double2x3(bool2x3 v) { return new double2x3(v); } /// Returns a double2x3 matrix constructed from a single int value by converting it to double and assigning it to every component. + /// int to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 double2x3(int v) { return new double2x3(v); } /// Return a double2x3 matrix constructed from a int2x3 matrix by componentwise conversion. + /// int2x3 to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 double2x3(int2x3 v) { return new double2x3(v); } /// Returns a double2x3 matrix constructed from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 double2x3(uint v) { return new double2x3(v); } /// Return a double2x3 matrix constructed from a uint2x3 matrix by componentwise conversion. + /// uint2x3 to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 double2x3(uint2x3 v) { return new double2x3(v); } /// Returns a double2x3 matrix constructed from a single float value by converting it to double and assigning it to every component. + /// float to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 double2x3(float v) { return new double2x3(v); } /// Return a double2x3 matrix constructed from a float2x3 matrix by componentwise conversion. + /// float2x3 to convert to double2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 double2x3(float2x3 v) { return new double2x3(v); } /// Return the double3x2 transpose of a double2x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 transpose(double2x3 v) { @@ -430,7 +617,9 @@ public static double3x2 transpose(double2x3 v) v.c2.x, v.c2.y); } - /// Returns a uint hash code of a double2x3 vector. + /// Returns a uint hash code of a double2x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(double2x3 v) { @@ -440,10 +629,12 @@ public static uint hash(double2x3 v) } /// - /// Returns a uint2 vector hash code of a double2x3 vector. + /// Returns a uint2 vector hash code of a double2x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(double2x3 v) { diff --git a/src/Unity.Mathematics/double2x4.gen.cs b/src/Unity.Mathematics/double2x4.gen.cs index e9b571ce..1f71c1d5 100644 --- a/src/Unity.Mathematics/double2x4.gen.cs +++ b/src/Unity.Mathematics/double2x4.gen.cs @@ -14,19 +14,28 @@ namespace Unity.Mathematics { + /// A 2x4 matrix of doubles. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct double2x4 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public double2 c0; + /// Column 1 of the matrix. public double2 c1; + /// Column 2 of the matrix. public double2 c2; + /// Column 3 of the matrix. public double2 c3; /// double2x4 zero value. public static readonly double2x4 zero; /// Constructs a double2x4 matrix from four double2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x4(double2 c0, double2 c1, double2 c2, double2 c3) { @@ -37,6 +46,14 @@ public double2x4(double2 c0, double2 c1, double2 c2, double2 c3) } /// Constructs a double2x4 matrix from 8 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x4(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13) @@ -48,6 +65,7 @@ public double2x4(double m00, double m01, double m02, double m03, } /// Constructs a double2x4 matrix from a single double value by assigning it to every component. + /// double to convert to double2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x4(double v) { @@ -58,6 +76,7 @@ public double2x4(double v) } /// Constructs a double2x4 matrix from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x4(bool v) { @@ -68,6 +87,7 @@ public double2x4(bool v) } /// Constructs a double2x4 matrix from a bool2x4 matrix by componentwise conversion. + /// bool2x4 to convert to double2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x4(bool2x4 v) { @@ -78,6 +98,7 @@ public double2x4(bool2x4 v) } /// Constructs a double2x4 matrix from a single int value by converting it to double and assigning it to every component. + /// int to convert to double2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x4(int v) { @@ -88,6 +109,7 @@ public double2x4(int v) } /// Constructs a double2x4 matrix from a int2x4 matrix by componentwise conversion. + /// int2x4 to convert to double2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x4(int2x4 v) { @@ -98,6 +120,7 @@ public double2x4(int2x4 v) } /// Constructs a double2x4 matrix from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x4(uint v) { @@ -108,6 +131,7 @@ public double2x4(uint v) } /// Constructs a double2x4 matrix from a uint2x4 matrix by componentwise conversion. + /// uint2x4 to convert to double2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x4(uint2x4 v) { @@ -118,6 +142,7 @@ public double2x4(uint2x4 v) } /// Constructs a double2x4 matrix from a single float value by converting it to double and assigning it to every component. + /// float to convert to double2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x4(float v) { @@ -128,6 +153,7 @@ public double2x4(float v) } /// Constructs a double2x4 matrix from a float2x4 matrix by componentwise conversion. + /// float2x4 to convert to double2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2x4(float2x4 v) { @@ -139,201 +165,326 @@ public double2x4(float2x4 v) /// Implicitly converts a single double value to a double2x4 matrix by assigning it to every component. + /// double to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x4(double v) { return new double2x4(v); } /// Explicitly converts a single bool value to a double2x4 matrix by converting it to double and assigning it to every component. + /// bool to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double2x4(bool v) { return new double2x4(v); } /// Explicitly converts a bool2x4 matrix to a double2x4 matrix by componentwise conversion. + /// bool2x4 to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double2x4(bool2x4 v) { return new double2x4(v); } /// Implicitly converts a single int value to a double2x4 matrix by converting it to double and assigning it to every component. + /// int to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x4(int v) { return new double2x4(v); } /// Implicitly converts a int2x4 matrix to a double2x4 matrix by componentwise conversion. + /// int2x4 to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x4(int2x4 v) { return new double2x4(v); } /// Implicitly converts a single uint value to a double2x4 matrix by converting it to double and assigning it to every component. + /// uint to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x4(uint v) { return new double2x4(v); } /// Implicitly converts a uint2x4 matrix to a double2x4 matrix by componentwise conversion. + /// uint2x4 to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x4(uint2x4 v) { return new double2x4(v); } /// Implicitly converts a single float value to a double2x4 matrix by converting it to double and assigning it to every component. + /// float to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x4(float v) { return new double2x4(v); } /// Implicitly converts a float2x4 matrix to a double2x4 matrix by componentwise conversion. + /// float2x4 to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double2x4(float2x4 v) { return new double2x4(v); } /// Returns the result of a componentwise multiplication operation on two double2x4 matrices. + /// Left hand side double2x4 to use to compute componentwise multiplication. + /// Right hand side double2x4 to use to compute componentwise multiplication. + /// double2x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator * (double2x4 lhs, double2x4 rhs) { return new double2x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } /// Returns the result of a componentwise multiplication operation on a double2x4 matrix and a double value. + /// Left hand side double2x4 to use to compute componentwise multiplication. + /// Right hand side double to use to compute componentwise multiplication. + /// double2x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator * (double2x4 lhs, double rhs) { return new double2x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } /// Returns the result of a componentwise multiplication operation on a double value and a double2x4 matrix. + /// Left hand side double to use to compute componentwise multiplication. + /// Right hand side double2x4 to use to compute componentwise multiplication. + /// double2x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator * (double lhs, double2x4 rhs) { return new double2x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } /// Returns the result of a componentwise addition operation on two double2x4 matrices. + /// Left hand side double2x4 to use to compute componentwise addition. + /// Right hand side double2x4 to use to compute componentwise addition. + /// double2x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator + (double2x4 lhs, double2x4 rhs) { return new double2x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } /// Returns the result of a componentwise addition operation on a double2x4 matrix and a double value. + /// Left hand side double2x4 to use to compute componentwise addition. + /// Right hand side double to use to compute componentwise addition. + /// double2x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator + (double2x4 lhs, double rhs) { return new double2x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } /// Returns the result of a componentwise addition operation on a double value and a double2x4 matrix. + /// Left hand side double to use to compute componentwise addition. + /// Right hand side double2x4 to use to compute componentwise addition. + /// double2x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator + (double lhs, double2x4 rhs) { return new double2x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } /// Returns the result of a componentwise subtraction operation on two double2x4 matrices. + /// Left hand side double2x4 to use to compute componentwise subtraction. + /// Right hand side double2x4 to use to compute componentwise subtraction. + /// double2x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator - (double2x4 lhs, double2x4 rhs) { return new double2x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } /// Returns the result of a componentwise subtraction operation on a double2x4 matrix and a double value. + /// Left hand side double2x4 to use to compute componentwise subtraction. + /// Right hand side double to use to compute componentwise subtraction. + /// double2x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator - (double2x4 lhs, double rhs) { return new double2x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } /// Returns the result of a componentwise subtraction operation on a double value and a double2x4 matrix. + /// Left hand side double to use to compute componentwise subtraction. + /// Right hand side double2x4 to use to compute componentwise subtraction. + /// double2x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator - (double lhs, double2x4 rhs) { return new double2x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } /// Returns the result of a componentwise division operation on two double2x4 matrices. + /// Left hand side double2x4 to use to compute componentwise division. + /// Right hand side double2x4 to use to compute componentwise division. + /// double2x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator / (double2x4 lhs, double2x4 rhs) { return new double2x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } /// Returns the result of a componentwise division operation on a double2x4 matrix and a double value. + /// Left hand side double2x4 to use to compute componentwise division. + /// Right hand side double to use to compute componentwise division. + /// double2x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator / (double2x4 lhs, double rhs) { return new double2x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } /// Returns the result of a componentwise division operation on a double value and a double2x4 matrix. + /// Left hand side double to use to compute componentwise division. + /// Right hand side double2x4 to use to compute componentwise division. + /// double2x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator / (double lhs, double2x4 rhs) { return new double2x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } /// Returns the result of a componentwise modulus operation on two double2x4 matrices. + /// Left hand side double2x4 to use to compute componentwise modulus. + /// Right hand side double2x4 to use to compute componentwise modulus. + /// double2x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator % (double2x4 lhs, double2x4 rhs) { return new double2x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } /// Returns the result of a componentwise modulus operation on a double2x4 matrix and a double value. + /// Left hand side double2x4 to use to compute componentwise modulus. + /// Right hand side double to use to compute componentwise modulus. + /// double2x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator % (double2x4 lhs, double rhs) { return new double2x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } /// Returns the result of a componentwise modulus operation on a double value and a double2x4 matrix. + /// Left hand side double to use to compute componentwise modulus. + /// Right hand side double2x4 to use to compute componentwise modulus. + /// double2x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator % (double lhs, double2x4 rhs) { return new double2x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } /// Returns the result of a componentwise increment operation on a double2x4 matrix. + /// Value to use when computing the componentwise increment. + /// double2x4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator ++ (double2x4 val) { return new double2x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } /// Returns the result of a componentwise decrement operation on a double2x4 matrix. + /// Value to use when computing the componentwise decrement. + /// double2x4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator -- (double2x4 val) { return new double2x4 (--val.c0, --val.c1, --val.c2, --val.c3); } /// Returns the result of a componentwise less than operation on two double2x4 matrices. + /// Left hand side double2x4 to use to compute componentwise less than. + /// Right hand side double2x4 to use to compute componentwise less than. + /// bool2x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator < (double2x4 lhs, double2x4 rhs) { return new bool2x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } /// Returns the result of a componentwise less than operation on a double2x4 matrix and a double value. + /// Left hand side double2x4 to use to compute componentwise less than. + /// Right hand side double to use to compute componentwise less than. + /// bool2x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator < (double2x4 lhs, double rhs) { return new bool2x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } /// Returns the result of a componentwise less than operation on a double value and a double2x4 matrix. + /// Left hand side double to use to compute componentwise less than. + /// Right hand side double2x4 to use to compute componentwise less than. + /// bool2x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator < (double lhs, double2x4 rhs) { return new bool2x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } /// Returns the result of a componentwise less or equal operation on two double2x4 matrices. + /// Left hand side double2x4 to use to compute componentwise less or equal. + /// Right hand side double2x4 to use to compute componentwise less or equal. + /// bool2x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator <= (double2x4 lhs, double2x4 rhs) { return new bool2x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } /// Returns the result of a componentwise less or equal operation on a double2x4 matrix and a double value. + /// Left hand side double2x4 to use to compute componentwise less or equal. + /// Right hand side double to use to compute componentwise less or equal. + /// bool2x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator <= (double2x4 lhs, double rhs) { return new bool2x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } /// Returns the result of a componentwise less or equal operation on a double value and a double2x4 matrix. + /// Left hand side double to use to compute componentwise less or equal. + /// Right hand side double2x4 to use to compute componentwise less or equal. + /// bool2x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator <= (double lhs, double2x4 rhs) { return new bool2x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } /// Returns the result of a componentwise greater than operation on two double2x4 matrices. + /// Left hand side double2x4 to use to compute componentwise greater than. + /// Right hand side double2x4 to use to compute componentwise greater than. + /// bool2x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator > (double2x4 lhs, double2x4 rhs) { return new bool2x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } /// Returns the result of a componentwise greater than operation on a double2x4 matrix and a double value. + /// Left hand side double2x4 to use to compute componentwise greater than. + /// Right hand side double to use to compute componentwise greater than. + /// bool2x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator > (double2x4 lhs, double rhs) { return new bool2x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } /// Returns the result of a componentwise greater than operation on a double value and a double2x4 matrix. + /// Left hand side double to use to compute componentwise greater than. + /// Right hand side double2x4 to use to compute componentwise greater than. + /// bool2x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator > (double lhs, double2x4 rhs) { return new bool2x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } /// Returns the result of a componentwise greater or equal operation on two double2x4 matrices. + /// Left hand side double2x4 to use to compute componentwise greater or equal. + /// Right hand side double2x4 to use to compute componentwise greater or equal. + /// bool2x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator >= (double2x4 lhs, double2x4 rhs) { return new bool2x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } /// Returns the result of a componentwise greater or equal operation on a double2x4 matrix and a double value. + /// Left hand side double2x4 to use to compute componentwise greater or equal. + /// Right hand side double to use to compute componentwise greater or equal. + /// bool2x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator >= (double2x4 lhs, double rhs) { return new bool2x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a double value and a double2x4 matrix. + /// Left hand side double to use to compute componentwise greater or equal. + /// Right hand side double2x4 to use to compute componentwise greater or equal. + /// bool2x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator >= (double lhs, double2x4 rhs) { return new bool2x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } /// Returns the result of a componentwise unary minus operation on a double2x4 matrix. + /// Value to use when computing the componentwise unary minus. + /// double2x4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator - (double2x4 val) { return new double2x4 (-val.c0, -val.c1, -val.c2, -val.c3); } /// Returns the result of a componentwise unary plus operation on a double2x4 matrix. + /// Value to use when computing the componentwise unary plus. + /// double2x4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 operator + (double2x4 val) { return new double2x4 (+val.c0, +val.c1, +val.c2, +val.c3); } /// Returns the result of a componentwise equality operation on two double2x4 matrices. + /// Left hand side double2x4 to use to compute componentwise equality. + /// Right hand side double2x4 to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (double2x4 lhs, double2x4 rhs) { return new bool2x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on a double2x4 matrix and a double value. + /// Left hand side double2x4 to use to compute componentwise equality. + /// Right hand side double to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (double2x4 lhs, double rhs) { return new bool2x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on a double value and a double2x4 matrix. + /// Left hand side double to use to compute componentwise equality. + /// Right hand side double2x4 to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (double lhs, double2x4 rhs) { return new bool2x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two double2x4 matrices. + /// Left hand side double2x4 to use to compute componentwise not equal. + /// Right hand side double2x4 to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (double2x4 lhs, double2x4 rhs) { return new bool2x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on a double2x4 matrix and a double value. + /// Left hand side double2x4 to use to compute componentwise not equal. + /// Right hand side double to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (double2x4 lhs, double rhs) { return new bool2x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on a double value and a double2x4 matrix. + /// Left hand side double to use to compute componentwise not equal. + /// Right hand side double2x4 to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (double lhs, double2x4 rhs) { return new bool2x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } @@ -353,19 +504,25 @@ unsafe public ref double2 this[int index] } /// Returns true if the double2x4 is equal to a given double2x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(double2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the double2x4 is equal to a given double2x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is double2x4 converted && Equals(converted); } /// Returns a hash code for the double2x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the double2x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -373,6 +530,9 @@ public override string ToString() } /// Returns a string representation of the double2x4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -384,10 +544,24 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a double2x4 matrix constructed from four double2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// double2x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 double2x4(double2 c0, double2 c1, double2 c2, double2 c3) { return new double2x4(c0, c1, c2, c3); } /// Returns a double2x4 matrix constructed from from 8 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// double2x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 double2x4(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13) @@ -397,42 +571,62 @@ public static double2x4 double2x4(double m00, double m01, double m02, double m03 } /// Returns a double2x4 matrix constructed from a single double value by assigning it to every component. + /// double to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 double2x4(double v) { return new double2x4(v); } /// Returns a double2x4 matrix constructed from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 double2x4(bool v) { return new double2x4(v); } /// Return a double2x4 matrix constructed from a bool2x4 matrix by componentwise conversion. + /// bool2x4 to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 double2x4(bool2x4 v) { return new double2x4(v); } /// Returns a double2x4 matrix constructed from a single int value by converting it to double and assigning it to every component. + /// int to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 double2x4(int v) { return new double2x4(v); } /// Return a double2x4 matrix constructed from a int2x4 matrix by componentwise conversion. + /// int2x4 to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 double2x4(int2x4 v) { return new double2x4(v); } /// Returns a double2x4 matrix constructed from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 double2x4(uint v) { return new double2x4(v); } /// Return a double2x4 matrix constructed from a uint2x4 matrix by componentwise conversion. + /// uint2x4 to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 double2x4(uint2x4 v) { return new double2x4(v); } /// Returns a double2x4 matrix constructed from a single float value by converting it to double and assigning it to every component. + /// float to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 double2x4(float v) { return new double2x4(v); } /// Return a double2x4 matrix constructed from a float2x4 matrix by componentwise conversion. + /// float2x4 to convert to double2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 double2x4(float2x4 v) { return new double2x4(v); } /// Return the double4x2 transpose of a double2x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 transpose(double2x4 v) { @@ -443,7 +637,9 @@ public static double4x2 transpose(double2x4 v) v.c3.x, v.c3.y); } - /// Returns a uint hash code of a double2x4 vector. + /// Returns a uint hash code of a double2x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(double2x4 v) { @@ -454,10 +650,12 @@ public static uint hash(double2x4 v) } /// - /// Returns a uint2 vector hash code of a double2x4 vector. + /// Returns a uint2 vector hash code of a double2x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(double2x4 v) { diff --git a/src/Unity.Mathematics/double3.gen.cs b/src/Unity.Mathematics/double3.gen.cs index d7959517..048026bf 100644 --- a/src/Unity.Mathematics/double3.gen.cs +++ b/src/Unity.Mathematics/double3.gen.cs @@ -15,19 +15,26 @@ namespace Unity.Mathematics { + /// A 3 component vector of doubles. [DebuggerTypeProxy(typeof(double3.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct double3 : System.IEquatable, IFormattable { + /// x component of the vector. public double x; + /// y component of the vector. public double y; + /// z component of the vector. public double z; /// double3 zero value. public static readonly double3 zero; /// Constructs a double3 vector from three double values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(double x, double y, double z) { @@ -37,6 +44,8 @@ public double3(double x, double y, double z) } /// Constructs a double3 vector from a double value and a double2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(double x, double2 yz) { @@ -46,6 +55,8 @@ public double3(double x, double2 yz) } /// Constructs a double3 vector from a double2 vector and a double value. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(double2 xy, double z) { @@ -55,6 +66,7 @@ public double3(double2 xy, double z) } /// Constructs a double3 vector from a double3 vector. + /// The constructed vector's xyz components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(double3 xyz) { @@ -64,6 +76,7 @@ public double3(double3 xyz) } /// Constructs a double3 vector from a single double value by assigning it to every component. + /// double to convert to double3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(double v) { @@ -73,6 +86,7 @@ public double3(double v) } /// Constructs a double3 vector from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(bool v) { @@ -82,6 +96,7 @@ public double3(bool v) } /// Constructs a double3 vector from a bool3 vector by componentwise conversion. + /// bool3 to convert to double3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(bool3 v) { @@ -91,6 +106,7 @@ public double3(bool3 v) } /// Constructs a double3 vector from a single int value by converting it to double and assigning it to every component. + /// int to convert to double3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(int v) { @@ -100,6 +116,7 @@ public double3(int v) } /// Constructs a double3 vector from a int3 vector by componentwise conversion. + /// int3 to convert to double3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(int3 v) { @@ -109,6 +126,7 @@ public double3(int3 v) } /// Constructs a double3 vector from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(uint v) { @@ -118,6 +136,7 @@ public double3(uint v) } /// Constructs a double3 vector from a uint3 vector by componentwise conversion. + /// uint3 to convert to double3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(uint3 v) { @@ -127,6 +146,7 @@ public double3(uint3 v) } /// Constructs a double3 vector from a single half value by converting it to double and assigning it to every component. + /// half to convert to double3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(half v) { @@ -136,6 +156,7 @@ public double3(half v) } /// Constructs a double3 vector from a half3 vector by componentwise conversion. + /// half3 to convert to double3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(half3 v) { @@ -145,6 +166,7 @@ public double3(half3 v) } /// Constructs a double3 vector from a single float value by converting it to double and assigning it to every component. + /// float to convert to double3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(float v) { @@ -154,6 +176,7 @@ public double3(float v) } /// Constructs a double3 vector from a float3 vector by componentwise conversion. + /// float3 to convert to double3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3(float3 v) { @@ -164,215 +187,345 @@ public double3(float3 v) /// Implicitly converts a single double value to a double3 vector by assigning it to every component. + /// double to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3(double v) { return new double3(v); } /// Explicitly converts a single bool value to a double3 vector by converting it to double and assigning it to every component. + /// bool to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double3(bool v) { return new double3(v); } /// Explicitly converts a bool3 vector to a double3 vector by componentwise conversion. + /// bool3 to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double3(bool3 v) { return new double3(v); } /// Implicitly converts a single int value to a double3 vector by converting it to double and assigning it to every component. + /// int to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3(int v) { return new double3(v); } /// Implicitly converts a int3 vector to a double3 vector by componentwise conversion. + /// int3 to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3(int3 v) { return new double3(v); } /// Implicitly converts a single uint value to a double3 vector by converting it to double and assigning it to every component. + /// uint to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3(uint v) { return new double3(v); } /// Implicitly converts a uint3 vector to a double3 vector by componentwise conversion. + /// uint3 to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3(uint3 v) { return new double3(v); } /// Implicitly converts a single half value to a double3 vector by converting it to double and assigning it to every component. + /// half to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3(half v) { return new double3(v); } /// Implicitly converts a half3 vector to a double3 vector by componentwise conversion. + /// half3 to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3(half3 v) { return new double3(v); } /// Implicitly converts a single float value to a double3 vector by converting it to double and assigning it to every component. + /// float to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3(float v) { return new double3(v); } /// Implicitly converts a float3 vector to a double3 vector by componentwise conversion. + /// float3 to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3(float3 v) { return new double3(v); } /// Returns the result of a componentwise multiplication operation on two double3 vectors. + /// Left hand side double3 to use to compute componentwise multiplication. + /// Right hand side double3 to use to compute componentwise multiplication. + /// double3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator * (double3 lhs, double3 rhs) { return new double3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } /// Returns the result of a componentwise multiplication operation on a double3 vector and a double value. + /// Left hand side double3 to use to compute componentwise multiplication. + /// Right hand side double to use to compute componentwise multiplication. + /// double3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator * (double3 lhs, double rhs) { return new double3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } /// Returns the result of a componentwise multiplication operation on a double value and a double3 vector. + /// Left hand side double to use to compute componentwise multiplication. + /// Right hand side double3 to use to compute componentwise multiplication. + /// double3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator * (double lhs, double3 rhs) { return new double3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } /// Returns the result of a componentwise addition operation on two double3 vectors. + /// Left hand side double3 to use to compute componentwise addition. + /// Right hand side double3 to use to compute componentwise addition. + /// double3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator + (double3 lhs, double3 rhs) { return new double3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } /// Returns the result of a componentwise addition operation on a double3 vector and a double value. + /// Left hand side double3 to use to compute componentwise addition. + /// Right hand side double to use to compute componentwise addition. + /// double3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator + (double3 lhs, double rhs) { return new double3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } /// Returns the result of a componentwise addition operation on a double value and a double3 vector. + /// Left hand side double to use to compute componentwise addition. + /// Right hand side double3 to use to compute componentwise addition. + /// double3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator + (double lhs, double3 rhs) { return new double3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } /// Returns the result of a componentwise subtraction operation on two double3 vectors. + /// Left hand side double3 to use to compute componentwise subtraction. + /// Right hand side double3 to use to compute componentwise subtraction. + /// double3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator - (double3 lhs, double3 rhs) { return new double3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } /// Returns the result of a componentwise subtraction operation on a double3 vector and a double value. + /// Left hand side double3 to use to compute componentwise subtraction. + /// Right hand side double to use to compute componentwise subtraction. + /// double3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator - (double3 lhs, double rhs) { return new double3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } /// Returns the result of a componentwise subtraction operation on a double value and a double3 vector. + /// Left hand side double to use to compute componentwise subtraction. + /// Right hand side double3 to use to compute componentwise subtraction. + /// double3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator - (double lhs, double3 rhs) { return new double3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } /// Returns the result of a componentwise division operation on two double3 vectors. + /// Left hand side double3 to use to compute componentwise division. + /// Right hand side double3 to use to compute componentwise division. + /// double3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator / (double3 lhs, double3 rhs) { return new double3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } /// Returns the result of a componentwise division operation on a double3 vector and a double value. + /// Left hand side double3 to use to compute componentwise division. + /// Right hand side double to use to compute componentwise division. + /// double3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator / (double3 lhs, double rhs) { return new double3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } /// Returns the result of a componentwise division operation on a double value and a double3 vector. + /// Left hand side double to use to compute componentwise division. + /// Right hand side double3 to use to compute componentwise division. + /// double3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator / (double lhs, double3 rhs) { return new double3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } /// Returns the result of a componentwise modulus operation on two double3 vectors. + /// Left hand side double3 to use to compute componentwise modulus. + /// Right hand side double3 to use to compute componentwise modulus. + /// double3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator % (double3 lhs, double3 rhs) { return new double3 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z); } /// Returns the result of a componentwise modulus operation on a double3 vector and a double value. + /// Left hand side double3 to use to compute componentwise modulus. + /// Right hand side double to use to compute componentwise modulus. + /// double3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator % (double3 lhs, double rhs) { return new double3 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs); } /// Returns the result of a componentwise modulus operation on a double value and a double3 vector. + /// Left hand side double to use to compute componentwise modulus. + /// Right hand side double3 to use to compute componentwise modulus. + /// double3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator % (double lhs, double3 rhs) { return new double3 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z); } /// Returns the result of a componentwise increment operation on a double3 vector. + /// Value to use when computing the componentwise increment. + /// double3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator ++ (double3 val) { return new double3 (++val.x, ++val.y, ++val.z); } /// Returns the result of a componentwise decrement operation on a double3 vector. + /// Value to use when computing the componentwise decrement. + /// double3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator -- (double3 val) { return new double3 (--val.x, --val.y, --val.z); } /// Returns the result of a componentwise less than operation on two double3 vectors. + /// Left hand side double3 to use to compute componentwise less than. + /// Right hand side double3 to use to compute componentwise less than. + /// bool3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (double3 lhs, double3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } /// Returns the result of a componentwise less than operation on a double3 vector and a double value. + /// Left hand side double3 to use to compute componentwise less than. + /// Right hand side double to use to compute componentwise less than. + /// bool3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (double3 lhs, double rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } /// Returns the result of a componentwise less than operation on a double value and a double3 vector. + /// Left hand side double to use to compute componentwise less than. + /// Right hand side double3 to use to compute componentwise less than. + /// bool3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (double lhs, double3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } /// Returns the result of a componentwise less or equal operation on two double3 vectors. + /// Left hand side double3 to use to compute componentwise less or equal. + /// Right hand side double3 to use to compute componentwise less or equal. + /// bool3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (double3 lhs, double3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } /// Returns the result of a componentwise less or equal operation on a double3 vector and a double value. + /// Left hand side double3 to use to compute componentwise less or equal. + /// Right hand side double to use to compute componentwise less or equal. + /// bool3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (double3 lhs, double rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } /// Returns the result of a componentwise less or equal operation on a double value and a double3 vector. + /// Left hand side double to use to compute componentwise less or equal. + /// Right hand side double3 to use to compute componentwise less or equal. + /// bool3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (double lhs, double3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } /// Returns the result of a componentwise greater than operation on two double3 vectors. + /// Left hand side double3 to use to compute componentwise greater than. + /// Right hand side double3 to use to compute componentwise greater than. + /// bool3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (double3 lhs, double3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } /// Returns the result of a componentwise greater than operation on a double3 vector and a double value. + /// Left hand side double3 to use to compute componentwise greater than. + /// Right hand side double to use to compute componentwise greater than. + /// bool3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (double3 lhs, double rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } /// Returns the result of a componentwise greater than operation on a double value and a double3 vector. + /// Left hand side double to use to compute componentwise greater than. + /// Right hand side double3 to use to compute componentwise greater than. + /// bool3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (double lhs, double3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } /// Returns the result of a componentwise greater or equal operation on two double3 vectors. + /// Left hand side double3 to use to compute componentwise greater or equal. + /// Right hand side double3 to use to compute componentwise greater or equal. + /// bool3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (double3 lhs, double3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } /// Returns the result of a componentwise greater or equal operation on a double3 vector and a double value. + /// Left hand side double3 to use to compute componentwise greater or equal. + /// Right hand side double to use to compute componentwise greater or equal. + /// bool3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (double3 lhs, double rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } /// Returns the result of a componentwise greater or equal operation on a double value and a double3 vector. + /// Left hand side double to use to compute componentwise greater or equal. + /// Right hand side double3 to use to compute componentwise greater or equal. + /// bool3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (double lhs, double3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } /// Returns the result of a componentwise unary minus operation on a double3 vector. + /// Value to use when computing the componentwise unary minus. + /// double3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator - (double3 val) { return new double3 (-val.x, -val.y, -val.z); } /// Returns the result of a componentwise unary plus operation on a double3 vector. + /// Value to use when computing the componentwise unary plus. + /// double3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 operator + (double3 val) { return new double3 (+val.x, +val.y, +val.z); } /// Returns the result of a componentwise equality operation on two double3 vectors. + /// Left hand side double3 to use to compute componentwise equality. + /// Right hand side double3 to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (double3 lhs, double3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } /// Returns the result of a componentwise equality operation on a double3 vector and a double value. + /// Left hand side double3 to use to compute componentwise equality. + /// Right hand side double to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (double3 lhs, double rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } /// Returns the result of a componentwise equality operation on a double value and a double3 vector. + /// Left hand side double to use to compute componentwise equality. + /// Right hand side double3 to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (double lhs, double3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } /// Returns the result of a componentwise not equal operation on two double3 vectors. + /// Left hand side double3 to use to compute componentwise not equal. + /// Right hand side double3 to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (double3 lhs, double3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } /// Returns the result of a componentwise not equal operation on a double3 vector and a double value. + /// Left hand side double3 to use to compute componentwise not equal. + /// Right hand side double to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (double3 lhs, double rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } /// Returns the result of a componentwise not equal operation on a double value and a double3 vector. + /// Left hand side double to use to compute componentwise not equal. + /// Right hand side double3 to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (double lhs, double3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxxx { @@ -381,6 +534,7 @@ public double4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxxy { @@ -389,6 +543,7 @@ public double4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxxz { @@ -397,6 +552,7 @@ public double4 xxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxyx { @@ -405,6 +561,7 @@ public double4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxyy { @@ -413,6 +570,7 @@ public double4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxyz { @@ -421,6 +579,7 @@ public double4 xxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxzx { @@ -429,6 +588,7 @@ public double4 xxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxzy { @@ -437,6 +597,7 @@ public double4 xxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxzz { @@ -445,6 +606,7 @@ public double4 xxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyxx { @@ -453,6 +615,7 @@ public double4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyxy { @@ -461,6 +624,7 @@ public double4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyxz { @@ -469,6 +633,7 @@ public double4 xyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyyx { @@ -477,6 +642,7 @@ public double4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyyy { @@ -485,6 +651,7 @@ public double4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyyz { @@ -493,6 +660,7 @@ public double4 xyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyzx { @@ -501,6 +669,7 @@ public double4 xyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyzy { @@ -509,6 +678,7 @@ public double4 xyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyzz { @@ -517,6 +687,7 @@ public double4 xyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzxx { @@ -525,6 +696,7 @@ public double4 xzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzxy { @@ -533,6 +705,7 @@ public double4 xzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzxz { @@ -541,6 +714,7 @@ public double4 xzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzyx { @@ -549,6 +723,7 @@ public double4 xzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzyy { @@ -557,6 +732,7 @@ public double4 xzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzyz { @@ -565,6 +741,7 @@ public double4 xzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzzx { @@ -573,6 +750,7 @@ public double4 xzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzzy { @@ -581,6 +759,7 @@ public double4 xzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzzz { @@ -589,6 +768,7 @@ public double4 xzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxxx { @@ -597,6 +777,7 @@ public double4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxxy { @@ -605,6 +786,7 @@ public double4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxxz { @@ -613,6 +795,7 @@ public double4 yxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxyx { @@ -621,6 +804,7 @@ public double4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxyy { @@ -629,6 +813,7 @@ public double4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxyz { @@ -637,6 +822,7 @@ public double4 yxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxzx { @@ -645,6 +831,7 @@ public double4 yxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxzy { @@ -653,6 +840,7 @@ public double4 yxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxzz { @@ -661,6 +849,7 @@ public double4 yxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyxx { @@ -669,6 +858,7 @@ public double4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyxy { @@ -677,6 +867,7 @@ public double4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyxz { @@ -685,6 +876,7 @@ public double4 yyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyyx { @@ -693,6 +885,7 @@ public double4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyyy { @@ -701,6 +894,7 @@ public double4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyyz { @@ -709,6 +903,7 @@ public double4 yyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyzx { @@ -717,6 +912,7 @@ public double4 yyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyzy { @@ -725,6 +921,7 @@ public double4 yyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyzz { @@ -733,6 +930,7 @@ public double4 yyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzxx { @@ -741,6 +939,7 @@ public double4 yzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzxy { @@ -749,6 +948,7 @@ public double4 yzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzxz { @@ -757,6 +957,7 @@ public double4 yzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzyx { @@ -765,6 +966,7 @@ public double4 yzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzyy { @@ -773,6 +975,7 @@ public double4 yzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzyz { @@ -781,6 +984,7 @@ public double4 yzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzzx { @@ -789,6 +993,7 @@ public double4 yzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzzy { @@ -797,6 +1002,7 @@ public double4 yzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzzz { @@ -805,6 +1011,7 @@ public double4 yzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxxx { @@ -813,6 +1020,7 @@ public double4 zxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxxy { @@ -821,6 +1029,7 @@ public double4 zxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxxz { @@ -829,6 +1038,7 @@ public double4 zxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxyx { @@ -837,6 +1047,7 @@ public double4 zxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxyy { @@ -845,6 +1056,7 @@ public double4 zxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxyz { @@ -853,6 +1065,7 @@ public double4 zxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxzx { @@ -861,6 +1074,7 @@ public double4 zxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxzy { @@ -869,6 +1083,7 @@ public double4 zxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxzz { @@ -877,6 +1092,7 @@ public double4 zxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyxx { @@ -885,6 +1101,7 @@ public double4 zyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyxy { @@ -893,6 +1110,7 @@ public double4 zyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyxz { @@ -901,6 +1119,7 @@ public double4 zyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyyx { @@ -909,6 +1128,7 @@ public double4 zyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyyy { @@ -917,6 +1137,7 @@ public double4 zyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyyz { @@ -925,6 +1146,7 @@ public double4 zyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyzx { @@ -933,6 +1155,7 @@ public double4 zyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyzy { @@ -941,6 +1164,7 @@ public double4 zyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyzz { @@ -949,6 +1173,7 @@ public double4 zyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzxx { @@ -957,6 +1182,7 @@ public double4 zzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzxy { @@ -965,6 +1191,7 @@ public double4 zzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzxz { @@ -973,6 +1200,7 @@ public double4 zzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzyx { @@ -981,6 +1209,7 @@ public double4 zzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzyy { @@ -989,6 +1218,7 @@ public double4 zzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzyz { @@ -997,6 +1227,7 @@ public double4 zzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzzx { @@ -1005,6 +1236,7 @@ public double4 zzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzzy { @@ -1013,6 +1245,7 @@ public double4 zzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzzz { @@ -1021,6 +1254,7 @@ public double4 zzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xxx { @@ -1029,6 +1263,7 @@ public double3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xxy { @@ -1037,6 +1272,7 @@ public double3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xxz { @@ -1045,6 +1281,7 @@ public double3 xxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xyx { @@ -1053,6 +1290,7 @@ public double3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xyy { @@ -1061,6 +1299,7 @@ public double3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xyz { @@ -1071,6 +1310,7 @@ public double3 xyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xzx { @@ -1079,6 +1319,7 @@ public double3 xzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xzy { @@ -1089,6 +1330,7 @@ public double3 xzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xzz { @@ -1097,6 +1339,7 @@ public double3 xzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yxx { @@ -1105,6 +1348,7 @@ public double3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yxy { @@ -1113,6 +1357,7 @@ public double3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yxz { @@ -1123,6 +1368,7 @@ public double3 yxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yyx { @@ -1131,6 +1377,7 @@ public double3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yyy { @@ -1139,6 +1386,7 @@ public double3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yyz { @@ -1147,6 +1395,7 @@ public double3 yyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yzx { @@ -1157,6 +1406,7 @@ public double3 yzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yzy { @@ -1165,6 +1415,7 @@ public double3 yzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yzz { @@ -1173,6 +1424,7 @@ public double3 yzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zxx { @@ -1181,6 +1433,7 @@ public double3 zxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zxy { @@ -1191,6 +1444,7 @@ public double3 zxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zxz { @@ -1199,6 +1453,7 @@ public double3 zxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zyx { @@ -1209,6 +1464,7 @@ public double3 zyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zyy { @@ -1217,6 +1473,7 @@ public double3 zyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zyz { @@ -1225,6 +1482,7 @@ public double3 zyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zzx { @@ -1233,6 +1491,7 @@ public double3 zzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zzy { @@ -1241,6 +1500,7 @@ public double3 zzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zzz { @@ -1249,6 +1509,7 @@ public double3 zzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 xx { @@ -1257,6 +1518,7 @@ public double2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 xy { @@ -1267,6 +1529,7 @@ public double2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 xz { @@ -1277,6 +1540,7 @@ public double2 xz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 yx { @@ -1287,6 +1551,7 @@ public double2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 yy { @@ -1295,6 +1560,7 @@ public double2 yy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 yz { @@ -1305,6 +1571,7 @@ public double2 yz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 zx { @@ -1315,6 +1582,7 @@ public double2 zx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 zy { @@ -1325,6 +1593,7 @@ public double2 zy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 zz { @@ -1356,19 +1625,25 @@ unsafe public double this[int index] } /// Returns true if the double3 is equal to a given double3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(double3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } /// Returns true if the double3 is equal to a given double3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is double3 converted && Equals(converted); } /// Returns a hash code for the double3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the double3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -1376,6 +1651,9 @@ public override string ToString() } /// Returns a string representation of the double3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -1400,66 +1678,102 @@ public DebuggerProxy(double3 v) public static partial class math { /// Returns a double3 vector constructed from three double values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// double3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(double x, double y, double z) { return new double3(x, y, z); } /// Returns a double3 vector constructed from a double value and a double2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// double3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(double x, double2 yz) { return new double3(x, yz); } /// Returns a double3 vector constructed from a double2 vector and a double value. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// double3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(double2 xy, double z) { return new double3(xy, z); } /// Returns a double3 vector constructed from a double3 vector. + /// The constructed vector's xyz components will be set to this value. + /// double3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(double3 xyz) { return new double3(xyz); } /// Returns a double3 vector constructed from a single double value by assigning it to every component. + /// double to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(double v) { return new double3(v); } /// Returns a double3 vector constructed from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(bool v) { return new double3(v); } /// Return a double3 vector constructed from a bool3 vector by componentwise conversion. + /// bool3 to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(bool3 v) { return new double3(v); } /// Returns a double3 vector constructed from a single int value by converting it to double and assigning it to every component. + /// int to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(int v) { return new double3(v); } /// Return a double3 vector constructed from a int3 vector by componentwise conversion. + /// int3 to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(int3 v) { return new double3(v); } /// Returns a double3 vector constructed from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(uint v) { return new double3(v); } /// Return a double3 vector constructed from a uint3 vector by componentwise conversion. + /// uint3 to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(uint3 v) { return new double3(v); } /// Returns a double3 vector constructed from a single half value by converting it to double and assigning it to every component. + /// half to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(half v) { return new double3(v); } /// Return a double3 vector constructed from a half3 vector by componentwise conversion. + /// half3 to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(half3 v) { return new double3(v); } /// Returns a double3 vector constructed from a single float value by converting it to double and assigning it to every component. + /// float to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(float v) { return new double3(v); } /// Return a double3 vector constructed from a float3 vector by componentwise conversion. + /// float3 to convert to double3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 double3(float3 v) { return new double3(v); } /// Returns a uint hash code of a double3 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(double3 v) { @@ -1471,6 +1785,8 @@ public static uint hash(double3 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(double3 v) { @@ -1478,40 +1794,62 @@ public static uint3 hashwide(double3 v) } /// Returns the result of specified shuffling of the components from two double3 vectors into a double value. + /// double3 to use as the left argument of the shuffle operation. + /// double3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting double. + /// double result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double shuffle(double3 a, double3 b, ShuffleComponent x) + public static double shuffle(double3 left, double3 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two double3 vectors into a double2 vector. + /// double3 to use as the left argument of the shuffle operation. + /// double3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting double2 x component. + /// The ShuffleComponent to use when setting the resulting double2 y component. + /// double2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 shuffle(double3 a, double3 b, ShuffleComponent x, ShuffleComponent y) + public static double2 shuffle(double3 left, double3 right, ShuffleComponent x, ShuffleComponent y) { return double2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two double3 vectors into a double3 vector. + /// double3 to use as the left argument of the shuffle operation. + /// double3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting double3 x component. + /// The ShuffleComponent to use when setting the resulting double3 y component. + /// The ShuffleComponent to use when setting the resulting double3 z component. + /// double3 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 shuffle(double3 a, double3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + public static double3 shuffle(double3 left, double3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return double3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two double3 vectors into a double4 vector. + /// double3 to use as the left argument of the shuffle operation. + /// double3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting double4 x component. + /// The ShuffleComponent to use when setting the resulting double4 y component. + /// The ShuffleComponent to use when setting the resulting double4 z component. + /// The ShuffleComponent to use when setting the resulting double4 w component. + /// double4 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 shuffle(double3 a, double3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + public static double4 shuffle(double3 left, double3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return double4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/double3x2.gen.cs b/src/Unity.Mathematics/double3x2.gen.cs index 080f10e8..f485cc00 100644 --- a/src/Unity.Mathematics/double3x2.gen.cs +++ b/src/Unity.Mathematics/double3x2.gen.cs @@ -14,17 +14,22 @@ namespace Unity.Mathematics { + /// A 3x2 matrix of doubles. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct double3x2 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public double3 c0; + /// Column 1 of the matrix. public double3 c1; /// double3x2 zero value. public static readonly double3x2 zero; /// Constructs a double3x2 matrix from two double3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x2(double3 c0, double3 c1) { @@ -33,6 +38,12 @@ public double3x2(double3 c0, double3 c1) } /// Constructs a double3x2 matrix from 6 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x2(double m00, double m01, double m10, double m11, @@ -43,6 +54,7 @@ public double3x2(double m00, double m01, } /// Constructs a double3x2 matrix from a single double value by assigning it to every component. + /// double to convert to double3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x2(double v) { @@ -51,6 +63,7 @@ public double3x2(double v) } /// Constructs a double3x2 matrix from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x2(bool v) { @@ -59,6 +72,7 @@ public double3x2(bool v) } /// Constructs a double3x2 matrix from a bool3x2 matrix by componentwise conversion. + /// bool3x2 to convert to double3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x2(bool3x2 v) { @@ -67,6 +81,7 @@ public double3x2(bool3x2 v) } /// Constructs a double3x2 matrix from a single int value by converting it to double and assigning it to every component. + /// int to convert to double3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x2(int v) { @@ -75,6 +90,7 @@ public double3x2(int v) } /// Constructs a double3x2 matrix from a int3x2 matrix by componentwise conversion. + /// int3x2 to convert to double3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x2(int3x2 v) { @@ -83,6 +99,7 @@ public double3x2(int3x2 v) } /// Constructs a double3x2 matrix from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x2(uint v) { @@ -91,6 +108,7 @@ public double3x2(uint v) } /// Constructs a double3x2 matrix from a uint3x2 matrix by componentwise conversion. + /// uint3x2 to convert to double3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x2(uint3x2 v) { @@ -99,6 +117,7 @@ public double3x2(uint3x2 v) } /// Constructs a double3x2 matrix from a single float value by converting it to double and assigning it to every component. + /// float to convert to double3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x2(float v) { @@ -107,6 +126,7 @@ public double3x2(float v) } /// Constructs a double3x2 matrix from a float3x2 matrix by componentwise conversion. + /// float3x2 to convert to double3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x2(float3x2 v) { @@ -116,201 +136,326 @@ public double3x2(float3x2 v) /// Implicitly converts a single double value to a double3x2 matrix by assigning it to every component. + /// double to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x2(double v) { return new double3x2(v); } /// Explicitly converts a single bool value to a double3x2 matrix by converting it to double and assigning it to every component. + /// bool to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double3x2(bool v) { return new double3x2(v); } /// Explicitly converts a bool3x2 matrix to a double3x2 matrix by componentwise conversion. + /// bool3x2 to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double3x2(bool3x2 v) { return new double3x2(v); } /// Implicitly converts a single int value to a double3x2 matrix by converting it to double and assigning it to every component. + /// int to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x2(int v) { return new double3x2(v); } /// Implicitly converts a int3x2 matrix to a double3x2 matrix by componentwise conversion. + /// int3x2 to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x2(int3x2 v) { return new double3x2(v); } /// Implicitly converts a single uint value to a double3x2 matrix by converting it to double and assigning it to every component. + /// uint to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x2(uint v) { return new double3x2(v); } /// Implicitly converts a uint3x2 matrix to a double3x2 matrix by componentwise conversion. + /// uint3x2 to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x2(uint3x2 v) { return new double3x2(v); } /// Implicitly converts a single float value to a double3x2 matrix by converting it to double and assigning it to every component. + /// float to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x2(float v) { return new double3x2(v); } /// Implicitly converts a float3x2 matrix to a double3x2 matrix by componentwise conversion. + /// float3x2 to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x2(float3x2 v) { return new double3x2(v); } /// Returns the result of a componentwise multiplication operation on two double3x2 matrices. + /// Left hand side double3x2 to use to compute componentwise multiplication. + /// Right hand side double3x2 to use to compute componentwise multiplication. + /// double3x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator * (double3x2 lhs, double3x2 rhs) { return new double3x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } /// Returns the result of a componentwise multiplication operation on a double3x2 matrix and a double value. + /// Left hand side double3x2 to use to compute componentwise multiplication. + /// Right hand side double to use to compute componentwise multiplication. + /// double3x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator * (double3x2 lhs, double rhs) { return new double3x2 (lhs.c0 * rhs, lhs.c1 * rhs); } /// Returns the result of a componentwise multiplication operation on a double value and a double3x2 matrix. + /// Left hand side double to use to compute componentwise multiplication. + /// Right hand side double3x2 to use to compute componentwise multiplication. + /// double3x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator * (double lhs, double3x2 rhs) { return new double3x2 (lhs * rhs.c0, lhs * rhs.c1); } /// Returns the result of a componentwise addition operation on two double3x2 matrices. + /// Left hand side double3x2 to use to compute componentwise addition. + /// Right hand side double3x2 to use to compute componentwise addition. + /// double3x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator + (double3x2 lhs, double3x2 rhs) { return new double3x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } /// Returns the result of a componentwise addition operation on a double3x2 matrix and a double value. + /// Left hand side double3x2 to use to compute componentwise addition. + /// Right hand side double to use to compute componentwise addition. + /// double3x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator + (double3x2 lhs, double rhs) { return new double3x2 (lhs.c0 + rhs, lhs.c1 + rhs); } /// Returns the result of a componentwise addition operation on a double value and a double3x2 matrix. + /// Left hand side double to use to compute componentwise addition. + /// Right hand side double3x2 to use to compute componentwise addition. + /// double3x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator + (double lhs, double3x2 rhs) { return new double3x2 (lhs + rhs.c0, lhs + rhs.c1); } /// Returns the result of a componentwise subtraction operation on two double3x2 matrices. + /// Left hand side double3x2 to use to compute componentwise subtraction. + /// Right hand side double3x2 to use to compute componentwise subtraction. + /// double3x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator - (double3x2 lhs, double3x2 rhs) { return new double3x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } /// Returns the result of a componentwise subtraction operation on a double3x2 matrix and a double value. + /// Left hand side double3x2 to use to compute componentwise subtraction. + /// Right hand side double to use to compute componentwise subtraction. + /// double3x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator - (double3x2 lhs, double rhs) { return new double3x2 (lhs.c0 - rhs, lhs.c1 - rhs); } /// Returns the result of a componentwise subtraction operation on a double value and a double3x2 matrix. + /// Left hand side double to use to compute componentwise subtraction. + /// Right hand side double3x2 to use to compute componentwise subtraction. + /// double3x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator - (double lhs, double3x2 rhs) { return new double3x2 (lhs - rhs.c0, lhs - rhs.c1); } /// Returns the result of a componentwise division operation on two double3x2 matrices. + /// Left hand side double3x2 to use to compute componentwise division. + /// Right hand side double3x2 to use to compute componentwise division. + /// double3x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator / (double3x2 lhs, double3x2 rhs) { return new double3x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } /// Returns the result of a componentwise division operation on a double3x2 matrix and a double value. + /// Left hand side double3x2 to use to compute componentwise division. + /// Right hand side double to use to compute componentwise division. + /// double3x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator / (double3x2 lhs, double rhs) { return new double3x2 (lhs.c0 / rhs, lhs.c1 / rhs); } /// Returns the result of a componentwise division operation on a double value and a double3x2 matrix. + /// Left hand side double to use to compute componentwise division. + /// Right hand side double3x2 to use to compute componentwise division. + /// double3x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator / (double lhs, double3x2 rhs) { return new double3x2 (lhs / rhs.c0, lhs / rhs.c1); } /// Returns the result of a componentwise modulus operation on two double3x2 matrices. + /// Left hand side double3x2 to use to compute componentwise modulus. + /// Right hand side double3x2 to use to compute componentwise modulus. + /// double3x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator % (double3x2 lhs, double3x2 rhs) { return new double3x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } /// Returns the result of a componentwise modulus operation on a double3x2 matrix and a double value. + /// Left hand side double3x2 to use to compute componentwise modulus. + /// Right hand side double to use to compute componentwise modulus. + /// double3x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator % (double3x2 lhs, double rhs) { return new double3x2 (lhs.c0 % rhs, lhs.c1 % rhs); } /// Returns the result of a componentwise modulus operation on a double value and a double3x2 matrix. + /// Left hand side double to use to compute componentwise modulus. + /// Right hand side double3x2 to use to compute componentwise modulus. + /// double3x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator % (double lhs, double3x2 rhs) { return new double3x2 (lhs % rhs.c0, lhs % rhs.c1); } /// Returns the result of a componentwise increment operation on a double3x2 matrix. + /// Value to use when computing the componentwise increment. + /// double3x2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator ++ (double3x2 val) { return new double3x2 (++val.c0, ++val.c1); } /// Returns the result of a componentwise decrement operation on a double3x2 matrix. + /// Value to use when computing the componentwise decrement. + /// double3x2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator -- (double3x2 val) { return new double3x2 (--val.c0, --val.c1); } /// Returns the result of a componentwise less than operation on two double3x2 matrices. + /// Left hand side double3x2 to use to compute componentwise less than. + /// Right hand side double3x2 to use to compute componentwise less than. + /// bool3x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator < (double3x2 lhs, double3x2 rhs) { return new bool3x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } /// Returns the result of a componentwise less than operation on a double3x2 matrix and a double value. + /// Left hand side double3x2 to use to compute componentwise less than. + /// Right hand side double to use to compute componentwise less than. + /// bool3x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator < (double3x2 lhs, double rhs) { return new bool3x2 (lhs.c0 < rhs, lhs.c1 < rhs); } /// Returns the result of a componentwise less than operation on a double value and a double3x2 matrix. + /// Left hand side double to use to compute componentwise less than. + /// Right hand side double3x2 to use to compute componentwise less than. + /// bool3x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator < (double lhs, double3x2 rhs) { return new bool3x2 (lhs < rhs.c0, lhs < rhs.c1); } /// Returns the result of a componentwise less or equal operation on two double3x2 matrices. + /// Left hand side double3x2 to use to compute componentwise less or equal. + /// Right hand side double3x2 to use to compute componentwise less or equal. + /// bool3x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator <= (double3x2 lhs, double3x2 rhs) { return new bool3x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } /// Returns the result of a componentwise less or equal operation on a double3x2 matrix and a double value. + /// Left hand side double3x2 to use to compute componentwise less or equal. + /// Right hand side double to use to compute componentwise less or equal. + /// bool3x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator <= (double3x2 lhs, double rhs) { return new bool3x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } /// Returns the result of a componentwise less or equal operation on a double value and a double3x2 matrix. + /// Left hand side double to use to compute componentwise less or equal. + /// Right hand side double3x2 to use to compute componentwise less or equal. + /// bool3x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator <= (double lhs, double3x2 rhs) { return new bool3x2 (lhs <= rhs.c0, lhs <= rhs.c1); } /// Returns the result of a componentwise greater than operation on two double3x2 matrices. + /// Left hand side double3x2 to use to compute componentwise greater than. + /// Right hand side double3x2 to use to compute componentwise greater than. + /// bool3x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator > (double3x2 lhs, double3x2 rhs) { return new bool3x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } /// Returns the result of a componentwise greater than operation on a double3x2 matrix and a double value. + /// Left hand side double3x2 to use to compute componentwise greater than. + /// Right hand side double to use to compute componentwise greater than. + /// bool3x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator > (double3x2 lhs, double rhs) { return new bool3x2 (lhs.c0 > rhs, lhs.c1 > rhs); } /// Returns the result of a componentwise greater than operation on a double value and a double3x2 matrix. + /// Left hand side double to use to compute componentwise greater than. + /// Right hand side double3x2 to use to compute componentwise greater than. + /// bool3x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator > (double lhs, double3x2 rhs) { return new bool3x2 (lhs > rhs.c0, lhs > rhs.c1); } /// Returns the result of a componentwise greater or equal operation on two double3x2 matrices. + /// Left hand side double3x2 to use to compute componentwise greater or equal. + /// Right hand side double3x2 to use to compute componentwise greater or equal. + /// bool3x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator >= (double3x2 lhs, double3x2 rhs) { return new bool3x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } /// Returns the result of a componentwise greater or equal operation on a double3x2 matrix and a double value. + /// Left hand side double3x2 to use to compute componentwise greater or equal. + /// Right hand side double to use to compute componentwise greater or equal. + /// bool3x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator >= (double3x2 lhs, double rhs) { return new bool3x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a double value and a double3x2 matrix. + /// Left hand side double to use to compute componentwise greater or equal. + /// Right hand side double3x2 to use to compute componentwise greater or equal. + /// bool3x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator >= (double lhs, double3x2 rhs) { return new bool3x2 (lhs >= rhs.c0, lhs >= rhs.c1); } /// Returns the result of a componentwise unary minus operation on a double3x2 matrix. + /// Value to use when computing the componentwise unary minus. + /// double3x2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator - (double3x2 val) { return new double3x2 (-val.c0, -val.c1); } /// Returns the result of a componentwise unary plus operation on a double3x2 matrix. + /// Value to use when computing the componentwise unary plus. + /// double3x2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 operator + (double3x2 val) { return new double3x2 (+val.c0, +val.c1); } /// Returns the result of a componentwise equality operation on two double3x2 matrices. + /// Left hand side double3x2 to use to compute componentwise equality. + /// Right hand side double3x2 to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (double3x2 lhs, double3x2 rhs) { return new bool3x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on a double3x2 matrix and a double value. + /// Left hand side double3x2 to use to compute componentwise equality. + /// Right hand side double to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (double3x2 lhs, double rhs) { return new bool3x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on a double value and a double3x2 matrix. + /// Left hand side double to use to compute componentwise equality. + /// Right hand side double3x2 to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (double lhs, double3x2 rhs) { return new bool3x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two double3x2 matrices. + /// Left hand side double3x2 to use to compute componentwise not equal. + /// Right hand side double3x2 to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (double3x2 lhs, double3x2 rhs) { return new bool3x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on a double3x2 matrix and a double value. + /// Left hand side double3x2 to use to compute componentwise not equal. + /// Right hand side double to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (double3x2 lhs, double rhs) { return new bool3x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on a double value and a double3x2 matrix. + /// Left hand side double to use to compute componentwise not equal. + /// Right hand side double3x2 to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (double lhs, double3x2 rhs) { return new bool3x2 (lhs != rhs.c0, lhs != rhs.c1); } @@ -330,19 +475,25 @@ unsafe public ref double3 this[int index] } /// Returns true if the double3x2 is equal to a given double3x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(double3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the double3x2 is equal to a given double3x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is double3x2 converted && Equals(converted); } /// Returns a hash code for the double3x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the double3x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -350,6 +501,9 @@ public override string ToString() } /// Returns a string representation of the double3x2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -361,10 +515,20 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a double3x2 matrix constructed from two double3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// double3x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 double3x2(double3 c0, double3 c1) { return new double3x2(c0, c1); } /// Returns a double3x2 matrix constructed from from 6 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// double3x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 double3x2(double m00, double m01, double m10, double m11, @@ -376,42 +540,62 @@ public static double3x2 double3x2(double m00, double m01, } /// Returns a double3x2 matrix constructed from a single double value by assigning it to every component. + /// double to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 double3x2(double v) { return new double3x2(v); } /// Returns a double3x2 matrix constructed from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 double3x2(bool v) { return new double3x2(v); } /// Return a double3x2 matrix constructed from a bool3x2 matrix by componentwise conversion. + /// bool3x2 to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 double3x2(bool3x2 v) { return new double3x2(v); } /// Returns a double3x2 matrix constructed from a single int value by converting it to double and assigning it to every component. + /// int to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 double3x2(int v) { return new double3x2(v); } /// Return a double3x2 matrix constructed from a int3x2 matrix by componentwise conversion. + /// int3x2 to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 double3x2(int3x2 v) { return new double3x2(v); } /// Returns a double3x2 matrix constructed from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 double3x2(uint v) { return new double3x2(v); } /// Return a double3x2 matrix constructed from a uint3x2 matrix by componentwise conversion. + /// uint3x2 to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 double3x2(uint3x2 v) { return new double3x2(v); } /// Returns a double3x2 matrix constructed from a single float value by converting it to double and assigning it to every component. + /// float to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 double3x2(float v) { return new double3x2(v); } /// Return a double3x2 matrix constructed from a float3x2 matrix by componentwise conversion. + /// float3x2 to convert to double3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 double3x2(float3x2 v) { return new double3x2(v); } /// Return the double2x3 transpose of a double3x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 transpose(double3x2 v) { @@ -420,7 +604,9 @@ public static double2x3 transpose(double3x2 v) v.c1.x, v.c1.y, v.c1.z); } - /// Returns a uint hash code of a double3x2 vector. + /// Returns a uint hash code of a double3x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(double3x2 v) { @@ -429,10 +615,12 @@ public static uint hash(double3x2 v) } /// - /// Returns a uint3 vector hash code of a double3x2 vector. + /// Returns a uint3 vector hash code of a double3x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(double3x2 v) { diff --git a/src/Unity.Mathematics/double3x3.gen.cs b/src/Unity.Mathematics/double3x3.gen.cs index 68e215e1..adf86755 100644 --- a/src/Unity.Mathematics/double3x3.gen.cs +++ b/src/Unity.Mathematics/double3x3.gen.cs @@ -14,12 +14,16 @@ namespace Unity.Mathematics { + /// A 3x3 matrix of doubles. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct double3x3 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public double3 c0; + /// Column 1 of the matrix. public double3 c1; + /// Column 2 of the matrix. public double3 c2; /// double3x3 identity transform. @@ -29,6 +33,9 @@ public partial struct double3x3 : System.IEquatable, IFormattable public static readonly double3x3 zero; /// Constructs a double3x3 matrix from three double3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x3(double3 c0, double3 c1, double3 c2) { @@ -38,6 +45,15 @@ public double3x3(double3 c0, double3 c1, double3 c2) } /// Constructs a double3x3 matrix from 9 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x3(double m00, double m01, double m02, double m10, double m11, double m12, @@ -49,6 +65,7 @@ public double3x3(double m00, double m01, double m02, } /// Constructs a double3x3 matrix from a single double value by assigning it to every component. + /// double to convert to double3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x3(double v) { @@ -58,6 +75,7 @@ public double3x3(double v) } /// Constructs a double3x3 matrix from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x3(bool v) { @@ -67,6 +85,7 @@ public double3x3(bool v) } /// Constructs a double3x3 matrix from a bool3x3 matrix by componentwise conversion. + /// bool3x3 to convert to double3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x3(bool3x3 v) { @@ -76,6 +95,7 @@ public double3x3(bool3x3 v) } /// Constructs a double3x3 matrix from a single int value by converting it to double and assigning it to every component. + /// int to convert to double3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x3(int v) { @@ -85,6 +105,7 @@ public double3x3(int v) } /// Constructs a double3x3 matrix from a int3x3 matrix by componentwise conversion. + /// int3x3 to convert to double3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x3(int3x3 v) { @@ -94,6 +115,7 @@ public double3x3(int3x3 v) } /// Constructs a double3x3 matrix from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x3(uint v) { @@ -103,6 +125,7 @@ public double3x3(uint v) } /// Constructs a double3x3 matrix from a uint3x3 matrix by componentwise conversion. + /// uint3x3 to convert to double3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x3(uint3x3 v) { @@ -112,6 +135,7 @@ public double3x3(uint3x3 v) } /// Constructs a double3x3 matrix from a single float value by converting it to double and assigning it to every component. + /// float to convert to double3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x3(float v) { @@ -121,6 +145,7 @@ public double3x3(float v) } /// Constructs a double3x3 matrix from a float3x3 matrix by componentwise conversion. + /// float3x3 to convert to double3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x3(float3x3 v) { @@ -131,201 +156,326 @@ public double3x3(float3x3 v) /// Implicitly converts a single double value to a double3x3 matrix by assigning it to every component. + /// double to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x3(double v) { return new double3x3(v); } /// Explicitly converts a single bool value to a double3x3 matrix by converting it to double and assigning it to every component. + /// bool to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double3x3(bool v) { return new double3x3(v); } /// Explicitly converts a bool3x3 matrix to a double3x3 matrix by componentwise conversion. + /// bool3x3 to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double3x3(bool3x3 v) { return new double3x3(v); } /// Implicitly converts a single int value to a double3x3 matrix by converting it to double and assigning it to every component. + /// int to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x3(int v) { return new double3x3(v); } /// Implicitly converts a int3x3 matrix to a double3x3 matrix by componentwise conversion. + /// int3x3 to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x3(int3x3 v) { return new double3x3(v); } /// Implicitly converts a single uint value to a double3x3 matrix by converting it to double and assigning it to every component. + /// uint to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x3(uint v) { return new double3x3(v); } /// Implicitly converts a uint3x3 matrix to a double3x3 matrix by componentwise conversion. + /// uint3x3 to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x3(uint3x3 v) { return new double3x3(v); } /// Implicitly converts a single float value to a double3x3 matrix by converting it to double and assigning it to every component. + /// float to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x3(float v) { return new double3x3(v); } /// Implicitly converts a float3x3 matrix to a double3x3 matrix by componentwise conversion. + /// float3x3 to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x3(float3x3 v) { return new double3x3(v); } /// Returns the result of a componentwise multiplication operation on two double3x3 matrices. + /// Left hand side double3x3 to use to compute componentwise multiplication. + /// Right hand side double3x3 to use to compute componentwise multiplication. + /// double3x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator * (double3x3 lhs, double3x3 rhs) { return new double3x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } /// Returns the result of a componentwise multiplication operation on a double3x3 matrix and a double value. + /// Left hand side double3x3 to use to compute componentwise multiplication. + /// Right hand side double to use to compute componentwise multiplication. + /// double3x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator * (double3x3 lhs, double rhs) { return new double3x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } /// Returns the result of a componentwise multiplication operation on a double value and a double3x3 matrix. + /// Left hand side double to use to compute componentwise multiplication. + /// Right hand side double3x3 to use to compute componentwise multiplication. + /// double3x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator * (double lhs, double3x3 rhs) { return new double3x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } /// Returns the result of a componentwise addition operation on two double3x3 matrices. + /// Left hand side double3x3 to use to compute componentwise addition. + /// Right hand side double3x3 to use to compute componentwise addition. + /// double3x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator + (double3x3 lhs, double3x3 rhs) { return new double3x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } /// Returns the result of a componentwise addition operation on a double3x3 matrix and a double value. + /// Left hand side double3x3 to use to compute componentwise addition. + /// Right hand side double to use to compute componentwise addition. + /// double3x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator + (double3x3 lhs, double rhs) { return new double3x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } /// Returns the result of a componentwise addition operation on a double value and a double3x3 matrix. + /// Left hand side double to use to compute componentwise addition. + /// Right hand side double3x3 to use to compute componentwise addition. + /// double3x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator + (double lhs, double3x3 rhs) { return new double3x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } /// Returns the result of a componentwise subtraction operation on two double3x3 matrices. + /// Left hand side double3x3 to use to compute componentwise subtraction. + /// Right hand side double3x3 to use to compute componentwise subtraction. + /// double3x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator - (double3x3 lhs, double3x3 rhs) { return new double3x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } /// Returns the result of a componentwise subtraction operation on a double3x3 matrix and a double value. + /// Left hand side double3x3 to use to compute componentwise subtraction. + /// Right hand side double to use to compute componentwise subtraction. + /// double3x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator - (double3x3 lhs, double rhs) { return new double3x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } /// Returns the result of a componentwise subtraction operation on a double value and a double3x3 matrix. + /// Left hand side double to use to compute componentwise subtraction. + /// Right hand side double3x3 to use to compute componentwise subtraction. + /// double3x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator - (double lhs, double3x3 rhs) { return new double3x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } /// Returns the result of a componentwise division operation on two double3x3 matrices. + /// Left hand side double3x3 to use to compute componentwise division. + /// Right hand side double3x3 to use to compute componentwise division. + /// double3x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator / (double3x3 lhs, double3x3 rhs) { return new double3x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } /// Returns the result of a componentwise division operation on a double3x3 matrix and a double value. + /// Left hand side double3x3 to use to compute componentwise division. + /// Right hand side double to use to compute componentwise division. + /// double3x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator / (double3x3 lhs, double rhs) { return new double3x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } /// Returns the result of a componentwise division operation on a double value and a double3x3 matrix. + /// Left hand side double to use to compute componentwise division. + /// Right hand side double3x3 to use to compute componentwise division. + /// double3x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator / (double lhs, double3x3 rhs) { return new double3x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } /// Returns the result of a componentwise modulus operation on two double3x3 matrices. + /// Left hand side double3x3 to use to compute componentwise modulus. + /// Right hand side double3x3 to use to compute componentwise modulus. + /// double3x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator % (double3x3 lhs, double3x3 rhs) { return new double3x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } /// Returns the result of a componentwise modulus operation on a double3x3 matrix and a double value. + /// Left hand side double3x3 to use to compute componentwise modulus. + /// Right hand side double to use to compute componentwise modulus. + /// double3x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator % (double3x3 lhs, double rhs) { return new double3x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } /// Returns the result of a componentwise modulus operation on a double value and a double3x3 matrix. + /// Left hand side double to use to compute componentwise modulus. + /// Right hand side double3x3 to use to compute componentwise modulus. + /// double3x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator % (double lhs, double3x3 rhs) { return new double3x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } /// Returns the result of a componentwise increment operation on a double3x3 matrix. + /// Value to use when computing the componentwise increment. + /// double3x3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator ++ (double3x3 val) { return new double3x3 (++val.c0, ++val.c1, ++val.c2); } /// Returns the result of a componentwise decrement operation on a double3x3 matrix. + /// Value to use when computing the componentwise decrement. + /// double3x3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator -- (double3x3 val) { return new double3x3 (--val.c0, --val.c1, --val.c2); } /// Returns the result of a componentwise less than operation on two double3x3 matrices. + /// Left hand side double3x3 to use to compute componentwise less than. + /// Right hand side double3x3 to use to compute componentwise less than. + /// bool3x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator < (double3x3 lhs, double3x3 rhs) { return new bool3x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } /// Returns the result of a componentwise less than operation on a double3x3 matrix and a double value. + /// Left hand side double3x3 to use to compute componentwise less than. + /// Right hand side double to use to compute componentwise less than. + /// bool3x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator < (double3x3 lhs, double rhs) { return new bool3x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } /// Returns the result of a componentwise less than operation on a double value and a double3x3 matrix. + /// Left hand side double to use to compute componentwise less than. + /// Right hand side double3x3 to use to compute componentwise less than. + /// bool3x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator < (double lhs, double3x3 rhs) { return new bool3x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } /// Returns the result of a componentwise less or equal operation on two double3x3 matrices. + /// Left hand side double3x3 to use to compute componentwise less or equal. + /// Right hand side double3x3 to use to compute componentwise less or equal. + /// bool3x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator <= (double3x3 lhs, double3x3 rhs) { return new bool3x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } /// Returns the result of a componentwise less or equal operation on a double3x3 matrix and a double value. + /// Left hand side double3x3 to use to compute componentwise less or equal. + /// Right hand side double to use to compute componentwise less or equal. + /// bool3x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator <= (double3x3 lhs, double rhs) { return new bool3x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } /// Returns the result of a componentwise less or equal operation on a double value and a double3x3 matrix. + /// Left hand side double to use to compute componentwise less or equal. + /// Right hand side double3x3 to use to compute componentwise less or equal. + /// bool3x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator <= (double lhs, double3x3 rhs) { return new bool3x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } /// Returns the result of a componentwise greater than operation on two double3x3 matrices. + /// Left hand side double3x3 to use to compute componentwise greater than. + /// Right hand side double3x3 to use to compute componentwise greater than. + /// bool3x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator > (double3x3 lhs, double3x3 rhs) { return new bool3x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } /// Returns the result of a componentwise greater than operation on a double3x3 matrix and a double value. + /// Left hand side double3x3 to use to compute componentwise greater than. + /// Right hand side double to use to compute componentwise greater than. + /// bool3x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator > (double3x3 lhs, double rhs) { return new bool3x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } /// Returns the result of a componentwise greater than operation on a double value and a double3x3 matrix. + /// Left hand side double to use to compute componentwise greater than. + /// Right hand side double3x3 to use to compute componentwise greater than. + /// bool3x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator > (double lhs, double3x3 rhs) { return new bool3x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } /// Returns the result of a componentwise greater or equal operation on two double3x3 matrices. + /// Left hand side double3x3 to use to compute componentwise greater or equal. + /// Right hand side double3x3 to use to compute componentwise greater or equal. + /// bool3x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator >= (double3x3 lhs, double3x3 rhs) { return new bool3x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } /// Returns the result of a componentwise greater or equal operation on a double3x3 matrix and a double value. + /// Left hand side double3x3 to use to compute componentwise greater or equal. + /// Right hand side double to use to compute componentwise greater or equal. + /// bool3x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator >= (double3x3 lhs, double rhs) { return new bool3x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a double value and a double3x3 matrix. + /// Left hand side double to use to compute componentwise greater or equal. + /// Right hand side double3x3 to use to compute componentwise greater or equal. + /// bool3x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator >= (double lhs, double3x3 rhs) { return new bool3x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } /// Returns the result of a componentwise unary minus operation on a double3x3 matrix. + /// Value to use when computing the componentwise unary minus. + /// double3x3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator - (double3x3 val) { return new double3x3 (-val.c0, -val.c1, -val.c2); } /// Returns the result of a componentwise unary plus operation on a double3x3 matrix. + /// Value to use when computing the componentwise unary plus. + /// double3x3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 operator + (double3x3 val) { return new double3x3 (+val.c0, +val.c1, +val.c2); } /// Returns the result of a componentwise equality operation on two double3x3 matrices. + /// Left hand side double3x3 to use to compute componentwise equality. + /// Right hand side double3x3 to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (double3x3 lhs, double3x3 rhs) { return new bool3x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on a double3x3 matrix and a double value. + /// Left hand side double3x3 to use to compute componentwise equality. + /// Right hand side double to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (double3x3 lhs, double rhs) { return new bool3x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on a double value and a double3x3 matrix. + /// Left hand side double to use to compute componentwise equality. + /// Right hand side double3x3 to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (double lhs, double3x3 rhs) { return new bool3x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two double3x3 matrices. + /// Left hand side double3x3 to use to compute componentwise not equal. + /// Right hand side double3x3 to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (double3x3 lhs, double3x3 rhs) { return new bool3x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on a double3x3 matrix and a double value. + /// Left hand side double3x3 to use to compute componentwise not equal. + /// Right hand side double to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (double3x3 lhs, double rhs) { return new bool3x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on a double value and a double3x3 matrix. + /// Left hand side double to use to compute componentwise not equal. + /// Right hand side double3x3 to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (double lhs, double3x3 rhs) { return new bool3x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } @@ -345,19 +495,25 @@ unsafe public ref double3 this[int index] } /// Returns true if the double3x3 is equal to a given double3x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(double3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the double3x3 is equal to a given double3x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is double3x3 converted && Equals(converted); } /// Returns a hash code for the double3x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the double3x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -365,6 +521,9 @@ public override string ToString() } /// Returns a string representation of the double3x3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -376,10 +535,24 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a double3x3 matrix constructed from three double3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// double3x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 double3x3(double3 c0, double3 c1, double3 c2) { return new double3x3(c0, c1, c2); } /// Returns a double3x3 matrix constructed from from 9 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// double3x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 double3x3(double m00, double m01, double m02, double m10, double m11, double m12, @@ -391,42 +564,62 @@ public static double3x3 double3x3(double m00, double m01, double m02, } /// Returns a double3x3 matrix constructed from a single double value by assigning it to every component. + /// double to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 double3x3(double v) { return new double3x3(v); } /// Returns a double3x3 matrix constructed from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 double3x3(bool v) { return new double3x3(v); } /// Return a double3x3 matrix constructed from a bool3x3 matrix by componentwise conversion. + /// bool3x3 to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 double3x3(bool3x3 v) { return new double3x3(v); } /// Returns a double3x3 matrix constructed from a single int value by converting it to double and assigning it to every component. + /// int to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 double3x3(int v) { return new double3x3(v); } /// Return a double3x3 matrix constructed from a int3x3 matrix by componentwise conversion. + /// int3x3 to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 double3x3(int3x3 v) { return new double3x3(v); } /// Returns a double3x3 matrix constructed from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 double3x3(uint v) { return new double3x3(v); } /// Return a double3x3 matrix constructed from a uint3x3 matrix by componentwise conversion. + /// uint3x3 to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 double3x3(uint3x3 v) { return new double3x3(v); } /// Returns a double3x3 matrix constructed from a single float value by converting it to double and assigning it to every component. + /// float to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 double3x3(float v) { return new double3x3(v); } /// Return a double3x3 matrix constructed from a float3x3 matrix by componentwise conversion. + /// float3x3 to convert to double3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 double3x3(float3x3 v) { return new double3x3(v); } /// Return the double3x3 transpose of a double3x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 transpose(double3x3 v) { @@ -437,6 +630,8 @@ public static double3x3 transpose(double3x3 v) } /// Returns the double3x3 full inverse of a double3x3 matrix. + /// Matrix to invert. + /// The inverted matrix. public static double3x3 inverse(double3x3 m) { double3 c0 = m.c0; @@ -456,6 +651,8 @@ public static double3x3 inverse(double3x3 m) } /// Returns the determinant of a double3x3 matrix. + /// Matrix to use when computing determinant. + /// The determinant of the matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double determinant(double3x3 m) { @@ -470,7 +667,9 @@ public static double determinant(double3x3 m) return c0.x * m00 - c1.x * m01 + c2.x * m02; } - /// Returns a uint hash code of a double3x3 vector. + /// Returns a uint hash code of a double3x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(double3x3 v) { @@ -480,10 +679,12 @@ public static uint hash(double3x3 v) } /// - /// Returns a uint3 vector hash code of a double3x3 vector. + /// Returns a uint3 vector hash code of a double3x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(double3x3 v) { diff --git a/src/Unity.Mathematics/double3x4.gen.cs b/src/Unity.Mathematics/double3x4.gen.cs index 912a7436..6cdfd51c 100644 --- a/src/Unity.Mathematics/double3x4.gen.cs +++ b/src/Unity.Mathematics/double3x4.gen.cs @@ -14,19 +14,28 @@ namespace Unity.Mathematics { + /// A 3x4 matrix of doubles. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct double3x4 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public double3 c0; + /// Column 1 of the matrix. public double3 c1; + /// Column 2 of the matrix. public double3 c2; + /// Column 3 of the matrix. public double3 c3; /// double3x4 zero value. public static readonly double3x4 zero; /// Constructs a double3x4 matrix from four double3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x4(double3 c0, double3 c1, double3 c2, double3 c3) { @@ -37,6 +46,18 @@ public double3x4(double3 c0, double3 c1, double3 c2, double3 c3) } /// Constructs a double3x4 matrix from 12 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x4(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, @@ -49,6 +70,7 @@ public double3x4(double m00, double m01, double m02, double m03, } /// Constructs a double3x4 matrix from a single double value by assigning it to every component. + /// double to convert to double3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x4(double v) { @@ -59,6 +81,7 @@ public double3x4(double v) } /// Constructs a double3x4 matrix from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x4(bool v) { @@ -69,6 +92,7 @@ public double3x4(bool v) } /// Constructs a double3x4 matrix from a bool3x4 matrix by componentwise conversion. + /// bool3x4 to convert to double3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x4(bool3x4 v) { @@ -79,6 +103,7 @@ public double3x4(bool3x4 v) } /// Constructs a double3x4 matrix from a single int value by converting it to double and assigning it to every component. + /// int to convert to double3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x4(int v) { @@ -89,6 +114,7 @@ public double3x4(int v) } /// Constructs a double3x4 matrix from a int3x4 matrix by componentwise conversion. + /// int3x4 to convert to double3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x4(int3x4 v) { @@ -99,6 +125,7 @@ public double3x4(int3x4 v) } /// Constructs a double3x4 matrix from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x4(uint v) { @@ -109,6 +136,7 @@ public double3x4(uint v) } /// Constructs a double3x4 matrix from a uint3x4 matrix by componentwise conversion. + /// uint3x4 to convert to double3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x4(uint3x4 v) { @@ -119,6 +147,7 @@ public double3x4(uint3x4 v) } /// Constructs a double3x4 matrix from a single float value by converting it to double and assigning it to every component. + /// float to convert to double3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x4(float v) { @@ -129,6 +158,7 @@ public double3x4(float v) } /// Constructs a double3x4 matrix from a float3x4 matrix by componentwise conversion. + /// float3x4 to convert to double3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3x4(float3x4 v) { @@ -140,201 +170,326 @@ public double3x4(float3x4 v) /// Implicitly converts a single double value to a double3x4 matrix by assigning it to every component. + /// double to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x4(double v) { return new double3x4(v); } /// Explicitly converts a single bool value to a double3x4 matrix by converting it to double and assigning it to every component. + /// bool to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double3x4(bool v) { return new double3x4(v); } /// Explicitly converts a bool3x4 matrix to a double3x4 matrix by componentwise conversion. + /// bool3x4 to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double3x4(bool3x4 v) { return new double3x4(v); } /// Implicitly converts a single int value to a double3x4 matrix by converting it to double and assigning it to every component. + /// int to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x4(int v) { return new double3x4(v); } /// Implicitly converts a int3x4 matrix to a double3x4 matrix by componentwise conversion. + /// int3x4 to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x4(int3x4 v) { return new double3x4(v); } /// Implicitly converts a single uint value to a double3x4 matrix by converting it to double and assigning it to every component. + /// uint to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x4(uint v) { return new double3x4(v); } /// Implicitly converts a uint3x4 matrix to a double3x4 matrix by componentwise conversion. + /// uint3x4 to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x4(uint3x4 v) { return new double3x4(v); } /// Implicitly converts a single float value to a double3x4 matrix by converting it to double and assigning it to every component. + /// float to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x4(float v) { return new double3x4(v); } /// Implicitly converts a float3x4 matrix to a double3x4 matrix by componentwise conversion. + /// float3x4 to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double3x4(float3x4 v) { return new double3x4(v); } /// Returns the result of a componentwise multiplication operation on two double3x4 matrices. + /// Left hand side double3x4 to use to compute componentwise multiplication. + /// Right hand side double3x4 to use to compute componentwise multiplication. + /// double3x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator * (double3x4 lhs, double3x4 rhs) { return new double3x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } /// Returns the result of a componentwise multiplication operation on a double3x4 matrix and a double value. + /// Left hand side double3x4 to use to compute componentwise multiplication. + /// Right hand side double to use to compute componentwise multiplication. + /// double3x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator * (double3x4 lhs, double rhs) { return new double3x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } /// Returns the result of a componentwise multiplication operation on a double value and a double3x4 matrix. + /// Left hand side double to use to compute componentwise multiplication. + /// Right hand side double3x4 to use to compute componentwise multiplication. + /// double3x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator * (double lhs, double3x4 rhs) { return new double3x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } /// Returns the result of a componentwise addition operation on two double3x4 matrices. + /// Left hand side double3x4 to use to compute componentwise addition. + /// Right hand side double3x4 to use to compute componentwise addition. + /// double3x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator + (double3x4 lhs, double3x4 rhs) { return new double3x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } /// Returns the result of a componentwise addition operation on a double3x4 matrix and a double value. + /// Left hand side double3x4 to use to compute componentwise addition. + /// Right hand side double to use to compute componentwise addition. + /// double3x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator + (double3x4 lhs, double rhs) { return new double3x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } /// Returns the result of a componentwise addition operation on a double value and a double3x4 matrix. + /// Left hand side double to use to compute componentwise addition. + /// Right hand side double3x4 to use to compute componentwise addition. + /// double3x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator + (double lhs, double3x4 rhs) { return new double3x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } /// Returns the result of a componentwise subtraction operation on two double3x4 matrices. + /// Left hand side double3x4 to use to compute componentwise subtraction. + /// Right hand side double3x4 to use to compute componentwise subtraction. + /// double3x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator - (double3x4 lhs, double3x4 rhs) { return new double3x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } /// Returns the result of a componentwise subtraction operation on a double3x4 matrix and a double value. + /// Left hand side double3x4 to use to compute componentwise subtraction. + /// Right hand side double to use to compute componentwise subtraction. + /// double3x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator - (double3x4 lhs, double rhs) { return new double3x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } /// Returns the result of a componentwise subtraction operation on a double value and a double3x4 matrix. + /// Left hand side double to use to compute componentwise subtraction. + /// Right hand side double3x4 to use to compute componentwise subtraction. + /// double3x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator - (double lhs, double3x4 rhs) { return new double3x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } /// Returns the result of a componentwise division operation on two double3x4 matrices. + /// Left hand side double3x4 to use to compute componentwise division. + /// Right hand side double3x4 to use to compute componentwise division. + /// double3x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator / (double3x4 lhs, double3x4 rhs) { return new double3x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } /// Returns the result of a componentwise division operation on a double3x4 matrix and a double value. + /// Left hand side double3x4 to use to compute componentwise division. + /// Right hand side double to use to compute componentwise division. + /// double3x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator / (double3x4 lhs, double rhs) { return new double3x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } /// Returns the result of a componentwise division operation on a double value and a double3x4 matrix. + /// Left hand side double to use to compute componentwise division. + /// Right hand side double3x4 to use to compute componentwise division. + /// double3x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator / (double lhs, double3x4 rhs) { return new double3x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } /// Returns the result of a componentwise modulus operation on two double3x4 matrices. + /// Left hand side double3x4 to use to compute componentwise modulus. + /// Right hand side double3x4 to use to compute componentwise modulus. + /// double3x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator % (double3x4 lhs, double3x4 rhs) { return new double3x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } /// Returns the result of a componentwise modulus operation on a double3x4 matrix and a double value. + /// Left hand side double3x4 to use to compute componentwise modulus. + /// Right hand side double to use to compute componentwise modulus. + /// double3x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator % (double3x4 lhs, double rhs) { return new double3x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } /// Returns the result of a componentwise modulus operation on a double value and a double3x4 matrix. + /// Left hand side double to use to compute componentwise modulus. + /// Right hand side double3x4 to use to compute componentwise modulus. + /// double3x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator % (double lhs, double3x4 rhs) { return new double3x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } /// Returns the result of a componentwise increment operation on a double3x4 matrix. + /// Value to use when computing the componentwise increment. + /// double3x4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator ++ (double3x4 val) { return new double3x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } /// Returns the result of a componentwise decrement operation on a double3x4 matrix. + /// Value to use when computing the componentwise decrement. + /// double3x4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator -- (double3x4 val) { return new double3x4 (--val.c0, --val.c1, --val.c2, --val.c3); } /// Returns the result of a componentwise less than operation on two double3x4 matrices. + /// Left hand side double3x4 to use to compute componentwise less than. + /// Right hand side double3x4 to use to compute componentwise less than. + /// bool3x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator < (double3x4 lhs, double3x4 rhs) { return new bool3x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } /// Returns the result of a componentwise less than operation on a double3x4 matrix and a double value. + /// Left hand side double3x4 to use to compute componentwise less than. + /// Right hand side double to use to compute componentwise less than. + /// bool3x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator < (double3x4 lhs, double rhs) { return new bool3x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } /// Returns the result of a componentwise less than operation on a double value and a double3x4 matrix. + /// Left hand side double to use to compute componentwise less than. + /// Right hand side double3x4 to use to compute componentwise less than. + /// bool3x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator < (double lhs, double3x4 rhs) { return new bool3x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } /// Returns the result of a componentwise less or equal operation on two double3x4 matrices. + /// Left hand side double3x4 to use to compute componentwise less or equal. + /// Right hand side double3x4 to use to compute componentwise less or equal. + /// bool3x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator <= (double3x4 lhs, double3x4 rhs) { return new bool3x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } /// Returns the result of a componentwise less or equal operation on a double3x4 matrix and a double value. + /// Left hand side double3x4 to use to compute componentwise less or equal. + /// Right hand side double to use to compute componentwise less or equal. + /// bool3x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator <= (double3x4 lhs, double rhs) { return new bool3x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } /// Returns the result of a componentwise less or equal operation on a double value and a double3x4 matrix. + /// Left hand side double to use to compute componentwise less or equal. + /// Right hand side double3x4 to use to compute componentwise less or equal. + /// bool3x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator <= (double lhs, double3x4 rhs) { return new bool3x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } /// Returns the result of a componentwise greater than operation on two double3x4 matrices. + /// Left hand side double3x4 to use to compute componentwise greater than. + /// Right hand side double3x4 to use to compute componentwise greater than. + /// bool3x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator > (double3x4 lhs, double3x4 rhs) { return new bool3x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } /// Returns the result of a componentwise greater than operation on a double3x4 matrix and a double value. + /// Left hand side double3x4 to use to compute componentwise greater than. + /// Right hand side double to use to compute componentwise greater than. + /// bool3x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator > (double3x4 lhs, double rhs) { return new bool3x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } /// Returns the result of a componentwise greater than operation on a double value and a double3x4 matrix. + /// Left hand side double to use to compute componentwise greater than. + /// Right hand side double3x4 to use to compute componentwise greater than. + /// bool3x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator > (double lhs, double3x4 rhs) { return new bool3x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } /// Returns the result of a componentwise greater or equal operation on two double3x4 matrices. + /// Left hand side double3x4 to use to compute componentwise greater or equal. + /// Right hand side double3x4 to use to compute componentwise greater or equal. + /// bool3x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator >= (double3x4 lhs, double3x4 rhs) { return new bool3x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } /// Returns the result of a componentwise greater or equal operation on a double3x4 matrix and a double value. + /// Left hand side double3x4 to use to compute componentwise greater or equal. + /// Right hand side double to use to compute componentwise greater or equal. + /// bool3x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator >= (double3x4 lhs, double rhs) { return new bool3x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a double value and a double3x4 matrix. + /// Left hand side double to use to compute componentwise greater or equal. + /// Right hand side double3x4 to use to compute componentwise greater or equal. + /// bool3x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator >= (double lhs, double3x4 rhs) { return new bool3x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } /// Returns the result of a componentwise unary minus operation on a double3x4 matrix. + /// Value to use when computing the componentwise unary minus. + /// double3x4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator - (double3x4 val) { return new double3x4 (-val.c0, -val.c1, -val.c2, -val.c3); } /// Returns the result of a componentwise unary plus operation on a double3x4 matrix. + /// Value to use when computing the componentwise unary plus. + /// double3x4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 operator + (double3x4 val) { return new double3x4 (+val.c0, +val.c1, +val.c2, +val.c3); } /// Returns the result of a componentwise equality operation on two double3x4 matrices. + /// Left hand side double3x4 to use to compute componentwise equality. + /// Right hand side double3x4 to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (double3x4 lhs, double3x4 rhs) { return new bool3x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on a double3x4 matrix and a double value. + /// Left hand side double3x4 to use to compute componentwise equality. + /// Right hand side double to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (double3x4 lhs, double rhs) { return new bool3x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on a double value and a double3x4 matrix. + /// Left hand side double to use to compute componentwise equality. + /// Right hand side double3x4 to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (double lhs, double3x4 rhs) { return new bool3x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two double3x4 matrices. + /// Left hand side double3x4 to use to compute componentwise not equal. + /// Right hand side double3x4 to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (double3x4 lhs, double3x4 rhs) { return new bool3x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on a double3x4 matrix and a double value. + /// Left hand side double3x4 to use to compute componentwise not equal. + /// Right hand side double to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (double3x4 lhs, double rhs) { return new bool3x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on a double value and a double3x4 matrix. + /// Left hand side double to use to compute componentwise not equal. + /// Right hand side double3x4 to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (double lhs, double3x4 rhs) { return new bool3x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } @@ -354,19 +509,25 @@ unsafe public ref double3 this[int index] } /// Returns true if the double3x4 is equal to a given double3x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(double3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the double3x4 is equal to a given double3x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is double3x4 converted && Equals(converted); } /// Returns a hash code for the double3x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the double3x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -374,6 +535,9 @@ public override string ToString() } /// Returns a string representation of the double3x4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -385,10 +549,28 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a double3x4 matrix constructed from four double3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// double3x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 double3x4(double3 c0, double3 c1, double3 c2, double3 c3) { return new double3x4(c0, c1, c2, c3); } /// Returns a double3x4 matrix constructed from from 12 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// double3x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 double3x4(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, @@ -400,42 +582,62 @@ public static double3x4 double3x4(double m00, double m01, double m02, double m03 } /// Returns a double3x4 matrix constructed from a single double value by assigning it to every component. + /// double to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 double3x4(double v) { return new double3x4(v); } /// Returns a double3x4 matrix constructed from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 double3x4(bool v) { return new double3x4(v); } /// Return a double3x4 matrix constructed from a bool3x4 matrix by componentwise conversion. + /// bool3x4 to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 double3x4(bool3x4 v) { return new double3x4(v); } /// Returns a double3x4 matrix constructed from a single int value by converting it to double and assigning it to every component. + /// int to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 double3x4(int v) { return new double3x4(v); } /// Return a double3x4 matrix constructed from a int3x4 matrix by componentwise conversion. + /// int3x4 to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 double3x4(int3x4 v) { return new double3x4(v); } /// Returns a double3x4 matrix constructed from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 double3x4(uint v) { return new double3x4(v); } /// Return a double3x4 matrix constructed from a uint3x4 matrix by componentwise conversion. + /// uint3x4 to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 double3x4(uint3x4 v) { return new double3x4(v); } /// Returns a double3x4 matrix constructed from a single float value by converting it to double and assigning it to every component. + /// float to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 double3x4(float v) { return new double3x4(v); } /// Return a double3x4 matrix constructed from a float3x4 matrix by componentwise conversion. + /// float3x4 to convert to double3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 double3x4(float3x4 v) { return new double3x4(v); } /// Return the double4x3 transpose of a double3x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 transpose(double3x4 v) { @@ -446,7 +648,9 @@ public static double4x3 transpose(double3x4 v) v.c3.x, v.c3.y, v.c3.z); } - // Fast matrix inverse for rigid transforms (Orthonormal basis and translation) + /// Fast matrix inverse for rigid transforms (orthonormal basis and translation) + /// Matrix to invert. + /// The inverted matrix. public static double3x4 fastinverse(double3x4 m) { double3 c0 = m.c0; @@ -463,7 +667,9 @@ public static double3x4 fastinverse(double3x4 m) return double3x4(r0, r1, r2, pos); } - /// Returns a uint hash code of a double3x4 vector. + /// Returns a uint hash code of a double3x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(double3x4 v) { @@ -474,10 +680,12 @@ public static uint hash(double3x4 v) } /// - /// Returns a uint3 vector hash code of a double3x4 vector. + /// Returns a uint3 vector hash code of a double3x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(double3x4 v) { diff --git a/src/Unity.Mathematics/double4.gen.cs b/src/Unity.Mathematics/double4.gen.cs index d3ce15e6..c4f08461 100644 --- a/src/Unity.Mathematics/double4.gen.cs +++ b/src/Unity.Mathematics/double4.gen.cs @@ -15,20 +15,29 @@ namespace Unity.Mathematics { + /// A 4 component vector of doubles. [DebuggerTypeProxy(typeof(double4.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct double4 : System.IEquatable, IFormattable { + /// x component of the vector. public double x; + /// y component of the vector. public double y; + /// z component of the vector. public double z; + /// w component of the vector. public double w; /// double4 zero value. public static readonly double4 zero; /// Constructs a double4 vector from four double values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(double x, double y, double z, double w) { @@ -39,6 +48,9 @@ public double4(double x, double y, double z, double w) } /// Constructs a double4 vector from two double values and a double2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's zw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(double x, double y, double2 zw) { @@ -49,6 +61,9 @@ public double4(double x, double y, double2 zw) } /// Constructs a double4 vector from a double value, a double2 vector and a double value. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(double x, double2 yz, double w) { @@ -59,6 +74,8 @@ public double4(double x, double2 yz, double w) } /// Constructs a double4 vector from a double value and a double3 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yzw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(double x, double3 yzw) { @@ -69,6 +86,9 @@ public double4(double x, double3 yzw) } /// Constructs a double4 vector from a double2 vector and two double values. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(double2 xy, double z, double w) { @@ -79,6 +99,8 @@ public double4(double2 xy, double z, double w) } /// Constructs a double4 vector from two double2 vectors. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's zw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(double2 xy, double2 zw) { @@ -89,6 +111,8 @@ public double4(double2 xy, double2 zw) } /// Constructs a double4 vector from a double3 vector and a double value. + /// The constructed vector's xyz components will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(double3 xyz, double w) { @@ -99,6 +123,7 @@ public double4(double3 xyz, double w) } /// Constructs a double4 vector from a double4 vector. + /// The constructed vector's xyzw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(double4 xyzw) { @@ -109,6 +134,7 @@ public double4(double4 xyzw) } /// Constructs a double4 vector from a single double value by assigning it to every component. + /// double to convert to double4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(double v) { @@ -119,6 +145,7 @@ public double4(double v) } /// Constructs a double4 vector from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(bool v) { @@ -129,6 +156,7 @@ public double4(bool v) } /// Constructs a double4 vector from a bool4 vector by componentwise conversion. + /// bool4 to convert to double4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(bool4 v) { @@ -139,6 +167,7 @@ public double4(bool4 v) } /// Constructs a double4 vector from a single int value by converting it to double and assigning it to every component. + /// int to convert to double4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(int v) { @@ -149,6 +178,7 @@ public double4(int v) } /// Constructs a double4 vector from a int4 vector by componentwise conversion. + /// int4 to convert to double4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(int4 v) { @@ -159,6 +189,7 @@ public double4(int4 v) } /// Constructs a double4 vector from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(uint v) { @@ -169,6 +200,7 @@ public double4(uint v) } /// Constructs a double4 vector from a uint4 vector by componentwise conversion. + /// uint4 to convert to double4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(uint4 v) { @@ -179,6 +211,7 @@ public double4(uint4 v) } /// Constructs a double4 vector from a single half value by converting it to double and assigning it to every component. + /// half to convert to double4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(half v) { @@ -189,6 +222,7 @@ public double4(half v) } /// Constructs a double4 vector from a half4 vector by componentwise conversion. + /// half4 to convert to double4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(half4 v) { @@ -199,6 +233,7 @@ public double4(half4 v) } /// Constructs a double4 vector from a single float value by converting it to double and assigning it to every component. + /// float to convert to double4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(float v) { @@ -209,6 +244,7 @@ public double4(float v) } /// Constructs a double4 vector from a float4 vector by componentwise conversion. + /// float4 to convert to double4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4(float4 v) { @@ -220,215 +256,345 @@ public double4(float4 v) /// Implicitly converts a single double value to a double4 vector by assigning it to every component. + /// double to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4(double v) { return new double4(v); } /// Explicitly converts a single bool value to a double4 vector by converting it to double and assigning it to every component. + /// bool to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double4(bool v) { return new double4(v); } /// Explicitly converts a bool4 vector to a double4 vector by componentwise conversion. + /// bool4 to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double4(bool4 v) { return new double4(v); } /// Implicitly converts a single int value to a double4 vector by converting it to double and assigning it to every component. + /// int to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4(int v) { return new double4(v); } /// Implicitly converts a int4 vector to a double4 vector by componentwise conversion. + /// int4 to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4(int4 v) { return new double4(v); } /// Implicitly converts a single uint value to a double4 vector by converting it to double and assigning it to every component. + /// uint to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4(uint v) { return new double4(v); } /// Implicitly converts a uint4 vector to a double4 vector by componentwise conversion. + /// uint4 to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4(uint4 v) { return new double4(v); } /// Implicitly converts a single half value to a double4 vector by converting it to double and assigning it to every component. + /// half to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4(half v) { return new double4(v); } /// Implicitly converts a half4 vector to a double4 vector by componentwise conversion. + /// half4 to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4(half4 v) { return new double4(v); } /// Implicitly converts a single float value to a double4 vector by converting it to double and assigning it to every component. + /// float to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4(float v) { return new double4(v); } /// Implicitly converts a float4 vector to a double4 vector by componentwise conversion. + /// float4 to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4(float4 v) { return new double4(v); } /// Returns the result of a componentwise multiplication operation on two double4 vectors. + /// Left hand side double4 to use to compute componentwise multiplication. + /// Right hand side double4 to use to compute componentwise multiplication. + /// double4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator * (double4 lhs, double4 rhs) { return new double4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } /// Returns the result of a componentwise multiplication operation on a double4 vector and a double value. + /// Left hand side double4 to use to compute componentwise multiplication. + /// Right hand side double to use to compute componentwise multiplication. + /// double4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator * (double4 lhs, double rhs) { return new double4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } /// Returns the result of a componentwise multiplication operation on a double value and a double4 vector. + /// Left hand side double to use to compute componentwise multiplication. + /// Right hand side double4 to use to compute componentwise multiplication. + /// double4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator * (double lhs, double4 rhs) { return new double4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } /// Returns the result of a componentwise addition operation on two double4 vectors. + /// Left hand side double4 to use to compute componentwise addition. + /// Right hand side double4 to use to compute componentwise addition. + /// double4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator + (double4 lhs, double4 rhs) { return new double4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } /// Returns the result of a componentwise addition operation on a double4 vector and a double value. + /// Left hand side double4 to use to compute componentwise addition. + /// Right hand side double to use to compute componentwise addition. + /// double4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator + (double4 lhs, double rhs) { return new double4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } /// Returns the result of a componentwise addition operation on a double value and a double4 vector. + /// Left hand side double to use to compute componentwise addition. + /// Right hand side double4 to use to compute componentwise addition. + /// double4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator + (double lhs, double4 rhs) { return new double4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } /// Returns the result of a componentwise subtraction operation on two double4 vectors. + /// Left hand side double4 to use to compute componentwise subtraction. + /// Right hand side double4 to use to compute componentwise subtraction. + /// double4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator - (double4 lhs, double4 rhs) { return new double4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } /// Returns the result of a componentwise subtraction operation on a double4 vector and a double value. + /// Left hand side double4 to use to compute componentwise subtraction. + /// Right hand side double to use to compute componentwise subtraction. + /// double4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator - (double4 lhs, double rhs) { return new double4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } /// Returns the result of a componentwise subtraction operation on a double value and a double4 vector. + /// Left hand side double to use to compute componentwise subtraction. + /// Right hand side double4 to use to compute componentwise subtraction. + /// double4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator - (double lhs, double4 rhs) { return new double4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } /// Returns the result of a componentwise division operation on two double4 vectors. + /// Left hand side double4 to use to compute componentwise division. + /// Right hand side double4 to use to compute componentwise division. + /// double4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator / (double4 lhs, double4 rhs) { return new double4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } /// Returns the result of a componentwise division operation on a double4 vector and a double value. + /// Left hand side double4 to use to compute componentwise division. + /// Right hand side double to use to compute componentwise division. + /// double4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator / (double4 lhs, double rhs) { return new double4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } /// Returns the result of a componentwise division operation on a double value and a double4 vector. + /// Left hand side double to use to compute componentwise division. + /// Right hand side double4 to use to compute componentwise division. + /// double4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator / (double lhs, double4 rhs) { return new double4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } /// Returns the result of a componentwise modulus operation on two double4 vectors. + /// Left hand side double4 to use to compute componentwise modulus. + /// Right hand side double4 to use to compute componentwise modulus. + /// double4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator % (double4 lhs, double4 rhs) { return new double4 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z, lhs.w % rhs.w); } /// Returns the result of a componentwise modulus operation on a double4 vector and a double value. + /// Left hand side double4 to use to compute componentwise modulus. + /// Right hand side double to use to compute componentwise modulus. + /// double4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator % (double4 lhs, double rhs) { return new double4 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs, lhs.w % rhs); } /// Returns the result of a componentwise modulus operation on a double value and a double4 vector. + /// Left hand side double to use to compute componentwise modulus. + /// Right hand side double4 to use to compute componentwise modulus. + /// double4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator % (double lhs, double4 rhs) { return new double4 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z, lhs % rhs.w); } /// Returns the result of a componentwise increment operation on a double4 vector. + /// Value to use when computing the componentwise increment. + /// double4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator ++ (double4 val) { return new double4 (++val.x, ++val.y, ++val.z, ++val.w); } /// Returns the result of a componentwise decrement operation on a double4 vector. + /// Value to use when computing the componentwise decrement. + /// double4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator -- (double4 val) { return new double4 (--val.x, --val.y, --val.z, --val.w); } /// Returns the result of a componentwise less than operation on two double4 vectors. + /// Left hand side double4 to use to compute componentwise less than. + /// Right hand side double4 to use to compute componentwise less than. + /// bool4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (double4 lhs, double4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } /// Returns the result of a componentwise less than operation on a double4 vector and a double value. + /// Left hand side double4 to use to compute componentwise less than. + /// Right hand side double to use to compute componentwise less than. + /// bool4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (double4 lhs, double rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } /// Returns the result of a componentwise less than operation on a double value and a double4 vector. + /// Left hand side double to use to compute componentwise less than. + /// Right hand side double4 to use to compute componentwise less than. + /// bool4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (double lhs, double4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } /// Returns the result of a componentwise less or equal operation on two double4 vectors. + /// Left hand side double4 to use to compute componentwise less or equal. + /// Right hand side double4 to use to compute componentwise less or equal. + /// bool4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (double4 lhs, double4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } /// Returns the result of a componentwise less or equal operation on a double4 vector and a double value. + /// Left hand side double4 to use to compute componentwise less or equal. + /// Right hand side double to use to compute componentwise less or equal. + /// bool4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (double4 lhs, double rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } /// Returns the result of a componentwise less or equal operation on a double value and a double4 vector. + /// Left hand side double to use to compute componentwise less or equal. + /// Right hand side double4 to use to compute componentwise less or equal. + /// bool4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (double lhs, double4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } /// Returns the result of a componentwise greater than operation on two double4 vectors. + /// Left hand side double4 to use to compute componentwise greater than. + /// Right hand side double4 to use to compute componentwise greater than. + /// bool4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (double4 lhs, double4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } /// Returns the result of a componentwise greater than operation on a double4 vector and a double value. + /// Left hand side double4 to use to compute componentwise greater than. + /// Right hand side double to use to compute componentwise greater than. + /// bool4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (double4 lhs, double rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } /// Returns the result of a componentwise greater than operation on a double value and a double4 vector. + /// Left hand side double to use to compute componentwise greater than. + /// Right hand side double4 to use to compute componentwise greater than. + /// bool4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (double lhs, double4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } /// Returns the result of a componentwise greater or equal operation on two double4 vectors. + /// Left hand side double4 to use to compute componentwise greater or equal. + /// Right hand side double4 to use to compute componentwise greater or equal. + /// bool4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (double4 lhs, double4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } /// Returns the result of a componentwise greater or equal operation on a double4 vector and a double value. + /// Left hand side double4 to use to compute componentwise greater or equal. + /// Right hand side double to use to compute componentwise greater or equal. + /// bool4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (double4 lhs, double rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } /// Returns the result of a componentwise greater or equal operation on a double value and a double4 vector. + /// Left hand side double to use to compute componentwise greater or equal. + /// Right hand side double4 to use to compute componentwise greater or equal. + /// bool4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (double lhs, double4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } /// Returns the result of a componentwise unary minus operation on a double4 vector. + /// Value to use when computing the componentwise unary minus. + /// double4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator - (double4 val) { return new double4 (-val.x, -val.y, -val.z, -val.w); } /// Returns the result of a componentwise unary plus operation on a double4 vector. + /// Value to use when computing the componentwise unary plus. + /// double4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 operator + (double4 val) { return new double4 (+val.x, +val.y, +val.z, +val.w); } /// Returns the result of a componentwise equality operation on two double4 vectors. + /// Left hand side double4 to use to compute componentwise equality. + /// Right hand side double4 to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (double4 lhs, double4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } /// Returns the result of a componentwise equality operation on a double4 vector and a double value. + /// Left hand side double4 to use to compute componentwise equality. + /// Right hand side double to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (double4 lhs, double rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } /// Returns the result of a componentwise equality operation on a double value and a double4 vector. + /// Left hand side double to use to compute componentwise equality. + /// Right hand side double4 to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (double lhs, double4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } /// Returns the result of a componentwise not equal operation on two double4 vectors. + /// Left hand side double4 to use to compute componentwise not equal. + /// Right hand side double4 to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (double4 lhs, double4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } /// Returns the result of a componentwise not equal operation on a double4 vector and a double value. + /// Left hand side double4 to use to compute componentwise not equal. + /// Right hand side double to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (double4 lhs, double rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } /// Returns the result of a componentwise not equal operation on a double value and a double4 vector. + /// Left hand side double to use to compute componentwise not equal. + /// Right hand side double4 to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (double lhs, double4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxxx { @@ -437,6 +603,7 @@ public double4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxxy { @@ -445,6 +612,7 @@ public double4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxxz { @@ -453,6 +621,7 @@ public double4 xxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxxw { @@ -461,6 +630,7 @@ public double4 xxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxyx { @@ -469,6 +639,7 @@ public double4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxyy { @@ -477,6 +648,7 @@ public double4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxyz { @@ -485,6 +657,7 @@ public double4 xxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxyw { @@ -493,6 +666,7 @@ public double4 xxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxzx { @@ -501,6 +675,7 @@ public double4 xxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxzy { @@ -509,6 +684,7 @@ public double4 xxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxzz { @@ -517,6 +693,7 @@ public double4 xxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxzw { @@ -525,6 +702,7 @@ public double4 xxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxwx { @@ -533,6 +711,7 @@ public double4 xxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxwy { @@ -541,6 +720,7 @@ public double4 xxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxwz { @@ -549,6 +729,7 @@ public double4 xxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xxww { @@ -557,6 +738,7 @@ public double4 xxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyxx { @@ -565,6 +747,7 @@ public double4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyxy { @@ -573,6 +756,7 @@ public double4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyxz { @@ -581,6 +765,7 @@ public double4 xyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyxw { @@ -589,6 +774,7 @@ public double4 xyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyyx { @@ -597,6 +783,7 @@ public double4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyyy { @@ -605,6 +792,7 @@ public double4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyyz { @@ -613,6 +801,7 @@ public double4 xyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyyw { @@ -621,6 +810,7 @@ public double4 xyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyzx { @@ -629,6 +819,7 @@ public double4 xyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyzy { @@ -637,6 +828,7 @@ public double4 xyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyzz { @@ -645,6 +837,7 @@ public double4 xyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyzw { @@ -655,6 +848,7 @@ public double4 xyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xywx { @@ -663,6 +857,7 @@ public double4 xywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xywy { @@ -671,6 +866,7 @@ public double4 xywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xywz { @@ -681,6 +877,7 @@ public double4 xywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xyww { @@ -689,6 +886,7 @@ public double4 xyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzxx { @@ -697,6 +895,7 @@ public double4 xzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzxy { @@ -705,6 +904,7 @@ public double4 xzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzxz { @@ -713,6 +913,7 @@ public double4 xzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzxw { @@ -721,6 +922,7 @@ public double4 xzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzyx { @@ -729,6 +931,7 @@ public double4 xzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzyy { @@ -737,6 +940,7 @@ public double4 xzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzyz { @@ -745,6 +949,7 @@ public double4 xzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzyw { @@ -755,6 +960,7 @@ public double4 xzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzzx { @@ -763,6 +969,7 @@ public double4 xzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzzy { @@ -771,6 +978,7 @@ public double4 xzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzzz { @@ -779,6 +987,7 @@ public double4 xzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzzw { @@ -787,6 +996,7 @@ public double4 xzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzwx { @@ -795,6 +1005,7 @@ public double4 xzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzwy { @@ -805,6 +1016,7 @@ public double4 xzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzwz { @@ -813,6 +1025,7 @@ public double4 xzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xzww { @@ -821,6 +1034,7 @@ public double4 xzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwxx { @@ -829,6 +1043,7 @@ public double4 xwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwxy { @@ -837,6 +1052,7 @@ public double4 xwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwxz { @@ -845,6 +1061,7 @@ public double4 xwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwxw { @@ -853,6 +1070,7 @@ public double4 xwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwyx { @@ -861,6 +1079,7 @@ public double4 xwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwyy { @@ -869,6 +1088,7 @@ public double4 xwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwyz { @@ -879,6 +1099,7 @@ public double4 xwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwyw { @@ -887,6 +1108,7 @@ public double4 xwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwzx { @@ -895,6 +1117,7 @@ public double4 xwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwzy { @@ -905,6 +1128,7 @@ public double4 xwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwzz { @@ -913,6 +1137,7 @@ public double4 xwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwzw { @@ -921,6 +1146,7 @@ public double4 xwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwwx { @@ -929,6 +1155,7 @@ public double4 xwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwwy { @@ -937,6 +1164,7 @@ public double4 xwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwwz { @@ -945,6 +1173,7 @@ public double4 xwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 xwww { @@ -953,6 +1182,7 @@ public double4 xwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxxx { @@ -961,6 +1191,7 @@ public double4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxxy { @@ -969,6 +1200,7 @@ public double4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxxz { @@ -977,6 +1209,7 @@ public double4 yxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxxw { @@ -985,6 +1218,7 @@ public double4 yxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxyx { @@ -993,6 +1227,7 @@ public double4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxyy { @@ -1001,6 +1236,7 @@ public double4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxyz { @@ -1009,6 +1245,7 @@ public double4 yxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxyw { @@ -1017,6 +1254,7 @@ public double4 yxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxzx { @@ -1025,6 +1263,7 @@ public double4 yxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxzy { @@ -1033,6 +1272,7 @@ public double4 yxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxzz { @@ -1041,6 +1281,7 @@ public double4 yxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxzw { @@ -1051,6 +1292,7 @@ public double4 yxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxwx { @@ -1059,6 +1301,7 @@ public double4 yxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxwy { @@ -1067,6 +1310,7 @@ public double4 yxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxwz { @@ -1077,6 +1321,7 @@ public double4 yxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yxww { @@ -1085,6 +1330,7 @@ public double4 yxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyxx { @@ -1093,6 +1339,7 @@ public double4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyxy { @@ -1101,6 +1348,7 @@ public double4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyxz { @@ -1109,6 +1357,7 @@ public double4 yyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyxw { @@ -1117,6 +1366,7 @@ public double4 yyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyyx { @@ -1125,6 +1375,7 @@ public double4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyyy { @@ -1133,6 +1384,7 @@ public double4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyyz { @@ -1141,6 +1393,7 @@ public double4 yyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyyw { @@ -1149,6 +1402,7 @@ public double4 yyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyzx { @@ -1157,6 +1411,7 @@ public double4 yyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyzy { @@ -1165,6 +1420,7 @@ public double4 yyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyzz { @@ -1173,6 +1429,7 @@ public double4 yyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyzw { @@ -1181,6 +1438,7 @@ public double4 yyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yywx { @@ -1189,6 +1447,7 @@ public double4 yywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yywy { @@ -1197,6 +1456,7 @@ public double4 yywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yywz { @@ -1205,6 +1465,7 @@ public double4 yywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yyww { @@ -1213,6 +1474,7 @@ public double4 yyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzxx { @@ -1221,6 +1483,7 @@ public double4 yzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzxy { @@ -1229,6 +1492,7 @@ public double4 yzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzxz { @@ -1237,6 +1501,7 @@ public double4 yzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzxw { @@ -1247,6 +1512,7 @@ public double4 yzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzyx { @@ -1255,6 +1521,7 @@ public double4 yzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzyy { @@ -1263,6 +1530,7 @@ public double4 yzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzyz { @@ -1271,6 +1539,7 @@ public double4 yzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzyw { @@ -1279,6 +1548,7 @@ public double4 yzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzzx { @@ -1287,6 +1557,7 @@ public double4 yzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzzy { @@ -1295,6 +1566,7 @@ public double4 yzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzzz { @@ -1303,6 +1575,7 @@ public double4 yzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzzw { @@ -1311,6 +1584,7 @@ public double4 yzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzwx { @@ -1321,6 +1595,7 @@ public double4 yzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzwy { @@ -1329,6 +1604,7 @@ public double4 yzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzwz { @@ -1337,6 +1613,7 @@ public double4 yzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 yzww { @@ -1345,6 +1622,7 @@ public double4 yzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywxx { @@ -1353,6 +1631,7 @@ public double4 ywxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywxy { @@ -1361,6 +1640,7 @@ public double4 ywxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywxz { @@ -1371,6 +1651,7 @@ public double4 ywxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywxw { @@ -1379,6 +1660,7 @@ public double4 ywxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywyx { @@ -1387,6 +1669,7 @@ public double4 ywyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywyy { @@ -1395,6 +1678,7 @@ public double4 ywyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywyz { @@ -1403,6 +1687,7 @@ public double4 ywyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywyw { @@ -1411,6 +1696,7 @@ public double4 ywyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywzx { @@ -1421,6 +1707,7 @@ public double4 ywzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywzy { @@ -1429,6 +1716,7 @@ public double4 ywzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywzz { @@ -1437,6 +1725,7 @@ public double4 ywzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywzw { @@ -1445,6 +1734,7 @@ public double4 ywzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywwx { @@ -1453,6 +1743,7 @@ public double4 ywwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywwy { @@ -1461,6 +1752,7 @@ public double4 ywwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywwz { @@ -1469,6 +1761,7 @@ public double4 ywwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 ywww { @@ -1477,6 +1770,7 @@ public double4 ywww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxxx { @@ -1485,6 +1779,7 @@ public double4 zxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxxy { @@ -1493,6 +1788,7 @@ public double4 zxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxxz { @@ -1501,6 +1797,7 @@ public double4 zxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxxw { @@ -1509,6 +1806,7 @@ public double4 zxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxyx { @@ -1517,6 +1815,7 @@ public double4 zxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxyy { @@ -1525,6 +1824,7 @@ public double4 zxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxyz { @@ -1533,6 +1833,7 @@ public double4 zxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxyw { @@ -1543,6 +1844,7 @@ public double4 zxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxzx { @@ -1551,6 +1853,7 @@ public double4 zxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxzy { @@ -1559,6 +1862,7 @@ public double4 zxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxzz { @@ -1567,6 +1871,7 @@ public double4 zxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxzw { @@ -1575,6 +1880,7 @@ public double4 zxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxwx { @@ -1583,6 +1889,7 @@ public double4 zxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxwy { @@ -1593,6 +1900,7 @@ public double4 zxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxwz { @@ -1601,6 +1909,7 @@ public double4 zxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zxww { @@ -1609,6 +1918,7 @@ public double4 zxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyxx { @@ -1617,6 +1927,7 @@ public double4 zyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyxy { @@ -1625,6 +1936,7 @@ public double4 zyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyxz { @@ -1633,6 +1945,7 @@ public double4 zyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyxw { @@ -1643,6 +1956,7 @@ public double4 zyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyyx { @@ -1651,6 +1965,7 @@ public double4 zyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyyy { @@ -1659,6 +1974,7 @@ public double4 zyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyyz { @@ -1667,6 +1983,7 @@ public double4 zyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyyw { @@ -1675,6 +1992,7 @@ public double4 zyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyzx { @@ -1683,6 +2001,7 @@ public double4 zyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyzy { @@ -1691,6 +2010,7 @@ public double4 zyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyzz { @@ -1699,6 +2019,7 @@ public double4 zyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyzw { @@ -1707,6 +2028,7 @@ public double4 zyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zywx { @@ -1717,6 +2039,7 @@ public double4 zywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zywy { @@ -1725,6 +2048,7 @@ public double4 zywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zywz { @@ -1733,6 +2057,7 @@ public double4 zywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zyww { @@ -1741,6 +2066,7 @@ public double4 zyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzxx { @@ -1749,6 +2075,7 @@ public double4 zzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzxy { @@ -1757,6 +2084,7 @@ public double4 zzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzxz { @@ -1765,6 +2093,7 @@ public double4 zzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzxw { @@ -1773,6 +2102,7 @@ public double4 zzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzyx { @@ -1781,6 +2111,7 @@ public double4 zzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzyy { @@ -1789,6 +2120,7 @@ public double4 zzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzyz { @@ -1797,6 +2129,7 @@ public double4 zzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzyw { @@ -1805,6 +2138,7 @@ public double4 zzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzzx { @@ -1813,6 +2147,7 @@ public double4 zzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzzy { @@ -1821,6 +2156,7 @@ public double4 zzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzzz { @@ -1829,6 +2165,7 @@ public double4 zzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzzw { @@ -1837,6 +2174,7 @@ public double4 zzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzwx { @@ -1845,6 +2183,7 @@ public double4 zzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzwy { @@ -1853,6 +2192,7 @@ public double4 zzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzwz { @@ -1861,6 +2201,7 @@ public double4 zzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zzww { @@ -1869,6 +2210,7 @@ public double4 zzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwxx { @@ -1877,6 +2219,7 @@ public double4 zwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwxy { @@ -1887,6 +2230,7 @@ public double4 zwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwxz { @@ -1895,6 +2239,7 @@ public double4 zwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwxw { @@ -1903,6 +2248,7 @@ public double4 zwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwyx { @@ -1913,6 +2259,7 @@ public double4 zwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwyy { @@ -1921,6 +2268,7 @@ public double4 zwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwyz { @@ -1929,6 +2277,7 @@ public double4 zwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwyw { @@ -1937,6 +2286,7 @@ public double4 zwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwzx { @@ -1945,6 +2295,7 @@ public double4 zwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwzy { @@ -1953,6 +2304,7 @@ public double4 zwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwzz { @@ -1961,6 +2313,7 @@ public double4 zwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwzw { @@ -1969,6 +2322,7 @@ public double4 zwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwwx { @@ -1977,6 +2331,7 @@ public double4 zwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwwy { @@ -1985,6 +2340,7 @@ public double4 zwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwwz { @@ -1993,6 +2349,7 @@ public double4 zwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 zwww { @@ -2001,6 +2358,7 @@ public double4 zwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxxx { @@ -2009,6 +2367,7 @@ public double4 wxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxxy { @@ -2017,6 +2376,7 @@ public double4 wxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxxz { @@ -2025,6 +2385,7 @@ public double4 wxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxxw { @@ -2033,6 +2394,7 @@ public double4 wxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxyx { @@ -2041,6 +2403,7 @@ public double4 wxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxyy { @@ -2049,6 +2412,7 @@ public double4 wxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxyz { @@ -2059,6 +2423,7 @@ public double4 wxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxyw { @@ -2067,6 +2432,7 @@ public double4 wxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxzx { @@ -2075,6 +2441,7 @@ public double4 wxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxzy { @@ -2085,6 +2452,7 @@ public double4 wxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxzz { @@ -2093,6 +2461,7 @@ public double4 wxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxzw { @@ -2101,6 +2470,7 @@ public double4 wxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxwx { @@ -2109,6 +2479,7 @@ public double4 wxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxwy { @@ -2117,6 +2488,7 @@ public double4 wxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxwz { @@ -2125,6 +2497,7 @@ public double4 wxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wxww { @@ -2133,6 +2506,7 @@ public double4 wxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wyxx { @@ -2141,6 +2515,7 @@ public double4 wyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wyxy { @@ -2149,6 +2524,7 @@ public double4 wyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wyxz { @@ -2159,6 +2535,7 @@ public double4 wyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wyxw { @@ -2167,6 +2544,7 @@ public double4 wyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wyyx { @@ -2175,6 +2553,7 @@ public double4 wyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wyyy { @@ -2183,6 +2562,7 @@ public double4 wyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wyyz { @@ -2191,6 +2571,7 @@ public double4 wyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wyyw { @@ -2199,6 +2580,7 @@ public double4 wyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wyzx { @@ -2209,6 +2591,7 @@ public double4 wyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wyzy { @@ -2217,6 +2600,7 @@ public double4 wyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wyzz { @@ -2225,6 +2609,7 @@ public double4 wyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wyzw { @@ -2233,6 +2618,7 @@ public double4 wyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wywx { @@ -2241,6 +2627,7 @@ public double4 wywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wywy { @@ -2249,6 +2636,7 @@ public double4 wywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wywz { @@ -2257,6 +2645,7 @@ public double4 wywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wyww { @@ -2265,6 +2654,7 @@ public double4 wyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzxx { @@ -2273,6 +2663,7 @@ public double4 wzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzxy { @@ -2283,6 +2674,7 @@ public double4 wzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzxz { @@ -2291,6 +2683,7 @@ public double4 wzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzxw { @@ -2299,6 +2692,7 @@ public double4 wzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzyx { @@ -2309,6 +2703,7 @@ public double4 wzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzyy { @@ -2317,6 +2712,7 @@ public double4 wzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzyz { @@ -2325,6 +2721,7 @@ public double4 wzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzyw { @@ -2333,6 +2730,7 @@ public double4 wzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzzx { @@ -2341,6 +2739,7 @@ public double4 wzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzzy { @@ -2349,6 +2748,7 @@ public double4 wzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzzz { @@ -2357,6 +2757,7 @@ public double4 wzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzzw { @@ -2365,6 +2766,7 @@ public double4 wzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzwx { @@ -2373,6 +2775,7 @@ public double4 wzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzwy { @@ -2381,6 +2784,7 @@ public double4 wzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzwz { @@ -2389,6 +2793,7 @@ public double4 wzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wzww { @@ -2397,6 +2802,7 @@ public double4 wzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwxx { @@ -2405,6 +2811,7 @@ public double4 wwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwxy { @@ -2413,6 +2820,7 @@ public double4 wwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwxz { @@ -2421,6 +2829,7 @@ public double4 wwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwxw { @@ -2429,6 +2838,7 @@ public double4 wwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwyx { @@ -2437,6 +2847,7 @@ public double4 wwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwyy { @@ -2445,6 +2856,7 @@ public double4 wwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwyz { @@ -2453,6 +2865,7 @@ public double4 wwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwyw { @@ -2461,6 +2874,7 @@ public double4 wwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwzx { @@ -2469,6 +2883,7 @@ public double4 wwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwzy { @@ -2477,6 +2892,7 @@ public double4 wwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwzz { @@ -2485,6 +2901,7 @@ public double4 wwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwzw { @@ -2493,6 +2910,7 @@ public double4 wwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwwx { @@ -2501,6 +2919,7 @@ public double4 wwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwwy { @@ -2509,6 +2928,7 @@ public double4 wwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwwz { @@ -2517,6 +2937,7 @@ public double4 wwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double4 wwww { @@ -2525,6 +2946,7 @@ public double4 wwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xxx { @@ -2533,6 +2955,7 @@ public double3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xxy { @@ -2541,6 +2964,7 @@ public double3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xxz { @@ -2549,6 +2973,7 @@ public double3 xxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xxw { @@ -2557,6 +2982,7 @@ public double3 xxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xyx { @@ -2565,6 +2991,7 @@ public double3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xyy { @@ -2573,6 +3000,7 @@ public double3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xyz { @@ -2583,6 +3011,7 @@ public double3 xyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xyw { @@ -2593,6 +3022,7 @@ public double3 xyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xzx { @@ -2601,6 +3031,7 @@ public double3 xzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xzy { @@ -2611,6 +3042,7 @@ public double3 xzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xzz { @@ -2619,6 +3051,7 @@ public double3 xzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xzw { @@ -2629,6 +3062,7 @@ public double3 xzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xwx { @@ -2637,6 +3071,7 @@ public double3 xwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xwy { @@ -2647,6 +3082,7 @@ public double3 xwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xwz { @@ -2657,6 +3093,7 @@ public double3 xwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 xww { @@ -2665,6 +3102,7 @@ public double3 xww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yxx { @@ -2673,6 +3111,7 @@ public double3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yxy { @@ -2681,6 +3120,7 @@ public double3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yxz { @@ -2691,6 +3131,7 @@ public double3 yxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yxw { @@ -2701,6 +3142,7 @@ public double3 yxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yyx { @@ -2709,6 +3151,7 @@ public double3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yyy { @@ -2717,6 +3160,7 @@ public double3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yyz { @@ -2725,6 +3169,7 @@ public double3 yyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yyw { @@ -2733,6 +3178,7 @@ public double3 yyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yzx { @@ -2743,6 +3189,7 @@ public double3 yzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yzy { @@ -2751,6 +3198,7 @@ public double3 yzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yzz { @@ -2759,6 +3207,7 @@ public double3 yzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yzw { @@ -2769,6 +3218,7 @@ public double3 yzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 ywx { @@ -2779,6 +3229,7 @@ public double3 ywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 ywy { @@ -2787,6 +3238,7 @@ public double3 ywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 ywz { @@ -2797,6 +3249,7 @@ public double3 ywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 yww { @@ -2805,6 +3258,7 @@ public double3 yww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zxx { @@ -2813,6 +3267,7 @@ public double3 zxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zxy { @@ -2823,6 +3278,7 @@ public double3 zxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zxz { @@ -2831,6 +3287,7 @@ public double3 zxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zxw { @@ -2841,6 +3298,7 @@ public double3 zxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zyx { @@ -2851,6 +3309,7 @@ public double3 zyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zyy { @@ -2859,6 +3318,7 @@ public double3 zyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zyz { @@ -2867,6 +3327,7 @@ public double3 zyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zyw { @@ -2877,6 +3338,7 @@ public double3 zyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zzx { @@ -2885,6 +3347,7 @@ public double3 zzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zzy { @@ -2893,6 +3356,7 @@ public double3 zzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zzz { @@ -2901,6 +3365,7 @@ public double3 zzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zzw { @@ -2909,6 +3374,7 @@ public double3 zzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zwx { @@ -2919,6 +3385,7 @@ public double3 zwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zwy { @@ -2929,6 +3396,7 @@ public double3 zwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zwz { @@ -2937,6 +3405,7 @@ public double3 zwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 zww { @@ -2945,6 +3414,7 @@ public double3 zww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wxx { @@ -2953,6 +3423,7 @@ public double3 wxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wxy { @@ -2963,6 +3434,7 @@ public double3 wxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wxz { @@ -2973,6 +3445,7 @@ public double3 wxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wxw { @@ -2981,6 +3454,7 @@ public double3 wxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wyx { @@ -2991,6 +3465,7 @@ public double3 wyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wyy { @@ -2999,6 +3474,7 @@ public double3 wyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wyz { @@ -3009,6 +3485,7 @@ public double3 wyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wyw { @@ -3017,6 +3494,7 @@ public double3 wyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wzx { @@ -3027,6 +3505,7 @@ public double3 wzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wzy { @@ -3037,6 +3516,7 @@ public double3 wzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wzz { @@ -3045,6 +3525,7 @@ public double3 wzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wzw { @@ -3053,6 +3534,7 @@ public double3 wzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wwx { @@ -3061,6 +3543,7 @@ public double3 wwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wwy { @@ -3069,6 +3552,7 @@ public double3 wwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 wwz { @@ -3077,6 +3561,7 @@ public double3 wwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double3 www { @@ -3085,6 +3570,7 @@ public double3 www } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 xx { @@ -3093,6 +3579,7 @@ public double2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 xy { @@ -3103,6 +3590,7 @@ public double2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 xz { @@ -3113,6 +3601,7 @@ public double2 xz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 xw { @@ -3123,6 +3612,7 @@ public double2 xw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 yx { @@ -3133,6 +3623,7 @@ public double2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 yy { @@ -3141,6 +3632,7 @@ public double2 yy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 yz { @@ -3151,6 +3643,7 @@ public double2 yz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 yw { @@ -3161,6 +3654,7 @@ public double2 yw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 zx { @@ -3171,6 +3665,7 @@ public double2 zx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 zy { @@ -3181,6 +3676,7 @@ public double2 zy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 zz { @@ -3189,6 +3685,7 @@ public double2 zz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 zw { @@ -3199,6 +3696,7 @@ public double2 zw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 wx { @@ -3209,6 +3707,7 @@ public double2 wx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 wy { @@ -3219,6 +3718,7 @@ public double2 wy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 wz { @@ -3229,6 +3729,7 @@ public double2 wz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public double2 ww { @@ -3260,19 +3761,25 @@ unsafe public double this[int index] } /// Returns true if the double4 is equal to a given double4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(double4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } /// Returns true if the double4 is equal to a given double4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is double4 converted && Equals(converted); } /// Returns a hash code for the double4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the double4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -3280,6 +3787,9 @@ public override string ToString() } /// Returns a string representation of the double4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -3306,82 +3816,134 @@ public DebuggerProxy(double4 v) public static partial class math { /// Returns a double4 vector constructed from four double values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. + /// double4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(double x, double y, double z, double w) { return new double4(x, y, z, w); } /// Returns a double4 vector constructed from two double values and a double2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's zw components will be set to this value. + /// double4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(double x, double y, double2 zw) { return new double4(x, y, zw); } /// Returns a double4 vector constructed from a double value, a double2 vector and a double value. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// The constructed vector's w component will be set to this value. + /// double4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(double x, double2 yz, double w) { return new double4(x, yz, w); } /// Returns a double4 vector constructed from a double value and a double3 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yzw components will be set to this value. + /// double4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(double x, double3 yzw) { return new double4(x, yzw); } /// Returns a double4 vector constructed from a double2 vector and two double values. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. + /// double4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(double2 xy, double z, double w) { return new double4(xy, z, w); } /// Returns a double4 vector constructed from two double2 vectors. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's zw components will be set to this value. + /// double4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(double2 xy, double2 zw) { return new double4(xy, zw); } /// Returns a double4 vector constructed from a double3 vector and a double value. + /// The constructed vector's xyz components will be set to this value. + /// The constructed vector's w component will be set to this value. + /// double4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(double3 xyz, double w) { return new double4(xyz, w); } /// Returns a double4 vector constructed from a double4 vector. + /// The constructed vector's xyzw components will be set to this value. + /// double4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(double4 xyzw) { return new double4(xyzw); } /// Returns a double4 vector constructed from a single double value by assigning it to every component. + /// double to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(double v) { return new double4(v); } /// Returns a double4 vector constructed from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(bool v) { return new double4(v); } /// Return a double4 vector constructed from a bool4 vector by componentwise conversion. + /// bool4 to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(bool4 v) { return new double4(v); } /// Returns a double4 vector constructed from a single int value by converting it to double and assigning it to every component. + /// int to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(int v) { return new double4(v); } /// Return a double4 vector constructed from a int4 vector by componentwise conversion. + /// int4 to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(int4 v) { return new double4(v); } /// Returns a double4 vector constructed from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(uint v) { return new double4(v); } /// Return a double4 vector constructed from a uint4 vector by componentwise conversion. + /// uint4 to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(uint4 v) { return new double4(v); } /// Returns a double4 vector constructed from a single half value by converting it to double and assigning it to every component. + /// half to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(half v) { return new double4(v); } /// Return a double4 vector constructed from a half4 vector by componentwise conversion. + /// half4 to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(half4 v) { return new double4(v); } /// Returns a double4 vector constructed from a single float value by converting it to double and assigning it to every component. + /// float to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(float v) { return new double4(v); } /// Return a double4 vector constructed from a float4 vector by componentwise conversion. + /// float4 to convert to double4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 double4(float4 v) { return new double4(v); } /// Returns a uint hash code of a double4 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(double4 v) { @@ -3393,6 +3955,8 @@ public static uint hash(double4 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(double4 v) { @@ -3400,40 +3964,62 @@ public static uint4 hashwide(double4 v) } /// Returns the result of specified shuffling of the components from two double4 vectors into a double value. + /// double4 to use as the left argument of the shuffle operation. + /// double4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting double. + /// double result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double shuffle(double4 a, double4 b, ShuffleComponent x) + public static double shuffle(double4 left, double4 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two double4 vectors into a double2 vector. + /// double4 to use as the left argument of the shuffle operation. + /// double4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting double2 x component. + /// The ShuffleComponent to use when setting the resulting double2 y component. + /// double2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 shuffle(double4 a, double4 b, ShuffleComponent x, ShuffleComponent y) + public static double2 shuffle(double4 left, double4 right, ShuffleComponent x, ShuffleComponent y) { return double2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two double4 vectors into a double3 vector. + /// double4 to use as the left argument of the shuffle operation. + /// double4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting double3 x component. + /// The ShuffleComponent to use when setting the resulting double3 y component. + /// The ShuffleComponent to use when setting the resulting double3 z component. + /// double3 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 shuffle(double4 a, double4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + public static double3 shuffle(double4 left, double4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return double3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two double4 vectors into a double4 vector. + /// double4 to use as the left argument of the shuffle operation. + /// double4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting double4 x component. + /// The ShuffleComponent to use when setting the resulting double4 y component. + /// The ShuffleComponent to use when setting the resulting double4 z component. + /// The ShuffleComponent to use when setting the resulting double4 w component. + /// double4 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 shuffle(double4 a, double4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + public static double4 shuffle(double4 left, double4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return double4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/double4x2.gen.cs b/src/Unity.Mathematics/double4x2.gen.cs index 3b827aa0..2582847a 100644 --- a/src/Unity.Mathematics/double4x2.gen.cs +++ b/src/Unity.Mathematics/double4x2.gen.cs @@ -14,17 +14,22 @@ namespace Unity.Mathematics { + /// A 4x2 matrix of doubles. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct double4x2 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public double4 c0; + /// Column 1 of the matrix. public double4 c1; /// double4x2 zero value. public static readonly double4x2 zero; /// Constructs a double4x2 matrix from two double4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x2(double4 c0, double4 c1) { @@ -33,6 +38,14 @@ public double4x2(double4 c0, double4 c1) } /// Constructs a double4x2 matrix from 8 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x2(double m00, double m01, double m10, double m11, @@ -44,6 +57,7 @@ public double4x2(double m00, double m01, } /// Constructs a double4x2 matrix from a single double value by assigning it to every component. + /// double to convert to double4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x2(double v) { @@ -52,6 +66,7 @@ public double4x2(double v) } /// Constructs a double4x2 matrix from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x2(bool v) { @@ -60,6 +75,7 @@ public double4x2(bool v) } /// Constructs a double4x2 matrix from a bool4x2 matrix by componentwise conversion. + /// bool4x2 to convert to double4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x2(bool4x2 v) { @@ -68,6 +84,7 @@ public double4x2(bool4x2 v) } /// Constructs a double4x2 matrix from a single int value by converting it to double and assigning it to every component. + /// int to convert to double4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x2(int v) { @@ -76,6 +93,7 @@ public double4x2(int v) } /// Constructs a double4x2 matrix from a int4x2 matrix by componentwise conversion. + /// int4x2 to convert to double4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x2(int4x2 v) { @@ -84,6 +102,7 @@ public double4x2(int4x2 v) } /// Constructs a double4x2 matrix from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x2(uint v) { @@ -92,6 +111,7 @@ public double4x2(uint v) } /// Constructs a double4x2 matrix from a uint4x2 matrix by componentwise conversion. + /// uint4x2 to convert to double4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x2(uint4x2 v) { @@ -100,6 +120,7 @@ public double4x2(uint4x2 v) } /// Constructs a double4x2 matrix from a single float value by converting it to double and assigning it to every component. + /// float to convert to double4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x2(float v) { @@ -108,6 +129,7 @@ public double4x2(float v) } /// Constructs a double4x2 matrix from a float4x2 matrix by componentwise conversion. + /// float4x2 to convert to double4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x2(float4x2 v) { @@ -117,201 +139,326 @@ public double4x2(float4x2 v) /// Implicitly converts a single double value to a double4x2 matrix by assigning it to every component. + /// double to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x2(double v) { return new double4x2(v); } /// Explicitly converts a single bool value to a double4x2 matrix by converting it to double and assigning it to every component. + /// bool to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double4x2(bool v) { return new double4x2(v); } /// Explicitly converts a bool4x2 matrix to a double4x2 matrix by componentwise conversion. + /// bool4x2 to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double4x2(bool4x2 v) { return new double4x2(v); } /// Implicitly converts a single int value to a double4x2 matrix by converting it to double and assigning it to every component. + /// int to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x2(int v) { return new double4x2(v); } /// Implicitly converts a int4x2 matrix to a double4x2 matrix by componentwise conversion. + /// int4x2 to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x2(int4x2 v) { return new double4x2(v); } /// Implicitly converts a single uint value to a double4x2 matrix by converting it to double and assigning it to every component. + /// uint to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x2(uint v) { return new double4x2(v); } /// Implicitly converts a uint4x2 matrix to a double4x2 matrix by componentwise conversion. + /// uint4x2 to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x2(uint4x2 v) { return new double4x2(v); } /// Implicitly converts a single float value to a double4x2 matrix by converting it to double and assigning it to every component. + /// float to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x2(float v) { return new double4x2(v); } /// Implicitly converts a float4x2 matrix to a double4x2 matrix by componentwise conversion. + /// float4x2 to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x2(float4x2 v) { return new double4x2(v); } /// Returns the result of a componentwise multiplication operation on two double4x2 matrices. + /// Left hand side double4x2 to use to compute componentwise multiplication. + /// Right hand side double4x2 to use to compute componentwise multiplication. + /// double4x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator * (double4x2 lhs, double4x2 rhs) { return new double4x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } /// Returns the result of a componentwise multiplication operation on a double4x2 matrix and a double value. + /// Left hand side double4x2 to use to compute componentwise multiplication. + /// Right hand side double to use to compute componentwise multiplication. + /// double4x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator * (double4x2 lhs, double rhs) { return new double4x2 (lhs.c0 * rhs, lhs.c1 * rhs); } /// Returns the result of a componentwise multiplication operation on a double value and a double4x2 matrix. + /// Left hand side double to use to compute componentwise multiplication. + /// Right hand side double4x2 to use to compute componentwise multiplication. + /// double4x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator * (double lhs, double4x2 rhs) { return new double4x2 (lhs * rhs.c0, lhs * rhs.c1); } /// Returns the result of a componentwise addition operation on two double4x2 matrices. + /// Left hand side double4x2 to use to compute componentwise addition. + /// Right hand side double4x2 to use to compute componentwise addition. + /// double4x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator + (double4x2 lhs, double4x2 rhs) { return new double4x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } /// Returns the result of a componentwise addition operation on a double4x2 matrix and a double value. + /// Left hand side double4x2 to use to compute componentwise addition. + /// Right hand side double to use to compute componentwise addition. + /// double4x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator + (double4x2 lhs, double rhs) { return new double4x2 (lhs.c0 + rhs, lhs.c1 + rhs); } /// Returns the result of a componentwise addition operation on a double value and a double4x2 matrix. + /// Left hand side double to use to compute componentwise addition. + /// Right hand side double4x2 to use to compute componentwise addition. + /// double4x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator + (double lhs, double4x2 rhs) { return new double4x2 (lhs + rhs.c0, lhs + rhs.c1); } /// Returns the result of a componentwise subtraction operation on two double4x2 matrices. + /// Left hand side double4x2 to use to compute componentwise subtraction. + /// Right hand side double4x2 to use to compute componentwise subtraction. + /// double4x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator - (double4x2 lhs, double4x2 rhs) { return new double4x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } /// Returns the result of a componentwise subtraction operation on a double4x2 matrix and a double value. + /// Left hand side double4x2 to use to compute componentwise subtraction. + /// Right hand side double to use to compute componentwise subtraction. + /// double4x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator - (double4x2 lhs, double rhs) { return new double4x2 (lhs.c0 - rhs, lhs.c1 - rhs); } /// Returns the result of a componentwise subtraction operation on a double value and a double4x2 matrix. + /// Left hand side double to use to compute componentwise subtraction. + /// Right hand side double4x2 to use to compute componentwise subtraction. + /// double4x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator - (double lhs, double4x2 rhs) { return new double4x2 (lhs - rhs.c0, lhs - rhs.c1); } /// Returns the result of a componentwise division operation on two double4x2 matrices. + /// Left hand side double4x2 to use to compute componentwise division. + /// Right hand side double4x2 to use to compute componentwise division. + /// double4x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator / (double4x2 lhs, double4x2 rhs) { return new double4x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } /// Returns the result of a componentwise division operation on a double4x2 matrix and a double value. + /// Left hand side double4x2 to use to compute componentwise division. + /// Right hand side double to use to compute componentwise division. + /// double4x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator / (double4x2 lhs, double rhs) { return new double4x2 (lhs.c0 / rhs, lhs.c1 / rhs); } /// Returns the result of a componentwise division operation on a double value and a double4x2 matrix. + /// Left hand side double to use to compute componentwise division. + /// Right hand side double4x2 to use to compute componentwise division. + /// double4x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator / (double lhs, double4x2 rhs) { return new double4x2 (lhs / rhs.c0, lhs / rhs.c1); } /// Returns the result of a componentwise modulus operation on two double4x2 matrices. + /// Left hand side double4x2 to use to compute componentwise modulus. + /// Right hand side double4x2 to use to compute componentwise modulus. + /// double4x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator % (double4x2 lhs, double4x2 rhs) { return new double4x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } /// Returns the result of a componentwise modulus operation on a double4x2 matrix and a double value. + /// Left hand side double4x2 to use to compute componentwise modulus. + /// Right hand side double to use to compute componentwise modulus. + /// double4x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator % (double4x2 lhs, double rhs) { return new double4x2 (lhs.c0 % rhs, lhs.c1 % rhs); } /// Returns the result of a componentwise modulus operation on a double value and a double4x2 matrix. + /// Left hand side double to use to compute componentwise modulus. + /// Right hand side double4x2 to use to compute componentwise modulus. + /// double4x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator % (double lhs, double4x2 rhs) { return new double4x2 (lhs % rhs.c0, lhs % rhs.c1); } /// Returns the result of a componentwise increment operation on a double4x2 matrix. + /// Value to use when computing the componentwise increment. + /// double4x2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator ++ (double4x2 val) { return new double4x2 (++val.c0, ++val.c1); } /// Returns the result of a componentwise decrement operation on a double4x2 matrix. + /// Value to use when computing the componentwise decrement. + /// double4x2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator -- (double4x2 val) { return new double4x2 (--val.c0, --val.c1); } /// Returns the result of a componentwise less than operation on two double4x2 matrices. + /// Left hand side double4x2 to use to compute componentwise less than. + /// Right hand side double4x2 to use to compute componentwise less than. + /// bool4x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator < (double4x2 lhs, double4x2 rhs) { return new bool4x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } /// Returns the result of a componentwise less than operation on a double4x2 matrix and a double value. + /// Left hand side double4x2 to use to compute componentwise less than. + /// Right hand side double to use to compute componentwise less than. + /// bool4x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator < (double4x2 lhs, double rhs) { return new bool4x2 (lhs.c0 < rhs, lhs.c1 < rhs); } /// Returns the result of a componentwise less than operation on a double value and a double4x2 matrix. + /// Left hand side double to use to compute componentwise less than. + /// Right hand side double4x2 to use to compute componentwise less than. + /// bool4x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator < (double lhs, double4x2 rhs) { return new bool4x2 (lhs < rhs.c0, lhs < rhs.c1); } /// Returns the result of a componentwise less or equal operation on two double4x2 matrices. + /// Left hand side double4x2 to use to compute componentwise less or equal. + /// Right hand side double4x2 to use to compute componentwise less or equal. + /// bool4x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator <= (double4x2 lhs, double4x2 rhs) { return new bool4x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } /// Returns the result of a componentwise less or equal operation on a double4x2 matrix and a double value. + /// Left hand side double4x2 to use to compute componentwise less or equal. + /// Right hand side double to use to compute componentwise less or equal. + /// bool4x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator <= (double4x2 lhs, double rhs) { return new bool4x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } /// Returns the result of a componentwise less or equal operation on a double value and a double4x2 matrix. + /// Left hand side double to use to compute componentwise less or equal. + /// Right hand side double4x2 to use to compute componentwise less or equal. + /// bool4x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator <= (double lhs, double4x2 rhs) { return new bool4x2 (lhs <= rhs.c0, lhs <= rhs.c1); } /// Returns the result of a componentwise greater than operation on two double4x2 matrices. + /// Left hand side double4x2 to use to compute componentwise greater than. + /// Right hand side double4x2 to use to compute componentwise greater than. + /// bool4x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator > (double4x2 lhs, double4x2 rhs) { return new bool4x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } /// Returns the result of a componentwise greater than operation on a double4x2 matrix and a double value. + /// Left hand side double4x2 to use to compute componentwise greater than. + /// Right hand side double to use to compute componentwise greater than. + /// bool4x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator > (double4x2 lhs, double rhs) { return new bool4x2 (lhs.c0 > rhs, lhs.c1 > rhs); } /// Returns the result of a componentwise greater than operation on a double value and a double4x2 matrix. + /// Left hand side double to use to compute componentwise greater than. + /// Right hand side double4x2 to use to compute componentwise greater than. + /// bool4x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator > (double lhs, double4x2 rhs) { return new bool4x2 (lhs > rhs.c0, lhs > rhs.c1); } /// Returns the result of a componentwise greater or equal operation on two double4x2 matrices. + /// Left hand side double4x2 to use to compute componentwise greater or equal. + /// Right hand side double4x2 to use to compute componentwise greater or equal. + /// bool4x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator >= (double4x2 lhs, double4x2 rhs) { return new bool4x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } /// Returns the result of a componentwise greater or equal operation on a double4x2 matrix and a double value. + /// Left hand side double4x2 to use to compute componentwise greater or equal. + /// Right hand side double to use to compute componentwise greater or equal. + /// bool4x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator >= (double4x2 lhs, double rhs) { return new bool4x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a double value and a double4x2 matrix. + /// Left hand side double to use to compute componentwise greater or equal. + /// Right hand side double4x2 to use to compute componentwise greater or equal. + /// bool4x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator >= (double lhs, double4x2 rhs) { return new bool4x2 (lhs >= rhs.c0, lhs >= rhs.c1); } /// Returns the result of a componentwise unary minus operation on a double4x2 matrix. + /// Value to use when computing the componentwise unary minus. + /// double4x2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator - (double4x2 val) { return new double4x2 (-val.c0, -val.c1); } /// Returns the result of a componentwise unary plus operation on a double4x2 matrix. + /// Value to use when computing the componentwise unary plus. + /// double4x2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 operator + (double4x2 val) { return new double4x2 (+val.c0, +val.c1); } /// Returns the result of a componentwise equality operation on two double4x2 matrices. + /// Left hand side double4x2 to use to compute componentwise equality. + /// Right hand side double4x2 to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (double4x2 lhs, double4x2 rhs) { return new bool4x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on a double4x2 matrix and a double value. + /// Left hand side double4x2 to use to compute componentwise equality. + /// Right hand side double to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (double4x2 lhs, double rhs) { return new bool4x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on a double value and a double4x2 matrix. + /// Left hand side double to use to compute componentwise equality. + /// Right hand side double4x2 to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (double lhs, double4x2 rhs) { return new bool4x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two double4x2 matrices. + /// Left hand side double4x2 to use to compute componentwise not equal. + /// Right hand side double4x2 to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (double4x2 lhs, double4x2 rhs) { return new bool4x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on a double4x2 matrix and a double value. + /// Left hand side double4x2 to use to compute componentwise not equal. + /// Right hand side double to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (double4x2 lhs, double rhs) { return new bool4x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on a double value and a double4x2 matrix. + /// Left hand side double to use to compute componentwise not equal. + /// Right hand side double4x2 to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (double lhs, double4x2 rhs) { return new bool4x2 (lhs != rhs.c0, lhs != rhs.c1); } @@ -331,19 +478,25 @@ unsafe public ref double4 this[int index] } /// Returns true if the double4x2 is equal to a given double4x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(double4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the double4x2 is equal to a given double4x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is double4x2 converted && Equals(converted); } /// Returns a hash code for the double4x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the double4x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -351,6 +504,9 @@ public override string ToString() } /// Returns a string representation of the double4x2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -362,10 +518,22 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a double4x2 matrix constructed from two double4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// double4x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 double4x2(double4 c0, double4 c1) { return new double4x2(c0, c1); } /// Returns a double4x2 matrix constructed from from 8 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// double4x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 double4x2(double m00, double m01, double m10, double m11, @@ -379,42 +547,62 @@ public static double4x2 double4x2(double m00, double m01, } /// Returns a double4x2 matrix constructed from a single double value by assigning it to every component. + /// double to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 double4x2(double v) { return new double4x2(v); } /// Returns a double4x2 matrix constructed from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 double4x2(bool v) { return new double4x2(v); } /// Return a double4x2 matrix constructed from a bool4x2 matrix by componentwise conversion. + /// bool4x2 to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 double4x2(bool4x2 v) { return new double4x2(v); } /// Returns a double4x2 matrix constructed from a single int value by converting it to double and assigning it to every component. + /// int to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 double4x2(int v) { return new double4x2(v); } /// Return a double4x2 matrix constructed from a int4x2 matrix by componentwise conversion. + /// int4x2 to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 double4x2(int4x2 v) { return new double4x2(v); } /// Returns a double4x2 matrix constructed from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 double4x2(uint v) { return new double4x2(v); } /// Return a double4x2 matrix constructed from a uint4x2 matrix by componentwise conversion. + /// uint4x2 to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 double4x2(uint4x2 v) { return new double4x2(v); } /// Returns a double4x2 matrix constructed from a single float value by converting it to double and assigning it to every component. + /// float to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 double4x2(float v) { return new double4x2(v); } /// Return a double4x2 matrix constructed from a float4x2 matrix by componentwise conversion. + /// float4x2 to convert to double4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 double4x2(float4x2 v) { return new double4x2(v); } /// Return the double2x4 transpose of a double4x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 transpose(double4x2 v) { @@ -423,7 +611,9 @@ public static double2x4 transpose(double4x2 v) v.c1.x, v.c1.y, v.c1.z, v.c1.w); } - /// Returns a uint hash code of a double4x2 vector. + /// Returns a uint hash code of a double4x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(double4x2 v) { @@ -432,10 +622,12 @@ public static uint hash(double4x2 v) } /// - /// Returns a uint4 vector hash code of a double4x2 vector. + /// Returns a uint4 vector hash code of a double4x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(double4x2 v) { diff --git a/src/Unity.Mathematics/double4x3.gen.cs b/src/Unity.Mathematics/double4x3.gen.cs index 17dedd62..b774b09b 100644 --- a/src/Unity.Mathematics/double4x3.gen.cs +++ b/src/Unity.Mathematics/double4x3.gen.cs @@ -14,18 +14,25 @@ namespace Unity.Mathematics { + /// A 4x3 matrix of doubles. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct double4x3 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public double4 c0; + /// Column 1 of the matrix. public double4 c1; + /// Column 2 of the matrix. public double4 c2; /// double4x3 zero value. public static readonly double4x3 zero; /// Constructs a double4x3 matrix from three double4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x3(double4 c0, double4 c1, double4 c2) { @@ -35,6 +42,18 @@ public double4x3(double4 c0, double4 c1, double4 c2) } /// Constructs a double4x3 matrix from 12 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x3(double m00, double m01, double m02, double m10, double m11, double m12, @@ -47,6 +66,7 @@ public double4x3(double m00, double m01, double m02, } /// Constructs a double4x3 matrix from a single double value by assigning it to every component. + /// double to convert to double4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x3(double v) { @@ -56,6 +76,7 @@ public double4x3(double v) } /// Constructs a double4x3 matrix from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x3(bool v) { @@ -65,6 +86,7 @@ public double4x3(bool v) } /// Constructs a double4x3 matrix from a bool4x3 matrix by componentwise conversion. + /// bool4x3 to convert to double4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x3(bool4x3 v) { @@ -74,6 +96,7 @@ public double4x3(bool4x3 v) } /// Constructs a double4x3 matrix from a single int value by converting it to double and assigning it to every component. + /// int to convert to double4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x3(int v) { @@ -83,6 +106,7 @@ public double4x3(int v) } /// Constructs a double4x3 matrix from a int4x3 matrix by componentwise conversion. + /// int4x3 to convert to double4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x3(int4x3 v) { @@ -92,6 +116,7 @@ public double4x3(int4x3 v) } /// Constructs a double4x3 matrix from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x3(uint v) { @@ -101,6 +126,7 @@ public double4x3(uint v) } /// Constructs a double4x3 matrix from a uint4x3 matrix by componentwise conversion. + /// uint4x3 to convert to double4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x3(uint4x3 v) { @@ -110,6 +136,7 @@ public double4x3(uint4x3 v) } /// Constructs a double4x3 matrix from a single float value by converting it to double and assigning it to every component. + /// float to convert to double4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x3(float v) { @@ -119,6 +146,7 @@ public double4x3(float v) } /// Constructs a double4x3 matrix from a float4x3 matrix by componentwise conversion. + /// float4x3 to convert to double4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x3(float4x3 v) { @@ -129,201 +157,326 @@ public double4x3(float4x3 v) /// Implicitly converts a single double value to a double4x3 matrix by assigning it to every component. + /// double to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x3(double v) { return new double4x3(v); } /// Explicitly converts a single bool value to a double4x3 matrix by converting it to double and assigning it to every component. + /// bool to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double4x3(bool v) { return new double4x3(v); } /// Explicitly converts a bool4x3 matrix to a double4x3 matrix by componentwise conversion. + /// bool4x3 to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double4x3(bool4x3 v) { return new double4x3(v); } /// Implicitly converts a single int value to a double4x3 matrix by converting it to double and assigning it to every component. + /// int to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x3(int v) { return new double4x3(v); } /// Implicitly converts a int4x3 matrix to a double4x3 matrix by componentwise conversion. + /// int4x3 to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x3(int4x3 v) { return new double4x3(v); } /// Implicitly converts a single uint value to a double4x3 matrix by converting it to double and assigning it to every component. + /// uint to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x3(uint v) { return new double4x3(v); } /// Implicitly converts a uint4x3 matrix to a double4x3 matrix by componentwise conversion. + /// uint4x3 to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x3(uint4x3 v) { return new double4x3(v); } /// Implicitly converts a single float value to a double4x3 matrix by converting it to double and assigning it to every component. + /// float to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x3(float v) { return new double4x3(v); } /// Implicitly converts a float4x3 matrix to a double4x3 matrix by componentwise conversion. + /// float4x3 to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x3(float4x3 v) { return new double4x3(v); } /// Returns the result of a componentwise multiplication operation on two double4x3 matrices. + /// Left hand side double4x3 to use to compute componentwise multiplication. + /// Right hand side double4x3 to use to compute componentwise multiplication. + /// double4x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator * (double4x3 lhs, double4x3 rhs) { return new double4x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } /// Returns the result of a componentwise multiplication operation on a double4x3 matrix and a double value. + /// Left hand side double4x3 to use to compute componentwise multiplication. + /// Right hand side double to use to compute componentwise multiplication. + /// double4x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator * (double4x3 lhs, double rhs) { return new double4x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } /// Returns the result of a componentwise multiplication operation on a double value and a double4x3 matrix. + /// Left hand side double to use to compute componentwise multiplication. + /// Right hand side double4x3 to use to compute componentwise multiplication. + /// double4x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator * (double lhs, double4x3 rhs) { return new double4x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } /// Returns the result of a componentwise addition operation on two double4x3 matrices. + /// Left hand side double4x3 to use to compute componentwise addition. + /// Right hand side double4x3 to use to compute componentwise addition. + /// double4x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator + (double4x3 lhs, double4x3 rhs) { return new double4x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } /// Returns the result of a componentwise addition operation on a double4x3 matrix and a double value. + /// Left hand side double4x3 to use to compute componentwise addition. + /// Right hand side double to use to compute componentwise addition. + /// double4x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator + (double4x3 lhs, double rhs) { return new double4x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } /// Returns the result of a componentwise addition operation on a double value and a double4x3 matrix. + /// Left hand side double to use to compute componentwise addition. + /// Right hand side double4x3 to use to compute componentwise addition. + /// double4x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator + (double lhs, double4x3 rhs) { return new double4x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } /// Returns the result of a componentwise subtraction operation on two double4x3 matrices. + /// Left hand side double4x3 to use to compute componentwise subtraction. + /// Right hand side double4x3 to use to compute componentwise subtraction. + /// double4x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator - (double4x3 lhs, double4x3 rhs) { return new double4x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } /// Returns the result of a componentwise subtraction operation on a double4x3 matrix and a double value. + /// Left hand side double4x3 to use to compute componentwise subtraction. + /// Right hand side double to use to compute componentwise subtraction. + /// double4x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator - (double4x3 lhs, double rhs) { return new double4x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } /// Returns the result of a componentwise subtraction operation on a double value and a double4x3 matrix. + /// Left hand side double to use to compute componentwise subtraction. + /// Right hand side double4x3 to use to compute componentwise subtraction. + /// double4x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator - (double lhs, double4x3 rhs) { return new double4x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } /// Returns the result of a componentwise division operation on two double4x3 matrices. + /// Left hand side double4x3 to use to compute componentwise division. + /// Right hand side double4x3 to use to compute componentwise division. + /// double4x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator / (double4x3 lhs, double4x3 rhs) { return new double4x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } /// Returns the result of a componentwise division operation on a double4x3 matrix and a double value. + /// Left hand side double4x3 to use to compute componentwise division. + /// Right hand side double to use to compute componentwise division. + /// double4x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator / (double4x3 lhs, double rhs) { return new double4x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } /// Returns the result of a componentwise division operation on a double value and a double4x3 matrix. + /// Left hand side double to use to compute componentwise division. + /// Right hand side double4x3 to use to compute componentwise division. + /// double4x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator / (double lhs, double4x3 rhs) { return new double4x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } /// Returns the result of a componentwise modulus operation on two double4x3 matrices. + /// Left hand side double4x3 to use to compute componentwise modulus. + /// Right hand side double4x3 to use to compute componentwise modulus. + /// double4x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator % (double4x3 lhs, double4x3 rhs) { return new double4x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } /// Returns the result of a componentwise modulus operation on a double4x3 matrix and a double value. + /// Left hand side double4x3 to use to compute componentwise modulus. + /// Right hand side double to use to compute componentwise modulus. + /// double4x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator % (double4x3 lhs, double rhs) { return new double4x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } /// Returns the result of a componentwise modulus operation on a double value and a double4x3 matrix. + /// Left hand side double to use to compute componentwise modulus. + /// Right hand side double4x3 to use to compute componentwise modulus. + /// double4x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator % (double lhs, double4x3 rhs) { return new double4x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } /// Returns the result of a componentwise increment operation on a double4x3 matrix. + /// Value to use when computing the componentwise increment. + /// double4x3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator ++ (double4x3 val) { return new double4x3 (++val.c0, ++val.c1, ++val.c2); } /// Returns the result of a componentwise decrement operation on a double4x3 matrix. + /// Value to use when computing the componentwise decrement. + /// double4x3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator -- (double4x3 val) { return new double4x3 (--val.c0, --val.c1, --val.c2); } /// Returns the result of a componentwise less than operation on two double4x3 matrices. + /// Left hand side double4x3 to use to compute componentwise less than. + /// Right hand side double4x3 to use to compute componentwise less than. + /// bool4x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator < (double4x3 lhs, double4x3 rhs) { return new bool4x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } /// Returns the result of a componentwise less than operation on a double4x3 matrix and a double value. + /// Left hand side double4x3 to use to compute componentwise less than. + /// Right hand side double to use to compute componentwise less than. + /// bool4x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator < (double4x3 lhs, double rhs) { return new bool4x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } /// Returns the result of a componentwise less than operation on a double value and a double4x3 matrix. + /// Left hand side double to use to compute componentwise less than. + /// Right hand side double4x3 to use to compute componentwise less than. + /// bool4x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator < (double lhs, double4x3 rhs) { return new bool4x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } /// Returns the result of a componentwise less or equal operation on two double4x3 matrices. + /// Left hand side double4x3 to use to compute componentwise less or equal. + /// Right hand side double4x3 to use to compute componentwise less or equal. + /// bool4x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator <= (double4x3 lhs, double4x3 rhs) { return new bool4x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } /// Returns the result of a componentwise less or equal operation on a double4x3 matrix and a double value. + /// Left hand side double4x3 to use to compute componentwise less or equal. + /// Right hand side double to use to compute componentwise less or equal. + /// bool4x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator <= (double4x3 lhs, double rhs) { return new bool4x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } /// Returns the result of a componentwise less or equal operation on a double value and a double4x3 matrix. + /// Left hand side double to use to compute componentwise less or equal. + /// Right hand side double4x3 to use to compute componentwise less or equal. + /// bool4x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator <= (double lhs, double4x3 rhs) { return new bool4x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } /// Returns the result of a componentwise greater than operation on two double4x3 matrices. + /// Left hand side double4x3 to use to compute componentwise greater than. + /// Right hand side double4x3 to use to compute componentwise greater than. + /// bool4x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator > (double4x3 lhs, double4x3 rhs) { return new bool4x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } /// Returns the result of a componentwise greater than operation on a double4x3 matrix and a double value. + /// Left hand side double4x3 to use to compute componentwise greater than. + /// Right hand side double to use to compute componentwise greater than. + /// bool4x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator > (double4x3 lhs, double rhs) { return new bool4x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } /// Returns the result of a componentwise greater than operation on a double value and a double4x3 matrix. + /// Left hand side double to use to compute componentwise greater than. + /// Right hand side double4x3 to use to compute componentwise greater than. + /// bool4x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator > (double lhs, double4x3 rhs) { return new bool4x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } /// Returns the result of a componentwise greater or equal operation on two double4x3 matrices. + /// Left hand side double4x3 to use to compute componentwise greater or equal. + /// Right hand side double4x3 to use to compute componentwise greater or equal. + /// bool4x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator >= (double4x3 lhs, double4x3 rhs) { return new bool4x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } /// Returns the result of a componentwise greater or equal operation on a double4x3 matrix and a double value. + /// Left hand side double4x3 to use to compute componentwise greater or equal. + /// Right hand side double to use to compute componentwise greater or equal. + /// bool4x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator >= (double4x3 lhs, double rhs) { return new bool4x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a double value and a double4x3 matrix. + /// Left hand side double to use to compute componentwise greater or equal. + /// Right hand side double4x3 to use to compute componentwise greater or equal. + /// bool4x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator >= (double lhs, double4x3 rhs) { return new bool4x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } /// Returns the result of a componentwise unary minus operation on a double4x3 matrix. + /// Value to use when computing the componentwise unary minus. + /// double4x3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator - (double4x3 val) { return new double4x3 (-val.c0, -val.c1, -val.c2); } /// Returns the result of a componentwise unary plus operation on a double4x3 matrix. + /// Value to use when computing the componentwise unary plus. + /// double4x3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 operator + (double4x3 val) { return new double4x3 (+val.c0, +val.c1, +val.c2); } /// Returns the result of a componentwise equality operation on two double4x3 matrices. + /// Left hand side double4x3 to use to compute componentwise equality. + /// Right hand side double4x3 to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (double4x3 lhs, double4x3 rhs) { return new bool4x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on a double4x3 matrix and a double value. + /// Left hand side double4x3 to use to compute componentwise equality. + /// Right hand side double to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (double4x3 lhs, double rhs) { return new bool4x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on a double value and a double4x3 matrix. + /// Left hand side double to use to compute componentwise equality. + /// Right hand side double4x3 to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (double lhs, double4x3 rhs) { return new bool4x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two double4x3 matrices. + /// Left hand side double4x3 to use to compute componentwise not equal. + /// Right hand side double4x3 to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (double4x3 lhs, double4x3 rhs) { return new bool4x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on a double4x3 matrix and a double value. + /// Left hand side double4x3 to use to compute componentwise not equal. + /// Right hand side double to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (double4x3 lhs, double rhs) { return new bool4x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on a double value and a double4x3 matrix. + /// Left hand side double to use to compute componentwise not equal. + /// Right hand side double4x3 to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (double lhs, double4x3 rhs) { return new bool4x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } @@ -343,19 +496,25 @@ unsafe public ref double4 this[int index] } /// Returns true if the double4x3 is equal to a given double4x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(double4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the double4x3 is equal to a given double4x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is double4x3 converted && Equals(converted); } /// Returns a hash code for the double4x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the double4x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -363,6 +522,9 @@ public override string ToString() } /// Returns a string representation of the double4x3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -374,10 +536,27 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a double4x3 matrix constructed from three double4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// double4x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 double4x3(double4 c0, double4 c1, double4 c2) { return new double4x3(c0, c1, c2); } /// Returns a double4x3 matrix constructed from from 12 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// double4x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 double4x3(double m00, double m01, double m02, double m10, double m11, double m12, @@ -391,42 +570,62 @@ public static double4x3 double4x3(double m00, double m01, double m02, } /// Returns a double4x3 matrix constructed from a single double value by assigning it to every component. + /// double to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 double4x3(double v) { return new double4x3(v); } /// Returns a double4x3 matrix constructed from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 double4x3(bool v) { return new double4x3(v); } /// Return a double4x3 matrix constructed from a bool4x3 matrix by componentwise conversion. + /// bool4x3 to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 double4x3(bool4x3 v) { return new double4x3(v); } /// Returns a double4x3 matrix constructed from a single int value by converting it to double and assigning it to every component. + /// int to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 double4x3(int v) { return new double4x3(v); } /// Return a double4x3 matrix constructed from a int4x3 matrix by componentwise conversion. + /// int4x3 to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 double4x3(int4x3 v) { return new double4x3(v); } /// Returns a double4x3 matrix constructed from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 double4x3(uint v) { return new double4x3(v); } /// Return a double4x3 matrix constructed from a uint4x3 matrix by componentwise conversion. + /// uint4x3 to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 double4x3(uint4x3 v) { return new double4x3(v); } /// Returns a double4x3 matrix constructed from a single float value by converting it to double and assigning it to every component. + /// float to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 double4x3(float v) { return new double4x3(v); } /// Return a double4x3 matrix constructed from a float4x3 matrix by componentwise conversion. + /// float4x3 to convert to double4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 double4x3(float4x3 v) { return new double4x3(v); } /// Return the double3x4 transpose of a double4x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 transpose(double4x3 v) { @@ -436,7 +635,9 @@ public static double3x4 transpose(double4x3 v) v.c2.x, v.c2.y, v.c2.z, v.c2.w); } - /// Returns a uint hash code of a double4x3 vector. + /// Returns a uint hash code of a double4x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(double4x3 v) { @@ -446,10 +647,12 @@ public static uint hash(double4x3 v) } /// - /// Returns a uint4 vector hash code of a double4x3 vector. + /// Returns a uint4 vector hash code of a double4x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(double4x3 v) { diff --git a/src/Unity.Mathematics/double4x4.gen.cs b/src/Unity.Mathematics/double4x4.gen.cs index 357a6b7d..9732d5ff 100644 --- a/src/Unity.Mathematics/double4x4.gen.cs +++ b/src/Unity.Mathematics/double4x4.gen.cs @@ -14,13 +14,18 @@ namespace Unity.Mathematics { + /// A 4x4 matrix of doubles. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct double4x4 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public double4 c0; + /// Column 1 of the matrix. public double4 c1; + /// Column 2 of the matrix. public double4 c2; + /// Column 3 of the matrix. public double4 c3; /// double4x4 identity transform. @@ -30,6 +35,10 @@ public partial struct double4x4 : System.IEquatable, IFormattable public static readonly double4x4 zero; /// Constructs a double4x4 matrix from four double4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x4(double4 c0, double4 c1, double4 c2, double4 c3) { @@ -40,6 +49,22 @@ public double4x4(double4 c0, double4 c1, double4 c2, double4 c3) } /// Constructs a double4x4 matrix from 16 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// The matrix at row 3, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x4(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, @@ -53,6 +78,7 @@ public double4x4(double m00, double m01, double m02, double m03, } /// Constructs a double4x4 matrix from a single double value by assigning it to every component. + /// double to convert to double4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x4(double v) { @@ -63,6 +89,7 @@ public double4x4(double v) } /// Constructs a double4x4 matrix from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x4(bool v) { @@ -73,6 +100,7 @@ public double4x4(bool v) } /// Constructs a double4x4 matrix from a bool4x4 matrix by componentwise conversion. + /// bool4x4 to convert to double4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x4(bool4x4 v) { @@ -83,6 +111,7 @@ public double4x4(bool4x4 v) } /// Constructs a double4x4 matrix from a single int value by converting it to double and assigning it to every component. + /// int to convert to double4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x4(int v) { @@ -93,6 +122,7 @@ public double4x4(int v) } /// Constructs a double4x4 matrix from a int4x4 matrix by componentwise conversion. + /// int4x4 to convert to double4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x4(int4x4 v) { @@ -103,6 +133,7 @@ public double4x4(int4x4 v) } /// Constructs a double4x4 matrix from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x4(uint v) { @@ -113,6 +144,7 @@ public double4x4(uint v) } /// Constructs a double4x4 matrix from a uint4x4 matrix by componentwise conversion. + /// uint4x4 to convert to double4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x4(uint4x4 v) { @@ -123,6 +155,7 @@ public double4x4(uint4x4 v) } /// Constructs a double4x4 matrix from a single float value by converting it to double and assigning it to every component. + /// float to convert to double4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x4(float v) { @@ -133,6 +166,7 @@ public double4x4(float v) } /// Constructs a double4x4 matrix from a float4x4 matrix by componentwise conversion. + /// float4x4 to convert to double4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4x4(float4x4 v) { @@ -144,201 +178,326 @@ public double4x4(float4x4 v) /// Implicitly converts a single double value to a double4x4 matrix by assigning it to every component. + /// double to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x4(double v) { return new double4x4(v); } /// Explicitly converts a single bool value to a double4x4 matrix by converting it to double and assigning it to every component. + /// bool to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double4x4(bool v) { return new double4x4(v); } /// Explicitly converts a bool4x4 matrix to a double4x4 matrix by componentwise conversion. + /// bool4x4 to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator double4x4(bool4x4 v) { return new double4x4(v); } /// Implicitly converts a single int value to a double4x4 matrix by converting it to double and assigning it to every component. + /// int to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x4(int v) { return new double4x4(v); } /// Implicitly converts a int4x4 matrix to a double4x4 matrix by componentwise conversion. + /// int4x4 to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x4(int4x4 v) { return new double4x4(v); } /// Implicitly converts a single uint value to a double4x4 matrix by converting it to double and assigning it to every component. + /// uint to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x4(uint v) { return new double4x4(v); } /// Implicitly converts a uint4x4 matrix to a double4x4 matrix by componentwise conversion. + /// uint4x4 to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x4(uint4x4 v) { return new double4x4(v); } /// Implicitly converts a single float value to a double4x4 matrix by converting it to double and assigning it to every component. + /// float to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x4(float v) { return new double4x4(v); } /// Implicitly converts a float4x4 matrix to a double4x4 matrix by componentwise conversion. + /// float4x4 to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double4x4(float4x4 v) { return new double4x4(v); } /// Returns the result of a componentwise multiplication operation on two double4x4 matrices. + /// Left hand side double4x4 to use to compute componentwise multiplication. + /// Right hand side double4x4 to use to compute componentwise multiplication. + /// double4x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator * (double4x4 lhs, double4x4 rhs) { return new double4x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } /// Returns the result of a componentwise multiplication operation on a double4x4 matrix and a double value. + /// Left hand side double4x4 to use to compute componentwise multiplication. + /// Right hand side double to use to compute componentwise multiplication. + /// double4x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator * (double4x4 lhs, double rhs) { return new double4x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } /// Returns the result of a componentwise multiplication operation on a double value and a double4x4 matrix. + /// Left hand side double to use to compute componentwise multiplication. + /// Right hand side double4x4 to use to compute componentwise multiplication. + /// double4x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator * (double lhs, double4x4 rhs) { return new double4x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } /// Returns the result of a componentwise addition operation on two double4x4 matrices. + /// Left hand side double4x4 to use to compute componentwise addition. + /// Right hand side double4x4 to use to compute componentwise addition. + /// double4x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator + (double4x4 lhs, double4x4 rhs) { return new double4x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } /// Returns the result of a componentwise addition operation on a double4x4 matrix and a double value. + /// Left hand side double4x4 to use to compute componentwise addition. + /// Right hand side double to use to compute componentwise addition. + /// double4x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator + (double4x4 lhs, double rhs) { return new double4x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } /// Returns the result of a componentwise addition operation on a double value and a double4x4 matrix. + /// Left hand side double to use to compute componentwise addition. + /// Right hand side double4x4 to use to compute componentwise addition. + /// double4x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator + (double lhs, double4x4 rhs) { return new double4x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } /// Returns the result of a componentwise subtraction operation on two double4x4 matrices. + /// Left hand side double4x4 to use to compute componentwise subtraction. + /// Right hand side double4x4 to use to compute componentwise subtraction. + /// double4x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator - (double4x4 lhs, double4x4 rhs) { return new double4x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } /// Returns the result of a componentwise subtraction operation on a double4x4 matrix and a double value. + /// Left hand side double4x4 to use to compute componentwise subtraction. + /// Right hand side double to use to compute componentwise subtraction. + /// double4x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator - (double4x4 lhs, double rhs) { return new double4x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } /// Returns the result of a componentwise subtraction operation on a double value and a double4x4 matrix. + /// Left hand side double to use to compute componentwise subtraction. + /// Right hand side double4x4 to use to compute componentwise subtraction. + /// double4x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator - (double lhs, double4x4 rhs) { return new double4x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } /// Returns the result of a componentwise division operation on two double4x4 matrices. + /// Left hand side double4x4 to use to compute componentwise division. + /// Right hand side double4x4 to use to compute componentwise division. + /// double4x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator / (double4x4 lhs, double4x4 rhs) { return new double4x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } /// Returns the result of a componentwise division operation on a double4x4 matrix and a double value. + /// Left hand side double4x4 to use to compute componentwise division. + /// Right hand side double to use to compute componentwise division. + /// double4x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator / (double4x4 lhs, double rhs) { return new double4x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } /// Returns the result of a componentwise division operation on a double value and a double4x4 matrix. + /// Left hand side double to use to compute componentwise division. + /// Right hand side double4x4 to use to compute componentwise division. + /// double4x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator / (double lhs, double4x4 rhs) { return new double4x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } /// Returns the result of a componentwise modulus operation on two double4x4 matrices. + /// Left hand side double4x4 to use to compute componentwise modulus. + /// Right hand side double4x4 to use to compute componentwise modulus. + /// double4x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator % (double4x4 lhs, double4x4 rhs) { return new double4x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } /// Returns the result of a componentwise modulus operation on a double4x4 matrix and a double value. + /// Left hand side double4x4 to use to compute componentwise modulus. + /// Right hand side double to use to compute componentwise modulus. + /// double4x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator % (double4x4 lhs, double rhs) { return new double4x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } /// Returns the result of a componentwise modulus operation on a double value and a double4x4 matrix. + /// Left hand side double to use to compute componentwise modulus. + /// Right hand side double4x4 to use to compute componentwise modulus. + /// double4x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator % (double lhs, double4x4 rhs) { return new double4x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } /// Returns the result of a componentwise increment operation on a double4x4 matrix. + /// Value to use when computing the componentwise increment. + /// double4x4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator ++ (double4x4 val) { return new double4x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } /// Returns the result of a componentwise decrement operation on a double4x4 matrix. + /// Value to use when computing the componentwise decrement. + /// double4x4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator -- (double4x4 val) { return new double4x4 (--val.c0, --val.c1, --val.c2, --val.c3); } /// Returns the result of a componentwise less than operation on two double4x4 matrices. + /// Left hand side double4x4 to use to compute componentwise less than. + /// Right hand side double4x4 to use to compute componentwise less than. + /// bool4x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator < (double4x4 lhs, double4x4 rhs) { return new bool4x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } /// Returns the result of a componentwise less than operation on a double4x4 matrix and a double value. + /// Left hand side double4x4 to use to compute componentwise less than. + /// Right hand side double to use to compute componentwise less than. + /// bool4x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator < (double4x4 lhs, double rhs) { return new bool4x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } /// Returns the result of a componentwise less than operation on a double value and a double4x4 matrix. + /// Left hand side double to use to compute componentwise less than. + /// Right hand side double4x4 to use to compute componentwise less than. + /// bool4x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator < (double lhs, double4x4 rhs) { return new bool4x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } /// Returns the result of a componentwise less or equal operation on two double4x4 matrices. + /// Left hand side double4x4 to use to compute componentwise less or equal. + /// Right hand side double4x4 to use to compute componentwise less or equal. + /// bool4x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator <= (double4x4 lhs, double4x4 rhs) { return new bool4x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } /// Returns the result of a componentwise less or equal operation on a double4x4 matrix and a double value. + /// Left hand side double4x4 to use to compute componentwise less or equal. + /// Right hand side double to use to compute componentwise less or equal. + /// bool4x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator <= (double4x4 lhs, double rhs) { return new bool4x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } /// Returns the result of a componentwise less or equal operation on a double value and a double4x4 matrix. + /// Left hand side double to use to compute componentwise less or equal. + /// Right hand side double4x4 to use to compute componentwise less or equal. + /// bool4x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator <= (double lhs, double4x4 rhs) { return new bool4x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } /// Returns the result of a componentwise greater than operation on two double4x4 matrices. + /// Left hand side double4x4 to use to compute componentwise greater than. + /// Right hand side double4x4 to use to compute componentwise greater than. + /// bool4x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator > (double4x4 lhs, double4x4 rhs) { return new bool4x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } /// Returns the result of a componentwise greater than operation on a double4x4 matrix and a double value. + /// Left hand side double4x4 to use to compute componentwise greater than. + /// Right hand side double to use to compute componentwise greater than. + /// bool4x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator > (double4x4 lhs, double rhs) { return new bool4x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } /// Returns the result of a componentwise greater than operation on a double value and a double4x4 matrix. + /// Left hand side double to use to compute componentwise greater than. + /// Right hand side double4x4 to use to compute componentwise greater than. + /// bool4x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator > (double lhs, double4x4 rhs) { return new bool4x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } /// Returns the result of a componentwise greater or equal operation on two double4x4 matrices. + /// Left hand side double4x4 to use to compute componentwise greater or equal. + /// Right hand side double4x4 to use to compute componentwise greater or equal. + /// bool4x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator >= (double4x4 lhs, double4x4 rhs) { return new bool4x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } /// Returns the result of a componentwise greater or equal operation on a double4x4 matrix and a double value. + /// Left hand side double4x4 to use to compute componentwise greater or equal. + /// Right hand side double to use to compute componentwise greater or equal. + /// bool4x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator >= (double4x4 lhs, double rhs) { return new bool4x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a double value and a double4x4 matrix. + /// Left hand side double to use to compute componentwise greater or equal. + /// Right hand side double4x4 to use to compute componentwise greater or equal. + /// bool4x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator >= (double lhs, double4x4 rhs) { return new bool4x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } /// Returns the result of a componentwise unary minus operation on a double4x4 matrix. + /// Value to use when computing the componentwise unary minus. + /// double4x4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator - (double4x4 val) { return new double4x4 (-val.c0, -val.c1, -val.c2, -val.c3); } /// Returns the result of a componentwise unary plus operation on a double4x4 matrix. + /// Value to use when computing the componentwise unary plus. + /// double4x4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 operator + (double4x4 val) { return new double4x4 (+val.c0, +val.c1, +val.c2, +val.c3); } /// Returns the result of a componentwise equality operation on two double4x4 matrices. + /// Left hand side double4x4 to use to compute componentwise equality. + /// Right hand side double4x4 to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (double4x4 lhs, double4x4 rhs) { return new bool4x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on a double4x4 matrix and a double value. + /// Left hand side double4x4 to use to compute componentwise equality. + /// Right hand side double to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (double4x4 lhs, double rhs) { return new bool4x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on a double value and a double4x4 matrix. + /// Left hand side double to use to compute componentwise equality. + /// Right hand side double4x4 to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (double lhs, double4x4 rhs) { return new bool4x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two double4x4 matrices. + /// Left hand side double4x4 to use to compute componentwise not equal. + /// Right hand side double4x4 to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (double4x4 lhs, double4x4 rhs) { return new bool4x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on a double4x4 matrix and a double value. + /// Left hand side double4x4 to use to compute componentwise not equal. + /// Right hand side double to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (double4x4 lhs, double rhs) { return new bool4x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on a double value and a double4x4 matrix. + /// Left hand side double to use to compute componentwise not equal. + /// Right hand side double4x4 to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (double lhs, double4x4 rhs) { return new bool4x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } @@ -358,19 +517,25 @@ unsafe public ref double4 this[int index] } /// Returns true if the double4x4 is equal to a given double4x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(double4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the double4x4 is equal to a given double4x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is double4x4 converted && Equals(converted); } /// Returns a hash code for the double4x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the double4x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -378,6 +543,9 @@ public override string ToString() } /// Returns a string representation of the double4x4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -389,10 +557,32 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a double4x4 matrix constructed from four double4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// double4x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 double4x4(double4 c0, double4 c1, double4 c2, double4 c3) { return new double4x4(c0, c1, c2, c3); } /// Returns a double4x4 matrix constructed from from 16 double values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// The matrix at row 3, column 3 will be set to this value. + /// double4x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 double4x4(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, @@ -406,42 +596,63 @@ public static double4x4 double4x4(double m00, double m01, double m02, double m03 } /// Returns a double4x4 matrix constructed from a single double value by assigning it to every component. + /// double to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 double4x4(double v) { return new double4x4(v); } /// Returns a double4x4 matrix constructed from a single bool value by converting it to double and assigning it to every component. + /// bool to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 double4x4(bool v) { return new double4x4(v); } /// Return a double4x4 matrix constructed from a bool4x4 matrix by componentwise conversion. + /// bool4x4 to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 double4x4(bool4x4 v) { return new double4x4(v); } /// Returns a double4x4 matrix constructed from a single int value by converting it to double and assigning it to every component. + /// int to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 double4x4(int v) { return new double4x4(v); } /// Return a double4x4 matrix constructed from a int4x4 matrix by componentwise conversion. + /// int4x4 to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 double4x4(int4x4 v) { return new double4x4(v); } /// Returns a double4x4 matrix constructed from a single uint value by converting it to double and assigning it to every component. + /// uint to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 double4x4(uint v) { return new double4x4(v); } /// Return a double4x4 matrix constructed from a uint4x4 matrix by componentwise conversion. + /// uint4x4 to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 double4x4(uint4x4 v) { return new double4x4(v); } /// Returns a double4x4 matrix constructed from a single float value by converting it to double and assigning it to every component. + /// float to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 double4x4(float v) { return new double4x4(v); } /// Return a double4x4 matrix constructed from a float4x4 matrix by componentwise conversion. + /// float4x4 to convert to double4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 double4x4(float4x4 v) { return new double4x4(v); } /// Return the result of rotating a double3 vector by a double4x4 matrix + /// Left hand side matrix argument that specifies the rotation. + /// Right hand side vector argument to be rotated. + /// The rotated vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 rotate(double4x4 a, double3 b) { @@ -449,6 +660,9 @@ public static double3 rotate(double4x4 a, double3 b) } /// Return the result of transforming a double3 point by a double4x4 matrix + /// Left hand side matrix argument that specifies the transformation. + /// Right hand side point argument to be transformed. + /// The transformed point. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 transform(double4x4 a, double3 b) { @@ -456,6 +670,8 @@ public static double3 transform(double4x4 a, double3 b) } /// Return the double4x4 transpose of a double4x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 transpose(double4x4 v) { @@ -467,6 +683,8 @@ public static double4x4 transpose(double4x4 v) } /// Returns the double4x4 full inverse of a double4x4 matrix. + /// Matrix to invert. + /// The inverted matrix. public static double4x4 inverse(double4x4 m) { double4 c0 = m.c0; @@ -529,7 +747,9 @@ public static double4x4 inverse(double4x4 m) return res; } - // Fast matrix inverse for rigid transforms (Orthonormal basis and translation) + /// Fast matrix inverse for rigid transforms (orthonormal basis and translation) + /// Matrix to invert. + /// The inverted matrix. public static double4x4 fastinverse(double4x4 m) { double4 c0 = m.c0; @@ -555,6 +775,8 @@ public static double4x4 fastinverse(double4x4 m) } /// Returns the determinant of a double4x4 matrix. + /// Matrix to use when computing determinant. + /// The determinant of the matrix. public static double determinant(double4x4 m) { double4 c0 = m.c0; @@ -570,7 +792,9 @@ public static double determinant(double4x4 m) return c0.x * m00 - c1.x * m01 + c2.x * m02 - c3.x * m03; } - /// Returns a uint hash code of a double4x4 vector. + /// Returns a uint hash code of a double4x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(double4x4 v) { @@ -581,10 +805,12 @@ public static uint hash(double4x4 v) } /// - /// Returns a uint4 vector hash code of a double4x4 vector. + /// Returns a uint4 vector hash code of a double4x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(double4x4 v) { diff --git a/src/Unity.Mathematics/float2.gen.cs b/src/Unity.Mathematics/float2.gen.cs index 2dde4d0d..77118da5 100644 --- a/src/Unity.Mathematics/float2.gen.cs +++ b/src/Unity.Mathematics/float2.gen.cs @@ -15,18 +15,23 @@ namespace Unity.Mathematics { + /// A 2 component vector of floats. [DebuggerTypeProxy(typeof(float2.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct float2 : System.IEquatable, IFormattable { + /// x component of the vector. public float x; + /// y component of the vector. public float y; /// float2 zero value. public static readonly float2 zero; /// Constructs a float2 vector from two float values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(float x, float y) { @@ -35,6 +40,7 @@ public float2(float x, float y) } /// Constructs a float2 vector from a float2 vector. + /// The constructed vector's xy components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(float2 xy) { @@ -43,6 +49,7 @@ public float2(float2 xy) } /// Constructs a float2 vector from a single float value by assigning it to every component. + /// float to convert to float2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(float v) { @@ -51,6 +58,7 @@ public float2(float v) } /// Constructs a float2 vector from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(bool v) { @@ -59,6 +67,7 @@ public float2(bool v) } /// Constructs a float2 vector from a bool2 vector by componentwise conversion. + /// bool2 to convert to float2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(bool2 v) { @@ -67,6 +76,7 @@ public float2(bool2 v) } /// Constructs a float2 vector from a single int value by converting it to float and assigning it to every component. + /// int to convert to float2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(int v) { @@ -75,6 +85,7 @@ public float2(int v) } /// Constructs a float2 vector from a int2 vector by componentwise conversion. + /// int2 to convert to float2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(int2 v) { @@ -83,6 +94,7 @@ public float2(int2 v) } /// Constructs a float2 vector from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(uint v) { @@ -91,6 +103,7 @@ public float2(uint v) } /// Constructs a float2 vector from a uint2 vector by componentwise conversion. + /// uint2 to convert to float2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(uint2 v) { @@ -99,6 +112,7 @@ public float2(uint2 v) } /// Constructs a float2 vector from a single half value by converting it to float and assigning it to every component. + /// half to convert to float2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(half v) { @@ -107,6 +121,7 @@ public float2(half v) } /// Constructs a float2 vector from a half2 vector by componentwise conversion. + /// half2 to convert to float2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(half2 v) { @@ -115,6 +130,7 @@ public float2(half2 v) } /// Constructs a float2 vector from a single double value by converting it to float and assigning it to every component. + /// double to convert to float2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(double v) { @@ -123,6 +139,7 @@ public float2(double v) } /// Constructs a float2 vector from a double2 vector by componentwise conversion. + /// double2 to convert to float2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2(double2 v) { @@ -132,215 +149,345 @@ public float2(double2 v) /// Implicitly converts a single float value to a float2 vector by assigning it to every component. + /// float to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2(float v) { return new float2(v); } /// Explicitly converts a single bool value to a float2 vector by converting it to float and assigning it to every component. + /// bool to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2(bool v) { return new float2(v); } /// Explicitly converts a bool2 vector to a float2 vector by componentwise conversion. + /// bool2 to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2(bool2 v) { return new float2(v); } /// Implicitly converts a single int value to a float2 vector by converting it to float and assigning it to every component. + /// int to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2(int v) { return new float2(v); } /// Implicitly converts a int2 vector to a float2 vector by componentwise conversion. + /// int2 to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2(int2 v) { return new float2(v); } /// Implicitly converts a single uint value to a float2 vector by converting it to float and assigning it to every component. + /// uint to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2(uint v) { return new float2(v); } /// Implicitly converts a uint2 vector to a float2 vector by componentwise conversion. + /// uint2 to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2(uint2 v) { return new float2(v); } /// Implicitly converts a single half value to a float2 vector by converting it to float and assigning it to every component. + /// half to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2(half v) { return new float2(v); } /// Implicitly converts a half2 vector to a float2 vector by componentwise conversion. + /// half2 to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2(half2 v) { return new float2(v); } /// Explicitly converts a single double value to a float2 vector by converting it to float and assigning it to every component. + /// double to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2(double v) { return new float2(v); } /// Explicitly converts a double2 vector to a float2 vector by componentwise conversion. + /// double2 to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2(double2 v) { return new float2(v); } /// Returns the result of a componentwise multiplication operation on two float2 vectors. + /// Left hand side float2 to use to compute componentwise multiplication. + /// Right hand side float2 to use to compute componentwise multiplication. + /// float2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator * (float2 lhs, float2 rhs) { return new float2 (lhs.x * rhs.x, lhs.y * rhs.y); } /// Returns the result of a componentwise multiplication operation on a float2 vector and a float value. + /// Left hand side float2 to use to compute componentwise multiplication. + /// Right hand side float to use to compute componentwise multiplication. + /// float2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator * (float2 lhs, float rhs) { return new float2 (lhs.x * rhs, lhs.y * rhs); } /// Returns the result of a componentwise multiplication operation on a float value and a float2 vector. + /// Left hand side float to use to compute componentwise multiplication. + /// Right hand side float2 to use to compute componentwise multiplication. + /// float2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator * (float lhs, float2 rhs) { return new float2 (lhs * rhs.x, lhs * rhs.y); } /// Returns the result of a componentwise addition operation on two float2 vectors. + /// Left hand side float2 to use to compute componentwise addition. + /// Right hand side float2 to use to compute componentwise addition. + /// float2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator + (float2 lhs, float2 rhs) { return new float2 (lhs.x + rhs.x, lhs.y + rhs.y); } /// Returns the result of a componentwise addition operation on a float2 vector and a float value. + /// Left hand side float2 to use to compute componentwise addition. + /// Right hand side float to use to compute componentwise addition. + /// float2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator + (float2 lhs, float rhs) { return new float2 (lhs.x + rhs, lhs.y + rhs); } /// Returns the result of a componentwise addition operation on a float value and a float2 vector. + /// Left hand side float to use to compute componentwise addition. + /// Right hand side float2 to use to compute componentwise addition. + /// float2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator + (float lhs, float2 rhs) { return new float2 (lhs + rhs.x, lhs + rhs.y); } /// Returns the result of a componentwise subtraction operation on two float2 vectors. + /// Left hand side float2 to use to compute componentwise subtraction. + /// Right hand side float2 to use to compute componentwise subtraction. + /// float2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator - (float2 lhs, float2 rhs) { return new float2 (lhs.x - rhs.x, lhs.y - rhs.y); } /// Returns the result of a componentwise subtraction operation on a float2 vector and a float value. + /// Left hand side float2 to use to compute componentwise subtraction. + /// Right hand side float to use to compute componentwise subtraction. + /// float2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator - (float2 lhs, float rhs) { return new float2 (lhs.x - rhs, lhs.y - rhs); } /// Returns the result of a componentwise subtraction operation on a float value and a float2 vector. + /// Left hand side float to use to compute componentwise subtraction. + /// Right hand side float2 to use to compute componentwise subtraction. + /// float2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator - (float lhs, float2 rhs) { return new float2 (lhs - rhs.x, lhs - rhs.y); } /// Returns the result of a componentwise division operation on two float2 vectors. + /// Left hand side float2 to use to compute componentwise division. + /// Right hand side float2 to use to compute componentwise division. + /// float2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator / (float2 lhs, float2 rhs) { return new float2 (lhs.x / rhs.x, lhs.y / rhs.y); } /// Returns the result of a componentwise division operation on a float2 vector and a float value. + /// Left hand side float2 to use to compute componentwise division. + /// Right hand side float to use to compute componentwise division. + /// float2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator / (float2 lhs, float rhs) { return new float2 (lhs.x / rhs, lhs.y / rhs); } /// Returns the result of a componentwise division operation on a float value and a float2 vector. + /// Left hand side float to use to compute componentwise division. + /// Right hand side float2 to use to compute componentwise division. + /// float2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator / (float lhs, float2 rhs) { return new float2 (lhs / rhs.x, lhs / rhs.y); } /// Returns the result of a componentwise modulus operation on two float2 vectors. + /// Left hand side float2 to use to compute componentwise modulus. + /// Right hand side float2 to use to compute componentwise modulus. + /// float2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator % (float2 lhs, float2 rhs) { return new float2 (lhs.x % rhs.x, lhs.y % rhs.y); } /// Returns the result of a componentwise modulus operation on a float2 vector and a float value. + /// Left hand side float2 to use to compute componentwise modulus. + /// Right hand side float to use to compute componentwise modulus. + /// float2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator % (float2 lhs, float rhs) { return new float2 (lhs.x % rhs, lhs.y % rhs); } /// Returns the result of a componentwise modulus operation on a float value and a float2 vector. + /// Left hand side float to use to compute componentwise modulus. + /// Right hand side float2 to use to compute componentwise modulus. + /// float2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator % (float lhs, float2 rhs) { return new float2 (lhs % rhs.x, lhs % rhs.y); } /// Returns the result of a componentwise increment operation on a float2 vector. + /// Value to use when computing the componentwise increment. + /// float2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator ++ (float2 val) { return new float2 (++val.x, ++val.y); } /// Returns the result of a componentwise decrement operation on a float2 vector. + /// Value to use when computing the componentwise decrement. + /// float2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator -- (float2 val) { return new float2 (--val.x, --val.y); } /// Returns the result of a componentwise less than operation on two float2 vectors. + /// Left hand side float2 to use to compute componentwise less than. + /// Right hand side float2 to use to compute componentwise less than. + /// bool2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (float2 lhs, float2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } /// Returns the result of a componentwise less than operation on a float2 vector and a float value. + /// Left hand side float2 to use to compute componentwise less than. + /// Right hand side float to use to compute componentwise less than. + /// bool2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (float2 lhs, float rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } /// Returns the result of a componentwise less than operation on a float value and a float2 vector. + /// Left hand side float to use to compute componentwise less than. + /// Right hand side float2 to use to compute componentwise less than. + /// bool2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (float lhs, float2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } /// Returns the result of a componentwise less or equal operation on two float2 vectors. + /// Left hand side float2 to use to compute componentwise less or equal. + /// Right hand side float2 to use to compute componentwise less or equal. + /// bool2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (float2 lhs, float2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } /// Returns the result of a componentwise less or equal operation on a float2 vector and a float value. + /// Left hand side float2 to use to compute componentwise less or equal. + /// Right hand side float to use to compute componentwise less or equal. + /// bool2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (float2 lhs, float rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } /// Returns the result of a componentwise less or equal operation on a float value and a float2 vector. + /// Left hand side float to use to compute componentwise less or equal. + /// Right hand side float2 to use to compute componentwise less or equal. + /// bool2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (float lhs, float2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } /// Returns the result of a componentwise greater than operation on two float2 vectors. + /// Left hand side float2 to use to compute componentwise greater than. + /// Right hand side float2 to use to compute componentwise greater than. + /// bool2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (float2 lhs, float2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } /// Returns the result of a componentwise greater than operation on a float2 vector and a float value. + /// Left hand side float2 to use to compute componentwise greater than. + /// Right hand side float to use to compute componentwise greater than. + /// bool2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (float2 lhs, float rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } /// Returns the result of a componentwise greater than operation on a float value and a float2 vector. + /// Left hand side float to use to compute componentwise greater than. + /// Right hand side float2 to use to compute componentwise greater than. + /// bool2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (float lhs, float2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } /// Returns the result of a componentwise greater or equal operation on two float2 vectors. + /// Left hand side float2 to use to compute componentwise greater or equal. + /// Right hand side float2 to use to compute componentwise greater or equal. + /// bool2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (float2 lhs, float2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } /// Returns the result of a componentwise greater or equal operation on a float2 vector and a float value. + /// Left hand side float2 to use to compute componentwise greater or equal. + /// Right hand side float to use to compute componentwise greater or equal. + /// bool2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (float2 lhs, float rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } /// Returns the result of a componentwise greater or equal operation on a float value and a float2 vector. + /// Left hand side float to use to compute componentwise greater or equal. + /// Right hand side float2 to use to compute componentwise greater or equal. + /// bool2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (float lhs, float2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } /// Returns the result of a componentwise unary minus operation on a float2 vector. + /// Value to use when computing the componentwise unary minus. + /// float2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator - (float2 val) { return new float2 (-val.x, -val.y); } /// Returns the result of a componentwise unary plus operation on a float2 vector. + /// Value to use when computing the componentwise unary plus. + /// float2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 operator + (float2 val) { return new float2 (+val.x, +val.y); } /// Returns the result of a componentwise equality operation on two float2 vectors. + /// Left hand side float2 to use to compute componentwise equality. + /// Right hand side float2 to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (float2 lhs, float2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } /// Returns the result of a componentwise equality operation on a float2 vector and a float value. + /// Left hand side float2 to use to compute componentwise equality. + /// Right hand side float to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (float2 lhs, float rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } /// Returns the result of a componentwise equality operation on a float value and a float2 vector. + /// Left hand side float to use to compute componentwise equality. + /// Right hand side float2 to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (float lhs, float2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } /// Returns the result of a componentwise not equal operation on two float2 vectors. + /// Left hand side float2 to use to compute componentwise not equal. + /// Right hand side float2 to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (float2 lhs, float2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } /// Returns the result of a componentwise not equal operation on a float2 vector and a float value. + /// Left hand side float2 to use to compute componentwise not equal. + /// Right hand side float to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (float2 lhs, float rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } /// Returns the result of a componentwise not equal operation on a float value and a float2 vector. + /// Left hand side float to use to compute componentwise not equal. + /// Right hand side float2 to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (float lhs, float2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxx { @@ -349,6 +496,7 @@ public float4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxy { @@ -357,6 +505,7 @@ public float4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyx { @@ -365,6 +514,7 @@ public float4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyy { @@ -373,6 +523,7 @@ public float4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxx { @@ -381,6 +532,7 @@ public float4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxy { @@ -389,6 +541,7 @@ public float4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyx { @@ -397,6 +550,7 @@ public float4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyy { @@ -405,6 +559,7 @@ public float4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxx { @@ -413,6 +568,7 @@ public float4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxy { @@ -421,6 +577,7 @@ public float4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyx { @@ -429,6 +586,7 @@ public float4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyy { @@ -437,6 +595,7 @@ public float4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxx { @@ -445,6 +604,7 @@ public float4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxy { @@ -453,6 +613,7 @@ public float4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyx { @@ -461,6 +622,7 @@ public float4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyy { @@ -469,6 +631,7 @@ public float4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxx { @@ -477,6 +640,7 @@ public float3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxy { @@ -485,6 +649,7 @@ public float3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyx { @@ -493,6 +658,7 @@ public float3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyy { @@ -501,6 +667,7 @@ public float3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxx { @@ -509,6 +676,7 @@ public float3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxy { @@ -517,6 +685,7 @@ public float3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyx { @@ -525,6 +694,7 @@ public float3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyy { @@ -533,6 +703,7 @@ public float3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xx { @@ -541,6 +712,7 @@ public float2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xy { @@ -551,6 +723,7 @@ public float2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yx { @@ -561,6 +734,7 @@ public float2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yy { @@ -592,19 +766,25 @@ unsafe public float this[int index] } /// Returns true if the float2 is equal to a given float2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float2 rhs) { return x == rhs.x && y == rhs.y; } /// Returns true if the float2 is equal to a given float2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is float2 converted && Equals(converted); } /// Returns a hash code for the float2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the float2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -612,6 +792,9 @@ public override string ToString() } /// Returns a string representation of the float2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -634,58 +817,87 @@ public DebuggerProxy(float2 v) public static partial class math { /// Returns a float2 vector constructed from two float values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// float2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 float2(float x, float y) { return new float2(x, y); } /// Returns a float2 vector constructed from a float2 vector. + /// The constructed vector's xy components will be set to this value. + /// float2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 float2(float2 xy) { return new float2(xy); } /// Returns a float2 vector constructed from a single float value by assigning it to every component. + /// float to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 float2(float v) { return new float2(v); } /// Returns a float2 vector constructed from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 float2(bool v) { return new float2(v); } /// Return a float2 vector constructed from a bool2 vector by componentwise conversion. + /// bool2 to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 float2(bool2 v) { return new float2(v); } /// Returns a float2 vector constructed from a single int value by converting it to float and assigning it to every component. + /// int to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 float2(int v) { return new float2(v); } /// Return a float2 vector constructed from a int2 vector by componentwise conversion. + /// int2 to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 float2(int2 v) { return new float2(v); } /// Returns a float2 vector constructed from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 float2(uint v) { return new float2(v); } /// Return a float2 vector constructed from a uint2 vector by componentwise conversion. + /// uint2 to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 float2(uint2 v) { return new float2(v); } /// Returns a float2 vector constructed from a single half value by converting it to float and assigning it to every component. + /// half to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 float2(half v) { return new float2(v); } /// Return a float2 vector constructed from a half2 vector by componentwise conversion. + /// half2 to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 float2(half2 v) { return new float2(v); } /// Returns a float2 vector constructed from a single double value by converting it to float and assigning it to every component. + /// double to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 float2(double v) { return new float2(v); } /// Return a float2 vector constructed from a double2 vector by componentwise conversion. + /// double2 to convert to float2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 float2(double2 v) { return new float2(v); } /// Returns a uint hash code of a float2 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(float2 v) { @@ -697,6 +909,8 @@ public static uint hash(float2 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(float2 v) { @@ -704,40 +918,62 @@ public static uint2 hashwide(float2 v) } /// Returns the result of specified shuffling of the components from two float2 vectors into a float value. + /// float2 to use as the left argument of the shuffle operation. + /// float2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting float. + /// float result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float shuffle(float2 a, float2 b, ShuffleComponent x) + public static float shuffle(float2 left, float2 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two float2 vectors into a float2 vector. + /// float2 to use as the left argument of the shuffle operation. + /// float2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting float2 x component. + /// The ShuffleComponent to use when setting the resulting float2 y component. + /// float2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 shuffle(float2 a, float2 b, ShuffleComponent x, ShuffleComponent y) + public static float2 shuffle(float2 left, float2 right, ShuffleComponent x, ShuffleComponent y) { return float2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two float2 vectors into a float3 vector. + /// float2 to use as the left argument of the shuffle operation. + /// float2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting float3 x component. + /// The ShuffleComponent to use when setting the resulting float3 y component. + /// The ShuffleComponent to use when setting the resulting float3 z component. + /// float3 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 shuffle(float2 a, float2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + public static float3 shuffle(float2 left, float2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return float3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two float2 vectors into a float4 vector. + /// float2 to use as the left argument of the shuffle operation. + /// float2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting float4 x component. + /// The ShuffleComponent to use when setting the resulting float4 y component. + /// The ShuffleComponent to use when setting the resulting float4 z component. + /// The ShuffleComponent to use when setting the resulting float4 w component. + /// float4 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 shuffle(float2 a, float2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + public static float4 shuffle(float2 left, float2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return float4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/float2x2.gen.cs b/src/Unity.Mathematics/float2x2.gen.cs index d5adcf45..1f97ff74 100644 --- a/src/Unity.Mathematics/float2x2.gen.cs +++ b/src/Unity.Mathematics/float2x2.gen.cs @@ -14,11 +14,14 @@ namespace Unity.Mathematics { + /// A 2x2 matrix of floats. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct float2x2 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public float2 c0; + /// Column 1 of the matrix. public float2 c1; /// float2x2 identity transform. @@ -28,6 +31,8 @@ public partial struct float2x2 : System.IEquatable, IFormattable public static readonly float2x2 zero; /// Constructs a float2x2 matrix from two float2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x2(float2 c0, float2 c1) { @@ -36,6 +41,10 @@ public float2x2(float2 c0, float2 c1) } /// Constructs a float2x2 matrix from 4 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x2(float m00, float m01, float m10, float m11) @@ -45,6 +54,7 @@ public float2x2(float m00, float m01, } /// Constructs a float2x2 matrix from a single float value by assigning it to every component. + /// float to convert to float2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x2(float v) { @@ -53,6 +63,7 @@ public float2x2(float v) } /// Constructs a float2x2 matrix from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x2(bool v) { @@ -61,6 +72,7 @@ public float2x2(bool v) } /// Constructs a float2x2 matrix from a bool2x2 matrix by componentwise conversion. + /// bool2x2 to convert to float2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x2(bool2x2 v) { @@ -69,6 +81,7 @@ public float2x2(bool2x2 v) } /// Constructs a float2x2 matrix from a single int value by converting it to float and assigning it to every component. + /// int to convert to float2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x2(int v) { @@ -77,6 +90,7 @@ public float2x2(int v) } /// Constructs a float2x2 matrix from a int2x2 matrix by componentwise conversion. + /// int2x2 to convert to float2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x2(int2x2 v) { @@ -85,6 +99,7 @@ public float2x2(int2x2 v) } /// Constructs a float2x2 matrix from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x2(uint v) { @@ -93,6 +108,7 @@ public float2x2(uint v) } /// Constructs a float2x2 matrix from a uint2x2 matrix by componentwise conversion. + /// uint2x2 to convert to float2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x2(uint2x2 v) { @@ -101,6 +117,7 @@ public float2x2(uint2x2 v) } /// Constructs a float2x2 matrix from a single double value by converting it to float and assigning it to every component. + /// double to convert to float2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x2(double v) { @@ -109,6 +126,7 @@ public float2x2(double v) } /// Constructs a float2x2 matrix from a double2x2 matrix by componentwise conversion. + /// double2x2 to convert to float2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x2(double2x2 v) { @@ -118,201 +136,326 @@ public float2x2(double2x2 v) /// Implicitly converts a single float value to a float2x2 matrix by assigning it to every component. + /// float to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x2(float v) { return new float2x2(v); } /// Explicitly converts a single bool value to a float2x2 matrix by converting it to float and assigning it to every component. + /// bool to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2x2(bool v) { return new float2x2(v); } /// Explicitly converts a bool2x2 matrix to a float2x2 matrix by componentwise conversion. + /// bool2x2 to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2x2(bool2x2 v) { return new float2x2(v); } /// Implicitly converts a single int value to a float2x2 matrix by converting it to float and assigning it to every component. + /// int to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x2(int v) { return new float2x2(v); } /// Implicitly converts a int2x2 matrix to a float2x2 matrix by componentwise conversion. + /// int2x2 to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x2(int2x2 v) { return new float2x2(v); } /// Implicitly converts a single uint value to a float2x2 matrix by converting it to float and assigning it to every component. + /// uint to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x2(uint v) { return new float2x2(v); } /// Implicitly converts a uint2x2 matrix to a float2x2 matrix by componentwise conversion. + /// uint2x2 to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x2(uint2x2 v) { return new float2x2(v); } /// Explicitly converts a single double value to a float2x2 matrix by converting it to float and assigning it to every component. + /// double to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2x2(double v) { return new float2x2(v); } /// Explicitly converts a double2x2 matrix to a float2x2 matrix by componentwise conversion. + /// double2x2 to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2x2(double2x2 v) { return new float2x2(v); } /// Returns the result of a componentwise multiplication operation on two float2x2 matrices. + /// Left hand side float2x2 to use to compute componentwise multiplication. + /// Right hand side float2x2 to use to compute componentwise multiplication. + /// float2x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator * (float2x2 lhs, float2x2 rhs) { return new float2x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } /// Returns the result of a componentwise multiplication operation on a float2x2 matrix and a float value. + /// Left hand side float2x2 to use to compute componentwise multiplication. + /// Right hand side float to use to compute componentwise multiplication. + /// float2x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator * (float2x2 lhs, float rhs) { return new float2x2 (lhs.c0 * rhs, lhs.c1 * rhs); } /// Returns the result of a componentwise multiplication operation on a float value and a float2x2 matrix. + /// Left hand side float to use to compute componentwise multiplication. + /// Right hand side float2x2 to use to compute componentwise multiplication. + /// float2x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator * (float lhs, float2x2 rhs) { return new float2x2 (lhs * rhs.c0, lhs * rhs.c1); } /// Returns the result of a componentwise addition operation on two float2x2 matrices. + /// Left hand side float2x2 to use to compute componentwise addition. + /// Right hand side float2x2 to use to compute componentwise addition. + /// float2x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator + (float2x2 lhs, float2x2 rhs) { return new float2x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } /// Returns the result of a componentwise addition operation on a float2x2 matrix and a float value. + /// Left hand side float2x2 to use to compute componentwise addition. + /// Right hand side float to use to compute componentwise addition. + /// float2x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator + (float2x2 lhs, float rhs) { return new float2x2 (lhs.c0 + rhs, lhs.c1 + rhs); } /// Returns the result of a componentwise addition operation on a float value and a float2x2 matrix. + /// Left hand side float to use to compute componentwise addition. + /// Right hand side float2x2 to use to compute componentwise addition. + /// float2x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator + (float lhs, float2x2 rhs) { return new float2x2 (lhs + rhs.c0, lhs + rhs.c1); } /// Returns the result of a componentwise subtraction operation on two float2x2 matrices. + /// Left hand side float2x2 to use to compute componentwise subtraction. + /// Right hand side float2x2 to use to compute componentwise subtraction. + /// float2x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator - (float2x2 lhs, float2x2 rhs) { return new float2x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } /// Returns the result of a componentwise subtraction operation on a float2x2 matrix and a float value. + /// Left hand side float2x2 to use to compute componentwise subtraction. + /// Right hand side float to use to compute componentwise subtraction. + /// float2x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator - (float2x2 lhs, float rhs) { return new float2x2 (lhs.c0 - rhs, lhs.c1 - rhs); } /// Returns the result of a componentwise subtraction operation on a float value and a float2x2 matrix. + /// Left hand side float to use to compute componentwise subtraction. + /// Right hand side float2x2 to use to compute componentwise subtraction. + /// float2x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator - (float lhs, float2x2 rhs) { return new float2x2 (lhs - rhs.c0, lhs - rhs.c1); } /// Returns the result of a componentwise division operation on two float2x2 matrices. + /// Left hand side float2x2 to use to compute componentwise division. + /// Right hand side float2x2 to use to compute componentwise division. + /// float2x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator / (float2x2 lhs, float2x2 rhs) { return new float2x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } /// Returns the result of a componentwise division operation on a float2x2 matrix and a float value. + /// Left hand side float2x2 to use to compute componentwise division. + /// Right hand side float to use to compute componentwise division. + /// float2x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator / (float2x2 lhs, float rhs) { return new float2x2 (lhs.c0 / rhs, lhs.c1 / rhs); } /// Returns the result of a componentwise division operation on a float value and a float2x2 matrix. + /// Left hand side float to use to compute componentwise division. + /// Right hand side float2x2 to use to compute componentwise division. + /// float2x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator / (float lhs, float2x2 rhs) { return new float2x2 (lhs / rhs.c0, lhs / rhs.c1); } /// Returns the result of a componentwise modulus operation on two float2x2 matrices. + /// Left hand side float2x2 to use to compute componentwise modulus. + /// Right hand side float2x2 to use to compute componentwise modulus. + /// float2x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator % (float2x2 lhs, float2x2 rhs) { return new float2x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } /// Returns the result of a componentwise modulus operation on a float2x2 matrix and a float value. + /// Left hand side float2x2 to use to compute componentwise modulus. + /// Right hand side float to use to compute componentwise modulus. + /// float2x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator % (float2x2 lhs, float rhs) { return new float2x2 (lhs.c0 % rhs, lhs.c1 % rhs); } /// Returns the result of a componentwise modulus operation on a float value and a float2x2 matrix. + /// Left hand side float to use to compute componentwise modulus. + /// Right hand side float2x2 to use to compute componentwise modulus. + /// float2x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator % (float lhs, float2x2 rhs) { return new float2x2 (lhs % rhs.c0, lhs % rhs.c1); } /// Returns the result of a componentwise increment operation on a float2x2 matrix. + /// Value to use when computing the componentwise increment. + /// float2x2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator ++ (float2x2 val) { return new float2x2 (++val.c0, ++val.c1); } /// Returns the result of a componentwise decrement operation on a float2x2 matrix. + /// Value to use when computing the componentwise decrement. + /// float2x2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator -- (float2x2 val) { return new float2x2 (--val.c0, --val.c1); } /// Returns the result of a componentwise less than operation on two float2x2 matrices. + /// Left hand side float2x2 to use to compute componentwise less than. + /// Right hand side float2x2 to use to compute componentwise less than. + /// bool2x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator < (float2x2 lhs, float2x2 rhs) { return new bool2x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } /// Returns the result of a componentwise less than operation on a float2x2 matrix and a float value. + /// Left hand side float2x2 to use to compute componentwise less than. + /// Right hand side float to use to compute componentwise less than. + /// bool2x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator < (float2x2 lhs, float rhs) { return new bool2x2 (lhs.c0 < rhs, lhs.c1 < rhs); } /// Returns the result of a componentwise less than operation on a float value and a float2x2 matrix. + /// Left hand side float to use to compute componentwise less than. + /// Right hand side float2x2 to use to compute componentwise less than. + /// bool2x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator < (float lhs, float2x2 rhs) { return new bool2x2 (lhs < rhs.c0, lhs < rhs.c1); } /// Returns the result of a componentwise less or equal operation on two float2x2 matrices. + /// Left hand side float2x2 to use to compute componentwise less or equal. + /// Right hand side float2x2 to use to compute componentwise less or equal. + /// bool2x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator <= (float2x2 lhs, float2x2 rhs) { return new bool2x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } /// Returns the result of a componentwise less or equal operation on a float2x2 matrix and a float value. + /// Left hand side float2x2 to use to compute componentwise less or equal. + /// Right hand side float to use to compute componentwise less or equal. + /// bool2x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator <= (float2x2 lhs, float rhs) { return new bool2x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } /// Returns the result of a componentwise less or equal operation on a float value and a float2x2 matrix. + /// Left hand side float to use to compute componentwise less or equal. + /// Right hand side float2x2 to use to compute componentwise less or equal. + /// bool2x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator <= (float lhs, float2x2 rhs) { return new bool2x2 (lhs <= rhs.c0, lhs <= rhs.c1); } /// Returns the result of a componentwise greater than operation on two float2x2 matrices. + /// Left hand side float2x2 to use to compute componentwise greater than. + /// Right hand side float2x2 to use to compute componentwise greater than. + /// bool2x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator > (float2x2 lhs, float2x2 rhs) { return new bool2x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } /// Returns the result of a componentwise greater than operation on a float2x2 matrix and a float value. + /// Left hand side float2x2 to use to compute componentwise greater than. + /// Right hand side float to use to compute componentwise greater than. + /// bool2x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator > (float2x2 lhs, float rhs) { return new bool2x2 (lhs.c0 > rhs, lhs.c1 > rhs); } /// Returns the result of a componentwise greater than operation on a float value and a float2x2 matrix. + /// Left hand side float to use to compute componentwise greater than. + /// Right hand side float2x2 to use to compute componentwise greater than. + /// bool2x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator > (float lhs, float2x2 rhs) { return new bool2x2 (lhs > rhs.c0, lhs > rhs.c1); } /// Returns the result of a componentwise greater or equal operation on two float2x2 matrices. + /// Left hand side float2x2 to use to compute componentwise greater or equal. + /// Right hand side float2x2 to use to compute componentwise greater or equal. + /// bool2x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator >= (float2x2 lhs, float2x2 rhs) { return new bool2x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } /// Returns the result of a componentwise greater or equal operation on a float2x2 matrix and a float value. + /// Left hand side float2x2 to use to compute componentwise greater or equal. + /// Right hand side float to use to compute componentwise greater or equal. + /// bool2x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator >= (float2x2 lhs, float rhs) { return new bool2x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a float value and a float2x2 matrix. + /// Left hand side float to use to compute componentwise greater or equal. + /// Right hand side float2x2 to use to compute componentwise greater or equal. + /// bool2x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator >= (float lhs, float2x2 rhs) { return new bool2x2 (lhs >= rhs.c0, lhs >= rhs.c1); } /// Returns the result of a componentwise unary minus operation on a float2x2 matrix. + /// Value to use when computing the componentwise unary minus. + /// float2x2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator - (float2x2 val) { return new float2x2 (-val.c0, -val.c1); } /// Returns the result of a componentwise unary plus operation on a float2x2 matrix. + /// Value to use when computing the componentwise unary plus. + /// float2x2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 operator + (float2x2 val) { return new float2x2 (+val.c0, +val.c1); } /// Returns the result of a componentwise equality operation on two float2x2 matrices. + /// Left hand side float2x2 to use to compute componentwise equality. + /// Right hand side float2x2 to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (float2x2 lhs, float2x2 rhs) { return new bool2x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on a float2x2 matrix and a float value. + /// Left hand side float2x2 to use to compute componentwise equality. + /// Right hand side float to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (float2x2 lhs, float rhs) { return new bool2x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on a float value and a float2x2 matrix. + /// Left hand side float to use to compute componentwise equality. + /// Right hand side float2x2 to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (float lhs, float2x2 rhs) { return new bool2x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two float2x2 matrices. + /// Left hand side float2x2 to use to compute componentwise not equal. + /// Right hand side float2x2 to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (float2x2 lhs, float2x2 rhs) { return new bool2x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on a float2x2 matrix and a float value. + /// Left hand side float2x2 to use to compute componentwise not equal. + /// Right hand side float to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (float2x2 lhs, float rhs) { return new bool2x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on a float value and a float2x2 matrix. + /// Left hand side float to use to compute componentwise not equal. + /// Right hand side float2x2 to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (float lhs, float2x2 rhs) { return new bool2x2 (lhs != rhs.c0, lhs != rhs.c1); } @@ -332,19 +475,25 @@ unsafe public ref float2 this[int index] } /// Returns true if the float2x2 is equal to a given float2x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the float2x2 is equal to a given float2x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is float2x2 converted && Equals(converted); } /// Returns a hash code for the float2x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the float2x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -352,6 +501,9 @@ public override string ToString() } /// Returns a string representation of the float2x2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -363,10 +515,18 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a float2x2 matrix constructed from two float2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// float2x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 float2x2(float2 c0, float2 c1) { return new float2x2(c0, c1); } /// Returns a float2x2 matrix constructed from from 4 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// float2x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 float2x2(float m00, float m01, float m10, float m11) @@ -376,42 +536,62 @@ public static float2x2 float2x2(float m00, float m01, } /// Returns a float2x2 matrix constructed from a single float value by assigning it to every component. + /// float to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 float2x2(float v) { return new float2x2(v); } /// Returns a float2x2 matrix constructed from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 float2x2(bool v) { return new float2x2(v); } /// Return a float2x2 matrix constructed from a bool2x2 matrix by componentwise conversion. + /// bool2x2 to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 float2x2(bool2x2 v) { return new float2x2(v); } /// Returns a float2x2 matrix constructed from a single int value by converting it to float and assigning it to every component. + /// int to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 float2x2(int v) { return new float2x2(v); } /// Return a float2x2 matrix constructed from a int2x2 matrix by componentwise conversion. + /// int2x2 to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 float2x2(int2x2 v) { return new float2x2(v); } /// Returns a float2x2 matrix constructed from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 float2x2(uint v) { return new float2x2(v); } /// Return a float2x2 matrix constructed from a uint2x2 matrix by componentwise conversion. + /// uint2x2 to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 float2x2(uint2x2 v) { return new float2x2(v); } /// Returns a float2x2 matrix constructed from a single double value by converting it to float and assigning it to every component. + /// double to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 float2x2(double v) { return new float2x2(v); } /// Return a float2x2 matrix constructed from a double2x2 matrix by componentwise conversion. + /// double2x2 to convert to float2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 float2x2(double2x2 v) { return new float2x2(v); } /// Return the float2x2 transpose of a float2x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 transpose(float2x2 v) { @@ -421,6 +601,8 @@ public static float2x2 transpose(float2x2 v) } /// Returns the float2x2 full inverse of a float2x2 matrix. + /// Matrix to invert. + /// The inverted matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 inverse(float2x2 m) { @@ -435,6 +617,8 @@ public static float2x2 inverse(float2x2 m) } /// Returns the determinant of a float2x2 matrix. + /// Matrix to use when computing determinant. + /// The determinant of the matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float determinant(float2x2 m) { @@ -446,7 +630,9 @@ public static float determinant(float2x2 m) return a * d - b * c; } - /// Returns a uint hash code of a float2x2 vector. + /// Returns a uint hash code of a float2x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(float2x2 v) { @@ -455,10 +641,12 @@ public static uint hash(float2x2 v) } /// - /// Returns a uint2 vector hash code of a float2x2 vector. + /// Returns a uint2 vector hash code of a float2x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(float2x2 v) { diff --git a/src/Unity.Mathematics/float2x3.gen.cs b/src/Unity.Mathematics/float2x3.gen.cs index 7b77caa6..c9198c2a 100644 --- a/src/Unity.Mathematics/float2x3.gen.cs +++ b/src/Unity.Mathematics/float2x3.gen.cs @@ -14,18 +14,25 @@ namespace Unity.Mathematics { + /// A 2x3 matrix of floats. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct float2x3 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public float2 c0; + /// Column 1 of the matrix. public float2 c1; + /// Column 2 of the matrix. public float2 c2; /// float2x3 zero value. public static readonly float2x3 zero; /// Constructs a float2x3 matrix from three float2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x3(float2 c0, float2 c1, float2 c2) { @@ -35,6 +42,12 @@ public float2x3(float2 c0, float2 c1, float2 c2) } /// Constructs a float2x3 matrix from 6 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x3(float m00, float m01, float m02, float m10, float m11, float m12) @@ -45,6 +58,7 @@ public float2x3(float m00, float m01, float m02, } /// Constructs a float2x3 matrix from a single float value by assigning it to every component. + /// float to convert to float2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x3(float v) { @@ -54,6 +68,7 @@ public float2x3(float v) } /// Constructs a float2x3 matrix from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x3(bool v) { @@ -63,6 +78,7 @@ public float2x3(bool v) } /// Constructs a float2x3 matrix from a bool2x3 matrix by componentwise conversion. + /// bool2x3 to convert to float2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x3(bool2x3 v) { @@ -72,6 +88,7 @@ public float2x3(bool2x3 v) } /// Constructs a float2x3 matrix from a single int value by converting it to float and assigning it to every component. + /// int to convert to float2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x3(int v) { @@ -81,6 +98,7 @@ public float2x3(int v) } /// Constructs a float2x3 matrix from a int2x3 matrix by componentwise conversion. + /// int2x3 to convert to float2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x3(int2x3 v) { @@ -90,6 +108,7 @@ public float2x3(int2x3 v) } /// Constructs a float2x3 matrix from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x3(uint v) { @@ -99,6 +118,7 @@ public float2x3(uint v) } /// Constructs a float2x3 matrix from a uint2x3 matrix by componentwise conversion. + /// uint2x3 to convert to float2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x3(uint2x3 v) { @@ -108,6 +128,7 @@ public float2x3(uint2x3 v) } /// Constructs a float2x3 matrix from a single double value by converting it to float and assigning it to every component. + /// double to convert to float2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x3(double v) { @@ -117,6 +138,7 @@ public float2x3(double v) } /// Constructs a float2x3 matrix from a double2x3 matrix by componentwise conversion. + /// double2x3 to convert to float2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x3(double2x3 v) { @@ -127,201 +149,326 @@ public float2x3(double2x3 v) /// Implicitly converts a single float value to a float2x3 matrix by assigning it to every component. + /// float to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x3(float v) { return new float2x3(v); } /// Explicitly converts a single bool value to a float2x3 matrix by converting it to float and assigning it to every component. + /// bool to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2x3(bool v) { return new float2x3(v); } /// Explicitly converts a bool2x3 matrix to a float2x3 matrix by componentwise conversion. + /// bool2x3 to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2x3(bool2x3 v) { return new float2x3(v); } /// Implicitly converts a single int value to a float2x3 matrix by converting it to float and assigning it to every component. + /// int to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x3(int v) { return new float2x3(v); } /// Implicitly converts a int2x3 matrix to a float2x3 matrix by componentwise conversion. + /// int2x3 to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x3(int2x3 v) { return new float2x3(v); } /// Implicitly converts a single uint value to a float2x3 matrix by converting it to float and assigning it to every component. + /// uint to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x3(uint v) { return new float2x3(v); } /// Implicitly converts a uint2x3 matrix to a float2x3 matrix by componentwise conversion. + /// uint2x3 to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x3(uint2x3 v) { return new float2x3(v); } /// Explicitly converts a single double value to a float2x3 matrix by converting it to float and assigning it to every component. + /// double to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2x3(double v) { return new float2x3(v); } /// Explicitly converts a double2x3 matrix to a float2x3 matrix by componentwise conversion. + /// double2x3 to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2x3(double2x3 v) { return new float2x3(v); } /// Returns the result of a componentwise multiplication operation on two float2x3 matrices. + /// Left hand side float2x3 to use to compute componentwise multiplication. + /// Right hand side float2x3 to use to compute componentwise multiplication. + /// float2x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator * (float2x3 lhs, float2x3 rhs) { return new float2x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } /// Returns the result of a componentwise multiplication operation on a float2x3 matrix and a float value. + /// Left hand side float2x3 to use to compute componentwise multiplication. + /// Right hand side float to use to compute componentwise multiplication. + /// float2x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator * (float2x3 lhs, float rhs) { return new float2x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } /// Returns the result of a componentwise multiplication operation on a float value and a float2x3 matrix. + /// Left hand side float to use to compute componentwise multiplication. + /// Right hand side float2x3 to use to compute componentwise multiplication. + /// float2x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator * (float lhs, float2x3 rhs) { return new float2x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } /// Returns the result of a componentwise addition operation on two float2x3 matrices. + /// Left hand side float2x3 to use to compute componentwise addition. + /// Right hand side float2x3 to use to compute componentwise addition. + /// float2x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator + (float2x3 lhs, float2x3 rhs) { return new float2x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } /// Returns the result of a componentwise addition operation on a float2x3 matrix and a float value. + /// Left hand side float2x3 to use to compute componentwise addition. + /// Right hand side float to use to compute componentwise addition. + /// float2x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator + (float2x3 lhs, float rhs) { return new float2x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } /// Returns the result of a componentwise addition operation on a float value and a float2x3 matrix. + /// Left hand side float to use to compute componentwise addition. + /// Right hand side float2x3 to use to compute componentwise addition. + /// float2x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator + (float lhs, float2x3 rhs) { return new float2x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } /// Returns the result of a componentwise subtraction operation on two float2x3 matrices. + /// Left hand side float2x3 to use to compute componentwise subtraction. + /// Right hand side float2x3 to use to compute componentwise subtraction. + /// float2x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator - (float2x3 lhs, float2x3 rhs) { return new float2x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } /// Returns the result of a componentwise subtraction operation on a float2x3 matrix and a float value. + /// Left hand side float2x3 to use to compute componentwise subtraction. + /// Right hand side float to use to compute componentwise subtraction. + /// float2x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator - (float2x3 lhs, float rhs) { return new float2x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } /// Returns the result of a componentwise subtraction operation on a float value and a float2x3 matrix. + /// Left hand side float to use to compute componentwise subtraction. + /// Right hand side float2x3 to use to compute componentwise subtraction. + /// float2x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator - (float lhs, float2x3 rhs) { return new float2x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } /// Returns the result of a componentwise division operation on two float2x3 matrices. + /// Left hand side float2x3 to use to compute componentwise division. + /// Right hand side float2x3 to use to compute componentwise division. + /// float2x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator / (float2x3 lhs, float2x3 rhs) { return new float2x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } /// Returns the result of a componentwise division operation on a float2x3 matrix and a float value. + /// Left hand side float2x3 to use to compute componentwise division. + /// Right hand side float to use to compute componentwise division. + /// float2x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator / (float2x3 lhs, float rhs) { return new float2x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } /// Returns the result of a componentwise division operation on a float value and a float2x3 matrix. + /// Left hand side float to use to compute componentwise division. + /// Right hand side float2x3 to use to compute componentwise division. + /// float2x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator / (float lhs, float2x3 rhs) { return new float2x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } /// Returns the result of a componentwise modulus operation on two float2x3 matrices. + /// Left hand side float2x3 to use to compute componentwise modulus. + /// Right hand side float2x3 to use to compute componentwise modulus. + /// float2x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator % (float2x3 lhs, float2x3 rhs) { return new float2x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } /// Returns the result of a componentwise modulus operation on a float2x3 matrix and a float value. + /// Left hand side float2x3 to use to compute componentwise modulus. + /// Right hand side float to use to compute componentwise modulus. + /// float2x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator % (float2x3 lhs, float rhs) { return new float2x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } /// Returns the result of a componentwise modulus operation on a float value and a float2x3 matrix. + /// Left hand side float to use to compute componentwise modulus. + /// Right hand side float2x3 to use to compute componentwise modulus. + /// float2x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator % (float lhs, float2x3 rhs) { return new float2x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } /// Returns the result of a componentwise increment operation on a float2x3 matrix. + /// Value to use when computing the componentwise increment. + /// float2x3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator ++ (float2x3 val) { return new float2x3 (++val.c0, ++val.c1, ++val.c2); } /// Returns the result of a componentwise decrement operation on a float2x3 matrix. + /// Value to use when computing the componentwise decrement. + /// float2x3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator -- (float2x3 val) { return new float2x3 (--val.c0, --val.c1, --val.c2); } /// Returns the result of a componentwise less than operation on two float2x3 matrices. + /// Left hand side float2x3 to use to compute componentwise less than. + /// Right hand side float2x3 to use to compute componentwise less than. + /// bool2x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator < (float2x3 lhs, float2x3 rhs) { return new bool2x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } /// Returns the result of a componentwise less than operation on a float2x3 matrix and a float value. + /// Left hand side float2x3 to use to compute componentwise less than. + /// Right hand side float to use to compute componentwise less than. + /// bool2x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator < (float2x3 lhs, float rhs) { return new bool2x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } /// Returns the result of a componentwise less than operation on a float value and a float2x3 matrix. + /// Left hand side float to use to compute componentwise less than. + /// Right hand side float2x3 to use to compute componentwise less than. + /// bool2x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator < (float lhs, float2x3 rhs) { return new bool2x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } /// Returns the result of a componentwise less or equal operation on two float2x3 matrices. + /// Left hand side float2x3 to use to compute componentwise less or equal. + /// Right hand side float2x3 to use to compute componentwise less or equal. + /// bool2x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator <= (float2x3 lhs, float2x3 rhs) { return new bool2x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } /// Returns the result of a componentwise less or equal operation on a float2x3 matrix and a float value. + /// Left hand side float2x3 to use to compute componentwise less or equal. + /// Right hand side float to use to compute componentwise less or equal. + /// bool2x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator <= (float2x3 lhs, float rhs) { return new bool2x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } /// Returns the result of a componentwise less or equal operation on a float value and a float2x3 matrix. + /// Left hand side float to use to compute componentwise less or equal. + /// Right hand side float2x3 to use to compute componentwise less or equal. + /// bool2x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator <= (float lhs, float2x3 rhs) { return new bool2x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } /// Returns the result of a componentwise greater than operation on two float2x3 matrices. + /// Left hand side float2x3 to use to compute componentwise greater than. + /// Right hand side float2x3 to use to compute componentwise greater than. + /// bool2x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator > (float2x3 lhs, float2x3 rhs) { return new bool2x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } /// Returns the result of a componentwise greater than operation on a float2x3 matrix and a float value. + /// Left hand side float2x3 to use to compute componentwise greater than. + /// Right hand side float to use to compute componentwise greater than. + /// bool2x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator > (float2x3 lhs, float rhs) { return new bool2x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } /// Returns the result of a componentwise greater than operation on a float value and a float2x3 matrix. + /// Left hand side float to use to compute componentwise greater than. + /// Right hand side float2x3 to use to compute componentwise greater than. + /// bool2x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator > (float lhs, float2x3 rhs) { return new bool2x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } /// Returns the result of a componentwise greater or equal operation on two float2x3 matrices. + /// Left hand side float2x3 to use to compute componentwise greater or equal. + /// Right hand side float2x3 to use to compute componentwise greater or equal. + /// bool2x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator >= (float2x3 lhs, float2x3 rhs) { return new bool2x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } /// Returns the result of a componentwise greater or equal operation on a float2x3 matrix and a float value. + /// Left hand side float2x3 to use to compute componentwise greater or equal. + /// Right hand side float to use to compute componentwise greater or equal. + /// bool2x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator >= (float2x3 lhs, float rhs) { return new bool2x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a float value and a float2x3 matrix. + /// Left hand side float to use to compute componentwise greater or equal. + /// Right hand side float2x3 to use to compute componentwise greater or equal. + /// bool2x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator >= (float lhs, float2x3 rhs) { return new bool2x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } /// Returns the result of a componentwise unary minus operation on a float2x3 matrix. + /// Value to use when computing the componentwise unary minus. + /// float2x3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator - (float2x3 val) { return new float2x3 (-val.c0, -val.c1, -val.c2); } /// Returns the result of a componentwise unary plus operation on a float2x3 matrix. + /// Value to use when computing the componentwise unary plus. + /// float2x3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 operator + (float2x3 val) { return new float2x3 (+val.c0, +val.c1, +val.c2); } /// Returns the result of a componentwise equality operation on two float2x3 matrices. + /// Left hand side float2x3 to use to compute componentwise equality. + /// Right hand side float2x3 to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (float2x3 lhs, float2x3 rhs) { return new bool2x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on a float2x3 matrix and a float value. + /// Left hand side float2x3 to use to compute componentwise equality. + /// Right hand side float to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (float2x3 lhs, float rhs) { return new bool2x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on a float value and a float2x3 matrix. + /// Left hand side float to use to compute componentwise equality. + /// Right hand side float2x3 to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (float lhs, float2x3 rhs) { return new bool2x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two float2x3 matrices. + /// Left hand side float2x3 to use to compute componentwise not equal. + /// Right hand side float2x3 to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (float2x3 lhs, float2x3 rhs) { return new bool2x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on a float2x3 matrix and a float value. + /// Left hand side float2x3 to use to compute componentwise not equal. + /// Right hand side float to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (float2x3 lhs, float rhs) { return new bool2x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on a float value and a float2x3 matrix. + /// Left hand side float to use to compute componentwise not equal. + /// Right hand side float2x3 to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (float lhs, float2x3 rhs) { return new bool2x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } @@ -341,19 +488,25 @@ unsafe public ref float2 this[int index] } /// Returns true if the float2x3 is equal to a given float2x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the float2x3 is equal to a given float2x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is float2x3 converted && Equals(converted); } /// Returns a hash code for the float2x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the float2x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -361,6 +514,9 @@ public override string ToString() } /// Returns a string representation of the float2x3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -372,10 +528,21 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a float2x3 matrix constructed from three float2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// float2x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 float2x3(float2 c0, float2 c1, float2 c2) { return new float2x3(c0, c1, c2); } /// Returns a float2x3 matrix constructed from from 6 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// float2x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 float2x3(float m00, float m01, float m02, float m10, float m11, float m12) @@ -385,42 +552,62 @@ public static float2x3 float2x3(float m00, float m01, float m02, } /// Returns a float2x3 matrix constructed from a single float value by assigning it to every component. + /// float to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 float2x3(float v) { return new float2x3(v); } /// Returns a float2x3 matrix constructed from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 float2x3(bool v) { return new float2x3(v); } /// Return a float2x3 matrix constructed from a bool2x3 matrix by componentwise conversion. + /// bool2x3 to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 float2x3(bool2x3 v) { return new float2x3(v); } /// Returns a float2x3 matrix constructed from a single int value by converting it to float and assigning it to every component. + /// int to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 float2x3(int v) { return new float2x3(v); } /// Return a float2x3 matrix constructed from a int2x3 matrix by componentwise conversion. + /// int2x3 to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 float2x3(int2x3 v) { return new float2x3(v); } /// Returns a float2x3 matrix constructed from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 float2x3(uint v) { return new float2x3(v); } /// Return a float2x3 matrix constructed from a uint2x3 matrix by componentwise conversion. + /// uint2x3 to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 float2x3(uint2x3 v) { return new float2x3(v); } /// Returns a float2x3 matrix constructed from a single double value by converting it to float and assigning it to every component. + /// double to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 float2x3(double v) { return new float2x3(v); } /// Return a float2x3 matrix constructed from a double2x3 matrix by componentwise conversion. + /// double2x3 to convert to float2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 float2x3(double2x3 v) { return new float2x3(v); } /// Return the float3x2 transpose of a float2x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 transpose(float2x3 v) { @@ -430,7 +617,9 @@ public static float3x2 transpose(float2x3 v) v.c2.x, v.c2.y); } - /// Returns a uint hash code of a float2x3 vector. + /// Returns a uint hash code of a float2x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(float2x3 v) { @@ -440,10 +629,12 @@ public static uint hash(float2x3 v) } /// - /// Returns a uint2 vector hash code of a float2x3 vector. + /// Returns a uint2 vector hash code of a float2x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(float2x3 v) { diff --git a/src/Unity.Mathematics/float2x4.gen.cs b/src/Unity.Mathematics/float2x4.gen.cs index 4a113146..c9ba8bbf 100644 --- a/src/Unity.Mathematics/float2x4.gen.cs +++ b/src/Unity.Mathematics/float2x4.gen.cs @@ -14,19 +14,28 @@ namespace Unity.Mathematics { + /// A 2x4 matrix of floats. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct float2x4 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public float2 c0; + /// Column 1 of the matrix. public float2 c1; + /// Column 2 of the matrix. public float2 c2; + /// Column 3 of the matrix. public float2 c3; /// float2x4 zero value. public static readonly float2x4 zero; /// Constructs a float2x4 matrix from four float2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x4(float2 c0, float2 c1, float2 c2, float2 c3) { @@ -37,6 +46,14 @@ public float2x4(float2 c0, float2 c1, float2 c2, float2 c3) } /// Constructs a float2x4 matrix from 8 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x4(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13) @@ -48,6 +65,7 @@ public float2x4(float m00, float m01, float m02, float m03, } /// Constructs a float2x4 matrix from a single float value by assigning it to every component. + /// float to convert to float2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x4(float v) { @@ -58,6 +76,7 @@ public float2x4(float v) } /// Constructs a float2x4 matrix from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x4(bool v) { @@ -68,6 +87,7 @@ public float2x4(bool v) } /// Constructs a float2x4 matrix from a bool2x4 matrix by componentwise conversion. + /// bool2x4 to convert to float2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x4(bool2x4 v) { @@ -78,6 +98,7 @@ public float2x4(bool2x4 v) } /// Constructs a float2x4 matrix from a single int value by converting it to float and assigning it to every component. + /// int to convert to float2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x4(int v) { @@ -88,6 +109,7 @@ public float2x4(int v) } /// Constructs a float2x4 matrix from a int2x4 matrix by componentwise conversion. + /// int2x4 to convert to float2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x4(int2x4 v) { @@ -98,6 +120,7 @@ public float2x4(int2x4 v) } /// Constructs a float2x4 matrix from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x4(uint v) { @@ -108,6 +131,7 @@ public float2x4(uint v) } /// Constructs a float2x4 matrix from a uint2x4 matrix by componentwise conversion. + /// uint2x4 to convert to float2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x4(uint2x4 v) { @@ -118,6 +142,7 @@ public float2x4(uint2x4 v) } /// Constructs a float2x4 matrix from a single double value by converting it to float and assigning it to every component. + /// double to convert to float2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x4(double v) { @@ -128,6 +153,7 @@ public float2x4(double v) } /// Constructs a float2x4 matrix from a double2x4 matrix by componentwise conversion. + /// double2x4 to convert to float2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2x4(double2x4 v) { @@ -139,201 +165,326 @@ public float2x4(double2x4 v) /// Implicitly converts a single float value to a float2x4 matrix by assigning it to every component. + /// float to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x4(float v) { return new float2x4(v); } /// Explicitly converts a single bool value to a float2x4 matrix by converting it to float and assigning it to every component. + /// bool to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2x4(bool v) { return new float2x4(v); } /// Explicitly converts a bool2x4 matrix to a float2x4 matrix by componentwise conversion. + /// bool2x4 to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2x4(bool2x4 v) { return new float2x4(v); } /// Implicitly converts a single int value to a float2x4 matrix by converting it to float and assigning it to every component. + /// int to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x4(int v) { return new float2x4(v); } /// Implicitly converts a int2x4 matrix to a float2x4 matrix by componentwise conversion. + /// int2x4 to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x4(int2x4 v) { return new float2x4(v); } /// Implicitly converts a single uint value to a float2x4 matrix by converting it to float and assigning it to every component. + /// uint to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x4(uint v) { return new float2x4(v); } /// Implicitly converts a uint2x4 matrix to a float2x4 matrix by componentwise conversion. + /// uint2x4 to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float2x4(uint2x4 v) { return new float2x4(v); } /// Explicitly converts a single double value to a float2x4 matrix by converting it to float and assigning it to every component. + /// double to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2x4(double v) { return new float2x4(v); } /// Explicitly converts a double2x4 matrix to a float2x4 matrix by componentwise conversion. + /// double2x4 to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float2x4(double2x4 v) { return new float2x4(v); } /// Returns the result of a componentwise multiplication operation on two float2x4 matrices. + /// Left hand side float2x4 to use to compute componentwise multiplication. + /// Right hand side float2x4 to use to compute componentwise multiplication. + /// float2x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator * (float2x4 lhs, float2x4 rhs) { return new float2x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } /// Returns the result of a componentwise multiplication operation on a float2x4 matrix and a float value. + /// Left hand side float2x4 to use to compute componentwise multiplication. + /// Right hand side float to use to compute componentwise multiplication. + /// float2x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator * (float2x4 lhs, float rhs) { return new float2x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } /// Returns the result of a componentwise multiplication operation on a float value and a float2x4 matrix. + /// Left hand side float to use to compute componentwise multiplication. + /// Right hand side float2x4 to use to compute componentwise multiplication. + /// float2x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator * (float lhs, float2x4 rhs) { return new float2x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } /// Returns the result of a componentwise addition operation on two float2x4 matrices. + /// Left hand side float2x4 to use to compute componentwise addition. + /// Right hand side float2x4 to use to compute componentwise addition. + /// float2x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator + (float2x4 lhs, float2x4 rhs) { return new float2x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } /// Returns the result of a componentwise addition operation on a float2x4 matrix and a float value. + /// Left hand side float2x4 to use to compute componentwise addition. + /// Right hand side float to use to compute componentwise addition. + /// float2x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator + (float2x4 lhs, float rhs) { return new float2x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } /// Returns the result of a componentwise addition operation on a float value and a float2x4 matrix. + /// Left hand side float to use to compute componentwise addition. + /// Right hand side float2x4 to use to compute componentwise addition. + /// float2x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator + (float lhs, float2x4 rhs) { return new float2x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } /// Returns the result of a componentwise subtraction operation on two float2x4 matrices. + /// Left hand side float2x4 to use to compute componentwise subtraction. + /// Right hand side float2x4 to use to compute componentwise subtraction. + /// float2x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator - (float2x4 lhs, float2x4 rhs) { return new float2x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } /// Returns the result of a componentwise subtraction operation on a float2x4 matrix and a float value. + /// Left hand side float2x4 to use to compute componentwise subtraction. + /// Right hand side float to use to compute componentwise subtraction. + /// float2x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator - (float2x4 lhs, float rhs) { return new float2x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } /// Returns the result of a componentwise subtraction operation on a float value and a float2x4 matrix. + /// Left hand side float to use to compute componentwise subtraction. + /// Right hand side float2x4 to use to compute componentwise subtraction. + /// float2x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator - (float lhs, float2x4 rhs) { return new float2x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } /// Returns the result of a componentwise division operation on two float2x4 matrices. + /// Left hand side float2x4 to use to compute componentwise division. + /// Right hand side float2x4 to use to compute componentwise division. + /// float2x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator / (float2x4 lhs, float2x4 rhs) { return new float2x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } /// Returns the result of a componentwise division operation on a float2x4 matrix and a float value. + /// Left hand side float2x4 to use to compute componentwise division. + /// Right hand side float to use to compute componentwise division. + /// float2x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator / (float2x4 lhs, float rhs) { return new float2x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } /// Returns the result of a componentwise division operation on a float value and a float2x4 matrix. + /// Left hand side float to use to compute componentwise division. + /// Right hand side float2x4 to use to compute componentwise division. + /// float2x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator / (float lhs, float2x4 rhs) { return new float2x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } /// Returns the result of a componentwise modulus operation on two float2x4 matrices. + /// Left hand side float2x4 to use to compute componentwise modulus. + /// Right hand side float2x4 to use to compute componentwise modulus. + /// float2x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator % (float2x4 lhs, float2x4 rhs) { return new float2x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } /// Returns the result of a componentwise modulus operation on a float2x4 matrix and a float value. + /// Left hand side float2x4 to use to compute componentwise modulus. + /// Right hand side float to use to compute componentwise modulus. + /// float2x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator % (float2x4 lhs, float rhs) { return new float2x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } /// Returns the result of a componentwise modulus operation on a float value and a float2x4 matrix. + /// Left hand side float to use to compute componentwise modulus. + /// Right hand side float2x4 to use to compute componentwise modulus. + /// float2x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator % (float lhs, float2x4 rhs) { return new float2x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } /// Returns the result of a componentwise increment operation on a float2x4 matrix. + /// Value to use when computing the componentwise increment. + /// float2x4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator ++ (float2x4 val) { return new float2x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } /// Returns the result of a componentwise decrement operation on a float2x4 matrix. + /// Value to use when computing the componentwise decrement. + /// float2x4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator -- (float2x4 val) { return new float2x4 (--val.c0, --val.c1, --val.c2, --val.c3); } /// Returns the result of a componentwise less than operation on two float2x4 matrices. + /// Left hand side float2x4 to use to compute componentwise less than. + /// Right hand side float2x4 to use to compute componentwise less than. + /// bool2x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator < (float2x4 lhs, float2x4 rhs) { return new bool2x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } /// Returns the result of a componentwise less than operation on a float2x4 matrix and a float value. + /// Left hand side float2x4 to use to compute componentwise less than. + /// Right hand side float to use to compute componentwise less than. + /// bool2x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator < (float2x4 lhs, float rhs) { return new bool2x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } /// Returns the result of a componentwise less than operation on a float value and a float2x4 matrix. + /// Left hand side float to use to compute componentwise less than. + /// Right hand side float2x4 to use to compute componentwise less than. + /// bool2x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator < (float lhs, float2x4 rhs) { return new bool2x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } /// Returns the result of a componentwise less or equal operation on two float2x4 matrices. + /// Left hand side float2x4 to use to compute componentwise less or equal. + /// Right hand side float2x4 to use to compute componentwise less or equal. + /// bool2x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator <= (float2x4 lhs, float2x4 rhs) { return new bool2x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } /// Returns the result of a componentwise less or equal operation on a float2x4 matrix and a float value. + /// Left hand side float2x4 to use to compute componentwise less or equal. + /// Right hand side float to use to compute componentwise less or equal. + /// bool2x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator <= (float2x4 lhs, float rhs) { return new bool2x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } /// Returns the result of a componentwise less or equal operation on a float value and a float2x4 matrix. + /// Left hand side float to use to compute componentwise less or equal. + /// Right hand side float2x4 to use to compute componentwise less or equal. + /// bool2x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator <= (float lhs, float2x4 rhs) { return new bool2x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } /// Returns the result of a componentwise greater than operation on two float2x4 matrices. + /// Left hand side float2x4 to use to compute componentwise greater than. + /// Right hand side float2x4 to use to compute componentwise greater than. + /// bool2x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator > (float2x4 lhs, float2x4 rhs) { return new bool2x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } /// Returns the result of a componentwise greater than operation on a float2x4 matrix and a float value. + /// Left hand side float2x4 to use to compute componentwise greater than. + /// Right hand side float to use to compute componentwise greater than. + /// bool2x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator > (float2x4 lhs, float rhs) { return new bool2x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } /// Returns the result of a componentwise greater than operation on a float value and a float2x4 matrix. + /// Left hand side float to use to compute componentwise greater than. + /// Right hand side float2x4 to use to compute componentwise greater than. + /// bool2x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator > (float lhs, float2x4 rhs) { return new bool2x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } /// Returns the result of a componentwise greater or equal operation on two float2x4 matrices. + /// Left hand side float2x4 to use to compute componentwise greater or equal. + /// Right hand side float2x4 to use to compute componentwise greater or equal. + /// bool2x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator >= (float2x4 lhs, float2x4 rhs) { return new bool2x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } /// Returns the result of a componentwise greater or equal operation on a float2x4 matrix and a float value. + /// Left hand side float2x4 to use to compute componentwise greater or equal. + /// Right hand side float to use to compute componentwise greater or equal. + /// bool2x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator >= (float2x4 lhs, float rhs) { return new bool2x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a float value and a float2x4 matrix. + /// Left hand side float to use to compute componentwise greater or equal. + /// Right hand side float2x4 to use to compute componentwise greater or equal. + /// bool2x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator >= (float lhs, float2x4 rhs) { return new bool2x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } /// Returns the result of a componentwise unary minus operation on a float2x4 matrix. + /// Value to use when computing the componentwise unary minus. + /// float2x4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator - (float2x4 val) { return new float2x4 (-val.c0, -val.c1, -val.c2, -val.c3); } /// Returns the result of a componentwise unary plus operation on a float2x4 matrix. + /// Value to use when computing the componentwise unary plus. + /// float2x4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 operator + (float2x4 val) { return new float2x4 (+val.c0, +val.c1, +val.c2, +val.c3); } /// Returns the result of a componentwise equality operation on two float2x4 matrices. + /// Left hand side float2x4 to use to compute componentwise equality. + /// Right hand side float2x4 to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (float2x4 lhs, float2x4 rhs) { return new bool2x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on a float2x4 matrix and a float value. + /// Left hand side float2x4 to use to compute componentwise equality. + /// Right hand side float to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (float2x4 lhs, float rhs) { return new bool2x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on a float value and a float2x4 matrix. + /// Left hand side float to use to compute componentwise equality. + /// Right hand side float2x4 to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (float lhs, float2x4 rhs) { return new bool2x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two float2x4 matrices. + /// Left hand side float2x4 to use to compute componentwise not equal. + /// Right hand side float2x4 to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (float2x4 lhs, float2x4 rhs) { return new bool2x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on a float2x4 matrix and a float value. + /// Left hand side float2x4 to use to compute componentwise not equal. + /// Right hand side float to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (float2x4 lhs, float rhs) { return new bool2x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on a float value and a float2x4 matrix. + /// Left hand side float to use to compute componentwise not equal. + /// Right hand side float2x4 to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (float lhs, float2x4 rhs) { return new bool2x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } @@ -353,19 +504,25 @@ unsafe public ref float2 this[int index] } /// Returns true if the float2x4 is equal to a given float2x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the float2x4 is equal to a given float2x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is float2x4 converted && Equals(converted); } /// Returns a hash code for the float2x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the float2x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -373,6 +530,9 @@ public override string ToString() } /// Returns a string representation of the float2x4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -384,10 +544,24 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a float2x4 matrix constructed from four float2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// float2x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 float2x4(float2 c0, float2 c1, float2 c2, float2 c3) { return new float2x4(c0, c1, c2, c3); } /// Returns a float2x4 matrix constructed from from 8 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// float2x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 float2x4(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13) @@ -397,42 +571,62 @@ public static float2x4 float2x4(float m00, float m01, float m02, float m03, } /// Returns a float2x4 matrix constructed from a single float value by assigning it to every component. + /// float to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 float2x4(float v) { return new float2x4(v); } /// Returns a float2x4 matrix constructed from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 float2x4(bool v) { return new float2x4(v); } /// Return a float2x4 matrix constructed from a bool2x4 matrix by componentwise conversion. + /// bool2x4 to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 float2x4(bool2x4 v) { return new float2x4(v); } /// Returns a float2x4 matrix constructed from a single int value by converting it to float and assigning it to every component. + /// int to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 float2x4(int v) { return new float2x4(v); } /// Return a float2x4 matrix constructed from a int2x4 matrix by componentwise conversion. + /// int2x4 to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 float2x4(int2x4 v) { return new float2x4(v); } /// Returns a float2x4 matrix constructed from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 float2x4(uint v) { return new float2x4(v); } /// Return a float2x4 matrix constructed from a uint2x4 matrix by componentwise conversion. + /// uint2x4 to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 float2x4(uint2x4 v) { return new float2x4(v); } /// Returns a float2x4 matrix constructed from a single double value by converting it to float and assigning it to every component. + /// double to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 float2x4(double v) { return new float2x4(v); } /// Return a float2x4 matrix constructed from a double2x4 matrix by componentwise conversion. + /// double2x4 to convert to float2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 float2x4(double2x4 v) { return new float2x4(v); } /// Return the float4x2 transpose of a float2x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 transpose(float2x4 v) { @@ -443,7 +637,9 @@ public static float4x2 transpose(float2x4 v) v.c3.x, v.c3.y); } - /// Returns a uint hash code of a float2x4 vector. + /// Returns a uint hash code of a float2x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(float2x4 v) { @@ -454,10 +650,12 @@ public static uint hash(float2x4 v) } /// - /// Returns a uint2 vector hash code of a float2x4 vector. + /// Returns a uint2 vector hash code of a float2x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(float2x4 v) { diff --git a/src/Unity.Mathematics/float3.gen.cs b/src/Unity.Mathematics/float3.gen.cs index 0abae229..4a77f41b 100644 --- a/src/Unity.Mathematics/float3.gen.cs +++ b/src/Unity.Mathematics/float3.gen.cs @@ -15,19 +15,26 @@ namespace Unity.Mathematics { + /// A 3 component vector of floats. [DebuggerTypeProxy(typeof(float3.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct float3 : System.IEquatable, IFormattable { + /// x component of the vector. public float x; + /// y component of the vector. public float y; + /// z component of the vector. public float z; /// float3 zero value. public static readonly float3 zero; /// Constructs a float3 vector from three float values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(float x, float y, float z) { @@ -37,6 +44,8 @@ public float3(float x, float y, float z) } /// Constructs a float3 vector from a float value and a float2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(float x, float2 yz) { @@ -46,6 +55,8 @@ public float3(float x, float2 yz) } /// Constructs a float3 vector from a float2 vector and a float value. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(float2 xy, float z) { @@ -55,6 +66,7 @@ public float3(float2 xy, float z) } /// Constructs a float3 vector from a float3 vector. + /// The constructed vector's xyz components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(float3 xyz) { @@ -64,6 +76,7 @@ public float3(float3 xyz) } /// Constructs a float3 vector from a single float value by assigning it to every component. + /// float to convert to float3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(float v) { @@ -73,6 +86,7 @@ public float3(float v) } /// Constructs a float3 vector from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(bool v) { @@ -82,6 +96,7 @@ public float3(bool v) } /// Constructs a float3 vector from a bool3 vector by componentwise conversion. + /// bool3 to convert to float3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(bool3 v) { @@ -91,6 +106,7 @@ public float3(bool3 v) } /// Constructs a float3 vector from a single int value by converting it to float and assigning it to every component. + /// int to convert to float3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(int v) { @@ -100,6 +116,7 @@ public float3(int v) } /// Constructs a float3 vector from a int3 vector by componentwise conversion. + /// int3 to convert to float3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(int3 v) { @@ -109,6 +126,7 @@ public float3(int3 v) } /// Constructs a float3 vector from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(uint v) { @@ -118,6 +136,7 @@ public float3(uint v) } /// Constructs a float3 vector from a uint3 vector by componentwise conversion. + /// uint3 to convert to float3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(uint3 v) { @@ -127,6 +146,7 @@ public float3(uint3 v) } /// Constructs a float3 vector from a single half value by converting it to float and assigning it to every component. + /// half to convert to float3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(half v) { @@ -136,6 +156,7 @@ public float3(half v) } /// Constructs a float3 vector from a half3 vector by componentwise conversion. + /// half3 to convert to float3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(half3 v) { @@ -145,6 +166,7 @@ public float3(half3 v) } /// Constructs a float3 vector from a single double value by converting it to float and assigning it to every component. + /// double to convert to float3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(double v) { @@ -154,6 +176,7 @@ public float3(double v) } /// Constructs a float3 vector from a double3 vector by componentwise conversion. + /// double3 to convert to float3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3(double3 v) { @@ -164,215 +187,345 @@ public float3(double3 v) /// Implicitly converts a single float value to a float3 vector by assigning it to every component. + /// float to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3(float v) { return new float3(v); } /// Explicitly converts a single bool value to a float3 vector by converting it to float and assigning it to every component. + /// bool to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3(bool v) { return new float3(v); } /// Explicitly converts a bool3 vector to a float3 vector by componentwise conversion. + /// bool3 to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3(bool3 v) { return new float3(v); } /// Implicitly converts a single int value to a float3 vector by converting it to float and assigning it to every component. + /// int to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3(int v) { return new float3(v); } /// Implicitly converts a int3 vector to a float3 vector by componentwise conversion. + /// int3 to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3(int3 v) { return new float3(v); } /// Implicitly converts a single uint value to a float3 vector by converting it to float and assigning it to every component. + /// uint to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3(uint v) { return new float3(v); } /// Implicitly converts a uint3 vector to a float3 vector by componentwise conversion. + /// uint3 to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3(uint3 v) { return new float3(v); } /// Implicitly converts a single half value to a float3 vector by converting it to float and assigning it to every component. + /// half to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3(half v) { return new float3(v); } /// Implicitly converts a half3 vector to a float3 vector by componentwise conversion. + /// half3 to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3(half3 v) { return new float3(v); } /// Explicitly converts a single double value to a float3 vector by converting it to float and assigning it to every component. + /// double to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3(double v) { return new float3(v); } /// Explicitly converts a double3 vector to a float3 vector by componentwise conversion. + /// double3 to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3(double3 v) { return new float3(v); } /// Returns the result of a componentwise multiplication operation on two float3 vectors. + /// Left hand side float3 to use to compute componentwise multiplication. + /// Right hand side float3 to use to compute componentwise multiplication. + /// float3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator * (float3 lhs, float3 rhs) { return new float3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } /// Returns the result of a componentwise multiplication operation on a float3 vector and a float value. + /// Left hand side float3 to use to compute componentwise multiplication. + /// Right hand side float to use to compute componentwise multiplication. + /// float3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator * (float3 lhs, float rhs) { return new float3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } /// Returns the result of a componentwise multiplication operation on a float value and a float3 vector. + /// Left hand side float to use to compute componentwise multiplication. + /// Right hand side float3 to use to compute componentwise multiplication. + /// float3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator * (float lhs, float3 rhs) { return new float3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } /// Returns the result of a componentwise addition operation on two float3 vectors. + /// Left hand side float3 to use to compute componentwise addition. + /// Right hand side float3 to use to compute componentwise addition. + /// float3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator + (float3 lhs, float3 rhs) { return new float3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } /// Returns the result of a componentwise addition operation on a float3 vector and a float value. + /// Left hand side float3 to use to compute componentwise addition. + /// Right hand side float to use to compute componentwise addition. + /// float3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator + (float3 lhs, float rhs) { return new float3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } /// Returns the result of a componentwise addition operation on a float value and a float3 vector. + /// Left hand side float to use to compute componentwise addition. + /// Right hand side float3 to use to compute componentwise addition. + /// float3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator + (float lhs, float3 rhs) { return new float3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } /// Returns the result of a componentwise subtraction operation on two float3 vectors. + /// Left hand side float3 to use to compute componentwise subtraction. + /// Right hand side float3 to use to compute componentwise subtraction. + /// float3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator - (float3 lhs, float3 rhs) { return new float3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } /// Returns the result of a componentwise subtraction operation on a float3 vector and a float value. + /// Left hand side float3 to use to compute componentwise subtraction. + /// Right hand side float to use to compute componentwise subtraction. + /// float3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator - (float3 lhs, float rhs) { return new float3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } /// Returns the result of a componentwise subtraction operation on a float value and a float3 vector. + /// Left hand side float to use to compute componentwise subtraction. + /// Right hand side float3 to use to compute componentwise subtraction. + /// float3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator - (float lhs, float3 rhs) { return new float3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } /// Returns the result of a componentwise division operation on two float3 vectors. + /// Left hand side float3 to use to compute componentwise division. + /// Right hand side float3 to use to compute componentwise division. + /// float3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator / (float3 lhs, float3 rhs) { return new float3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } /// Returns the result of a componentwise division operation on a float3 vector and a float value. + /// Left hand side float3 to use to compute componentwise division. + /// Right hand side float to use to compute componentwise division. + /// float3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator / (float3 lhs, float rhs) { return new float3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } /// Returns the result of a componentwise division operation on a float value and a float3 vector. + /// Left hand side float to use to compute componentwise division. + /// Right hand side float3 to use to compute componentwise division. + /// float3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator / (float lhs, float3 rhs) { return new float3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } /// Returns the result of a componentwise modulus operation on two float3 vectors. + /// Left hand side float3 to use to compute componentwise modulus. + /// Right hand side float3 to use to compute componentwise modulus. + /// float3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator % (float3 lhs, float3 rhs) { return new float3 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z); } /// Returns the result of a componentwise modulus operation on a float3 vector and a float value. + /// Left hand side float3 to use to compute componentwise modulus. + /// Right hand side float to use to compute componentwise modulus. + /// float3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator % (float3 lhs, float rhs) { return new float3 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs); } /// Returns the result of a componentwise modulus operation on a float value and a float3 vector. + /// Left hand side float to use to compute componentwise modulus. + /// Right hand side float3 to use to compute componentwise modulus. + /// float3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator % (float lhs, float3 rhs) { return new float3 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z); } /// Returns the result of a componentwise increment operation on a float3 vector. + /// Value to use when computing the componentwise increment. + /// float3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator ++ (float3 val) { return new float3 (++val.x, ++val.y, ++val.z); } /// Returns the result of a componentwise decrement operation on a float3 vector. + /// Value to use when computing the componentwise decrement. + /// float3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator -- (float3 val) { return new float3 (--val.x, --val.y, --val.z); } /// Returns the result of a componentwise less than operation on two float3 vectors. + /// Left hand side float3 to use to compute componentwise less than. + /// Right hand side float3 to use to compute componentwise less than. + /// bool3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (float3 lhs, float3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } /// Returns the result of a componentwise less than operation on a float3 vector and a float value. + /// Left hand side float3 to use to compute componentwise less than. + /// Right hand side float to use to compute componentwise less than. + /// bool3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (float3 lhs, float rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } /// Returns the result of a componentwise less than operation on a float value and a float3 vector. + /// Left hand side float to use to compute componentwise less than. + /// Right hand side float3 to use to compute componentwise less than. + /// bool3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (float lhs, float3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } /// Returns the result of a componentwise less or equal operation on two float3 vectors. + /// Left hand side float3 to use to compute componentwise less or equal. + /// Right hand side float3 to use to compute componentwise less or equal. + /// bool3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (float3 lhs, float3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } /// Returns the result of a componentwise less or equal operation on a float3 vector and a float value. + /// Left hand side float3 to use to compute componentwise less or equal. + /// Right hand side float to use to compute componentwise less or equal. + /// bool3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (float3 lhs, float rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } /// Returns the result of a componentwise less or equal operation on a float value and a float3 vector. + /// Left hand side float to use to compute componentwise less or equal. + /// Right hand side float3 to use to compute componentwise less or equal. + /// bool3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (float lhs, float3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } /// Returns the result of a componentwise greater than operation on two float3 vectors. + /// Left hand side float3 to use to compute componentwise greater than. + /// Right hand side float3 to use to compute componentwise greater than. + /// bool3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (float3 lhs, float3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } /// Returns the result of a componentwise greater than operation on a float3 vector and a float value. + /// Left hand side float3 to use to compute componentwise greater than. + /// Right hand side float to use to compute componentwise greater than. + /// bool3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (float3 lhs, float rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } /// Returns the result of a componentwise greater than operation on a float value and a float3 vector. + /// Left hand side float to use to compute componentwise greater than. + /// Right hand side float3 to use to compute componentwise greater than. + /// bool3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (float lhs, float3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } /// Returns the result of a componentwise greater or equal operation on two float3 vectors. + /// Left hand side float3 to use to compute componentwise greater or equal. + /// Right hand side float3 to use to compute componentwise greater or equal. + /// bool3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (float3 lhs, float3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } /// Returns the result of a componentwise greater or equal operation on a float3 vector and a float value. + /// Left hand side float3 to use to compute componentwise greater or equal. + /// Right hand side float to use to compute componentwise greater or equal. + /// bool3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (float3 lhs, float rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } /// Returns the result of a componentwise greater or equal operation on a float value and a float3 vector. + /// Left hand side float to use to compute componentwise greater or equal. + /// Right hand side float3 to use to compute componentwise greater or equal. + /// bool3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (float lhs, float3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } /// Returns the result of a componentwise unary minus operation on a float3 vector. + /// Value to use when computing the componentwise unary minus. + /// float3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator - (float3 val) { return new float3 (-val.x, -val.y, -val.z); } /// Returns the result of a componentwise unary plus operation on a float3 vector. + /// Value to use when computing the componentwise unary plus. + /// float3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 operator + (float3 val) { return new float3 (+val.x, +val.y, +val.z); } /// Returns the result of a componentwise equality operation on two float3 vectors. + /// Left hand side float3 to use to compute componentwise equality. + /// Right hand side float3 to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (float3 lhs, float3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } /// Returns the result of a componentwise equality operation on a float3 vector and a float value. + /// Left hand side float3 to use to compute componentwise equality. + /// Right hand side float to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (float3 lhs, float rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } /// Returns the result of a componentwise equality operation on a float value and a float3 vector. + /// Left hand side float to use to compute componentwise equality. + /// Right hand side float3 to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (float lhs, float3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } /// Returns the result of a componentwise not equal operation on two float3 vectors. + /// Left hand side float3 to use to compute componentwise not equal. + /// Right hand side float3 to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (float3 lhs, float3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } /// Returns the result of a componentwise not equal operation on a float3 vector and a float value. + /// Left hand side float3 to use to compute componentwise not equal. + /// Right hand side float to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (float3 lhs, float rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } /// Returns the result of a componentwise not equal operation on a float value and a float3 vector. + /// Left hand side float to use to compute componentwise not equal. + /// Right hand side float3 to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (float lhs, float3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxx { @@ -381,6 +534,7 @@ public float4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxy { @@ -389,6 +543,7 @@ public float4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxz { @@ -397,6 +552,7 @@ public float4 xxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyx { @@ -405,6 +561,7 @@ public float4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyy { @@ -413,6 +570,7 @@ public float4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyz { @@ -421,6 +579,7 @@ public float4 xxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxzx { @@ -429,6 +588,7 @@ public float4 xxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxzy { @@ -437,6 +597,7 @@ public float4 xxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxzz { @@ -445,6 +606,7 @@ public float4 xxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxx { @@ -453,6 +615,7 @@ public float4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxy { @@ -461,6 +624,7 @@ public float4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxz { @@ -469,6 +633,7 @@ public float4 xyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyx { @@ -477,6 +642,7 @@ public float4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyy { @@ -485,6 +651,7 @@ public float4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyz { @@ -493,6 +660,7 @@ public float4 xyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyzx { @@ -501,6 +669,7 @@ public float4 xyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyzy { @@ -509,6 +678,7 @@ public float4 xyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyzz { @@ -517,6 +687,7 @@ public float4 xyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzxx { @@ -525,6 +696,7 @@ public float4 xzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzxy { @@ -533,6 +705,7 @@ public float4 xzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzxz { @@ -541,6 +714,7 @@ public float4 xzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzyx { @@ -549,6 +723,7 @@ public float4 xzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzyy { @@ -557,6 +732,7 @@ public float4 xzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzyz { @@ -565,6 +741,7 @@ public float4 xzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzzx { @@ -573,6 +750,7 @@ public float4 xzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzzy { @@ -581,6 +759,7 @@ public float4 xzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzzz { @@ -589,6 +768,7 @@ public float4 xzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxx { @@ -597,6 +777,7 @@ public float4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxy { @@ -605,6 +786,7 @@ public float4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxz { @@ -613,6 +795,7 @@ public float4 yxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyx { @@ -621,6 +804,7 @@ public float4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyy { @@ -629,6 +813,7 @@ public float4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyz { @@ -637,6 +822,7 @@ public float4 yxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxzx { @@ -645,6 +831,7 @@ public float4 yxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxzy { @@ -653,6 +840,7 @@ public float4 yxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxzz { @@ -661,6 +849,7 @@ public float4 yxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxx { @@ -669,6 +858,7 @@ public float4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxy { @@ -677,6 +867,7 @@ public float4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxz { @@ -685,6 +876,7 @@ public float4 yyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyx { @@ -693,6 +885,7 @@ public float4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyy { @@ -701,6 +894,7 @@ public float4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyz { @@ -709,6 +903,7 @@ public float4 yyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyzx { @@ -717,6 +912,7 @@ public float4 yyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyzy { @@ -725,6 +921,7 @@ public float4 yyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyzz { @@ -733,6 +930,7 @@ public float4 yyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzxx { @@ -741,6 +939,7 @@ public float4 yzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzxy { @@ -749,6 +948,7 @@ public float4 yzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzxz { @@ -757,6 +957,7 @@ public float4 yzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzyx { @@ -765,6 +966,7 @@ public float4 yzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzyy { @@ -773,6 +975,7 @@ public float4 yzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzyz { @@ -781,6 +984,7 @@ public float4 yzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzzx { @@ -789,6 +993,7 @@ public float4 yzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzzy { @@ -797,6 +1002,7 @@ public float4 yzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzzz { @@ -805,6 +1011,7 @@ public float4 yzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxxx { @@ -813,6 +1020,7 @@ public float4 zxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxxy { @@ -821,6 +1029,7 @@ public float4 zxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxxz { @@ -829,6 +1038,7 @@ public float4 zxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxyx { @@ -837,6 +1047,7 @@ public float4 zxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxyy { @@ -845,6 +1056,7 @@ public float4 zxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxyz { @@ -853,6 +1065,7 @@ public float4 zxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxzx { @@ -861,6 +1074,7 @@ public float4 zxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxzy { @@ -869,6 +1083,7 @@ public float4 zxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxzz { @@ -877,6 +1092,7 @@ public float4 zxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyxx { @@ -885,6 +1101,7 @@ public float4 zyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyxy { @@ -893,6 +1110,7 @@ public float4 zyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyxz { @@ -901,6 +1119,7 @@ public float4 zyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyyx { @@ -909,6 +1128,7 @@ public float4 zyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyyy { @@ -917,6 +1137,7 @@ public float4 zyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyyz { @@ -925,6 +1146,7 @@ public float4 zyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyzx { @@ -933,6 +1155,7 @@ public float4 zyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyzy { @@ -941,6 +1164,7 @@ public float4 zyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyzz { @@ -949,6 +1173,7 @@ public float4 zyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzxx { @@ -957,6 +1182,7 @@ public float4 zzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzxy { @@ -965,6 +1191,7 @@ public float4 zzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzxz { @@ -973,6 +1200,7 @@ public float4 zzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzyx { @@ -981,6 +1209,7 @@ public float4 zzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzyy { @@ -989,6 +1218,7 @@ public float4 zzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzyz { @@ -997,6 +1227,7 @@ public float4 zzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzzx { @@ -1005,6 +1236,7 @@ public float4 zzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzzy { @@ -1013,6 +1245,7 @@ public float4 zzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzzz { @@ -1021,6 +1254,7 @@ public float4 zzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxx { @@ -1029,6 +1263,7 @@ public float3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxy { @@ -1037,6 +1272,7 @@ public float3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxz { @@ -1045,6 +1281,7 @@ public float3 xxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyx { @@ -1053,6 +1290,7 @@ public float3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyy { @@ -1061,6 +1299,7 @@ public float3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyz { @@ -1071,6 +1310,7 @@ public float3 xyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xzx { @@ -1079,6 +1319,7 @@ public float3 xzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xzy { @@ -1089,6 +1330,7 @@ public float3 xzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xzz { @@ -1097,6 +1339,7 @@ public float3 xzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxx { @@ -1105,6 +1348,7 @@ public float3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxy { @@ -1113,6 +1357,7 @@ public float3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxz { @@ -1123,6 +1368,7 @@ public float3 yxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyx { @@ -1131,6 +1377,7 @@ public float3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyy { @@ -1139,6 +1386,7 @@ public float3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyz { @@ -1147,6 +1395,7 @@ public float3 yyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yzx { @@ -1157,6 +1406,7 @@ public float3 yzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yzy { @@ -1165,6 +1415,7 @@ public float3 yzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yzz { @@ -1173,6 +1424,7 @@ public float3 yzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zxx { @@ -1181,6 +1433,7 @@ public float3 zxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zxy { @@ -1191,6 +1444,7 @@ public float3 zxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zxz { @@ -1199,6 +1453,7 @@ public float3 zxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zyx { @@ -1209,6 +1464,7 @@ public float3 zyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zyy { @@ -1217,6 +1473,7 @@ public float3 zyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zyz { @@ -1225,6 +1482,7 @@ public float3 zyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zzx { @@ -1233,6 +1491,7 @@ public float3 zzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zzy { @@ -1241,6 +1500,7 @@ public float3 zzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zzz { @@ -1249,6 +1509,7 @@ public float3 zzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xx { @@ -1257,6 +1518,7 @@ public float2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xy { @@ -1267,6 +1529,7 @@ public float2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xz { @@ -1277,6 +1540,7 @@ public float2 xz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yx { @@ -1287,6 +1551,7 @@ public float2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yy { @@ -1295,6 +1560,7 @@ public float2 yy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yz { @@ -1305,6 +1571,7 @@ public float2 yz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 zx { @@ -1315,6 +1582,7 @@ public float2 zx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 zy { @@ -1325,6 +1593,7 @@ public float2 zy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 zz { @@ -1356,19 +1625,25 @@ unsafe public float this[int index] } /// Returns true if the float3 is equal to a given float3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } /// Returns true if the float3 is equal to a given float3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is float3 converted && Equals(converted); } /// Returns a hash code for the float3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the float3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -1376,6 +1651,9 @@ public override string ToString() } /// Returns a string representation of the float3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -1400,66 +1678,102 @@ public DebuggerProxy(float3 v) public static partial class math { /// Returns a float3 vector constructed from three float values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// float3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(float x, float y, float z) { return new float3(x, y, z); } /// Returns a float3 vector constructed from a float value and a float2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// float3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(float x, float2 yz) { return new float3(x, yz); } /// Returns a float3 vector constructed from a float2 vector and a float value. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// float3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(float2 xy, float z) { return new float3(xy, z); } /// Returns a float3 vector constructed from a float3 vector. + /// The constructed vector's xyz components will be set to this value. + /// float3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(float3 xyz) { return new float3(xyz); } /// Returns a float3 vector constructed from a single float value by assigning it to every component. + /// float to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(float v) { return new float3(v); } /// Returns a float3 vector constructed from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(bool v) { return new float3(v); } /// Return a float3 vector constructed from a bool3 vector by componentwise conversion. + /// bool3 to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(bool3 v) { return new float3(v); } /// Returns a float3 vector constructed from a single int value by converting it to float and assigning it to every component. + /// int to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(int v) { return new float3(v); } /// Return a float3 vector constructed from a int3 vector by componentwise conversion. + /// int3 to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(int3 v) { return new float3(v); } /// Returns a float3 vector constructed from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(uint v) { return new float3(v); } /// Return a float3 vector constructed from a uint3 vector by componentwise conversion. + /// uint3 to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(uint3 v) { return new float3(v); } /// Returns a float3 vector constructed from a single half value by converting it to float and assigning it to every component. + /// half to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(half v) { return new float3(v); } /// Return a float3 vector constructed from a half3 vector by componentwise conversion. + /// half3 to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(half3 v) { return new float3(v); } /// Returns a float3 vector constructed from a single double value by converting it to float and assigning it to every component. + /// double to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(double v) { return new float3(v); } /// Return a float3 vector constructed from a double3 vector by componentwise conversion. + /// double3 to convert to float3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 float3(double3 v) { return new float3(v); } /// Returns a uint hash code of a float3 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(float3 v) { @@ -1471,6 +1785,8 @@ public static uint hash(float3 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(float3 v) { @@ -1478,40 +1794,62 @@ public static uint3 hashwide(float3 v) } /// Returns the result of specified shuffling of the components from two float3 vectors into a float value. + /// float3 to use as the left argument of the shuffle operation. + /// float3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting float. + /// float result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float shuffle(float3 a, float3 b, ShuffleComponent x) + public static float shuffle(float3 left, float3 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two float3 vectors into a float2 vector. + /// float3 to use as the left argument of the shuffle operation. + /// float3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting float2 x component. + /// The ShuffleComponent to use when setting the resulting float2 y component. + /// float2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 shuffle(float3 a, float3 b, ShuffleComponent x, ShuffleComponent y) + public static float2 shuffle(float3 left, float3 right, ShuffleComponent x, ShuffleComponent y) { return float2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two float3 vectors into a float3 vector. + /// float3 to use as the left argument of the shuffle operation. + /// float3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting float3 x component. + /// The ShuffleComponent to use when setting the resulting float3 y component. + /// The ShuffleComponent to use when setting the resulting float3 z component. + /// float3 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 shuffle(float3 a, float3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + public static float3 shuffle(float3 left, float3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return float3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two float3 vectors into a float4 vector. + /// float3 to use as the left argument of the shuffle operation. + /// float3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting float4 x component. + /// The ShuffleComponent to use when setting the resulting float4 y component. + /// The ShuffleComponent to use when setting the resulting float4 z component. + /// The ShuffleComponent to use when setting the resulting float4 w component. + /// float4 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 shuffle(float3 a, float3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + public static float4 shuffle(float3 left, float3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return float4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/float3x2.gen.cs b/src/Unity.Mathematics/float3x2.gen.cs index ae385ff6..1584886b 100644 --- a/src/Unity.Mathematics/float3x2.gen.cs +++ b/src/Unity.Mathematics/float3x2.gen.cs @@ -14,17 +14,22 @@ namespace Unity.Mathematics { + /// A 3x2 matrix of floats. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct float3x2 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public float3 c0; + /// Column 1 of the matrix. public float3 c1; /// float3x2 zero value. public static readonly float3x2 zero; /// Constructs a float3x2 matrix from two float3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x2(float3 c0, float3 c1) { @@ -33,6 +38,12 @@ public float3x2(float3 c0, float3 c1) } /// Constructs a float3x2 matrix from 6 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x2(float m00, float m01, float m10, float m11, @@ -43,6 +54,7 @@ public float3x2(float m00, float m01, } /// Constructs a float3x2 matrix from a single float value by assigning it to every component. + /// float to convert to float3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x2(float v) { @@ -51,6 +63,7 @@ public float3x2(float v) } /// Constructs a float3x2 matrix from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x2(bool v) { @@ -59,6 +72,7 @@ public float3x2(bool v) } /// Constructs a float3x2 matrix from a bool3x2 matrix by componentwise conversion. + /// bool3x2 to convert to float3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x2(bool3x2 v) { @@ -67,6 +81,7 @@ public float3x2(bool3x2 v) } /// Constructs a float3x2 matrix from a single int value by converting it to float and assigning it to every component. + /// int to convert to float3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x2(int v) { @@ -75,6 +90,7 @@ public float3x2(int v) } /// Constructs a float3x2 matrix from a int3x2 matrix by componentwise conversion. + /// int3x2 to convert to float3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x2(int3x2 v) { @@ -83,6 +99,7 @@ public float3x2(int3x2 v) } /// Constructs a float3x2 matrix from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x2(uint v) { @@ -91,6 +108,7 @@ public float3x2(uint v) } /// Constructs a float3x2 matrix from a uint3x2 matrix by componentwise conversion. + /// uint3x2 to convert to float3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x2(uint3x2 v) { @@ -99,6 +117,7 @@ public float3x2(uint3x2 v) } /// Constructs a float3x2 matrix from a single double value by converting it to float and assigning it to every component. + /// double to convert to float3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x2(double v) { @@ -107,6 +126,7 @@ public float3x2(double v) } /// Constructs a float3x2 matrix from a double3x2 matrix by componentwise conversion. + /// double3x2 to convert to float3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x2(double3x2 v) { @@ -116,201 +136,326 @@ public float3x2(double3x2 v) /// Implicitly converts a single float value to a float3x2 matrix by assigning it to every component. + /// float to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x2(float v) { return new float3x2(v); } /// Explicitly converts a single bool value to a float3x2 matrix by converting it to float and assigning it to every component. + /// bool to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3x2(bool v) { return new float3x2(v); } /// Explicitly converts a bool3x2 matrix to a float3x2 matrix by componentwise conversion. + /// bool3x2 to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3x2(bool3x2 v) { return new float3x2(v); } /// Implicitly converts a single int value to a float3x2 matrix by converting it to float and assigning it to every component. + /// int to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x2(int v) { return new float3x2(v); } /// Implicitly converts a int3x2 matrix to a float3x2 matrix by componentwise conversion. + /// int3x2 to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x2(int3x2 v) { return new float3x2(v); } /// Implicitly converts a single uint value to a float3x2 matrix by converting it to float and assigning it to every component. + /// uint to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x2(uint v) { return new float3x2(v); } /// Implicitly converts a uint3x2 matrix to a float3x2 matrix by componentwise conversion. + /// uint3x2 to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x2(uint3x2 v) { return new float3x2(v); } /// Explicitly converts a single double value to a float3x2 matrix by converting it to float and assigning it to every component. + /// double to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3x2(double v) { return new float3x2(v); } /// Explicitly converts a double3x2 matrix to a float3x2 matrix by componentwise conversion. + /// double3x2 to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3x2(double3x2 v) { return new float3x2(v); } /// Returns the result of a componentwise multiplication operation on two float3x2 matrices. + /// Left hand side float3x2 to use to compute componentwise multiplication. + /// Right hand side float3x2 to use to compute componentwise multiplication. + /// float3x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator * (float3x2 lhs, float3x2 rhs) { return new float3x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } /// Returns the result of a componentwise multiplication operation on a float3x2 matrix and a float value. + /// Left hand side float3x2 to use to compute componentwise multiplication. + /// Right hand side float to use to compute componentwise multiplication. + /// float3x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator * (float3x2 lhs, float rhs) { return new float3x2 (lhs.c0 * rhs, lhs.c1 * rhs); } /// Returns the result of a componentwise multiplication operation on a float value and a float3x2 matrix. + /// Left hand side float to use to compute componentwise multiplication. + /// Right hand side float3x2 to use to compute componentwise multiplication. + /// float3x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator * (float lhs, float3x2 rhs) { return new float3x2 (lhs * rhs.c0, lhs * rhs.c1); } /// Returns the result of a componentwise addition operation on two float3x2 matrices. + /// Left hand side float3x2 to use to compute componentwise addition. + /// Right hand side float3x2 to use to compute componentwise addition. + /// float3x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator + (float3x2 lhs, float3x2 rhs) { return new float3x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } /// Returns the result of a componentwise addition operation on a float3x2 matrix and a float value. + /// Left hand side float3x2 to use to compute componentwise addition. + /// Right hand side float to use to compute componentwise addition. + /// float3x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator + (float3x2 lhs, float rhs) { return new float3x2 (lhs.c0 + rhs, lhs.c1 + rhs); } /// Returns the result of a componentwise addition operation on a float value and a float3x2 matrix. + /// Left hand side float to use to compute componentwise addition. + /// Right hand side float3x2 to use to compute componentwise addition. + /// float3x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator + (float lhs, float3x2 rhs) { return new float3x2 (lhs + rhs.c0, lhs + rhs.c1); } /// Returns the result of a componentwise subtraction operation on two float3x2 matrices. + /// Left hand side float3x2 to use to compute componentwise subtraction. + /// Right hand side float3x2 to use to compute componentwise subtraction. + /// float3x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator - (float3x2 lhs, float3x2 rhs) { return new float3x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } /// Returns the result of a componentwise subtraction operation on a float3x2 matrix and a float value. + /// Left hand side float3x2 to use to compute componentwise subtraction. + /// Right hand side float to use to compute componentwise subtraction. + /// float3x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator - (float3x2 lhs, float rhs) { return new float3x2 (lhs.c0 - rhs, lhs.c1 - rhs); } /// Returns the result of a componentwise subtraction operation on a float value and a float3x2 matrix. + /// Left hand side float to use to compute componentwise subtraction. + /// Right hand side float3x2 to use to compute componentwise subtraction. + /// float3x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator - (float lhs, float3x2 rhs) { return new float3x2 (lhs - rhs.c0, lhs - rhs.c1); } /// Returns the result of a componentwise division operation on two float3x2 matrices. + /// Left hand side float3x2 to use to compute componentwise division. + /// Right hand side float3x2 to use to compute componentwise division. + /// float3x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator / (float3x2 lhs, float3x2 rhs) { return new float3x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } /// Returns the result of a componentwise division operation on a float3x2 matrix and a float value. + /// Left hand side float3x2 to use to compute componentwise division. + /// Right hand side float to use to compute componentwise division. + /// float3x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator / (float3x2 lhs, float rhs) { return new float3x2 (lhs.c0 / rhs, lhs.c1 / rhs); } /// Returns the result of a componentwise division operation on a float value and a float3x2 matrix. + /// Left hand side float to use to compute componentwise division. + /// Right hand side float3x2 to use to compute componentwise division. + /// float3x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator / (float lhs, float3x2 rhs) { return new float3x2 (lhs / rhs.c0, lhs / rhs.c1); } /// Returns the result of a componentwise modulus operation on two float3x2 matrices. + /// Left hand side float3x2 to use to compute componentwise modulus. + /// Right hand side float3x2 to use to compute componentwise modulus. + /// float3x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator % (float3x2 lhs, float3x2 rhs) { return new float3x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } /// Returns the result of a componentwise modulus operation on a float3x2 matrix and a float value. + /// Left hand side float3x2 to use to compute componentwise modulus. + /// Right hand side float to use to compute componentwise modulus. + /// float3x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator % (float3x2 lhs, float rhs) { return new float3x2 (lhs.c0 % rhs, lhs.c1 % rhs); } /// Returns the result of a componentwise modulus operation on a float value and a float3x2 matrix. + /// Left hand side float to use to compute componentwise modulus. + /// Right hand side float3x2 to use to compute componentwise modulus. + /// float3x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator % (float lhs, float3x2 rhs) { return new float3x2 (lhs % rhs.c0, lhs % rhs.c1); } /// Returns the result of a componentwise increment operation on a float3x2 matrix. + /// Value to use when computing the componentwise increment. + /// float3x2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator ++ (float3x2 val) { return new float3x2 (++val.c0, ++val.c1); } /// Returns the result of a componentwise decrement operation on a float3x2 matrix. + /// Value to use when computing the componentwise decrement. + /// float3x2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator -- (float3x2 val) { return new float3x2 (--val.c0, --val.c1); } /// Returns the result of a componentwise less than operation on two float3x2 matrices. + /// Left hand side float3x2 to use to compute componentwise less than. + /// Right hand side float3x2 to use to compute componentwise less than. + /// bool3x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator < (float3x2 lhs, float3x2 rhs) { return new bool3x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } /// Returns the result of a componentwise less than operation on a float3x2 matrix and a float value. + /// Left hand side float3x2 to use to compute componentwise less than. + /// Right hand side float to use to compute componentwise less than. + /// bool3x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator < (float3x2 lhs, float rhs) { return new bool3x2 (lhs.c0 < rhs, lhs.c1 < rhs); } /// Returns the result of a componentwise less than operation on a float value and a float3x2 matrix. + /// Left hand side float to use to compute componentwise less than. + /// Right hand side float3x2 to use to compute componentwise less than. + /// bool3x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator < (float lhs, float3x2 rhs) { return new bool3x2 (lhs < rhs.c0, lhs < rhs.c1); } /// Returns the result of a componentwise less or equal operation on two float3x2 matrices. + /// Left hand side float3x2 to use to compute componentwise less or equal. + /// Right hand side float3x2 to use to compute componentwise less or equal. + /// bool3x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator <= (float3x2 lhs, float3x2 rhs) { return new bool3x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } /// Returns the result of a componentwise less or equal operation on a float3x2 matrix and a float value. + /// Left hand side float3x2 to use to compute componentwise less or equal. + /// Right hand side float to use to compute componentwise less or equal. + /// bool3x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator <= (float3x2 lhs, float rhs) { return new bool3x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } /// Returns the result of a componentwise less or equal operation on a float value and a float3x2 matrix. + /// Left hand side float to use to compute componentwise less or equal. + /// Right hand side float3x2 to use to compute componentwise less or equal. + /// bool3x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator <= (float lhs, float3x2 rhs) { return new bool3x2 (lhs <= rhs.c0, lhs <= rhs.c1); } /// Returns the result of a componentwise greater than operation on two float3x2 matrices. + /// Left hand side float3x2 to use to compute componentwise greater than. + /// Right hand side float3x2 to use to compute componentwise greater than. + /// bool3x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator > (float3x2 lhs, float3x2 rhs) { return new bool3x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } /// Returns the result of a componentwise greater than operation on a float3x2 matrix and a float value. + /// Left hand side float3x2 to use to compute componentwise greater than. + /// Right hand side float to use to compute componentwise greater than. + /// bool3x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator > (float3x2 lhs, float rhs) { return new bool3x2 (lhs.c0 > rhs, lhs.c1 > rhs); } /// Returns the result of a componentwise greater than operation on a float value and a float3x2 matrix. + /// Left hand side float to use to compute componentwise greater than. + /// Right hand side float3x2 to use to compute componentwise greater than. + /// bool3x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator > (float lhs, float3x2 rhs) { return new bool3x2 (lhs > rhs.c0, lhs > rhs.c1); } /// Returns the result of a componentwise greater or equal operation on two float3x2 matrices. + /// Left hand side float3x2 to use to compute componentwise greater or equal. + /// Right hand side float3x2 to use to compute componentwise greater or equal. + /// bool3x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator >= (float3x2 lhs, float3x2 rhs) { return new bool3x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } /// Returns the result of a componentwise greater or equal operation on a float3x2 matrix and a float value. + /// Left hand side float3x2 to use to compute componentwise greater or equal. + /// Right hand side float to use to compute componentwise greater or equal. + /// bool3x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator >= (float3x2 lhs, float rhs) { return new bool3x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a float value and a float3x2 matrix. + /// Left hand side float to use to compute componentwise greater or equal. + /// Right hand side float3x2 to use to compute componentwise greater or equal. + /// bool3x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator >= (float lhs, float3x2 rhs) { return new bool3x2 (lhs >= rhs.c0, lhs >= rhs.c1); } /// Returns the result of a componentwise unary minus operation on a float3x2 matrix. + /// Value to use when computing the componentwise unary minus. + /// float3x2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator - (float3x2 val) { return new float3x2 (-val.c0, -val.c1); } /// Returns the result of a componentwise unary plus operation on a float3x2 matrix. + /// Value to use when computing the componentwise unary plus. + /// float3x2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 operator + (float3x2 val) { return new float3x2 (+val.c0, +val.c1); } /// Returns the result of a componentwise equality operation on two float3x2 matrices. + /// Left hand side float3x2 to use to compute componentwise equality. + /// Right hand side float3x2 to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (float3x2 lhs, float3x2 rhs) { return new bool3x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on a float3x2 matrix and a float value. + /// Left hand side float3x2 to use to compute componentwise equality. + /// Right hand side float to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (float3x2 lhs, float rhs) { return new bool3x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on a float value and a float3x2 matrix. + /// Left hand side float to use to compute componentwise equality. + /// Right hand side float3x2 to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (float lhs, float3x2 rhs) { return new bool3x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two float3x2 matrices. + /// Left hand side float3x2 to use to compute componentwise not equal. + /// Right hand side float3x2 to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (float3x2 lhs, float3x2 rhs) { return new bool3x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on a float3x2 matrix and a float value. + /// Left hand side float3x2 to use to compute componentwise not equal. + /// Right hand side float to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (float3x2 lhs, float rhs) { return new bool3x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on a float value and a float3x2 matrix. + /// Left hand side float to use to compute componentwise not equal. + /// Right hand side float3x2 to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (float lhs, float3x2 rhs) { return new bool3x2 (lhs != rhs.c0, lhs != rhs.c1); } @@ -330,19 +475,25 @@ unsafe public ref float3 this[int index] } /// Returns true if the float3x2 is equal to a given float3x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the float3x2 is equal to a given float3x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is float3x2 converted && Equals(converted); } /// Returns a hash code for the float3x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the float3x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -350,6 +501,9 @@ public override string ToString() } /// Returns a string representation of the float3x2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -361,10 +515,20 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a float3x2 matrix constructed from two float3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// float3x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 float3x2(float3 c0, float3 c1) { return new float3x2(c0, c1); } /// Returns a float3x2 matrix constructed from from 6 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// float3x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 float3x2(float m00, float m01, float m10, float m11, @@ -376,42 +540,62 @@ public static float3x2 float3x2(float m00, float m01, } /// Returns a float3x2 matrix constructed from a single float value by assigning it to every component. + /// float to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 float3x2(float v) { return new float3x2(v); } /// Returns a float3x2 matrix constructed from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 float3x2(bool v) { return new float3x2(v); } /// Return a float3x2 matrix constructed from a bool3x2 matrix by componentwise conversion. + /// bool3x2 to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 float3x2(bool3x2 v) { return new float3x2(v); } /// Returns a float3x2 matrix constructed from a single int value by converting it to float and assigning it to every component. + /// int to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 float3x2(int v) { return new float3x2(v); } /// Return a float3x2 matrix constructed from a int3x2 matrix by componentwise conversion. + /// int3x2 to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 float3x2(int3x2 v) { return new float3x2(v); } /// Returns a float3x2 matrix constructed from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 float3x2(uint v) { return new float3x2(v); } /// Return a float3x2 matrix constructed from a uint3x2 matrix by componentwise conversion. + /// uint3x2 to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 float3x2(uint3x2 v) { return new float3x2(v); } /// Returns a float3x2 matrix constructed from a single double value by converting it to float and assigning it to every component. + /// double to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 float3x2(double v) { return new float3x2(v); } /// Return a float3x2 matrix constructed from a double3x2 matrix by componentwise conversion. + /// double3x2 to convert to float3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 float3x2(double3x2 v) { return new float3x2(v); } /// Return the float2x3 transpose of a float3x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 transpose(float3x2 v) { @@ -420,7 +604,9 @@ public static float2x3 transpose(float3x2 v) v.c1.x, v.c1.y, v.c1.z); } - /// Returns a uint hash code of a float3x2 vector. + /// Returns a uint hash code of a float3x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(float3x2 v) { @@ -429,10 +615,12 @@ public static uint hash(float3x2 v) } /// - /// Returns a uint3 vector hash code of a float3x2 vector. + /// Returns a uint3 vector hash code of a float3x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(float3x2 v) { diff --git a/src/Unity.Mathematics/float3x3.gen.cs b/src/Unity.Mathematics/float3x3.gen.cs index 27a08d8b..fe3362b2 100644 --- a/src/Unity.Mathematics/float3x3.gen.cs +++ b/src/Unity.Mathematics/float3x3.gen.cs @@ -14,12 +14,16 @@ namespace Unity.Mathematics { + /// A 3x3 matrix of floats. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct float3x3 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public float3 c0; + /// Column 1 of the matrix. public float3 c1; + /// Column 2 of the matrix. public float3 c2; /// float3x3 identity transform. @@ -29,6 +33,9 @@ public partial struct float3x3 : System.IEquatable, IFormattable public static readonly float3x3 zero; /// Constructs a float3x3 matrix from three float3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x3(float3 c0, float3 c1, float3 c2) { @@ -38,6 +45,15 @@ public float3x3(float3 c0, float3 c1, float3 c2) } /// Constructs a float3x3 matrix from 9 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x3(float m00, float m01, float m02, float m10, float m11, float m12, @@ -49,6 +65,7 @@ public float3x3(float m00, float m01, float m02, } /// Constructs a float3x3 matrix from a single float value by assigning it to every component. + /// float to convert to float3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x3(float v) { @@ -58,6 +75,7 @@ public float3x3(float v) } /// Constructs a float3x3 matrix from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x3(bool v) { @@ -67,6 +85,7 @@ public float3x3(bool v) } /// Constructs a float3x3 matrix from a bool3x3 matrix by componentwise conversion. + /// bool3x3 to convert to float3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x3(bool3x3 v) { @@ -76,6 +95,7 @@ public float3x3(bool3x3 v) } /// Constructs a float3x3 matrix from a single int value by converting it to float and assigning it to every component. + /// int to convert to float3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x3(int v) { @@ -85,6 +105,7 @@ public float3x3(int v) } /// Constructs a float3x3 matrix from a int3x3 matrix by componentwise conversion. + /// int3x3 to convert to float3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x3(int3x3 v) { @@ -94,6 +115,7 @@ public float3x3(int3x3 v) } /// Constructs a float3x3 matrix from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x3(uint v) { @@ -103,6 +125,7 @@ public float3x3(uint v) } /// Constructs a float3x3 matrix from a uint3x3 matrix by componentwise conversion. + /// uint3x3 to convert to float3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x3(uint3x3 v) { @@ -112,6 +135,7 @@ public float3x3(uint3x3 v) } /// Constructs a float3x3 matrix from a single double value by converting it to float and assigning it to every component. + /// double to convert to float3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x3(double v) { @@ -121,6 +145,7 @@ public float3x3(double v) } /// Constructs a float3x3 matrix from a double3x3 matrix by componentwise conversion. + /// double3x3 to convert to float3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x3(double3x3 v) { @@ -131,201 +156,326 @@ public float3x3(double3x3 v) /// Implicitly converts a single float value to a float3x3 matrix by assigning it to every component. + /// float to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x3(float v) { return new float3x3(v); } /// Explicitly converts a single bool value to a float3x3 matrix by converting it to float and assigning it to every component. + /// bool to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3x3(bool v) { return new float3x3(v); } /// Explicitly converts a bool3x3 matrix to a float3x3 matrix by componentwise conversion. + /// bool3x3 to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3x3(bool3x3 v) { return new float3x3(v); } /// Implicitly converts a single int value to a float3x3 matrix by converting it to float and assigning it to every component. + /// int to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x3(int v) { return new float3x3(v); } /// Implicitly converts a int3x3 matrix to a float3x3 matrix by componentwise conversion. + /// int3x3 to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x3(int3x3 v) { return new float3x3(v); } /// Implicitly converts a single uint value to a float3x3 matrix by converting it to float and assigning it to every component. + /// uint to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x3(uint v) { return new float3x3(v); } /// Implicitly converts a uint3x3 matrix to a float3x3 matrix by componentwise conversion. + /// uint3x3 to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x3(uint3x3 v) { return new float3x3(v); } /// Explicitly converts a single double value to a float3x3 matrix by converting it to float and assigning it to every component. + /// double to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3x3(double v) { return new float3x3(v); } /// Explicitly converts a double3x3 matrix to a float3x3 matrix by componentwise conversion. + /// double3x3 to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3x3(double3x3 v) { return new float3x3(v); } /// Returns the result of a componentwise multiplication operation on two float3x3 matrices. + /// Left hand side float3x3 to use to compute componentwise multiplication. + /// Right hand side float3x3 to use to compute componentwise multiplication. + /// float3x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator * (float3x3 lhs, float3x3 rhs) { return new float3x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } /// Returns the result of a componentwise multiplication operation on a float3x3 matrix and a float value. + /// Left hand side float3x3 to use to compute componentwise multiplication. + /// Right hand side float to use to compute componentwise multiplication. + /// float3x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator * (float3x3 lhs, float rhs) { return new float3x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } /// Returns the result of a componentwise multiplication operation on a float value and a float3x3 matrix. + /// Left hand side float to use to compute componentwise multiplication. + /// Right hand side float3x3 to use to compute componentwise multiplication. + /// float3x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator * (float lhs, float3x3 rhs) { return new float3x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } /// Returns the result of a componentwise addition operation on two float3x3 matrices. + /// Left hand side float3x3 to use to compute componentwise addition. + /// Right hand side float3x3 to use to compute componentwise addition. + /// float3x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator + (float3x3 lhs, float3x3 rhs) { return new float3x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } /// Returns the result of a componentwise addition operation on a float3x3 matrix and a float value. + /// Left hand side float3x3 to use to compute componentwise addition. + /// Right hand side float to use to compute componentwise addition. + /// float3x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator + (float3x3 lhs, float rhs) { return new float3x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } /// Returns the result of a componentwise addition operation on a float value and a float3x3 matrix. + /// Left hand side float to use to compute componentwise addition. + /// Right hand side float3x3 to use to compute componentwise addition. + /// float3x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator + (float lhs, float3x3 rhs) { return new float3x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } /// Returns the result of a componentwise subtraction operation on two float3x3 matrices. + /// Left hand side float3x3 to use to compute componentwise subtraction. + /// Right hand side float3x3 to use to compute componentwise subtraction. + /// float3x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator - (float3x3 lhs, float3x3 rhs) { return new float3x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } /// Returns the result of a componentwise subtraction operation on a float3x3 matrix and a float value. + /// Left hand side float3x3 to use to compute componentwise subtraction. + /// Right hand side float to use to compute componentwise subtraction. + /// float3x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator - (float3x3 lhs, float rhs) { return new float3x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } /// Returns the result of a componentwise subtraction operation on a float value and a float3x3 matrix. + /// Left hand side float to use to compute componentwise subtraction. + /// Right hand side float3x3 to use to compute componentwise subtraction. + /// float3x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator - (float lhs, float3x3 rhs) { return new float3x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } /// Returns the result of a componentwise division operation on two float3x3 matrices. + /// Left hand side float3x3 to use to compute componentwise division. + /// Right hand side float3x3 to use to compute componentwise division. + /// float3x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator / (float3x3 lhs, float3x3 rhs) { return new float3x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } /// Returns the result of a componentwise division operation on a float3x3 matrix and a float value. + /// Left hand side float3x3 to use to compute componentwise division. + /// Right hand side float to use to compute componentwise division. + /// float3x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator / (float3x3 lhs, float rhs) { return new float3x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } /// Returns the result of a componentwise division operation on a float value and a float3x3 matrix. + /// Left hand side float to use to compute componentwise division. + /// Right hand side float3x3 to use to compute componentwise division. + /// float3x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator / (float lhs, float3x3 rhs) { return new float3x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } /// Returns the result of a componentwise modulus operation on two float3x3 matrices. + /// Left hand side float3x3 to use to compute componentwise modulus. + /// Right hand side float3x3 to use to compute componentwise modulus. + /// float3x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator % (float3x3 lhs, float3x3 rhs) { return new float3x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } /// Returns the result of a componentwise modulus operation on a float3x3 matrix and a float value. + /// Left hand side float3x3 to use to compute componentwise modulus. + /// Right hand side float to use to compute componentwise modulus. + /// float3x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator % (float3x3 lhs, float rhs) { return new float3x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } /// Returns the result of a componentwise modulus operation on a float value and a float3x3 matrix. + /// Left hand side float to use to compute componentwise modulus. + /// Right hand side float3x3 to use to compute componentwise modulus. + /// float3x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator % (float lhs, float3x3 rhs) { return new float3x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } /// Returns the result of a componentwise increment operation on a float3x3 matrix. + /// Value to use when computing the componentwise increment. + /// float3x3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator ++ (float3x3 val) { return new float3x3 (++val.c0, ++val.c1, ++val.c2); } /// Returns the result of a componentwise decrement operation on a float3x3 matrix. + /// Value to use when computing the componentwise decrement. + /// float3x3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator -- (float3x3 val) { return new float3x3 (--val.c0, --val.c1, --val.c2); } /// Returns the result of a componentwise less than operation on two float3x3 matrices. + /// Left hand side float3x3 to use to compute componentwise less than. + /// Right hand side float3x3 to use to compute componentwise less than. + /// bool3x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator < (float3x3 lhs, float3x3 rhs) { return new bool3x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } /// Returns the result of a componentwise less than operation on a float3x3 matrix and a float value. + /// Left hand side float3x3 to use to compute componentwise less than. + /// Right hand side float to use to compute componentwise less than. + /// bool3x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator < (float3x3 lhs, float rhs) { return new bool3x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } /// Returns the result of a componentwise less than operation on a float value and a float3x3 matrix. + /// Left hand side float to use to compute componentwise less than. + /// Right hand side float3x3 to use to compute componentwise less than. + /// bool3x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator < (float lhs, float3x3 rhs) { return new bool3x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } /// Returns the result of a componentwise less or equal operation on two float3x3 matrices. + /// Left hand side float3x3 to use to compute componentwise less or equal. + /// Right hand side float3x3 to use to compute componentwise less or equal. + /// bool3x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator <= (float3x3 lhs, float3x3 rhs) { return new bool3x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } /// Returns the result of a componentwise less or equal operation on a float3x3 matrix and a float value. + /// Left hand side float3x3 to use to compute componentwise less or equal. + /// Right hand side float to use to compute componentwise less or equal. + /// bool3x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator <= (float3x3 lhs, float rhs) { return new bool3x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } /// Returns the result of a componentwise less or equal operation on a float value and a float3x3 matrix. + /// Left hand side float to use to compute componentwise less or equal. + /// Right hand side float3x3 to use to compute componentwise less or equal. + /// bool3x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator <= (float lhs, float3x3 rhs) { return new bool3x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } /// Returns the result of a componentwise greater than operation on two float3x3 matrices. + /// Left hand side float3x3 to use to compute componentwise greater than. + /// Right hand side float3x3 to use to compute componentwise greater than. + /// bool3x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator > (float3x3 lhs, float3x3 rhs) { return new bool3x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } /// Returns the result of a componentwise greater than operation on a float3x3 matrix and a float value. + /// Left hand side float3x3 to use to compute componentwise greater than. + /// Right hand side float to use to compute componentwise greater than. + /// bool3x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator > (float3x3 lhs, float rhs) { return new bool3x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } /// Returns the result of a componentwise greater than operation on a float value and a float3x3 matrix. + /// Left hand side float to use to compute componentwise greater than. + /// Right hand side float3x3 to use to compute componentwise greater than. + /// bool3x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator > (float lhs, float3x3 rhs) { return new bool3x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } /// Returns the result of a componentwise greater or equal operation on two float3x3 matrices. + /// Left hand side float3x3 to use to compute componentwise greater or equal. + /// Right hand side float3x3 to use to compute componentwise greater or equal. + /// bool3x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator >= (float3x3 lhs, float3x3 rhs) { return new bool3x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } /// Returns the result of a componentwise greater or equal operation on a float3x3 matrix and a float value. + /// Left hand side float3x3 to use to compute componentwise greater or equal. + /// Right hand side float to use to compute componentwise greater or equal. + /// bool3x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator >= (float3x3 lhs, float rhs) { return new bool3x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a float value and a float3x3 matrix. + /// Left hand side float to use to compute componentwise greater or equal. + /// Right hand side float3x3 to use to compute componentwise greater or equal. + /// bool3x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator >= (float lhs, float3x3 rhs) { return new bool3x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } /// Returns the result of a componentwise unary minus operation on a float3x3 matrix. + /// Value to use when computing the componentwise unary minus. + /// float3x3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator - (float3x3 val) { return new float3x3 (-val.c0, -val.c1, -val.c2); } /// Returns the result of a componentwise unary plus operation on a float3x3 matrix. + /// Value to use when computing the componentwise unary plus. + /// float3x3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 operator + (float3x3 val) { return new float3x3 (+val.c0, +val.c1, +val.c2); } /// Returns the result of a componentwise equality operation on two float3x3 matrices. + /// Left hand side float3x3 to use to compute componentwise equality. + /// Right hand side float3x3 to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (float3x3 lhs, float3x3 rhs) { return new bool3x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on a float3x3 matrix and a float value. + /// Left hand side float3x3 to use to compute componentwise equality. + /// Right hand side float to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (float3x3 lhs, float rhs) { return new bool3x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on a float value and a float3x3 matrix. + /// Left hand side float to use to compute componentwise equality. + /// Right hand side float3x3 to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (float lhs, float3x3 rhs) { return new bool3x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two float3x3 matrices. + /// Left hand side float3x3 to use to compute componentwise not equal. + /// Right hand side float3x3 to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (float3x3 lhs, float3x3 rhs) { return new bool3x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on a float3x3 matrix and a float value. + /// Left hand side float3x3 to use to compute componentwise not equal. + /// Right hand side float to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (float3x3 lhs, float rhs) { return new bool3x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on a float value and a float3x3 matrix. + /// Left hand side float to use to compute componentwise not equal. + /// Right hand side float3x3 to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (float lhs, float3x3 rhs) { return new bool3x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } @@ -345,19 +495,25 @@ unsafe public ref float3 this[int index] } /// Returns true if the float3x3 is equal to a given float3x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the float3x3 is equal to a given float3x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is float3x3 converted && Equals(converted); } /// Returns a hash code for the float3x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the float3x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -365,6 +521,9 @@ public override string ToString() } /// Returns a string representation of the float3x3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -376,10 +535,24 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a float3x3 matrix constructed from three float3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// float3x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 float3x3(float3 c0, float3 c1, float3 c2) { return new float3x3(c0, c1, c2); } /// Returns a float3x3 matrix constructed from from 9 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// float3x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 float3x3(float m00, float m01, float m02, float m10, float m11, float m12, @@ -391,42 +564,62 @@ public static float3x3 float3x3(float m00, float m01, float m02, } /// Returns a float3x3 matrix constructed from a single float value by assigning it to every component. + /// float to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 float3x3(float v) { return new float3x3(v); } /// Returns a float3x3 matrix constructed from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 float3x3(bool v) { return new float3x3(v); } /// Return a float3x3 matrix constructed from a bool3x3 matrix by componentwise conversion. + /// bool3x3 to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 float3x3(bool3x3 v) { return new float3x3(v); } /// Returns a float3x3 matrix constructed from a single int value by converting it to float and assigning it to every component. + /// int to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 float3x3(int v) { return new float3x3(v); } /// Return a float3x3 matrix constructed from a int3x3 matrix by componentwise conversion. + /// int3x3 to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 float3x3(int3x3 v) { return new float3x3(v); } /// Returns a float3x3 matrix constructed from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 float3x3(uint v) { return new float3x3(v); } /// Return a float3x3 matrix constructed from a uint3x3 matrix by componentwise conversion. + /// uint3x3 to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 float3x3(uint3x3 v) { return new float3x3(v); } /// Returns a float3x3 matrix constructed from a single double value by converting it to float and assigning it to every component. + /// double to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 float3x3(double v) { return new float3x3(v); } /// Return a float3x3 matrix constructed from a double3x3 matrix by componentwise conversion. + /// double3x3 to convert to float3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 float3x3(double3x3 v) { return new float3x3(v); } /// Return the float3x3 transpose of a float3x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 transpose(float3x3 v) { @@ -437,6 +630,8 @@ public static float3x3 transpose(float3x3 v) } /// Returns the float3x3 full inverse of a float3x3 matrix. + /// Matrix to invert. + /// The inverted matrix. public static float3x3 inverse(float3x3 m) { float3 c0 = m.c0; @@ -456,6 +651,8 @@ public static float3x3 inverse(float3x3 m) } /// Returns the determinant of a float3x3 matrix. + /// Matrix to use when computing determinant. + /// The determinant of the matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float determinant(float3x3 m) { @@ -470,7 +667,9 @@ public static float determinant(float3x3 m) return c0.x * m00 - c1.x * m01 + c2.x * m02; } - /// Returns a uint hash code of a float3x3 vector. + /// Returns a uint hash code of a float3x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(float3x3 v) { @@ -480,10 +679,12 @@ public static uint hash(float3x3 v) } /// - /// Returns a uint3 vector hash code of a float3x3 vector. + /// Returns a uint3 vector hash code of a float3x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(float3x3 v) { diff --git a/src/Unity.Mathematics/float3x4.gen.cs b/src/Unity.Mathematics/float3x4.gen.cs index 394f11ef..704d39dc 100644 --- a/src/Unity.Mathematics/float3x4.gen.cs +++ b/src/Unity.Mathematics/float3x4.gen.cs @@ -14,19 +14,28 @@ namespace Unity.Mathematics { + /// A 3x4 matrix of floats. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct float3x4 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public float3 c0; + /// Column 1 of the matrix. public float3 c1; + /// Column 2 of the matrix. public float3 c2; + /// Column 3 of the matrix. public float3 c3; /// float3x4 zero value. public static readonly float3x4 zero; /// Constructs a float3x4 matrix from four float3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x4(float3 c0, float3 c1, float3 c2, float3 c3) { @@ -37,6 +46,18 @@ public float3x4(float3 c0, float3 c1, float3 c2, float3 c3) } /// Constructs a float3x4 matrix from 12 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x4(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, @@ -49,6 +70,7 @@ public float3x4(float m00, float m01, float m02, float m03, } /// Constructs a float3x4 matrix from a single float value by assigning it to every component. + /// float to convert to float3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x4(float v) { @@ -59,6 +81,7 @@ public float3x4(float v) } /// Constructs a float3x4 matrix from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x4(bool v) { @@ -69,6 +92,7 @@ public float3x4(bool v) } /// Constructs a float3x4 matrix from a bool3x4 matrix by componentwise conversion. + /// bool3x4 to convert to float3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x4(bool3x4 v) { @@ -79,6 +103,7 @@ public float3x4(bool3x4 v) } /// Constructs a float3x4 matrix from a single int value by converting it to float and assigning it to every component. + /// int to convert to float3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x4(int v) { @@ -89,6 +114,7 @@ public float3x4(int v) } /// Constructs a float3x4 matrix from a int3x4 matrix by componentwise conversion. + /// int3x4 to convert to float3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x4(int3x4 v) { @@ -99,6 +125,7 @@ public float3x4(int3x4 v) } /// Constructs a float3x4 matrix from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x4(uint v) { @@ -109,6 +136,7 @@ public float3x4(uint v) } /// Constructs a float3x4 matrix from a uint3x4 matrix by componentwise conversion. + /// uint3x4 to convert to float3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x4(uint3x4 v) { @@ -119,6 +147,7 @@ public float3x4(uint3x4 v) } /// Constructs a float3x4 matrix from a single double value by converting it to float and assigning it to every component. + /// double to convert to float3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x4(double v) { @@ -129,6 +158,7 @@ public float3x4(double v) } /// Constructs a float3x4 matrix from a double3x4 matrix by componentwise conversion. + /// double3x4 to convert to float3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3x4(double3x4 v) { @@ -140,201 +170,326 @@ public float3x4(double3x4 v) /// Implicitly converts a single float value to a float3x4 matrix by assigning it to every component. + /// float to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x4(float v) { return new float3x4(v); } /// Explicitly converts a single bool value to a float3x4 matrix by converting it to float and assigning it to every component. + /// bool to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3x4(bool v) { return new float3x4(v); } /// Explicitly converts a bool3x4 matrix to a float3x4 matrix by componentwise conversion. + /// bool3x4 to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3x4(bool3x4 v) { return new float3x4(v); } /// Implicitly converts a single int value to a float3x4 matrix by converting it to float and assigning it to every component. + /// int to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x4(int v) { return new float3x4(v); } /// Implicitly converts a int3x4 matrix to a float3x4 matrix by componentwise conversion. + /// int3x4 to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x4(int3x4 v) { return new float3x4(v); } /// Implicitly converts a single uint value to a float3x4 matrix by converting it to float and assigning it to every component. + /// uint to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x4(uint v) { return new float3x4(v); } /// Implicitly converts a uint3x4 matrix to a float3x4 matrix by componentwise conversion. + /// uint3x4 to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x4(uint3x4 v) { return new float3x4(v); } /// Explicitly converts a single double value to a float3x4 matrix by converting it to float and assigning it to every component. + /// double to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3x4(double v) { return new float3x4(v); } /// Explicitly converts a double3x4 matrix to a float3x4 matrix by componentwise conversion. + /// double3x4 to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float3x4(double3x4 v) { return new float3x4(v); } /// Returns the result of a componentwise multiplication operation on two float3x4 matrices. + /// Left hand side float3x4 to use to compute componentwise multiplication. + /// Right hand side float3x4 to use to compute componentwise multiplication. + /// float3x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator * (float3x4 lhs, float3x4 rhs) { return new float3x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } /// Returns the result of a componentwise multiplication operation on a float3x4 matrix and a float value. + /// Left hand side float3x4 to use to compute componentwise multiplication. + /// Right hand side float to use to compute componentwise multiplication. + /// float3x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator * (float3x4 lhs, float rhs) { return new float3x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } /// Returns the result of a componentwise multiplication operation on a float value and a float3x4 matrix. + /// Left hand side float to use to compute componentwise multiplication. + /// Right hand side float3x4 to use to compute componentwise multiplication. + /// float3x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator * (float lhs, float3x4 rhs) { return new float3x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } /// Returns the result of a componentwise addition operation on two float3x4 matrices. + /// Left hand side float3x4 to use to compute componentwise addition. + /// Right hand side float3x4 to use to compute componentwise addition. + /// float3x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator + (float3x4 lhs, float3x4 rhs) { return new float3x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } /// Returns the result of a componentwise addition operation on a float3x4 matrix and a float value. + /// Left hand side float3x4 to use to compute componentwise addition. + /// Right hand side float to use to compute componentwise addition. + /// float3x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator + (float3x4 lhs, float rhs) { return new float3x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } /// Returns the result of a componentwise addition operation on a float value and a float3x4 matrix. + /// Left hand side float to use to compute componentwise addition. + /// Right hand side float3x4 to use to compute componentwise addition. + /// float3x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator + (float lhs, float3x4 rhs) { return new float3x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } /// Returns the result of a componentwise subtraction operation on two float3x4 matrices. + /// Left hand side float3x4 to use to compute componentwise subtraction. + /// Right hand side float3x4 to use to compute componentwise subtraction. + /// float3x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator - (float3x4 lhs, float3x4 rhs) { return new float3x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } /// Returns the result of a componentwise subtraction operation on a float3x4 matrix and a float value. + /// Left hand side float3x4 to use to compute componentwise subtraction. + /// Right hand side float to use to compute componentwise subtraction. + /// float3x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator - (float3x4 lhs, float rhs) { return new float3x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } /// Returns the result of a componentwise subtraction operation on a float value and a float3x4 matrix. + /// Left hand side float to use to compute componentwise subtraction. + /// Right hand side float3x4 to use to compute componentwise subtraction. + /// float3x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator - (float lhs, float3x4 rhs) { return new float3x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } /// Returns the result of a componentwise division operation on two float3x4 matrices. + /// Left hand side float3x4 to use to compute componentwise division. + /// Right hand side float3x4 to use to compute componentwise division. + /// float3x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator / (float3x4 lhs, float3x4 rhs) { return new float3x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } /// Returns the result of a componentwise division operation on a float3x4 matrix and a float value. + /// Left hand side float3x4 to use to compute componentwise division. + /// Right hand side float to use to compute componentwise division. + /// float3x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator / (float3x4 lhs, float rhs) { return new float3x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } /// Returns the result of a componentwise division operation on a float value and a float3x4 matrix. + /// Left hand side float to use to compute componentwise division. + /// Right hand side float3x4 to use to compute componentwise division. + /// float3x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator / (float lhs, float3x4 rhs) { return new float3x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } /// Returns the result of a componentwise modulus operation on two float3x4 matrices. + /// Left hand side float3x4 to use to compute componentwise modulus. + /// Right hand side float3x4 to use to compute componentwise modulus. + /// float3x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator % (float3x4 lhs, float3x4 rhs) { return new float3x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } /// Returns the result of a componentwise modulus operation on a float3x4 matrix and a float value. + /// Left hand side float3x4 to use to compute componentwise modulus. + /// Right hand side float to use to compute componentwise modulus. + /// float3x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator % (float3x4 lhs, float rhs) { return new float3x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } /// Returns the result of a componentwise modulus operation on a float value and a float3x4 matrix. + /// Left hand side float to use to compute componentwise modulus. + /// Right hand side float3x4 to use to compute componentwise modulus. + /// float3x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator % (float lhs, float3x4 rhs) { return new float3x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } /// Returns the result of a componentwise increment operation on a float3x4 matrix. + /// Value to use when computing the componentwise increment. + /// float3x4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator ++ (float3x4 val) { return new float3x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } /// Returns the result of a componentwise decrement operation on a float3x4 matrix. + /// Value to use when computing the componentwise decrement. + /// float3x4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator -- (float3x4 val) { return new float3x4 (--val.c0, --val.c1, --val.c2, --val.c3); } /// Returns the result of a componentwise less than operation on two float3x4 matrices. + /// Left hand side float3x4 to use to compute componentwise less than. + /// Right hand side float3x4 to use to compute componentwise less than. + /// bool3x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator < (float3x4 lhs, float3x4 rhs) { return new bool3x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } /// Returns the result of a componentwise less than operation on a float3x4 matrix and a float value. + /// Left hand side float3x4 to use to compute componentwise less than. + /// Right hand side float to use to compute componentwise less than. + /// bool3x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator < (float3x4 lhs, float rhs) { return new bool3x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } /// Returns the result of a componentwise less than operation on a float value and a float3x4 matrix. + /// Left hand side float to use to compute componentwise less than. + /// Right hand side float3x4 to use to compute componentwise less than. + /// bool3x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator < (float lhs, float3x4 rhs) { return new bool3x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } /// Returns the result of a componentwise less or equal operation on two float3x4 matrices. + /// Left hand side float3x4 to use to compute componentwise less or equal. + /// Right hand side float3x4 to use to compute componentwise less or equal. + /// bool3x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator <= (float3x4 lhs, float3x4 rhs) { return new bool3x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } /// Returns the result of a componentwise less or equal operation on a float3x4 matrix and a float value. + /// Left hand side float3x4 to use to compute componentwise less or equal. + /// Right hand side float to use to compute componentwise less or equal. + /// bool3x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator <= (float3x4 lhs, float rhs) { return new bool3x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } /// Returns the result of a componentwise less or equal operation on a float value and a float3x4 matrix. + /// Left hand side float to use to compute componentwise less or equal. + /// Right hand side float3x4 to use to compute componentwise less or equal. + /// bool3x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator <= (float lhs, float3x4 rhs) { return new bool3x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } /// Returns the result of a componentwise greater than operation on two float3x4 matrices. + /// Left hand side float3x4 to use to compute componentwise greater than. + /// Right hand side float3x4 to use to compute componentwise greater than. + /// bool3x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator > (float3x4 lhs, float3x4 rhs) { return new bool3x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } /// Returns the result of a componentwise greater than operation on a float3x4 matrix and a float value. + /// Left hand side float3x4 to use to compute componentwise greater than. + /// Right hand side float to use to compute componentwise greater than. + /// bool3x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator > (float3x4 lhs, float rhs) { return new bool3x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } /// Returns the result of a componentwise greater than operation on a float value and a float3x4 matrix. + /// Left hand side float to use to compute componentwise greater than. + /// Right hand side float3x4 to use to compute componentwise greater than. + /// bool3x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator > (float lhs, float3x4 rhs) { return new bool3x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } /// Returns the result of a componentwise greater or equal operation on two float3x4 matrices. + /// Left hand side float3x4 to use to compute componentwise greater or equal. + /// Right hand side float3x4 to use to compute componentwise greater or equal. + /// bool3x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator >= (float3x4 lhs, float3x4 rhs) { return new bool3x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } /// Returns the result of a componentwise greater or equal operation on a float3x4 matrix and a float value. + /// Left hand side float3x4 to use to compute componentwise greater or equal. + /// Right hand side float to use to compute componentwise greater or equal. + /// bool3x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator >= (float3x4 lhs, float rhs) { return new bool3x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a float value and a float3x4 matrix. + /// Left hand side float to use to compute componentwise greater or equal. + /// Right hand side float3x4 to use to compute componentwise greater or equal. + /// bool3x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator >= (float lhs, float3x4 rhs) { return new bool3x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } /// Returns the result of a componentwise unary minus operation on a float3x4 matrix. + /// Value to use when computing the componentwise unary minus. + /// float3x4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator - (float3x4 val) { return new float3x4 (-val.c0, -val.c1, -val.c2, -val.c3); } /// Returns the result of a componentwise unary plus operation on a float3x4 matrix. + /// Value to use when computing the componentwise unary plus. + /// float3x4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 operator + (float3x4 val) { return new float3x4 (+val.c0, +val.c1, +val.c2, +val.c3); } /// Returns the result of a componentwise equality operation on two float3x4 matrices. + /// Left hand side float3x4 to use to compute componentwise equality. + /// Right hand side float3x4 to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (float3x4 lhs, float3x4 rhs) { return new bool3x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on a float3x4 matrix and a float value. + /// Left hand side float3x4 to use to compute componentwise equality. + /// Right hand side float to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (float3x4 lhs, float rhs) { return new bool3x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on a float value and a float3x4 matrix. + /// Left hand side float to use to compute componentwise equality. + /// Right hand side float3x4 to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (float lhs, float3x4 rhs) { return new bool3x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two float3x4 matrices. + /// Left hand side float3x4 to use to compute componentwise not equal. + /// Right hand side float3x4 to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (float3x4 lhs, float3x4 rhs) { return new bool3x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on a float3x4 matrix and a float value. + /// Left hand side float3x4 to use to compute componentwise not equal. + /// Right hand side float to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (float3x4 lhs, float rhs) { return new bool3x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on a float value and a float3x4 matrix. + /// Left hand side float to use to compute componentwise not equal. + /// Right hand side float3x4 to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (float lhs, float3x4 rhs) { return new bool3x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } @@ -354,19 +509,25 @@ unsafe public ref float3 this[int index] } /// Returns true if the float3x4 is equal to a given float3x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the float3x4 is equal to a given float3x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is float3x4 converted && Equals(converted); } /// Returns a hash code for the float3x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the float3x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -374,6 +535,9 @@ public override string ToString() } /// Returns a string representation of the float3x4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -385,10 +549,28 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a float3x4 matrix constructed from four float3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// float3x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 float3x4(float3 c0, float3 c1, float3 c2, float3 c3) { return new float3x4(c0, c1, c2, c3); } /// Returns a float3x4 matrix constructed from from 12 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// float3x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 float3x4(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, @@ -400,42 +582,62 @@ public static float3x4 float3x4(float m00, float m01, float m02, float m03, } /// Returns a float3x4 matrix constructed from a single float value by assigning it to every component. + /// float to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 float3x4(float v) { return new float3x4(v); } /// Returns a float3x4 matrix constructed from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 float3x4(bool v) { return new float3x4(v); } /// Return a float3x4 matrix constructed from a bool3x4 matrix by componentwise conversion. + /// bool3x4 to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 float3x4(bool3x4 v) { return new float3x4(v); } /// Returns a float3x4 matrix constructed from a single int value by converting it to float and assigning it to every component. + /// int to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 float3x4(int v) { return new float3x4(v); } /// Return a float3x4 matrix constructed from a int3x4 matrix by componentwise conversion. + /// int3x4 to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 float3x4(int3x4 v) { return new float3x4(v); } /// Returns a float3x4 matrix constructed from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 float3x4(uint v) { return new float3x4(v); } /// Return a float3x4 matrix constructed from a uint3x4 matrix by componentwise conversion. + /// uint3x4 to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 float3x4(uint3x4 v) { return new float3x4(v); } /// Returns a float3x4 matrix constructed from a single double value by converting it to float and assigning it to every component. + /// double to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 float3x4(double v) { return new float3x4(v); } /// Return a float3x4 matrix constructed from a double3x4 matrix by componentwise conversion. + /// double3x4 to convert to float3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 float3x4(double3x4 v) { return new float3x4(v); } /// Return the float4x3 transpose of a float3x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 transpose(float3x4 v) { @@ -446,7 +648,9 @@ public static float4x3 transpose(float3x4 v) v.c3.x, v.c3.y, v.c3.z); } - // Fast matrix inverse for rigid transforms (Orthonormal basis and translation) + /// Fast matrix inverse for rigid transforms (orthonormal basis and translation) + /// Matrix to invert. + /// The inverted matrix. public static float3x4 fastinverse(float3x4 m) { float3 c0 = m.c0; @@ -463,7 +667,9 @@ public static float3x4 fastinverse(float3x4 m) return float3x4(r0, r1, r2, pos); } - /// Returns a uint hash code of a float3x4 vector. + /// Returns a uint hash code of a float3x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(float3x4 v) { @@ -474,10 +680,12 @@ public static uint hash(float3x4 v) } /// - /// Returns a uint3 vector hash code of a float3x4 vector. + /// Returns a uint3 vector hash code of a float3x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(float3x4 v) { diff --git a/src/Unity.Mathematics/float4.gen.cs b/src/Unity.Mathematics/float4.gen.cs index a5e86de1..3d082cac 100644 --- a/src/Unity.Mathematics/float4.gen.cs +++ b/src/Unity.Mathematics/float4.gen.cs @@ -15,20 +15,29 @@ namespace Unity.Mathematics { + /// A 4 component vector of floats. [DebuggerTypeProxy(typeof(float4.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct float4 : System.IEquatable, IFormattable { + /// x component of the vector. public float x; + /// y component of the vector. public float y; + /// z component of the vector. public float z; + /// w component of the vector. public float w; /// float4 zero value. public static readonly float4 zero; /// Constructs a float4 vector from four float values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float x, float y, float z, float w) { @@ -39,6 +48,9 @@ public float4(float x, float y, float z, float w) } /// Constructs a float4 vector from two float values and a float2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's zw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float x, float y, float2 zw) { @@ -49,6 +61,9 @@ public float4(float x, float y, float2 zw) } /// Constructs a float4 vector from a float value, a float2 vector and a float value. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float x, float2 yz, float w) { @@ -59,6 +74,8 @@ public float4(float x, float2 yz, float w) } /// Constructs a float4 vector from a float value and a float3 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yzw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float x, float3 yzw) { @@ -69,6 +86,9 @@ public float4(float x, float3 yzw) } /// Constructs a float4 vector from a float2 vector and two float values. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float2 xy, float z, float w) { @@ -79,6 +99,8 @@ public float4(float2 xy, float z, float w) } /// Constructs a float4 vector from two float2 vectors. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's zw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float2 xy, float2 zw) { @@ -89,6 +111,8 @@ public float4(float2 xy, float2 zw) } /// Constructs a float4 vector from a float3 vector and a float value. + /// The constructed vector's xyz components will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float3 xyz, float w) { @@ -99,6 +123,7 @@ public float4(float3 xyz, float w) } /// Constructs a float4 vector from a float4 vector. + /// The constructed vector's xyzw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float4 xyzw) { @@ -109,6 +134,7 @@ public float4(float4 xyzw) } /// Constructs a float4 vector from a single float value by assigning it to every component. + /// float to convert to float4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(float v) { @@ -119,6 +145,7 @@ public float4(float v) } /// Constructs a float4 vector from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(bool v) { @@ -129,6 +156,7 @@ public float4(bool v) } /// Constructs a float4 vector from a bool4 vector by componentwise conversion. + /// bool4 to convert to float4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(bool4 v) { @@ -139,6 +167,7 @@ public float4(bool4 v) } /// Constructs a float4 vector from a single int value by converting it to float and assigning it to every component. + /// int to convert to float4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(int v) { @@ -149,6 +178,7 @@ public float4(int v) } /// Constructs a float4 vector from a int4 vector by componentwise conversion. + /// int4 to convert to float4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(int4 v) { @@ -159,6 +189,7 @@ public float4(int4 v) } /// Constructs a float4 vector from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(uint v) { @@ -169,6 +200,7 @@ public float4(uint v) } /// Constructs a float4 vector from a uint4 vector by componentwise conversion. + /// uint4 to convert to float4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(uint4 v) { @@ -179,6 +211,7 @@ public float4(uint4 v) } /// Constructs a float4 vector from a single half value by converting it to float and assigning it to every component. + /// half to convert to float4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(half v) { @@ -189,6 +222,7 @@ public float4(half v) } /// Constructs a float4 vector from a half4 vector by componentwise conversion. + /// half4 to convert to float4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(half4 v) { @@ -199,6 +233,7 @@ public float4(half4 v) } /// Constructs a float4 vector from a single double value by converting it to float and assigning it to every component. + /// double to convert to float4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(double v) { @@ -209,6 +244,7 @@ public float4(double v) } /// Constructs a float4 vector from a double4 vector by componentwise conversion. + /// double4 to convert to float4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4(double4 v) { @@ -220,215 +256,345 @@ public float4(double4 v) /// Implicitly converts a single float value to a float4 vector by assigning it to every component. + /// float to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4(float v) { return new float4(v); } /// Explicitly converts a single bool value to a float4 vector by converting it to float and assigning it to every component. + /// bool to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4(bool v) { return new float4(v); } /// Explicitly converts a bool4 vector to a float4 vector by componentwise conversion. + /// bool4 to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4(bool4 v) { return new float4(v); } /// Implicitly converts a single int value to a float4 vector by converting it to float and assigning it to every component. + /// int to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4(int v) { return new float4(v); } /// Implicitly converts a int4 vector to a float4 vector by componentwise conversion. + /// int4 to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4(int4 v) { return new float4(v); } /// Implicitly converts a single uint value to a float4 vector by converting it to float and assigning it to every component. + /// uint to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4(uint v) { return new float4(v); } /// Implicitly converts a uint4 vector to a float4 vector by componentwise conversion. + /// uint4 to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4(uint4 v) { return new float4(v); } /// Implicitly converts a single half value to a float4 vector by converting it to float and assigning it to every component. + /// half to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4(half v) { return new float4(v); } /// Implicitly converts a half4 vector to a float4 vector by componentwise conversion. + /// half4 to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4(half4 v) { return new float4(v); } /// Explicitly converts a single double value to a float4 vector by converting it to float and assigning it to every component. + /// double to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4(double v) { return new float4(v); } /// Explicitly converts a double4 vector to a float4 vector by componentwise conversion. + /// double4 to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4(double4 v) { return new float4(v); } /// Returns the result of a componentwise multiplication operation on two float4 vectors. + /// Left hand side float4 to use to compute componentwise multiplication. + /// Right hand side float4 to use to compute componentwise multiplication. + /// float4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator * (float4 lhs, float4 rhs) { return new float4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } /// Returns the result of a componentwise multiplication operation on a float4 vector and a float value. + /// Left hand side float4 to use to compute componentwise multiplication. + /// Right hand side float to use to compute componentwise multiplication. + /// float4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator * (float4 lhs, float rhs) { return new float4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } /// Returns the result of a componentwise multiplication operation on a float value and a float4 vector. + /// Left hand side float to use to compute componentwise multiplication. + /// Right hand side float4 to use to compute componentwise multiplication. + /// float4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator * (float lhs, float4 rhs) { return new float4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } /// Returns the result of a componentwise addition operation on two float4 vectors. + /// Left hand side float4 to use to compute componentwise addition. + /// Right hand side float4 to use to compute componentwise addition. + /// float4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator + (float4 lhs, float4 rhs) { return new float4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } /// Returns the result of a componentwise addition operation on a float4 vector and a float value. + /// Left hand side float4 to use to compute componentwise addition. + /// Right hand side float to use to compute componentwise addition. + /// float4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator + (float4 lhs, float rhs) { return new float4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } /// Returns the result of a componentwise addition operation on a float value and a float4 vector. + /// Left hand side float to use to compute componentwise addition. + /// Right hand side float4 to use to compute componentwise addition. + /// float4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator + (float lhs, float4 rhs) { return new float4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } /// Returns the result of a componentwise subtraction operation on two float4 vectors. + /// Left hand side float4 to use to compute componentwise subtraction. + /// Right hand side float4 to use to compute componentwise subtraction. + /// float4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator - (float4 lhs, float4 rhs) { return new float4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } /// Returns the result of a componentwise subtraction operation on a float4 vector and a float value. + /// Left hand side float4 to use to compute componentwise subtraction. + /// Right hand side float to use to compute componentwise subtraction. + /// float4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator - (float4 lhs, float rhs) { return new float4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } /// Returns the result of a componentwise subtraction operation on a float value and a float4 vector. + /// Left hand side float to use to compute componentwise subtraction. + /// Right hand side float4 to use to compute componentwise subtraction. + /// float4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator - (float lhs, float4 rhs) { return new float4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } /// Returns the result of a componentwise division operation on two float4 vectors. + /// Left hand side float4 to use to compute componentwise division. + /// Right hand side float4 to use to compute componentwise division. + /// float4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator / (float4 lhs, float4 rhs) { return new float4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } /// Returns the result of a componentwise division operation on a float4 vector and a float value. + /// Left hand side float4 to use to compute componentwise division. + /// Right hand side float to use to compute componentwise division. + /// float4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator / (float4 lhs, float rhs) { return new float4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } /// Returns the result of a componentwise division operation on a float value and a float4 vector. + /// Left hand side float to use to compute componentwise division. + /// Right hand side float4 to use to compute componentwise division. + /// float4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator / (float lhs, float4 rhs) { return new float4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } /// Returns the result of a componentwise modulus operation on two float4 vectors. + /// Left hand side float4 to use to compute componentwise modulus. + /// Right hand side float4 to use to compute componentwise modulus. + /// float4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator % (float4 lhs, float4 rhs) { return new float4 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z, lhs.w % rhs.w); } /// Returns the result of a componentwise modulus operation on a float4 vector and a float value. + /// Left hand side float4 to use to compute componentwise modulus. + /// Right hand side float to use to compute componentwise modulus. + /// float4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator % (float4 lhs, float rhs) { return new float4 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs, lhs.w % rhs); } /// Returns the result of a componentwise modulus operation on a float value and a float4 vector. + /// Left hand side float to use to compute componentwise modulus. + /// Right hand side float4 to use to compute componentwise modulus. + /// float4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator % (float lhs, float4 rhs) { return new float4 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z, lhs % rhs.w); } /// Returns the result of a componentwise increment operation on a float4 vector. + /// Value to use when computing the componentwise increment. + /// float4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator ++ (float4 val) { return new float4 (++val.x, ++val.y, ++val.z, ++val.w); } /// Returns the result of a componentwise decrement operation on a float4 vector. + /// Value to use when computing the componentwise decrement. + /// float4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator -- (float4 val) { return new float4 (--val.x, --val.y, --val.z, --val.w); } /// Returns the result of a componentwise less than operation on two float4 vectors. + /// Left hand side float4 to use to compute componentwise less than. + /// Right hand side float4 to use to compute componentwise less than. + /// bool4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (float4 lhs, float4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } /// Returns the result of a componentwise less than operation on a float4 vector and a float value. + /// Left hand side float4 to use to compute componentwise less than. + /// Right hand side float to use to compute componentwise less than. + /// bool4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (float4 lhs, float rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } /// Returns the result of a componentwise less than operation on a float value and a float4 vector. + /// Left hand side float to use to compute componentwise less than. + /// Right hand side float4 to use to compute componentwise less than. + /// bool4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (float lhs, float4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } /// Returns the result of a componentwise less or equal operation on two float4 vectors. + /// Left hand side float4 to use to compute componentwise less or equal. + /// Right hand side float4 to use to compute componentwise less or equal. + /// bool4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (float4 lhs, float4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } /// Returns the result of a componentwise less or equal operation on a float4 vector and a float value. + /// Left hand side float4 to use to compute componentwise less or equal. + /// Right hand side float to use to compute componentwise less or equal. + /// bool4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (float4 lhs, float rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } /// Returns the result of a componentwise less or equal operation on a float value and a float4 vector. + /// Left hand side float to use to compute componentwise less or equal. + /// Right hand side float4 to use to compute componentwise less or equal. + /// bool4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (float lhs, float4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } /// Returns the result of a componentwise greater than operation on two float4 vectors. + /// Left hand side float4 to use to compute componentwise greater than. + /// Right hand side float4 to use to compute componentwise greater than. + /// bool4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (float4 lhs, float4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } /// Returns the result of a componentwise greater than operation on a float4 vector and a float value. + /// Left hand side float4 to use to compute componentwise greater than. + /// Right hand side float to use to compute componentwise greater than. + /// bool4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (float4 lhs, float rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } /// Returns the result of a componentwise greater than operation on a float value and a float4 vector. + /// Left hand side float to use to compute componentwise greater than. + /// Right hand side float4 to use to compute componentwise greater than. + /// bool4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (float lhs, float4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } /// Returns the result of a componentwise greater or equal operation on two float4 vectors. + /// Left hand side float4 to use to compute componentwise greater or equal. + /// Right hand side float4 to use to compute componentwise greater or equal. + /// bool4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (float4 lhs, float4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } /// Returns the result of a componentwise greater or equal operation on a float4 vector and a float value. + /// Left hand side float4 to use to compute componentwise greater or equal. + /// Right hand side float to use to compute componentwise greater or equal. + /// bool4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (float4 lhs, float rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } /// Returns the result of a componentwise greater or equal operation on a float value and a float4 vector. + /// Left hand side float to use to compute componentwise greater or equal. + /// Right hand side float4 to use to compute componentwise greater or equal. + /// bool4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (float lhs, float4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } /// Returns the result of a componentwise unary minus operation on a float4 vector. + /// Value to use when computing the componentwise unary minus. + /// float4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator - (float4 val) { return new float4 (-val.x, -val.y, -val.z, -val.w); } /// Returns the result of a componentwise unary plus operation on a float4 vector. + /// Value to use when computing the componentwise unary plus. + /// float4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 operator + (float4 val) { return new float4 (+val.x, +val.y, +val.z, +val.w); } /// Returns the result of a componentwise equality operation on two float4 vectors. + /// Left hand side float4 to use to compute componentwise equality. + /// Right hand side float4 to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (float4 lhs, float4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } /// Returns the result of a componentwise equality operation on a float4 vector and a float value. + /// Left hand side float4 to use to compute componentwise equality. + /// Right hand side float to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (float4 lhs, float rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } /// Returns the result of a componentwise equality operation on a float value and a float4 vector. + /// Left hand side float to use to compute componentwise equality. + /// Right hand side float4 to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (float lhs, float4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } /// Returns the result of a componentwise not equal operation on two float4 vectors. + /// Left hand side float4 to use to compute componentwise not equal. + /// Right hand side float4 to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (float4 lhs, float4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } /// Returns the result of a componentwise not equal operation on a float4 vector and a float value. + /// Left hand side float4 to use to compute componentwise not equal. + /// Right hand side float to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (float4 lhs, float rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } /// Returns the result of a componentwise not equal operation on a float value and a float4 vector. + /// Left hand side float to use to compute componentwise not equal. + /// Right hand side float4 to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (float lhs, float4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxx { @@ -437,6 +603,7 @@ public float4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxy { @@ -445,6 +612,7 @@ public float4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxz { @@ -453,6 +621,7 @@ public float4 xxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxxw { @@ -461,6 +630,7 @@ public float4 xxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyx { @@ -469,6 +639,7 @@ public float4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyy { @@ -477,6 +648,7 @@ public float4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyz { @@ -485,6 +657,7 @@ public float4 xxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxyw { @@ -493,6 +666,7 @@ public float4 xxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxzx { @@ -501,6 +675,7 @@ public float4 xxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxzy { @@ -509,6 +684,7 @@ public float4 xxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxzz { @@ -517,6 +693,7 @@ public float4 xxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxzw { @@ -525,6 +702,7 @@ public float4 xxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxwx { @@ -533,6 +711,7 @@ public float4 xxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxwy { @@ -541,6 +720,7 @@ public float4 xxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxwz { @@ -549,6 +729,7 @@ public float4 xxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xxww { @@ -557,6 +738,7 @@ public float4 xxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxx { @@ -565,6 +747,7 @@ public float4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxy { @@ -573,6 +756,7 @@ public float4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxz { @@ -581,6 +765,7 @@ public float4 xyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyxw { @@ -589,6 +774,7 @@ public float4 xyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyx { @@ -597,6 +783,7 @@ public float4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyy { @@ -605,6 +792,7 @@ public float4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyz { @@ -613,6 +801,7 @@ public float4 xyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyyw { @@ -621,6 +810,7 @@ public float4 xyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyzx { @@ -629,6 +819,7 @@ public float4 xyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyzy { @@ -637,6 +828,7 @@ public float4 xyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyzz { @@ -645,6 +837,7 @@ public float4 xyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyzw { @@ -655,6 +848,7 @@ public float4 xyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xywx { @@ -663,6 +857,7 @@ public float4 xywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xywy { @@ -671,6 +866,7 @@ public float4 xywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xywz { @@ -681,6 +877,7 @@ public float4 xywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xyww { @@ -689,6 +886,7 @@ public float4 xyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzxx { @@ -697,6 +895,7 @@ public float4 xzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzxy { @@ -705,6 +904,7 @@ public float4 xzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzxz { @@ -713,6 +913,7 @@ public float4 xzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzxw { @@ -721,6 +922,7 @@ public float4 xzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzyx { @@ -729,6 +931,7 @@ public float4 xzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzyy { @@ -737,6 +940,7 @@ public float4 xzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzyz { @@ -745,6 +949,7 @@ public float4 xzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzyw { @@ -755,6 +960,7 @@ public float4 xzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzzx { @@ -763,6 +969,7 @@ public float4 xzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzzy { @@ -771,6 +978,7 @@ public float4 xzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzzz { @@ -779,6 +987,7 @@ public float4 xzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzzw { @@ -787,6 +996,7 @@ public float4 xzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzwx { @@ -795,6 +1005,7 @@ public float4 xzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzwy { @@ -805,6 +1016,7 @@ public float4 xzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzwz { @@ -813,6 +1025,7 @@ public float4 xzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xzww { @@ -821,6 +1034,7 @@ public float4 xzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwxx { @@ -829,6 +1043,7 @@ public float4 xwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwxy { @@ -837,6 +1052,7 @@ public float4 xwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwxz { @@ -845,6 +1061,7 @@ public float4 xwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwxw { @@ -853,6 +1070,7 @@ public float4 xwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwyx { @@ -861,6 +1079,7 @@ public float4 xwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwyy { @@ -869,6 +1088,7 @@ public float4 xwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwyz { @@ -879,6 +1099,7 @@ public float4 xwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwyw { @@ -887,6 +1108,7 @@ public float4 xwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwzx { @@ -895,6 +1117,7 @@ public float4 xwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwzy { @@ -905,6 +1128,7 @@ public float4 xwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwzz { @@ -913,6 +1137,7 @@ public float4 xwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwzw { @@ -921,6 +1146,7 @@ public float4 xwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwwx { @@ -929,6 +1155,7 @@ public float4 xwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwwy { @@ -937,6 +1164,7 @@ public float4 xwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwwz { @@ -945,6 +1173,7 @@ public float4 xwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 xwww { @@ -953,6 +1182,7 @@ public float4 xwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxx { @@ -961,6 +1191,7 @@ public float4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxy { @@ -969,6 +1200,7 @@ public float4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxz { @@ -977,6 +1209,7 @@ public float4 yxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxxw { @@ -985,6 +1218,7 @@ public float4 yxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyx { @@ -993,6 +1227,7 @@ public float4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyy { @@ -1001,6 +1236,7 @@ public float4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyz { @@ -1009,6 +1245,7 @@ public float4 yxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxyw { @@ -1017,6 +1254,7 @@ public float4 yxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxzx { @@ -1025,6 +1263,7 @@ public float4 yxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxzy { @@ -1033,6 +1272,7 @@ public float4 yxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxzz { @@ -1041,6 +1281,7 @@ public float4 yxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxzw { @@ -1051,6 +1292,7 @@ public float4 yxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxwx { @@ -1059,6 +1301,7 @@ public float4 yxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxwy { @@ -1067,6 +1310,7 @@ public float4 yxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxwz { @@ -1077,6 +1321,7 @@ public float4 yxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yxww { @@ -1085,6 +1330,7 @@ public float4 yxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxx { @@ -1093,6 +1339,7 @@ public float4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxy { @@ -1101,6 +1348,7 @@ public float4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxz { @@ -1109,6 +1357,7 @@ public float4 yyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyxw { @@ -1117,6 +1366,7 @@ public float4 yyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyx { @@ -1125,6 +1375,7 @@ public float4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyy { @@ -1133,6 +1384,7 @@ public float4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyz { @@ -1141,6 +1393,7 @@ public float4 yyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyyw { @@ -1149,6 +1402,7 @@ public float4 yyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyzx { @@ -1157,6 +1411,7 @@ public float4 yyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyzy { @@ -1165,6 +1420,7 @@ public float4 yyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyzz { @@ -1173,6 +1429,7 @@ public float4 yyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyzw { @@ -1181,6 +1438,7 @@ public float4 yyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yywx { @@ -1189,6 +1447,7 @@ public float4 yywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yywy { @@ -1197,6 +1456,7 @@ public float4 yywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yywz { @@ -1205,6 +1465,7 @@ public float4 yywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yyww { @@ -1213,6 +1474,7 @@ public float4 yyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzxx { @@ -1221,6 +1483,7 @@ public float4 yzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzxy { @@ -1229,6 +1492,7 @@ public float4 yzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzxz { @@ -1237,6 +1501,7 @@ public float4 yzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzxw { @@ -1247,6 +1512,7 @@ public float4 yzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzyx { @@ -1255,6 +1521,7 @@ public float4 yzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzyy { @@ -1263,6 +1530,7 @@ public float4 yzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzyz { @@ -1271,6 +1539,7 @@ public float4 yzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzyw { @@ -1279,6 +1548,7 @@ public float4 yzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzzx { @@ -1287,6 +1557,7 @@ public float4 yzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzzy { @@ -1295,6 +1566,7 @@ public float4 yzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzzz { @@ -1303,6 +1575,7 @@ public float4 yzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzzw { @@ -1311,6 +1584,7 @@ public float4 yzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzwx { @@ -1321,6 +1595,7 @@ public float4 yzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzwy { @@ -1329,6 +1604,7 @@ public float4 yzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzwz { @@ -1337,6 +1613,7 @@ public float4 yzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 yzww { @@ -1345,6 +1622,7 @@ public float4 yzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywxx { @@ -1353,6 +1631,7 @@ public float4 ywxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywxy { @@ -1361,6 +1640,7 @@ public float4 ywxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywxz { @@ -1371,6 +1651,7 @@ public float4 ywxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywxw { @@ -1379,6 +1660,7 @@ public float4 ywxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywyx { @@ -1387,6 +1669,7 @@ public float4 ywyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywyy { @@ -1395,6 +1678,7 @@ public float4 ywyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywyz { @@ -1403,6 +1687,7 @@ public float4 ywyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywyw { @@ -1411,6 +1696,7 @@ public float4 ywyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywzx { @@ -1421,6 +1707,7 @@ public float4 ywzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywzy { @@ -1429,6 +1716,7 @@ public float4 ywzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywzz { @@ -1437,6 +1725,7 @@ public float4 ywzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywzw { @@ -1445,6 +1734,7 @@ public float4 ywzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywwx { @@ -1453,6 +1743,7 @@ public float4 ywwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywwy { @@ -1461,6 +1752,7 @@ public float4 ywwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywwz { @@ -1469,6 +1761,7 @@ public float4 ywwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 ywww { @@ -1477,6 +1770,7 @@ public float4 ywww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxxx { @@ -1485,6 +1779,7 @@ public float4 zxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxxy { @@ -1493,6 +1788,7 @@ public float4 zxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxxz { @@ -1501,6 +1797,7 @@ public float4 zxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxxw { @@ -1509,6 +1806,7 @@ public float4 zxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxyx { @@ -1517,6 +1815,7 @@ public float4 zxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxyy { @@ -1525,6 +1824,7 @@ public float4 zxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxyz { @@ -1533,6 +1833,7 @@ public float4 zxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxyw { @@ -1543,6 +1844,7 @@ public float4 zxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxzx { @@ -1551,6 +1853,7 @@ public float4 zxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxzy { @@ -1559,6 +1862,7 @@ public float4 zxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxzz { @@ -1567,6 +1871,7 @@ public float4 zxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxzw { @@ -1575,6 +1880,7 @@ public float4 zxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxwx { @@ -1583,6 +1889,7 @@ public float4 zxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxwy { @@ -1593,6 +1900,7 @@ public float4 zxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxwz { @@ -1601,6 +1909,7 @@ public float4 zxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zxww { @@ -1609,6 +1918,7 @@ public float4 zxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyxx { @@ -1617,6 +1927,7 @@ public float4 zyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyxy { @@ -1625,6 +1936,7 @@ public float4 zyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyxz { @@ -1633,6 +1945,7 @@ public float4 zyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyxw { @@ -1643,6 +1956,7 @@ public float4 zyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyyx { @@ -1651,6 +1965,7 @@ public float4 zyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyyy { @@ -1659,6 +1974,7 @@ public float4 zyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyyz { @@ -1667,6 +1983,7 @@ public float4 zyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyyw { @@ -1675,6 +1992,7 @@ public float4 zyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyzx { @@ -1683,6 +2001,7 @@ public float4 zyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyzy { @@ -1691,6 +2010,7 @@ public float4 zyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyzz { @@ -1699,6 +2019,7 @@ public float4 zyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyzw { @@ -1707,6 +2028,7 @@ public float4 zyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zywx { @@ -1717,6 +2039,7 @@ public float4 zywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zywy { @@ -1725,6 +2048,7 @@ public float4 zywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zywz { @@ -1733,6 +2057,7 @@ public float4 zywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zyww { @@ -1741,6 +2066,7 @@ public float4 zyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzxx { @@ -1749,6 +2075,7 @@ public float4 zzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzxy { @@ -1757,6 +2084,7 @@ public float4 zzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzxz { @@ -1765,6 +2093,7 @@ public float4 zzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzxw { @@ -1773,6 +2102,7 @@ public float4 zzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzyx { @@ -1781,6 +2111,7 @@ public float4 zzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzyy { @@ -1789,6 +2120,7 @@ public float4 zzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzyz { @@ -1797,6 +2129,7 @@ public float4 zzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzyw { @@ -1805,6 +2138,7 @@ public float4 zzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzzx { @@ -1813,6 +2147,7 @@ public float4 zzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzzy { @@ -1821,6 +2156,7 @@ public float4 zzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzzz { @@ -1829,6 +2165,7 @@ public float4 zzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzzw { @@ -1837,6 +2174,7 @@ public float4 zzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzwx { @@ -1845,6 +2183,7 @@ public float4 zzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzwy { @@ -1853,6 +2192,7 @@ public float4 zzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzwz { @@ -1861,6 +2201,7 @@ public float4 zzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zzww { @@ -1869,6 +2210,7 @@ public float4 zzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwxx { @@ -1877,6 +2219,7 @@ public float4 zwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwxy { @@ -1887,6 +2230,7 @@ public float4 zwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwxz { @@ -1895,6 +2239,7 @@ public float4 zwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwxw { @@ -1903,6 +2248,7 @@ public float4 zwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwyx { @@ -1913,6 +2259,7 @@ public float4 zwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwyy { @@ -1921,6 +2268,7 @@ public float4 zwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwyz { @@ -1929,6 +2277,7 @@ public float4 zwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwyw { @@ -1937,6 +2286,7 @@ public float4 zwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwzx { @@ -1945,6 +2295,7 @@ public float4 zwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwzy { @@ -1953,6 +2304,7 @@ public float4 zwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwzz { @@ -1961,6 +2313,7 @@ public float4 zwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwzw { @@ -1969,6 +2322,7 @@ public float4 zwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwwx { @@ -1977,6 +2331,7 @@ public float4 zwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwwy { @@ -1985,6 +2340,7 @@ public float4 zwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwwz { @@ -1993,6 +2349,7 @@ public float4 zwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 zwww { @@ -2001,6 +2358,7 @@ public float4 zwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxxx { @@ -2009,6 +2367,7 @@ public float4 wxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxxy { @@ -2017,6 +2376,7 @@ public float4 wxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxxz { @@ -2025,6 +2385,7 @@ public float4 wxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxxw { @@ -2033,6 +2394,7 @@ public float4 wxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxyx { @@ -2041,6 +2403,7 @@ public float4 wxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxyy { @@ -2049,6 +2412,7 @@ public float4 wxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxyz { @@ -2059,6 +2423,7 @@ public float4 wxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxyw { @@ -2067,6 +2432,7 @@ public float4 wxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxzx { @@ -2075,6 +2441,7 @@ public float4 wxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxzy { @@ -2085,6 +2452,7 @@ public float4 wxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxzz { @@ -2093,6 +2461,7 @@ public float4 wxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxzw { @@ -2101,6 +2470,7 @@ public float4 wxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxwx { @@ -2109,6 +2479,7 @@ public float4 wxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxwy { @@ -2117,6 +2488,7 @@ public float4 wxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxwz { @@ -2125,6 +2497,7 @@ public float4 wxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wxww { @@ -2133,6 +2506,7 @@ public float4 wxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyxx { @@ -2141,6 +2515,7 @@ public float4 wyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyxy { @@ -2149,6 +2524,7 @@ public float4 wyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyxz { @@ -2159,6 +2535,7 @@ public float4 wyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyxw { @@ -2167,6 +2544,7 @@ public float4 wyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyyx { @@ -2175,6 +2553,7 @@ public float4 wyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyyy { @@ -2183,6 +2562,7 @@ public float4 wyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyyz { @@ -2191,6 +2571,7 @@ public float4 wyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyyw { @@ -2199,6 +2580,7 @@ public float4 wyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyzx { @@ -2209,6 +2591,7 @@ public float4 wyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyzy { @@ -2217,6 +2600,7 @@ public float4 wyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyzz { @@ -2225,6 +2609,7 @@ public float4 wyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyzw { @@ -2233,6 +2618,7 @@ public float4 wyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wywx { @@ -2241,6 +2627,7 @@ public float4 wywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wywy { @@ -2249,6 +2636,7 @@ public float4 wywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wywz { @@ -2257,6 +2645,7 @@ public float4 wywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wyww { @@ -2265,6 +2654,7 @@ public float4 wyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzxx { @@ -2273,6 +2663,7 @@ public float4 wzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzxy { @@ -2283,6 +2674,7 @@ public float4 wzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzxz { @@ -2291,6 +2683,7 @@ public float4 wzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzxw { @@ -2299,6 +2692,7 @@ public float4 wzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzyx { @@ -2309,6 +2703,7 @@ public float4 wzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzyy { @@ -2317,6 +2712,7 @@ public float4 wzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzyz { @@ -2325,6 +2721,7 @@ public float4 wzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzyw { @@ -2333,6 +2730,7 @@ public float4 wzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzzx { @@ -2341,6 +2739,7 @@ public float4 wzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzzy { @@ -2349,6 +2748,7 @@ public float4 wzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzzz { @@ -2357,6 +2757,7 @@ public float4 wzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzzw { @@ -2365,6 +2766,7 @@ public float4 wzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzwx { @@ -2373,6 +2775,7 @@ public float4 wzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzwy { @@ -2381,6 +2784,7 @@ public float4 wzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzwz { @@ -2389,6 +2793,7 @@ public float4 wzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wzww { @@ -2397,6 +2802,7 @@ public float4 wzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwxx { @@ -2405,6 +2811,7 @@ public float4 wwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwxy { @@ -2413,6 +2820,7 @@ public float4 wwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwxz { @@ -2421,6 +2829,7 @@ public float4 wwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwxw { @@ -2429,6 +2838,7 @@ public float4 wwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwyx { @@ -2437,6 +2847,7 @@ public float4 wwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwyy { @@ -2445,6 +2856,7 @@ public float4 wwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwyz { @@ -2453,6 +2865,7 @@ public float4 wwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwyw { @@ -2461,6 +2874,7 @@ public float4 wwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwzx { @@ -2469,6 +2883,7 @@ public float4 wwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwzy { @@ -2477,6 +2892,7 @@ public float4 wwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwzz { @@ -2485,6 +2901,7 @@ public float4 wwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwzw { @@ -2493,6 +2910,7 @@ public float4 wwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwwx { @@ -2501,6 +2919,7 @@ public float4 wwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwwy { @@ -2509,6 +2928,7 @@ public float4 wwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwwz { @@ -2517,6 +2937,7 @@ public float4 wwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float4 wwww { @@ -2525,6 +2946,7 @@ public float4 wwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxx { @@ -2533,6 +2955,7 @@ public float3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxy { @@ -2541,6 +2964,7 @@ public float3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxz { @@ -2549,6 +2973,7 @@ public float3 xxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xxw { @@ -2557,6 +2982,7 @@ public float3 xxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyx { @@ -2565,6 +2991,7 @@ public float3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyy { @@ -2573,6 +3000,7 @@ public float3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyz { @@ -2583,6 +3011,7 @@ public float3 xyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xyw { @@ -2593,6 +3022,7 @@ public float3 xyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xzx { @@ -2601,6 +3031,7 @@ public float3 xzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xzy { @@ -2611,6 +3042,7 @@ public float3 xzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xzz { @@ -2619,6 +3051,7 @@ public float3 xzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xzw { @@ -2629,6 +3062,7 @@ public float3 xzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xwx { @@ -2637,6 +3071,7 @@ public float3 xwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xwy { @@ -2647,6 +3082,7 @@ public float3 xwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xwz { @@ -2657,6 +3093,7 @@ public float3 xwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 xww { @@ -2665,6 +3102,7 @@ public float3 xww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxx { @@ -2673,6 +3111,7 @@ public float3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxy { @@ -2681,6 +3120,7 @@ public float3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxz { @@ -2691,6 +3131,7 @@ public float3 yxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yxw { @@ -2701,6 +3142,7 @@ public float3 yxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyx { @@ -2709,6 +3151,7 @@ public float3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyy { @@ -2717,6 +3160,7 @@ public float3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyz { @@ -2725,6 +3169,7 @@ public float3 yyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yyw { @@ -2733,6 +3178,7 @@ public float3 yyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yzx { @@ -2743,6 +3189,7 @@ public float3 yzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yzy { @@ -2751,6 +3198,7 @@ public float3 yzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yzz { @@ -2759,6 +3207,7 @@ public float3 yzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yzw { @@ -2769,6 +3218,7 @@ public float3 yzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 ywx { @@ -2779,6 +3229,7 @@ public float3 ywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 ywy { @@ -2787,6 +3238,7 @@ public float3 ywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 ywz { @@ -2797,6 +3249,7 @@ public float3 ywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 yww { @@ -2805,6 +3258,7 @@ public float3 yww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zxx { @@ -2813,6 +3267,7 @@ public float3 zxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zxy { @@ -2823,6 +3278,7 @@ public float3 zxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zxz { @@ -2831,6 +3287,7 @@ public float3 zxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zxw { @@ -2841,6 +3298,7 @@ public float3 zxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zyx { @@ -2851,6 +3309,7 @@ public float3 zyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zyy { @@ -2859,6 +3318,7 @@ public float3 zyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zyz { @@ -2867,6 +3327,7 @@ public float3 zyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zyw { @@ -2877,6 +3338,7 @@ public float3 zyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zzx { @@ -2885,6 +3347,7 @@ public float3 zzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zzy { @@ -2893,6 +3356,7 @@ public float3 zzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zzz { @@ -2901,6 +3365,7 @@ public float3 zzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zzw { @@ -2909,6 +3374,7 @@ public float3 zzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zwx { @@ -2919,6 +3385,7 @@ public float3 zwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zwy { @@ -2929,6 +3396,7 @@ public float3 zwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zwz { @@ -2937,6 +3405,7 @@ public float3 zwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 zww { @@ -2945,6 +3414,7 @@ public float3 zww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wxx { @@ -2953,6 +3423,7 @@ public float3 wxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wxy { @@ -2963,6 +3434,7 @@ public float3 wxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wxz { @@ -2973,6 +3445,7 @@ public float3 wxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wxw { @@ -2981,6 +3454,7 @@ public float3 wxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wyx { @@ -2991,6 +3465,7 @@ public float3 wyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wyy { @@ -2999,6 +3474,7 @@ public float3 wyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wyz { @@ -3009,6 +3485,7 @@ public float3 wyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wyw { @@ -3017,6 +3494,7 @@ public float3 wyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wzx { @@ -3027,6 +3505,7 @@ public float3 wzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wzy { @@ -3037,6 +3516,7 @@ public float3 wzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wzz { @@ -3045,6 +3525,7 @@ public float3 wzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wzw { @@ -3053,6 +3534,7 @@ public float3 wzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wwx { @@ -3061,6 +3543,7 @@ public float3 wwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wwy { @@ -3069,6 +3552,7 @@ public float3 wwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 wwz { @@ -3077,6 +3561,7 @@ public float3 wwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float3 www { @@ -3085,6 +3570,7 @@ public float3 www } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xx { @@ -3093,6 +3579,7 @@ public float2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xy { @@ -3103,6 +3590,7 @@ public float2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xz { @@ -3113,6 +3601,7 @@ public float2 xz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 xw { @@ -3123,6 +3612,7 @@ public float2 xw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yx { @@ -3133,6 +3623,7 @@ public float2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yy { @@ -3141,6 +3632,7 @@ public float2 yy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yz { @@ -3151,6 +3643,7 @@ public float2 yz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 yw { @@ -3161,6 +3654,7 @@ public float2 yw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 zx { @@ -3171,6 +3665,7 @@ public float2 zx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 zy { @@ -3181,6 +3676,7 @@ public float2 zy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 zz { @@ -3189,6 +3685,7 @@ public float2 zz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 zw { @@ -3199,6 +3696,7 @@ public float2 zw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 wx { @@ -3209,6 +3707,7 @@ public float2 wx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 wy { @@ -3219,6 +3718,7 @@ public float2 wy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 wz { @@ -3229,6 +3729,7 @@ public float2 wz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public float2 ww { @@ -3260,19 +3761,25 @@ unsafe public float this[int index] } /// Returns true if the float4 is equal to a given float4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } /// Returns true if the float4 is equal to a given float4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is float4 converted && Equals(converted); } /// Returns a hash code for the float4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the float4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -3280,6 +3787,9 @@ public override string ToString() } /// Returns a string representation of the float4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -3306,82 +3816,134 @@ public DebuggerProxy(float4 v) public static partial class math { /// Returns a float4 vector constructed from four float values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. + /// float4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(float x, float y, float z, float w) { return new float4(x, y, z, w); } /// Returns a float4 vector constructed from two float values and a float2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's zw components will be set to this value. + /// float4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(float x, float y, float2 zw) { return new float4(x, y, zw); } /// Returns a float4 vector constructed from a float value, a float2 vector and a float value. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// The constructed vector's w component will be set to this value. + /// float4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(float x, float2 yz, float w) { return new float4(x, yz, w); } /// Returns a float4 vector constructed from a float value and a float3 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yzw components will be set to this value. + /// float4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(float x, float3 yzw) { return new float4(x, yzw); } /// Returns a float4 vector constructed from a float2 vector and two float values. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. + /// float4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(float2 xy, float z, float w) { return new float4(xy, z, w); } /// Returns a float4 vector constructed from two float2 vectors. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's zw components will be set to this value. + /// float4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(float2 xy, float2 zw) { return new float4(xy, zw); } /// Returns a float4 vector constructed from a float3 vector and a float value. + /// The constructed vector's xyz components will be set to this value. + /// The constructed vector's w component will be set to this value. + /// float4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(float3 xyz, float w) { return new float4(xyz, w); } /// Returns a float4 vector constructed from a float4 vector. + /// The constructed vector's xyzw components will be set to this value. + /// float4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(float4 xyzw) { return new float4(xyzw); } /// Returns a float4 vector constructed from a single float value by assigning it to every component. + /// float to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(float v) { return new float4(v); } /// Returns a float4 vector constructed from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(bool v) { return new float4(v); } /// Return a float4 vector constructed from a bool4 vector by componentwise conversion. + /// bool4 to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(bool4 v) { return new float4(v); } /// Returns a float4 vector constructed from a single int value by converting it to float and assigning it to every component. + /// int to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(int v) { return new float4(v); } /// Return a float4 vector constructed from a int4 vector by componentwise conversion. + /// int4 to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(int4 v) { return new float4(v); } /// Returns a float4 vector constructed from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(uint v) { return new float4(v); } /// Return a float4 vector constructed from a uint4 vector by componentwise conversion. + /// uint4 to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(uint4 v) { return new float4(v); } /// Returns a float4 vector constructed from a single half value by converting it to float and assigning it to every component. + /// half to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(half v) { return new float4(v); } /// Return a float4 vector constructed from a half4 vector by componentwise conversion. + /// half4 to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(half4 v) { return new float4(v); } /// Returns a float4 vector constructed from a single double value by converting it to float and assigning it to every component. + /// double to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(double v) { return new float4(v); } /// Return a float4 vector constructed from a double4 vector by componentwise conversion. + /// double4 to convert to float4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 float4(double4 v) { return new float4(v); } /// Returns a uint hash code of a float4 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(float4 v) { @@ -3393,6 +3955,8 @@ public static uint hash(float4 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(float4 v) { @@ -3400,40 +3964,62 @@ public static uint4 hashwide(float4 v) } /// Returns the result of specified shuffling of the components from two float4 vectors into a float value. + /// float4 to use as the left argument of the shuffle operation. + /// float4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting float. + /// float result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float shuffle(float4 a, float4 b, ShuffleComponent x) + public static float shuffle(float4 left, float4 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two float4 vectors into a float2 vector. + /// float4 to use as the left argument of the shuffle operation. + /// float4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting float2 x component. + /// The ShuffleComponent to use when setting the resulting float2 y component. + /// float2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 shuffle(float4 a, float4 b, ShuffleComponent x, ShuffleComponent y) + public static float2 shuffle(float4 left, float4 right, ShuffleComponent x, ShuffleComponent y) { return float2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two float4 vectors into a float3 vector. + /// float4 to use as the left argument of the shuffle operation. + /// float4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting float3 x component. + /// The ShuffleComponent to use when setting the resulting float3 y component. + /// The ShuffleComponent to use when setting the resulting float3 z component. + /// float3 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 shuffle(float4 a, float4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + public static float3 shuffle(float4 left, float4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return float3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two float4 vectors into a float4 vector. + /// float4 to use as the left argument of the shuffle operation. + /// float4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting float4 x component. + /// The ShuffleComponent to use when setting the resulting float4 y component. + /// The ShuffleComponent to use when setting the resulting float4 z component. + /// The ShuffleComponent to use when setting the resulting float4 w component. + /// float4 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 shuffle(float4 a, float4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + public static float4 shuffle(float4 left, float4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return float4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/float4x2.gen.cs b/src/Unity.Mathematics/float4x2.gen.cs index 1c4541b5..760379b5 100644 --- a/src/Unity.Mathematics/float4x2.gen.cs +++ b/src/Unity.Mathematics/float4x2.gen.cs @@ -14,17 +14,22 @@ namespace Unity.Mathematics { + /// A 4x2 matrix of floats. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct float4x2 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public float4 c0; + /// Column 1 of the matrix. public float4 c1; /// float4x2 zero value. public static readonly float4x2 zero; /// Constructs a float4x2 matrix from two float4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x2(float4 c0, float4 c1) { @@ -33,6 +38,14 @@ public float4x2(float4 c0, float4 c1) } /// Constructs a float4x2 matrix from 8 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x2(float m00, float m01, float m10, float m11, @@ -44,6 +57,7 @@ public float4x2(float m00, float m01, } /// Constructs a float4x2 matrix from a single float value by assigning it to every component. + /// float to convert to float4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x2(float v) { @@ -52,6 +66,7 @@ public float4x2(float v) } /// Constructs a float4x2 matrix from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x2(bool v) { @@ -60,6 +75,7 @@ public float4x2(bool v) } /// Constructs a float4x2 matrix from a bool4x2 matrix by componentwise conversion. + /// bool4x2 to convert to float4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x2(bool4x2 v) { @@ -68,6 +84,7 @@ public float4x2(bool4x2 v) } /// Constructs a float4x2 matrix from a single int value by converting it to float and assigning it to every component. + /// int to convert to float4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x2(int v) { @@ -76,6 +93,7 @@ public float4x2(int v) } /// Constructs a float4x2 matrix from a int4x2 matrix by componentwise conversion. + /// int4x2 to convert to float4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x2(int4x2 v) { @@ -84,6 +102,7 @@ public float4x2(int4x2 v) } /// Constructs a float4x2 matrix from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x2(uint v) { @@ -92,6 +111,7 @@ public float4x2(uint v) } /// Constructs a float4x2 matrix from a uint4x2 matrix by componentwise conversion. + /// uint4x2 to convert to float4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x2(uint4x2 v) { @@ -100,6 +120,7 @@ public float4x2(uint4x2 v) } /// Constructs a float4x2 matrix from a single double value by converting it to float and assigning it to every component. + /// double to convert to float4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x2(double v) { @@ -108,6 +129,7 @@ public float4x2(double v) } /// Constructs a float4x2 matrix from a double4x2 matrix by componentwise conversion. + /// double4x2 to convert to float4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x2(double4x2 v) { @@ -117,201 +139,326 @@ public float4x2(double4x2 v) /// Implicitly converts a single float value to a float4x2 matrix by assigning it to every component. + /// float to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x2(float v) { return new float4x2(v); } /// Explicitly converts a single bool value to a float4x2 matrix by converting it to float and assigning it to every component. + /// bool to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4x2(bool v) { return new float4x2(v); } /// Explicitly converts a bool4x2 matrix to a float4x2 matrix by componentwise conversion. + /// bool4x2 to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4x2(bool4x2 v) { return new float4x2(v); } /// Implicitly converts a single int value to a float4x2 matrix by converting it to float and assigning it to every component. + /// int to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x2(int v) { return new float4x2(v); } /// Implicitly converts a int4x2 matrix to a float4x2 matrix by componentwise conversion. + /// int4x2 to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x2(int4x2 v) { return new float4x2(v); } /// Implicitly converts a single uint value to a float4x2 matrix by converting it to float and assigning it to every component. + /// uint to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x2(uint v) { return new float4x2(v); } /// Implicitly converts a uint4x2 matrix to a float4x2 matrix by componentwise conversion. + /// uint4x2 to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x2(uint4x2 v) { return new float4x2(v); } /// Explicitly converts a single double value to a float4x2 matrix by converting it to float and assigning it to every component. + /// double to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4x2(double v) { return new float4x2(v); } /// Explicitly converts a double4x2 matrix to a float4x2 matrix by componentwise conversion. + /// double4x2 to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4x2(double4x2 v) { return new float4x2(v); } /// Returns the result of a componentwise multiplication operation on two float4x2 matrices. + /// Left hand side float4x2 to use to compute componentwise multiplication. + /// Right hand side float4x2 to use to compute componentwise multiplication. + /// float4x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator * (float4x2 lhs, float4x2 rhs) { return new float4x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } /// Returns the result of a componentwise multiplication operation on a float4x2 matrix and a float value. + /// Left hand side float4x2 to use to compute componentwise multiplication. + /// Right hand side float to use to compute componentwise multiplication. + /// float4x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator * (float4x2 lhs, float rhs) { return new float4x2 (lhs.c0 * rhs, lhs.c1 * rhs); } /// Returns the result of a componentwise multiplication operation on a float value and a float4x2 matrix. + /// Left hand side float to use to compute componentwise multiplication. + /// Right hand side float4x2 to use to compute componentwise multiplication. + /// float4x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator * (float lhs, float4x2 rhs) { return new float4x2 (lhs * rhs.c0, lhs * rhs.c1); } /// Returns the result of a componentwise addition operation on two float4x2 matrices. + /// Left hand side float4x2 to use to compute componentwise addition. + /// Right hand side float4x2 to use to compute componentwise addition. + /// float4x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator + (float4x2 lhs, float4x2 rhs) { return new float4x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } /// Returns the result of a componentwise addition operation on a float4x2 matrix and a float value. + /// Left hand side float4x2 to use to compute componentwise addition. + /// Right hand side float to use to compute componentwise addition. + /// float4x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator + (float4x2 lhs, float rhs) { return new float4x2 (lhs.c0 + rhs, lhs.c1 + rhs); } /// Returns the result of a componentwise addition operation on a float value and a float4x2 matrix. + /// Left hand side float to use to compute componentwise addition. + /// Right hand side float4x2 to use to compute componentwise addition. + /// float4x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator + (float lhs, float4x2 rhs) { return new float4x2 (lhs + rhs.c0, lhs + rhs.c1); } /// Returns the result of a componentwise subtraction operation on two float4x2 matrices. + /// Left hand side float4x2 to use to compute componentwise subtraction. + /// Right hand side float4x2 to use to compute componentwise subtraction. + /// float4x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator - (float4x2 lhs, float4x2 rhs) { return new float4x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } /// Returns the result of a componentwise subtraction operation on a float4x2 matrix and a float value. + /// Left hand side float4x2 to use to compute componentwise subtraction. + /// Right hand side float to use to compute componentwise subtraction. + /// float4x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator - (float4x2 lhs, float rhs) { return new float4x2 (lhs.c0 - rhs, lhs.c1 - rhs); } /// Returns the result of a componentwise subtraction operation on a float value and a float4x2 matrix. + /// Left hand side float to use to compute componentwise subtraction. + /// Right hand side float4x2 to use to compute componentwise subtraction. + /// float4x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator - (float lhs, float4x2 rhs) { return new float4x2 (lhs - rhs.c0, lhs - rhs.c1); } /// Returns the result of a componentwise division operation on two float4x2 matrices. + /// Left hand side float4x2 to use to compute componentwise division. + /// Right hand side float4x2 to use to compute componentwise division. + /// float4x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator / (float4x2 lhs, float4x2 rhs) { return new float4x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } /// Returns the result of a componentwise division operation on a float4x2 matrix and a float value. + /// Left hand side float4x2 to use to compute componentwise division. + /// Right hand side float to use to compute componentwise division. + /// float4x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator / (float4x2 lhs, float rhs) { return new float4x2 (lhs.c0 / rhs, lhs.c1 / rhs); } /// Returns the result of a componentwise division operation on a float value and a float4x2 matrix. + /// Left hand side float to use to compute componentwise division. + /// Right hand side float4x2 to use to compute componentwise division. + /// float4x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator / (float lhs, float4x2 rhs) { return new float4x2 (lhs / rhs.c0, lhs / rhs.c1); } /// Returns the result of a componentwise modulus operation on two float4x2 matrices. + /// Left hand side float4x2 to use to compute componentwise modulus. + /// Right hand side float4x2 to use to compute componentwise modulus. + /// float4x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator % (float4x2 lhs, float4x2 rhs) { return new float4x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } /// Returns the result of a componentwise modulus operation on a float4x2 matrix and a float value. + /// Left hand side float4x2 to use to compute componentwise modulus. + /// Right hand side float to use to compute componentwise modulus. + /// float4x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator % (float4x2 lhs, float rhs) { return new float4x2 (lhs.c0 % rhs, lhs.c1 % rhs); } /// Returns the result of a componentwise modulus operation on a float value and a float4x2 matrix. + /// Left hand side float to use to compute componentwise modulus. + /// Right hand side float4x2 to use to compute componentwise modulus. + /// float4x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator % (float lhs, float4x2 rhs) { return new float4x2 (lhs % rhs.c0, lhs % rhs.c1); } /// Returns the result of a componentwise increment operation on a float4x2 matrix. + /// Value to use when computing the componentwise increment. + /// float4x2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator ++ (float4x2 val) { return new float4x2 (++val.c0, ++val.c1); } /// Returns the result of a componentwise decrement operation on a float4x2 matrix. + /// Value to use when computing the componentwise decrement. + /// float4x2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator -- (float4x2 val) { return new float4x2 (--val.c0, --val.c1); } /// Returns the result of a componentwise less than operation on two float4x2 matrices. + /// Left hand side float4x2 to use to compute componentwise less than. + /// Right hand side float4x2 to use to compute componentwise less than. + /// bool4x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator < (float4x2 lhs, float4x2 rhs) { return new bool4x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } /// Returns the result of a componentwise less than operation on a float4x2 matrix and a float value. + /// Left hand side float4x2 to use to compute componentwise less than. + /// Right hand side float to use to compute componentwise less than. + /// bool4x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator < (float4x2 lhs, float rhs) { return new bool4x2 (lhs.c0 < rhs, lhs.c1 < rhs); } /// Returns the result of a componentwise less than operation on a float value and a float4x2 matrix. + /// Left hand side float to use to compute componentwise less than. + /// Right hand side float4x2 to use to compute componentwise less than. + /// bool4x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator < (float lhs, float4x2 rhs) { return new bool4x2 (lhs < rhs.c0, lhs < rhs.c1); } /// Returns the result of a componentwise less or equal operation on two float4x2 matrices. + /// Left hand side float4x2 to use to compute componentwise less or equal. + /// Right hand side float4x2 to use to compute componentwise less or equal. + /// bool4x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator <= (float4x2 lhs, float4x2 rhs) { return new bool4x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } /// Returns the result of a componentwise less or equal operation on a float4x2 matrix and a float value. + /// Left hand side float4x2 to use to compute componentwise less or equal. + /// Right hand side float to use to compute componentwise less or equal. + /// bool4x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator <= (float4x2 lhs, float rhs) { return new bool4x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } /// Returns the result of a componentwise less or equal operation on a float value and a float4x2 matrix. + /// Left hand side float to use to compute componentwise less or equal. + /// Right hand side float4x2 to use to compute componentwise less or equal. + /// bool4x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator <= (float lhs, float4x2 rhs) { return new bool4x2 (lhs <= rhs.c0, lhs <= rhs.c1); } /// Returns the result of a componentwise greater than operation on two float4x2 matrices. + /// Left hand side float4x2 to use to compute componentwise greater than. + /// Right hand side float4x2 to use to compute componentwise greater than. + /// bool4x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator > (float4x2 lhs, float4x2 rhs) { return new bool4x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } /// Returns the result of a componentwise greater than operation on a float4x2 matrix and a float value. + /// Left hand side float4x2 to use to compute componentwise greater than. + /// Right hand side float to use to compute componentwise greater than. + /// bool4x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator > (float4x2 lhs, float rhs) { return new bool4x2 (lhs.c0 > rhs, lhs.c1 > rhs); } /// Returns the result of a componentwise greater than operation on a float value and a float4x2 matrix. + /// Left hand side float to use to compute componentwise greater than. + /// Right hand side float4x2 to use to compute componentwise greater than. + /// bool4x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator > (float lhs, float4x2 rhs) { return new bool4x2 (lhs > rhs.c0, lhs > rhs.c1); } /// Returns the result of a componentwise greater or equal operation on two float4x2 matrices. + /// Left hand side float4x2 to use to compute componentwise greater or equal. + /// Right hand side float4x2 to use to compute componentwise greater or equal. + /// bool4x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator >= (float4x2 lhs, float4x2 rhs) { return new bool4x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } /// Returns the result of a componentwise greater or equal operation on a float4x2 matrix and a float value. + /// Left hand side float4x2 to use to compute componentwise greater or equal. + /// Right hand side float to use to compute componentwise greater or equal. + /// bool4x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator >= (float4x2 lhs, float rhs) { return new bool4x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a float value and a float4x2 matrix. + /// Left hand side float to use to compute componentwise greater or equal. + /// Right hand side float4x2 to use to compute componentwise greater or equal. + /// bool4x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator >= (float lhs, float4x2 rhs) { return new bool4x2 (lhs >= rhs.c0, lhs >= rhs.c1); } /// Returns the result of a componentwise unary minus operation on a float4x2 matrix. + /// Value to use when computing the componentwise unary minus. + /// float4x2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator - (float4x2 val) { return new float4x2 (-val.c0, -val.c1); } /// Returns the result of a componentwise unary plus operation on a float4x2 matrix. + /// Value to use when computing the componentwise unary plus. + /// float4x2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 operator + (float4x2 val) { return new float4x2 (+val.c0, +val.c1); } /// Returns the result of a componentwise equality operation on two float4x2 matrices. + /// Left hand side float4x2 to use to compute componentwise equality. + /// Right hand side float4x2 to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (float4x2 lhs, float4x2 rhs) { return new bool4x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on a float4x2 matrix and a float value. + /// Left hand side float4x2 to use to compute componentwise equality. + /// Right hand side float to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (float4x2 lhs, float rhs) { return new bool4x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on a float value and a float4x2 matrix. + /// Left hand side float to use to compute componentwise equality. + /// Right hand side float4x2 to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (float lhs, float4x2 rhs) { return new bool4x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two float4x2 matrices. + /// Left hand side float4x2 to use to compute componentwise not equal. + /// Right hand side float4x2 to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (float4x2 lhs, float4x2 rhs) { return new bool4x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on a float4x2 matrix and a float value. + /// Left hand side float4x2 to use to compute componentwise not equal. + /// Right hand side float to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (float4x2 lhs, float rhs) { return new bool4x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on a float value and a float4x2 matrix. + /// Left hand side float to use to compute componentwise not equal. + /// Right hand side float4x2 to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (float lhs, float4x2 rhs) { return new bool4x2 (lhs != rhs.c0, lhs != rhs.c1); } @@ -331,19 +478,25 @@ unsafe public ref float4 this[int index] } /// Returns true if the float4x2 is equal to a given float4x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the float4x2 is equal to a given float4x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is float4x2 converted && Equals(converted); } /// Returns a hash code for the float4x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the float4x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -351,6 +504,9 @@ public override string ToString() } /// Returns a string representation of the float4x2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -362,10 +518,22 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a float4x2 matrix constructed from two float4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// float4x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 float4x2(float4 c0, float4 c1) { return new float4x2(c0, c1); } /// Returns a float4x2 matrix constructed from from 8 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// float4x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 float4x2(float m00, float m01, float m10, float m11, @@ -379,42 +547,62 @@ public static float4x2 float4x2(float m00, float m01, } /// Returns a float4x2 matrix constructed from a single float value by assigning it to every component. + /// float to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 float4x2(float v) { return new float4x2(v); } /// Returns a float4x2 matrix constructed from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 float4x2(bool v) { return new float4x2(v); } /// Return a float4x2 matrix constructed from a bool4x2 matrix by componentwise conversion. + /// bool4x2 to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 float4x2(bool4x2 v) { return new float4x2(v); } /// Returns a float4x2 matrix constructed from a single int value by converting it to float and assigning it to every component. + /// int to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 float4x2(int v) { return new float4x2(v); } /// Return a float4x2 matrix constructed from a int4x2 matrix by componentwise conversion. + /// int4x2 to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 float4x2(int4x2 v) { return new float4x2(v); } /// Returns a float4x2 matrix constructed from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 float4x2(uint v) { return new float4x2(v); } /// Return a float4x2 matrix constructed from a uint4x2 matrix by componentwise conversion. + /// uint4x2 to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 float4x2(uint4x2 v) { return new float4x2(v); } /// Returns a float4x2 matrix constructed from a single double value by converting it to float and assigning it to every component. + /// double to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 float4x2(double v) { return new float4x2(v); } /// Return a float4x2 matrix constructed from a double4x2 matrix by componentwise conversion. + /// double4x2 to convert to float4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 float4x2(double4x2 v) { return new float4x2(v); } /// Return the float2x4 transpose of a float4x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 transpose(float4x2 v) { @@ -423,7 +611,9 @@ public static float2x4 transpose(float4x2 v) v.c1.x, v.c1.y, v.c1.z, v.c1.w); } - /// Returns a uint hash code of a float4x2 vector. + /// Returns a uint hash code of a float4x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(float4x2 v) { @@ -432,10 +622,12 @@ public static uint hash(float4x2 v) } /// - /// Returns a uint4 vector hash code of a float4x2 vector. + /// Returns a uint4 vector hash code of a float4x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(float4x2 v) { diff --git a/src/Unity.Mathematics/float4x3.gen.cs b/src/Unity.Mathematics/float4x3.gen.cs index 840b5be1..d379e75b 100644 --- a/src/Unity.Mathematics/float4x3.gen.cs +++ b/src/Unity.Mathematics/float4x3.gen.cs @@ -14,18 +14,25 @@ namespace Unity.Mathematics { + /// A 4x3 matrix of floats. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct float4x3 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public float4 c0; + /// Column 1 of the matrix. public float4 c1; + /// Column 2 of the matrix. public float4 c2; /// float4x3 zero value. public static readonly float4x3 zero; /// Constructs a float4x3 matrix from three float4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x3(float4 c0, float4 c1, float4 c2) { @@ -35,6 +42,18 @@ public float4x3(float4 c0, float4 c1, float4 c2) } /// Constructs a float4x3 matrix from 12 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x3(float m00, float m01, float m02, float m10, float m11, float m12, @@ -47,6 +66,7 @@ public float4x3(float m00, float m01, float m02, } /// Constructs a float4x3 matrix from a single float value by assigning it to every component. + /// float to convert to float4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x3(float v) { @@ -56,6 +76,7 @@ public float4x3(float v) } /// Constructs a float4x3 matrix from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x3(bool v) { @@ -65,6 +86,7 @@ public float4x3(bool v) } /// Constructs a float4x3 matrix from a bool4x3 matrix by componentwise conversion. + /// bool4x3 to convert to float4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x3(bool4x3 v) { @@ -74,6 +96,7 @@ public float4x3(bool4x3 v) } /// Constructs a float4x3 matrix from a single int value by converting it to float and assigning it to every component. + /// int to convert to float4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x3(int v) { @@ -83,6 +106,7 @@ public float4x3(int v) } /// Constructs a float4x3 matrix from a int4x3 matrix by componentwise conversion. + /// int4x3 to convert to float4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x3(int4x3 v) { @@ -92,6 +116,7 @@ public float4x3(int4x3 v) } /// Constructs a float4x3 matrix from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x3(uint v) { @@ -101,6 +126,7 @@ public float4x3(uint v) } /// Constructs a float4x3 matrix from a uint4x3 matrix by componentwise conversion. + /// uint4x3 to convert to float4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x3(uint4x3 v) { @@ -110,6 +136,7 @@ public float4x3(uint4x3 v) } /// Constructs a float4x3 matrix from a single double value by converting it to float and assigning it to every component. + /// double to convert to float4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x3(double v) { @@ -119,6 +146,7 @@ public float4x3(double v) } /// Constructs a float4x3 matrix from a double4x3 matrix by componentwise conversion. + /// double4x3 to convert to float4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x3(double4x3 v) { @@ -129,201 +157,326 @@ public float4x3(double4x3 v) /// Implicitly converts a single float value to a float4x3 matrix by assigning it to every component. + /// float to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x3(float v) { return new float4x3(v); } /// Explicitly converts a single bool value to a float4x3 matrix by converting it to float and assigning it to every component. + /// bool to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4x3(bool v) { return new float4x3(v); } /// Explicitly converts a bool4x3 matrix to a float4x3 matrix by componentwise conversion. + /// bool4x3 to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4x3(bool4x3 v) { return new float4x3(v); } /// Implicitly converts a single int value to a float4x3 matrix by converting it to float and assigning it to every component. + /// int to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x3(int v) { return new float4x3(v); } /// Implicitly converts a int4x3 matrix to a float4x3 matrix by componentwise conversion. + /// int4x3 to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x3(int4x3 v) { return new float4x3(v); } /// Implicitly converts a single uint value to a float4x3 matrix by converting it to float and assigning it to every component. + /// uint to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x3(uint v) { return new float4x3(v); } /// Implicitly converts a uint4x3 matrix to a float4x3 matrix by componentwise conversion. + /// uint4x3 to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x3(uint4x3 v) { return new float4x3(v); } /// Explicitly converts a single double value to a float4x3 matrix by converting it to float and assigning it to every component. + /// double to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4x3(double v) { return new float4x3(v); } /// Explicitly converts a double4x3 matrix to a float4x3 matrix by componentwise conversion. + /// double4x3 to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4x3(double4x3 v) { return new float4x3(v); } /// Returns the result of a componentwise multiplication operation on two float4x3 matrices. + /// Left hand side float4x3 to use to compute componentwise multiplication. + /// Right hand side float4x3 to use to compute componentwise multiplication. + /// float4x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator * (float4x3 lhs, float4x3 rhs) { return new float4x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } /// Returns the result of a componentwise multiplication operation on a float4x3 matrix and a float value. + /// Left hand side float4x3 to use to compute componentwise multiplication. + /// Right hand side float to use to compute componentwise multiplication. + /// float4x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator * (float4x3 lhs, float rhs) { return new float4x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } /// Returns the result of a componentwise multiplication operation on a float value and a float4x3 matrix. + /// Left hand side float to use to compute componentwise multiplication. + /// Right hand side float4x3 to use to compute componentwise multiplication. + /// float4x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator * (float lhs, float4x3 rhs) { return new float4x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } /// Returns the result of a componentwise addition operation on two float4x3 matrices. + /// Left hand side float4x3 to use to compute componentwise addition. + /// Right hand side float4x3 to use to compute componentwise addition. + /// float4x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator + (float4x3 lhs, float4x3 rhs) { return new float4x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } /// Returns the result of a componentwise addition operation on a float4x3 matrix and a float value. + /// Left hand side float4x3 to use to compute componentwise addition. + /// Right hand side float to use to compute componentwise addition. + /// float4x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator + (float4x3 lhs, float rhs) { return new float4x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } /// Returns the result of a componentwise addition operation on a float value and a float4x3 matrix. + /// Left hand side float to use to compute componentwise addition. + /// Right hand side float4x3 to use to compute componentwise addition. + /// float4x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator + (float lhs, float4x3 rhs) { return new float4x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } /// Returns the result of a componentwise subtraction operation on two float4x3 matrices. + /// Left hand side float4x3 to use to compute componentwise subtraction. + /// Right hand side float4x3 to use to compute componentwise subtraction. + /// float4x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator - (float4x3 lhs, float4x3 rhs) { return new float4x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } /// Returns the result of a componentwise subtraction operation on a float4x3 matrix and a float value. + /// Left hand side float4x3 to use to compute componentwise subtraction. + /// Right hand side float to use to compute componentwise subtraction. + /// float4x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator - (float4x3 lhs, float rhs) { return new float4x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } /// Returns the result of a componentwise subtraction operation on a float value and a float4x3 matrix. + /// Left hand side float to use to compute componentwise subtraction. + /// Right hand side float4x3 to use to compute componentwise subtraction. + /// float4x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator - (float lhs, float4x3 rhs) { return new float4x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } /// Returns the result of a componentwise division operation on two float4x3 matrices. + /// Left hand side float4x3 to use to compute componentwise division. + /// Right hand side float4x3 to use to compute componentwise division. + /// float4x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator / (float4x3 lhs, float4x3 rhs) { return new float4x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } /// Returns the result of a componentwise division operation on a float4x3 matrix and a float value. + /// Left hand side float4x3 to use to compute componentwise division. + /// Right hand side float to use to compute componentwise division. + /// float4x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator / (float4x3 lhs, float rhs) { return new float4x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } /// Returns the result of a componentwise division operation on a float value and a float4x3 matrix. + /// Left hand side float to use to compute componentwise division. + /// Right hand side float4x3 to use to compute componentwise division. + /// float4x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator / (float lhs, float4x3 rhs) { return new float4x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } /// Returns the result of a componentwise modulus operation on two float4x3 matrices. + /// Left hand side float4x3 to use to compute componentwise modulus. + /// Right hand side float4x3 to use to compute componentwise modulus. + /// float4x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator % (float4x3 lhs, float4x3 rhs) { return new float4x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } /// Returns the result of a componentwise modulus operation on a float4x3 matrix and a float value. + /// Left hand side float4x3 to use to compute componentwise modulus. + /// Right hand side float to use to compute componentwise modulus. + /// float4x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator % (float4x3 lhs, float rhs) { return new float4x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } /// Returns the result of a componentwise modulus operation on a float value and a float4x3 matrix. + /// Left hand side float to use to compute componentwise modulus. + /// Right hand side float4x3 to use to compute componentwise modulus. + /// float4x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator % (float lhs, float4x3 rhs) { return new float4x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } /// Returns the result of a componentwise increment operation on a float4x3 matrix. + /// Value to use when computing the componentwise increment. + /// float4x3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator ++ (float4x3 val) { return new float4x3 (++val.c0, ++val.c1, ++val.c2); } /// Returns the result of a componentwise decrement operation on a float4x3 matrix. + /// Value to use when computing the componentwise decrement. + /// float4x3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator -- (float4x3 val) { return new float4x3 (--val.c0, --val.c1, --val.c2); } /// Returns the result of a componentwise less than operation on two float4x3 matrices. + /// Left hand side float4x3 to use to compute componentwise less than. + /// Right hand side float4x3 to use to compute componentwise less than. + /// bool4x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator < (float4x3 lhs, float4x3 rhs) { return new bool4x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } /// Returns the result of a componentwise less than operation on a float4x3 matrix and a float value. + /// Left hand side float4x3 to use to compute componentwise less than. + /// Right hand side float to use to compute componentwise less than. + /// bool4x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator < (float4x3 lhs, float rhs) { return new bool4x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } /// Returns the result of a componentwise less than operation on a float value and a float4x3 matrix. + /// Left hand side float to use to compute componentwise less than. + /// Right hand side float4x3 to use to compute componentwise less than. + /// bool4x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator < (float lhs, float4x3 rhs) { return new bool4x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } /// Returns the result of a componentwise less or equal operation on two float4x3 matrices. + /// Left hand side float4x3 to use to compute componentwise less or equal. + /// Right hand side float4x3 to use to compute componentwise less or equal. + /// bool4x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator <= (float4x3 lhs, float4x3 rhs) { return new bool4x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } /// Returns the result of a componentwise less or equal operation on a float4x3 matrix and a float value. + /// Left hand side float4x3 to use to compute componentwise less or equal. + /// Right hand side float to use to compute componentwise less or equal. + /// bool4x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator <= (float4x3 lhs, float rhs) { return new bool4x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } /// Returns the result of a componentwise less or equal operation on a float value and a float4x3 matrix. + /// Left hand side float to use to compute componentwise less or equal. + /// Right hand side float4x3 to use to compute componentwise less or equal. + /// bool4x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator <= (float lhs, float4x3 rhs) { return new bool4x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } /// Returns the result of a componentwise greater than operation on two float4x3 matrices. + /// Left hand side float4x3 to use to compute componentwise greater than. + /// Right hand side float4x3 to use to compute componentwise greater than. + /// bool4x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator > (float4x3 lhs, float4x3 rhs) { return new bool4x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } /// Returns the result of a componentwise greater than operation on a float4x3 matrix and a float value. + /// Left hand side float4x3 to use to compute componentwise greater than. + /// Right hand side float to use to compute componentwise greater than. + /// bool4x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator > (float4x3 lhs, float rhs) { return new bool4x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } /// Returns the result of a componentwise greater than operation on a float value and a float4x3 matrix. + /// Left hand side float to use to compute componentwise greater than. + /// Right hand side float4x3 to use to compute componentwise greater than. + /// bool4x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator > (float lhs, float4x3 rhs) { return new bool4x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } /// Returns the result of a componentwise greater or equal operation on two float4x3 matrices. + /// Left hand side float4x3 to use to compute componentwise greater or equal. + /// Right hand side float4x3 to use to compute componentwise greater or equal. + /// bool4x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator >= (float4x3 lhs, float4x3 rhs) { return new bool4x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } /// Returns the result of a componentwise greater or equal operation on a float4x3 matrix and a float value. + /// Left hand side float4x3 to use to compute componentwise greater or equal. + /// Right hand side float to use to compute componentwise greater or equal. + /// bool4x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator >= (float4x3 lhs, float rhs) { return new bool4x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a float value and a float4x3 matrix. + /// Left hand side float to use to compute componentwise greater or equal. + /// Right hand side float4x3 to use to compute componentwise greater or equal. + /// bool4x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator >= (float lhs, float4x3 rhs) { return new bool4x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } /// Returns the result of a componentwise unary minus operation on a float4x3 matrix. + /// Value to use when computing the componentwise unary minus. + /// float4x3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator - (float4x3 val) { return new float4x3 (-val.c0, -val.c1, -val.c2); } /// Returns the result of a componentwise unary plus operation on a float4x3 matrix. + /// Value to use when computing the componentwise unary plus. + /// float4x3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 operator + (float4x3 val) { return new float4x3 (+val.c0, +val.c1, +val.c2); } /// Returns the result of a componentwise equality operation on two float4x3 matrices. + /// Left hand side float4x3 to use to compute componentwise equality. + /// Right hand side float4x3 to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (float4x3 lhs, float4x3 rhs) { return new bool4x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on a float4x3 matrix and a float value. + /// Left hand side float4x3 to use to compute componentwise equality. + /// Right hand side float to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (float4x3 lhs, float rhs) { return new bool4x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on a float value and a float4x3 matrix. + /// Left hand side float to use to compute componentwise equality. + /// Right hand side float4x3 to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (float lhs, float4x3 rhs) { return new bool4x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two float4x3 matrices. + /// Left hand side float4x3 to use to compute componentwise not equal. + /// Right hand side float4x3 to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (float4x3 lhs, float4x3 rhs) { return new bool4x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on a float4x3 matrix and a float value. + /// Left hand side float4x3 to use to compute componentwise not equal. + /// Right hand side float to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (float4x3 lhs, float rhs) { return new bool4x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on a float value and a float4x3 matrix. + /// Left hand side float to use to compute componentwise not equal. + /// Right hand side float4x3 to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (float lhs, float4x3 rhs) { return new bool4x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } @@ -343,19 +496,25 @@ unsafe public ref float4 this[int index] } /// Returns true if the float4x3 is equal to a given float4x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the float4x3 is equal to a given float4x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is float4x3 converted && Equals(converted); } /// Returns a hash code for the float4x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the float4x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -363,6 +522,9 @@ public override string ToString() } /// Returns a string representation of the float4x3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -374,10 +536,27 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a float4x3 matrix constructed from three float4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// float4x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 float4x3(float4 c0, float4 c1, float4 c2) { return new float4x3(c0, c1, c2); } /// Returns a float4x3 matrix constructed from from 12 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// float4x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 float4x3(float m00, float m01, float m02, float m10, float m11, float m12, @@ -391,42 +570,62 @@ public static float4x3 float4x3(float m00, float m01, float m02, } /// Returns a float4x3 matrix constructed from a single float value by assigning it to every component. + /// float to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 float4x3(float v) { return new float4x3(v); } /// Returns a float4x3 matrix constructed from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 float4x3(bool v) { return new float4x3(v); } /// Return a float4x3 matrix constructed from a bool4x3 matrix by componentwise conversion. + /// bool4x3 to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 float4x3(bool4x3 v) { return new float4x3(v); } /// Returns a float4x3 matrix constructed from a single int value by converting it to float and assigning it to every component. + /// int to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 float4x3(int v) { return new float4x3(v); } /// Return a float4x3 matrix constructed from a int4x3 matrix by componentwise conversion. + /// int4x3 to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 float4x3(int4x3 v) { return new float4x3(v); } /// Returns a float4x3 matrix constructed from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 float4x3(uint v) { return new float4x3(v); } /// Return a float4x3 matrix constructed from a uint4x3 matrix by componentwise conversion. + /// uint4x3 to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 float4x3(uint4x3 v) { return new float4x3(v); } /// Returns a float4x3 matrix constructed from a single double value by converting it to float and assigning it to every component. + /// double to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 float4x3(double v) { return new float4x3(v); } /// Return a float4x3 matrix constructed from a double4x3 matrix by componentwise conversion. + /// double4x3 to convert to float4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 float4x3(double4x3 v) { return new float4x3(v); } /// Return the float3x4 transpose of a float4x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 transpose(float4x3 v) { @@ -436,7 +635,9 @@ public static float3x4 transpose(float4x3 v) v.c2.x, v.c2.y, v.c2.z, v.c2.w); } - /// Returns a uint hash code of a float4x3 vector. + /// Returns a uint hash code of a float4x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(float4x3 v) { @@ -446,10 +647,12 @@ public static uint hash(float4x3 v) } /// - /// Returns a uint4 vector hash code of a float4x3 vector. + /// Returns a uint4 vector hash code of a float4x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(float4x3 v) { diff --git a/src/Unity.Mathematics/float4x4.gen.cs b/src/Unity.Mathematics/float4x4.gen.cs index 3ca89e45..d7b93485 100644 --- a/src/Unity.Mathematics/float4x4.gen.cs +++ b/src/Unity.Mathematics/float4x4.gen.cs @@ -14,13 +14,18 @@ namespace Unity.Mathematics { + /// A 4x4 matrix of floats. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct float4x4 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public float4 c0; + /// Column 1 of the matrix. public float4 c1; + /// Column 2 of the matrix. public float4 c2; + /// Column 3 of the matrix. public float4 c3; /// float4x4 identity transform. @@ -30,6 +35,10 @@ public partial struct float4x4 : System.IEquatable, IFormattable public static readonly float4x4 zero; /// Constructs a float4x4 matrix from four float4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x4(float4 c0, float4 c1, float4 c2, float4 c3) { @@ -40,6 +49,22 @@ public float4x4(float4 c0, float4 c1, float4 c2, float4 c3) } /// Constructs a float4x4 matrix from 16 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// The matrix at row 3, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x4(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, @@ -53,6 +78,7 @@ public float4x4(float m00, float m01, float m02, float m03, } /// Constructs a float4x4 matrix from a single float value by assigning it to every component. + /// float to convert to float4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x4(float v) { @@ -63,6 +89,7 @@ public float4x4(float v) } /// Constructs a float4x4 matrix from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x4(bool v) { @@ -73,6 +100,7 @@ public float4x4(bool v) } /// Constructs a float4x4 matrix from a bool4x4 matrix by componentwise conversion. + /// bool4x4 to convert to float4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x4(bool4x4 v) { @@ -83,6 +111,7 @@ public float4x4(bool4x4 v) } /// Constructs a float4x4 matrix from a single int value by converting it to float and assigning it to every component. + /// int to convert to float4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x4(int v) { @@ -93,6 +122,7 @@ public float4x4(int v) } /// Constructs a float4x4 matrix from a int4x4 matrix by componentwise conversion. + /// int4x4 to convert to float4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x4(int4x4 v) { @@ -103,6 +133,7 @@ public float4x4(int4x4 v) } /// Constructs a float4x4 matrix from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x4(uint v) { @@ -113,6 +144,7 @@ public float4x4(uint v) } /// Constructs a float4x4 matrix from a uint4x4 matrix by componentwise conversion. + /// uint4x4 to convert to float4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x4(uint4x4 v) { @@ -123,6 +155,7 @@ public float4x4(uint4x4 v) } /// Constructs a float4x4 matrix from a single double value by converting it to float and assigning it to every component. + /// double to convert to float4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x4(double v) { @@ -133,6 +166,7 @@ public float4x4(double v) } /// Constructs a float4x4 matrix from a double4x4 matrix by componentwise conversion. + /// double4x4 to convert to float4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4x4(double4x4 v) { @@ -144,201 +178,326 @@ public float4x4(double4x4 v) /// Implicitly converts a single float value to a float4x4 matrix by assigning it to every component. + /// float to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x4(float v) { return new float4x4(v); } /// Explicitly converts a single bool value to a float4x4 matrix by converting it to float and assigning it to every component. + /// bool to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4x4(bool v) { return new float4x4(v); } /// Explicitly converts a bool4x4 matrix to a float4x4 matrix by componentwise conversion. + /// bool4x4 to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4x4(bool4x4 v) { return new float4x4(v); } /// Implicitly converts a single int value to a float4x4 matrix by converting it to float and assigning it to every component. + /// int to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x4(int v) { return new float4x4(v); } /// Implicitly converts a int4x4 matrix to a float4x4 matrix by componentwise conversion. + /// int4x4 to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x4(int4x4 v) { return new float4x4(v); } /// Implicitly converts a single uint value to a float4x4 matrix by converting it to float and assigning it to every component. + /// uint to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x4(uint v) { return new float4x4(v); } /// Implicitly converts a uint4x4 matrix to a float4x4 matrix by componentwise conversion. + /// uint4x4 to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x4(uint4x4 v) { return new float4x4(v); } /// Explicitly converts a single double value to a float4x4 matrix by converting it to float and assigning it to every component. + /// double to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4x4(double v) { return new float4x4(v); } /// Explicitly converts a double4x4 matrix to a float4x4 matrix by componentwise conversion. + /// double4x4 to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator float4x4(double4x4 v) { return new float4x4(v); } /// Returns the result of a componentwise multiplication operation on two float4x4 matrices. + /// Left hand side float4x4 to use to compute componentwise multiplication. + /// Right hand side float4x4 to use to compute componentwise multiplication. + /// float4x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator * (float4x4 lhs, float4x4 rhs) { return new float4x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } /// Returns the result of a componentwise multiplication operation on a float4x4 matrix and a float value. + /// Left hand side float4x4 to use to compute componentwise multiplication. + /// Right hand side float to use to compute componentwise multiplication. + /// float4x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator * (float4x4 lhs, float rhs) { return new float4x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } /// Returns the result of a componentwise multiplication operation on a float value and a float4x4 matrix. + /// Left hand side float to use to compute componentwise multiplication. + /// Right hand side float4x4 to use to compute componentwise multiplication. + /// float4x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator * (float lhs, float4x4 rhs) { return new float4x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } /// Returns the result of a componentwise addition operation on two float4x4 matrices. + /// Left hand side float4x4 to use to compute componentwise addition. + /// Right hand side float4x4 to use to compute componentwise addition. + /// float4x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator + (float4x4 lhs, float4x4 rhs) { return new float4x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } /// Returns the result of a componentwise addition operation on a float4x4 matrix and a float value. + /// Left hand side float4x4 to use to compute componentwise addition. + /// Right hand side float to use to compute componentwise addition. + /// float4x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator + (float4x4 lhs, float rhs) { return new float4x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } /// Returns the result of a componentwise addition operation on a float value and a float4x4 matrix. + /// Left hand side float to use to compute componentwise addition. + /// Right hand side float4x4 to use to compute componentwise addition. + /// float4x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator + (float lhs, float4x4 rhs) { return new float4x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } /// Returns the result of a componentwise subtraction operation on two float4x4 matrices. + /// Left hand side float4x4 to use to compute componentwise subtraction. + /// Right hand side float4x4 to use to compute componentwise subtraction. + /// float4x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator - (float4x4 lhs, float4x4 rhs) { return new float4x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } /// Returns the result of a componentwise subtraction operation on a float4x4 matrix and a float value. + /// Left hand side float4x4 to use to compute componentwise subtraction. + /// Right hand side float to use to compute componentwise subtraction. + /// float4x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator - (float4x4 lhs, float rhs) { return new float4x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } /// Returns the result of a componentwise subtraction operation on a float value and a float4x4 matrix. + /// Left hand side float to use to compute componentwise subtraction. + /// Right hand side float4x4 to use to compute componentwise subtraction. + /// float4x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator - (float lhs, float4x4 rhs) { return new float4x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } /// Returns the result of a componentwise division operation on two float4x4 matrices. + /// Left hand side float4x4 to use to compute componentwise division. + /// Right hand side float4x4 to use to compute componentwise division. + /// float4x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator / (float4x4 lhs, float4x4 rhs) { return new float4x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } /// Returns the result of a componentwise division operation on a float4x4 matrix and a float value. + /// Left hand side float4x4 to use to compute componentwise division. + /// Right hand side float to use to compute componentwise division. + /// float4x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator / (float4x4 lhs, float rhs) { return new float4x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } /// Returns the result of a componentwise division operation on a float value and a float4x4 matrix. + /// Left hand side float to use to compute componentwise division. + /// Right hand side float4x4 to use to compute componentwise division. + /// float4x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator / (float lhs, float4x4 rhs) { return new float4x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } /// Returns the result of a componentwise modulus operation on two float4x4 matrices. + /// Left hand side float4x4 to use to compute componentwise modulus. + /// Right hand side float4x4 to use to compute componentwise modulus. + /// float4x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator % (float4x4 lhs, float4x4 rhs) { return new float4x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } /// Returns the result of a componentwise modulus operation on a float4x4 matrix and a float value. + /// Left hand side float4x4 to use to compute componentwise modulus. + /// Right hand side float to use to compute componentwise modulus. + /// float4x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator % (float4x4 lhs, float rhs) { return new float4x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } /// Returns the result of a componentwise modulus operation on a float value and a float4x4 matrix. + /// Left hand side float to use to compute componentwise modulus. + /// Right hand side float4x4 to use to compute componentwise modulus. + /// float4x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator % (float lhs, float4x4 rhs) { return new float4x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } /// Returns the result of a componentwise increment operation on a float4x4 matrix. + /// Value to use when computing the componentwise increment. + /// float4x4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator ++ (float4x4 val) { return new float4x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } /// Returns the result of a componentwise decrement operation on a float4x4 matrix. + /// Value to use when computing the componentwise decrement. + /// float4x4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator -- (float4x4 val) { return new float4x4 (--val.c0, --val.c1, --val.c2, --val.c3); } /// Returns the result of a componentwise less than operation on two float4x4 matrices. + /// Left hand side float4x4 to use to compute componentwise less than. + /// Right hand side float4x4 to use to compute componentwise less than. + /// bool4x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator < (float4x4 lhs, float4x4 rhs) { return new bool4x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } /// Returns the result of a componentwise less than operation on a float4x4 matrix and a float value. + /// Left hand side float4x4 to use to compute componentwise less than. + /// Right hand side float to use to compute componentwise less than. + /// bool4x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator < (float4x4 lhs, float rhs) { return new bool4x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } /// Returns the result of a componentwise less than operation on a float value and a float4x4 matrix. + /// Left hand side float to use to compute componentwise less than. + /// Right hand side float4x4 to use to compute componentwise less than. + /// bool4x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator < (float lhs, float4x4 rhs) { return new bool4x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } /// Returns the result of a componentwise less or equal operation on two float4x4 matrices. + /// Left hand side float4x4 to use to compute componentwise less or equal. + /// Right hand side float4x4 to use to compute componentwise less or equal. + /// bool4x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator <= (float4x4 lhs, float4x4 rhs) { return new bool4x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } /// Returns the result of a componentwise less or equal operation on a float4x4 matrix and a float value. + /// Left hand side float4x4 to use to compute componentwise less or equal. + /// Right hand side float to use to compute componentwise less or equal. + /// bool4x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator <= (float4x4 lhs, float rhs) { return new bool4x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } /// Returns the result of a componentwise less or equal operation on a float value and a float4x4 matrix. + /// Left hand side float to use to compute componentwise less or equal. + /// Right hand side float4x4 to use to compute componentwise less or equal. + /// bool4x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator <= (float lhs, float4x4 rhs) { return new bool4x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } /// Returns the result of a componentwise greater than operation on two float4x4 matrices. + /// Left hand side float4x4 to use to compute componentwise greater than. + /// Right hand side float4x4 to use to compute componentwise greater than. + /// bool4x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator > (float4x4 lhs, float4x4 rhs) { return new bool4x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } /// Returns the result of a componentwise greater than operation on a float4x4 matrix and a float value. + /// Left hand side float4x4 to use to compute componentwise greater than. + /// Right hand side float to use to compute componentwise greater than. + /// bool4x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator > (float4x4 lhs, float rhs) { return new bool4x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } /// Returns the result of a componentwise greater than operation on a float value and a float4x4 matrix. + /// Left hand side float to use to compute componentwise greater than. + /// Right hand side float4x4 to use to compute componentwise greater than. + /// bool4x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator > (float lhs, float4x4 rhs) { return new bool4x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } /// Returns the result of a componentwise greater or equal operation on two float4x4 matrices. + /// Left hand side float4x4 to use to compute componentwise greater or equal. + /// Right hand side float4x4 to use to compute componentwise greater or equal. + /// bool4x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator >= (float4x4 lhs, float4x4 rhs) { return new bool4x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } /// Returns the result of a componentwise greater or equal operation on a float4x4 matrix and a float value. + /// Left hand side float4x4 to use to compute componentwise greater or equal. + /// Right hand side float to use to compute componentwise greater or equal. + /// bool4x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator >= (float4x4 lhs, float rhs) { return new bool4x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a float value and a float4x4 matrix. + /// Left hand side float to use to compute componentwise greater or equal. + /// Right hand side float4x4 to use to compute componentwise greater or equal. + /// bool4x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator >= (float lhs, float4x4 rhs) { return new bool4x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } /// Returns the result of a componentwise unary minus operation on a float4x4 matrix. + /// Value to use when computing the componentwise unary minus. + /// float4x4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator - (float4x4 val) { return new float4x4 (-val.c0, -val.c1, -val.c2, -val.c3); } /// Returns the result of a componentwise unary plus operation on a float4x4 matrix. + /// Value to use when computing the componentwise unary plus. + /// float4x4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 operator + (float4x4 val) { return new float4x4 (+val.c0, +val.c1, +val.c2, +val.c3); } /// Returns the result of a componentwise equality operation on two float4x4 matrices. + /// Left hand side float4x4 to use to compute componentwise equality. + /// Right hand side float4x4 to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (float4x4 lhs, float4x4 rhs) { return new bool4x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on a float4x4 matrix and a float value. + /// Left hand side float4x4 to use to compute componentwise equality. + /// Right hand side float to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (float4x4 lhs, float rhs) { return new bool4x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on a float value and a float4x4 matrix. + /// Left hand side float to use to compute componentwise equality. + /// Right hand side float4x4 to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (float lhs, float4x4 rhs) { return new bool4x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two float4x4 matrices. + /// Left hand side float4x4 to use to compute componentwise not equal. + /// Right hand side float4x4 to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (float4x4 lhs, float4x4 rhs) { return new bool4x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on a float4x4 matrix and a float value. + /// Left hand side float4x4 to use to compute componentwise not equal. + /// Right hand side float to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (float4x4 lhs, float rhs) { return new bool4x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on a float value and a float4x4 matrix. + /// Left hand side float to use to compute componentwise not equal. + /// Right hand side float4x4 to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (float lhs, float4x4 rhs) { return new bool4x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } @@ -358,19 +517,25 @@ unsafe public ref float4 this[int index] } /// Returns true if the float4x4 is equal to a given float4x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(float4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the float4x4 is equal to a given float4x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is float4x4 converted && Equals(converted); } /// Returns a hash code for the float4x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the float4x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -378,6 +543,9 @@ public override string ToString() } /// Returns a string representation of the float4x4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -389,10 +557,32 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a float4x4 matrix constructed from four float4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// float4x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(float4 c0, float4 c1, float4 c2, float4 c3) { return new float4x4(c0, c1, c2, c3); } /// Returns a float4x4 matrix constructed from from 16 float values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// The matrix at row 3, column 3 will be set to this value. + /// float4x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, @@ -406,42 +596,63 @@ public static float4x4 float4x4(float m00, float m01, float m02, float m03, } /// Returns a float4x4 matrix constructed from a single float value by assigning it to every component. + /// float to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(float v) { return new float4x4(v); } /// Returns a float4x4 matrix constructed from a single bool value by converting it to float and assigning it to every component. + /// bool to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(bool v) { return new float4x4(v); } /// Return a float4x4 matrix constructed from a bool4x4 matrix by componentwise conversion. + /// bool4x4 to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(bool4x4 v) { return new float4x4(v); } /// Returns a float4x4 matrix constructed from a single int value by converting it to float and assigning it to every component. + /// int to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(int v) { return new float4x4(v); } /// Return a float4x4 matrix constructed from a int4x4 matrix by componentwise conversion. + /// int4x4 to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(int4x4 v) { return new float4x4(v); } /// Returns a float4x4 matrix constructed from a single uint value by converting it to float and assigning it to every component. + /// uint to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(uint v) { return new float4x4(v); } /// Return a float4x4 matrix constructed from a uint4x4 matrix by componentwise conversion. + /// uint4x4 to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(uint4x4 v) { return new float4x4(v); } /// Returns a float4x4 matrix constructed from a single double value by converting it to float and assigning it to every component. + /// double to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(double v) { return new float4x4(v); } /// Return a float4x4 matrix constructed from a double4x4 matrix by componentwise conversion. + /// double4x4 to convert to float4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(double4x4 v) { return new float4x4(v); } /// Return the result of rotating a float3 vector by a float4x4 matrix + /// Left hand side matrix argument that specifies the rotation. + /// Right hand side vector argument to be rotated. + /// The rotated vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 rotate(float4x4 a, float3 b) { @@ -449,6 +660,9 @@ public static float3 rotate(float4x4 a, float3 b) } /// Return the result of transforming a float3 point by a float4x4 matrix + /// Left hand side matrix argument that specifies the transformation. + /// Right hand side point argument to be transformed. + /// The transformed point. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 transform(float4x4 a, float3 b) { @@ -456,6 +670,8 @@ public static float3 transform(float4x4 a, float3 b) } /// Return the float4x4 transpose of a float4x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 transpose(float4x4 v) { @@ -467,6 +683,8 @@ public static float4x4 transpose(float4x4 v) } /// Returns the float4x4 full inverse of a float4x4 matrix. + /// Matrix to invert. + /// The inverted matrix. public static float4x4 inverse(float4x4 m) { float4 c0 = m.c0; @@ -529,7 +747,9 @@ public static float4x4 inverse(float4x4 m) return res; } - // Fast matrix inverse for rigid transforms (Orthonormal basis and translation) + /// Fast matrix inverse for rigid transforms (orthonormal basis and translation) + /// Matrix to invert. + /// The inverted matrix. public static float4x4 fastinverse(float4x4 m) { float4 c0 = m.c0; @@ -555,6 +775,8 @@ public static float4x4 fastinverse(float4x4 m) } /// Returns the determinant of a float4x4 matrix. + /// Matrix to use when computing determinant. + /// The determinant of the matrix. public static float determinant(float4x4 m) { float4 c0 = m.c0; @@ -570,7 +792,9 @@ public static float determinant(float4x4 m) return c0.x * m00 - c1.x * m01 + c2.x * m02 - c3.x * m03; } - /// Returns a uint hash code of a float4x4 vector. + /// Returns a uint hash code of a float4x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(float4x4 v) { @@ -581,10 +805,12 @@ public static uint hash(float4x4 v) } /// - /// Returns a uint4 vector hash code of a float4x4 vector. + /// Returns a uint4 vector hash code of a float4x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(float4x4 v) { diff --git a/src/Unity.Mathematics/half.cs b/src/Unity.Mathematics/half.cs index 7b6901f9..0e5a5286 100644 --- a/src/Unity.Mathematics/half.cs +++ b/src/Unity.Mathematics/half.cs @@ -4,22 +4,43 @@ namespace Unity.Mathematics { + /// + /// A half precision float that uses 16 bits instead of 32 bits. + /// [Il2CppEagerStaticClassConstruction] [Serializable] public struct half : System.IEquatable, IFormattable { + /// + /// The raw 16 bit value of the half. + /// public ushort value; /// half zero value. public static readonly half zero = new half(); + /// + /// The maximum finite half value as a single precision float. + /// public static float MaxValue { get { return 65504.0f; } } + + /// + /// The minimum finite half value as a single precision float. + /// public static float MinValue { get { return -65504.0f; } } + /// + /// The maximum finite half value as a half. + /// public static half MaxValueAsHalf => new half(MaxValue); + + /// + /// The minimum finite half value as a half. + /// public static half MinValueAsHalf => new half(MinValue); /// Constructs a half value from a half value. + /// The input half value to copy. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half(half x) { @@ -27,6 +48,7 @@ public half(half x) } /// Constructs a half value from a float value. + /// The single precision float value to convert to half. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half(float v) { @@ -34,6 +56,7 @@ public half(float v) } /// Constructs a half value from a double value. + /// The double precision float value to convert to half. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half(double v) { @@ -41,43 +64,63 @@ public half(double v) } /// Explicitly converts a float value to a half value. + /// The single precision float value to convert to half. + /// The converted half value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator half(float v) { return new half(v); } /// Explicitly converts a double value to a half value. + /// The double precision float value to convert to half. + /// The converted half value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator half(double v) { return new half(v); } /// Implicitly converts a half value to a float value. + /// The half value to convert to a single precision float. + /// The converted single precision float value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float(half d) { return math.f16tof32(d.value); } /// Implicitly converts a half value to a double value. + /// The half value to convert to double precision float. + /// The converted double precision float value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator double(half d) { return math.f16tof32(d.value); } - /// Returns whether two half values are equal. + /// Returns whether two half values are bitwise equivalent. + /// Left hand side half value to use in comparison. + /// Right hand side half value to use in comparison. + /// True if the two half values are bitwise equivalent, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool operator ==(half lhs, half rhs) { return lhs.value == rhs.value; } - /// Returns whether two half values are different. + /// Returns whether two half values are not bitwise equivalent. + /// Left hand side half value to use in comparison. + /// Right hand side half value to use in comparison. + /// True if the two half values are not bitwise equivalent, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool operator !=(half lhs, half rhs) { return lhs.value != rhs.value; } - /// Returns true if the half is equal to a given half, false otherwise. + /// Returns true if the half is bitwise equivalent to a given half, false otherwise. + /// Right hand side half value to use in comparison. + /// True if the half value is bitwise equivalent to the input, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(half rhs) { return value == rhs.value; } /// Returns true if the half is equal to a given half, false otherwise. + /// Right hand side object to use in comparison. + /// True if the object is of type half and is bitwise equivalent, false otherwise. public override bool Equals(object o) { return o is half converted && Equals(converted); } /// Returns a hash code for the half. + /// The computed hash code of the half. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)value; } /// Returns a string representation of the half. + /// The string representation of the half. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -85,6 +128,9 @@ public override string ToString() } /// Returns a string representation of the half using a specified format and culture-specific format information. + /// The format string to use during string formatting. + /// The format provider to use during string formatting. + /// The string representation of the half. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -95,18 +141,26 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a half value constructed from a half values. + /// The input half value to copy. + /// The constructed half value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half half(half x) { return new half(x); } /// Returns a half value constructed from a float value. + /// The single precision float value to convert to half. + /// The constructed half value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half half(float v) { return new half(v); } /// Returns a half value constructed from a double value. + /// The double precision float value to convert to half. + /// The constructed half value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half half(double v) { return new half(v); } /// Returns a uint hash code of a half value. + /// The half value to hash. + /// The computed hash code of the half value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(half v) { diff --git a/src/Unity.Mathematics/half2.gen.cs b/src/Unity.Mathematics/half2.gen.cs index 4b6acd2b..d1fb87b5 100644 --- a/src/Unity.Mathematics/half2.gen.cs +++ b/src/Unity.Mathematics/half2.gen.cs @@ -15,18 +15,23 @@ namespace Unity.Mathematics { + /// A 2 component vector of halfs. [DebuggerTypeProxy(typeof(half2.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct half2 : System.IEquatable, IFormattable { + /// x component of the vector. public half x; + /// y component of the vector. public half y; /// half2 zero value. public static readonly half2 zero; /// Constructs a half2 vector from two half values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half2(half x, half y) { @@ -35,6 +40,7 @@ public half2(half x, half y) } /// Constructs a half2 vector from a half2 vector. + /// The constructed vector's xy components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half2(half2 xy) { @@ -43,6 +49,7 @@ public half2(half2 xy) } /// Constructs a half2 vector from a single half value by assigning it to every component. + /// half to convert to half2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half2(half v) { @@ -51,6 +58,7 @@ public half2(half v) } /// Constructs a half2 vector from a single float value by converting it to half and assigning it to every component. + /// float to convert to half2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half2(float v) { @@ -59,6 +67,7 @@ public half2(float v) } /// Constructs a half2 vector from a float2 vector by componentwise conversion. + /// float2 to convert to half2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half2(float2 v) { @@ -67,6 +76,7 @@ public half2(float2 v) } /// Constructs a half2 vector from a single double value by converting it to half and assigning it to every component. + /// double to convert to half2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half2(double v) { @@ -75,6 +85,7 @@ public half2(double v) } /// Constructs a half2 vector from a double2 vector by componentwise conversion. + /// double2 to convert to half2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half2(double2 v) { @@ -84,54 +95,83 @@ public half2(double2 v) /// Implicitly converts a single half value to a half2 vector by assigning it to every component. + /// half to convert to half2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator half2(half v) { return new half2(v); } /// Explicitly converts a single float value to a half2 vector by converting it to half and assigning it to every component. + /// float to convert to half2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator half2(float v) { return new half2(v); } /// Explicitly converts a float2 vector to a half2 vector by componentwise conversion. + /// float2 to convert to half2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator half2(float2 v) { return new half2(v); } /// Explicitly converts a single double value to a half2 vector by converting it to half and assigning it to every component. + /// double to convert to half2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator half2(double v) { return new half2(v); } /// Explicitly converts a double2 vector to a half2 vector by componentwise conversion. + /// double2 to convert to half2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator half2(double2 v) { return new half2(v); } /// Returns the result of a componentwise equality operation on two half2 vectors. + /// Left hand side half2 to use to compute componentwise equality. + /// Right hand side half2 to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (half2 lhs, half2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } /// Returns the result of a componentwise equality operation on a half2 vector and a half value. + /// Left hand side half2 to use to compute componentwise equality. + /// Right hand side half to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (half2 lhs, half rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } /// Returns the result of a componentwise equality operation on a half value and a half2 vector. + /// Left hand side half to use to compute componentwise equality. + /// Right hand side half2 to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (half lhs, half2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } /// Returns the result of a componentwise not equal operation on two half2 vectors. + /// Left hand side half2 to use to compute componentwise not equal. + /// Right hand side half2 to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (half2 lhs, half2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } /// Returns the result of a componentwise not equal operation on a half2 vector and a half value. + /// Left hand side half2 to use to compute componentwise not equal. + /// Right hand side half to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (half2 lhs, half rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } /// Returns the result of a componentwise not equal operation on a half value and a half2 vector. + /// Left hand side half to use to compute componentwise not equal. + /// Right hand side half2 to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (half lhs, half2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxxx { @@ -140,6 +180,7 @@ public half4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxxy { @@ -148,6 +189,7 @@ public half4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxyx { @@ -156,6 +198,7 @@ public half4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxyy { @@ -164,6 +207,7 @@ public half4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyxx { @@ -172,6 +216,7 @@ public half4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyxy { @@ -180,6 +225,7 @@ public half4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyyx { @@ -188,6 +234,7 @@ public half4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyyy { @@ -196,6 +243,7 @@ public half4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxxx { @@ -204,6 +252,7 @@ public half4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxxy { @@ -212,6 +261,7 @@ public half4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxyx { @@ -220,6 +270,7 @@ public half4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxyy { @@ -228,6 +279,7 @@ public half4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyxx { @@ -236,6 +288,7 @@ public half4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyxy { @@ -244,6 +297,7 @@ public half4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyyx { @@ -252,6 +306,7 @@ public half4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyyy { @@ -260,6 +315,7 @@ public half4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xxx { @@ -268,6 +324,7 @@ public half3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xxy { @@ -276,6 +333,7 @@ public half3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xyx { @@ -284,6 +342,7 @@ public half3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xyy { @@ -292,6 +351,7 @@ public half3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yxx { @@ -300,6 +360,7 @@ public half3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yxy { @@ -308,6 +369,7 @@ public half3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yyx { @@ -316,6 +378,7 @@ public half3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yyy { @@ -324,6 +387,7 @@ public half3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 xx { @@ -332,6 +396,7 @@ public half2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 xy { @@ -342,6 +407,7 @@ public half2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 yx { @@ -352,6 +418,7 @@ public half2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 yy { @@ -383,19 +450,25 @@ unsafe public half this[int index] } /// Returns true if the half2 is equal to a given half2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(half2 rhs) { return x == rhs.x && y == rhs.y; } /// Returns true if the half2 is equal to a given half2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is half2 converted && Equals(converted); } /// Returns a hash code for the half2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the half2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -403,6 +476,9 @@ public override string ToString() } /// Returns a string representation of the half2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -425,34 +501,51 @@ public DebuggerProxy(half2 v) public static partial class math { /// Returns a half2 vector constructed from two half values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// half2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half2 half2(half x, half y) { return new half2(x, y); } /// Returns a half2 vector constructed from a half2 vector. + /// The constructed vector's xy components will be set to this value. + /// half2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half2 half2(half2 xy) { return new half2(xy); } /// Returns a half2 vector constructed from a single half value by assigning it to every component. + /// half to convert to half2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half2 half2(half v) { return new half2(v); } /// Returns a half2 vector constructed from a single float value by converting it to half and assigning it to every component. + /// float to convert to half2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half2 half2(float v) { return new half2(v); } /// Return a half2 vector constructed from a float2 vector by componentwise conversion. + /// float2 to convert to half2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half2 half2(float2 v) { return new half2(v); } /// Returns a half2 vector constructed from a single double value by converting it to half and assigning it to every component. + /// double to convert to half2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half2 half2(double v) { return new half2(v); } /// Return a half2 vector constructed from a double2 vector by componentwise conversion. + /// double2 to convert to half2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half2 half2(double2 v) { return new half2(v); } /// Returns a uint hash code of a half2 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(half2 v) { @@ -464,6 +557,8 @@ public static uint hash(half2 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(half2 v) { diff --git a/src/Unity.Mathematics/half3.gen.cs b/src/Unity.Mathematics/half3.gen.cs index d785a6e3..a3ca987d 100644 --- a/src/Unity.Mathematics/half3.gen.cs +++ b/src/Unity.Mathematics/half3.gen.cs @@ -15,19 +15,26 @@ namespace Unity.Mathematics { + /// A 3 component vector of halfs. [DebuggerTypeProxy(typeof(half3.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct half3 : System.IEquatable, IFormattable { + /// x component of the vector. public half x; + /// y component of the vector. public half y; + /// z component of the vector. public half z; /// half3 zero value. public static readonly half3 zero; /// Constructs a half3 vector from three half values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half3(half x, half y, half z) { @@ -37,6 +44,8 @@ public half3(half x, half y, half z) } /// Constructs a half3 vector from a half value and a half2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half3(half x, half2 yz) { @@ -46,6 +55,8 @@ public half3(half x, half2 yz) } /// Constructs a half3 vector from a half2 vector and a half value. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half3(half2 xy, half z) { @@ -55,6 +66,7 @@ public half3(half2 xy, half z) } /// Constructs a half3 vector from a half3 vector. + /// The constructed vector's xyz components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half3(half3 xyz) { @@ -64,6 +76,7 @@ public half3(half3 xyz) } /// Constructs a half3 vector from a single half value by assigning it to every component. + /// half to convert to half3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half3(half v) { @@ -73,6 +86,7 @@ public half3(half v) } /// Constructs a half3 vector from a single float value by converting it to half and assigning it to every component. + /// float to convert to half3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half3(float v) { @@ -82,6 +96,7 @@ public half3(float v) } /// Constructs a half3 vector from a float3 vector by componentwise conversion. + /// float3 to convert to half3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half3(float3 v) { @@ -91,6 +106,7 @@ public half3(float3 v) } /// Constructs a half3 vector from a single double value by converting it to half and assigning it to every component. + /// double to convert to half3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half3(double v) { @@ -100,6 +116,7 @@ public half3(double v) } /// Constructs a half3 vector from a double3 vector by componentwise conversion. + /// double3 to convert to half3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half3(double3 v) { @@ -110,54 +127,83 @@ public half3(double3 v) /// Implicitly converts a single half value to a half3 vector by assigning it to every component. + /// half to convert to half3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator half3(half v) { return new half3(v); } /// Explicitly converts a single float value to a half3 vector by converting it to half and assigning it to every component. + /// float to convert to half3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator half3(float v) { return new half3(v); } /// Explicitly converts a float3 vector to a half3 vector by componentwise conversion. + /// float3 to convert to half3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator half3(float3 v) { return new half3(v); } /// Explicitly converts a single double value to a half3 vector by converting it to half and assigning it to every component. + /// double to convert to half3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator half3(double v) { return new half3(v); } /// Explicitly converts a double3 vector to a half3 vector by componentwise conversion. + /// double3 to convert to half3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator half3(double3 v) { return new half3(v); } /// Returns the result of a componentwise equality operation on two half3 vectors. + /// Left hand side half3 to use to compute componentwise equality. + /// Right hand side half3 to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (half3 lhs, half3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } /// Returns the result of a componentwise equality operation on a half3 vector and a half value. + /// Left hand side half3 to use to compute componentwise equality. + /// Right hand side half to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (half3 lhs, half rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } /// Returns the result of a componentwise equality operation on a half value and a half3 vector. + /// Left hand side half to use to compute componentwise equality. + /// Right hand side half3 to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (half lhs, half3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } /// Returns the result of a componentwise not equal operation on two half3 vectors. + /// Left hand side half3 to use to compute componentwise not equal. + /// Right hand side half3 to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (half3 lhs, half3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } /// Returns the result of a componentwise not equal operation on a half3 vector and a half value. + /// Left hand side half3 to use to compute componentwise not equal. + /// Right hand side half to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (half3 lhs, half rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } /// Returns the result of a componentwise not equal operation on a half value and a half3 vector. + /// Left hand side half to use to compute componentwise not equal. + /// Right hand side half3 to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (half lhs, half3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxxx { @@ -166,6 +212,7 @@ public half4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxxy { @@ -174,6 +221,7 @@ public half4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxxz { @@ -182,6 +230,7 @@ public half4 xxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxyx { @@ -190,6 +239,7 @@ public half4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxyy { @@ -198,6 +248,7 @@ public half4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxyz { @@ -206,6 +257,7 @@ public half4 xxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxzx { @@ -214,6 +266,7 @@ public half4 xxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxzy { @@ -222,6 +275,7 @@ public half4 xxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxzz { @@ -230,6 +284,7 @@ public half4 xxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyxx { @@ -238,6 +293,7 @@ public half4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyxy { @@ -246,6 +302,7 @@ public half4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyxz { @@ -254,6 +311,7 @@ public half4 xyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyyx { @@ -262,6 +320,7 @@ public half4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyyy { @@ -270,6 +329,7 @@ public half4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyyz { @@ -278,6 +338,7 @@ public half4 xyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyzx { @@ -286,6 +347,7 @@ public half4 xyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyzy { @@ -294,6 +356,7 @@ public half4 xyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyzz { @@ -302,6 +365,7 @@ public half4 xyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzxx { @@ -310,6 +374,7 @@ public half4 xzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzxy { @@ -318,6 +383,7 @@ public half4 xzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzxz { @@ -326,6 +392,7 @@ public half4 xzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzyx { @@ -334,6 +401,7 @@ public half4 xzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzyy { @@ -342,6 +410,7 @@ public half4 xzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzyz { @@ -350,6 +419,7 @@ public half4 xzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzzx { @@ -358,6 +428,7 @@ public half4 xzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzzy { @@ -366,6 +437,7 @@ public half4 xzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzzz { @@ -374,6 +446,7 @@ public half4 xzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxxx { @@ -382,6 +455,7 @@ public half4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxxy { @@ -390,6 +464,7 @@ public half4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxxz { @@ -398,6 +473,7 @@ public half4 yxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxyx { @@ -406,6 +482,7 @@ public half4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxyy { @@ -414,6 +491,7 @@ public half4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxyz { @@ -422,6 +500,7 @@ public half4 yxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxzx { @@ -430,6 +509,7 @@ public half4 yxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxzy { @@ -438,6 +518,7 @@ public half4 yxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxzz { @@ -446,6 +527,7 @@ public half4 yxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyxx { @@ -454,6 +536,7 @@ public half4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyxy { @@ -462,6 +545,7 @@ public half4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyxz { @@ -470,6 +554,7 @@ public half4 yyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyyx { @@ -478,6 +563,7 @@ public half4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyyy { @@ -486,6 +572,7 @@ public half4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyyz { @@ -494,6 +581,7 @@ public half4 yyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyzx { @@ -502,6 +590,7 @@ public half4 yyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyzy { @@ -510,6 +599,7 @@ public half4 yyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyzz { @@ -518,6 +608,7 @@ public half4 yyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzxx { @@ -526,6 +617,7 @@ public half4 yzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzxy { @@ -534,6 +626,7 @@ public half4 yzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzxz { @@ -542,6 +635,7 @@ public half4 yzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzyx { @@ -550,6 +644,7 @@ public half4 yzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzyy { @@ -558,6 +653,7 @@ public half4 yzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzyz { @@ -566,6 +662,7 @@ public half4 yzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzzx { @@ -574,6 +671,7 @@ public half4 yzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzzy { @@ -582,6 +680,7 @@ public half4 yzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzzz { @@ -590,6 +689,7 @@ public half4 yzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxxx { @@ -598,6 +698,7 @@ public half4 zxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxxy { @@ -606,6 +707,7 @@ public half4 zxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxxz { @@ -614,6 +716,7 @@ public half4 zxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxyx { @@ -622,6 +725,7 @@ public half4 zxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxyy { @@ -630,6 +734,7 @@ public half4 zxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxyz { @@ -638,6 +743,7 @@ public half4 zxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxzx { @@ -646,6 +752,7 @@ public half4 zxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxzy { @@ -654,6 +761,7 @@ public half4 zxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxzz { @@ -662,6 +770,7 @@ public half4 zxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyxx { @@ -670,6 +779,7 @@ public half4 zyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyxy { @@ -678,6 +788,7 @@ public half4 zyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyxz { @@ -686,6 +797,7 @@ public half4 zyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyyx { @@ -694,6 +806,7 @@ public half4 zyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyyy { @@ -702,6 +815,7 @@ public half4 zyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyyz { @@ -710,6 +824,7 @@ public half4 zyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyzx { @@ -718,6 +833,7 @@ public half4 zyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyzy { @@ -726,6 +842,7 @@ public half4 zyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyzz { @@ -734,6 +851,7 @@ public half4 zyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzxx { @@ -742,6 +860,7 @@ public half4 zzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzxy { @@ -750,6 +869,7 @@ public half4 zzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzxz { @@ -758,6 +878,7 @@ public half4 zzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzyx { @@ -766,6 +887,7 @@ public half4 zzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzyy { @@ -774,6 +896,7 @@ public half4 zzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzyz { @@ -782,6 +905,7 @@ public half4 zzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzzx { @@ -790,6 +914,7 @@ public half4 zzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzzy { @@ -798,6 +923,7 @@ public half4 zzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzzz { @@ -806,6 +932,7 @@ public half4 zzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xxx { @@ -814,6 +941,7 @@ public half3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xxy { @@ -822,6 +950,7 @@ public half3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xxz { @@ -830,6 +959,7 @@ public half3 xxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xyx { @@ -838,6 +968,7 @@ public half3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xyy { @@ -846,6 +977,7 @@ public half3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xyz { @@ -856,6 +988,7 @@ public half3 xyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xzx { @@ -864,6 +997,7 @@ public half3 xzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xzy { @@ -874,6 +1008,7 @@ public half3 xzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xzz { @@ -882,6 +1017,7 @@ public half3 xzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yxx { @@ -890,6 +1026,7 @@ public half3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yxy { @@ -898,6 +1035,7 @@ public half3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yxz { @@ -908,6 +1046,7 @@ public half3 yxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yyx { @@ -916,6 +1055,7 @@ public half3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yyy { @@ -924,6 +1064,7 @@ public half3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yyz { @@ -932,6 +1073,7 @@ public half3 yyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yzx { @@ -942,6 +1084,7 @@ public half3 yzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yzy { @@ -950,6 +1093,7 @@ public half3 yzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yzz { @@ -958,6 +1102,7 @@ public half3 yzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zxx { @@ -966,6 +1111,7 @@ public half3 zxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zxy { @@ -976,6 +1122,7 @@ public half3 zxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zxz { @@ -984,6 +1131,7 @@ public half3 zxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zyx { @@ -994,6 +1142,7 @@ public half3 zyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zyy { @@ -1002,6 +1151,7 @@ public half3 zyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zyz { @@ -1010,6 +1160,7 @@ public half3 zyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zzx { @@ -1018,6 +1169,7 @@ public half3 zzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zzy { @@ -1026,6 +1178,7 @@ public half3 zzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zzz { @@ -1034,6 +1187,7 @@ public half3 zzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 xx { @@ -1042,6 +1196,7 @@ public half2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 xy { @@ -1052,6 +1207,7 @@ public half2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 xz { @@ -1062,6 +1218,7 @@ public half2 xz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 yx { @@ -1072,6 +1229,7 @@ public half2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 yy { @@ -1080,6 +1238,7 @@ public half2 yy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 yz { @@ -1090,6 +1249,7 @@ public half2 yz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 zx { @@ -1100,6 +1260,7 @@ public half2 zx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 zy { @@ -1110,6 +1271,7 @@ public half2 zy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 zz { @@ -1141,19 +1303,25 @@ unsafe public half this[int index] } /// Returns true if the half3 is equal to a given half3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(half3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } /// Returns true if the half3 is equal to a given half3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is half3 converted && Equals(converted); } /// Returns a hash code for the half3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the half3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -1161,6 +1329,9 @@ public override string ToString() } /// Returns a string representation of the half3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -1185,42 +1356,66 @@ public DebuggerProxy(half3 v) public static partial class math { /// Returns a half3 vector constructed from three half values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// half3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half3 half3(half x, half y, half z) { return new half3(x, y, z); } /// Returns a half3 vector constructed from a half value and a half2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// half3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half3 half3(half x, half2 yz) { return new half3(x, yz); } /// Returns a half3 vector constructed from a half2 vector and a half value. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// half3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half3 half3(half2 xy, half z) { return new half3(xy, z); } /// Returns a half3 vector constructed from a half3 vector. + /// The constructed vector's xyz components will be set to this value. + /// half3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half3 half3(half3 xyz) { return new half3(xyz); } /// Returns a half3 vector constructed from a single half value by assigning it to every component. + /// half to convert to half3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half3 half3(half v) { return new half3(v); } /// Returns a half3 vector constructed from a single float value by converting it to half and assigning it to every component. + /// float to convert to half3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half3 half3(float v) { return new half3(v); } /// Return a half3 vector constructed from a float3 vector by componentwise conversion. + /// float3 to convert to half3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half3 half3(float3 v) { return new half3(v); } /// Returns a half3 vector constructed from a single double value by converting it to half and assigning it to every component. + /// double to convert to half3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half3 half3(double v) { return new half3(v); } /// Return a half3 vector constructed from a double3 vector by componentwise conversion. + /// double3 to convert to half3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half3 half3(double3 v) { return new half3(v); } /// Returns a uint hash code of a half3 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(half3 v) { @@ -1232,6 +1427,8 @@ public static uint hash(half3 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(half3 v) { diff --git a/src/Unity.Mathematics/half4.gen.cs b/src/Unity.Mathematics/half4.gen.cs index a1e444a2..0251fa69 100644 --- a/src/Unity.Mathematics/half4.gen.cs +++ b/src/Unity.Mathematics/half4.gen.cs @@ -15,20 +15,29 @@ namespace Unity.Mathematics { + /// A 4 component vector of halfs. [DebuggerTypeProxy(typeof(half4.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct half4 : System.IEquatable, IFormattable { + /// x component of the vector. public half x; + /// y component of the vector. public half y; + /// z component of the vector. public half z; + /// w component of the vector. public half w; /// half4 zero value. public static readonly half4 zero; /// Constructs a half4 vector from four half values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half4(half x, half y, half z, half w) { @@ -39,6 +48,9 @@ public half4(half x, half y, half z, half w) } /// Constructs a half4 vector from two half values and a half2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's zw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half4(half x, half y, half2 zw) { @@ -49,6 +61,9 @@ public half4(half x, half y, half2 zw) } /// Constructs a half4 vector from a half value, a half2 vector and a half value. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half4(half x, half2 yz, half w) { @@ -59,6 +74,8 @@ public half4(half x, half2 yz, half w) } /// Constructs a half4 vector from a half value and a half3 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yzw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half4(half x, half3 yzw) { @@ -69,6 +86,9 @@ public half4(half x, half3 yzw) } /// Constructs a half4 vector from a half2 vector and two half values. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half4(half2 xy, half z, half w) { @@ -79,6 +99,8 @@ public half4(half2 xy, half z, half w) } /// Constructs a half4 vector from two half2 vectors. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's zw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half4(half2 xy, half2 zw) { @@ -89,6 +111,8 @@ public half4(half2 xy, half2 zw) } /// Constructs a half4 vector from a half3 vector and a half value. + /// The constructed vector's xyz components will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half4(half3 xyz, half w) { @@ -99,6 +123,7 @@ public half4(half3 xyz, half w) } /// Constructs a half4 vector from a half4 vector. + /// The constructed vector's xyzw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public half4(half4 xyzw) { @@ -109,6 +134,7 @@ public half4(half4 xyzw) } /// Constructs a half4 vector from a single half value by assigning it to every component. + /// half to convert to half4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half4(half v) { @@ -119,6 +145,7 @@ public half4(half v) } /// Constructs a half4 vector from a single float value by converting it to half and assigning it to every component. + /// float to convert to half4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half4(float v) { @@ -129,6 +156,7 @@ public half4(float v) } /// Constructs a half4 vector from a float4 vector by componentwise conversion. + /// float4 to convert to half4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half4(float4 v) { @@ -139,6 +167,7 @@ public half4(float4 v) } /// Constructs a half4 vector from a single double value by converting it to half and assigning it to every component. + /// double to convert to half4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half4(double v) { @@ -149,6 +178,7 @@ public half4(double v) } /// Constructs a half4 vector from a double4 vector by componentwise conversion. + /// double4 to convert to half4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public half4(double4 v) { @@ -160,54 +190,83 @@ public half4(double4 v) /// Implicitly converts a single half value to a half4 vector by assigning it to every component. + /// half to convert to half4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator half4(half v) { return new half4(v); } /// Explicitly converts a single float value to a half4 vector by converting it to half and assigning it to every component. + /// float to convert to half4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator half4(float v) { return new half4(v); } /// Explicitly converts a float4 vector to a half4 vector by componentwise conversion. + /// float4 to convert to half4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator half4(float4 v) { return new half4(v); } /// Explicitly converts a single double value to a half4 vector by converting it to half and assigning it to every component. + /// double to convert to half4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator half4(double v) { return new half4(v); } /// Explicitly converts a double4 vector to a half4 vector by componentwise conversion. + /// double4 to convert to half4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator half4(double4 v) { return new half4(v); } /// Returns the result of a componentwise equality operation on two half4 vectors. + /// Left hand side half4 to use to compute componentwise equality. + /// Right hand side half4 to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (half4 lhs, half4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } /// Returns the result of a componentwise equality operation on a half4 vector and a half value. + /// Left hand side half4 to use to compute componentwise equality. + /// Right hand side half to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (half4 lhs, half rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } /// Returns the result of a componentwise equality operation on a half value and a half4 vector. + /// Left hand side half to use to compute componentwise equality. + /// Right hand side half4 to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (half lhs, half4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } /// Returns the result of a componentwise not equal operation on two half4 vectors. + /// Left hand side half4 to use to compute componentwise not equal. + /// Right hand side half4 to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (half4 lhs, half4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } /// Returns the result of a componentwise not equal operation on a half4 vector and a half value. + /// Left hand side half4 to use to compute componentwise not equal. + /// Right hand side half to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (half4 lhs, half rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } /// Returns the result of a componentwise not equal operation on a half value and a half4 vector. + /// Left hand side half to use to compute componentwise not equal. + /// Right hand side half4 to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (half lhs, half4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxxx { @@ -216,6 +275,7 @@ public half4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxxy { @@ -224,6 +284,7 @@ public half4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxxz { @@ -232,6 +293,7 @@ public half4 xxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxxw { @@ -240,6 +302,7 @@ public half4 xxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxyx { @@ -248,6 +311,7 @@ public half4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxyy { @@ -256,6 +320,7 @@ public half4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxyz { @@ -264,6 +329,7 @@ public half4 xxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxyw { @@ -272,6 +338,7 @@ public half4 xxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxzx { @@ -280,6 +347,7 @@ public half4 xxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxzy { @@ -288,6 +356,7 @@ public half4 xxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxzz { @@ -296,6 +365,7 @@ public half4 xxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxzw { @@ -304,6 +374,7 @@ public half4 xxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxwx { @@ -312,6 +383,7 @@ public half4 xxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxwy { @@ -320,6 +392,7 @@ public half4 xxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxwz { @@ -328,6 +401,7 @@ public half4 xxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xxww { @@ -336,6 +410,7 @@ public half4 xxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyxx { @@ -344,6 +419,7 @@ public half4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyxy { @@ -352,6 +428,7 @@ public half4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyxz { @@ -360,6 +437,7 @@ public half4 xyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyxw { @@ -368,6 +446,7 @@ public half4 xyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyyx { @@ -376,6 +455,7 @@ public half4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyyy { @@ -384,6 +464,7 @@ public half4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyyz { @@ -392,6 +473,7 @@ public half4 xyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyyw { @@ -400,6 +482,7 @@ public half4 xyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyzx { @@ -408,6 +491,7 @@ public half4 xyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyzy { @@ -416,6 +500,7 @@ public half4 xyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyzz { @@ -424,6 +509,7 @@ public half4 xyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyzw { @@ -434,6 +520,7 @@ public half4 xyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xywx { @@ -442,6 +529,7 @@ public half4 xywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xywy { @@ -450,6 +538,7 @@ public half4 xywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xywz { @@ -460,6 +549,7 @@ public half4 xywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xyww { @@ -468,6 +558,7 @@ public half4 xyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzxx { @@ -476,6 +567,7 @@ public half4 xzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzxy { @@ -484,6 +576,7 @@ public half4 xzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzxz { @@ -492,6 +585,7 @@ public half4 xzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzxw { @@ -500,6 +594,7 @@ public half4 xzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzyx { @@ -508,6 +603,7 @@ public half4 xzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzyy { @@ -516,6 +612,7 @@ public half4 xzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzyz { @@ -524,6 +621,7 @@ public half4 xzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzyw { @@ -534,6 +632,7 @@ public half4 xzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzzx { @@ -542,6 +641,7 @@ public half4 xzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzzy { @@ -550,6 +650,7 @@ public half4 xzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzzz { @@ -558,6 +659,7 @@ public half4 xzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzzw { @@ -566,6 +668,7 @@ public half4 xzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzwx { @@ -574,6 +677,7 @@ public half4 xzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzwy { @@ -584,6 +688,7 @@ public half4 xzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzwz { @@ -592,6 +697,7 @@ public half4 xzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xzww { @@ -600,6 +706,7 @@ public half4 xzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwxx { @@ -608,6 +715,7 @@ public half4 xwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwxy { @@ -616,6 +724,7 @@ public half4 xwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwxz { @@ -624,6 +733,7 @@ public half4 xwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwxw { @@ -632,6 +742,7 @@ public half4 xwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwyx { @@ -640,6 +751,7 @@ public half4 xwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwyy { @@ -648,6 +760,7 @@ public half4 xwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwyz { @@ -658,6 +771,7 @@ public half4 xwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwyw { @@ -666,6 +780,7 @@ public half4 xwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwzx { @@ -674,6 +789,7 @@ public half4 xwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwzy { @@ -684,6 +800,7 @@ public half4 xwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwzz { @@ -692,6 +809,7 @@ public half4 xwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwzw { @@ -700,6 +818,7 @@ public half4 xwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwwx { @@ -708,6 +827,7 @@ public half4 xwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwwy { @@ -716,6 +836,7 @@ public half4 xwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwwz { @@ -724,6 +845,7 @@ public half4 xwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 xwww { @@ -732,6 +854,7 @@ public half4 xwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxxx { @@ -740,6 +863,7 @@ public half4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxxy { @@ -748,6 +872,7 @@ public half4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxxz { @@ -756,6 +881,7 @@ public half4 yxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxxw { @@ -764,6 +890,7 @@ public half4 yxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxyx { @@ -772,6 +899,7 @@ public half4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxyy { @@ -780,6 +908,7 @@ public half4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxyz { @@ -788,6 +917,7 @@ public half4 yxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxyw { @@ -796,6 +926,7 @@ public half4 yxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxzx { @@ -804,6 +935,7 @@ public half4 yxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxzy { @@ -812,6 +944,7 @@ public half4 yxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxzz { @@ -820,6 +953,7 @@ public half4 yxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxzw { @@ -830,6 +964,7 @@ public half4 yxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxwx { @@ -838,6 +973,7 @@ public half4 yxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxwy { @@ -846,6 +982,7 @@ public half4 yxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxwz { @@ -856,6 +993,7 @@ public half4 yxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yxww { @@ -864,6 +1002,7 @@ public half4 yxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyxx { @@ -872,6 +1011,7 @@ public half4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyxy { @@ -880,6 +1020,7 @@ public half4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyxz { @@ -888,6 +1029,7 @@ public half4 yyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyxw { @@ -896,6 +1038,7 @@ public half4 yyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyyx { @@ -904,6 +1047,7 @@ public half4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyyy { @@ -912,6 +1056,7 @@ public half4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyyz { @@ -920,6 +1065,7 @@ public half4 yyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyyw { @@ -928,6 +1074,7 @@ public half4 yyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyzx { @@ -936,6 +1083,7 @@ public half4 yyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyzy { @@ -944,6 +1092,7 @@ public half4 yyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyzz { @@ -952,6 +1101,7 @@ public half4 yyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyzw { @@ -960,6 +1110,7 @@ public half4 yyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yywx { @@ -968,6 +1119,7 @@ public half4 yywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yywy { @@ -976,6 +1128,7 @@ public half4 yywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yywz { @@ -984,6 +1137,7 @@ public half4 yywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yyww { @@ -992,6 +1146,7 @@ public half4 yyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzxx { @@ -1000,6 +1155,7 @@ public half4 yzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzxy { @@ -1008,6 +1164,7 @@ public half4 yzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzxz { @@ -1016,6 +1173,7 @@ public half4 yzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzxw { @@ -1026,6 +1184,7 @@ public half4 yzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzyx { @@ -1034,6 +1193,7 @@ public half4 yzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzyy { @@ -1042,6 +1202,7 @@ public half4 yzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzyz { @@ -1050,6 +1211,7 @@ public half4 yzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzyw { @@ -1058,6 +1220,7 @@ public half4 yzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzzx { @@ -1066,6 +1229,7 @@ public half4 yzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzzy { @@ -1074,6 +1238,7 @@ public half4 yzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzzz { @@ -1082,6 +1247,7 @@ public half4 yzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzzw { @@ -1090,6 +1256,7 @@ public half4 yzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzwx { @@ -1100,6 +1267,7 @@ public half4 yzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzwy { @@ -1108,6 +1276,7 @@ public half4 yzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzwz { @@ -1116,6 +1285,7 @@ public half4 yzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 yzww { @@ -1124,6 +1294,7 @@ public half4 yzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywxx { @@ -1132,6 +1303,7 @@ public half4 ywxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywxy { @@ -1140,6 +1312,7 @@ public half4 ywxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywxz { @@ -1150,6 +1323,7 @@ public half4 ywxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywxw { @@ -1158,6 +1332,7 @@ public half4 ywxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywyx { @@ -1166,6 +1341,7 @@ public half4 ywyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywyy { @@ -1174,6 +1350,7 @@ public half4 ywyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywyz { @@ -1182,6 +1359,7 @@ public half4 ywyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywyw { @@ -1190,6 +1368,7 @@ public half4 ywyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywzx { @@ -1200,6 +1379,7 @@ public half4 ywzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywzy { @@ -1208,6 +1388,7 @@ public half4 ywzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywzz { @@ -1216,6 +1397,7 @@ public half4 ywzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywzw { @@ -1224,6 +1406,7 @@ public half4 ywzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywwx { @@ -1232,6 +1415,7 @@ public half4 ywwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywwy { @@ -1240,6 +1424,7 @@ public half4 ywwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywwz { @@ -1248,6 +1433,7 @@ public half4 ywwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 ywww { @@ -1256,6 +1442,7 @@ public half4 ywww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxxx { @@ -1264,6 +1451,7 @@ public half4 zxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxxy { @@ -1272,6 +1460,7 @@ public half4 zxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxxz { @@ -1280,6 +1469,7 @@ public half4 zxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxxw { @@ -1288,6 +1478,7 @@ public half4 zxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxyx { @@ -1296,6 +1487,7 @@ public half4 zxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxyy { @@ -1304,6 +1496,7 @@ public half4 zxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxyz { @@ -1312,6 +1505,7 @@ public half4 zxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxyw { @@ -1322,6 +1516,7 @@ public half4 zxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxzx { @@ -1330,6 +1525,7 @@ public half4 zxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxzy { @@ -1338,6 +1534,7 @@ public half4 zxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxzz { @@ -1346,6 +1543,7 @@ public half4 zxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxzw { @@ -1354,6 +1552,7 @@ public half4 zxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxwx { @@ -1362,6 +1561,7 @@ public half4 zxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxwy { @@ -1372,6 +1572,7 @@ public half4 zxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxwz { @@ -1380,6 +1581,7 @@ public half4 zxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zxww { @@ -1388,6 +1590,7 @@ public half4 zxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyxx { @@ -1396,6 +1599,7 @@ public half4 zyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyxy { @@ -1404,6 +1608,7 @@ public half4 zyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyxz { @@ -1412,6 +1617,7 @@ public half4 zyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyxw { @@ -1422,6 +1628,7 @@ public half4 zyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyyx { @@ -1430,6 +1637,7 @@ public half4 zyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyyy { @@ -1438,6 +1646,7 @@ public half4 zyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyyz { @@ -1446,6 +1655,7 @@ public half4 zyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyyw { @@ -1454,6 +1664,7 @@ public half4 zyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyzx { @@ -1462,6 +1673,7 @@ public half4 zyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyzy { @@ -1470,6 +1682,7 @@ public half4 zyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyzz { @@ -1478,6 +1691,7 @@ public half4 zyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyzw { @@ -1486,6 +1700,7 @@ public half4 zyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zywx { @@ -1496,6 +1711,7 @@ public half4 zywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zywy { @@ -1504,6 +1720,7 @@ public half4 zywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zywz { @@ -1512,6 +1729,7 @@ public half4 zywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zyww { @@ -1520,6 +1738,7 @@ public half4 zyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzxx { @@ -1528,6 +1747,7 @@ public half4 zzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzxy { @@ -1536,6 +1756,7 @@ public half4 zzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzxz { @@ -1544,6 +1765,7 @@ public half4 zzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzxw { @@ -1552,6 +1774,7 @@ public half4 zzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzyx { @@ -1560,6 +1783,7 @@ public half4 zzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzyy { @@ -1568,6 +1792,7 @@ public half4 zzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzyz { @@ -1576,6 +1801,7 @@ public half4 zzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzyw { @@ -1584,6 +1810,7 @@ public half4 zzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzzx { @@ -1592,6 +1819,7 @@ public half4 zzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzzy { @@ -1600,6 +1828,7 @@ public half4 zzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzzz { @@ -1608,6 +1837,7 @@ public half4 zzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzzw { @@ -1616,6 +1846,7 @@ public half4 zzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzwx { @@ -1624,6 +1855,7 @@ public half4 zzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzwy { @@ -1632,6 +1864,7 @@ public half4 zzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzwz { @@ -1640,6 +1873,7 @@ public half4 zzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zzww { @@ -1648,6 +1882,7 @@ public half4 zzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwxx { @@ -1656,6 +1891,7 @@ public half4 zwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwxy { @@ -1666,6 +1902,7 @@ public half4 zwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwxz { @@ -1674,6 +1911,7 @@ public half4 zwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwxw { @@ -1682,6 +1920,7 @@ public half4 zwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwyx { @@ -1692,6 +1931,7 @@ public half4 zwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwyy { @@ -1700,6 +1940,7 @@ public half4 zwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwyz { @@ -1708,6 +1949,7 @@ public half4 zwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwyw { @@ -1716,6 +1958,7 @@ public half4 zwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwzx { @@ -1724,6 +1967,7 @@ public half4 zwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwzy { @@ -1732,6 +1976,7 @@ public half4 zwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwzz { @@ -1740,6 +1985,7 @@ public half4 zwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwzw { @@ -1748,6 +1994,7 @@ public half4 zwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwwx { @@ -1756,6 +2003,7 @@ public half4 zwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwwy { @@ -1764,6 +2012,7 @@ public half4 zwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwwz { @@ -1772,6 +2021,7 @@ public half4 zwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 zwww { @@ -1780,6 +2030,7 @@ public half4 zwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxxx { @@ -1788,6 +2039,7 @@ public half4 wxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxxy { @@ -1796,6 +2048,7 @@ public half4 wxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxxz { @@ -1804,6 +2057,7 @@ public half4 wxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxxw { @@ -1812,6 +2066,7 @@ public half4 wxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxyx { @@ -1820,6 +2075,7 @@ public half4 wxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxyy { @@ -1828,6 +2084,7 @@ public half4 wxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxyz { @@ -1838,6 +2095,7 @@ public half4 wxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxyw { @@ -1846,6 +2104,7 @@ public half4 wxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxzx { @@ -1854,6 +2113,7 @@ public half4 wxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxzy { @@ -1864,6 +2124,7 @@ public half4 wxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxzz { @@ -1872,6 +2133,7 @@ public half4 wxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxzw { @@ -1880,6 +2142,7 @@ public half4 wxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxwx { @@ -1888,6 +2151,7 @@ public half4 wxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxwy { @@ -1896,6 +2160,7 @@ public half4 wxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxwz { @@ -1904,6 +2169,7 @@ public half4 wxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wxww { @@ -1912,6 +2178,7 @@ public half4 wxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wyxx { @@ -1920,6 +2187,7 @@ public half4 wyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wyxy { @@ -1928,6 +2196,7 @@ public half4 wyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wyxz { @@ -1938,6 +2207,7 @@ public half4 wyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wyxw { @@ -1946,6 +2216,7 @@ public half4 wyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wyyx { @@ -1954,6 +2225,7 @@ public half4 wyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wyyy { @@ -1962,6 +2234,7 @@ public half4 wyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wyyz { @@ -1970,6 +2243,7 @@ public half4 wyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wyyw { @@ -1978,6 +2252,7 @@ public half4 wyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wyzx { @@ -1988,6 +2263,7 @@ public half4 wyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wyzy { @@ -1996,6 +2272,7 @@ public half4 wyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wyzz { @@ -2004,6 +2281,7 @@ public half4 wyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wyzw { @@ -2012,6 +2290,7 @@ public half4 wyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wywx { @@ -2020,6 +2299,7 @@ public half4 wywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wywy { @@ -2028,6 +2308,7 @@ public half4 wywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wywz { @@ -2036,6 +2317,7 @@ public half4 wywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wyww { @@ -2044,6 +2326,7 @@ public half4 wyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzxx { @@ -2052,6 +2335,7 @@ public half4 wzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzxy { @@ -2062,6 +2346,7 @@ public half4 wzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzxz { @@ -2070,6 +2355,7 @@ public half4 wzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzxw { @@ -2078,6 +2364,7 @@ public half4 wzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzyx { @@ -2088,6 +2375,7 @@ public half4 wzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzyy { @@ -2096,6 +2384,7 @@ public half4 wzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzyz { @@ -2104,6 +2393,7 @@ public half4 wzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzyw { @@ -2112,6 +2402,7 @@ public half4 wzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzzx { @@ -2120,6 +2411,7 @@ public half4 wzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzzy { @@ -2128,6 +2420,7 @@ public half4 wzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzzz { @@ -2136,6 +2429,7 @@ public half4 wzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzzw { @@ -2144,6 +2438,7 @@ public half4 wzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzwx { @@ -2152,6 +2447,7 @@ public half4 wzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzwy { @@ -2160,6 +2456,7 @@ public half4 wzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzwz { @@ -2168,6 +2465,7 @@ public half4 wzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wzww { @@ -2176,6 +2474,7 @@ public half4 wzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwxx { @@ -2184,6 +2483,7 @@ public half4 wwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwxy { @@ -2192,6 +2492,7 @@ public half4 wwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwxz { @@ -2200,6 +2501,7 @@ public half4 wwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwxw { @@ -2208,6 +2510,7 @@ public half4 wwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwyx { @@ -2216,6 +2519,7 @@ public half4 wwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwyy { @@ -2224,6 +2528,7 @@ public half4 wwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwyz { @@ -2232,6 +2537,7 @@ public half4 wwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwyw { @@ -2240,6 +2546,7 @@ public half4 wwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwzx { @@ -2248,6 +2555,7 @@ public half4 wwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwzy { @@ -2256,6 +2564,7 @@ public half4 wwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwzz { @@ -2264,6 +2573,7 @@ public half4 wwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwzw { @@ -2272,6 +2582,7 @@ public half4 wwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwwx { @@ -2280,6 +2591,7 @@ public half4 wwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwwy { @@ -2288,6 +2600,7 @@ public half4 wwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwwz { @@ -2296,6 +2609,7 @@ public half4 wwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half4 wwww { @@ -2304,6 +2618,7 @@ public half4 wwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xxx { @@ -2312,6 +2627,7 @@ public half3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xxy { @@ -2320,6 +2636,7 @@ public half3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xxz { @@ -2328,6 +2645,7 @@ public half3 xxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xxw { @@ -2336,6 +2654,7 @@ public half3 xxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xyx { @@ -2344,6 +2663,7 @@ public half3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xyy { @@ -2352,6 +2672,7 @@ public half3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xyz { @@ -2362,6 +2683,7 @@ public half3 xyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xyw { @@ -2372,6 +2694,7 @@ public half3 xyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xzx { @@ -2380,6 +2703,7 @@ public half3 xzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xzy { @@ -2390,6 +2714,7 @@ public half3 xzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xzz { @@ -2398,6 +2723,7 @@ public half3 xzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xzw { @@ -2408,6 +2734,7 @@ public half3 xzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xwx { @@ -2416,6 +2743,7 @@ public half3 xwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xwy { @@ -2426,6 +2754,7 @@ public half3 xwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xwz { @@ -2436,6 +2765,7 @@ public half3 xwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 xww { @@ -2444,6 +2774,7 @@ public half3 xww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yxx { @@ -2452,6 +2783,7 @@ public half3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yxy { @@ -2460,6 +2792,7 @@ public half3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yxz { @@ -2470,6 +2803,7 @@ public half3 yxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yxw { @@ -2480,6 +2814,7 @@ public half3 yxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yyx { @@ -2488,6 +2823,7 @@ public half3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yyy { @@ -2496,6 +2832,7 @@ public half3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yyz { @@ -2504,6 +2841,7 @@ public half3 yyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yyw { @@ -2512,6 +2850,7 @@ public half3 yyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yzx { @@ -2522,6 +2861,7 @@ public half3 yzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yzy { @@ -2530,6 +2870,7 @@ public half3 yzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yzz { @@ -2538,6 +2879,7 @@ public half3 yzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yzw { @@ -2548,6 +2890,7 @@ public half3 yzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 ywx { @@ -2558,6 +2901,7 @@ public half3 ywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 ywy { @@ -2566,6 +2910,7 @@ public half3 ywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 ywz { @@ -2576,6 +2921,7 @@ public half3 ywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 yww { @@ -2584,6 +2930,7 @@ public half3 yww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zxx { @@ -2592,6 +2939,7 @@ public half3 zxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zxy { @@ -2602,6 +2950,7 @@ public half3 zxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zxz { @@ -2610,6 +2959,7 @@ public half3 zxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zxw { @@ -2620,6 +2970,7 @@ public half3 zxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zyx { @@ -2630,6 +2981,7 @@ public half3 zyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zyy { @@ -2638,6 +2990,7 @@ public half3 zyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zyz { @@ -2646,6 +2999,7 @@ public half3 zyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zyw { @@ -2656,6 +3010,7 @@ public half3 zyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zzx { @@ -2664,6 +3019,7 @@ public half3 zzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zzy { @@ -2672,6 +3028,7 @@ public half3 zzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zzz { @@ -2680,6 +3037,7 @@ public half3 zzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zzw { @@ -2688,6 +3046,7 @@ public half3 zzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zwx { @@ -2698,6 +3057,7 @@ public half3 zwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zwy { @@ -2708,6 +3068,7 @@ public half3 zwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zwz { @@ -2716,6 +3077,7 @@ public half3 zwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 zww { @@ -2724,6 +3086,7 @@ public half3 zww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wxx { @@ -2732,6 +3095,7 @@ public half3 wxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wxy { @@ -2742,6 +3106,7 @@ public half3 wxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wxz { @@ -2752,6 +3117,7 @@ public half3 wxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wxw { @@ -2760,6 +3126,7 @@ public half3 wxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wyx { @@ -2770,6 +3137,7 @@ public half3 wyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wyy { @@ -2778,6 +3146,7 @@ public half3 wyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wyz { @@ -2788,6 +3157,7 @@ public half3 wyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wyw { @@ -2796,6 +3166,7 @@ public half3 wyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wzx { @@ -2806,6 +3177,7 @@ public half3 wzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wzy { @@ -2816,6 +3188,7 @@ public half3 wzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wzz { @@ -2824,6 +3197,7 @@ public half3 wzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wzw { @@ -2832,6 +3206,7 @@ public half3 wzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wwx { @@ -2840,6 +3215,7 @@ public half3 wwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wwy { @@ -2848,6 +3224,7 @@ public half3 wwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 wwz { @@ -2856,6 +3233,7 @@ public half3 wwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half3 www { @@ -2864,6 +3242,7 @@ public half3 www } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 xx { @@ -2872,6 +3251,7 @@ public half2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 xy { @@ -2882,6 +3262,7 @@ public half2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 xz { @@ -2892,6 +3273,7 @@ public half2 xz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 xw { @@ -2902,6 +3284,7 @@ public half2 xw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 yx { @@ -2912,6 +3295,7 @@ public half2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 yy { @@ -2920,6 +3304,7 @@ public half2 yy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 yz { @@ -2930,6 +3315,7 @@ public half2 yz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 yw { @@ -2940,6 +3326,7 @@ public half2 yw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 zx { @@ -2950,6 +3337,7 @@ public half2 zx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 zy { @@ -2960,6 +3348,7 @@ public half2 zy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 zz { @@ -2968,6 +3357,7 @@ public half2 zz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 zw { @@ -2978,6 +3368,7 @@ public half2 zw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 wx { @@ -2988,6 +3379,7 @@ public half2 wx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 wy { @@ -2998,6 +3390,7 @@ public half2 wy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 wz { @@ -3008,6 +3401,7 @@ public half2 wz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public half2 ww { @@ -3039,19 +3433,25 @@ unsafe public half this[int index] } /// Returns true if the half4 is equal to a given half4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(half4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } /// Returns true if the half4 is equal to a given half4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is half4 converted && Equals(converted); } /// Returns a hash code for the half4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the half4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -3059,6 +3459,9 @@ public override string ToString() } /// Returns a string representation of the half4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -3085,58 +3488,98 @@ public DebuggerProxy(half4 v) public static partial class math { /// Returns a half4 vector constructed from four half values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. + /// half4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half4 half4(half x, half y, half z, half w) { return new half4(x, y, z, w); } /// Returns a half4 vector constructed from two half values and a half2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's zw components will be set to this value. + /// half4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half4 half4(half x, half y, half2 zw) { return new half4(x, y, zw); } /// Returns a half4 vector constructed from a half value, a half2 vector and a half value. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// The constructed vector's w component will be set to this value. + /// half4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half4 half4(half x, half2 yz, half w) { return new half4(x, yz, w); } /// Returns a half4 vector constructed from a half value and a half3 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yzw components will be set to this value. + /// half4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half4 half4(half x, half3 yzw) { return new half4(x, yzw); } /// Returns a half4 vector constructed from a half2 vector and two half values. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. + /// half4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half4 half4(half2 xy, half z, half w) { return new half4(xy, z, w); } /// Returns a half4 vector constructed from two half2 vectors. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's zw components will be set to this value. + /// half4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half4 half4(half2 xy, half2 zw) { return new half4(xy, zw); } /// Returns a half4 vector constructed from a half3 vector and a half value. + /// The constructed vector's xyz components will be set to this value. + /// The constructed vector's w component will be set to this value. + /// half4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half4 half4(half3 xyz, half w) { return new half4(xyz, w); } /// Returns a half4 vector constructed from a half4 vector. + /// The constructed vector's xyzw components will be set to this value. + /// half4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half4 half4(half4 xyzw) { return new half4(xyzw); } /// Returns a half4 vector constructed from a single half value by assigning it to every component. + /// half to convert to half4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half4 half4(half v) { return new half4(v); } /// Returns a half4 vector constructed from a single float value by converting it to half and assigning it to every component. + /// float to convert to half4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half4 half4(float v) { return new half4(v); } /// Return a half4 vector constructed from a float4 vector by componentwise conversion. + /// float4 to convert to half4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half4 half4(float4 v) { return new half4(v); } /// Returns a half4 vector constructed from a single double value by converting it to half and assigning it to every component. + /// double to convert to half4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half4 half4(double v) { return new half4(v); } /// Return a half4 vector constructed from a double4 vector by componentwise conversion. + /// double4 to convert to half4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static half4 half4(double4 v) { return new half4(v); } /// Returns a uint hash code of a half4 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(half4 v) { @@ -3148,6 +3591,8 @@ public static uint hash(half4 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(half4 v) { diff --git a/src/Unity.Mathematics/int2.gen.cs b/src/Unity.Mathematics/int2.gen.cs index dbc92219..7fd1e14c 100644 --- a/src/Unity.Mathematics/int2.gen.cs +++ b/src/Unity.Mathematics/int2.gen.cs @@ -15,18 +15,23 @@ namespace Unity.Mathematics { + /// A 2 component vector of ints. [DebuggerTypeProxy(typeof(int2.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct int2 : System.IEquatable, IFormattable { + /// x component of the vector. public int x; + /// y component of the vector. public int y; /// int2 zero value. public static readonly int2 zero; /// Constructs a int2 vector from two int values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(int x, int y) { @@ -35,6 +40,7 @@ public int2(int x, int y) } /// Constructs a int2 vector from an int2 vector. + /// The constructed vector's xy components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(int2 xy) { @@ -43,6 +49,7 @@ public int2(int2 xy) } /// Constructs a int2 vector from a single int value by assigning it to every component. + /// int to convert to int2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(int v) { @@ -51,6 +58,7 @@ public int2(int v) } /// Constructs a int2 vector from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(bool v) { @@ -59,6 +67,7 @@ public int2(bool v) } /// Constructs a int2 vector from a bool2 vector by componentwise conversion. + /// bool2 to convert to int2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(bool2 v) { @@ -67,6 +76,7 @@ public int2(bool2 v) } /// Constructs a int2 vector from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(uint v) { @@ -75,6 +85,7 @@ public int2(uint v) } /// Constructs a int2 vector from a uint2 vector by componentwise conversion. + /// uint2 to convert to int2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(uint2 v) { @@ -83,6 +94,7 @@ public int2(uint2 v) } /// Constructs a int2 vector from a single float value by converting it to int and assigning it to every component. + /// float to convert to int2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(float v) { @@ -91,6 +103,7 @@ public int2(float v) } /// Constructs a int2 vector from a float2 vector by componentwise conversion. + /// float2 to convert to int2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(float2 v) { @@ -99,6 +112,7 @@ public int2(float2 v) } /// Constructs a int2 vector from a single double value by converting it to int and assigning it to every component. + /// double to convert to int2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(double v) { @@ -107,6 +121,7 @@ public int2(double v) } /// Constructs a int2 vector from a double2 vector by componentwise conversion. + /// double2 to convert to int2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2(double2 v) { @@ -116,259 +131,420 @@ public int2(double2 v) /// Implicitly converts a single int value to a int2 vector by assigning it to every component. + /// int to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int2(int v) { return new int2(v); } /// Explicitly converts a single bool value to a int2 vector by converting it to int and assigning it to every component. + /// bool to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2(bool v) { return new int2(v); } /// Explicitly converts a bool2 vector to a int2 vector by componentwise conversion. + /// bool2 to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2(bool2 v) { return new int2(v); } /// Explicitly converts a single uint value to a int2 vector by converting it to int and assigning it to every component. + /// uint to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2(uint v) { return new int2(v); } /// Explicitly converts a uint2 vector to a int2 vector by componentwise conversion. + /// uint2 to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2(uint2 v) { return new int2(v); } /// Explicitly converts a single float value to a int2 vector by converting it to int and assigning it to every component. + /// float to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2(float v) { return new int2(v); } /// Explicitly converts a float2 vector to a int2 vector by componentwise conversion. + /// float2 to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2(float2 v) { return new int2(v); } /// Explicitly converts a single double value to a int2 vector by converting it to int and assigning it to every component. + /// double to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2(double v) { return new int2(v); } /// Explicitly converts a double2 vector to a int2 vector by componentwise conversion. + /// double2 to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2(double2 v) { return new int2(v); } /// Returns the result of a componentwise multiplication operation on two int2 vectors. + /// Left hand side int2 to use to compute componentwise multiplication. + /// Right hand side int2 to use to compute componentwise multiplication. + /// int2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator * (int2 lhs, int2 rhs) { return new int2 (lhs.x * rhs.x, lhs.y * rhs.y); } /// Returns the result of a componentwise multiplication operation on an int2 vector and an int value. + /// Left hand side int2 to use to compute componentwise multiplication. + /// Right hand side int to use to compute componentwise multiplication. + /// int2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator * (int2 lhs, int rhs) { return new int2 (lhs.x * rhs, lhs.y * rhs); } /// Returns the result of a componentwise multiplication operation on an int value and an int2 vector. + /// Left hand side int to use to compute componentwise multiplication. + /// Right hand side int2 to use to compute componentwise multiplication. + /// int2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator * (int lhs, int2 rhs) { return new int2 (lhs * rhs.x, lhs * rhs.y); } /// Returns the result of a componentwise addition operation on two int2 vectors. + /// Left hand side int2 to use to compute componentwise addition. + /// Right hand side int2 to use to compute componentwise addition. + /// int2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator + (int2 lhs, int2 rhs) { return new int2 (lhs.x + rhs.x, lhs.y + rhs.y); } /// Returns the result of a componentwise addition operation on an int2 vector and an int value. + /// Left hand side int2 to use to compute componentwise addition. + /// Right hand side int to use to compute componentwise addition. + /// int2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator + (int2 lhs, int rhs) { return new int2 (lhs.x + rhs, lhs.y + rhs); } /// Returns the result of a componentwise addition operation on an int value and an int2 vector. + /// Left hand side int to use to compute componentwise addition. + /// Right hand side int2 to use to compute componentwise addition. + /// int2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator + (int lhs, int2 rhs) { return new int2 (lhs + rhs.x, lhs + rhs.y); } /// Returns the result of a componentwise subtraction operation on two int2 vectors. + /// Left hand side int2 to use to compute componentwise subtraction. + /// Right hand side int2 to use to compute componentwise subtraction. + /// int2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator - (int2 lhs, int2 rhs) { return new int2 (lhs.x - rhs.x, lhs.y - rhs.y); } /// Returns the result of a componentwise subtraction operation on an int2 vector and an int value. + /// Left hand side int2 to use to compute componentwise subtraction. + /// Right hand side int to use to compute componentwise subtraction. + /// int2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator - (int2 lhs, int rhs) { return new int2 (lhs.x - rhs, lhs.y - rhs); } /// Returns the result of a componentwise subtraction operation on an int value and an int2 vector. + /// Left hand side int to use to compute componentwise subtraction. + /// Right hand side int2 to use to compute componentwise subtraction. + /// int2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator - (int lhs, int2 rhs) { return new int2 (lhs - rhs.x, lhs - rhs.y); } /// Returns the result of a componentwise division operation on two int2 vectors. + /// Left hand side int2 to use to compute componentwise division. + /// Right hand side int2 to use to compute componentwise division. + /// int2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator / (int2 lhs, int2 rhs) { return new int2 (lhs.x / rhs.x, lhs.y / rhs.y); } /// Returns the result of a componentwise division operation on an int2 vector and an int value. + /// Left hand side int2 to use to compute componentwise division. + /// Right hand side int to use to compute componentwise division. + /// int2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator / (int2 lhs, int rhs) { return new int2 (lhs.x / rhs, lhs.y / rhs); } /// Returns the result of a componentwise division operation on an int value and an int2 vector. + /// Left hand side int to use to compute componentwise division. + /// Right hand side int2 to use to compute componentwise division. + /// int2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator / (int lhs, int2 rhs) { return new int2 (lhs / rhs.x, lhs / rhs.y); } /// Returns the result of a componentwise modulus operation on two int2 vectors. + /// Left hand side int2 to use to compute componentwise modulus. + /// Right hand side int2 to use to compute componentwise modulus. + /// int2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator % (int2 lhs, int2 rhs) { return new int2 (lhs.x % rhs.x, lhs.y % rhs.y); } /// Returns the result of a componentwise modulus operation on an int2 vector and an int value. + /// Left hand side int2 to use to compute componentwise modulus. + /// Right hand side int to use to compute componentwise modulus. + /// int2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator % (int2 lhs, int rhs) { return new int2 (lhs.x % rhs, lhs.y % rhs); } /// Returns the result of a componentwise modulus operation on an int value and an int2 vector. + /// Left hand side int to use to compute componentwise modulus. + /// Right hand side int2 to use to compute componentwise modulus. + /// int2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator % (int lhs, int2 rhs) { return new int2 (lhs % rhs.x, lhs % rhs.y); } /// Returns the result of a componentwise increment operation on an int2 vector. + /// Value to use when computing the componentwise increment. + /// int2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator ++ (int2 val) { return new int2 (++val.x, ++val.y); } /// Returns the result of a componentwise decrement operation on an int2 vector. + /// Value to use when computing the componentwise decrement. + /// int2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator -- (int2 val) { return new int2 (--val.x, --val.y); } /// Returns the result of a componentwise less than operation on two int2 vectors. + /// Left hand side int2 to use to compute componentwise less than. + /// Right hand side int2 to use to compute componentwise less than. + /// bool2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (int2 lhs, int2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } /// Returns the result of a componentwise less than operation on an int2 vector and an int value. + /// Left hand side int2 to use to compute componentwise less than. + /// Right hand side int to use to compute componentwise less than. + /// bool2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (int2 lhs, int rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } /// Returns the result of a componentwise less than operation on an int value and an int2 vector. + /// Left hand side int to use to compute componentwise less than. + /// Right hand side int2 to use to compute componentwise less than. + /// bool2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (int lhs, int2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } /// Returns the result of a componentwise less or equal operation on two int2 vectors. + /// Left hand side int2 to use to compute componentwise less or equal. + /// Right hand side int2 to use to compute componentwise less or equal. + /// bool2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (int2 lhs, int2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } /// Returns the result of a componentwise less or equal operation on an int2 vector and an int value. + /// Left hand side int2 to use to compute componentwise less or equal. + /// Right hand side int to use to compute componentwise less or equal. + /// bool2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (int2 lhs, int rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } /// Returns the result of a componentwise less or equal operation on an int value and an int2 vector. + /// Left hand side int to use to compute componentwise less or equal. + /// Right hand side int2 to use to compute componentwise less or equal. + /// bool2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (int lhs, int2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } /// Returns the result of a componentwise greater than operation on two int2 vectors. + /// Left hand side int2 to use to compute componentwise greater than. + /// Right hand side int2 to use to compute componentwise greater than. + /// bool2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (int2 lhs, int2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } /// Returns the result of a componentwise greater than operation on an int2 vector and an int value. + /// Left hand side int2 to use to compute componentwise greater than. + /// Right hand side int to use to compute componentwise greater than. + /// bool2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (int2 lhs, int rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } /// Returns the result of a componentwise greater than operation on an int value and an int2 vector. + /// Left hand side int to use to compute componentwise greater than. + /// Right hand side int2 to use to compute componentwise greater than. + /// bool2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (int lhs, int2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } /// Returns the result of a componentwise greater or equal operation on two int2 vectors. + /// Left hand side int2 to use to compute componentwise greater or equal. + /// Right hand side int2 to use to compute componentwise greater or equal. + /// bool2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (int2 lhs, int2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } /// Returns the result of a componentwise greater or equal operation on an int2 vector and an int value. + /// Left hand side int2 to use to compute componentwise greater or equal. + /// Right hand side int to use to compute componentwise greater or equal. + /// bool2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (int2 lhs, int rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } /// Returns the result of a componentwise greater or equal operation on an int value and an int2 vector. + /// Left hand side int to use to compute componentwise greater or equal. + /// Right hand side int2 to use to compute componentwise greater or equal. + /// bool2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (int lhs, int2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } /// Returns the result of a componentwise unary minus operation on an int2 vector. + /// Value to use when computing the componentwise unary minus. + /// int2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator - (int2 val) { return new int2 (-val.x, -val.y); } /// Returns the result of a componentwise unary plus operation on an int2 vector. + /// Value to use when computing the componentwise unary plus. + /// int2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator + (int2 val) { return new int2 (+val.x, +val.y); } /// Returns the result of a componentwise left shift operation on an int2 vector by a number of bits specified by a single int. + /// The vector to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator << (int2 x, int n) { return new int2 (x.x << n, x.y << n); } /// Returns the result of a componentwise right shift operation on an int2 vector by a number of bits specified by a single int. + /// The vector to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator >> (int2 x, int n) { return new int2 (x.x >> n, x.y >> n); } /// Returns the result of a componentwise equality operation on two int2 vectors. + /// Left hand side int2 to use to compute componentwise equality. + /// Right hand side int2 to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (int2 lhs, int2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } /// Returns the result of a componentwise equality operation on an int2 vector and an int value. + /// Left hand side int2 to use to compute componentwise equality. + /// Right hand side int to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (int2 lhs, int rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } /// Returns the result of a componentwise equality operation on an int value and an int2 vector. + /// Left hand side int to use to compute componentwise equality. + /// Right hand side int2 to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (int lhs, int2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } /// Returns the result of a componentwise not equal operation on two int2 vectors. + /// Left hand side int2 to use to compute componentwise not equal. + /// Right hand side int2 to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (int2 lhs, int2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } /// Returns the result of a componentwise not equal operation on an int2 vector and an int value. + /// Left hand side int2 to use to compute componentwise not equal. + /// Right hand side int to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (int2 lhs, int rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } /// Returns the result of a componentwise not equal operation on an int value and an int2 vector. + /// Left hand side int to use to compute componentwise not equal. + /// Right hand side int2 to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (int lhs, int2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } /// Returns the result of a componentwise bitwise not operation on an int2 vector. + /// Value to use when computing the componentwise bitwise not. + /// int2 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator ~ (int2 val) { return new int2 (~val.x, ~val.y); } /// Returns the result of a componentwise bitwise and operation on two int2 vectors. + /// Left hand side int2 to use to compute componentwise bitwise and. + /// Right hand side int2 to use to compute componentwise bitwise and. + /// int2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator & (int2 lhs, int2 rhs) { return new int2 (lhs.x & rhs.x, lhs.y & rhs.y); } /// Returns the result of a componentwise bitwise and operation on an int2 vector and an int value. + /// Left hand side int2 to use to compute componentwise bitwise and. + /// Right hand side int to use to compute componentwise bitwise and. + /// int2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator & (int2 lhs, int rhs) { return new int2 (lhs.x & rhs, lhs.y & rhs); } /// Returns the result of a componentwise bitwise and operation on an int value and an int2 vector. + /// Left hand side int to use to compute componentwise bitwise and. + /// Right hand side int2 to use to compute componentwise bitwise and. + /// int2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator & (int lhs, int2 rhs) { return new int2 (lhs & rhs.x, lhs & rhs.y); } /// Returns the result of a componentwise bitwise or operation on two int2 vectors. + /// Left hand side int2 to use to compute componentwise bitwise or. + /// Right hand side int2 to use to compute componentwise bitwise or. + /// int2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator | (int2 lhs, int2 rhs) { return new int2 (lhs.x | rhs.x, lhs.y | rhs.y); } /// Returns the result of a componentwise bitwise or operation on an int2 vector and an int value. + /// Left hand side int2 to use to compute componentwise bitwise or. + /// Right hand side int to use to compute componentwise bitwise or. + /// int2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator | (int2 lhs, int rhs) { return new int2 (lhs.x | rhs, lhs.y | rhs); } /// Returns the result of a componentwise bitwise or operation on an int value and an int2 vector. + /// Left hand side int to use to compute componentwise bitwise or. + /// Right hand side int2 to use to compute componentwise bitwise or. + /// int2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator | (int lhs, int2 rhs) { return new int2 (lhs | rhs.x, lhs | rhs.y); } /// Returns the result of a componentwise bitwise exclusive or operation on two int2 vectors. + /// Left hand side int2 to use to compute componentwise bitwise exclusive or. + /// Right hand side int2 to use to compute componentwise bitwise exclusive or. + /// int2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator ^ (int2 lhs, int2 rhs) { return new int2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } /// Returns the result of a componentwise bitwise exclusive or operation on an int2 vector and an int value. + /// Left hand side int2 to use to compute componentwise bitwise exclusive or. + /// Right hand side int to use to compute componentwise bitwise exclusive or. + /// int2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator ^ (int2 lhs, int rhs) { return new int2 (lhs.x ^ rhs, lhs.y ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int2 vector. + /// Left hand side int to use to compute componentwise bitwise exclusive or. + /// Right hand side int2 to use to compute componentwise bitwise exclusive or. + /// int2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 operator ^ (int lhs, int2 rhs) { return new int2 (lhs ^ rhs.x, lhs ^ rhs.y); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxx { @@ -377,6 +553,7 @@ public int4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxy { @@ -385,6 +562,7 @@ public int4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyx { @@ -393,6 +571,7 @@ public int4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyy { @@ -401,6 +580,7 @@ public int4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxx { @@ -409,6 +589,7 @@ public int4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxy { @@ -417,6 +598,7 @@ public int4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyx { @@ -425,6 +607,7 @@ public int4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyy { @@ -433,6 +616,7 @@ public int4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxx { @@ -441,6 +625,7 @@ public int4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxy { @@ -449,6 +634,7 @@ public int4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyx { @@ -457,6 +643,7 @@ public int4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyy { @@ -465,6 +652,7 @@ public int4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxx { @@ -473,6 +661,7 @@ public int4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxy { @@ -481,6 +670,7 @@ public int4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyx { @@ -489,6 +679,7 @@ public int4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyy { @@ -497,6 +688,7 @@ public int4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxx { @@ -505,6 +697,7 @@ public int3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxy { @@ -513,6 +706,7 @@ public int3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyx { @@ -521,6 +715,7 @@ public int3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyy { @@ -529,6 +724,7 @@ public int3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxx { @@ -537,6 +733,7 @@ public int3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxy { @@ -545,6 +742,7 @@ public int3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyx { @@ -553,6 +751,7 @@ public int3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyy { @@ -561,6 +760,7 @@ public int3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xx { @@ -569,6 +769,7 @@ public int2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xy { @@ -579,6 +780,7 @@ public int2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yx { @@ -589,6 +791,7 @@ public int2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yy { @@ -620,19 +823,25 @@ unsafe public int this[int index] } /// Returns true if the int2 is equal to a given int2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int2 rhs) { return x == rhs.x && y == rhs.y; } /// Returns true if the int2 is equal to a given int2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is int2 converted && Equals(converted); } /// Returns a hash code for the int2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the int2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -640,6 +849,9 @@ public override string ToString() } /// Returns a string representation of the int2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -662,50 +874,75 @@ public DebuggerProxy(int2 v) public static partial class math { /// Returns a int2 vector constructed from two int values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// int2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 int2(int x, int y) { return new int2(x, y); } /// Returns a int2 vector constructed from an int2 vector. + /// The constructed vector's xy components will be set to this value. + /// int2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 int2(int2 xy) { return new int2(xy); } /// Returns a int2 vector constructed from a single int value by assigning it to every component. + /// int to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 int2(int v) { return new int2(v); } /// Returns a int2 vector constructed from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 int2(bool v) { return new int2(v); } /// Return a int2 vector constructed from a bool2 vector by componentwise conversion. + /// bool2 to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 int2(bool2 v) { return new int2(v); } /// Returns a int2 vector constructed from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 int2(uint v) { return new int2(v); } /// Return a int2 vector constructed from a uint2 vector by componentwise conversion. + /// uint2 to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 int2(uint2 v) { return new int2(v); } /// Returns a int2 vector constructed from a single float value by converting it to int and assigning it to every component. + /// float to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 int2(float v) { return new int2(v); } /// Return a int2 vector constructed from a float2 vector by componentwise conversion. + /// float2 to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 int2(float2 v) { return new int2(v); } /// Returns a int2 vector constructed from a single double value by converting it to int and assigning it to every component. + /// double to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 int2(double v) { return new int2(v); } /// Return a int2 vector constructed from a double2 vector by componentwise conversion. + /// double2 to convert to int2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 int2(double2 v) { return new int2(v); } /// Returns a uint hash code of a int2 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(int2 v) { @@ -717,6 +954,8 @@ public static uint hash(int2 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(int2 v) { @@ -724,40 +963,62 @@ public static uint2 hashwide(int2 v) } /// Returns the result of specified shuffling of the components from two int2 vectors into an int value. + /// int2 to use as the left argument of the shuffle operation. + /// int2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting int. + /// int result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int shuffle(int2 a, int2 b, ShuffleComponent x) + public static int shuffle(int2 left, int2 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two int2 vectors into an int2 vector. + /// int2 to use as the left argument of the shuffle operation. + /// int2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting int2 x component. + /// The ShuffleComponent to use when setting the resulting int2 y component. + /// int2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 shuffle(int2 a, int2 b, ShuffleComponent x, ShuffleComponent y) + public static int2 shuffle(int2 left, int2 right, ShuffleComponent x, ShuffleComponent y) { return int2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two int2 vectors into an int3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 shuffle(int2 a, int2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + /// int2 to use as the left argument of the shuffle operation. + /// int2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting int3 x component. + /// The ShuffleComponent to use when setting the resulting int3 y component. + /// The ShuffleComponent to use when setting the resulting int3 z component. + /// int3 result of the shuffle operation. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int3 shuffle(int2 left, int2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return int3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two int2 vectors into an int4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 shuffle(int2 a, int2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + /// int2 to use as the left argument of the shuffle operation. + /// int2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting int4 x component. + /// The ShuffleComponent to use when setting the resulting int4 y component. + /// The ShuffleComponent to use when setting the resulting int4 z component. + /// The ShuffleComponent to use when setting the resulting int4 w component. + /// int4 result of the shuffle operation. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static int4 shuffle(int2 left, int2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return int4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/int2x2.gen.cs b/src/Unity.Mathematics/int2x2.gen.cs index 4a365ca2..f436f852 100644 --- a/src/Unity.Mathematics/int2x2.gen.cs +++ b/src/Unity.Mathematics/int2x2.gen.cs @@ -14,11 +14,14 @@ namespace Unity.Mathematics { + /// A 2x2 matrix of ints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct int2x2 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public int2 c0; + /// Column 1 of the matrix. public int2 c1; /// int2x2 identity transform. @@ -28,6 +31,8 @@ public partial struct int2x2 : System.IEquatable, IFormattable public static readonly int2x2 zero; /// Constructs a int2x2 matrix from two int2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x2(int2 c0, int2 c1) { @@ -36,6 +41,10 @@ public int2x2(int2 c0, int2 c1) } /// Constructs a int2x2 matrix from 4 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x2(int m00, int m01, int m10, int m11) @@ -45,6 +54,7 @@ public int2x2(int m00, int m01, } /// Constructs a int2x2 matrix from a single int value by assigning it to every component. + /// int to convert to int2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x2(int v) { @@ -53,6 +63,7 @@ public int2x2(int v) } /// Constructs a int2x2 matrix from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x2(bool v) { @@ -61,6 +72,7 @@ public int2x2(bool v) } /// Constructs a int2x2 matrix from a bool2x2 matrix by componentwise conversion. + /// bool2x2 to convert to int2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x2(bool2x2 v) { @@ -69,6 +81,7 @@ public int2x2(bool2x2 v) } /// Constructs a int2x2 matrix from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x2(uint v) { @@ -77,6 +90,7 @@ public int2x2(uint v) } /// Constructs a int2x2 matrix from a uint2x2 matrix by componentwise conversion. + /// uint2x2 to convert to int2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x2(uint2x2 v) { @@ -85,6 +99,7 @@ public int2x2(uint2x2 v) } /// Constructs a int2x2 matrix from a single float value by converting it to int and assigning it to every component. + /// float to convert to int2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x2(float v) { @@ -93,6 +108,7 @@ public int2x2(float v) } /// Constructs a int2x2 matrix from a float2x2 matrix by componentwise conversion. + /// float2x2 to convert to int2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x2(float2x2 v) { @@ -101,6 +117,7 @@ public int2x2(float2x2 v) } /// Constructs a int2x2 matrix from a single double value by converting it to int and assigning it to every component. + /// double to convert to int2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x2(double v) { @@ -109,6 +126,7 @@ public int2x2(double v) } /// Constructs a int2x2 matrix from a double2x2 matrix by componentwise conversion. + /// double2x2 to convert to int2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x2(double2x2 v) { @@ -118,253 +136,413 @@ public int2x2(double2x2 v) /// Implicitly converts a single int value to a int2x2 matrix by assigning it to every component. + /// int to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int2x2(int v) { return new int2x2(v); } /// Explicitly converts a single bool value to a int2x2 matrix by converting it to int and assigning it to every component. + /// bool to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x2(bool v) { return new int2x2(v); } /// Explicitly converts a bool2x2 matrix to a int2x2 matrix by componentwise conversion. + /// bool2x2 to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x2(bool2x2 v) { return new int2x2(v); } /// Explicitly converts a single uint value to a int2x2 matrix by converting it to int and assigning it to every component. + /// uint to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x2(uint v) { return new int2x2(v); } /// Explicitly converts a uint2x2 matrix to a int2x2 matrix by componentwise conversion. + /// uint2x2 to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x2(uint2x2 v) { return new int2x2(v); } /// Explicitly converts a single float value to a int2x2 matrix by converting it to int and assigning it to every component. + /// float to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x2(float v) { return new int2x2(v); } /// Explicitly converts a float2x2 matrix to a int2x2 matrix by componentwise conversion. + /// float2x2 to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x2(float2x2 v) { return new int2x2(v); } /// Explicitly converts a single double value to a int2x2 matrix by converting it to int and assigning it to every component. + /// double to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x2(double v) { return new int2x2(v); } /// Explicitly converts a double2x2 matrix to a int2x2 matrix by componentwise conversion. + /// double2x2 to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x2(double2x2 v) { return new int2x2(v); } /// Returns the result of a componentwise multiplication operation on two int2x2 matrices. + /// Left hand side int2x2 to use to compute componentwise multiplication. + /// Right hand side int2x2 to use to compute componentwise multiplication. + /// int2x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator * (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } /// Returns the result of a componentwise multiplication operation on an int2x2 matrix and an int value. + /// Left hand side int2x2 to use to compute componentwise multiplication. + /// Right hand side int to use to compute componentwise multiplication. + /// int2x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator * (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 * rhs, lhs.c1 * rhs); } /// Returns the result of a componentwise multiplication operation on an int value and an int2x2 matrix. + /// Left hand side int to use to compute componentwise multiplication. + /// Right hand side int2x2 to use to compute componentwise multiplication. + /// int2x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator * (int lhs, int2x2 rhs) { return new int2x2 (lhs * rhs.c0, lhs * rhs.c1); } /// Returns the result of a componentwise addition operation on two int2x2 matrices. + /// Left hand side int2x2 to use to compute componentwise addition. + /// Right hand side int2x2 to use to compute componentwise addition. + /// int2x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator + (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } /// Returns the result of a componentwise addition operation on an int2x2 matrix and an int value. + /// Left hand side int2x2 to use to compute componentwise addition. + /// Right hand side int to use to compute componentwise addition. + /// int2x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator + (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 + rhs, lhs.c1 + rhs); } /// Returns the result of a componentwise addition operation on an int value and an int2x2 matrix. + /// Left hand side int to use to compute componentwise addition. + /// Right hand side int2x2 to use to compute componentwise addition. + /// int2x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator + (int lhs, int2x2 rhs) { return new int2x2 (lhs + rhs.c0, lhs + rhs.c1); } /// Returns the result of a componentwise subtraction operation on two int2x2 matrices. + /// Left hand side int2x2 to use to compute componentwise subtraction. + /// Right hand side int2x2 to use to compute componentwise subtraction. + /// int2x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator - (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } /// Returns the result of a componentwise subtraction operation on an int2x2 matrix and an int value. + /// Left hand side int2x2 to use to compute componentwise subtraction. + /// Right hand side int to use to compute componentwise subtraction. + /// int2x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator - (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 - rhs, lhs.c1 - rhs); } /// Returns the result of a componentwise subtraction operation on an int value and an int2x2 matrix. + /// Left hand side int to use to compute componentwise subtraction. + /// Right hand side int2x2 to use to compute componentwise subtraction. + /// int2x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator - (int lhs, int2x2 rhs) { return new int2x2 (lhs - rhs.c0, lhs - rhs.c1); } /// Returns the result of a componentwise division operation on two int2x2 matrices. + /// Left hand side int2x2 to use to compute componentwise division. + /// Right hand side int2x2 to use to compute componentwise division. + /// int2x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator / (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } /// Returns the result of a componentwise division operation on an int2x2 matrix and an int value. + /// Left hand side int2x2 to use to compute componentwise division. + /// Right hand side int to use to compute componentwise division. + /// int2x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator / (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 / rhs, lhs.c1 / rhs); } /// Returns the result of a componentwise division operation on an int value and an int2x2 matrix. + /// Left hand side int to use to compute componentwise division. + /// Right hand side int2x2 to use to compute componentwise division. + /// int2x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator / (int lhs, int2x2 rhs) { return new int2x2 (lhs / rhs.c0, lhs / rhs.c1); } /// Returns the result of a componentwise modulus operation on two int2x2 matrices. + /// Left hand side int2x2 to use to compute componentwise modulus. + /// Right hand side int2x2 to use to compute componentwise modulus. + /// int2x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator % (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } /// Returns the result of a componentwise modulus operation on an int2x2 matrix and an int value. + /// Left hand side int2x2 to use to compute componentwise modulus. + /// Right hand side int to use to compute componentwise modulus. + /// int2x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator % (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 % rhs, lhs.c1 % rhs); } /// Returns the result of a componentwise modulus operation on an int value and an int2x2 matrix. + /// Left hand side int to use to compute componentwise modulus. + /// Right hand side int2x2 to use to compute componentwise modulus. + /// int2x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator % (int lhs, int2x2 rhs) { return new int2x2 (lhs % rhs.c0, lhs % rhs.c1); } /// Returns the result of a componentwise increment operation on an int2x2 matrix. + /// Value to use when computing the componentwise increment. + /// int2x2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator ++ (int2x2 val) { return new int2x2 (++val.c0, ++val.c1); } /// Returns the result of a componentwise decrement operation on an int2x2 matrix. + /// Value to use when computing the componentwise decrement. + /// int2x2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator -- (int2x2 val) { return new int2x2 (--val.c0, --val.c1); } /// Returns the result of a componentwise less than operation on two int2x2 matrices. + /// Left hand side int2x2 to use to compute componentwise less than. + /// Right hand side int2x2 to use to compute componentwise less than. + /// bool2x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator < (int2x2 lhs, int2x2 rhs) { return new bool2x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } /// Returns the result of a componentwise less than operation on an int2x2 matrix and an int value. + /// Left hand side int2x2 to use to compute componentwise less than. + /// Right hand side int to use to compute componentwise less than. + /// bool2x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator < (int2x2 lhs, int rhs) { return new bool2x2 (lhs.c0 < rhs, lhs.c1 < rhs); } /// Returns the result of a componentwise less than operation on an int value and an int2x2 matrix. + /// Left hand side int to use to compute componentwise less than. + /// Right hand side int2x2 to use to compute componentwise less than. + /// bool2x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator < (int lhs, int2x2 rhs) { return new bool2x2 (lhs < rhs.c0, lhs < rhs.c1); } /// Returns the result of a componentwise less or equal operation on two int2x2 matrices. + /// Left hand side int2x2 to use to compute componentwise less or equal. + /// Right hand side int2x2 to use to compute componentwise less or equal. + /// bool2x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator <= (int2x2 lhs, int2x2 rhs) { return new bool2x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } /// Returns the result of a componentwise less or equal operation on an int2x2 matrix and an int value. + /// Left hand side int2x2 to use to compute componentwise less or equal. + /// Right hand side int to use to compute componentwise less or equal. + /// bool2x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator <= (int2x2 lhs, int rhs) { return new bool2x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } /// Returns the result of a componentwise less or equal operation on an int value and an int2x2 matrix. + /// Left hand side int to use to compute componentwise less or equal. + /// Right hand side int2x2 to use to compute componentwise less or equal. + /// bool2x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator <= (int lhs, int2x2 rhs) { return new bool2x2 (lhs <= rhs.c0, lhs <= rhs.c1); } /// Returns the result of a componentwise greater than operation on two int2x2 matrices. + /// Left hand side int2x2 to use to compute componentwise greater than. + /// Right hand side int2x2 to use to compute componentwise greater than. + /// bool2x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator > (int2x2 lhs, int2x2 rhs) { return new bool2x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } /// Returns the result of a componentwise greater than operation on an int2x2 matrix and an int value. + /// Left hand side int2x2 to use to compute componentwise greater than. + /// Right hand side int to use to compute componentwise greater than. + /// bool2x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator > (int2x2 lhs, int rhs) { return new bool2x2 (lhs.c0 > rhs, lhs.c1 > rhs); } /// Returns the result of a componentwise greater than operation on an int value and an int2x2 matrix. + /// Left hand side int to use to compute componentwise greater than. + /// Right hand side int2x2 to use to compute componentwise greater than. + /// bool2x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator > (int lhs, int2x2 rhs) { return new bool2x2 (lhs > rhs.c0, lhs > rhs.c1); } /// Returns the result of a componentwise greater or equal operation on two int2x2 matrices. + /// Left hand side int2x2 to use to compute componentwise greater or equal. + /// Right hand side int2x2 to use to compute componentwise greater or equal. + /// bool2x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator >= (int2x2 lhs, int2x2 rhs) { return new bool2x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } /// Returns the result of a componentwise greater or equal operation on an int2x2 matrix and an int value. + /// Left hand side int2x2 to use to compute componentwise greater or equal. + /// Right hand side int to use to compute componentwise greater or equal. + /// bool2x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator >= (int2x2 lhs, int rhs) { return new bool2x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } /// Returns the result of a componentwise greater or equal operation on an int value and an int2x2 matrix. + /// Left hand side int to use to compute componentwise greater or equal. + /// Right hand side int2x2 to use to compute componentwise greater or equal. + /// bool2x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator >= (int lhs, int2x2 rhs) { return new bool2x2 (lhs >= rhs.c0, lhs >= rhs.c1); } /// Returns the result of a componentwise unary minus operation on an int2x2 matrix. + /// Value to use when computing the componentwise unary minus. + /// int2x2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator - (int2x2 val) { return new int2x2 (-val.c0, -val.c1); } /// Returns the result of a componentwise unary plus operation on an int2x2 matrix. + /// Value to use when computing the componentwise unary plus. + /// int2x2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator + (int2x2 val) { return new int2x2 (+val.c0, +val.c1); } /// Returns the result of a componentwise left shift operation on an int2x2 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator << (int2x2 x, int n) { return new int2x2 (x.c0 << n, x.c1 << n); } /// Returns the result of a componentwise right shift operation on an int2x2 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator >> (int2x2 x, int n) { return new int2x2 (x.c0 >> n, x.c1 >> n); } /// Returns the result of a componentwise equality operation on two int2x2 matrices. + /// Left hand side int2x2 to use to compute componentwise equality. + /// Right hand side int2x2 to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (int2x2 lhs, int2x2 rhs) { return new bool2x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on an int2x2 matrix and an int value. + /// Left hand side int2x2 to use to compute componentwise equality. + /// Right hand side int to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (int2x2 lhs, int rhs) { return new bool2x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on an int value and an int2x2 matrix. + /// Left hand side int to use to compute componentwise equality. + /// Right hand side int2x2 to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (int lhs, int2x2 rhs) { return new bool2x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two int2x2 matrices. + /// Left hand side int2x2 to use to compute componentwise not equal. + /// Right hand side int2x2 to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (int2x2 lhs, int2x2 rhs) { return new bool2x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on an int2x2 matrix and an int value. + /// Left hand side int2x2 to use to compute componentwise not equal. + /// Right hand side int to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (int2x2 lhs, int rhs) { return new bool2x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on an int value and an int2x2 matrix. + /// Left hand side int to use to compute componentwise not equal. + /// Right hand side int2x2 to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (int lhs, int2x2 rhs) { return new bool2x2 (lhs != rhs.c0, lhs != rhs.c1); } /// Returns the result of a componentwise bitwise not operation on an int2x2 matrix. + /// Value to use when computing the componentwise bitwise not. + /// int2x2 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator ~ (int2x2 val) { return new int2x2 (~val.c0, ~val.c1); } /// Returns the result of a componentwise bitwise and operation on two int2x2 matrices. + /// Left hand side int2x2 to use to compute componentwise bitwise and. + /// Right hand side int2x2 to use to compute componentwise bitwise and. + /// int2x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator & (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } /// Returns the result of a componentwise bitwise and operation on an int2x2 matrix and an int value. + /// Left hand side int2x2 to use to compute componentwise bitwise and. + /// Right hand side int to use to compute componentwise bitwise and. + /// int2x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator & (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 & rhs, lhs.c1 & rhs); } /// Returns the result of a componentwise bitwise and operation on an int value and an int2x2 matrix. + /// Left hand side int to use to compute componentwise bitwise and. + /// Right hand side int2x2 to use to compute componentwise bitwise and. + /// int2x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator & (int lhs, int2x2 rhs) { return new int2x2 (lhs & rhs.c0, lhs & rhs.c1); } /// Returns the result of a componentwise bitwise or operation on two int2x2 matrices. + /// Left hand side int2x2 to use to compute componentwise bitwise or. + /// Right hand side int2x2 to use to compute componentwise bitwise or. + /// int2x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator | (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } /// Returns the result of a componentwise bitwise or operation on an int2x2 matrix and an int value. + /// Left hand side int2x2 to use to compute componentwise bitwise or. + /// Right hand side int to use to compute componentwise bitwise or. + /// int2x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator | (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 | rhs, lhs.c1 | rhs); } /// Returns the result of a componentwise bitwise or operation on an int value and an int2x2 matrix. + /// Left hand side int to use to compute componentwise bitwise or. + /// Right hand side int2x2 to use to compute componentwise bitwise or. + /// int2x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator | (int lhs, int2x2 rhs) { return new int2x2 (lhs | rhs.c0, lhs | rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on two int2x2 matrices. + /// Left hand side int2x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side int2x2 to use to compute componentwise bitwise exclusive or. + /// int2x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator ^ (int2x2 lhs, int2x2 rhs) { return new int2x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on an int2x2 matrix and an int value. + /// Left hand side int2x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side int to use to compute componentwise bitwise exclusive or. + /// int2x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator ^ (int2x2 lhs, int rhs) { return new int2x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int2x2 matrix. + /// Left hand side int to use to compute componentwise bitwise exclusive or. + /// Right hand side int2x2 to use to compute componentwise bitwise exclusive or. + /// int2x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 operator ^ (int lhs, int2x2 rhs) { return new int2x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } @@ -384,19 +562,25 @@ unsafe public ref int2 this[int index] } /// Returns true if the int2x2 is equal to a given int2x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the int2x2 is equal to a given int2x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is int2x2 converted && Equals(converted); } /// Returns a hash code for the int2x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the int2x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -404,6 +588,9 @@ public override string ToString() } /// Returns a string representation of the int2x2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -415,10 +602,18 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a int2x2 matrix constructed from two int2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// int2x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 int2x2(int2 c0, int2 c1) { return new int2x2(c0, c1); } /// Returns a int2x2 matrix constructed from from 4 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// int2x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 int2x2(int m00, int m01, int m10, int m11) @@ -428,42 +623,62 @@ public static int2x2 int2x2(int m00, int m01, } /// Returns a int2x2 matrix constructed from a single int value by assigning it to every component. + /// int to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 int2x2(int v) { return new int2x2(v); } /// Returns a int2x2 matrix constructed from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 int2x2(bool v) { return new int2x2(v); } /// Return a int2x2 matrix constructed from a bool2x2 matrix by componentwise conversion. + /// bool2x2 to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 int2x2(bool2x2 v) { return new int2x2(v); } /// Returns a int2x2 matrix constructed from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 int2x2(uint v) { return new int2x2(v); } /// Return a int2x2 matrix constructed from a uint2x2 matrix by componentwise conversion. + /// uint2x2 to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 int2x2(uint2x2 v) { return new int2x2(v); } /// Returns a int2x2 matrix constructed from a single float value by converting it to int and assigning it to every component. + /// float to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 int2x2(float v) { return new int2x2(v); } /// Return a int2x2 matrix constructed from a float2x2 matrix by componentwise conversion. + /// float2x2 to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 int2x2(float2x2 v) { return new int2x2(v); } /// Returns a int2x2 matrix constructed from a single double value by converting it to int and assigning it to every component. + /// double to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 int2x2(double v) { return new int2x2(v); } /// Return a int2x2 matrix constructed from a double2x2 matrix by componentwise conversion. + /// double2x2 to convert to int2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 int2x2(double2x2 v) { return new int2x2(v); } /// Return the int2x2 transpose of a int2x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 transpose(int2x2 v) { @@ -473,6 +688,8 @@ public static int2x2 transpose(int2x2 v) } /// Returns the determinant of a int2x2 matrix. + /// Matrix to use when computing determinant. + /// The determinant of the matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int determinant(int2x2 m) { @@ -484,7 +701,9 @@ public static int determinant(int2x2 m) return a * d - b * c; } - /// Returns a uint hash code of a int2x2 vector. + /// Returns a uint hash code of a int2x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(int2x2 v) { @@ -493,10 +712,12 @@ public static uint hash(int2x2 v) } /// - /// Returns a uint2 vector hash code of a int2x2 vector. + /// Returns a uint2 vector hash code of a int2x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(int2x2 v) { diff --git a/src/Unity.Mathematics/int2x3.gen.cs b/src/Unity.Mathematics/int2x3.gen.cs index a9cacd8b..59891a63 100644 --- a/src/Unity.Mathematics/int2x3.gen.cs +++ b/src/Unity.Mathematics/int2x3.gen.cs @@ -14,18 +14,25 @@ namespace Unity.Mathematics { + /// A 2x3 matrix of ints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct int2x3 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public int2 c0; + /// Column 1 of the matrix. public int2 c1; + /// Column 2 of the matrix. public int2 c2; /// int2x3 zero value. public static readonly int2x3 zero; /// Constructs a int2x3 matrix from three int2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x3(int2 c0, int2 c1, int2 c2) { @@ -35,6 +42,12 @@ public int2x3(int2 c0, int2 c1, int2 c2) } /// Constructs a int2x3 matrix from 6 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x3(int m00, int m01, int m02, int m10, int m11, int m12) @@ -45,6 +58,7 @@ public int2x3(int m00, int m01, int m02, } /// Constructs a int2x3 matrix from a single int value by assigning it to every component. + /// int to convert to int2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x3(int v) { @@ -54,6 +68,7 @@ public int2x3(int v) } /// Constructs a int2x3 matrix from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x3(bool v) { @@ -63,6 +78,7 @@ public int2x3(bool v) } /// Constructs a int2x3 matrix from a bool2x3 matrix by componentwise conversion. + /// bool2x3 to convert to int2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x3(bool2x3 v) { @@ -72,6 +88,7 @@ public int2x3(bool2x3 v) } /// Constructs a int2x3 matrix from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x3(uint v) { @@ -81,6 +98,7 @@ public int2x3(uint v) } /// Constructs a int2x3 matrix from a uint2x3 matrix by componentwise conversion. + /// uint2x3 to convert to int2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x3(uint2x3 v) { @@ -90,6 +108,7 @@ public int2x3(uint2x3 v) } /// Constructs a int2x3 matrix from a single float value by converting it to int and assigning it to every component. + /// float to convert to int2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x3(float v) { @@ -99,6 +118,7 @@ public int2x3(float v) } /// Constructs a int2x3 matrix from a float2x3 matrix by componentwise conversion. + /// float2x3 to convert to int2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x3(float2x3 v) { @@ -108,6 +128,7 @@ public int2x3(float2x3 v) } /// Constructs a int2x3 matrix from a single double value by converting it to int and assigning it to every component. + /// double to convert to int2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x3(double v) { @@ -117,6 +138,7 @@ public int2x3(double v) } /// Constructs a int2x3 matrix from a double2x3 matrix by componentwise conversion. + /// double2x3 to convert to int2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x3(double2x3 v) { @@ -127,253 +149,413 @@ public int2x3(double2x3 v) /// Implicitly converts a single int value to a int2x3 matrix by assigning it to every component. + /// int to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int2x3(int v) { return new int2x3(v); } /// Explicitly converts a single bool value to a int2x3 matrix by converting it to int and assigning it to every component. + /// bool to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x3(bool v) { return new int2x3(v); } /// Explicitly converts a bool2x3 matrix to a int2x3 matrix by componentwise conversion. + /// bool2x3 to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x3(bool2x3 v) { return new int2x3(v); } /// Explicitly converts a single uint value to a int2x3 matrix by converting it to int and assigning it to every component. + /// uint to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x3(uint v) { return new int2x3(v); } /// Explicitly converts a uint2x3 matrix to a int2x3 matrix by componentwise conversion. + /// uint2x3 to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x3(uint2x3 v) { return new int2x3(v); } /// Explicitly converts a single float value to a int2x3 matrix by converting it to int and assigning it to every component. + /// float to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x3(float v) { return new int2x3(v); } /// Explicitly converts a float2x3 matrix to a int2x3 matrix by componentwise conversion. + /// float2x3 to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x3(float2x3 v) { return new int2x3(v); } /// Explicitly converts a single double value to a int2x3 matrix by converting it to int and assigning it to every component. + /// double to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x3(double v) { return new int2x3(v); } /// Explicitly converts a double2x3 matrix to a int2x3 matrix by componentwise conversion. + /// double2x3 to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x3(double2x3 v) { return new int2x3(v); } /// Returns the result of a componentwise multiplication operation on two int2x3 matrices. + /// Left hand side int2x3 to use to compute componentwise multiplication. + /// Right hand side int2x3 to use to compute componentwise multiplication. + /// int2x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator * (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } /// Returns the result of a componentwise multiplication operation on an int2x3 matrix and an int value. + /// Left hand side int2x3 to use to compute componentwise multiplication. + /// Right hand side int to use to compute componentwise multiplication. + /// int2x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator * (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } /// Returns the result of a componentwise multiplication operation on an int value and an int2x3 matrix. + /// Left hand side int to use to compute componentwise multiplication. + /// Right hand side int2x3 to use to compute componentwise multiplication. + /// int2x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator * (int lhs, int2x3 rhs) { return new int2x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } /// Returns the result of a componentwise addition operation on two int2x3 matrices. + /// Left hand side int2x3 to use to compute componentwise addition. + /// Right hand side int2x3 to use to compute componentwise addition. + /// int2x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator + (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } /// Returns the result of a componentwise addition operation on an int2x3 matrix and an int value. + /// Left hand side int2x3 to use to compute componentwise addition. + /// Right hand side int to use to compute componentwise addition. + /// int2x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator + (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } /// Returns the result of a componentwise addition operation on an int value and an int2x3 matrix. + /// Left hand side int to use to compute componentwise addition. + /// Right hand side int2x3 to use to compute componentwise addition. + /// int2x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator + (int lhs, int2x3 rhs) { return new int2x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } /// Returns the result of a componentwise subtraction operation on two int2x3 matrices. + /// Left hand side int2x3 to use to compute componentwise subtraction. + /// Right hand side int2x3 to use to compute componentwise subtraction. + /// int2x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator - (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } /// Returns the result of a componentwise subtraction operation on an int2x3 matrix and an int value. + /// Left hand side int2x3 to use to compute componentwise subtraction. + /// Right hand side int to use to compute componentwise subtraction. + /// int2x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator - (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } /// Returns the result of a componentwise subtraction operation on an int value and an int2x3 matrix. + /// Left hand side int to use to compute componentwise subtraction. + /// Right hand side int2x3 to use to compute componentwise subtraction. + /// int2x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator - (int lhs, int2x3 rhs) { return new int2x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } /// Returns the result of a componentwise division operation on two int2x3 matrices. + /// Left hand side int2x3 to use to compute componentwise division. + /// Right hand side int2x3 to use to compute componentwise division. + /// int2x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator / (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } /// Returns the result of a componentwise division operation on an int2x3 matrix and an int value. + /// Left hand side int2x3 to use to compute componentwise division. + /// Right hand side int to use to compute componentwise division. + /// int2x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator / (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } /// Returns the result of a componentwise division operation on an int value and an int2x3 matrix. + /// Left hand side int to use to compute componentwise division. + /// Right hand side int2x3 to use to compute componentwise division. + /// int2x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator / (int lhs, int2x3 rhs) { return new int2x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } /// Returns the result of a componentwise modulus operation on two int2x3 matrices. + /// Left hand side int2x3 to use to compute componentwise modulus. + /// Right hand side int2x3 to use to compute componentwise modulus. + /// int2x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator % (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } /// Returns the result of a componentwise modulus operation on an int2x3 matrix and an int value. + /// Left hand side int2x3 to use to compute componentwise modulus. + /// Right hand side int to use to compute componentwise modulus. + /// int2x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator % (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } /// Returns the result of a componentwise modulus operation on an int value and an int2x3 matrix. + /// Left hand side int to use to compute componentwise modulus. + /// Right hand side int2x3 to use to compute componentwise modulus. + /// int2x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator % (int lhs, int2x3 rhs) { return new int2x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } /// Returns the result of a componentwise increment operation on an int2x3 matrix. + /// Value to use when computing the componentwise increment. + /// int2x3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator ++ (int2x3 val) { return new int2x3 (++val.c0, ++val.c1, ++val.c2); } /// Returns the result of a componentwise decrement operation on an int2x3 matrix. + /// Value to use when computing the componentwise decrement. + /// int2x3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator -- (int2x3 val) { return new int2x3 (--val.c0, --val.c1, --val.c2); } /// Returns the result of a componentwise less than operation on two int2x3 matrices. + /// Left hand side int2x3 to use to compute componentwise less than. + /// Right hand side int2x3 to use to compute componentwise less than. + /// bool2x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator < (int2x3 lhs, int2x3 rhs) { return new bool2x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } /// Returns the result of a componentwise less than operation on an int2x3 matrix and an int value. + /// Left hand side int2x3 to use to compute componentwise less than. + /// Right hand side int to use to compute componentwise less than. + /// bool2x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator < (int2x3 lhs, int rhs) { return new bool2x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } /// Returns the result of a componentwise less than operation on an int value and an int2x3 matrix. + /// Left hand side int to use to compute componentwise less than. + /// Right hand side int2x3 to use to compute componentwise less than. + /// bool2x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator < (int lhs, int2x3 rhs) { return new bool2x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } /// Returns the result of a componentwise less or equal operation on two int2x3 matrices. + /// Left hand side int2x3 to use to compute componentwise less or equal. + /// Right hand side int2x3 to use to compute componentwise less or equal. + /// bool2x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator <= (int2x3 lhs, int2x3 rhs) { return new bool2x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } /// Returns the result of a componentwise less or equal operation on an int2x3 matrix and an int value. + /// Left hand side int2x3 to use to compute componentwise less or equal. + /// Right hand side int to use to compute componentwise less or equal. + /// bool2x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator <= (int2x3 lhs, int rhs) { return new bool2x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } /// Returns the result of a componentwise less or equal operation on an int value and an int2x3 matrix. + /// Left hand side int to use to compute componentwise less or equal. + /// Right hand side int2x3 to use to compute componentwise less or equal. + /// bool2x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator <= (int lhs, int2x3 rhs) { return new bool2x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } /// Returns the result of a componentwise greater than operation on two int2x3 matrices. + /// Left hand side int2x3 to use to compute componentwise greater than. + /// Right hand side int2x3 to use to compute componentwise greater than. + /// bool2x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator > (int2x3 lhs, int2x3 rhs) { return new bool2x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } /// Returns the result of a componentwise greater than operation on an int2x3 matrix and an int value. + /// Left hand side int2x3 to use to compute componentwise greater than. + /// Right hand side int to use to compute componentwise greater than. + /// bool2x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator > (int2x3 lhs, int rhs) { return new bool2x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } /// Returns the result of a componentwise greater than operation on an int value and an int2x3 matrix. + /// Left hand side int to use to compute componentwise greater than. + /// Right hand side int2x3 to use to compute componentwise greater than. + /// bool2x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator > (int lhs, int2x3 rhs) { return new bool2x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } /// Returns the result of a componentwise greater or equal operation on two int2x3 matrices. + /// Left hand side int2x3 to use to compute componentwise greater or equal. + /// Right hand side int2x3 to use to compute componentwise greater or equal. + /// bool2x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator >= (int2x3 lhs, int2x3 rhs) { return new bool2x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } /// Returns the result of a componentwise greater or equal operation on an int2x3 matrix and an int value. + /// Left hand side int2x3 to use to compute componentwise greater or equal. + /// Right hand side int to use to compute componentwise greater or equal. + /// bool2x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator >= (int2x3 lhs, int rhs) { return new bool2x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } /// Returns the result of a componentwise greater or equal operation on an int value and an int2x3 matrix. + /// Left hand side int to use to compute componentwise greater or equal. + /// Right hand side int2x3 to use to compute componentwise greater or equal. + /// bool2x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator >= (int lhs, int2x3 rhs) { return new bool2x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } /// Returns the result of a componentwise unary minus operation on an int2x3 matrix. + /// Value to use when computing the componentwise unary minus. + /// int2x3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator - (int2x3 val) { return new int2x3 (-val.c0, -val.c1, -val.c2); } /// Returns the result of a componentwise unary plus operation on an int2x3 matrix. + /// Value to use when computing the componentwise unary plus. + /// int2x3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator + (int2x3 val) { return new int2x3 (+val.c0, +val.c1, +val.c2); } /// Returns the result of a componentwise left shift operation on an int2x3 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator << (int2x3 x, int n) { return new int2x3 (x.c0 << n, x.c1 << n, x.c2 << n); } /// Returns the result of a componentwise right shift operation on an int2x3 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator >> (int2x3 x, int n) { return new int2x3 (x.c0 >> n, x.c1 >> n, x.c2 >> n); } /// Returns the result of a componentwise equality operation on two int2x3 matrices. + /// Left hand side int2x3 to use to compute componentwise equality. + /// Right hand side int2x3 to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (int2x3 lhs, int2x3 rhs) { return new bool2x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on an int2x3 matrix and an int value. + /// Left hand side int2x3 to use to compute componentwise equality. + /// Right hand side int to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (int2x3 lhs, int rhs) { return new bool2x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on an int value and an int2x3 matrix. + /// Left hand side int to use to compute componentwise equality. + /// Right hand side int2x3 to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (int lhs, int2x3 rhs) { return new bool2x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two int2x3 matrices. + /// Left hand side int2x3 to use to compute componentwise not equal. + /// Right hand side int2x3 to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (int2x3 lhs, int2x3 rhs) { return new bool2x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on an int2x3 matrix and an int value. + /// Left hand side int2x3 to use to compute componentwise not equal. + /// Right hand side int to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (int2x3 lhs, int rhs) { return new bool2x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on an int value and an int2x3 matrix. + /// Left hand side int to use to compute componentwise not equal. + /// Right hand side int2x3 to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (int lhs, int2x3 rhs) { return new bool2x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } /// Returns the result of a componentwise bitwise not operation on an int2x3 matrix. + /// Value to use when computing the componentwise bitwise not. + /// int2x3 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator ~ (int2x3 val) { return new int2x3 (~val.c0, ~val.c1, ~val.c2); } /// Returns the result of a componentwise bitwise and operation on two int2x3 matrices. + /// Left hand side int2x3 to use to compute componentwise bitwise and. + /// Right hand side int2x3 to use to compute componentwise bitwise and. + /// int2x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator & (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } /// Returns the result of a componentwise bitwise and operation on an int2x3 matrix and an int value. + /// Left hand side int2x3 to use to compute componentwise bitwise and. + /// Right hand side int to use to compute componentwise bitwise and. + /// int2x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator & (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } /// Returns the result of a componentwise bitwise and operation on an int value and an int2x3 matrix. + /// Left hand side int to use to compute componentwise bitwise and. + /// Right hand side int2x3 to use to compute componentwise bitwise and. + /// int2x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator & (int lhs, int2x3 rhs) { return new int2x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } /// Returns the result of a componentwise bitwise or operation on two int2x3 matrices. + /// Left hand side int2x3 to use to compute componentwise bitwise or. + /// Right hand side int2x3 to use to compute componentwise bitwise or. + /// int2x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator | (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } /// Returns the result of a componentwise bitwise or operation on an int2x3 matrix and an int value. + /// Left hand side int2x3 to use to compute componentwise bitwise or. + /// Right hand side int to use to compute componentwise bitwise or. + /// int2x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator | (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } /// Returns the result of a componentwise bitwise or operation on an int value and an int2x3 matrix. + /// Left hand side int to use to compute componentwise bitwise or. + /// Right hand side int2x3 to use to compute componentwise bitwise or. + /// int2x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator | (int lhs, int2x3 rhs) { return new int2x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on two int2x3 matrices. + /// Left hand side int2x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side int2x3 to use to compute componentwise bitwise exclusive or. + /// int2x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator ^ (int2x3 lhs, int2x3 rhs) { return new int2x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on an int2x3 matrix and an int value. + /// Left hand side int2x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side int to use to compute componentwise bitwise exclusive or. + /// int2x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator ^ (int2x3 lhs, int rhs) { return new int2x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int2x3 matrix. + /// Left hand side int to use to compute componentwise bitwise exclusive or. + /// Right hand side int2x3 to use to compute componentwise bitwise exclusive or. + /// int2x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 operator ^ (int lhs, int2x3 rhs) { return new int2x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } @@ -393,19 +575,25 @@ unsafe public ref int2 this[int index] } /// Returns true if the int2x3 is equal to a given int2x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the int2x3 is equal to a given int2x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is int2x3 converted && Equals(converted); } /// Returns a hash code for the int2x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the int2x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -413,6 +601,9 @@ public override string ToString() } /// Returns a string representation of the int2x3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -424,10 +615,21 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a int2x3 matrix constructed from three int2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// int2x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 int2x3(int2 c0, int2 c1, int2 c2) { return new int2x3(c0, c1, c2); } /// Returns a int2x3 matrix constructed from from 6 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// int2x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 int2x3(int m00, int m01, int m02, int m10, int m11, int m12) @@ -437,42 +639,62 @@ public static int2x3 int2x3(int m00, int m01, int m02, } /// Returns a int2x3 matrix constructed from a single int value by assigning it to every component. + /// int to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 int2x3(int v) { return new int2x3(v); } /// Returns a int2x3 matrix constructed from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 int2x3(bool v) { return new int2x3(v); } /// Return a int2x3 matrix constructed from a bool2x3 matrix by componentwise conversion. + /// bool2x3 to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 int2x3(bool2x3 v) { return new int2x3(v); } /// Returns a int2x3 matrix constructed from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 int2x3(uint v) { return new int2x3(v); } /// Return a int2x3 matrix constructed from a uint2x3 matrix by componentwise conversion. + /// uint2x3 to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 int2x3(uint2x3 v) { return new int2x3(v); } /// Returns a int2x3 matrix constructed from a single float value by converting it to int and assigning it to every component. + /// float to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 int2x3(float v) { return new int2x3(v); } /// Return a int2x3 matrix constructed from a float2x3 matrix by componentwise conversion. + /// float2x3 to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 int2x3(float2x3 v) { return new int2x3(v); } /// Returns a int2x3 matrix constructed from a single double value by converting it to int and assigning it to every component. + /// double to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 int2x3(double v) { return new int2x3(v); } /// Return a int2x3 matrix constructed from a double2x3 matrix by componentwise conversion. + /// double2x3 to convert to int2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 int2x3(double2x3 v) { return new int2x3(v); } /// Return the int3x2 transpose of a int2x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 transpose(int2x3 v) { @@ -482,7 +704,9 @@ public static int3x2 transpose(int2x3 v) v.c2.x, v.c2.y); } - /// Returns a uint hash code of a int2x3 vector. + /// Returns a uint hash code of a int2x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(int2x3 v) { @@ -492,10 +716,12 @@ public static uint hash(int2x3 v) } /// - /// Returns a uint2 vector hash code of a int2x3 vector. + /// Returns a uint2 vector hash code of a int2x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(int2x3 v) { diff --git a/src/Unity.Mathematics/int2x4.gen.cs b/src/Unity.Mathematics/int2x4.gen.cs index 5ee41ace..c3be074f 100644 --- a/src/Unity.Mathematics/int2x4.gen.cs +++ b/src/Unity.Mathematics/int2x4.gen.cs @@ -14,19 +14,28 @@ namespace Unity.Mathematics { + /// A 2x4 matrix of ints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct int2x4 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public int2 c0; + /// Column 1 of the matrix. public int2 c1; + /// Column 2 of the matrix. public int2 c2; + /// Column 3 of the matrix. public int2 c3; /// int2x4 zero value. public static readonly int2x4 zero; /// Constructs a int2x4 matrix from four int2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x4(int2 c0, int2 c1, int2 c2, int2 c3) { @@ -37,6 +46,14 @@ public int2x4(int2 c0, int2 c1, int2 c2, int2 c3) } /// Constructs a int2x4 matrix from 8 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x4(int m00, int m01, int m02, int m03, int m10, int m11, int m12, int m13) @@ -48,6 +65,7 @@ public int2x4(int m00, int m01, int m02, int m03, } /// Constructs a int2x4 matrix from a single int value by assigning it to every component. + /// int to convert to int2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x4(int v) { @@ -58,6 +76,7 @@ public int2x4(int v) } /// Constructs a int2x4 matrix from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x4(bool v) { @@ -68,6 +87,7 @@ public int2x4(bool v) } /// Constructs a int2x4 matrix from a bool2x4 matrix by componentwise conversion. + /// bool2x4 to convert to int2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x4(bool2x4 v) { @@ -78,6 +98,7 @@ public int2x4(bool2x4 v) } /// Constructs a int2x4 matrix from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x4(uint v) { @@ -88,6 +109,7 @@ public int2x4(uint v) } /// Constructs a int2x4 matrix from a uint2x4 matrix by componentwise conversion. + /// uint2x4 to convert to int2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x4(uint2x4 v) { @@ -98,6 +120,7 @@ public int2x4(uint2x4 v) } /// Constructs a int2x4 matrix from a single float value by converting it to int and assigning it to every component. + /// float to convert to int2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x4(float v) { @@ -108,6 +131,7 @@ public int2x4(float v) } /// Constructs a int2x4 matrix from a float2x4 matrix by componentwise conversion. + /// float2x4 to convert to int2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x4(float2x4 v) { @@ -118,6 +142,7 @@ public int2x4(float2x4 v) } /// Constructs a int2x4 matrix from a single double value by converting it to int and assigning it to every component. + /// double to convert to int2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x4(double v) { @@ -128,6 +153,7 @@ public int2x4(double v) } /// Constructs a int2x4 matrix from a double2x4 matrix by componentwise conversion. + /// double2x4 to convert to int2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2x4(double2x4 v) { @@ -139,253 +165,413 @@ public int2x4(double2x4 v) /// Implicitly converts a single int value to a int2x4 matrix by assigning it to every component. + /// int to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int2x4(int v) { return new int2x4(v); } /// Explicitly converts a single bool value to a int2x4 matrix by converting it to int and assigning it to every component. + /// bool to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x4(bool v) { return new int2x4(v); } /// Explicitly converts a bool2x4 matrix to a int2x4 matrix by componentwise conversion. + /// bool2x4 to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x4(bool2x4 v) { return new int2x4(v); } /// Explicitly converts a single uint value to a int2x4 matrix by converting it to int and assigning it to every component. + /// uint to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x4(uint v) { return new int2x4(v); } /// Explicitly converts a uint2x4 matrix to a int2x4 matrix by componentwise conversion. + /// uint2x4 to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x4(uint2x4 v) { return new int2x4(v); } /// Explicitly converts a single float value to a int2x4 matrix by converting it to int and assigning it to every component. + /// float to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x4(float v) { return new int2x4(v); } /// Explicitly converts a float2x4 matrix to a int2x4 matrix by componentwise conversion. + /// float2x4 to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x4(float2x4 v) { return new int2x4(v); } /// Explicitly converts a single double value to a int2x4 matrix by converting it to int and assigning it to every component. + /// double to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x4(double v) { return new int2x4(v); } /// Explicitly converts a double2x4 matrix to a int2x4 matrix by componentwise conversion. + /// double2x4 to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int2x4(double2x4 v) { return new int2x4(v); } /// Returns the result of a componentwise multiplication operation on two int2x4 matrices. + /// Left hand side int2x4 to use to compute componentwise multiplication. + /// Right hand side int2x4 to use to compute componentwise multiplication. + /// int2x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator * (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } /// Returns the result of a componentwise multiplication operation on an int2x4 matrix and an int value. + /// Left hand side int2x4 to use to compute componentwise multiplication. + /// Right hand side int to use to compute componentwise multiplication. + /// int2x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator * (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } /// Returns the result of a componentwise multiplication operation on an int value and an int2x4 matrix. + /// Left hand side int to use to compute componentwise multiplication. + /// Right hand side int2x4 to use to compute componentwise multiplication. + /// int2x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator * (int lhs, int2x4 rhs) { return new int2x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } /// Returns the result of a componentwise addition operation on two int2x4 matrices. + /// Left hand side int2x4 to use to compute componentwise addition. + /// Right hand side int2x4 to use to compute componentwise addition. + /// int2x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator + (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } /// Returns the result of a componentwise addition operation on an int2x4 matrix and an int value. + /// Left hand side int2x4 to use to compute componentwise addition. + /// Right hand side int to use to compute componentwise addition. + /// int2x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator + (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } /// Returns the result of a componentwise addition operation on an int value and an int2x4 matrix. + /// Left hand side int to use to compute componentwise addition. + /// Right hand side int2x4 to use to compute componentwise addition. + /// int2x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator + (int lhs, int2x4 rhs) { return new int2x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } /// Returns the result of a componentwise subtraction operation on two int2x4 matrices. + /// Left hand side int2x4 to use to compute componentwise subtraction. + /// Right hand side int2x4 to use to compute componentwise subtraction. + /// int2x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator - (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } /// Returns the result of a componentwise subtraction operation on an int2x4 matrix and an int value. + /// Left hand side int2x4 to use to compute componentwise subtraction. + /// Right hand side int to use to compute componentwise subtraction. + /// int2x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator - (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } /// Returns the result of a componentwise subtraction operation on an int value and an int2x4 matrix. + /// Left hand side int to use to compute componentwise subtraction. + /// Right hand side int2x4 to use to compute componentwise subtraction. + /// int2x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator - (int lhs, int2x4 rhs) { return new int2x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } /// Returns the result of a componentwise division operation on two int2x4 matrices. + /// Left hand side int2x4 to use to compute componentwise division. + /// Right hand side int2x4 to use to compute componentwise division. + /// int2x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator / (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } /// Returns the result of a componentwise division operation on an int2x4 matrix and an int value. + /// Left hand side int2x4 to use to compute componentwise division. + /// Right hand side int to use to compute componentwise division. + /// int2x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator / (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } /// Returns the result of a componentwise division operation on an int value and an int2x4 matrix. + /// Left hand side int to use to compute componentwise division. + /// Right hand side int2x4 to use to compute componentwise division. + /// int2x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator / (int lhs, int2x4 rhs) { return new int2x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } /// Returns the result of a componentwise modulus operation on two int2x4 matrices. + /// Left hand side int2x4 to use to compute componentwise modulus. + /// Right hand side int2x4 to use to compute componentwise modulus. + /// int2x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator % (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } /// Returns the result of a componentwise modulus operation on an int2x4 matrix and an int value. + /// Left hand side int2x4 to use to compute componentwise modulus. + /// Right hand side int to use to compute componentwise modulus. + /// int2x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator % (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } /// Returns the result of a componentwise modulus operation on an int value and an int2x4 matrix. + /// Left hand side int to use to compute componentwise modulus. + /// Right hand side int2x4 to use to compute componentwise modulus. + /// int2x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator % (int lhs, int2x4 rhs) { return new int2x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } /// Returns the result of a componentwise increment operation on an int2x4 matrix. + /// Value to use when computing the componentwise increment. + /// int2x4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator ++ (int2x4 val) { return new int2x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } /// Returns the result of a componentwise decrement operation on an int2x4 matrix. + /// Value to use when computing the componentwise decrement. + /// int2x4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator -- (int2x4 val) { return new int2x4 (--val.c0, --val.c1, --val.c2, --val.c3); } /// Returns the result of a componentwise less than operation on two int2x4 matrices. + /// Left hand side int2x4 to use to compute componentwise less than. + /// Right hand side int2x4 to use to compute componentwise less than. + /// bool2x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator < (int2x4 lhs, int2x4 rhs) { return new bool2x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } /// Returns the result of a componentwise less than operation on an int2x4 matrix and an int value. + /// Left hand side int2x4 to use to compute componentwise less than. + /// Right hand side int to use to compute componentwise less than. + /// bool2x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator < (int2x4 lhs, int rhs) { return new bool2x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } /// Returns the result of a componentwise less than operation on an int value and an int2x4 matrix. + /// Left hand side int to use to compute componentwise less than. + /// Right hand side int2x4 to use to compute componentwise less than. + /// bool2x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator < (int lhs, int2x4 rhs) { return new bool2x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } /// Returns the result of a componentwise less or equal operation on two int2x4 matrices. + /// Left hand side int2x4 to use to compute componentwise less or equal. + /// Right hand side int2x4 to use to compute componentwise less or equal. + /// bool2x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator <= (int2x4 lhs, int2x4 rhs) { return new bool2x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } /// Returns the result of a componentwise less or equal operation on an int2x4 matrix and an int value. + /// Left hand side int2x4 to use to compute componentwise less or equal. + /// Right hand side int to use to compute componentwise less or equal. + /// bool2x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator <= (int2x4 lhs, int rhs) { return new bool2x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } /// Returns the result of a componentwise less or equal operation on an int value and an int2x4 matrix. + /// Left hand side int to use to compute componentwise less or equal. + /// Right hand side int2x4 to use to compute componentwise less or equal. + /// bool2x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator <= (int lhs, int2x4 rhs) { return new bool2x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } /// Returns the result of a componentwise greater than operation on two int2x4 matrices. + /// Left hand side int2x4 to use to compute componentwise greater than. + /// Right hand side int2x4 to use to compute componentwise greater than. + /// bool2x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator > (int2x4 lhs, int2x4 rhs) { return new bool2x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } /// Returns the result of a componentwise greater than operation on an int2x4 matrix and an int value. + /// Left hand side int2x4 to use to compute componentwise greater than. + /// Right hand side int to use to compute componentwise greater than. + /// bool2x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator > (int2x4 lhs, int rhs) { return new bool2x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } /// Returns the result of a componentwise greater than operation on an int value and an int2x4 matrix. + /// Left hand side int to use to compute componentwise greater than. + /// Right hand side int2x4 to use to compute componentwise greater than. + /// bool2x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator > (int lhs, int2x4 rhs) { return new bool2x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } /// Returns the result of a componentwise greater or equal operation on two int2x4 matrices. + /// Left hand side int2x4 to use to compute componentwise greater or equal. + /// Right hand side int2x4 to use to compute componentwise greater or equal. + /// bool2x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator >= (int2x4 lhs, int2x4 rhs) { return new bool2x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } /// Returns the result of a componentwise greater or equal operation on an int2x4 matrix and an int value. + /// Left hand side int2x4 to use to compute componentwise greater or equal. + /// Right hand side int to use to compute componentwise greater or equal. + /// bool2x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator >= (int2x4 lhs, int rhs) { return new bool2x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } /// Returns the result of a componentwise greater or equal operation on an int value and an int2x4 matrix. + /// Left hand side int to use to compute componentwise greater or equal. + /// Right hand side int2x4 to use to compute componentwise greater or equal. + /// bool2x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator >= (int lhs, int2x4 rhs) { return new bool2x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } /// Returns the result of a componentwise unary minus operation on an int2x4 matrix. + /// Value to use when computing the componentwise unary minus. + /// int2x4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator - (int2x4 val) { return new int2x4 (-val.c0, -val.c1, -val.c2, -val.c3); } /// Returns the result of a componentwise unary plus operation on an int2x4 matrix. + /// Value to use when computing the componentwise unary plus. + /// int2x4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator + (int2x4 val) { return new int2x4 (+val.c0, +val.c1, +val.c2, +val.c3); } /// Returns the result of a componentwise left shift operation on an int2x4 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator << (int2x4 x, int n) { return new int2x4 (x.c0 << n, x.c1 << n, x.c2 << n, x.c3 << n); } /// Returns the result of a componentwise right shift operation on an int2x4 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator >> (int2x4 x, int n) { return new int2x4 (x.c0 >> n, x.c1 >> n, x.c2 >> n, x.c3 >> n); } /// Returns the result of a componentwise equality operation on two int2x4 matrices. + /// Left hand side int2x4 to use to compute componentwise equality. + /// Right hand side int2x4 to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (int2x4 lhs, int2x4 rhs) { return new bool2x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on an int2x4 matrix and an int value. + /// Left hand side int2x4 to use to compute componentwise equality. + /// Right hand side int to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (int2x4 lhs, int rhs) { return new bool2x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on an int value and an int2x4 matrix. + /// Left hand side int to use to compute componentwise equality. + /// Right hand side int2x4 to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (int lhs, int2x4 rhs) { return new bool2x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two int2x4 matrices. + /// Left hand side int2x4 to use to compute componentwise not equal. + /// Right hand side int2x4 to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (int2x4 lhs, int2x4 rhs) { return new bool2x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on an int2x4 matrix and an int value. + /// Left hand side int2x4 to use to compute componentwise not equal. + /// Right hand side int to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (int2x4 lhs, int rhs) { return new bool2x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on an int value and an int2x4 matrix. + /// Left hand side int to use to compute componentwise not equal. + /// Right hand side int2x4 to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (int lhs, int2x4 rhs) { return new bool2x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } /// Returns the result of a componentwise bitwise not operation on an int2x4 matrix. + /// Value to use when computing the componentwise bitwise not. + /// int2x4 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator ~ (int2x4 val) { return new int2x4 (~val.c0, ~val.c1, ~val.c2, ~val.c3); } /// Returns the result of a componentwise bitwise and operation on two int2x4 matrices. + /// Left hand side int2x4 to use to compute componentwise bitwise and. + /// Right hand side int2x4 to use to compute componentwise bitwise and. + /// int2x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator & (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } /// Returns the result of a componentwise bitwise and operation on an int2x4 matrix and an int value. + /// Left hand side int2x4 to use to compute componentwise bitwise and. + /// Right hand side int to use to compute componentwise bitwise and. + /// int2x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator & (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } /// Returns the result of a componentwise bitwise and operation on an int value and an int2x4 matrix. + /// Left hand side int to use to compute componentwise bitwise and. + /// Right hand side int2x4 to use to compute componentwise bitwise and. + /// int2x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator & (int lhs, int2x4 rhs) { return new int2x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } /// Returns the result of a componentwise bitwise or operation on two int2x4 matrices. + /// Left hand side int2x4 to use to compute componentwise bitwise or. + /// Right hand side int2x4 to use to compute componentwise bitwise or. + /// int2x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator | (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } /// Returns the result of a componentwise bitwise or operation on an int2x4 matrix and an int value. + /// Left hand side int2x4 to use to compute componentwise bitwise or. + /// Right hand side int to use to compute componentwise bitwise or. + /// int2x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator | (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } /// Returns the result of a componentwise bitwise or operation on an int value and an int2x4 matrix. + /// Left hand side int to use to compute componentwise bitwise or. + /// Right hand side int2x4 to use to compute componentwise bitwise or. + /// int2x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator | (int lhs, int2x4 rhs) { return new int2x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on two int2x4 matrices. + /// Left hand side int2x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side int2x4 to use to compute componentwise bitwise exclusive or. + /// int2x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator ^ (int2x4 lhs, int2x4 rhs) { return new int2x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on an int2x4 matrix and an int value. + /// Left hand side int2x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side int to use to compute componentwise bitwise exclusive or. + /// int2x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator ^ (int2x4 lhs, int rhs) { return new int2x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int2x4 matrix. + /// Left hand side int to use to compute componentwise bitwise exclusive or. + /// Right hand side int2x4 to use to compute componentwise bitwise exclusive or. + /// int2x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 operator ^ (int lhs, int2x4 rhs) { return new int2x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } @@ -405,19 +591,25 @@ unsafe public ref int2 this[int index] } /// Returns true if the int2x4 is equal to a given int2x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the int2x4 is equal to a given int2x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is int2x4 converted && Equals(converted); } /// Returns a hash code for the int2x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the int2x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -425,6 +617,9 @@ public override string ToString() } /// Returns a string representation of the int2x4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -436,10 +631,24 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a int2x4 matrix constructed from four int2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// int2x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 int2x4(int2 c0, int2 c1, int2 c2, int2 c3) { return new int2x4(c0, c1, c2, c3); } /// Returns a int2x4 matrix constructed from from 8 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// int2x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 int2x4(int m00, int m01, int m02, int m03, int m10, int m11, int m12, int m13) @@ -449,42 +658,62 @@ public static int2x4 int2x4(int m00, int m01, int m02, int m03, } /// Returns a int2x4 matrix constructed from a single int value by assigning it to every component. + /// int to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 int2x4(int v) { return new int2x4(v); } /// Returns a int2x4 matrix constructed from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 int2x4(bool v) { return new int2x4(v); } /// Return a int2x4 matrix constructed from a bool2x4 matrix by componentwise conversion. + /// bool2x4 to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 int2x4(bool2x4 v) { return new int2x4(v); } /// Returns a int2x4 matrix constructed from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 int2x4(uint v) { return new int2x4(v); } /// Return a int2x4 matrix constructed from a uint2x4 matrix by componentwise conversion. + /// uint2x4 to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 int2x4(uint2x4 v) { return new int2x4(v); } /// Returns a int2x4 matrix constructed from a single float value by converting it to int and assigning it to every component. + /// float to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 int2x4(float v) { return new int2x4(v); } /// Return a int2x4 matrix constructed from a float2x4 matrix by componentwise conversion. + /// float2x4 to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 int2x4(float2x4 v) { return new int2x4(v); } /// Returns a int2x4 matrix constructed from a single double value by converting it to int and assigning it to every component. + /// double to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 int2x4(double v) { return new int2x4(v); } /// Return a int2x4 matrix constructed from a double2x4 matrix by componentwise conversion. + /// double2x4 to convert to int2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 int2x4(double2x4 v) { return new int2x4(v); } /// Return the int4x2 transpose of a int2x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 transpose(int2x4 v) { @@ -495,7 +724,9 @@ public static int4x2 transpose(int2x4 v) v.c3.x, v.c3.y); } - /// Returns a uint hash code of a int2x4 vector. + /// Returns a uint hash code of a int2x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(int2x4 v) { @@ -506,10 +737,12 @@ public static uint hash(int2x4 v) } /// - /// Returns a uint2 vector hash code of a int2x4 vector. + /// Returns a uint2 vector hash code of a int2x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(int2x4 v) { diff --git a/src/Unity.Mathematics/int3.gen.cs b/src/Unity.Mathematics/int3.gen.cs index 2d7715dc..d766a8c6 100644 --- a/src/Unity.Mathematics/int3.gen.cs +++ b/src/Unity.Mathematics/int3.gen.cs @@ -15,19 +15,26 @@ namespace Unity.Mathematics { + /// A 3 component vector of ints. [DebuggerTypeProxy(typeof(int3.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct int3 : System.IEquatable, IFormattable { + /// x component of the vector. public int x; + /// y component of the vector. public int y; + /// z component of the vector. public int z; /// int3 zero value. public static readonly int3 zero; /// Constructs a int3 vector from three int values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(int x, int y, int z) { @@ -37,6 +44,8 @@ public int3(int x, int y, int z) } /// Constructs a int3 vector from an int value and an int2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(int x, int2 yz) { @@ -46,6 +55,8 @@ public int3(int x, int2 yz) } /// Constructs a int3 vector from an int2 vector and an int value. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(int2 xy, int z) { @@ -55,6 +66,7 @@ public int3(int2 xy, int z) } /// Constructs a int3 vector from an int3 vector. + /// The constructed vector's xyz components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(int3 xyz) { @@ -64,6 +76,7 @@ public int3(int3 xyz) } /// Constructs a int3 vector from a single int value by assigning it to every component. + /// int to convert to int3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(int v) { @@ -73,6 +86,7 @@ public int3(int v) } /// Constructs a int3 vector from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(bool v) { @@ -82,6 +96,7 @@ public int3(bool v) } /// Constructs a int3 vector from a bool3 vector by componentwise conversion. + /// bool3 to convert to int3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(bool3 v) { @@ -91,6 +106,7 @@ public int3(bool3 v) } /// Constructs a int3 vector from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(uint v) { @@ -100,6 +116,7 @@ public int3(uint v) } /// Constructs a int3 vector from a uint3 vector by componentwise conversion. + /// uint3 to convert to int3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(uint3 v) { @@ -109,6 +126,7 @@ public int3(uint3 v) } /// Constructs a int3 vector from a single float value by converting it to int and assigning it to every component. + /// float to convert to int3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(float v) { @@ -118,6 +136,7 @@ public int3(float v) } /// Constructs a int3 vector from a float3 vector by componentwise conversion. + /// float3 to convert to int3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(float3 v) { @@ -127,6 +146,7 @@ public int3(float3 v) } /// Constructs a int3 vector from a single double value by converting it to int and assigning it to every component. + /// double to convert to int3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(double v) { @@ -136,6 +156,7 @@ public int3(double v) } /// Constructs a int3 vector from a double3 vector by componentwise conversion. + /// double3 to convert to int3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3(double3 v) { @@ -146,259 +167,420 @@ public int3(double3 v) /// Implicitly converts a single int value to a int3 vector by assigning it to every component. + /// int to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int3(int v) { return new int3(v); } /// Explicitly converts a single bool value to a int3 vector by converting it to int and assigning it to every component. + /// bool to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3(bool v) { return new int3(v); } /// Explicitly converts a bool3 vector to a int3 vector by componentwise conversion. + /// bool3 to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3(bool3 v) { return new int3(v); } /// Explicitly converts a single uint value to a int3 vector by converting it to int and assigning it to every component. + /// uint to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3(uint v) { return new int3(v); } /// Explicitly converts a uint3 vector to a int3 vector by componentwise conversion. + /// uint3 to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3(uint3 v) { return new int3(v); } /// Explicitly converts a single float value to a int3 vector by converting it to int and assigning it to every component. + /// float to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3(float v) { return new int3(v); } /// Explicitly converts a float3 vector to a int3 vector by componentwise conversion. + /// float3 to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3(float3 v) { return new int3(v); } /// Explicitly converts a single double value to a int3 vector by converting it to int and assigning it to every component. + /// double to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3(double v) { return new int3(v); } /// Explicitly converts a double3 vector to a int3 vector by componentwise conversion. + /// double3 to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3(double3 v) { return new int3(v); } /// Returns the result of a componentwise multiplication operation on two int3 vectors. + /// Left hand side int3 to use to compute componentwise multiplication. + /// Right hand side int3 to use to compute componentwise multiplication. + /// int3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator * (int3 lhs, int3 rhs) { return new int3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } /// Returns the result of a componentwise multiplication operation on an int3 vector and an int value. + /// Left hand side int3 to use to compute componentwise multiplication. + /// Right hand side int to use to compute componentwise multiplication. + /// int3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator * (int3 lhs, int rhs) { return new int3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } /// Returns the result of a componentwise multiplication operation on an int value and an int3 vector. + /// Left hand side int to use to compute componentwise multiplication. + /// Right hand side int3 to use to compute componentwise multiplication. + /// int3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator * (int lhs, int3 rhs) { return new int3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } /// Returns the result of a componentwise addition operation on two int3 vectors. + /// Left hand side int3 to use to compute componentwise addition. + /// Right hand side int3 to use to compute componentwise addition. + /// int3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator + (int3 lhs, int3 rhs) { return new int3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } /// Returns the result of a componentwise addition operation on an int3 vector and an int value. + /// Left hand side int3 to use to compute componentwise addition. + /// Right hand side int to use to compute componentwise addition. + /// int3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator + (int3 lhs, int rhs) { return new int3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } /// Returns the result of a componentwise addition operation on an int value and an int3 vector. + /// Left hand side int to use to compute componentwise addition. + /// Right hand side int3 to use to compute componentwise addition. + /// int3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator + (int lhs, int3 rhs) { return new int3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } /// Returns the result of a componentwise subtraction operation on two int3 vectors. + /// Left hand side int3 to use to compute componentwise subtraction. + /// Right hand side int3 to use to compute componentwise subtraction. + /// int3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator - (int3 lhs, int3 rhs) { return new int3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } /// Returns the result of a componentwise subtraction operation on an int3 vector and an int value. + /// Left hand side int3 to use to compute componentwise subtraction. + /// Right hand side int to use to compute componentwise subtraction. + /// int3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator - (int3 lhs, int rhs) { return new int3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } /// Returns the result of a componentwise subtraction operation on an int value and an int3 vector. + /// Left hand side int to use to compute componentwise subtraction. + /// Right hand side int3 to use to compute componentwise subtraction. + /// int3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator - (int lhs, int3 rhs) { return new int3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } /// Returns the result of a componentwise division operation on two int3 vectors. + /// Left hand side int3 to use to compute componentwise division. + /// Right hand side int3 to use to compute componentwise division. + /// int3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator / (int3 lhs, int3 rhs) { return new int3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } /// Returns the result of a componentwise division operation on an int3 vector and an int value. + /// Left hand side int3 to use to compute componentwise division. + /// Right hand side int to use to compute componentwise division. + /// int3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator / (int3 lhs, int rhs) { return new int3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } /// Returns the result of a componentwise division operation on an int value and an int3 vector. + /// Left hand side int to use to compute componentwise division. + /// Right hand side int3 to use to compute componentwise division. + /// int3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator / (int lhs, int3 rhs) { return new int3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } /// Returns the result of a componentwise modulus operation on two int3 vectors. + /// Left hand side int3 to use to compute componentwise modulus. + /// Right hand side int3 to use to compute componentwise modulus. + /// int3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator % (int3 lhs, int3 rhs) { return new int3 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z); } /// Returns the result of a componentwise modulus operation on an int3 vector and an int value. + /// Left hand side int3 to use to compute componentwise modulus. + /// Right hand side int to use to compute componentwise modulus. + /// int3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator % (int3 lhs, int rhs) { return new int3 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs); } /// Returns the result of a componentwise modulus operation on an int value and an int3 vector. + /// Left hand side int to use to compute componentwise modulus. + /// Right hand side int3 to use to compute componentwise modulus. + /// int3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator % (int lhs, int3 rhs) { return new int3 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z); } /// Returns the result of a componentwise increment operation on an int3 vector. + /// Value to use when computing the componentwise increment. + /// int3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator ++ (int3 val) { return new int3 (++val.x, ++val.y, ++val.z); } /// Returns the result of a componentwise decrement operation on an int3 vector. + /// Value to use when computing the componentwise decrement. + /// int3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator -- (int3 val) { return new int3 (--val.x, --val.y, --val.z); } /// Returns the result of a componentwise less than operation on two int3 vectors. + /// Left hand side int3 to use to compute componentwise less than. + /// Right hand side int3 to use to compute componentwise less than. + /// bool3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (int3 lhs, int3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } /// Returns the result of a componentwise less than operation on an int3 vector and an int value. + /// Left hand side int3 to use to compute componentwise less than. + /// Right hand side int to use to compute componentwise less than. + /// bool3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (int3 lhs, int rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } /// Returns the result of a componentwise less than operation on an int value and an int3 vector. + /// Left hand side int to use to compute componentwise less than. + /// Right hand side int3 to use to compute componentwise less than. + /// bool3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (int lhs, int3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } /// Returns the result of a componentwise less or equal operation on two int3 vectors. + /// Left hand side int3 to use to compute componentwise less or equal. + /// Right hand side int3 to use to compute componentwise less or equal. + /// bool3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (int3 lhs, int3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } /// Returns the result of a componentwise less or equal operation on an int3 vector and an int value. + /// Left hand side int3 to use to compute componentwise less or equal. + /// Right hand side int to use to compute componentwise less or equal. + /// bool3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (int3 lhs, int rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } /// Returns the result of a componentwise less or equal operation on an int value and an int3 vector. + /// Left hand side int to use to compute componentwise less or equal. + /// Right hand side int3 to use to compute componentwise less or equal. + /// bool3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (int lhs, int3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } /// Returns the result of a componentwise greater than operation on two int3 vectors. + /// Left hand side int3 to use to compute componentwise greater than. + /// Right hand side int3 to use to compute componentwise greater than. + /// bool3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (int3 lhs, int3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } /// Returns the result of a componentwise greater than operation on an int3 vector and an int value. + /// Left hand side int3 to use to compute componentwise greater than. + /// Right hand side int to use to compute componentwise greater than. + /// bool3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (int3 lhs, int rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } /// Returns the result of a componentwise greater than operation on an int value and an int3 vector. + /// Left hand side int to use to compute componentwise greater than. + /// Right hand side int3 to use to compute componentwise greater than. + /// bool3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (int lhs, int3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } /// Returns the result of a componentwise greater or equal operation on two int3 vectors. + /// Left hand side int3 to use to compute componentwise greater or equal. + /// Right hand side int3 to use to compute componentwise greater or equal. + /// bool3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (int3 lhs, int3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } /// Returns the result of a componentwise greater or equal operation on an int3 vector and an int value. + /// Left hand side int3 to use to compute componentwise greater or equal. + /// Right hand side int to use to compute componentwise greater or equal. + /// bool3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (int3 lhs, int rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } /// Returns the result of a componentwise greater or equal operation on an int value and an int3 vector. + /// Left hand side int to use to compute componentwise greater or equal. + /// Right hand side int3 to use to compute componentwise greater or equal. + /// bool3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (int lhs, int3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } /// Returns the result of a componentwise unary minus operation on an int3 vector. + /// Value to use when computing the componentwise unary minus. + /// int3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator - (int3 val) { return new int3 (-val.x, -val.y, -val.z); } /// Returns the result of a componentwise unary plus operation on an int3 vector. + /// Value to use when computing the componentwise unary plus. + /// int3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator + (int3 val) { return new int3 (+val.x, +val.y, +val.z); } /// Returns the result of a componentwise left shift operation on an int3 vector by a number of bits specified by a single int. + /// The vector to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator << (int3 x, int n) { return new int3 (x.x << n, x.y << n, x.z << n); } /// Returns the result of a componentwise right shift operation on an int3 vector by a number of bits specified by a single int. + /// The vector to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator >> (int3 x, int n) { return new int3 (x.x >> n, x.y >> n, x.z >> n); } /// Returns the result of a componentwise equality operation on two int3 vectors. + /// Left hand side int3 to use to compute componentwise equality. + /// Right hand side int3 to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (int3 lhs, int3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } /// Returns the result of a componentwise equality operation on an int3 vector and an int value. + /// Left hand side int3 to use to compute componentwise equality. + /// Right hand side int to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (int3 lhs, int rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } /// Returns the result of a componentwise equality operation on an int value and an int3 vector. + /// Left hand side int to use to compute componentwise equality. + /// Right hand side int3 to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (int lhs, int3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } /// Returns the result of a componentwise not equal operation on two int3 vectors. + /// Left hand side int3 to use to compute componentwise not equal. + /// Right hand side int3 to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (int3 lhs, int3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } /// Returns the result of a componentwise not equal operation on an int3 vector and an int value. + /// Left hand side int3 to use to compute componentwise not equal. + /// Right hand side int to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (int3 lhs, int rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } /// Returns the result of a componentwise not equal operation on an int value and an int3 vector. + /// Left hand side int to use to compute componentwise not equal. + /// Right hand side int3 to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (int lhs, int3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } /// Returns the result of a componentwise bitwise not operation on an int3 vector. + /// Value to use when computing the componentwise bitwise not. + /// int3 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator ~ (int3 val) { return new int3 (~val.x, ~val.y, ~val.z); } /// Returns the result of a componentwise bitwise and operation on two int3 vectors. + /// Left hand side int3 to use to compute componentwise bitwise and. + /// Right hand side int3 to use to compute componentwise bitwise and. + /// int3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator & (int3 lhs, int3 rhs) { return new int3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } /// Returns the result of a componentwise bitwise and operation on an int3 vector and an int value. + /// Left hand side int3 to use to compute componentwise bitwise and. + /// Right hand side int to use to compute componentwise bitwise and. + /// int3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator & (int3 lhs, int rhs) { return new int3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } /// Returns the result of a componentwise bitwise and operation on an int value and an int3 vector. + /// Left hand side int to use to compute componentwise bitwise and. + /// Right hand side int3 to use to compute componentwise bitwise and. + /// int3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator & (int lhs, int3 rhs) { return new int3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } /// Returns the result of a componentwise bitwise or operation on two int3 vectors. + /// Left hand side int3 to use to compute componentwise bitwise or. + /// Right hand side int3 to use to compute componentwise bitwise or. + /// int3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator | (int3 lhs, int3 rhs) { return new int3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } /// Returns the result of a componentwise bitwise or operation on an int3 vector and an int value. + /// Left hand side int3 to use to compute componentwise bitwise or. + /// Right hand side int to use to compute componentwise bitwise or. + /// int3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator | (int3 lhs, int rhs) { return new int3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } /// Returns the result of a componentwise bitwise or operation on an int value and an int3 vector. + /// Left hand side int to use to compute componentwise bitwise or. + /// Right hand side int3 to use to compute componentwise bitwise or. + /// int3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator | (int lhs, int3 rhs) { return new int3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } /// Returns the result of a componentwise bitwise exclusive or operation on two int3 vectors. + /// Left hand side int3 to use to compute componentwise bitwise exclusive or. + /// Right hand side int3 to use to compute componentwise bitwise exclusive or. + /// int3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator ^ (int3 lhs, int3 rhs) { return new int3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } /// Returns the result of a componentwise bitwise exclusive or operation on an int3 vector and an int value. + /// Left hand side int3 to use to compute componentwise bitwise exclusive or. + /// Right hand side int to use to compute componentwise bitwise exclusive or. + /// int3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator ^ (int3 lhs, int rhs) { return new int3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int3 vector. + /// Left hand side int to use to compute componentwise bitwise exclusive or. + /// Right hand side int3 to use to compute componentwise bitwise exclusive or. + /// int3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 operator ^ (int lhs, int3 rhs) { return new int3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxx { @@ -407,6 +589,7 @@ public int4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxy { @@ -415,6 +598,7 @@ public int4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxz { @@ -423,6 +607,7 @@ public int4 xxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyx { @@ -431,6 +616,7 @@ public int4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyy { @@ -439,6 +625,7 @@ public int4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyz { @@ -447,6 +634,7 @@ public int4 xxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxzx { @@ -455,6 +643,7 @@ public int4 xxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxzy { @@ -463,6 +652,7 @@ public int4 xxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxzz { @@ -471,6 +661,7 @@ public int4 xxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxx { @@ -479,6 +670,7 @@ public int4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxy { @@ -487,6 +679,7 @@ public int4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxz { @@ -495,6 +688,7 @@ public int4 xyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyx { @@ -503,6 +697,7 @@ public int4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyy { @@ -511,6 +706,7 @@ public int4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyz { @@ -519,6 +715,7 @@ public int4 xyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyzx { @@ -527,6 +724,7 @@ public int4 xyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyzy { @@ -535,6 +733,7 @@ public int4 xyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyzz { @@ -543,6 +742,7 @@ public int4 xyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzxx { @@ -551,6 +751,7 @@ public int4 xzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzxy { @@ -559,6 +760,7 @@ public int4 xzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzxz { @@ -567,6 +769,7 @@ public int4 xzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzyx { @@ -575,6 +778,7 @@ public int4 xzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzyy { @@ -583,6 +787,7 @@ public int4 xzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzyz { @@ -591,6 +796,7 @@ public int4 xzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzzx { @@ -599,6 +805,7 @@ public int4 xzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzzy { @@ -607,6 +814,7 @@ public int4 xzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzzz { @@ -615,6 +823,7 @@ public int4 xzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxx { @@ -623,6 +832,7 @@ public int4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxy { @@ -631,6 +841,7 @@ public int4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxz { @@ -639,6 +850,7 @@ public int4 yxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyx { @@ -647,6 +859,7 @@ public int4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyy { @@ -655,6 +868,7 @@ public int4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyz { @@ -663,6 +877,7 @@ public int4 yxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxzx { @@ -671,6 +886,7 @@ public int4 yxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxzy { @@ -679,6 +895,7 @@ public int4 yxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxzz { @@ -687,6 +904,7 @@ public int4 yxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxx { @@ -695,6 +913,7 @@ public int4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxy { @@ -703,6 +922,7 @@ public int4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxz { @@ -711,6 +931,7 @@ public int4 yyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyx { @@ -719,6 +940,7 @@ public int4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyy { @@ -727,6 +949,7 @@ public int4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyz { @@ -735,6 +958,7 @@ public int4 yyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyzx { @@ -743,6 +967,7 @@ public int4 yyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyzy { @@ -751,6 +976,7 @@ public int4 yyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyzz { @@ -759,6 +985,7 @@ public int4 yyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzxx { @@ -767,6 +994,7 @@ public int4 yzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzxy { @@ -775,6 +1003,7 @@ public int4 yzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzxz { @@ -783,6 +1012,7 @@ public int4 yzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzyx { @@ -791,6 +1021,7 @@ public int4 yzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzyy { @@ -799,6 +1030,7 @@ public int4 yzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzyz { @@ -807,6 +1039,7 @@ public int4 yzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzzx { @@ -815,6 +1048,7 @@ public int4 yzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzzy { @@ -823,6 +1057,7 @@ public int4 yzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzzz { @@ -831,6 +1066,7 @@ public int4 yzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxxx { @@ -839,6 +1075,7 @@ public int4 zxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxxy { @@ -847,6 +1084,7 @@ public int4 zxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxxz { @@ -855,6 +1093,7 @@ public int4 zxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxyx { @@ -863,6 +1102,7 @@ public int4 zxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxyy { @@ -871,6 +1111,7 @@ public int4 zxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxyz { @@ -879,6 +1120,7 @@ public int4 zxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxzx { @@ -887,6 +1129,7 @@ public int4 zxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxzy { @@ -895,6 +1138,7 @@ public int4 zxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxzz { @@ -903,6 +1147,7 @@ public int4 zxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyxx { @@ -911,6 +1156,7 @@ public int4 zyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyxy { @@ -919,6 +1165,7 @@ public int4 zyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyxz { @@ -927,6 +1174,7 @@ public int4 zyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyyx { @@ -935,6 +1183,7 @@ public int4 zyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyyy { @@ -943,6 +1192,7 @@ public int4 zyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyyz { @@ -951,6 +1201,7 @@ public int4 zyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyzx { @@ -959,6 +1210,7 @@ public int4 zyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyzy { @@ -967,6 +1219,7 @@ public int4 zyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyzz { @@ -975,6 +1228,7 @@ public int4 zyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzxx { @@ -983,6 +1237,7 @@ public int4 zzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzxy { @@ -991,6 +1246,7 @@ public int4 zzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzxz { @@ -999,6 +1255,7 @@ public int4 zzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzyx { @@ -1007,6 +1264,7 @@ public int4 zzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzyy { @@ -1015,6 +1273,7 @@ public int4 zzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzyz { @@ -1023,6 +1282,7 @@ public int4 zzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzzx { @@ -1031,6 +1291,7 @@ public int4 zzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzzy { @@ -1039,6 +1300,7 @@ public int4 zzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzzz { @@ -1047,6 +1309,7 @@ public int4 zzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxx { @@ -1055,6 +1318,7 @@ public int3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxy { @@ -1063,6 +1327,7 @@ public int3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxz { @@ -1071,6 +1336,7 @@ public int3 xxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyx { @@ -1079,6 +1345,7 @@ public int3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyy { @@ -1087,6 +1354,7 @@ public int3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyz { @@ -1097,6 +1365,7 @@ public int3 xyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xzx { @@ -1105,6 +1374,7 @@ public int3 xzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xzy { @@ -1115,6 +1385,7 @@ public int3 xzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xzz { @@ -1123,6 +1394,7 @@ public int3 xzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxx { @@ -1131,6 +1403,7 @@ public int3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxy { @@ -1139,6 +1412,7 @@ public int3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxz { @@ -1149,6 +1423,7 @@ public int3 yxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyx { @@ -1157,6 +1432,7 @@ public int3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyy { @@ -1165,6 +1441,7 @@ public int3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyz { @@ -1173,6 +1450,7 @@ public int3 yyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yzx { @@ -1183,6 +1461,7 @@ public int3 yzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yzy { @@ -1191,6 +1470,7 @@ public int3 yzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yzz { @@ -1199,6 +1479,7 @@ public int3 yzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zxx { @@ -1207,6 +1488,7 @@ public int3 zxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zxy { @@ -1217,6 +1499,7 @@ public int3 zxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zxz { @@ -1225,6 +1508,7 @@ public int3 zxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zyx { @@ -1235,6 +1519,7 @@ public int3 zyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zyy { @@ -1243,6 +1528,7 @@ public int3 zyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zyz { @@ -1251,6 +1537,7 @@ public int3 zyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zzx { @@ -1259,6 +1546,7 @@ public int3 zzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zzy { @@ -1267,6 +1555,7 @@ public int3 zzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zzz { @@ -1275,6 +1564,7 @@ public int3 zzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xx { @@ -1283,6 +1573,7 @@ public int2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xy { @@ -1293,6 +1584,7 @@ public int2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xz { @@ -1303,6 +1595,7 @@ public int2 xz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yx { @@ -1313,6 +1606,7 @@ public int2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yy { @@ -1321,6 +1615,7 @@ public int2 yy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yz { @@ -1331,6 +1626,7 @@ public int2 yz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 zx { @@ -1341,6 +1637,7 @@ public int2 zx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 zy { @@ -1351,6 +1648,7 @@ public int2 zy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 zz { @@ -1382,19 +1680,25 @@ unsafe public int this[int index] } /// Returns true if the int3 is equal to a given int3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } /// Returns true if the int3 is equal to a given int3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is int3 converted && Equals(converted); } /// Returns a hash code for the int3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the int3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -1402,6 +1706,9 @@ public override string ToString() } /// Returns a string representation of the int3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -1426,58 +1733,90 @@ public DebuggerProxy(int3 v) public static partial class math { /// Returns a int3 vector constructed from three int values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// int3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 int3(int x, int y, int z) { return new int3(x, y, z); } /// Returns a int3 vector constructed from an int value and an int2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// int3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 int3(int x, int2 yz) { return new int3(x, yz); } /// Returns a int3 vector constructed from an int2 vector and an int value. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// int3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 int3(int2 xy, int z) { return new int3(xy, z); } /// Returns a int3 vector constructed from an int3 vector. + /// The constructed vector's xyz components will be set to this value. + /// int3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 int3(int3 xyz) { return new int3(xyz); } /// Returns a int3 vector constructed from a single int value by assigning it to every component. + /// int to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 int3(int v) { return new int3(v); } /// Returns a int3 vector constructed from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 int3(bool v) { return new int3(v); } /// Return a int3 vector constructed from a bool3 vector by componentwise conversion. + /// bool3 to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 int3(bool3 v) { return new int3(v); } /// Returns a int3 vector constructed from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 int3(uint v) { return new int3(v); } /// Return a int3 vector constructed from a uint3 vector by componentwise conversion. + /// uint3 to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 int3(uint3 v) { return new int3(v); } /// Returns a int3 vector constructed from a single float value by converting it to int and assigning it to every component. + /// float to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 int3(float v) { return new int3(v); } /// Return a int3 vector constructed from a float3 vector by componentwise conversion. + /// float3 to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 int3(float3 v) { return new int3(v); } /// Returns a int3 vector constructed from a single double value by converting it to int and assigning it to every component. + /// double to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 int3(double v) { return new int3(v); } /// Return a int3 vector constructed from a double3 vector by componentwise conversion. + /// double3 to convert to int3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 int3(double3 v) { return new int3(v); } /// Returns a uint hash code of a int3 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(int3 v) { @@ -1489,6 +1828,8 @@ public static uint hash(int3 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(int3 v) { @@ -1496,40 +1837,62 @@ public static uint3 hashwide(int3 v) } /// Returns the result of specified shuffling of the components from two int3 vectors into an int value. + /// int3 to use as the left argument of the shuffle operation. + /// int3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting int. + /// int result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int shuffle(int3 a, int3 b, ShuffleComponent x) + public static int shuffle(int3 left, int3 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two int3 vectors into an int2 vector. + /// int3 to use as the left argument of the shuffle operation. + /// int3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting int2 x component. + /// The ShuffleComponent to use when setting the resulting int2 y component. + /// int2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 shuffle(int3 a, int3 b, ShuffleComponent x, ShuffleComponent y) + public static int2 shuffle(int3 left, int3 right, ShuffleComponent x, ShuffleComponent y) { return int2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two int3 vectors into an int3 vector. + /// int3 to use as the left argument of the shuffle operation. + /// int3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting int3 x component. + /// The ShuffleComponent to use when setting the resulting int3 y component. + /// The ShuffleComponent to use when setting the resulting int3 z component. + /// int3 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 shuffle(int3 a, int3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + public static int3 shuffle(int3 left, int3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return int3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two int3 vectors into an int4 vector. + /// int3 to use as the left argument of the shuffle operation. + /// int3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting int4 x component. + /// The ShuffleComponent to use when setting the resulting int4 y component. + /// The ShuffleComponent to use when setting the resulting int4 z component. + /// The ShuffleComponent to use when setting the resulting int4 w component. + /// int4 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 shuffle(int3 a, int3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + public static int4 shuffle(int3 left, int3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return int4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/int3x2.gen.cs b/src/Unity.Mathematics/int3x2.gen.cs index 6036113c..0ea7ff76 100644 --- a/src/Unity.Mathematics/int3x2.gen.cs +++ b/src/Unity.Mathematics/int3x2.gen.cs @@ -14,17 +14,22 @@ namespace Unity.Mathematics { + /// A 3x2 matrix of ints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct int3x2 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public int3 c0; + /// Column 1 of the matrix. public int3 c1; /// int3x2 zero value. public static readonly int3x2 zero; /// Constructs a int3x2 matrix from two int3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x2(int3 c0, int3 c1) { @@ -33,6 +38,12 @@ public int3x2(int3 c0, int3 c1) } /// Constructs a int3x2 matrix from 6 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x2(int m00, int m01, int m10, int m11, @@ -43,6 +54,7 @@ public int3x2(int m00, int m01, } /// Constructs a int3x2 matrix from a single int value by assigning it to every component. + /// int to convert to int3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x2(int v) { @@ -51,6 +63,7 @@ public int3x2(int v) } /// Constructs a int3x2 matrix from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x2(bool v) { @@ -59,6 +72,7 @@ public int3x2(bool v) } /// Constructs a int3x2 matrix from a bool3x2 matrix by componentwise conversion. + /// bool3x2 to convert to int3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x2(bool3x2 v) { @@ -67,6 +81,7 @@ public int3x2(bool3x2 v) } /// Constructs a int3x2 matrix from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x2(uint v) { @@ -75,6 +90,7 @@ public int3x2(uint v) } /// Constructs a int3x2 matrix from a uint3x2 matrix by componentwise conversion. + /// uint3x2 to convert to int3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x2(uint3x2 v) { @@ -83,6 +99,7 @@ public int3x2(uint3x2 v) } /// Constructs a int3x2 matrix from a single float value by converting it to int and assigning it to every component. + /// float to convert to int3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x2(float v) { @@ -91,6 +108,7 @@ public int3x2(float v) } /// Constructs a int3x2 matrix from a float3x2 matrix by componentwise conversion. + /// float3x2 to convert to int3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x2(float3x2 v) { @@ -99,6 +117,7 @@ public int3x2(float3x2 v) } /// Constructs a int3x2 matrix from a single double value by converting it to int and assigning it to every component. + /// double to convert to int3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x2(double v) { @@ -107,6 +126,7 @@ public int3x2(double v) } /// Constructs a int3x2 matrix from a double3x2 matrix by componentwise conversion. + /// double3x2 to convert to int3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x2(double3x2 v) { @@ -116,253 +136,413 @@ public int3x2(double3x2 v) /// Implicitly converts a single int value to a int3x2 matrix by assigning it to every component. + /// int to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int3x2(int v) { return new int3x2(v); } /// Explicitly converts a single bool value to a int3x2 matrix by converting it to int and assigning it to every component. + /// bool to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x2(bool v) { return new int3x2(v); } /// Explicitly converts a bool3x2 matrix to a int3x2 matrix by componentwise conversion. + /// bool3x2 to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x2(bool3x2 v) { return new int3x2(v); } /// Explicitly converts a single uint value to a int3x2 matrix by converting it to int and assigning it to every component. + /// uint to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x2(uint v) { return new int3x2(v); } /// Explicitly converts a uint3x2 matrix to a int3x2 matrix by componentwise conversion. + /// uint3x2 to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x2(uint3x2 v) { return new int3x2(v); } /// Explicitly converts a single float value to a int3x2 matrix by converting it to int and assigning it to every component. + /// float to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x2(float v) { return new int3x2(v); } /// Explicitly converts a float3x2 matrix to a int3x2 matrix by componentwise conversion. + /// float3x2 to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x2(float3x2 v) { return new int3x2(v); } /// Explicitly converts a single double value to a int3x2 matrix by converting it to int and assigning it to every component. + /// double to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x2(double v) { return new int3x2(v); } /// Explicitly converts a double3x2 matrix to a int3x2 matrix by componentwise conversion. + /// double3x2 to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x2(double3x2 v) { return new int3x2(v); } /// Returns the result of a componentwise multiplication operation on two int3x2 matrices. + /// Left hand side int3x2 to use to compute componentwise multiplication. + /// Right hand side int3x2 to use to compute componentwise multiplication. + /// int3x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator * (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } /// Returns the result of a componentwise multiplication operation on an int3x2 matrix and an int value. + /// Left hand side int3x2 to use to compute componentwise multiplication. + /// Right hand side int to use to compute componentwise multiplication. + /// int3x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator * (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 * rhs, lhs.c1 * rhs); } /// Returns the result of a componentwise multiplication operation on an int value and an int3x2 matrix. + /// Left hand side int to use to compute componentwise multiplication. + /// Right hand side int3x2 to use to compute componentwise multiplication. + /// int3x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator * (int lhs, int3x2 rhs) { return new int3x2 (lhs * rhs.c0, lhs * rhs.c1); } /// Returns the result of a componentwise addition operation on two int3x2 matrices. + /// Left hand side int3x2 to use to compute componentwise addition. + /// Right hand side int3x2 to use to compute componentwise addition. + /// int3x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator + (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } /// Returns the result of a componentwise addition operation on an int3x2 matrix and an int value. + /// Left hand side int3x2 to use to compute componentwise addition. + /// Right hand side int to use to compute componentwise addition. + /// int3x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator + (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 + rhs, lhs.c1 + rhs); } /// Returns the result of a componentwise addition operation on an int value and an int3x2 matrix. + /// Left hand side int to use to compute componentwise addition. + /// Right hand side int3x2 to use to compute componentwise addition. + /// int3x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator + (int lhs, int3x2 rhs) { return new int3x2 (lhs + rhs.c0, lhs + rhs.c1); } /// Returns the result of a componentwise subtraction operation on two int3x2 matrices. + /// Left hand side int3x2 to use to compute componentwise subtraction. + /// Right hand side int3x2 to use to compute componentwise subtraction. + /// int3x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator - (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } /// Returns the result of a componentwise subtraction operation on an int3x2 matrix and an int value. + /// Left hand side int3x2 to use to compute componentwise subtraction. + /// Right hand side int to use to compute componentwise subtraction. + /// int3x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator - (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 - rhs, lhs.c1 - rhs); } /// Returns the result of a componentwise subtraction operation on an int value and an int3x2 matrix. + /// Left hand side int to use to compute componentwise subtraction. + /// Right hand side int3x2 to use to compute componentwise subtraction. + /// int3x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator - (int lhs, int3x2 rhs) { return new int3x2 (lhs - rhs.c0, lhs - rhs.c1); } /// Returns the result of a componentwise division operation on two int3x2 matrices. + /// Left hand side int3x2 to use to compute componentwise division. + /// Right hand side int3x2 to use to compute componentwise division. + /// int3x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator / (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } /// Returns the result of a componentwise division operation on an int3x2 matrix and an int value. + /// Left hand side int3x2 to use to compute componentwise division. + /// Right hand side int to use to compute componentwise division. + /// int3x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator / (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 / rhs, lhs.c1 / rhs); } /// Returns the result of a componentwise division operation on an int value and an int3x2 matrix. + /// Left hand side int to use to compute componentwise division. + /// Right hand side int3x2 to use to compute componentwise division. + /// int3x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator / (int lhs, int3x2 rhs) { return new int3x2 (lhs / rhs.c0, lhs / rhs.c1); } /// Returns the result of a componentwise modulus operation on two int3x2 matrices. + /// Left hand side int3x2 to use to compute componentwise modulus. + /// Right hand side int3x2 to use to compute componentwise modulus. + /// int3x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator % (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } /// Returns the result of a componentwise modulus operation on an int3x2 matrix and an int value. + /// Left hand side int3x2 to use to compute componentwise modulus. + /// Right hand side int to use to compute componentwise modulus. + /// int3x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator % (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 % rhs, lhs.c1 % rhs); } /// Returns the result of a componentwise modulus operation on an int value and an int3x2 matrix. + /// Left hand side int to use to compute componentwise modulus. + /// Right hand side int3x2 to use to compute componentwise modulus. + /// int3x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator % (int lhs, int3x2 rhs) { return new int3x2 (lhs % rhs.c0, lhs % rhs.c1); } /// Returns the result of a componentwise increment operation on an int3x2 matrix. + /// Value to use when computing the componentwise increment. + /// int3x2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator ++ (int3x2 val) { return new int3x2 (++val.c0, ++val.c1); } /// Returns the result of a componentwise decrement operation on an int3x2 matrix. + /// Value to use when computing the componentwise decrement. + /// int3x2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator -- (int3x2 val) { return new int3x2 (--val.c0, --val.c1); } /// Returns the result of a componentwise less than operation on two int3x2 matrices. + /// Left hand side int3x2 to use to compute componentwise less than. + /// Right hand side int3x2 to use to compute componentwise less than. + /// bool3x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator < (int3x2 lhs, int3x2 rhs) { return new bool3x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } /// Returns the result of a componentwise less than operation on an int3x2 matrix and an int value. + /// Left hand side int3x2 to use to compute componentwise less than. + /// Right hand side int to use to compute componentwise less than. + /// bool3x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator < (int3x2 lhs, int rhs) { return new bool3x2 (lhs.c0 < rhs, lhs.c1 < rhs); } /// Returns the result of a componentwise less than operation on an int value and an int3x2 matrix. + /// Left hand side int to use to compute componentwise less than. + /// Right hand side int3x2 to use to compute componentwise less than. + /// bool3x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator < (int lhs, int3x2 rhs) { return new bool3x2 (lhs < rhs.c0, lhs < rhs.c1); } /// Returns the result of a componentwise less or equal operation on two int3x2 matrices. + /// Left hand side int3x2 to use to compute componentwise less or equal. + /// Right hand side int3x2 to use to compute componentwise less or equal. + /// bool3x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator <= (int3x2 lhs, int3x2 rhs) { return new bool3x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } /// Returns the result of a componentwise less or equal operation on an int3x2 matrix and an int value. + /// Left hand side int3x2 to use to compute componentwise less or equal. + /// Right hand side int to use to compute componentwise less or equal. + /// bool3x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator <= (int3x2 lhs, int rhs) { return new bool3x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } /// Returns the result of a componentwise less or equal operation on an int value and an int3x2 matrix. + /// Left hand side int to use to compute componentwise less or equal. + /// Right hand side int3x2 to use to compute componentwise less or equal. + /// bool3x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator <= (int lhs, int3x2 rhs) { return new bool3x2 (lhs <= rhs.c0, lhs <= rhs.c1); } /// Returns the result of a componentwise greater than operation on two int3x2 matrices. + /// Left hand side int3x2 to use to compute componentwise greater than. + /// Right hand side int3x2 to use to compute componentwise greater than. + /// bool3x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator > (int3x2 lhs, int3x2 rhs) { return new bool3x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } /// Returns the result of a componentwise greater than operation on an int3x2 matrix and an int value. + /// Left hand side int3x2 to use to compute componentwise greater than. + /// Right hand side int to use to compute componentwise greater than. + /// bool3x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator > (int3x2 lhs, int rhs) { return new bool3x2 (lhs.c0 > rhs, lhs.c1 > rhs); } /// Returns the result of a componentwise greater than operation on an int value and an int3x2 matrix. + /// Left hand side int to use to compute componentwise greater than. + /// Right hand side int3x2 to use to compute componentwise greater than. + /// bool3x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator > (int lhs, int3x2 rhs) { return new bool3x2 (lhs > rhs.c0, lhs > rhs.c1); } /// Returns the result of a componentwise greater or equal operation on two int3x2 matrices. + /// Left hand side int3x2 to use to compute componentwise greater or equal. + /// Right hand side int3x2 to use to compute componentwise greater or equal. + /// bool3x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator >= (int3x2 lhs, int3x2 rhs) { return new bool3x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } /// Returns the result of a componentwise greater or equal operation on an int3x2 matrix and an int value. + /// Left hand side int3x2 to use to compute componentwise greater or equal. + /// Right hand side int to use to compute componentwise greater or equal. + /// bool3x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator >= (int3x2 lhs, int rhs) { return new bool3x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } /// Returns the result of a componentwise greater or equal operation on an int value and an int3x2 matrix. + /// Left hand side int to use to compute componentwise greater or equal. + /// Right hand side int3x2 to use to compute componentwise greater or equal. + /// bool3x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator >= (int lhs, int3x2 rhs) { return new bool3x2 (lhs >= rhs.c0, lhs >= rhs.c1); } /// Returns the result of a componentwise unary minus operation on an int3x2 matrix. + /// Value to use when computing the componentwise unary minus. + /// int3x2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator - (int3x2 val) { return new int3x2 (-val.c0, -val.c1); } /// Returns the result of a componentwise unary plus operation on an int3x2 matrix. + /// Value to use when computing the componentwise unary plus. + /// int3x2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator + (int3x2 val) { return new int3x2 (+val.c0, +val.c1); } /// Returns the result of a componentwise left shift operation on an int3x2 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator << (int3x2 x, int n) { return new int3x2 (x.c0 << n, x.c1 << n); } /// Returns the result of a componentwise right shift operation on an int3x2 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator >> (int3x2 x, int n) { return new int3x2 (x.c0 >> n, x.c1 >> n); } /// Returns the result of a componentwise equality operation on two int3x2 matrices. + /// Left hand side int3x2 to use to compute componentwise equality. + /// Right hand side int3x2 to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (int3x2 lhs, int3x2 rhs) { return new bool3x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on an int3x2 matrix and an int value. + /// Left hand side int3x2 to use to compute componentwise equality. + /// Right hand side int to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (int3x2 lhs, int rhs) { return new bool3x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on an int value and an int3x2 matrix. + /// Left hand side int to use to compute componentwise equality. + /// Right hand side int3x2 to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (int lhs, int3x2 rhs) { return new bool3x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two int3x2 matrices. + /// Left hand side int3x2 to use to compute componentwise not equal. + /// Right hand side int3x2 to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (int3x2 lhs, int3x2 rhs) { return new bool3x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on an int3x2 matrix and an int value. + /// Left hand side int3x2 to use to compute componentwise not equal. + /// Right hand side int to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (int3x2 lhs, int rhs) { return new bool3x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on an int value and an int3x2 matrix. + /// Left hand side int to use to compute componentwise not equal. + /// Right hand side int3x2 to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (int lhs, int3x2 rhs) { return new bool3x2 (lhs != rhs.c0, lhs != rhs.c1); } /// Returns the result of a componentwise bitwise not operation on an int3x2 matrix. + /// Value to use when computing the componentwise bitwise not. + /// int3x2 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator ~ (int3x2 val) { return new int3x2 (~val.c0, ~val.c1); } /// Returns the result of a componentwise bitwise and operation on two int3x2 matrices. + /// Left hand side int3x2 to use to compute componentwise bitwise and. + /// Right hand side int3x2 to use to compute componentwise bitwise and. + /// int3x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator & (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } /// Returns the result of a componentwise bitwise and operation on an int3x2 matrix and an int value. + /// Left hand side int3x2 to use to compute componentwise bitwise and. + /// Right hand side int to use to compute componentwise bitwise and. + /// int3x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator & (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 & rhs, lhs.c1 & rhs); } /// Returns the result of a componentwise bitwise and operation on an int value and an int3x2 matrix. + /// Left hand side int to use to compute componentwise bitwise and. + /// Right hand side int3x2 to use to compute componentwise bitwise and. + /// int3x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator & (int lhs, int3x2 rhs) { return new int3x2 (lhs & rhs.c0, lhs & rhs.c1); } /// Returns the result of a componentwise bitwise or operation on two int3x2 matrices. + /// Left hand side int3x2 to use to compute componentwise bitwise or. + /// Right hand side int3x2 to use to compute componentwise bitwise or. + /// int3x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator | (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } /// Returns the result of a componentwise bitwise or operation on an int3x2 matrix and an int value. + /// Left hand side int3x2 to use to compute componentwise bitwise or. + /// Right hand side int to use to compute componentwise bitwise or. + /// int3x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator | (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 | rhs, lhs.c1 | rhs); } /// Returns the result of a componentwise bitwise or operation on an int value and an int3x2 matrix. + /// Left hand side int to use to compute componentwise bitwise or. + /// Right hand side int3x2 to use to compute componentwise bitwise or. + /// int3x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator | (int lhs, int3x2 rhs) { return new int3x2 (lhs | rhs.c0, lhs | rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on two int3x2 matrices. + /// Left hand side int3x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side int3x2 to use to compute componentwise bitwise exclusive or. + /// int3x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator ^ (int3x2 lhs, int3x2 rhs) { return new int3x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on an int3x2 matrix and an int value. + /// Left hand side int3x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side int to use to compute componentwise bitwise exclusive or. + /// int3x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator ^ (int3x2 lhs, int rhs) { return new int3x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int3x2 matrix. + /// Left hand side int to use to compute componentwise bitwise exclusive or. + /// Right hand side int3x2 to use to compute componentwise bitwise exclusive or. + /// int3x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 operator ^ (int lhs, int3x2 rhs) { return new int3x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } @@ -382,19 +562,25 @@ unsafe public ref int3 this[int index] } /// Returns true if the int3x2 is equal to a given int3x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the int3x2 is equal to a given int3x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is int3x2 converted && Equals(converted); } /// Returns a hash code for the int3x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the int3x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -402,6 +588,9 @@ public override string ToString() } /// Returns a string representation of the int3x2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -413,10 +602,20 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a int3x2 matrix constructed from two int3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// int3x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 int3x2(int3 c0, int3 c1) { return new int3x2(c0, c1); } /// Returns a int3x2 matrix constructed from from 6 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// int3x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 int3x2(int m00, int m01, int m10, int m11, @@ -428,42 +627,62 @@ public static int3x2 int3x2(int m00, int m01, } /// Returns a int3x2 matrix constructed from a single int value by assigning it to every component. + /// int to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 int3x2(int v) { return new int3x2(v); } /// Returns a int3x2 matrix constructed from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 int3x2(bool v) { return new int3x2(v); } /// Return a int3x2 matrix constructed from a bool3x2 matrix by componentwise conversion. + /// bool3x2 to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 int3x2(bool3x2 v) { return new int3x2(v); } /// Returns a int3x2 matrix constructed from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 int3x2(uint v) { return new int3x2(v); } /// Return a int3x2 matrix constructed from a uint3x2 matrix by componentwise conversion. + /// uint3x2 to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 int3x2(uint3x2 v) { return new int3x2(v); } /// Returns a int3x2 matrix constructed from a single float value by converting it to int and assigning it to every component. + /// float to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 int3x2(float v) { return new int3x2(v); } /// Return a int3x2 matrix constructed from a float3x2 matrix by componentwise conversion. + /// float3x2 to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 int3x2(float3x2 v) { return new int3x2(v); } /// Returns a int3x2 matrix constructed from a single double value by converting it to int and assigning it to every component. + /// double to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 int3x2(double v) { return new int3x2(v); } /// Return a int3x2 matrix constructed from a double3x2 matrix by componentwise conversion. + /// double3x2 to convert to int3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 int3x2(double3x2 v) { return new int3x2(v); } /// Return the int2x3 transpose of a int3x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 transpose(int3x2 v) { @@ -472,7 +691,9 @@ public static int2x3 transpose(int3x2 v) v.c1.x, v.c1.y, v.c1.z); } - /// Returns a uint hash code of a int3x2 vector. + /// Returns a uint hash code of a int3x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(int3x2 v) { @@ -481,10 +702,12 @@ public static uint hash(int3x2 v) } /// - /// Returns a uint3 vector hash code of a int3x2 vector. + /// Returns a uint3 vector hash code of a int3x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(int3x2 v) { diff --git a/src/Unity.Mathematics/int3x3.gen.cs b/src/Unity.Mathematics/int3x3.gen.cs index d5426e99..37ca9702 100644 --- a/src/Unity.Mathematics/int3x3.gen.cs +++ b/src/Unity.Mathematics/int3x3.gen.cs @@ -14,12 +14,16 @@ namespace Unity.Mathematics { + /// A 3x3 matrix of ints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct int3x3 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public int3 c0; + /// Column 1 of the matrix. public int3 c1; + /// Column 2 of the matrix. public int3 c2; /// int3x3 identity transform. @@ -29,6 +33,9 @@ public partial struct int3x3 : System.IEquatable, IFormattable public static readonly int3x3 zero; /// Constructs a int3x3 matrix from three int3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x3(int3 c0, int3 c1, int3 c2) { @@ -38,6 +45,15 @@ public int3x3(int3 c0, int3 c1, int3 c2) } /// Constructs a int3x3 matrix from 9 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x3(int m00, int m01, int m02, int m10, int m11, int m12, @@ -49,6 +65,7 @@ public int3x3(int m00, int m01, int m02, } /// Constructs a int3x3 matrix from a single int value by assigning it to every component. + /// int to convert to int3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x3(int v) { @@ -58,6 +75,7 @@ public int3x3(int v) } /// Constructs a int3x3 matrix from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x3(bool v) { @@ -67,6 +85,7 @@ public int3x3(bool v) } /// Constructs a int3x3 matrix from a bool3x3 matrix by componentwise conversion. + /// bool3x3 to convert to int3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x3(bool3x3 v) { @@ -76,6 +95,7 @@ public int3x3(bool3x3 v) } /// Constructs a int3x3 matrix from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x3(uint v) { @@ -85,6 +105,7 @@ public int3x3(uint v) } /// Constructs a int3x3 matrix from a uint3x3 matrix by componentwise conversion. + /// uint3x3 to convert to int3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x3(uint3x3 v) { @@ -94,6 +115,7 @@ public int3x3(uint3x3 v) } /// Constructs a int3x3 matrix from a single float value by converting it to int and assigning it to every component. + /// float to convert to int3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x3(float v) { @@ -103,6 +125,7 @@ public int3x3(float v) } /// Constructs a int3x3 matrix from a float3x3 matrix by componentwise conversion. + /// float3x3 to convert to int3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x3(float3x3 v) { @@ -112,6 +135,7 @@ public int3x3(float3x3 v) } /// Constructs a int3x3 matrix from a single double value by converting it to int and assigning it to every component. + /// double to convert to int3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x3(double v) { @@ -121,6 +145,7 @@ public int3x3(double v) } /// Constructs a int3x3 matrix from a double3x3 matrix by componentwise conversion. + /// double3x3 to convert to int3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x3(double3x3 v) { @@ -131,253 +156,413 @@ public int3x3(double3x3 v) /// Implicitly converts a single int value to a int3x3 matrix by assigning it to every component. + /// int to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int3x3(int v) { return new int3x3(v); } /// Explicitly converts a single bool value to a int3x3 matrix by converting it to int and assigning it to every component. + /// bool to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x3(bool v) { return new int3x3(v); } /// Explicitly converts a bool3x3 matrix to a int3x3 matrix by componentwise conversion. + /// bool3x3 to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x3(bool3x3 v) { return new int3x3(v); } /// Explicitly converts a single uint value to a int3x3 matrix by converting it to int and assigning it to every component. + /// uint to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x3(uint v) { return new int3x3(v); } /// Explicitly converts a uint3x3 matrix to a int3x3 matrix by componentwise conversion. + /// uint3x3 to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x3(uint3x3 v) { return new int3x3(v); } /// Explicitly converts a single float value to a int3x3 matrix by converting it to int and assigning it to every component. + /// float to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x3(float v) { return new int3x3(v); } /// Explicitly converts a float3x3 matrix to a int3x3 matrix by componentwise conversion. + /// float3x3 to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x3(float3x3 v) { return new int3x3(v); } /// Explicitly converts a single double value to a int3x3 matrix by converting it to int and assigning it to every component. + /// double to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x3(double v) { return new int3x3(v); } /// Explicitly converts a double3x3 matrix to a int3x3 matrix by componentwise conversion. + /// double3x3 to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x3(double3x3 v) { return new int3x3(v); } /// Returns the result of a componentwise multiplication operation on two int3x3 matrices. + /// Left hand side int3x3 to use to compute componentwise multiplication. + /// Right hand side int3x3 to use to compute componentwise multiplication. + /// int3x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator * (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } /// Returns the result of a componentwise multiplication operation on an int3x3 matrix and an int value. + /// Left hand side int3x3 to use to compute componentwise multiplication. + /// Right hand side int to use to compute componentwise multiplication. + /// int3x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator * (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } /// Returns the result of a componentwise multiplication operation on an int value and an int3x3 matrix. + /// Left hand side int to use to compute componentwise multiplication. + /// Right hand side int3x3 to use to compute componentwise multiplication. + /// int3x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator * (int lhs, int3x3 rhs) { return new int3x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } /// Returns the result of a componentwise addition operation on two int3x3 matrices. + /// Left hand side int3x3 to use to compute componentwise addition. + /// Right hand side int3x3 to use to compute componentwise addition. + /// int3x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator + (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } /// Returns the result of a componentwise addition operation on an int3x3 matrix and an int value. + /// Left hand side int3x3 to use to compute componentwise addition. + /// Right hand side int to use to compute componentwise addition. + /// int3x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator + (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } /// Returns the result of a componentwise addition operation on an int value and an int3x3 matrix. + /// Left hand side int to use to compute componentwise addition. + /// Right hand side int3x3 to use to compute componentwise addition. + /// int3x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator + (int lhs, int3x3 rhs) { return new int3x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } /// Returns the result of a componentwise subtraction operation on two int3x3 matrices. + /// Left hand side int3x3 to use to compute componentwise subtraction. + /// Right hand side int3x3 to use to compute componentwise subtraction. + /// int3x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator - (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } /// Returns the result of a componentwise subtraction operation on an int3x3 matrix and an int value. + /// Left hand side int3x3 to use to compute componentwise subtraction. + /// Right hand side int to use to compute componentwise subtraction. + /// int3x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator - (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } /// Returns the result of a componentwise subtraction operation on an int value and an int3x3 matrix. + /// Left hand side int to use to compute componentwise subtraction. + /// Right hand side int3x3 to use to compute componentwise subtraction. + /// int3x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator - (int lhs, int3x3 rhs) { return new int3x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } /// Returns the result of a componentwise division operation on two int3x3 matrices. + /// Left hand side int3x3 to use to compute componentwise division. + /// Right hand side int3x3 to use to compute componentwise division. + /// int3x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator / (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } /// Returns the result of a componentwise division operation on an int3x3 matrix and an int value. + /// Left hand side int3x3 to use to compute componentwise division. + /// Right hand side int to use to compute componentwise division. + /// int3x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator / (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } /// Returns the result of a componentwise division operation on an int value and an int3x3 matrix. + /// Left hand side int to use to compute componentwise division. + /// Right hand side int3x3 to use to compute componentwise division. + /// int3x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator / (int lhs, int3x3 rhs) { return new int3x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } /// Returns the result of a componentwise modulus operation on two int3x3 matrices. + /// Left hand side int3x3 to use to compute componentwise modulus. + /// Right hand side int3x3 to use to compute componentwise modulus. + /// int3x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator % (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } /// Returns the result of a componentwise modulus operation on an int3x3 matrix and an int value. + /// Left hand side int3x3 to use to compute componentwise modulus. + /// Right hand side int to use to compute componentwise modulus. + /// int3x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator % (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } /// Returns the result of a componentwise modulus operation on an int value and an int3x3 matrix. + /// Left hand side int to use to compute componentwise modulus. + /// Right hand side int3x3 to use to compute componentwise modulus. + /// int3x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator % (int lhs, int3x3 rhs) { return new int3x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } /// Returns the result of a componentwise increment operation on an int3x3 matrix. + /// Value to use when computing the componentwise increment. + /// int3x3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator ++ (int3x3 val) { return new int3x3 (++val.c0, ++val.c1, ++val.c2); } /// Returns the result of a componentwise decrement operation on an int3x3 matrix. + /// Value to use when computing the componentwise decrement. + /// int3x3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator -- (int3x3 val) { return new int3x3 (--val.c0, --val.c1, --val.c2); } /// Returns the result of a componentwise less than operation on two int3x3 matrices. + /// Left hand side int3x3 to use to compute componentwise less than. + /// Right hand side int3x3 to use to compute componentwise less than. + /// bool3x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator < (int3x3 lhs, int3x3 rhs) { return new bool3x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } /// Returns the result of a componentwise less than operation on an int3x3 matrix and an int value. + /// Left hand side int3x3 to use to compute componentwise less than. + /// Right hand side int to use to compute componentwise less than. + /// bool3x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator < (int3x3 lhs, int rhs) { return new bool3x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } /// Returns the result of a componentwise less than operation on an int value and an int3x3 matrix. + /// Left hand side int to use to compute componentwise less than. + /// Right hand side int3x3 to use to compute componentwise less than. + /// bool3x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator < (int lhs, int3x3 rhs) { return new bool3x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } /// Returns the result of a componentwise less or equal operation on two int3x3 matrices. + /// Left hand side int3x3 to use to compute componentwise less or equal. + /// Right hand side int3x3 to use to compute componentwise less or equal. + /// bool3x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator <= (int3x3 lhs, int3x3 rhs) { return new bool3x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } /// Returns the result of a componentwise less or equal operation on an int3x3 matrix and an int value. + /// Left hand side int3x3 to use to compute componentwise less or equal. + /// Right hand side int to use to compute componentwise less or equal. + /// bool3x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator <= (int3x3 lhs, int rhs) { return new bool3x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } /// Returns the result of a componentwise less or equal operation on an int value and an int3x3 matrix. + /// Left hand side int to use to compute componentwise less or equal. + /// Right hand side int3x3 to use to compute componentwise less or equal. + /// bool3x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator <= (int lhs, int3x3 rhs) { return new bool3x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } /// Returns the result of a componentwise greater than operation on two int3x3 matrices. + /// Left hand side int3x3 to use to compute componentwise greater than. + /// Right hand side int3x3 to use to compute componentwise greater than. + /// bool3x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator > (int3x3 lhs, int3x3 rhs) { return new bool3x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } /// Returns the result of a componentwise greater than operation on an int3x3 matrix and an int value. + /// Left hand side int3x3 to use to compute componentwise greater than. + /// Right hand side int to use to compute componentwise greater than. + /// bool3x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator > (int3x3 lhs, int rhs) { return new bool3x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } /// Returns the result of a componentwise greater than operation on an int value and an int3x3 matrix. + /// Left hand side int to use to compute componentwise greater than. + /// Right hand side int3x3 to use to compute componentwise greater than. + /// bool3x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator > (int lhs, int3x3 rhs) { return new bool3x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } /// Returns the result of a componentwise greater or equal operation on two int3x3 matrices. + /// Left hand side int3x3 to use to compute componentwise greater or equal. + /// Right hand side int3x3 to use to compute componentwise greater or equal. + /// bool3x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator >= (int3x3 lhs, int3x3 rhs) { return new bool3x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } /// Returns the result of a componentwise greater or equal operation on an int3x3 matrix and an int value. + /// Left hand side int3x3 to use to compute componentwise greater or equal. + /// Right hand side int to use to compute componentwise greater or equal. + /// bool3x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator >= (int3x3 lhs, int rhs) { return new bool3x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } /// Returns the result of a componentwise greater or equal operation on an int value and an int3x3 matrix. + /// Left hand side int to use to compute componentwise greater or equal. + /// Right hand side int3x3 to use to compute componentwise greater or equal. + /// bool3x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator >= (int lhs, int3x3 rhs) { return new bool3x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } /// Returns the result of a componentwise unary minus operation on an int3x3 matrix. + /// Value to use when computing the componentwise unary minus. + /// int3x3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator - (int3x3 val) { return new int3x3 (-val.c0, -val.c1, -val.c2); } /// Returns the result of a componentwise unary plus operation on an int3x3 matrix. + /// Value to use when computing the componentwise unary plus. + /// int3x3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator + (int3x3 val) { return new int3x3 (+val.c0, +val.c1, +val.c2); } /// Returns the result of a componentwise left shift operation on an int3x3 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator << (int3x3 x, int n) { return new int3x3 (x.c0 << n, x.c1 << n, x.c2 << n); } /// Returns the result of a componentwise right shift operation on an int3x3 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator >> (int3x3 x, int n) { return new int3x3 (x.c0 >> n, x.c1 >> n, x.c2 >> n); } /// Returns the result of a componentwise equality operation on two int3x3 matrices. + /// Left hand side int3x3 to use to compute componentwise equality. + /// Right hand side int3x3 to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (int3x3 lhs, int3x3 rhs) { return new bool3x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on an int3x3 matrix and an int value. + /// Left hand side int3x3 to use to compute componentwise equality. + /// Right hand side int to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (int3x3 lhs, int rhs) { return new bool3x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on an int value and an int3x3 matrix. + /// Left hand side int to use to compute componentwise equality. + /// Right hand side int3x3 to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (int lhs, int3x3 rhs) { return new bool3x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two int3x3 matrices. + /// Left hand side int3x3 to use to compute componentwise not equal. + /// Right hand side int3x3 to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (int3x3 lhs, int3x3 rhs) { return new bool3x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on an int3x3 matrix and an int value. + /// Left hand side int3x3 to use to compute componentwise not equal. + /// Right hand side int to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (int3x3 lhs, int rhs) { return new bool3x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on an int value and an int3x3 matrix. + /// Left hand side int to use to compute componentwise not equal. + /// Right hand side int3x3 to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (int lhs, int3x3 rhs) { return new bool3x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } /// Returns the result of a componentwise bitwise not operation on an int3x3 matrix. + /// Value to use when computing the componentwise bitwise not. + /// int3x3 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator ~ (int3x3 val) { return new int3x3 (~val.c0, ~val.c1, ~val.c2); } /// Returns the result of a componentwise bitwise and operation on two int3x3 matrices. + /// Left hand side int3x3 to use to compute componentwise bitwise and. + /// Right hand side int3x3 to use to compute componentwise bitwise and. + /// int3x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator & (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } /// Returns the result of a componentwise bitwise and operation on an int3x3 matrix and an int value. + /// Left hand side int3x3 to use to compute componentwise bitwise and. + /// Right hand side int to use to compute componentwise bitwise and. + /// int3x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator & (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } /// Returns the result of a componentwise bitwise and operation on an int value and an int3x3 matrix. + /// Left hand side int to use to compute componentwise bitwise and. + /// Right hand side int3x3 to use to compute componentwise bitwise and. + /// int3x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator & (int lhs, int3x3 rhs) { return new int3x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } /// Returns the result of a componentwise bitwise or operation on two int3x3 matrices. + /// Left hand side int3x3 to use to compute componentwise bitwise or. + /// Right hand side int3x3 to use to compute componentwise bitwise or. + /// int3x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator | (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } /// Returns the result of a componentwise bitwise or operation on an int3x3 matrix and an int value. + /// Left hand side int3x3 to use to compute componentwise bitwise or. + /// Right hand side int to use to compute componentwise bitwise or. + /// int3x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator | (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } /// Returns the result of a componentwise bitwise or operation on an int value and an int3x3 matrix. + /// Left hand side int to use to compute componentwise bitwise or. + /// Right hand side int3x3 to use to compute componentwise bitwise or. + /// int3x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator | (int lhs, int3x3 rhs) { return new int3x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on two int3x3 matrices. + /// Left hand side int3x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side int3x3 to use to compute componentwise bitwise exclusive or. + /// int3x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator ^ (int3x3 lhs, int3x3 rhs) { return new int3x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on an int3x3 matrix and an int value. + /// Left hand side int3x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side int to use to compute componentwise bitwise exclusive or. + /// int3x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator ^ (int3x3 lhs, int rhs) { return new int3x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int3x3 matrix. + /// Left hand side int to use to compute componentwise bitwise exclusive or. + /// Right hand side int3x3 to use to compute componentwise bitwise exclusive or. + /// int3x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 operator ^ (int lhs, int3x3 rhs) { return new int3x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } @@ -397,19 +582,25 @@ unsafe public ref int3 this[int index] } /// Returns true if the int3x3 is equal to a given int3x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the int3x3 is equal to a given int3x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is int3x3 converted && Equals(converted); } /// Returns a hash code for the int3x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the int3x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -417,6 +608,9 @@ public override string ToString() } /// Returns a string representation of the int3x3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -428,10 +622,24 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a int3x3 matrix constructed from three int3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// int3x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 int3x3(int3 c0, int3 c1, int3 c2) { return new int3x3(c0, c1, c2); } /// Returns a int3x3 matrix constructed from from 9 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// int3x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 int3x3(int m00, int m01, int m02, int m10, int m11, int m12, @@ -443,42 +651,62 @@ public static int3x3 int3x3(int m00, int m01, int m02, } /// Returns a int3x3 matrix constructed from a single int value by assigning it to every component. + /// int to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 int3x3(int v) { return new int3x3(v); } /// Returns a int3x3 matrix constructed from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 int3x3(bool v) { return new int3x3(v); } /// Return a int3x3 matrix constructed from a bool3x3 matrix by componentwise conversion. + /// bool3x3 to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 int3x3(bool3x3 v) { return new int3x3(v); } /// Returns a int3x3 matrix constructed from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 int3x3(uint v) { return new int3x3(v); } /// Return a int3x3 matrix constructed from a uint3x3 matrix by componentwise conversion. + /// uint3x3 to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 int3x3(uint3x3 v) { return new int3x3(v); } /// Returns a int3x3 matrix constructed from a single float value by converting it to int and assigning it to every component. + /// float to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 int3x3(float v) { return new int3x3(v); } /// Return a int3x3 matrix constructed from a float3x3 matrix by componentwise conversion. + /// float3x3 to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 int3x3(float3x3 v) { return new int3x3(v); } /// Returns a int3x3 matrix constructed from a single double value by converting it to int and assigning it to every component. + /// double to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 int3x3(double v) { return new int3x3(v); } /// Return a int3x3 matrix constructed from a double3x3 matrix by componentwise conversion. + /// double3x3 to convert to int3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 int3x3(double3x3 v) { return new int3x3(v); } /// Return the int3x3 transpose of a int3x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 transpose(int3x3 v) { @@ -489,6 +717,8 @@ public static int3x3 transpose(int3x3 v) } /// Returns the determinant of a int3x3 matrix. + /// Matrix to use when computing determinant. + /// The determinant of the matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int determinant(int3x3 m) { @@ -503,7 +733,9 @@ public static int determinant(int3x3 m) return c0.x * m00 - c1.x * m01 + c2.x * m02; } - /// Returns a uint hash code of a int3x3 vector. + /// Returns a uint hash code of a int3x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(int3x3 v) { @@ -513,10 +745,12 @@ public static uint hash(int3x3 v) } /// - /// Returns a uint3 vector hash code of a int3x3 vector. + /// Returns a uint3 vector hash code of a int3x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(int3x3 v) { diff --git a/src/Unity.Mathematics/int3x4.gen.cs b/src/Unity.Mathematics/int3x4.gen.cs index 71953977..21c4ec38 100644 --- a/src/Unity.Mathematics/int3x4.gen.cs +++ b/src/Unity.Mathematics/int3x4.gen.cs @@ -14,19 +14,28 @@ namespace Unity.Mathematics { + /// A 3x4 matrix of ints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct int3x4 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public int3 c0; + /// Column 1 of the matrix. public int3 c1; + /// Column 2 of the matrix. public int3 c2; + /// Column 3 of the matrix. public int3 c3; /// int3x4 zero value. public static readonly int3x4 zero; /// Constructs a int3x4 matrix from four int3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x4(int3 c0, int3 c1, int3 c2, int3 c3) { @@ -37,6 +46,18 @@ public int3x4(int3 c0, int3 c1, int3 c2, int3 c3) } /// Constructs a int3x4 matrix from 12 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x4(int m00, int m01, int m02, int m03, int m10, int m11, int m12, int m13, @@ -49,6 +70,7 @@ public int3x4(int m00, int m01, int m02, int m03, } /// Constructs a int3x4 matrix from a single int value by assigning it to every component. + /// int to convert to int3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x4(int v) { @@ -59,6 +81,7 @@ public int3x4(int v) } /// Constructs a int3x4 matrix from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x4(bool v) { @@ -69,6 +92,7 @@ public int3x4(bool v) } /// Constructs a int3x4 matrix from a bool3x4 matrix by componentwise conversion. + /// bool3x4 to convert to int3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x4(bool3x4 v) { @@ -79,6 +103,7 @@ public int3x4(bool3x4 v) } /// Constructs a int3x4 matrix from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x4(uint v) { @@ -89,6 +114,7 @@ public int3x4(uint v) } /// Constructs a int3x4 matrix from a uint3x4 matrix by componentwise conversion. + /// uint3x4 to convert to int3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x4(uint3x4 v) { @@ -99,6 +125,7 @@ public int3x4(uint3x4 v) } /// Constructs a int3x4 matrix from a single float value by converting it to int and assigning it to every component. + /// float to convert to int3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x4(float v) { @@ -109,6 +136,7 @@ public int3x4(float v) } /// Constructs a int3x4 matrix from a float3x4 matrix by componentwise conversion. + /// float3x4 to convert to int3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x4(float3x4 v) { @@ -119,6 +147,7 @@ public int3x4(float3x4 v) } /// Constructs a int3x4 matrix from a single double value by converting it to int and assigning it to every component. + /// double to convert to int3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x4(double v) { @@ -129,6 +158,7 @@ public int3x4(double v) } /// Constructs a int3x4 matrix from a double3x4 matrix by componentwise conversion. + /// double3x4 to convert to int3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3x4(double3x4 v) { @@ -140,253 +170,413 @@ public int3x4(double3x4 v) /// Implicitly converts a single int value to a int3x4 matrix by assigning it to every component. + /// int to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int3x4(int v) { return new int3x4(v); } /// Explicitly converts a single bool value to a int3x4 matrix by converting it to int and assigning it to every component. + /// bool to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x4(bool v) { return new int3x4(v); } /// Explicitly converts a bool3x4 matrix to a int3x4 matrix by componentwise conversion. + /// bool3x4 to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x4(bool3x4 v) { return new int3x4(v); } /// Explicitly converts a single uint value to a int3x4 matrix by converting it to int and assigning it to every component. + /// uint to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x4(uint v) { return new int3x4(v); } /// Explicitly converts a uint3x4 matrix to a int3x4 matrix by componentwise conversion. + /// uint3x4 to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x4(uint3x4 v) { return new int3x4(v); } /// Explicitly converts a single float value to a int3x4 matrix by converting it to int and assigning it to every component. + /// float to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x4(float v) { return new int3x4(v); } /// Explicitly converts a float3x4 matrix to a int3x4 matrix by componentwise conversion. + /// float3x4 to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x4(float3x4 v) { return new int3x4(v); } /// Explicitly converts a single double value to a int3x4 matrix by converting it to int and assigning it to every component. + /// double to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x4(double v) { return new int3x4(v); } /// Explicitly converts a double3x4 matrix to a int3x4 matrix by componentwise conversion. + /// double3x4 to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int3x4(double3x4 v) { return new int3x4(v); } /// Returns the result of a componentwise multiplication operation on two int3x4 matrices. + /// Left hand side int3x4 to use to compute componentwise multiplication. + /// Right hand side int3x4 to use to compute componentwise multiplication. + /// int3x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator * (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } /// Returns the result of a componentwise multiplication operation on an int3x4 matrix and an int value. + /// Left hand side int3x4 to use to compute componentwise multiplication. + /// Right hand side int to use to compute componentwise multiplication. + /// int3x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator * (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } /// Returns the result of a componentwise multiplication operation on an int value and an int3x4 matrix. + /// Left hand side int to use to compute componentwise multiplication. + /// Right hand side int3x4 to use to compute componentwise multiplication. + /// int3x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator * (int lhs, int3x4 rhs) { return new int3x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } /// Returns the result of a componentwise addition operation on two int3x4 matrices. + /// Left hand side int3x4 to use to compute componentwise addition. + /// Right hand side int3x4 to use to compute componentwise addition. + /// int3x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator + (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } /// Returns the result of a componentwise addition operation on an int3x4 matrix and an int value. + /// Left hand side int3x4 to use to compute componentwise addition. + /// Right hand side int to use to compute componentwise addition. + /// int3x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator + (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } /// Returns the result of a componentwise addition operation on an int value and an int3x4 matrix. + /// Left hand side int to use to compute componentwise addition. + /// Right hand side int3x4 to use to compute componentwise addition. + /// int3x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator + (int lhs, int3x4 rhs) { return new int3x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } /// Returns the result of a componentwise subtraction operation on two int3x4 matrices. + /// Left hand side int3x4 to use to compute componentwise subtraction. + /// Right hand side int3x4 to use to compute componentwise subtraction. + /// int3x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator - (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } /// Returns the result of a componentwise subtraction operation on an int3x4 matrix and an int value. + /// Left hand side int3x4 to use to compute componentwise subtraction. + /// Right hand side int to use to compute componentwise subtraction. + /// int3x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator - (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } /// Returns the result of a componentwise subtraction operation on an int value and an int3x4 matrix. + /// Left hand side int to use to compute componentwise subtraction. + /// Right hand side int3x4 to use to compute componentwise subtraction. + /// int3x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator - (int lhs, int3x4 rhs) { return new int3x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } /// Returns the result of a componentwise division operation on two int3x4 matrices. + /// Left hand side int3x4 to use to compute componentwise division. + /// Right hand side int3x4 to use to compute componentwise division. + /// int3x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator / (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } /// Returns the result of a componentwise division operation on an int3x4 matrix and an int value. + /// Left hand side int3x4 to use to compute componentwise division. + /// Right hand side int to use to compute componentwise division. + /// int3x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator / (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } /// Returns the result of a componentwise division operation on an int value and an int3x4 matrix. + /// Left hand side int to use to compute componentwise division. + /// Right hand side int3x4 to use to compute componentwise division. + /// int3x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator / (int lhs, int3x4 rhs) { return new int3x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } /// Returns the result of a componentwise modulus operation on two int3x4 matrices. + /// Left hand side int3x4 to use to compute componentwise modulus. + /// Right hand side int3x4 to use to compute componentwise modulus. + /// int3x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator % (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } /// Returns the result of a componentwise modulus operation on an int3x4 matrix and an int value. + /// Left hand side int3x4 to use to compute componentwise modulus. + /// Right hand side int to use to compute componentwise modulus. + /// int3x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator % (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } /// Returns the result of a componentwise modulus operation on an int value and an int3x4 matrix. + /// Left hand side int to use to compute componentwise modulus. + /// Right hand side int3x4 to use to compute componentwise modulus. + /// int3x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator % (int lhs, int3x4 rhs) { return new int3x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } /// Returns the result of a componentwise increment operation on an int3x4 matrix. + /// Value to use when computing the componentwise increment. + /// int3x4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator ++ (int3x4 val) { return new int3x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } /// Returns the result of a componentwise decrement operation on an int3x4 matrix. + /// Value to use when computing the componentwise decrement. + /// int3x4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator -- (int3x4 val) { return new int3x4 (--val.c0, --val.c1, --val.c2, --val.c3); } /// Returns the result of a componentwise less than operation on two int3x4 matrices. + /// Left hand side int3x4 to use to compute componentwise less than. + /// Right hand side int3x4 to use to compute componentwise less than. + /// bool3x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator < (int3x4 lhs, int3x4 rhs) { return new bool3x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } /// Returns the result of a componentwise less than operation on an int3x4 matrix and an int value. + /// Left hand side int3x4 to use to compute componentwise less than. + /// Right hand side int to use to compute componentwise less than. + /// bool3x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator < (int3x4 lhs, int rhs) { return new bool3x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } /// Returns the result of a componentwise less than operation on an int value and an int3x4 matrix. + /// Left hand side int to use to compute componentwise less than. + /// Right hand side int3x4 to use to compute componentwise less than. + /// bool3x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator < (int lhs, int3x4 rhs) { return new bool3x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } /// Returns the result of a componentwise less or equal operation on two int3x4 matrices. + /// Left hand side int3x4 to use to compute componentwise less or equal. + /// Right hand side int3x4 to use to compute componentwise less or equal. + /// bool3x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator <= (int3x4 lhs, int3x4 rhs) { return new bool3x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } /// Returns the result of a componentwise less or equal operation on an int3x4 matrix and an int value. + /// Left hand side int3x4 to use to compute componentwise less or equal. + /// Right hand side int to use to compute componentwise less or equal. + /// bool3x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator <= (int3x4 lhs, int rhs) { return new bool3x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } /// Returns the result of a componentwise less or equal operation on an int value and an int3x4 matrix. + /// Left hand side int to use to compute componentwise less or equal. + /// Right hand side int3x4 to use to compute componentwise less or equal. + /// bool3x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator <= (int lhs, int3x4 rhs) { return new bool3x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } /// Returns the result of a componentwise greater than operation on two int3x4 matrices. + /// Left hand side int3x4 to use to compute componentwise greater than. + /// Right hand side int3x4 to use to compute componentwise greater than. + /// bool3x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator > (int3x4 lhs, int3x4 rhs) { return new bool3x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } /// Returns the result of a componentwise greater than operation on an int3x4 matrix and an int value. + /// Left hand side int3x4 to use to compute componentwise greater than. + /// Right hand side int to use to compute componentwise greater than. + /// bool3x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator > (int3x4 lhs, int rhs) { return new bool3x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } /// Returns the result of a componentwise greater than operation on an int value and an int3x4 matrix. + /// Left hand side int to use to compute componentwise greater than. + /// Right hand side int3x4 to use to compute componentwise greater than. + /// bool3x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator > (int lhs, int3x4 rhs) { return new bool3x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } /// Returns the result of a componentwise greater or equal operation on two int3x4 matrices. + /// Left hand side int3x4 to use to compute componentwise greater or equal. + /// Right hand side int3x4 to use to compute componentwise greater or equal. + /// bool3x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator >= (int3x4 lhs, int3x4 rhs) { return new bool3x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } /// Returns the result of a componentwise greater or equal operation on an int3x4 matrix and an int value. + /// Left hand side int3x4 to use to compute componentwise greater or equal. + /// Right hand side int to use to compute componentwise greater or equal. + /// bool3x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator >= (int3x4 lhs, int rhs) { return new bool3x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } /// Returns the result of a componentwise greater or equal operation on an int value and an int3x4 matrix. + /// Left hand side int to use to compute componentwise greater or equal. + /// Right hand side int3x4 to use to compute componentwise greater or equal. + /// bool3x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator >= (int lhs, int3x4 rhs) { return new bool3x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } /// Returns the result of a componentwise unary minus operation on an int3x4 matrix. + /// Value to use when computing the componentwise unary minus. + /// int3x4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator - (int3x4 val) { return new int3x4 (-val.c0, -val.c1, -val.c2, -val.c3); } /// Returns the result of a componentwise unary plus operation on an int3x4 matrix. + /// Value to use when computing the componentwise unary plus. + /// int3x4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator + (int3x4 val) { return new int3x4 (+val.c0, +val.c1, +val.c2, +val.c3); } /// Returns the result of a componentwise left shift operation on an int3x4 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator << (int3x4 x, int n) { return new int3x4 (x.c0 << n, x.c1 << n, x.c2 << n, x.c3 << n); } /// Returns the result of a componentwise right shift operation on an int3x4 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator >> (int3x4 x, int n) { return new int3x4 (x.c0 >> n, x.c1 >> n, x.c2 >> n, x.c3 >> n); } /// Returns the result of a componentwise equality operation on two int3x4 matrices. + /// Left hand side int3x4 to use to compute componentwise equality. + /// Right hand side int3x4 to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (int3x4 lhs, int3x4 rhs) { return new bool3x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on an int3x4 matrix and an int value. + /// Left hand side int3x4 to use to compute componentwise equality. + /// Right hand side int to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (int3x4 lhs, int rhs) { return new bool3x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on an int value and an int3x4 matrix. + /// Left hand side int to use to compute componentwise equality. + /// Right hand side int3x4 to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (int lhs, int3x4 rhs) { return new bool3x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two int3x4 matrices. + /// Left hand side int3x4 to use to compute componentwise not equal. + /// Right hand side int3x4 to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (int3x4 lhs, int3x4 rhs) { return new bool3x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on an int3x4 matrix and an int value. + /// Left hand side int3x4 to use to compute componentwise not equal. + /// Right hand side int to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (int3x4 lhs, int rhs) { return new bool3x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on an int value and an int3x4 matrix. + /// Left hand side int to use to compute componentwise not equal. + /// Right hand side int3x4 to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (int lhs, int3x4 rhs) { return new bool3x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } /// Returns the result of a componentwise bitwise not operation on an int3x4 matrix. + /// Value to use when computing the componentwise bitwise not. + /// int3x4 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator ~ (int3x4 val) { return new int3x4 (~val.c0, ~val.c1, ~val.c2, ~val.c3); } /// Returns the result of a componentwise bitwise and operation on two int3x4 matrices. + /// Left hand side int3x4 to use to compute componentwise bitwise and. + /// Right hand side int3x4 to use to compute componentwise bitwise and. + /// int3x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator & (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } /// Returns the result of a componentwise bitwise and operation on an int3x4 matrix and an int value. + /// Left hand side int3x4 to use to compute componentwise bitwise and. + /// Right hand side int to use to compute componentwise bitwise and. + /// int3x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator & (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } /// Returns the result of a componentwise bitwise and operation on an int value and an int3x4 matrix. + /// Left hand side int to use to compute componentwise bitwise and. + /// Right hand side int3x4 to use to compute componentwise bitwise and. + /// int3x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator & (int lhs, int3x4 rhs) { return new int3x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } /// Returns the result of a componentwise bitwise or operation on two int3x4 matrices. + /// Left hand side int3x4 to use to compute componentwise bitwise or. + /// Right hand side int3x4 to use to compute componentwise bitwise or. + /// int3x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator | (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } /// Returns the result of a componentwise bitwise or operation on an int3x4 matrix and an int value. + /// Left hand side int3x4 to use to compute componentwise bitwise or. + /// Right hand side int to use to compute componentwise bitwise or. + /// int3x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator | (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } /// Returns the result of a componentwise bitwise or operation on an int value and an int3x4 matrix. + /// Left hand side int to use to compute componentwise bitwise or. + /// Right hand side int3x4 to use to compute componentwise bitwise or. + /// int3x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator | (int lhs, int3x4 rhs) { return new int3x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on two int3x4 matrices. + /// Left hand side int3x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side int3x4 to use to compute componentwise bitwise exclusive or. + /// int3x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator ^ (int3x4 lhs, int3x4 rhs) { return new int3x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on an int3x4 matrix and an int value. + /// Left hand side int3x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side int to use to compute componentwise bitwise exclusive or. + /// int3x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator ^ (int3x4 lhs, int rhs) { return new int3x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int3x4 matrix. + /// Left hand side int to use to compute componentwise bitwise exclusive or. + /// Right hand side int3x4 to use to compute componentwise bitwise exclusive or. + /// int3x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 operator ^ (int lhs, int3x4 rhs) { return new int3x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } @@ -406,19 +596,25 @@ unsafe public ref int3 this[int index] } /// Returns true if the int3x4 is equal to a given int3x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the int3x4 is equal to a given int3x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is int3x4 converted && Equals(converted); } /// Returns a hash code for the int3x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the int3x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -426,6 +622,9 @@ public override string ToString() } /// Returns a string representation of the int3x4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -437,10 +636,28 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a int3x4 matrix constructed from four int3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// int3x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 int3x4(int3 c0, int3 c1, int3 c2, int3 c3) { return new int3x4(c0, c1, c2, c3); } /// Returns a int3x4 matrix constructed from from 12 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// int3x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 int3x4(int m00, int m01, int m02, int m03, int m10, int m11, int m12, int m13, @@ -452,42 +669,62 @@ public static int3x4 int3x4(int m00, int m01, int m02, int m03, } /// Returns a int3x4 matrix constructed from a single int value by assigning it to every component. + /// int to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 int3x4(int v) { return new int3x4(v); } /// Returns a int3x4 matrix constructed from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 int3x4(bool v) { return new int3x4(v); } /// Return a int3x4 matrix constructed from a bool3x4 matrix by componentwise conversion. + /// bool3x4 to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 int3x4(bool3x4 v) { return new int3x4(v); } /// Returns a int3x4 matrix constructed from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 int3x4(uint v) { return new int3x4(v); } /// Return a int3x4 matrix constructed from a uint3x4 matrix by componentwise conversion. + /// uint3x4 to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 int3x4(uint3x4 v) { return new int3x4(v); } /// Returns a int3x4 matrix constructed from a single float value by converting it to int and assigning it to every component. + /// float to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 int3x4(float v) { return new int3x4(v); } /// Return a int3x4 matrix constructed from a float3x4 matrix by componentwise conversion. + /// float3x4 to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 int3x4(float3x4 v) { return new int3x4(v); } /// Returns a int3x4 matrix constructed from a single double value by converting it to int and assigning it to every component. + /// double to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 int3x4(double v) { return new int3x4(v); } /// Return a int3x4 matrix constructed from a double3x4 matrix by componentwise conversion. + /// double3x4 to convert to int3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 int3x4(double3x4 v) { return new int3x4(v); } /// Return the int4x3 transpose of a int3x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 transpose(int3x4 v) { @@ -498,7 +735,9 @@ public static int4x3 transpose(int3x4 v) v.c3.x, v.c3.y, v.c3.z); } - /// Returns a uint hash code of a int3x4 vector. + /// Returns a uint hash code of a int3x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(int3x4 v) { @@ -509,10 +748,12 @@ public static uint hash(int3x4 v) } /// - /// Returns a uint3 vector hash code of a int3x4 vector. + /// Returns a uint3 vector hash code of a int3x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(int3x4 v) { diff --git a/src/Unity.Mathematics/int4.gen.cs b/src/Unity.Mathematics/int4.gen.cs index 07218a7a..2271eca8 100644 --- a/src/Unity.Mathematics/int4.gen.cs +++ b/src/Unity.Mathematics/int4.gen.cs @@ -15,20 +15,29 @@ namespace Unity.Mathematics { + /// A 4 component vector of ints. [DebuggerTypeProxy(typeof(int4.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct int4 : System.IEquatable, IFormattable { + /// x component of the vector. public int x; + /// y component of the vector. public int y; + /// z component of the vector. public int z; + /// w component of the vector. public int w; /// int4 zero value. public static readonly int4 zero; /// Constructs a int4 vector from four int values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(int x, int y, int z, int w) { @@ -39,6 +48,9 @@ public int4(int x, int y, int z, int w) } /// Constructs a int4 vector from two int values and an int2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's zw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(int x, int y, int2 zw) { @@ -49,6 +61,9 @@ public int4(int x, int y, int2 zw) } /// Constructs a int4 vector from an int value, an int2 vector and an int value. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(int x, int2 yz, int w) { @@ -59,6 +74,8 @@ public int4(int x, int2 yz, int w) } /// Constructs a int4 vector from an int value and an int3 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yzw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(int x, int3 yzw) { @@ -69,6 +86,9 @@ public int4(int x, int3 yzw) } /// Constructs a int4 vector from an int2 vector and two int values. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(int2 xy, int z, int w) { @@ -79,6 +99,8 @@ public int4(int2 xy, int z, int w) } /// Constructs a int4 vector from two int2 vectors. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's zw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(int2 xy, int2 zw) { @@ -89,6 +111,8 @@ public int4(int2 xy, int2 zw) } /// Constructs a int4 vector from an int3 vector and an int value. + /// The constructed vector's xyz components will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(int3 xyz, int w) { @@ -99,6 +123,7 @@ public int4(int3 xyz, int w) } /// Constructs a int4 vector from an int4 vector. + /// The constructed vector's xyzw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(int4 xyzw) { @@ -109,6 +134,7 @@ public int4(int4 xyzw) } /// Constructs a int4 vector from a single int value by assigning it to every component. + /// int to convert to int4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(int v) { @@ -119,6 +145,7 @@ public int4(int v) } /// Constructs a int4 vector from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(bool v) { @@ -129,6 +156,7 @@ public int4(bool v) } /// Constructs a int4 vector from a bool4 vector by componentwise conversion. + /// bool4 to convert to int4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(bool4 v) { @@ -139,6 +167,7 @@ public int4(bool4 v) } /// Constructs a int4 vector from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(uint v) { @@ -149,6 +178,7 @@ public int4(uint v) } /// Constructs a int4 vector from a uint4 vector by componentwise conversion. + /// uint4 to convert to int4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(uint4 v) { @@ -159,6 +189,7 @@ public int4(uint4 v) } /// Constructs a int4 vector from a single float value by converting it to int and assigning it to every component. + /// float to convert to int4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(float v) { @@ -169,6 +200,7 @@ public int4(float v) } /// Constructs a int4 vector from a float4 vector by componentwise conversion. + /// float4 to convert to int4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(float4 v) { @@ -179,6 +211,7 @@ public int4(float4 v) } /// Constructs a int4 vector from a single double value by converting it to int and assigning it to every component. + /// double to convert to int4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(double v) { @@ -189,6 +222,7 @@ public int4(double v) } /// Constructs a int4 vector from a double4 vector by componentwise conversion. + /// double4 to convert to int4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4(double4 v) { @@ -200,259 +234,420 @@ public int4(double4 v) /// Implicitly converts a single int value to a int4 vector by assigning it to every component. + /// int to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int4(int v) { return new int4(v); } /// Explicitly converts a single bool value to a int4 vector by converting it to int and assigning it to every component. + /// bool to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4(bool v) { return new int4(v); } /// Explicitly converts a bool4 vector to a int4 vector by componentwise conversion. + /// bool4 to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4(bool4 v) { return new int4(v); } /// Explicitly converts a single uint value to a int4 vector by converting it to int and assigning it to every component. + /// uint to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4(uint v) { return new int4(v); } /// Explicitly converts a uint4 vector to a int4 vector by componentwise conversion. + /// uint4 to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4(uint4 v) { return new int4(v); } /// Explicitly converts a single float value to a int4 vector by converting it to int and assigning it to every component. + /// float to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4(float v) { return new int4(v); } /// Explicitly converts a float4 vector to a int4 vector by componentwise conversion. + /// float4 to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4(float4 v) { return new int4(v); } /// Explicitly converts a single double value to a int4 vector by converting it to int and assigning it to every component. + /// double to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4(double v) { return new int4(v); } /// Explicitly converts a double4 vector to a int4 vector by componentwise conversion. + /// double4 to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4(double4 v) { return new int4(v); } /// Returns the result of a componentwise multiplication operation on two int4 vectors. + /// Left hand side int4 to use to compute componentwise multiplication. + /// Right hand side int4 to use to compute componentwise multiplication. + /// int4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator * (int4 lhs, int4 rhs) { return new int4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } /// Returns the result of a componentwise multiplication operation on an int4 vector and an int value. + /// Left hand side int4 to use to compute componentwise multiplication. + /// Right hand side int to use to compute componentwise multiplication. + /// int4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator * (int4 lhs, int rhs) { return new int4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } /// Returns the result of a componentwise multiplication operation on an int value and an int4 vector. + /// Left hand side int to use to compute componentwise multiplication. + /// Right hand side int4 to use to compute componentwise multiplication. + /// int4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator * (int lhs, int4 rhs) { return new int4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } /// Returns the result of a componentwise addition operation on two int4 vectors. + /// Left hand side int4 to use to compute componentwise addition. + /// Right hand side int4 to use to compute componentwise addition. + /// int4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator + (int4 lhs, int4 rhs) { return new int4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } /// Returns the result of a componentwise addition operation on an int4 vector and an int value. + /// Left hand side int4 to use to compute componentwise addition. + /// Right hand side int to use to compute componentwise addition. + /// int4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator + (int4 lhs, int rhs) { return new int4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } /// Returns the result of a componentwise addition operation on an int value and an int4 vector. + /// Left hand side int to use to compute componentwise addition. + /// Right hand side int4 to use to compute componentwise addition. + /// int4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator + (int lhs, int4 rhs) { return new int4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } /// Returns the result of a componentwise subtraction operation on two int4 vectors. + /// Left hand side int4 to use to compute componentwise subtraction. + /// Right hand side int4 to use to compute componentwise subtraction. + /// int4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator - (int4 lhs, int4 rhs) { return new int4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } /// Returns the result of a componentwise subtraction operation on an int4 vector and an int value. + /// Left hand side int4 to use to compute componentwise subtraction. + /// Right hand side int to use to compute componentwise subtraction. + /// int4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator - (int4 lhs, int rhs) { return new int4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } /// Returns the result of a componentwise subtraction operation on an int value and an int4 vector. + /// Left hand side int to use to compute componentwise subtraction. + /// Right hand side int4 to use to compute componentwise subtraction. + /// int4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator - (int lhs, int4 rhs) { return new int4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } /// Returns the result of a componentwise division operation on two int4 vectors. + /// Left hand side int4 to use to compute componentwise division. + /// Right hand side int4 to use to compute componentwise division. + /// int4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator / (int4 lhs, int4 rhs) { return new int4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } /// Returns the result of a componentwise division operation on an int4 vector and an int value. + /// Left hand side int4 to use to compute componentwise division. + /// Right hand side int to use to compute componentwise division. + /// int4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator / (int4 lhs, int rhs) { return new int4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } /// Returns the result of a componentwise division operation on an int value and an int4 vector. + /// Left hand side int to use to compute componentwise division. + /// Right hand side int4 to use to compute componentwise division. + /// int4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator / (int lhs, int4 rhs) { return new int4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } /// Returns the result of a componentwise modulus operation on two int4 vectors. + /// Left hand side int4 to use to compute componentwise modulus. + /// Right hand side int4 to use to compute componentwise modulus. + /// int4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator % (int4 lhs, int4 rhs) { return new int4 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z, lhs.w % rhs.w); } /// Returns the result of a componentwise modulus operation on an int4 vector and an int value. + /// Left hand side int4 to use to compute componentwise modulus. + /// Right hand side int to use to compute componentwise modulus. + /// int4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator % (int4 lhs, int rhs) { return new int4 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs, lhs.w % rhs); } /// Returns the result of a componentwise modulus operation on an int value and an int4 vector. + /// Left hand side int to use to compute componentwise modulus. + /// Right hand side int4 to use to compute componentwise modulus. + /// int4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator % (int lhs, int4 rhs) { return new int4 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z, lhs % rhs.w); } /// Returns the result of a componentwise increment operation on an int4 vector. + /// Value to use when computing the componentwise increment. + /// int4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator ++ (int4 val) { return new int4 (++val.x, ++val.y, ++val.z, ++val.w); } /// Returns the result of a componentwise decrement operation on an int4 vector. + /// Value to use when computing the componentwise decrement. + /// int4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator -- (int4 val) { return new int4 (--val.x, --val.y, --val.z, --val.w); } /// Returns the result of a componentwise less than operation on two int4 vectors. + /// Left hand side int4 to use to compute componentwise less than. + /// Right hand side int4 to use to compute componentwise less than. + /// bool4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (int4 lhs, int4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } /// Returns the result of a componentwise less than operation on an int4 vector and an int value. + /// Left hand side int4 to use to compute componentwise less than. + /// Right hand side int to use to compute componentwise less than. + /// bool4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (int4 lhs, int rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } /// Returns the result of a componentwise less than operation on an int value and an int4 vector. + /// Left hand side int to use to compute componentwise less than. + /// Right hand side int4 to use to compute componentwise less than. + /// bool4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (int lhs, int4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } /// Returns the result of a componentwise less or equal operation on two int4 vectors. + /// Left hand side int4 to use to compute componentwise less or equal. + /// Right hand side int4 to use to compute componentwise less or equal. + /// bool4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (int4 lhs, int4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } /// Returns the result of a componentwise less or equal operation on an int4 vector and an int value. + /// Left hand side int4 to use to compute componentwise less or equal. + /// Right hand side int to use to compute componentwise less or equal. + /// bool4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (int4 lhs, int rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } /// Returns the result of a componentwise less or equal operation on an int value and an int4 vector. + /// Left hand side int to use to compute componentwise less or equal. + /// Right hand side int4 to use to compute componentwise less or equal. + /// bool4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (int lhs, int4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } /// Returns the result of a componentwise greater than operation on two int4 vectors. + /// Left hand side int4 to use to compute componentwise greater than. + /// Right hand side int4 to use to compute componentwise greater than. + /// bool4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (int4 lhs, int4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } /// Returns the result of a componentwise greater than operation on an int4 vector and an int value. + /// Left hand side int4 to use to compute componentwise greater than. + /// Right hand side int to use to compute componentwise greater than. + /// bool4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (int4 lhs, int rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } /// Returns the result of a componentwise greater than operation on an int value and an int4 vector. + /// Left hand side int to use to compute componentwise greater than. + /// Right hand side int4 to use to compute componentwise greater than. + /// bool4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (int lhs, int4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } /// Returns the result of a componentwise greater or equal operation on two int4 vectors. + /// Left hand side int4 to use to compute componentwise greater or equal. + /// Right hand side int4 to use to compute componentwise greater or equal. + /// bool4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (int4 lhs, int4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } /// Returns the result of a componentwise greater or equal operation on an int4 vector and an int value. + /// Left hand side int4 to use to compute componentwise greater or equal. + /// Right hand side int to use to compute componentwise greater or equal. + /// bool4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (int4 lhs, int rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } /// Returns the result of a componentwise greater or equal operation on an int value and an int4 vector. + /// Left hand side int to use to compute componentwise greater or equal. + /// Right hand side int4 to use to compute componentwise greater or equal. + /// bool4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (int lhs, int4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } /// Returns the result of a componentwise unary minus operation on an int4 vector. + /// Value to use when computing the componentwise unary minus. + /// int4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator - (int4 val) { return new int4 (-val.x, -val.y, -val.z, -val.w); } /// Returns the result of a componentwise unary plus operation on an int4 vector. + /// Value to use when computing the componentwise unary plus. + /// int4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator + (int4 val) { return new int4 (+val.x, +val.y, +val.z, +val.w); } /// Returns the result of a componentwise left shift operation on an int4 vector by a number of bits specified by a single int. + /// The vector to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator << (int4 x, int n) { return new int4 (x.x << n, x.y << n, x.z << n, x.w << n); } /// Returns the result of a componentwise right shift operation on an int4 vector by a number of bits specified by a single int. + /// The vector to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator >> (int4 x, int n) { return new int4 (x.x >> n, x.y >> n, x.z >> n, x.w >> n); } /// Returns the result of a componentwise equality operation on two int4 vectors. + /// Left hand side int4 to use to compute componentwise equality. + /// Right hand side int4 to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (int4 lhs, int4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } /// Returns the result of a componentwise equality operation on an int4 vector and an int value. + /// Left hand side int4 to use to compute componentwise equality. + /// Right hand side int to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (int4 lhs, int rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } /// Returns the result of a componentwise equality operation on an int value and an int4 vector. + /// Left hand side int to use to compute componentwise equality. + /// Right hand side int4 to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (int lhs, int4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } /// Returns the result of a componentwise not equal operation on two int4 vectors. + /// Left hand side int4 to use to compute componentwise not equal. + /// Right hand side int4 to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (int4 lhs, int4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } /// Returns the result of a componentwise not equal operation on an int4 vector and an int value. + /// Left hand side int4 to use to compute componentwise not equal. + /// Right hand side int to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (int4 lhs, int rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } /// Returns the result of a componentwise not equal operation on an int value and an int4 vector. + /// Left hand side int to use to compute componentwise not equal. + /// Right hand side int4 to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (int lhs, int4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } /// Returns the result of a componentwise bitwise not operation on an int4 vector. + /// Value to use when computing the componentwise bitwise not. + /// int4 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator ~ (int4 val) { return new int4 (~val.x, ~val.y, ~val.z, ~val.w); } /// Returns the result of a componentwise bitwise and operation on two int4 vectors. + /// Left hand side int4 to use to compute componentwise bitwise and. + /// Right hand side int4 to use to compute componentwise bitwise and. + /// int4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator & (int4 lhs, int4 rhs) { return new int4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } /// Returns the result of a componentwise bitwise and operation on an int4 vector and an int value. + /// Left hand side int4 to use to compute componentwise bitwise and. + /// Right hand side int to use to compute componentwise bitwise and. + /// int4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator & (int4 lhs, int rhs) { return new int4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } /// Returns the result of a componentwise bitwise and operation on an int value and an int4 vector. + /// Left hand side int to use to compute componentwise bitwise and. + /// Right hand side int4 to use to compute componentwise bitwise and. + /// int4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator & (int lhs, int4 rhs) { return new int4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } /// Returns the result of a componentwise bitwise or operation on two int4 vectors. + /// Left hand side int4 to use to compute componentwise bitwise or. + /// Right hand side int4 to use to compute componentwise bitwise or. + /// int4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator | (int4 lhs, int4 rhs) { return new int4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } /// Returns the result of a componentwise bitwise or operation on an int4 vector and an int value. + /// Left hand side int4 to use to compute componentwise bitwise or. + /// Right hand side int to use to compute componentwise bitwise or. + /// int4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator | (int4 lhs, int rhs) { return new int4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } /// Returns the result of a componentwise bitwise or operation on an int value and an int4 vector. + /// Left hand side int to use to compute componentwise bitwise or. + /// Right hand side int4 to use to compute componentwise bitwise or. + /// int4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator | (int lhs, int4 rhs) { return new int4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } /// Returns the result of a componentwise bitwise exclusive or operation on two int4 vectors. + /// Left hand side int4 to use to compute componentwise bitwise exclusive or. + /// Right hand side int4 to use to compute componentwise bitwise exclusive or. + /// int4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator ^ (int4 lhs, int4 rhs) { return new int4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } /// Returns the result of a componentwise bitwise exclusive or operation on an int4 vector and an int value. + /// Left hand side int4 to use to compute componentwise bitwise exclusive or. + /// Right hand side int to use to compute componentwise bitwise exclusive or. + /// int4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator ^ (int4 lhs, int rhs) { return new int4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int4 vector. + /// Left hand side int to use to compute componentwise bitwise exclusive or. + /// Right hand side int4 to use to compute componentwise bitwise exclusive or. + /// int4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 operator ^ (int lhs, int4 rhs) { return new int4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxx { @@ -461,6 +656,7 @@ public int4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxy { @@ -469,6 +665,7 @@ public int4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxz { @@ -477,6 +674,7 @@ public int4 xxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxxw { @@ -485,6 +683,7 @@ public int4 xxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyx { @@ -493,6 +692,7 @@ public int4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyy { @@ -501,6 +701,7 @@ public int4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyz { @@ -509,6 +710,7 @@ public int4 xxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxyw { @@ -517,6 +719,7 @@ public int4 xxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxzx { @@ -525,6 +728,7 @@ public int4 xxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxzy { @@ -533,6 +737,7 @@ public int4 xxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxzz { @@ -541,6 +746,7 @@ public int4 xxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxzw { @@ -549,6 +755,7 @@ public int4 xxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxwx { @@ -557,6 +764,7 @@ public int4 xxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxwy { @@ -565,6 +773,7 @@ public int4 xxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxwz { @@ -573,6 +782,7 @@ public int4 xxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xxww { @@ -581,6 +791,7 @@ public int4 xxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxx { @@ -589,6 +800,7 @@ public int4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxy { @@ -597,6 +809,7 @@ public int4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxz { @@ -605,6 +818,7 @@ public int4 xyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyxw { @@ -613,6 +827,7 @@ public int4 xyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyx { @@ -621,6 +836,7 @@ public int4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyy { @@ -629,6 +845,7 @@ public int4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyz { @@ -637,6 +854,7 @@ public int4 xyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyyw { @@ -645,6 +863,7 @@ public int4 xyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyzx { @@ -653,6 +872,7 @@ public int4 xyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyzy { @@ -661,6 +881,7 @@ public int4 xyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyzz { @@ -669,6 +890,7 @@ public int4 xyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyzw { @@ -679,6 +901,7 @@ public int4 xyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xywx { @@ -687,6 +910,7 @@ public int4 xywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xywy { @@ -695,6 +919,7 @@ public int4 xywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xywz { @@ -705,6 +930,7 @@ public int4 xywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xyww { @@ -713,6 +939,7 @@ public int4 xyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzxx { @@ -721,6 +948,7 @@ public int4 xzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzxy { @@ -729,6 +957,7 @@ public int4 xzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzxz { @@ -737,6 +966,7 @@ public int4 xzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzxw { @@ -745,6 +975,7 @@ public int4 xzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzyx { @@ -753,6 +984,7 @@ public int4 xzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzyy { @@ -761,6 +993,7 @@ public int4 xzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzyz { @@ -769,6 +1002,7 @@ public int4 xzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzyw { @@ -779,6 +1013,7 @@ public int4 xzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzzx { @@ -787,6 +1022,7 @@ public int4 xzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzzy { @@ -795,6 +1031,7 @@ public int4 xzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzzz { @@ -803,6 +1040,7 @@ public int4 xzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzzw { @@ -811,6 +1049,7 @@ public int4 xzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzwx { @@ -819,6 +1058,7 @@ public int4 xzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzwy { @@ -829,6 +1069,7 @@ public int4 xzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzwz { @@ -837,6 +1078,7 @@ public int4 xzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xzww { @@ -845,6 +1087,7 @@ public int4 xzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwxx { @@ -853,6 +1096,7 @@ public int4 xwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwxy { @@ -861,6 +1105,7 @@ public int4 xwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwxz { @@ -869,6 +1114,7 @@ public int4 xwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwxw { @@ -877,6 +1123,7 @@ public int4 xwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwyx { @@ -885,6 +1132,7 @@ public int4 xwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwyy { @@ -893,6 +1141,7 @@ public int4 xwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwyz { @@ -903,6 +1152,7 @@ public int4 xwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwyw { @@ -911,6 +1161,7 @@ public int4 xwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwzx { @@ -919,6 +1170,7 @@ public int4 xwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwzy { @@ -929,6 +1181,7 @@ public int4 xwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwzz { @@ -937,6 +1190,7 @@ public int4 xwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwzw { @@ -945,6 +1199,7 @@ public int4 xwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwwx { @@ -953,6 +1208,7 @@ public int4 xwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwwy { @@ -961,6 +1217,7 @@ public int4 xwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwwz { @@ -969,6 +1226,7 @@ public int4 xwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 xwww { @@ -977,6 +1235,7 @@ public int4 xwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxx { @@ -985,6 +1244,7 @@ public int4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxy { @@ -993,6 +1253,7 @@ public int4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxz { @@ -1001,6 +1262,7 @@ public int4 yxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxxw { @@ -1009,6 +1271,7 @@ public int4 yxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyx { @@ -1017,6 +1280,7 @@ public int4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyy { @@ -1025,6 +1289,7 @@ public int4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyz { @@ -1033,6 +1298,7 @@ public int4 yxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxyw { @@ -1041,6 +1307,7 @@ public int4 yxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxzx { @@ -1049,6 +1316,7 @@ public int4 yxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxzy { @@ -1057,6 +1325,7 @@ public int4 yxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxzz { @@ -1065,6 +1334,7 @@ public int4 yxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxzw { @@ -1075,6 +1345,7 @@ public int4 yxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxwx { @@ -1083,6 +1354,7 @@ public int4 yxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxwy { @@ -1091,6 +1363,7 @@ public int4 yxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxwz { @@ -1101,6 +1374,7 @@ public int4 yxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yxww { @@ -1109,6 +1383,7 @@ public int4 yxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxx { @@ -1117,6 +1392,7 @@ public int4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxy { @@ -1125,6 +1401,7 @@ public int4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxz { @@ -1133,6 +1410,7 @@ public int4 yyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyxw { @@ -1141,6 +1419,7 @@ public int4 yyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyx { @@ -1149,6 +1428,7 @@ public int4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyy { @@ -1157,6 +1437,7 @@ public int4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyz { @@ -1165,6 +1446,7 @@ public int4 yyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyyw { @@ -1173,6 +1455,7 @@ public int4 yyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyzx { @@ -1181,6 +1464,7 @@ public int4 yyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyzy { @@ -1189,6 +1473,7 @@ public int4 yyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyzz { @@ -1197,6 +1482,7 @@ public int4 yyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyzw { @@ -1205,6 +1491,7 @@ public int4 yyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yywx { @@ -1213,6 +1500,7 @@ public int4 yywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yywy { @@ -1221,6 +1509,7 @@ public int4 yywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yywz { @@ -1229,6 +1518,7 @@ public int4 yywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yyww { @@ -1237,6 +1527,7 @@ public int4 yyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzxx { @@ -1245,6 +1536,7 @@ public int4 yzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzxy { @@ -1253,6 +1545,7 @@ public int4 yzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzxz { @@ -1261,6 +1554,7 @@ public int4 yzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzxw { @@ -1271,6 +1565,7 @@ public int4 yzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzyx { @@ -1279,6 +1574,7 @@ public int4 yzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzyy { @@ -1287,6 +1583,7 @@ public int4 yzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzyz { @@ -1295,6 +1592,7 @@ public int4 yzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzyw { @@ -1303,6 +1601,7 @@ public int4 yzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzzx { @@ -1311,6 +1610,7 @@ public int4 yzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzzy { @@ -1319,6 +1619,7 @@ public int4 yzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzzz { @@ -1327,6 +1628,7 @@ public int4 yzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzzw { @@ -1335,6 +1637,7 @@ public int4 yzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzwx { @@ -1345,6 +1648,7 @@ public int4 yzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzwy { @@ -1353,6 +1657,7 @@ public int4 yzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzwz { @@ -1361,6 +1666,7 @@ public int4 yzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 yzww { @@ -1369,6 +1675,7 @@ public int4 yzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywxx { @@ -1377,6 +1684,7 @@ public int4 ywxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywxy { @@ -1385,6 +1693,7 @@ public int4 ywxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywxz { @@ -1395,6 +1704,7 @@ public int4 ywxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywxw { @@ -1403,6 +1713,7 @@ public int4 ywxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywyx { @@ -1411,6 +1722,7 @@ public int4 ywyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywyy { @@ -1419,6 +1731,7 @@ public int4 ywyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywyz { @@ -1427,6 +1740,7 @@ public int4 ywyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywyw { @@ -1435,6 +1749,7 @@ public int4 ywyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywzx { @@ -1445,6 +1760,7 @@ public int4 ywzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywzy { @@ -1453,6 +1769,7 @@ public int4 ywzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywzz { @@ -1461,6 +1778,7 @@ public int4 ywzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywzw { @@ -1469,6 +1787,7 @@ public int4 ywzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywwx { @@ -1477,6 +1796,7 @@ public int4 ywwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywwy { @@ -1485,6 +1805,7 @@ public int4 ywwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywwz { @@ -1493,6 +1814,7 @@ public int4 ywwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 ywww { @@ -1501,6 +1823,7 @@ public int4 ywww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxxx { @@ -1509,6 +1832,7 @@ public int4 zxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxxy { @@ -1517,6 +1841,7 @@ public int4 zxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxxz { @@ -1525,6 +1850,7 @@ public int4 zxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxxw { @@ -1533,6 +1859,7 @@ public int4 zxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxyx { @@ -1541,6 +1868,7 @@ public int4 zxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxyy { @@ -1549,6 +1877,7 @@ public int4 zxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxyz { @@ -1557,6 +1886,7 @@ public int4 zxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxyw { @@ -1567,6 +1897,7 @@ public int4 zxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxzx { @@ -1575,6 +1906,7 @@ public int4 zxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxzy { @@ -1583,6 +1915,7 @@ public int4 zxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxzz { @@ -1591,6 +1924,7 @@ public int4 zxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxzw { @@ -1599,6 +1933,7 @@ public int4 zxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxwx { @@ -1607,6 +1942,7 @@ public int4 zxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxwy { @@ -1617,6 +1953,7 @@ public int4 zxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxwz { @@ -1625,6 +1962,7 @@ public int4 zxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zxww { @@ -1633,6 +1971,7 @@ public int4 zxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyxx { @@ -1641,6 +1980,7 @@ public int4 zyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyxy { @@ -1649,6 +1989,7 @@ public int4 zyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyxz { @@ -1657,6 +1998,7 @@ public int4 zyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyxw { @@ -1667,6 +2009,7 @@ public int4 zyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyyx { @@ -1675,6 +2018,7 @@ public int4 zyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyyy { @@ -1683,6 +2027,7 @@ public int4 zyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyyz { @@ -1691,6 +2036,7 @@ public int4 zyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyyw { @@ -1699,6 +2045,7 @@ public int4 zyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyzx { @@ -1707,6 +2054,7 @@ public int4 zyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyzy { @@ -1715,6 +2063,7 @@ public int4 zyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyzz { @@ -1723,6 +2072,7 @@ public int4 zyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyzw { @@ -1731,6 +2081,7 @@ public int4 zyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zywx { @@ -1741,6 +2092,7 @@ public int4 zywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zywy { @@ -1749,6 +2101,7 @@ public int4 zywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zywz { @@ -1757,6 +2110,7 @@ public int4 zywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zyww { @@ -1765,6 +2119,7 @@ public int4 zyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzxx { @@ -1773,6 +2128,7 @@ public int4 zzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzxy { @@ -1781,6 +2137,7 @@ public int4 zzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzxz { @@ -1789,6 +2146,7 @@ public int4 zzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzxw { @@ -1797,6 +2155,7 @@ public int4 zzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzyx { @@ -1805,6 +2164,7 @@ public int4 zzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzyy { @@ -1813,6 +2173,7 @@ public int4 zzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzyz { @@ -1821,6 +2182,7 @@ public int4 zzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzyw { @@ -1829,6 +2191,7 @@ public int4 zzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzzx { @@ -1837,6 +2200,7 @@ public int4 zzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzzy { @@ -1845,6 +2209,7 @@ public int4 zzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzzz { @@ -1853,6 +2218,7 @@ public int4 zzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzzw { @@ -1861,6 +2227,7 @@ public int4 zzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzwx { @@ -1869,6 +2236,7 @@ public int4 zzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzwy { @@ -1877,6 +2245,7 @@ public int4 zzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzwz { @@ -1885,6 +2254,7 @@ public int4 zzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zzww { @@ -1893,6 +2263,7 @@ public int4 zzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwxx { @@ -1901,6 +2272,7 @@ public int4 zwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwxy { @@ -1911,6 +2283,7 @@ public int4 zwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwxz { @@ -1919,6 +2292,7 @@ public int4 zwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwxw { @@ -1927,6 +2301,7 @@ public int4 zwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwyx { @@ -1937,6 +2312,7 @@ public int4 zwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwyy { @@ -1945,6 +2321,7 @@ public int4 zwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwyz { @@ -1953,6 +2330,7 @@ public int4 zwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwyw { @@ -1961,6 +2339,7 @@ public int4 zwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwzx { @@ -1969,6 +2348,7 @@ public int4 zwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwzy { @@ -1977,6 +2357,7 @@ public int4 zwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwzz { @@ -1985,6 +2366,7 @@ public int4 zwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwzw { @@ -1993,6 +2375,7 @@ public int4 zwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwwx { @@ -2001,6 +2384,7 @@ public int4 zwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwwy { @@ -2009,6 +2393,7 @@ public int4 zwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwwz { @@ -2017,6 +2402,7 @@ public int4 zwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 zwww { @@ -2025,6 +2411,7 @@ public int4 zwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxxx { @@ -2033,6 +2420,7 @@ public int4 wxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxxy { @@ -2041,6 +2429,7 @@ public int4 wxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxxz { @@ -2049,6 +2438,7 @@ public int4 wxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxxw { @@ -2057,6 +2447,7 @@ public int4 wxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxyx { @@ -2065,6 +2456,7 @@ public int4 wxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxyy { @@ -2073,6 +2465,7 @@ public int4 wxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxyz { @@ -2083,6 +2476,7 @@ public int4 wxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxyw { @@ -2091,6 +2485,7 @@ public int4 wxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxzx { @@ -2099,6 +2494,7 @@ public int4 wxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxzy { @@ -2109,6 +2505,7 @@ public int4 wxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxzz { @@ -2117,6 +2514,7 @@ public int4 wxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxzw { @@ -2125,6 +2523,7 @@ public int4 wxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxwx { @@ -2133,6 +2532,7 @@ public int4 wxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxwy { @@ -2141,6 +2541,7 @@ public int4 wxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxwz { @@ -2149,6 +2550,7 @@ public int4 wxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wxww { @@ -2157,6 +2559,7 @@ public int4 wxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyxx { @@ -2165,6 +2568,7 @@ public int4 wyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyxy { @@ -2173,6 +2577,7 @@ public int4 wyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyxz { @@ -2183,6 +2588,7 @@ public int4 wyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyxw { @@ -2191,6 +2597,7 @@ public int4 wyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyyx { @@ -2199,6 +2606,7 @@ public int4 wyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyyy { @@ -2207,6 +2615,7 @@ public int4 wyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyyz { @@ -2215,6 +2624,7 @@ public int4 wyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyyw { @@ -2223,6 +2633,7 @@ public int4 wyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyzx { @@ -2233,6 +2644,7 @@ public int4 wyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyzy { @@ -2241,6 +2653,7 @@ public int4 wyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyzz { @@ -2249,6 +2662,7 @@ public int4 wyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyzw { @@ -2257,6 +2671,7 @@ public int4 wyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wywx { @@ -2265,6 +2680,7 @@ public int4 wywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wywy { @@ -2273,6 +2689,7 @@ public int4 wywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wywz { @@ -2281,6 +2698,7 @@ public int4 wywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wyww { @@ -2289,6 +2707,7 @@ public int4 wyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzxx { @@ -2297,6 +2716,7 @@ public int4 wzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzxy { @@ -2307,6 +2727,7 @@ public int4 wzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzxz { @@ -2315,6 +2736,7 @@ public int4 wzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzxw { @@ -2323,6 +2745,7 @@ public int4 wzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzyx { @@ -2333,6 +2756,7 @@ public int4 wzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzyy { @@ -2341,6 +2765,7 @@ public int4 wzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzyz { @@ -2349,6 +2774,7 @@ public int4 wzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzyw { @@ -2357,6 +2783,7 @@ public int4 wzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzzx { @@ -2365,6 +2792,7 @@ public int4 wzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzzy { @@ -2373,6 +2801,7 @@ public int4 wzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzzz { @@ -2381,6 +2810,7 @@ public int4 wzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzzw { @@ -2389,6 +2819,7 @@ public int4 wzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzwx { @@ -2397,6 +2828,7 @@ public int4 wzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzwy { @@ -2405,6 +2837,7 @@ public int4 wzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzwz { @@ -2413,6 +2846,7 @@ public int4 wzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wzww { @@ -2421,6 +2855,7 @@ public int4 wzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwxx { @@ -2429,6 +2864,7 @@ public int4 wwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwxy { @@ -2437,6 +2873,7 @@ public int4 wwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwxz { @@ -2445,6 +2882,7 @@ public int4 wwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwxw { @@ -2453,6 +2891,7 @@ public int4 wwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwyx { @@ -2461,6 +2900,7 @@ public int4 wwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwyy { @@ -2469,6 +2909,7 @@ public int4 wwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwyz { @@ -2477,6 +2918,7 @@ public int4 wwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwyw { @@ -2485,6 +2927,7 @@ public int4 wwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwzx { @@ -2493,6 +2936,7 @@ public int4 wwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwzy { @@ -2501,6 +2945,7 @@ public int4 wwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwzz { @@ -2509,6 +2954,7 @@ public int4 wwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwzw { @@ -2517,6 +2963,7 @@ public int4 wwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwwx { @@ -2525,6 +2972,7 @@ public int4 wwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwwy { @@ -2533,6 +2981,7 @@ public int4 wwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwwz { @@ -2541,6 +2990,7 @@ public int4 wwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int4 wwww { @@ -2549,6 +2999,7 @@ public int4 wwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxx { @@ -2557,6 +3008,7 @@ public int3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxy { @@ -2565,6 +3017,7 @@ public int3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxz { @@ -2573,6 +3026,7 @@ public int3 xxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xxw { @@ -2581,6 +3035,7 @@ public int3 xxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyx { @@ -2589,6 +3044,7 @@ public int3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyy { @@ -2597,6 +3053,7 @@ public int3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyz { @@ -2607,6 +3064,7 @@ public int3 xyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xyw { @@ -2617,6 +3075,7 @@ public int3 xyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xzx { @@ -2625,6 +3084,7 @@ public int3 xzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xzy { @@ -2635,6 +3095,7 @@ public int3 xzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xzz { @@ -2643,6 +3104,7 @@ public int3 xzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xzw { @@ -2653,6 +3115,7 @@ public int3 xzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xwx { @@ -2661,6 +3124,7 @@ public int3 xwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xwy { @@ -2671,6 +3135,7 @@ public int3 xwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xwz { @@ -2681,6 +3146,7 @@ public int3 xwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 xww { @@ -2689,6 +3155,7 @@ public int3 xww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxx { @@ -2697,6 +3164,7 @@ public int3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxy { @@ -2705,6 +3173,7 @@ public int3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxz { @@ -2715,6 +3184,7 @@ public int3 yxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yxw { @@ -2725,6 +3195,7 @@ public int3 yxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyx { @@ -2733,6 +3204,7 @@ public int3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyy { @@ -2741,6 +3213,7 @@ public int3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyz { @@ -2749,6 +3222,7 @@ public int3 yyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yyw { @@ -2757,6 +3231,7 @@ public int3 yyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yzx { @@ -2767,6 +3242,7 @@ public int3 yzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yzy { @@ -2775,6 +3251,7 @@ public int3 yzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yzz { @@ -2783,6 +3260,7 @@ public int3 yzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yzw { @@ -2793,6 +3271,7 @@ public int3 yzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 ywx { @@ -2803,6 +3282,7 @@ public int3 ywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 ywy { @@ -2811,6 +3291,7 @@ public int3 ywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 ywz { @@ -2821,6 +3302,7 @@ public int3 ywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 yww { @@ -2829,6 +3311,7 @@ public int3 yww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zxx { @@ -2837,6 +3320,7 @@ public int3 zxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zxy { @@ -2847,6 +3331,7 @@ public int3 zxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zxz { @@ -2855,6 +3340,7 @@ public int3 zxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zxw { @@ -2865,6 +3351,7 @@ public int3 zxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zyx { @@ -2875,6 +3362,7 @@ public int3 zyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zyy { @@ -2883,6 +3371,7 @@ public int3 zyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zyz { @@ -2891,6 +3380,7 @@ public int3 zyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zyw { @@ -2901,6 +3391,7 @@ public int3 zyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zzx { @@ -2909,6 +3400,7 @@ public int3 zzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zzy { @@ -2917,6 +3409,7 @@ public int3 zzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zzz { @@ -2925,6 +3418,7 @@ public int3 zzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zzw { @@ -2933,6 +3427,7 @@ public int3 zzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zwx { @@ -2943,6 +3438,7 @@ public int3 zwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zwy { @@ -2953,6 +3449,7 @@ public int3 zwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zwz { @@ -2961,6 +3458,7 @@ public int3 zwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 zww { @@ -2969,6 +3467,7 @@ public int3 zww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wxx { @@ -2977,6 +3476,7 @@ public int3 wxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wxy { @@ -2987,6 +3487,7 @@ public int3 wxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wxz { @@ -2997,6 +3498,7 @@ public int3 wxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wxw { @@ -3005,6 +3507,7 @@ public int3 wxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wyx { @@ -3015,6 +3518,7 @@ public int3 wyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wyy { @@ -3023,6 +3527,7 @@ public int3 wyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wyz { @@ -3033,6 +3538,7 @@ public int3 wyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wyw { @@ -3041,6 +3547,7 @@ public int3 wyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wzx { @@ -3051,6 +3558,7 @@ public int3 wzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wzy { @@ -3061,6 +3569,7 @@ public int3 wzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wzz { @@ -3069,6 +3578,7 @@ public int3 wzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wzw { @@ -3077,6 +3587,7 @@ public int3 wzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wwx { @@ -3085,6 +3596,7 @@ public int3 wwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wwy { @@ -3093,6 +3605,7 @@ public int3 wwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 wwz { @@ -3101,6 +3614,7 @@ public int3 wwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int3 www { @@ -3109,6 +3623,7 @@ public int3 www } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xx { @@ -3117,6 +3632,7 @@ public int2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xy { @@ -3127,6 +3643,7 @@ public int2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xz { @@ -3137,6 +3654,7 @@ public int2 xz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 xw { @@ -3147,6 +3665,7 @@ public int2 xw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yx { @@ -3157,6 +3676,7 @@ public int2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yy { @@ -3165,6 +3685,7 @@ public int2 yy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yz { @@ -3175,6 +3696,7 @@ public int2 yz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 yw { @@ -3185,6 +3707,7 @@ public int2 yw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 zx { @@ -3195,6 +3718,7 @@ public int2 zx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 zy { @@ -3205,6 +3729,7 @@ public int2 zy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 zz { @@ -3213,6 +3738,7 @@ public int2 zz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 zw { @@ -3223,6 +3749,7 @@ public int2 zw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 wx { @@ -3233,6 +3760,7 @@ public int2 wx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 wy { @@ -3243,6 +3771,7 @@ public int2 wy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 wz { @@ -3253,6 +3782,7 @@ public int2 wz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public int2 ww { @@ -3284,19 +3814,25 @@ unsafe public int this[int index] } /// Returns true if the int4 is equal to a given int4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } /// Returns true if the int4 is equal to a given int4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is int4 converted && Equals(converted); } /// Returns a hash code for the int4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the int4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -3304,6 +3840,9 @@ public override string ToString() } /// Returns a string representation of the int4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -3330,74 +3869,122 @@ public DebuggerProxy(int4 v) public static partial class math { /// Returns a int4 vector constructed from four int values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. + /// int4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(int x, int y, int z, int w) { return new int4(x, y, z, w); } /// Returns a int4 vector constructed from two int values and an int2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's zw components will be set to this value. + /// int4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(int x, int y, int2 zw) { return new int4(x, y, zw); } /// Returns a int4 vector constructed from an int value, an int2 vector and an int value. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// The constructed vector's w component will be set to this value. + /// int4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(int x, int2 yz, int w) { return new int4(x, yz, w); } /// Returns a int4 vector constructed from an int value and an int3 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yzw components will be set to this value. + /// int4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(int x, int3 yzw) { return new int4(x, yzw); } /// Returns a int4 vector constructed from an int2 vector and two int values. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. + /// int4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(int2 xy, int z, int w) { return new int4(xy, z, w); } /// Returns a int4 vector constructed from two int2 vectors. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's zw components will be set to this value. + /// int4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(int2 xy, int2 zw) { return new int4(xy, zw); } /// Returns a int4 vector constructed from an int3 vector and an int value. + /// The constructed vector's xyz components will be set to this value. + /// The constructed vector's w component will be set to this value. + /// int4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(int3 xyz, int w) { return new int4(xyz, w); } /// Returns a int4 vector constructed from an int4 vector. + /// The constructed vector's xyzw components will be set to this value. + /// int4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(int4 xyzw) { return new int4(xyzw); } /// Returns a int4 vector constructed from a single int value by assigning it to every component. + /// int to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(int v) { return new int4(v); } /// Returns a int4 vector constructed from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(bool v) { return new int4(v); } /// Return a int4 vector constructed from a bool4 vector by componentwise conversion. + /// bool4 to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(bool4 v) { return new int4(v); } /// Returns a int4 vector constructed from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(uint v) { return new int4(v); } /// Return a int4 vector constructed from a uint4 vector by componentwise conversion. + /// uint4 to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(uint4 v) { return new int4(v); } /// Returns a int4 vector constructed from a single float value by converting it to int and assigning it to every component. + /// float to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(float v) { return new int4(v); } /// Return a int4 vector constructed from a float4 vector by componentwise conversion. + /// float4 to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(float4 v) { return new int4(v); } /// Returns a int4 vector constructed from a single double value by converting it to int and assigning it to every component. + /// double to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(double v) { return new int4(v); } /// Return a int4 vector constructed from a double4 vector by componentwise conversion. + /// double4 to convert to int4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 int4(double4 v) { return new int4(v); } /// Returns a uint hash code of a int4 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(int4 v) { @@ -3409,6 +3996,8 @@ public static uint hash(int4 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(int4 v) { @@ -3416,40 +4005,62 @@ public static uint4 hashwide(int4 v) } /// Returns the result of specified shuffling of the components from two int4 vectors into an int value. + /// int4 to use as the left argument of the shuffle operation. + /// int4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting int. + /// int result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int shuffle(int4 a, int4 b, ShuffleComponent x) + public static int shuffle(int4 left, int4 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two int4 vectors into an int2 vector. + /// int4 to use as the left argument of the shuffle operation. + /// int4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting int2 x component. + /// The ShuffleComponent to use when setting the resulting int2 y component. + /// int2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 shuffle(int4 a, int4 b, ShuffleComponent x, ShuffleComponent y) + public static int2 shuffle(int4 left, int4 right, ShuffleComponent x, ShuffleComponent y) { return int2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two int4 vectors into an int3 vector. + /// int4 to use as the left argument of the shuffle operation. + /// int4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting int3 x component. + /// The ShuffleComponent to use when setting the resulting int3 y component. + /// The ShuffleComponent to use when setting the resulting int3 z component. + /// int3 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 shuffle(int4 a, int4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + public static int3 shuffle(int4 left, int4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return int3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two int4 vectors into an int4 vector. + /// int4 to use as the left argument of the shuffle operation. + /// int4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting int4 x component. + /// The ShuffleComponent to use when setting the resulting int4 y component. + /// The ShuffleComponent to use when setting the resulting int4 z component. + /// The ShuffleComponent to use when setting the resulting int4 w component. + /// int4 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 shuffle(int4 a, int4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + public static int4 shuffle(int4 left, int4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return int4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/int4x2.gen.cs b/src/Unity.Mathematics/int4x2.gen.cs index 51390127..0aaeec7b 100644 --- a/src/Unity.Mathematics/int4x2.gen.cs +++ b/src/Unity.Mathematics/int4x2.gen.cs @@ -14,17 +14,22 @@ namespace Unity.Mathematics { + /// A 4x2 matrix of ints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct int4x2 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public int4 c0; + /// Column 1 of the matrix. public int4 c1; /// int4x2 zero value. public static readonly int4x2 zero; /// Constructs a int4x2 matrix from two int4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x2(int4 c0, int4 c1) { @@ -33,6 +38,14 @@ public int4x2(int4 c0, int4 c1) } /// Constructs a int4x2 matrix from 8 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x2(int m00, int m01, int m10, int m11, @@ -44,6 +57,7 @@ public int4x2(int m00, int m01, } /// Constructs a int4x2 matrix from a single int value by assigning it to every component. + /// int to convert to int4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x2(int v) { @@ -52,6 +66,7 @@ public int4x2(int v) } /// Constructs a int4x2 matrix from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x2(bool v) { @@ -60,6 +75,7 @@ public int4x2(bool v) } /// Constructs a int4x2 matrix from a bool4x2 matrix by componentwise conversion. + /// bool4x2 to convert to int4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x2(bool4x2 v) { @@ -68,6 +84,7 @@ public int4x2(bool4x2 v) } /// Constructs a int4x2 matrix from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x2(uint v) { @@ -76,6 +93,7 @@ public int4x2(uint v) } /// Constructs a int4x2 matrix from a uint4x2 matrix by componentwise conversion. + /// uint4x2 to convert to int4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x2(uint4x2 v) { @@ -84,6 +102,7 @@ public int4x2(uint4x2 v) } /// Constructs a int4x2 matrix from a single float value by converting it to int and assigning it to every component. + /// float to convert to int4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x2(float v) { @@ -92,6 +111,7 @@ public int4x2(float v) } /// Constructs a int4x2 matrix from a float4x2 matrix by componentwise conversion. + /// float4x2 to convert to int4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x2(float4x2 v) { @@ -100,6 +120,7 @@ public int4x2(float4x2 v) } /// Constructs a int4x2 matrix from a single double value by converting it to int and assigning it to every component. + /// double to convert to int4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x2(double v) { @@ -108,6 +129,7 @@ public int4x2(double v) } /// Constructs a int4x2 matrix from a double4x2 matrix by componentwise conversion. + /// double4x2 to convert to int4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x2(double4x2 v) { @@ -117,253 +139,413 @@ public int4x2(double4x2 v) /// Implicitly converts a single int value to a int4x2 matrix by assigning it to every component. + /// int to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int4x2(int v) { return new int4x2(v); } /// Explicitly converts a single bool value to a int4x2 matrix by converting it to int and assigning it to every component. + /// bool to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x2(bool v) { return new int4x2(v); } /// Explicitly converts a bool4x2 matrix to a int4x2 matrix by componentwise conversion. + /// bool4x2 to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x2(bool4x2 v) { return new int4x2(v); } /// Explicitly converts a single uint value to a int4x2 matrix by converting it to int and assigning it to every component. + /// uint to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x2(uint v) { return new int4x2(v); } /// Explicitly converts a uint4x2 matrix to a int4x2 matrix by componentwise conversion. + /// uint4x2 to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x2(uint4x2 v) { return new int4x2(v); } /// Explicitly converts a single float value to a int4x2 matrix by converting it to int and assigning it to every component. + /// float to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x2(float v) { return new int4x2(v); } /// Explicitly converts a float4x2 matrix to a int4x2 matrix by componentwise conversion. + /// float4x2 to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x2(float4x2 v) { return new int4x2(v); } /// Explicitly converts a single double value to a int4x2 matrix by converting it to int and assigning it to every component. + /// double to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x2(double v) { return new int4x2(v); } /// Explicitly converts a double4x2 matrix to a int4x2 matrix by componentwise conversion. + /// double4x2 to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x2(double4x2 v) { return new int4x2(v); } /// Returns the result of a componentwise multiplication operation on two int4x2 matrices. + /// Left hand side int4x2 to use to compute componentwise multiplication. + /// Right hand side int4x2 to use to compute componentwise multiplication. + /// int4x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator * (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } /// Returns the result of a componentwise multiplication operation on an int4x2 matrix and an int value. + /// Left hand side int4x2 to use to compute componentwise multiplication. + /// Right hand side int to use to compute componentwise multiplication. + /// int4x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator * (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 * rhs, lhs.c1 * rhs); } /// Returns the result of a componentwise multiplication operation on an int value and an int4x2 matrix. + /// Left hand side int to use to compute componentwise multiplication. + /// Right hand side int4x2 to use to compute componentwise multiplication. + /// int4x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator * (int lhs, int4x2 rhs) { return new int4x2 (lhs * rhs.c0, lhs * rhs.c1); } /// Returns the result of a componentwise addition operation on two int4x2 matrices. + /// Left hand side int4x2 to use to compute componentwise addition. + /// Right hand side int4x2 to use to compute componentwise addition. + /// int4x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator + (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } /// Returns the result of a componentwise addition operation on an int4x2 matrix and an int value. + /// Left hand side int4x2 to use to compute componentwise addition. + /// Right hand side int to use to compute componentwise addition. + /// int4x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator + (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 + rhs, lhs.c1 + rhs); } /// Returns the result of a componentwise addition operation on an int value and an int4x2 matrix. + /// Left hand side int to use to compute componentwise addition. + /// Right hand side int4x2 to use to compute componentwise addition. + /// int4x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator + (int lhs, int4x2 rhs) { return new int4x2 (lhs + rhs.c0, lhs + rhs.c1); } /// Returns the result of a componentwise subtraction operation on two int4x2 matrices. + /// Left hand side int4x2 to use to compute componentwise subtraction. + /// Right hand side int4x2 to use to compute componentwise subtraction. + /// int4x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator - (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } /// Returns the result of a componentwise subtraction operation on an int4x2 matrix and an int value. + /// Left hand side int4x2 to use to compute componentwise subtraction. + /// Right hand side int to use to compute componentwise subtraction. + /// int4x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator - (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 - rhs, lhs.c1 - rhs); } /// Returns the result of a componentwise subtraction operation on an int value and an int4x2 matrix. + /// Left hand side int to use to compute componentwise subtraction. + /// Right hand side int4x2 to use to compute componentwise subtraction. + /// int4x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator - (int lhs, int4x2 rhs) { return new int4x2 (lhs - rhs.c0, lhs - rhs.c1); } /// Returns the result of a componentwise division operation on two int4x2 matrices. + /// Left hand side int4x2 to use to compute componentwise division. + /// Right hand side int4x2 to use to compute componentwise division. + /// int4x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator / (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } /// Returns the result of a componentwise division operation on an int4x2 matrix and an int value. + /// Left hand side int4x2 to use to compute componentwise division. + /// Right hand side int to use to compute componentwise division. + /// int4x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator / (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 / rhs, lhs.c1 / rhs); } /// Returns the result of a componentwise division operation on an int value and an int4x2 matrix. + /// Left hand side int to use to compute componentwise division. + /// Right hand side int4x2 to use to compute componentwise division. + /// int4x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator / (int lhs, int4x2 rhs) { return new int4x2 (lhs / rhs.c0, lhs / rhs.c1); } /// Returns the result of a componentwise modulus operation on two int4x2 matrices. + /// Left hand side int4x2 to use to compute componentwise modulus. + /// Right hand side int4x2 to use to compute componentwise modulus. + /// int4x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator % (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } /// Returns the result of a componentwise modulus operation on an int4x2 matrix and an int value. + /// Left hand side int4x2 to use to compute componentwise modulus. + /// Right hand side int to use to compute componentwise modulus. + /// int4x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator % (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 % rhs, lhs.c1 % rhs); } /// Returns the result of a componentwise modulus operation on an int value and an int4x2 matrix. + /// Left hand side int to use to compute componentwise modulus. + /// Right hand side int4x2 to use to compute componentwise modulus. + /// int4x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator % (int lhs, int4x2 rhs) { return new int4x2 (lhs % rhs.c0, lhs % rhs.c1); } /// Returns the result of a componentwise increment operation on an int4x2 matrix. + /// Value to use when computing the componentwise increment. + /// int4x2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator ++ (int4x2 val) { return new int4x2 (++val.c0, ++val.c1); } /// Returns the result of a componentwise decrement operation on an int4x2 matrix. + /// Value to use when computing the componentwise decrement. + /// int4x2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator -- (int4x2 val) { return new int4x2 (--val.c0, --val.c1); } /// Returns the result of a componentwise less than operation on two int4x2 matrices. + /// Left hand side int4x2 to use to compute componentwise less than. + /// Right hand side int4x2 to use to compute componentwise less than. + /// bool4x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator < (int4x2 lhs, int4x2 rhs) { return new bool4x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } /// Returns the result of a componentwise less than operation on an int4x2 matrix and an int value. + /// Left hand side int4x2 to use to compute componentwise less than. + /// Right hand side int to use to compute componentwise less than. + /// bool4x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator < (int4x2 lhs, int rhs) { return new bool4x2 (lhs.c0 < rhs, lhs.c1 < rhs); } /// Returns the result of a componentwise less than operation on an int value and an int4x2 matrix. + /// Left hand side int to use to compute componentwise less than. + /// Right hand side int4x2 to use to compute componentwise less than. + /// bool4x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator < (int lhs, int4x2 rhs) { return new bool4x2 (lhs < rhs.c0, lhs < rhs.c1); } /// Returns the result of a componentwise less or equal operation on two int4x2 matrices. + /// Left hand side int4x2 to use to compute componentwise less or equal. + /// Right hand side int4x2 to use to compute componentwise less or equal. + /// bool4x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator <= (int4x2 lhs, int4x2 rhs) { return new bool4x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } /// Returns the result of a componentwise less or equal operation on an int4x2 matrix and an int value. + /// Left hand side int4x2 to use to compute componentwise less or equal. + /// Right hand side int to use to compute componentwise less or equal. + /// bool4x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator <= (int4x2 lhs, int rhs) { return new bool4x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } /// Returns the result of a componentwise less or equal operation on an int value and an int4x2 matrix. + /// Left hand side int to use to compute componentwise less or equal. + /// Right hand side int4x2 to use to compute componentwise less or equal. + /// bool4x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator <= (int lhs, int4x2 rhs) { return new bool4x2 (lhs <= rhs.c0, lhs <= rhs.c1); } /// Returns the result of a componentwise greater than operation on two int4x2 matrices. + /// Left hand side int4x2 to use to compute componentwise greater than. + /// Right hand side int4x2 to use to compute componentwise greater than. + /// bool4x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator > (int4x2 lhs, int4x2 rhs) { return new bool4x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } /// Returns the result of a componentwise greater than operation on an int4x2 matrix and an int value. + /// Left hand side int4x2 to use to compute componentwise greater than. + /// Right hand side int to use to compute componentwise greater than. + /// bool4x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator > (int4x2 lhs, int rhs) { return new bool4x2 (lhs.c0 > rhs, lhs.c1 > rhs); } /// Returns the result of a componentwise greater than operation on an int value and an int4x2 matrix. + /// Left hand side int to use to compute componentwise greater than. + /// Right hand side int4x2 to use to compute componentwise greater than. + /// bool4x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator > (int lhs, int4x2 rhs) { return new bool4x2 (lhs > rhs.c0, lhs > rhs.c1); } /// Returns the result of a componentwise greater or equal operation on two int4x2 matrices. + /// Left hand side int4x2 to use to compute componentwise greater or equal. + /// Right hand side int4x2 to use to compute componentwise greater or equal. + /// bool4x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator >= (int4x2 lhs, int4x2 rhs) { return new bool4x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } /// Returns the result of a componentwise greater or equal operation on an int4x2 matrix and an int value. + /// Left hand side int4x2 to use to compute componentwise greater or equal. + /// Right hand side int to use to compute componentwise greater or equal. + /// bool4x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator >= (int4x2 lhs, int rhs) { return new bool4x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } /// Returns the result of a componentwise greater or equal operation on an int value and an int4x2 matrix. + /// Left hand side int to use to compute componentwise greater or equal. + /// Right hand side int4x2 to use to compute componentwise greater or equal. + /// bool4x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator >= (int lhs, int4x2 rhs) { return new bool4x2 (lhs >= rhs.c0, lhs >= rhs.c1); } /// Returns the result of a componentwise unary minus operation on an int4x2 matrix. + /// Value to use when computing the componentwise unary minus. + /// int4x2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator - (int4x2 val) { return new int4x2 (-val.c0, -val.c1); } /// Returns the result of a componentwise unary plus operation on an int4x2 matrix. + /// Value to use when computing the componentwise unary plus. + /// int4x2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator + (int4x2 val) { return new int4x2 (+val.c0, +val.c1); } /// Returns the result of a componentwise left shift operation on an int4x2 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator << (int4x2 x, int n) { return new int4x2 (x.c0 << n, x.c1 << n); } /// Returns the result of a componentwise right shift operation on an int4x2 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator >> (int4x2 x, int n) { return new int4x2 (x.c0 >> n, x.c1 >> n); } /// Returns the result of a componentwise equality operation on two int4x2 matrices. + /// Left hand side int4x2 to use to compute componentwise equality. + /// Right hand side int4x2 to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (int4x2 lhs, int4x2 rhs) { return new bool4x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on an int4x2 matrix and an int value. + /// Left hand side int4x2 to use to compute componentwise equality. + /// Right hand side int to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (int4x2 lhs, int rhs) { return new bool4x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on an int value and an int4x2 matrix. + /// Left hand side int to use to compute componentwise equality. + /// Right hand side int4x2 to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (int lhs, int4x2 rhs) { return new bool4x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two int4x2 matrices. + /// Left hand side int4x2 to use to compute componentwise not equal. + /// Right hand side int4x2 to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (int4x2 lhs, int4x2 rhs) { return new bool4x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on an int4x2 matrix and an int value. + /// Left hand side int4x2 to use to compute componentwise not equal. + /// Right hand side int to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (int4x2 lhs, int rhs) { return new bool4x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on an int value and an int4x2 matrix. + /// Left hand side int to use to compute componentwise not equal. + /// Right hand side int4x2 to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (int lhs, int4x2 rhs) { return new bool4x2 (lhs != rhs.c0, lhs != rhs.c1); } /// Returns the result of a componentwise bitwise not operation on an int4x2 matrix. + /// Value to use when computing the componentwise bitwise not. + /// int4x2 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator ~ (int4x2 val) { return new int4x2 (~val.c0, ~val.c1); } /// Returns the result of a componentwise bitwise and operation on two int4x2 matrices. + /// Left hand side int4x2 to use to compute componentwise bitwise and. + /// Right hand side int4x2 to use to compute componentwise bitwise and. + /// int4x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator & (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } /// Returns the result of a componentwise bitwise and operation on an int4x2 matrix and an int value. + /// Left hand side int4x2 to use to compute componentwise bitwise and. + /// Right hand side int to use to compute componentwise bitwise and. + /// int4x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator & (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 & rhs, lhs.c1 & rhs); } /// Returns the result of a componentwise bitwise and operation on an int value and an int4x2 matrix. + /// Left hand side int to use to compute componentwise bitwise and. + /// Right hand side int4x2 to use to compute componentwise bitwise and. + /// int4x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator & (int lhs, int4x2 rhs) { return new int4x2 (lhs & rhs.c0, lhs & rhs.c1); } /// Returns the result of a componentwise bitwise or operation on two int4x2 matrices. + /// Left hand side int4x2 to use to compute componentwise bitwise or. + /// Right hand side int4x2 to use to compute componentwise bitwise or. + /// int4x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator | (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } /// Returns the result of a componentwise bitwise or operation on an int4x2 matrix and an int value. + /// Left hand side int4x2 to use to compute componentwise bitwise or. + /// Right hand side int to use to compute componentwise bitwise or. + /// int4x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator | (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 | rhs, lhs.c1 | rhs); } /// Returns the result of a componentwise bitwise or operation on an int value and an int4x2 matrix. + /// Left hand side int to use to compute componentwise bitwise or. + /// Right hand side int4x2 to use to compute componentwise bitwise or. + /// int4x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator | (int lhs, int4x2 rhs) { return new int4x2 (lhs | rhs.c0, lhs | rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on two int4x2 matrices. + /// Left hand side int4x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side int4x2 to use to compute componentwise bitwise exclusive or. + /// int4x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator ^ (int4x2 lhs, int4x2 rhs) { return new int4x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on an int4x2 matrix and an int value. + /// Left hand side int4x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side int to use to compute componentwise bitwise exclusive or. + /// int4x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator ^ (int4x2 lhs, int rhs) { return new int4x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int4x2 matrix. + /// Left hand side int to use to compute componentwise bitwise exclusive or. + /// Right hand side int4x2 to use to compute componentwise bitwise exclusive or. + /// int4x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 operator ^ (int lhs, int4x2 rhs) { return new int4x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } @@ -383,19 +565,25 @@ unsafe public ref int4 this[int index] } /// Returns true if the int4x2 is equal to a given int4x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the int4x2 is equal to a given int4x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is int4x2 converted && Equals(converted); } /// Returns a hash code for the int4x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the int4x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -403,6 +591,9 @@ public override string ToString() } /// Returns a string representation of the int4x2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -414,10 +605,22 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a int4x2 matrix constructed from two int4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// int4x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 int4x2(int4 c0, int4 c1) { return new int4x2(c0, c1); } /// Returns a int4x2 matrix constructed from from 8 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// int4x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 int4x2(int m00, int m01, int m10, int m11, @@ -431,42 +634,62 @@ public static int4x2 int4x2(int m00, int m01, } /// Returns a int4x2 matrix constructed from a single int value by assigning it to every component. + /// int to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 int4x2(int v) { return new int4x2(v); } /// Returns a int4x2 matrix constructed from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 int4x2(bool v) { return new int4x2(v); } /// Return a int4x2 matrix constructed from a bool4x2 matrix by componentwise conversion. + /// bool4x2 to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 int4x2(bool4x2 v) { return new int4x2(v); } /// Returns a int4x2 matrix constructed from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 int4x2(uint v) { return new int4x2(v); } /// Return a int4x2 matrix constructed from a uint4x2 matrix by componentwise conversion. + /// uint4x2 to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 int4x2(uint4x2 v) { return new int4x2(v); } /// Returns a int4x2 matrix constructed from a single float value by converting it to int and assigning it to every component. + /// float to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 int4x2(float v) { return new int4x2(v); } /// Return a int4x2 matrix constructed from a float4x2 matrix by componentwise conversion. + /// float4x2 to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 int4x2(float4x2 v) { return new int4x2(v); } /// Returns a int4x2 matrix constructed from a single double value by converting it to int and assigning it to every component. + /// double to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 int4x2(double v) { return new int4x2(v); } /// Return a int4x2 matrix constructed from a double4x2 matrix by componentwise conversion. + /// double4x2 to convert to int4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 int4x2(double4x2 v) { return new int4x2(v); } /// Return the int2x4 transpose of a int4x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 transpose(int4x2 v) { @@ -475,7 +698,9 @@ public static int2x4 transpose(int4x2 v) v.c1.x, v.c1.y, v.c1.z, v.c1.w); } - /// Returns a uint hash code of a int4x2 vector. + /// Returns a uint hash code of a int4x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(int4x2 v) { @@ -484,10 +709,12 @@ public static uint hash(int4x2 v) } /// - /// Returns a uint4 vector hash code of a int4x2 vector. + /// Returns a uint4 vector hash code of a int4x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(int4x2 v) { diff --git a/src/Unity.Mathematics/int4x3.gen.cs b/src/Unity.Mathematics/int4x3.gen.cs index c22f21f2..0ab88040 100644 --- a/src/Unity.Mathematics/int4x3.gen.cs +++ b/src/Unity.Mathematics/int4x3.gen.cs @@ -14,18 +14,25 @@ namespace Unity.Mathematics { + /// A 4x3 matrix of ints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct int4x3 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public int4 c0; + /// Column 1 of the matrix. public int4 c1; + /// Column 2 of the matrix. public int4 c2; /// int4x3 zero value. public static readonly int4x3 zero; /// Constructs a int4x3 matrix from three int4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x3(int4 c0, int4 c1, int4 c2) { @@ -35,6 +42,18 @@ public int4x3(int4 c0, int4 c1, int4 c2) } /// Constructs a int4x3 matrix from 12 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x3(int m00, int m01, int m02, int m10, int m11, int m12, @@ -47,6 +66,7 @@ public int4x3(int m00, int m01, int m02, } /// Constructs a int4x3 matrix from a single int value by assigning it to every component. + /// int to convert to int4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x3(int v) { @@ -56,6 +76,7 @@ public int4x3(int v) } /// Constructs a int4x3 matrix from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x3(bool v) { @@ -65,6 +86,7 @@ public int4x3(bool v) } /// Constructs a int4x3 matrix from a bool4x3 matrix by componentwise conversion. + /// bool4x3 to convert to int4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x3(bool4x3 v) { @@ -74,6 +96,7 @@ public int4x3(bool4x3 v) } /// Constructs a int4x3 matrix from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x3(uint v) { @@ -83,6 +106,7 @@ public int4x3(uint v) } /// Constructs a int4x3 matrix from a uint4x3 matrix by componentwise conversion. + /// uint4x3 to convert to int4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x3(uint4x3 v) { @@ -92,6 +116,7 @@ public int4x3(uint4x3 v) } /// Constructs a int4x3 matrix from a single float value by converting it to int and assigning it to every component. + /// float to convert to int4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x3(float v) { @@ -101,6 +126,7 @@ public int4x3(float v) } /// Constructs a int4x3 matrix from a float4x3 matrix by componentwise conversion. + /// float4x3 to convert to int4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x3(float4x3 v) { @@ -110,6 +136,7 @@ public int4x3(float4x3 v) } /// Constructs a int4x3 matrix from a single double value by converting it to int and assigning it to every component. + /// double to convert to int4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x3(double v) { @@ -119,6 +146,7 @@ public int4x3(double v) } /// Constructs a int4x3 matrix from a double4x3 matrix by componentwise conversion. + /// double4x3 to convert to int4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x3(double4x3 v) { @@ -129,253 +157,413 @@ public int4x3(double4x3 v) /// Implicitly converts a single int value to a int4x3 matrix by assigning it to every component. + /// int to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int4x3(int v) { return new int4x3(v); } /// Explicitly converts a single bool value to a int4x3 matrix by converting it to int and assigning it to every component. + /// bool to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x3(bool v) { return new int4x3(v); } /// Explicitly converts a bool4x3 matrix to a int4x3 matrix by componentwise conversion. + /// bool4x3 to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x3(bool4x3 v) { return new int4x3(v); } /// Explicitly converts a single uint value to a int4x3 matrix by converting it to int and assigning it to every component. + /// uint to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x3(uint v) { return new int4x3(v); } /// Explicitly converts a uint4x3 matrix to a int4x3 matrix by componentwise conversion. + /// uint4x3 to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x3(uint4x3 v) { return new int4x3(v); } /// Explicitly converts a single float value to a int4x3 matrix by converting it to int and assigning it to every component. + /// float to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x3(float v) { return new int4x3(v); } /// Explicitly converts a float4x3 matrix to a int4x3 matrix by componentwise conversion. + /// float4x3 to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x3(float4x3 v) { return new int4x3(v); } /// Explicitly converts a single double value to a int4x3 matrix by converting it to int and assigning it to every component. + /// double to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x3(double v) { return new int4x3(v); } /// Explicitly converts a double4x3 matrix to a int4x3 matrix by componentwise conversion. + /// double4x3 to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x3(double4x3 v) { return new int4x3(v); } /// Returns the result of a componentwise multiplication operation on two int4x3 matrices. + /// Left hand side int4x3 to use to compute componentwise multiplication. + /// Right hand side int4x3 to use to compute componentwise multiplication. + /// int4x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator * (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } /// Returns the result of a componentwise multiplication operation on an int4x3 matrix and an int value. + /// Left hand side int4x3 to use to compute componentwise multiplication. + /// Right hand side int to use to compute componentwise multiplication. + /// int4x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator * (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } /// Returns the result of a componentwise multiplication operation on an int value and an int4x3 matrix. + /// Left hand side int to use to compute componentwise multiplication. + /// Right hand side int4x3 to use to compute componentwise multiplication. + /// int4x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator * (int lhs, int4x3 rhs) { return new int4x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } /// Returns the result of a componentwise addition operation on two int4x3 matrices. + /// Left hand side int4x3 to use to compute componentwise addition. + /// Right hand side int4x3 to use to compute componentwise addition. + /// int4x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator + (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } /// Returns the result of a componentwise addition operation on an int4x3 matrix and an int value. + /// Left hand side int4x3 to use to compute componentwise addition. + /// Right hand side int to use to compute componentwise addition. + /// int4x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator + (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } /// Returns the result of a componentwise addition operation on an int value and an int4x3 matrix. + /// Left hand side int to use to compute componentwise addition. + /// Right hand side int4x3 to use to compute componentwise addition. + /// int4x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator + (int lhs, int4x3 rhs) { return new int4x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } /// Returns the result of a componentwise subtraction operation on two int4x3 matrices. + /// Left hand side int4x3 to use to compute componentwise subtraction. + /// Right hand side int4x3 to use to compute componentwise subtraction. + /// int4x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator - (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } /// Returns the result of a componentwise subtraction operation on an int4x3 matrix and an int value. + /// Left hand side int4x3 to use to compute componentwise subtraction. + /// Right hand side int to use to compute componentwise subtraction. + /// int4x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator - (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } /// Returns the result of a componentwise subtraction operation on an int value and an int4x3 matrix. + /// Left hand side int to use to compute componentwise subtraction. + /// Right hand side int4x3 to use to compute componentwise subtraction. + /// int4x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator - (int lhs, int4x3 rhs) { return new int4x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } /// Returns the result of a componentwise division operation on two int4x3 matrices. + /// Left hand side int4x3 to use to compute componentwise division. + /// Right hand side int4x3 to use to compute componentwise division. + /// int4x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator / (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } /// Returns the result of a componentwise division operation on an int4x3 matrix and an int value. + /// Left hand side int4x3 to use to compute componentwise division. + /// Right hand side int to use to compute componentwise division. + /// int4x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator / (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } /// Returns the result of a componentwise division operation on an int value and an int4x3 matrix. + /// Left hand side int to use to compute componentwise division. + /// Right hand side int4x3 to use to compute componentwise division. + /// int4x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator / (int lhs, int4x3 rhs) { return new int4x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } /// Returns the result of a componentwise modulus operation on two int4x3 matrices. + /// Left hand side int4x3 to use to compute componentwise modulus. + /// Right hand side int4x3 to use to compute componentwise modulus. + /// int4x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator % (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } /// Returns the result of a componentwise modulus operation on an int4x3 matrix and an int value. + /// Left hand side int4x3 to use to compute componentwise modulus. + /// Right hand side int to use to compute componentwise modulus. + /// int4x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator % (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } /// Returns the result of a componentwise modulus operation on an int value and an int4x3 matrix. + /// Left hand side int to use to compute componentwise modulus. + /// Right hand side int4x3 to use to compute componentwise modulus. + /// int4x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator % (int lhs, int4x3 rhs) { return new int4x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } /// Returns the result of a componentwise increment operation on an int4x3 matrix. + /// Value to use when computing the componentwise increment. + /// int4x3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator ++ (int4x3 val) { return new int4x3 (++val.c0, ++val.c1, ++val.c2); } /// Returns the result of a componentwise decrement operation on an int4x3 matrix. + /// Value to use when computing the componentwise decrement. + /// int4x3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator -- (int4x3 val) { return new int4x3 (--val.c0, --val.c1, --val.c2); } /// Returns the result of a componentwise less than operation on two int4x3 matrices. + /// Left hand side int4x3 to use to compute componentwise less than. + /// Right hand side int4x3 to use to compute componentwise less than. + /// bool4x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator < (int4x3 lhs, int4x3 rhs) { return new bool4x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } /// Returns the result of a componentwise less than operation on an int4x3 matrix and an int value. + /// Left hand side int4x3 to use to compute componentwise less than. + /// Right hand side int to use to compute componentwise less than. + /// bool4x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator < (int4x3 lhs, int rhs) { return new bool4x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } /// Returns the result of a componentwise less than operation on an int value and an int4x3 matrix. + /// Left hand side int to use to compute componentwise less than. + /// Right hand side int4x3 to use to compute componentwise less than. + /// bool4x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator < (int lhs, int4x3 rhs) { return new bool4x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } /// Returns the result of a componentwise less or equal operation on two int4x3 matrices. + /// Left hand side int4x3 to use to compute componentwise less or equal. + /// Right hand side int4x3 to use to compute componentwise less or equal. + /// bool4x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator <= (int4x3 lhs, int4x3 rhs) { return new bool4x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } /// Returns the result of a componentwise less or equal operation on an int4x3 matrix and an int value. + /// Left hand side int4x3 to use to compute componentwise less or equal. + /// Right hand side int to use to compute componentwise less or equal. + /// bool4x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator <= (int4x3 lhs, int rhs) { return new bool4x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } /// Returns the result of a componentwise less or equal operation on an int value and an int4x3 matrix. + /// Left hand side int to use to compute componentwise less or equal. + /// Right hand side int4x3 to use to compute componentwise less or equal. + /// bool4x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator <= (int lhs, int4x3 rhs) { return new bool4x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } /// Returns the result of a componentwise greater than operation on two int4x3 matrices. + /// Left hand side int4x3 to use to compute componentwise greater than. + /// Right hand side int4x3 to use to compute componentwise greater than. + /// bool4x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator > (int4x3 lhs, int4x3 rhs) { return new bool4x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } /// Returns the result of a componentwise greater than operation on an int4x3 matrix and an int value. + /// Left hand side int4x3 to use to compute componentwise greater than. + /// Right hand side int to use to compute componentwise greater than. + /// bool4x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator > (int4x3 lhs, int rhs) { return new bool4x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } /// Returns the result of a componentwise greater than operation on an int value and an int4x3 matrix. + /// Left hand side int to use to compute componentwise greater than. + /// Right hand side int4x3 to use to compute componentwise greater than. + /// bool4x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator > (int lhs, int4x3 rhs) { return new bool4x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } /// Returns the result of a componentwise greater or equal operation on two int4x3 matrices. + /// Left hand side int4x3 to use to compute componentwise greater or equal. + /// Right hand side int4x3 to use to compute componentwise greater or equal. + /// bool4x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator >= (int4x3 lhs, int4x3 rhs) { return new bool4x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } /// Returns the result of a componentwise greater or equal operation on an int4x3 matrix and an int value. + /// Left hand side int4x3 to use to compute componentwise greater or equal. + /// Right hand side int to use to compute componentwise greater or equal. + /// bool4x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator >= (int4x3 lhs, int rhs) { return new bool4x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } /// Returns the result of a componentwise greater or equal operation on an int value and an int4x3 matrix. + /// Left hand side int to use to compute componentwise greater or equal. + /// Right hand side int4x3 to use to compute componentwise greater or equal. + /// bool4x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator >= (int lhs, int4x3 rhs) { return new bool4x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } /// Returns the result of a componentwise unary minus operation on an int4x3 matrix. + /// Value to use when computing the componentwise unary minus. + /// int4x3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator - (int4x3 val) { return new int4x3 (-val.c0, -val.c1, -val.c2); } /// Returns the result of a componentwise unary plus operation on an int4x3 matrix. + /// Value to use when computing the componentwise unary plus. + /// int4x3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator + (int4x3 val) { return new int4x3 (+val.c0, +val.c1, +val.c2); } /// Returns the result of a componentwise left shift operation on an int4x3 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator << (int4x3 x, int n) { return new int4x3 (x.c0 << n, x.c1 << n, x.c2 << n); } /// Returns the result of a componentwise right shift operation on an int4x3 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator >> (int4x3 x, int n) { return new int4x3 (x.c0 >> n, x.c1 >> n, x.c2 >> n); } /// Returns the result of a componentwise equality operation on two int4x3 matrices. + /// Left hand side int4x3 to use to compute componentwise equality. + /// Right hand side int4x3 to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (int4x3 lhs, int4x3 rhs) { return new bool4x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on an int4x3 matrix and an int value. + /// Left hand side int4x3 to use to compute componentwise equality. + /// Right hand side int to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (int4x3 lhs, int rhs) { return new bool4x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on an int value and an int4x3 matrix. + /// Left hand side int to use to compute componentwise equality. + /// Right hand side int4x3 to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (int lhs, int4x3 rhs) { return new bool4x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two int4x3 matrices. + /// Left hand side int4x3 to use to compute componentwise not equal. + /// Right hand side int4x3 to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (int4x3 lhs, int4x3 rhs) { return new bool4x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on an int4x3 matrix and an int value. + /// Left hand side int4x3 to use to compute componentwise not equal. + /// Right hand side int to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (int4x3 lhs, int rhs) { return new bool4x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on an int value and an int4x3 matrix. + /// Left hand side int to use to compute componentwise not equal. + /// Right hand side int4x3 to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (int lhs, int4x3 rhs) { return new bool4x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } /// Returns the result of a componentwise bitwise not operation on an int4x3 matrix. + /// Value to use when computing the componentwise bitwise not. + /// int4x3 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator ~ (int4x3 val) { return new int4x3 (~val.c0, ~val.c1, ~val.c2); } /// Returns the result of a componentwise bitwise and operation on two int4x3 matrices. + /// Left hand side int4x3 to use to compute componentwise bitwise and. + /// Right hand side int4x3 to use to compute componentwise bitwise and. + /// int4x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator & (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } /// Returns the result of a componentwise bitwise and operation on an int4x3 matrix and an int value. + /// Left hand side int4x3 to use to compute componentwise bitwise and. + /// Right hand side int to use to compute componentwise bitwise and. + /// int4x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator & (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } /// Returns the result of a componentwise bitwise and operation on an int value and an int4x3 matrix. + /// Left hand side int to use to compute componentwise bitwise and. + /// Right hand side int4x3 to use to compute componentwise bitwise and. + /// int4x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator & (int lhs, int4x3 rhs) { return new int4x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } /// Returns the result of a componentwise bitwise or operation on two int4x3 matrices. + /// Left hand side int4x3 to use to compute componentwise bitwise or. + /// Right hand side int4x3 to use to compute componentwise bitwise or. + /// int4x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator | (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } /// Returns the result of a componentwise bitwise or operation on an int4x3 matrix and an int value. + /// Left hand side int4x3 to use to compute componentwise bitwise or. + /// Right hand side int to use to compute componentwise bitwise or. + /// int4x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator | (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } /// Returns the result of a componentwise bitwise or operation on an int value and an int4x3 matrix. + /// Left hand side int to use to compute componentwise bitwise or. + /// Right hand side int4x3 to use to compute componentwise bitwise or. + /// int4x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator | (int lhs, int4x3 rhs) { return new int4x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on two int4x3 matrices. + /// Left hand side int4x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side int4x3 to use to compute componentwise bitwise exclusive or. + /// int4x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator ^ (int4x3 lhs, int4x3 rhs) { return new int4x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on an int4x3 matrix and an int value. + /// Left hand side int4x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side int to use to compute componentwise bitwise exclusive or. + /// int4x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator ^ (int4x3 lhs, int rhs) { return new int4x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int4x3 matrix. + /// Left hand side int to use to compute componentwise bitwise exclusive or. + /// Right hand side int4x3 to use to compute componentwise bitwise exclusive or. + /// int4x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 operator ^ (int lhs, int4x3 rhs) { return new int4x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } @@ -395,19 +583,25 @@ unsafe public ref int4 this[int index] } /// Returns true if the int4x3 is equal to a given int4x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the int4x3 is equal to a given int4x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is int4x3 converted && Equals(converted); } /// Returns a hash code for the int4x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the int4x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -415,6 +609,9 @@ public override string ToString() } /// Returns a string representation of the int4x3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -426,10 +623,27 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a int4x3 matrix constructed from three int4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// int4x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 int4x3(int4 c0, int4 c1, int4 c2) { return new int4x3(c0, c1, c2); } /// Returns a int4x3 matrix constructed from from 12 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// int4x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 int4x3(int m00, int m01, int m02, int m10, int m11, int m12, @@ -443,42 +657,62 @@ public static int4x3 int4x3(int m00, int m01, int m02, } /// Returns a int4x3 matrix constructed from a single int value by assigning it to every component. + /// int to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 int4x3(int v) { return new int4x3(v); } /// Returns a int4x3 matrix constructed from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 int4x3(bool v) { return new int4x3(v); } /// Return a int4x3 matrix constructed from a bool4x3 matrix by componentwise conversion. + /// bool4x3 to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 int4x3(bool4x3 v) { return new int4x3(v); } /// Returns a int4x3 matrix constructed from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 int4x3(uint v) { return new int4x3(v); } /// Return a int4x3 matrix constructed from a uint4x3 matrix by componentwise conversion. + /// uint4x3 to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 int4x3(uint4x3 v) { return new int4x3(v); } /// Returns a int4x3 matrix constructed from a single float value by converting it to int and assigning it to every component. + /// float to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 int4x3(float v) { return new int4x3(v); } /// Return a int4x3 matrix constructed from a float4x3 matrix by componentwise conversion. + /// float4x3 to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 int4x3(float4x3 v) { return new int4x3(v); } /// Returns a int4x3 matrix constructed from a single double value by converting it to int and assigning it to every component. + /// double to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 int4x3(double v) { return new int4x3(v); } /// Return a int4x3 matrix constructed from a double4x3 matrix by componentwise conversion. + /// double4x3 to convert to int4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 int4x3(double4x3 v) { return new int4x3(v); } /// Return the int3x4 transpose of a int4x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 transpose(int4x3 v) { @@ -488,7 +722,9 @@ public static int3x4 transpose(int4x3 v) v.c2.x, v.c2.y, v.c2.z, v.c2.w); } - /// Returns a uint hash code of a int4x3 vector. + /// Returns a uint hash code of a int4x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(int4x3 v) { @@ -498,10 +734,12 @@ public static uint hash(int4x3 v) } /// - /// Returns a uint4 vector hash code of a int4x3 vector. + /// Returns a uint4 vector hash code of a int4x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(int4x3 v) { diff --git a/src/Unity.Mathematics/int4x4.gen.cs b/src/Unity.Mathematics/int4x4.gen.cs index 856197ab..d225c3df 100644 --- a/src/Unity.Mathematics/int4x4.gen.cs +++ b/src/Unity.Mathematics/int4x4.gen.cs @@ -14,13 +14,18 @@ namespace Unity.Mathematics { + /// A 4x4 matrix of ints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct int4x4 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public int4 c0; + /// Column 1 of the matrix. public int4 c1; + /// Column 2 of the matrix. public int4 c2; + /// Column 3 of the matrix. public int4 c3; /// int4x4 identity transform. @@ -30,6 +35,10 @@ public partial struct int4x4 : System.IEquatable, IFormattable public static readonly int4x4 zero; /// Constructs a int4x4 matrix from four int4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x4(int4 c0, int4 c1, int4 c2, int4 c3) { @@ -40,6 +49,22 @@ public int4x4(int4 c0, int4 c1, int4 c2, int4 c3) } /// Constructs a int4x4 matrix from 16 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// The matrix at row 3, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x4(int m00, int m01, int m02, int m03, int m10, int m11, int m12, int m13, @@ -53,6 +78,7 @@ public int4x4(int m00, int m01, int m02, int m03, } /// Constructs a int4x4 matrix from a single int value by assigning it to every component. + /// int to convert to int4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x4(int v) { @@ -63,6 +89,7 @@ public int4x4(int v) } /// Constructs a int4x4 matrix from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x4(bool v) { @@ -73,6 +100,7 @@ public int4x4(bool v) } /// Constructs a int4x4 matrix from a bool4x4 matrix by componentwise conversion. + /// bool4x4 to convert to int4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x4(bool4x4 v) { @@ -83,6 +111,7 @@ public int4x4(bool4x4 v) } /// Constructs a int4x4 matrix from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x4(uint v) { @@ -93,6 +122,7 @@ public int4x4(uint v) } /// Constructs a int4x4 matrix from a uint4x4 matrix by componentwise conversion. + /// uint4x4 to convert to int4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x4(uint4x4 v) { @@ -103,6 +133,7 @@ public int4x4(uint4x4 v) } /// Constructs a int4x4 matrix from a single float value by converting it to int and assigning it to every component. + /// float to convert to int4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x4(float v) { @@ -113,6 +144,7 @@ public int4x4(float v) } /// Constructs a int4x4 matrix from a float4x4 matrix by componentwise conversion. + /// float4x4 to convert to int4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x4(float4x4 v) { @@ -123,6 +155,7 @@ public int4x4(float4x4 v) } /// Constructs a int4x4 matrix from a single double value by converting it to int and assigning it to every component. + /// double to convert to int4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x4(double v) { @@ -133,6 +166,7 @@ public int4x4(double v) } /// Constructs a int4x4 matrix from a double4x4 matrix by componentwise conversion. + /// double4x4 to convert to int4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4x4(double4x4 v) { @@ -144,253 +178,413 @@ public int4x4(double4x4 v) /// Implicitly converts a single int value to a int4x4 matrix by assigning it to every component. + /// int to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator int4x4(int v) { return new int4x4(v); } /// Explicitly converts a single bool value to a int4x4 matrix by converting it to int and assigning it to every component. + /// bool to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x4(bool v) { return new int4x4(v); } /// Explicitly converts a bool4x4 matrix to a int4x4 matrix by componentwise conversion. + /// bool4x4 to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x4(bool4x4 v) { return new int4x4(v); } /// Explicitly converts a single uint value to a int4x4 matrix by converting it to int and assigning it to every component. + /// uint to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x4(uint v) { return new int4x4(v); } /// Explicitly converts a uint4x4 matrix to a int4x4 matrix by componentwise conversion. + /// uint4x4 to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x4(uint4x4 v) { return new int4x4(v); } /// Explicitly converts a single float value to a int4x4 matrix by converting it to int and assigning it to every component. + /// float to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x4(float v) { return new int4x4(v); } /// Explicitly converts a float4x4 matrix to a int4x4 matrix by componentwise conversion. + /// float4x4 to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x4(float4x4 v) { return new int4x4(v); } /// Explicitly converts a single double value to a int4x4 matrix by converting it to int and assigning it to every component. + /// double to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x4(double v) { return new int4x4(v); } /// Explicitly converts a double4x4 matrix to a int4x4 matrix by componentwise conversion. + /// double4x4 to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator int4x4(double4x4 v) { return new int4x4(v); } /// Returns the result of a componentwise multiplication operation on two int4x4 matrices. + /// Left hand side int4x4 to use to compute componentwise multiplication. + /// Right hand side int4x4 to use to compute componentwise multiplication. + /// int4x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator * (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } /// Returns the result of a componentwise multiplication operation on an int4x4 matrix and an int value. + /// Left hand side int4x4 to use to compute componentwise multiplication. + /// Right hand side int to use to compute componentwise multiplication. + /// int4x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator * (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } /// Returns the result of a componentwise multiplication operation on an int value and an int4x4 matrix. + /// Left hand side int to use to compute componentwise multiplication. + /// Right hand side int4x4 to use to compute componentwise multiplication. + /// int4x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator * (int lhs, int4x4 rhs) { return new int4x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } /// Returns the result of a componentwise addition operation on two int4x4 matrices. + /// Left hand side int4x4 to use to compute componentwise addition. + /// Right hand side int4x4 to use to compute componentwise addition. + /// int4x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator + (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } /// Returns the result of a componentwise addition operation on an int4x4 matrix and an int value. + /// Left hand side int4x4 to use to compute componentwise addition. + /// Right hand side int to use to compute componentwise addition. + /// int4x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator + (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } /// Returns the result of a componentwise addition operation on an int value and an int4x4 matrix. + /// Left hand side int to use to compute componentwise addition. + /// Right hand side int4x4 to use to compute componentwise addition. + /// int4x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator + (int lhs, int4x4 rhs) { return new int4x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } /// Returns the result of a componentwise subtraction operation on two int4x4 matrices. + /// Left hand side int4x4 to use to compute componentwise subtraction. + /// Right hand side int4x4 to use to compute componentwise subtraction. + /// int4x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator - (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } /// Returns the result of a componentwise subtraction operation on an int4x4 matrix and an int value. + /// Left hand side int4x4 to use to compute componentwise subtraction. + /// Right hand side int to use to compute componentwise subtraction. + /// int4x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator - (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } /// Returns the result of a componentwise subtraction operation on an int value and an int4x4 matrix. + /// Left hand side int to use to compute componentwise subtraction. + /// Right hand side int4x4 to use to compute componentwise subtraction. + /// int4x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator - (int lhs, int4x4 rhs) { return new int4x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } /// Returns the result of a componentwise division operation on two int4x4 matrices. + /// Left hand side int4x4 to use to compute componentwise division. + /// Right hand side int4x4 to use to compute componentwise division. + /// int4x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator / (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } /// Returns the result of a componentwise division operation on an int4x4 matrix and an int value. + /// Left hand side int4x4 to use to compute componentwise division. + /// Right hand side int to use to compute componentwise division. + /// int4x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator / (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } /// Returns the result of a componentwise division operation on an int value and an int4x4 matrix. + /// Left hand side int to use to compute componentwise division. + /// Right hand side int4x4 to use to compute componentwise division. + /// int4x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator / (int lhs, int4x4 rhs) { return new int4x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } /// Returns the result of a componentwise modulus operation on two int4x4 matrices. + /// Left hand side int4x4 to use to compute componentwise modulus. + /// Right hand side int4x4 to use to compute componentwise modulus. + /// int4x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator % (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } /// Returns the result of a componentwise modulus operation on an int4x4 matrix and an int value. + /// Left hand side int4x4 to use to compute componentwise modulus. + /// Right hand side int to use to compute componentwise modulus. + /// int4x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator % (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } /// Returns the result of a componentwise modulus operation on an int value and an int4x4 matrix. + /// Left hand side int to use to compute componentwise modulus. + /// Right hand side int4x4 to use to compute componentwise modulus. + /// int4x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator % (int lhs, int4x4 rhs) { return new int4x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } /// Returns the result of a componentwise increment operation on an int4x4 matrix. + /// Value to use when computing the componentwise increment. + /// int4x4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator ++ (int4x4 val) { return new int4x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } /// Returns the result of a componentwise decrement operation on an int4x4 matrix. + /// Value to use when computing the componentwise decrement. + /// int4x4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator -- (int4x4 val) { return new int4x4 (--val.c0, --val.c1, --val.c2, --val.c3); } /// Returns the result of a componentwise less than operation on two int4x4 matrices. + /// Left hand side int4x4 to use to compute componentwise less than. + /// Right hand side int4x4 to use to compute componentwise less than. + /// bool4x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator < (int4x4 lhs, int4x4 rhs) { return new bool4x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } /// Returns the result of a componentwise less than operation on an int4x4 matrix and an int value. + /// Left hand side int4x4 to use to compute componentwise less than. + /// Right hand side int to use to compute componentwise less than. + /// bool4x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator < (int4x4 lhs, int rhs) { return new bool4x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } /// Returns the result of a componentwise less than operation on an int value and an int4x4 matrix. + /// Left hand side int to use to compute componentwise less than. + /// Right hand side int4x4 to use to compute componentwise less than. + /// bool4x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator < (int lhs, int4x4 rhs) { return new bool4x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } /// Returns the result of a componentwise less or equal operation on two int4x4 matrices. + /// Left hand side int4x4 to use to compute componentwise less or equal. + /// Right hand side int4x4 to use to compute componentwise less or equal. + /// bool4x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator <= (int4x4 lhs, int4x4 rhs) { return new bool4x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } /// Returns the result of a componentwise less or equal operation on an int4x4 matrix and an int value. + /// Left hand side int4x4 to use to compute componentwise less or equal. + /// Right hand side int to use to compute componentwise less or equal. + /// bool4x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator <= (int4x4 lhs, int rhs) { return new bool4x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } /// Returns the result of a componentwise less or equal operation on an int value and an int4x4 matrix. + /// Left hand side int to use to compute componentwise less or equal. + /// Right hand side int4x4 to use to compute componentwise less or equal. + /// bool4x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator <= (int lhs, int4x4 rhs) { return new bool4x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } /// Returns the result of a componentwise greater than operation on two int4x4 matrices. + /// Left hand side int4x4 to use to compute componentwise greater than. + /// Right hand side int4x4 to use to compute componentwise greater than. + /// bool4x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator > (int4x4 lhs, int4x4 rhs) { return new bool4x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } /// Returns the result of a componentwise greater than operation on an int4x4 matrix and an int value. + /// Left hand side int4x4 to use to compute componentwise greater than. + /// Right hand side int to use to compute componentwise greater than. + /// bool4x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator > (int4x4 lhs, int rhs) { return new bool4x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } /// Returns the result of a componentwise greater than operation on an int value and an int4x4 matrix. + /// Left hand side int to use to compute componentwise greater than. + /// Right hand side int4x4 to use to compute componentwise greater than. + /// bool4x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator > (int lhs, int4x4 rhs) { return new bool4x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } /// Returns the result of a componentwise greater or equal operation on two int4x4 matrices. + /// Left hand side int4x4 to use to compute componentwise greater or equal. + /// Right hand side int4x4 to use to compute componentwise greater or equal. + /// bool4x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator >= (int4x4 lhs, int4x4 rhs) { return new bool4x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } /// Returns the result of a componentwise greater or equal operation on an int4x4 matrix and an int value. + /// Left hand side int4x4 to use to compute componentwise greater or equal. + /// Right hand side int to use to compute componentwise greater or equal. + /// bool4x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator >= (int4x4 lhs, int rhs) { return new bool4x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } /// Returns the result of a componentwise greater or equal operation on an int value and an int4x4 matrix. + /// Left hand side int to use to compute componentwise greater or equal. + /// Right hand side int4x4 to use to compute componentwise greater or equal. + /// bool4x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator >= (int lhs, int4x4 rhs) { return new bool4x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } /// Returns the result of a componentwise unary minus operation on an int4x4 matrix. + /// Value to use when computing the componentwise unary minus. + /// int4x4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator - (int4x4 val) { return new int4x4 (-val.c0, -val.c1, -val.c2, -val.c3); } /// Returns the result of a componentwise unary plus operation on an int4x4 matrix. + /// Value to use when computing the componentwise unary plus. + /// int4x4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator + (int4x4 val) { return new int4x4 (+val.c0, +val.c1, +val.c2, +val.c3); } /// Returns the result of a componentwise left shift operation on an int4x4 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator << (int4x4 x, int n) { return new int4x4 (x.c0 << n, x.c1 << n, x.c2 << n, x.c3 << n); } /// Returns the result of a componentwise right shift operation on an int4x4 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator >> (int4x4 x, int n) { return new int4x4 (x.c0 >> n, x.c1 >> n, x.c2 >> n, x.c3 >> n); } /// Returns the result of a componentwise equality operation on two int4x4 matrices. + /// Left hand side int4x4 to use to compute componentwise equality. + /// Right hand side int4x4 to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (int4x4 lhs, int4x4 rhs) { return new bool4x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on an int4x4 matrix and an int value. + /// Left hand side int4x4 to use to compute componentwise equality. + /// Right hand side int to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (int4x4 lhs, int rhs) { return new bool4x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on an int value and an int4x4 matrix. + /// Left hand side int to use to compute componentwise equality. + /// Right hand side int4x4 to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (int lhs, int4x4 rhs) { return new bool4x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two int4x4 matrices. + /// Left hand side int4x4 to use to compute componentwise not equal. + /// Right hand side int4x4 to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (int4x4 lhs, int4x4 rhs) { return new bool4x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on an int4x4 matrix and an int value. + /// Left hand side int4x4 to use to compute componentwise not equal. + /// Right hand side int to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (int4x4 lhs, int rhs) { return new bool4x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on an int value and an int4x4 matrix. + /// Left hand side int to use to compute componentwise not equal. + /// Right hand side int4x4 to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (int lhs, int4x4 rhs) { return new bool4x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } /// Returns the result of a componentwise bitwise not operation on an int4x4 matrix. + /// Value to use when computing the componentwise bitwise not. + /// int4x4 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator ~ (int4x4 val) { return new int4x4 (~val.c0, ~val.c1, ~val.c2, ~val.c3); } /// Returns the result of a componentwise bitwise and operation on two int4x4 matrices. + /// Left hand side int4x4 to use to compute componentwise bitwise and. + /// Right hand side int4x4 to use to compute componentwise bitwise and. + /// int4x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator & (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } /// Returns the result of a componentwise bitwise and operation on an int4x4 matrix and an int value. + /// Left hand side int4x4 to use to compute componentwise bitwise and. + /// Right hand side int to use to compute componentwise bitwise and. + /// int4x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator & (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } /// Returns the result of a componentwise bitwise and operation on an int value and an int4x4 matrix. + /// Left hand side int to use to compute componentwise bitwise and. + /// Right hand side int4x4 to use to compute componentwise bitwise and. + /// int4x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator & (int lhs, int4x4 rhs) { return new int4x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } /// Returns the result of a componentwise bitwise or operation on two int4x4 matrices. + /// Left hand side int4x4 to use to compute componentwise bitwise or. + /// Right hand side int4x4 to use to compute componentwise bitwise or. + /// int4x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator | (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } /// Returns the result of a componentwise bitwise or operation on an int4x4 matrix and an int value. + /// Left hand side int4x4 to use to compute componentwise bitwise or. + /// Right hand side int to use to compute componentwise bitwise or. + /// int4x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator | (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } /// Returns the result of a componentwise bitwise or operation on an int value and an int4x4 matrix. + /// Left hand side int to use to compute componentwise bitwise or. + /// Right hand side int4x4 to use to compute componentwise bitwise or. + /// int4x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator | (int lhs, int4x4 rhs) { return new int4x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on two int4x4 matrices. + /// Left hand side int4x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side int4x4 to use to compute componentwise bitwise exclusive or. + /// int4x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator ^ (int4x4 lhs, int4x4 rhs) { return new int4x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on an int4x4 matrix and an int value. + /// Left hand side int4x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side int to use to compute componentwise bitwise exclusive or. + /// int4x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator ^ (int4x4 lhs, int rhs) { return new int4x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on an int value and an int4x4 matrix. + /// Left hand side int to use to compute componentwise bitwise exclusive or. + /// Right hand side int4x4 to use to compute componentwise bitwise exclusive or. + /// int4x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 operator ^ (int lhs, int4x4 rhs) { return new int4x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } @@ -410,19 +604,25 @@ unsafe public ref int4 this[int index] } /// Returns true if the int4x4 is equal to a given int4x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(int4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the int4x4 is equal to a given int4x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is int4x4 converted && Equals(converted); } /// Returns a hash code for the int4x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the int4x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -430,6 +630,9 @@ public override string ToString() } /// Returns a string representation of the int4x4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -441,10 +644,32 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a int4x4 matrix constructed from four int4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// int4x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 int4x4(int4 c0, int4 c1, int4 c2, int4 c3) { return new int4x4(c0, c1, c2, c3); } /// Returns a int4x4 matrix constructed from from 16 int values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// The matrix at row 3, column 3 will be set to this value. + /// int4x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 int4x4(int m00, int m01, int m02, int m03, int m10, int m11, int m12, int m13, @@ -458,42 +683,62 @@ public static int4x4 int4x4(int m00, int m01, int m02, int m03, } /// Returns a int4x4 matrix constructed from a single int value by assigning it to every component. + /// int to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 int4x4(int v) { return new int4x4(v); } /// Returns a int4x4 matrix constructed from a single bool value by converting it to int and assigning it to every component. + /// bool to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 int4x4(bool v) { return new int4x4(v); } /// Return a int4x4 matrix constructed from a bool4x4 matrix by componentwise conversion. + /// bool4x4 to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 int4x4(bool4x4 v) { return new int4x4(v); } /// Returns a int4x4 matrix constructed from a single uint value by converting it to int and assigning it to every component. + /// uint to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 int4x4(uint v) { return new int4x4(v); } /// Return a int4x4 matrix constructed from a uint4x4 matrix by componentwise conversion. + /// uint4x4 to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 int4x4(uint4x4 v) { return new int4x4(v); } /// Returns a int4x4 matrix constructed from a single float value by converting it to int and assigning it to every component. + /// float to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 int4x4(float v) { return new int4x4(v); } /// Return a int4x4 matrix constructed from a float4x4 matrix by componentwise conversion. + /// float4x4 to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 int4x4(float4x4 v) { return new int4x4(v); } /// Returns a int4x4 matrix constructed from a single double value by converting it to int and assigning it to every component. + /// double to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 int4x4(double v) { return new int4x4(v); } /// Return a int4x4 matrix constructed from a double4x4 matrix by componentwise conversion. + /// double4x4 to convert to int4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 int4x4(double4x4 v) { return new int4x4(v); } /// Return the int4x4 transpose of a int4x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 transpose(int4x4 v) { @@ -505,6 +750,8 @@ public static int4x4 transpose(int4x4 v) } /// Returns the determinant of a int4x4 matrix. + /// Matrix to use when computing determinant. + /// The determinant of the matrix. public static int determinant(int4x4 m) { int4 c0 = m.c0; @@ -520,7 +767,9 @@ public static int determinant(int4x4 m) return c0.x * m00 - c1.x * m01 + c2.x * m02 - c3.x * m03; } - /// Returns a uint hash code of a int4x4 vector. + /// Returns a uint hash code of a int4x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(int4x4 v) { @@ -531,10 +780,12 @@ public static uint hash(int4x4 v) } /// - /// Returns a uint4 vector hash code of a int4x4 vector. + /// Returns a uint4 vector hash code of a int4x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(int4x4 v) { diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index bb1d4f97..3400cc01 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -5,6 +5,9 @@ namespace Unity.Mathematics { + /// + /// A static class to contain various math functions and constants. + /// [Il2CppEagerStaticClassConstruction] public static partial class math { @@ -146,23 +149,33 @@ public enum ShuffleComponent : byte public const float NAN = Single.NaN; /// Returns the bit pattern of a uint as an int. + /// The uint bits to copy. + /// The int with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int asint(uint x) { return (int)x; } /// Returns the bit pattern of a uint2 as an int2. + /// The uint2 bits to copy. + /// The int2 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 asint(uint2 x) { return int2((int)x.x, (int)x.y); } /// Returns the bit pattern of a uint3 as an int3. + /// The uint3 bits to copy. + /// The int3 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 asint(uint3 x) { return int3((int)x.x, (int)x.y, (int)x.z); } /// Returns the bit pattern of a uint4 as an int4. + /// The uint4 bits to copy. + /// The int4 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 asint(uint4 x) { return int4((int)x.x, (int)x.y, (int)x.z, (int)x.w); } /// Returns the bit pattern of a float as an int. + /// The float bits to copy. + /// The int with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int asint(float x) { IntFloatUnion u; @@ -172,57 +185,83 @@ public static int asint(float x) { } /// Returns the bit pattern of a float2 as an int2. + /// The float2 bits to copy. + /// The int2 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 asint(float2 x) { return int2(asint(x.x), asint(x.y)); } /// Returns the bit pattern of a float3 as an int3. + /// The float3 bits to copy. + /// The int3 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 asint(float3 x) { return int3(asint(x.x), asint(x.y), asint(x.z)); } /// Returns the bit pattern of a float4 as an int4. + /// The float4 bits to copy. + /// The int4 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 asint(float4 x) { return int4(asint(x.x), asint(x.y), asint(x.z), asint(x.w)); } /// Returns the bit pattern of an int as a uint. + /// The int bits to copy. + /// The uint with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint asuint(int x) { return (uint)x; } /// Returns the bit pattern of an int2 as a uint2. + /// The int2 bits to copy. + /// The uint2 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 asuint(int2 x) { return uint2((uint)x.x, (uint)x.y); } /// Returns the bit pattern of an int3 as a uint3. + /// The int3 bits to copy. + /// The uint3 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 asuint(int3 x) { return uint3((uint)x.x, (uint)x.y, (uint)x.z); } /// Returns the bit pattern of an int4 as a uint4. + /// The int4 bits to copy. + /// The uint4 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 asuint(int4 x) { return uint4((uint)x.x, (uint)x.y, (uint)x.z, (uint)x.w); } /// Returns the bit pattern of a float as a uint. + /// The float bits to copy. + /// The uint with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint asuint(float x) { return (uint)asint(x); } /// Returns the bit pattern of a float2 as a uint2. + /// The float2 bits to copy. + /// The uint2 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 asuint(float2 x) { return uint2(asuint(x.x), asuint(x.y)); } /// Returns the bit pattern of a float3 as a uint3. + /// The float3 bits to copy. + /// The uint3 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 asuint(float3 x) { return uint3(asuint(x.x), asuint(x.y), asuint(x.z)); } /// Returns the bit pattern of a float4 as a uint4. + /// The float4 bits to copy. + /// The uint4 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 asuint(float4 x) { return uint4(asuint(x.x), asuint(x.y), asuint(x.z), asuint(x.w)); } /// Returns the bit pattern of a ulong as a long. + /// The ulong bits to copy. + /// The long with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long aslong(ulong x) { return (long)x; } /// Returns the bit pattern of a double as a long. + /// The double bits to copy. + /// The long with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long aslong(double x) { @@ -234,15 +273,21 @@ public static long aslong(double x) /// Returns the bit pattern of a long as a ulong. + /// The long bits to copy. + /// The ulong with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ulong asulong(long x) { return (ulong)x; } /// Returns the bit pattern of a double as a ulong. + /// The double bits to copy. + /// The ulong with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ulong asulong(double x) { return (ulong) aslong(x); } /// Returns the bit pattern of an int as a float. + /// The int bits to copy. + /// The float with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float asfloat(int x) { @@ -254,31 +299,45 @@ public static float asfloat(int x) } /// Returns the bit pattern of an int2 as a float2. + /// The int2 bits to copy. + /// The float2 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 asfloat(int2 x) { return float2(asfloat(x.x), asfloat(x.y)); } /// Returns the bit pattern of an int3 as a float3. + /// The int3 bits to copy. + /// The float3 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 asfloat(int3 x) { return float3(asfloat(x.x), asfloat(x.y), asfloat(x.z)); } /// Returns the bit pattern of an int4 as a float4. + /// The int4 bits to copy. + /// The float4 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 asfloat(int4 x) { return float4(asfloat(x.x), asfloat(x.y), asfloat(x.z), asfloat(x.w)); } /// Returns the bit pattern of a uint as a float. + /// The uint bits to copy. + /// The float with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float asfloat(uint x) { return asfloat((int)x); } /// Returns the bit pattern of a uint2 as a float2. + /// The uint2 bits to copy. + /// The float2 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 asfloat(uint2 x) { return float2(asfloat(x.x), asfloat(x.y)); } /// Returns the bit pattern of a uint3 as a float3. + /// The uint3 bits to copy. + /// The float3 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 asfloat(uint3 x) { return float3(asfloat(x.x), asfloat(x.y), asfloat(x.z)); } /// Returns the bit pattern of a uint4 as a float4. + /// The uint4 bits to copy. + /// The float4 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 asfloat(uint4 x) { return float4(asfloat(x.x), asfloat(x.y), asfloat(x.z), asfloat(x.w)); } @@ -304,6 +363,8 @@ public static int bitmask(bool4 value) } /// Returns the bit pattern of a long as a double. + /// The long bits to copy. + /// The double with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double asdouble(long x) { @@ -315,99 +376,163 @@ public static double asdouble(long x) /// Returns the bit pattern of a ulong as a double. + /// The ulong bits to copy. + /// The double with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double asdouble(ulong x) { return asdouble((long)x); } /// Returns true if the input float is a finite floating point value, false otherwise. + /// The float value to test. + /// True if the float is finite, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool isfinite(float x) { return abs(x) < float.PositiveInfinity; } /// Returns a bool2 indicating for each component of a float2 whether it is a finite floating point value. + /// The float2 value to test. + /// A bool2 where it is true in a component if that component is finite, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 isfinite(float2 x) { return abs(x) < float.PositiveInfinity; } /// Returns a bool3 indicating for each component of a float3 whether it is a finite floating point value. + /// The float3 value to test. + /// A bool3 where it is true in a component if that component is finite, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 isfinite(float3 x) { return abs(x) < float.PositiveInfinity; } /// Returns a bool4 indicating for each component of a float4 whether it is a finite floating point value. + /// The float4 value to test. + /// A bool4 where it is true in a component if that component is finite, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 isfinite(float4 x) { return abs(x) < float.PositiveInfinity; } /// Returns true if the input double is a finite floating point value, false otherwise. + /// The double value to test. + /// True if the double is finite, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool isfinite(double x) { return abs(x) < double.PositiveInfinity; } /// Returns a bool2 indicating for each component of a double2 whether it is a finite floating point value. + /// The double2 value to test. + /// A bool2 where it is true in a component if that component is finite, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 isfinite(double2 x) { return abs(x) < double.PositiveInfinity; } /// Returns a bool3 indicating for each component of a double3 whether it is a finite floating point value. + /// The double3 value to test. + /// A bool3 where it is true in a component if that component is finite, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 isfinite(double3 x) { return abs(x) < double.PositiveInfinity; } /// Returns a bool4 indicating for each component of a double4 whether it is a finite floating point value. + /// The double4 value to test. + /// A bool4 where it is true in a component if that component is finite, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 isfinite(double4 x) { return abs(x) < double.PositiveInfinity; } /// Returns true if the input float is an infinite floating point value, false otherwise. + /// Input value. + /// True if the input was an infinite value; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool isinf(float x) { return abs(x) == float.PositiveInfinity; } /// Returns a bool2 indicating for each component of a float2 whether it is an infinite floating point value. + /// Input value. + /// True if the component was an infinite value; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 isinf(float2 x) { return abs(x) == float.PositiveInfinity; } /// Returns a bool3 indicating for each component of a float3 whether it is an infinite floating point value. + /// Input value. + /// True if the component was an infinite value; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 isinf(float3 x) { return abs(x) == float.PositiveInfinity; } /// Returns a bool4 indicating for each component of a float4 whether it is an infinite floating point value. + /// Input value. + /// True if the component was an infinite value; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 isinf(float4 x) { return abs(x) == float.PositiveInfinity; } /// Returns true if the input double is an infinite floating point value, false otherwise. + /// Input value. + /// True if the input was an infinite value; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool isinf(double x) { return abs(x) == double.PositiveInfinity; } /// Returns a bool2 indicating for each component of a double2 whether it is an infinite floating point value. + /// Input value. + /// True if the component was an infinite value; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 isinf(double2 x) { return abs(x) == double.PositiveInfinity; } /// Returns a bool3 indicating for each component of a double3 whether it is an infinite floating point value. + /// Input value. + /// True if the component was an infinite value; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 isinf(double3 x) { return abs(x) == double.PositiveInfinity; } /// Returns a bool4 indicating for each component of a double4 whether it is an infinite floating point value. + /// Input value. + /// True if the component was an infinite value; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 isinf(double4 x) { return abs(x) == double.PositiveInfinity; } /// Returns true if the input float is a NaN (not a number) floating point value, false otherwise. + /// + /// NaN has several representations and may vary across architectures. Use this function to check if you have a NaN. + /// + /// Input value. + /// True if the value was NaN; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool isnan(float x) { return (asuint(x) & 0x7FFFFFFF) > 0x7F800000; } /// Returns a bool2 indicating for each component of a float2 whether it is a NaN (not a number) floating point value. + /// + /// NaN has several representations and may vary across architectures. Use this function to check if you have a NaN. + /// + /// Input value. + /// True if the component was NaN; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 isnan(float2 x) { return (asuint(x) & 0x7FFFFFFF) > 0x7F800000; } /// Returns a bool3 indicating for each component of a float3 whether it is a NaN (not a number) floating point value. + /// + /// NaN has several representations and may vary across architectures. Use this function to check if you have a NaN. + /// + /// Input value. + /// True if the component was NaN; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 isnan(float3 x) { return (asuint(x) & 0x7FFFFFFF) > 0x7F800000; } /// Returns a bool4 indicating for each component of a float4 whether it is a NaN (not a number) floating point value. + /// + /// NaN has several representations and may vary across architectures. Use this function to check if you have a NaN. + /// + /// Input value. + /// True if the component was NaN; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 isnan(float4 x) { return (asuint(x) & 0x7FFFFFFF) > 0x7F800000; } /// Returns true if the input double is a NaN (not a number) floating point value, false otherwise. + /// + /// NaN has several representations and may vary across architectures. Use this function to check if you have a NaN. + /// + /// Input value. + /// True if the value was NaN; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool isnan(double x) { return (asulong(x) & 0x7FFFFFFFFFFFFFFF) > 0x7FF0000000000000; } /// Returns a bool2 indicating for each component of a double2 whether it is a NaN (not a number) floating point value. + /// + /// NaN has several representations and may vary across architectures. Use this function to check if you have a NaN. + /// + /// Input value. + /// True if the component was NaN; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 isnan(double2 x) { return bool2((asulong(x.x) & 0x7FFFFFFFFFFFFFFF) > 0x7FF0000000000000, @@ -415,6 +540,11 @@ public static bool2 isnan(double2 x) { } /// Returns a bool3 indicating for each component of a double3 whether it is a NaN (not a number) floating point value. + /// + /// NaN has several representations and may vary across architectures. Use this function to check if you have a NaN. + /// + /// Input value. + /// True if the component was NaN; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 isnan(double3 x) { @@ -424,6 +554,11 @@ public static bool3 isnan(double3 x) } /// Returns a bool4 indicating for each component of a double4 whether it is a NaN (not a number) floating point value. + /// + /// NaN has several representations and may vary across architectures. Use this function to check if you have a NaN. + /// + /// Input value. + /// True if the component was NaN; false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 isnan(double4 x) { @@ -449,8 +584,8 @@ public static bool ispow2(int x) /// Checks if each component of the input is a power of two. /// /// If a component of x is less than or equal to zero, then this function returns false in that component. - /// input - /// where true in a component indicates the same component in the input was a power of two. + /// int2 input + /// bool2 where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 ispow2(int2 x) { @@ -461,8 +596,8 @@ public static bool2 ispow2(int2 x) /// Checks if each component of the input is a power of two. /// /// If a component of x is less than or equal to zero, then this function returns false in that component. - /// input - /// where true in a component indicates the same component in the input was a power of two. + /// int3 input + /// bool3 where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 ispow2(int3 x) { @@ -473,8 +608,8 @@ public static bool3 ispow2(int3 x) /// Checks if each component of the input is a power of two. /// /// If a component of x is less than or equal to zero, then this function returns false in that component. - /// input - /// where true in a component indicates the same component in the input was a power of two. + /// int4 input + /// bool4 where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 ispow2(int4 x) { @@ -497,8 +632,8 @@ public static bool ispow2(uint x) /// Checks if each component of the input is a power of two. /// /// If a component of x is less than or equal to zero, then this function returns false in that component. - /// input - /// where true in a component indicates the same component in the input was a power of two. + /// uint2 input + /// bool2 where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 ispow2(uint2 x) { @@ -509,8 +644,8 @@ public static bool2 ispow2(uint2 x) /// Checks if each component of the input is a power of two. /// /// If a component of x is less than or equal to zero, then this function returns false in that component. - /// input - /// where true in a component indicates the same component in the input was a power of two. + /// uint3 input + /// bool3 where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 ispow2(uint3 x) { @@ -521,8 +656,8 @@ public static bool3 ispow2(uint3 x) /// Checks if each component of the input is a power of two. /// /// If a component of x is less than or equal to zero, then this function returns false in that component. - /// input - /// where true in a component indicates the same component in the input was a power of two. + /// uint4 input + /// bool4 where true in a component indicates the same component in the input was a power of two. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 ispow2(uint4 x) { @@ -530,1468 +665,2463 @@ public static bool4 ispow2(uint4 x) } /// Returns the minimum of two int values. + /// The first input value. + /// The second input value. + /// The minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int min(int x, int y) { return x < y ? x : y; } /// Returns the componentwise minimum of two int2 vectors. + /// The first input value. + /// The second input value. + /// The componentwise minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 min(int2 x, int2 y) { return new int2(min(x.x, y.x), min(x.y, y.y)); } /// Returns the componentwise minimum of two int3 vectors. + /// The first input value. + /// The second input value. + /// The componentwise minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 min(int3 x, int3 y) { return new int3(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z)); } /// Returns the componentwise minimum of two int4 vectors. + /// The first input value. + /// The second input value. + /// The componentwise minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 min(int4 x, int4 y) { return new int4(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z), min(x.w, y.w)); } /// Returns the minimum of two uint values. + /// The first input value. + /// The second input value. + /// The minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint min(uint x, uint y) { return x < y ? x : y; } /// Returns the componentwise minimum of two uint2 vectors. + /// The first input value. + /// The second input value. + /// The componentwise minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 min(uint2 x, uint2 y) { return new uint2(min(x.x, y.x), min(x.y, y.y)); } /// Returns the componentwise minimum of two uint3 vectors. + /// The first input value. + /// The second input value. + /// The componentwise minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 min(uint3 x, uint3 y) { return new uint3(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z)); } /// Returns the componentwise minimum of two uint4 vectors. + /// The first input value. + /// The second input value. + /// The componentwise minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 min(uint4 x, uint4 y) { return new uint4(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z), min(x.w, y.w)); } /// Returns the minimum of two long values. + /// The first input value. + /// The second input value. + /// The minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long min(long x, long y) { return x < y ? x : y; } /// Returns the minimum of two ulong values. + /// The first input value. + /// The second input value. + /// The minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ulong min(ulong x, ulong y) { return x < y ? x : y; } /// Returns the minimum of two float values. + /// The first input value. + /// The second input value. + /// The minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float min(float x, float y) { return float.IsNaN(y) || x < y ? x : y; } /// Returns the componentwise minimum of two float2 vectors. + /// The first input value. + /// The second input value. + /// The componentwise minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 min(float2 x, float2 y) { return new float2(min(x.x, y.x), min(x.y, y.y)); } /// Returns the componentwise minimum of two float3 vectors. + /// The first input value. + /// The second input value. + /// The componentwise minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 min(float3 x, float3 y) { return new float3(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z)); } /// Returns the componentwise minimum of two float4 vectors. + /// The first input value. + /// The second input value. + /// The componentwise minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 min(float4 x, float4 y) { return new float4(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z), min(x.w, y.w)); } /// Returns the minimum of two double values. + /// The first input value. + /// The second input value. + /// The minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double min(double x, double y) { return double.IsNaN(y) || x < y ? x : y; } /// Returns the componentwise minimum of two double2 vectors. + /// The first input value. + /// The second input value. + /// The componentwise minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 min(double2 x, double2 y) { return new double2(min(x.x, y.x), min(x.y, y.y)); } /// Returns the componentwise minimum of two double3 vectors. + /// The first input value. + /// The second input value. + /// The componentwise minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 min(double3 x, double3 y) { return new double3(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z)); } /// Returns the componentwise minimum of two double4 vectors. + /// The first input value. + /// The second input value. + /// The componentwise minimum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 min(double4 x, double4 y) { return new double4(min(x.x, y.x), min(x.y, y.y), min(x.z, y.z), min(x.w, y.w)); } /// Returns the maximum of two int values. + /// The first input value. + /// The second input value. + /// The maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int max(int x, int y) { return x > y ? x : y; } /// Returns the componentwise maximum of two int2 vectors. + /// The first input value. + /// The second input value. + /// The componentwise maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 max(int2 x, int2 y) { return new int2(max(x.x, y.x), max(x.y, y.y)); } /// Returns the componentwise maximum of two int3 vectors. + /// The first input value. + /// The second input value. + /// The componentwise maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 max(int3 x, int3 y) { return new int3(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z)); } /// Returns the componentwise maximum of two int4 vectors. + /// The first input value. + /// The second input value. + /// The componentwise maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 max(int4 x, int4 y) { return new int4(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z), max(x.w, y.w)); } /// Returns the maximum of two uint values. + /// The first input value. + /// The second input value. + /// The maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint max(uint x, uint y) { return x > y ? x : y; } /// Returns the componentwise maximum of two uint2 vectors. + /// The first input value. + /// The second input value. + /// The componentwise maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 max(uint2 x, uint2 y) { return new uint2(max(x.x, y.x), max(x.y, y.y)); } /// Returns the componentwise maximum of two uint3 vectors. + /// The first input value. + /// The second input value. + /// The componentwise maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 max(uint3 x, uint3 y) { return new uint3(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z)); } /// Returns the componentwise maximum of two uint4 vectors. + /// The first input value. + /// The second input value. + /// The componentwise maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 max(uint4 x, uint4 y) { return new uint4(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z), max(x.w, y.w)); } /// Returns the maximum of two long values. + /// The first input value. + /// The second input value. + /// The maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long max(long x, long y) { return x > y ? x : y; } /// Returns the maximum of two ulong values. + /// The first input value. + /// The second input value. + /// The maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ulong max(ulong x, ulong y) { return x > y ? x : y; } /// Returns the maximum of two float values. + /// The first input value. + /// The second input value. + /// The maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float max(float x, float y) { return float.IsNaN(y) || x > y ? x : y; } /// Returns the componentwise maximum of two float2 vectors. + /// The first input value. + /// The second input value. + /// The componentwise maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 max(float2 x, float2 y) { return new float2(max(x.x, y.x), max(x.y, y.y)); } /// Returns the componentwise maximum of two float3 vectors. + /// The first input value. + /// The second input value. + /// The componentwise maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 max(float3 x, float3 y) { return new float3(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z)); } /// Returns the componentwise maximum of two float4 vectors. + /// The first input value. + /// The second input value. + /// The componentwise maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 max(float4 x, float4 y) { return new float4(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z), max(x.w, y.w)); } /// Returns the maximum of two double values. + /// The first input value. + /// The second input value. + /// The maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double max(double x, double y) { return double.IsNaN(y) || x > y ? x : y; } /// Returns the componentwise maximum of two double2 vectors. + /// The first input value. + /// The second input value. + /// The componentwise maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 max(double2 x, double2 y) { return new double2(max(x.x, y.x), max(x.y, y.y)); } /// Returns the componentwise maximum of two double3 vectors. + /// The first input value. + /// The second input value. + /// The componentwise maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 max(double3 x, double3 y) { return new double3(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z)); } /// Returns the componentwise maximum of two double4 vectors. + /// The first input value. + /// The second input value. + /// The componentwise maximum of the two input values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 max(double4 x, double4 y) { return new double4(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z), max(x.w, y.w)); } /// Returns the result of linearly interpolating from x to y using the interpolation parameter s. + /// + /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. + /// + /// The first endpoint, corresponding to the interpolation parameter value of 0. + /// The second endpoint, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float lerp(float x, float y, float s) { return x + s * (y - x); } /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. + /// + /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. + /// + /// The first endpoint, corresponding to the interpolation parameter value of 0. + /// The second endpoint, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 lerp(float2 x, float2 y, float s) { return x + s * (y - x); } /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. + /// + /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. + /// + /// The first endpoint, corresponding to the interpolation parameter value of 0. + /// The second endpoint, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 lerp(float3 x, float3 y, float s) { return x + s * (y - x); } /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. + /// + /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. + /// + /// The first endpoint, corresponding to the interpolation parameter value of 0. + /// The second endpoint, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 lerp(float4 x, float4 y, float s) { return x + s * (y - x); } /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. + /// + /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. + /// + /// The first endpoint, corresponding to the interpolation parameter value of 0. + /// The second endpoint, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 lerp(float2 x, float2 y, float2 s) { return x + s * (y - x); } /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. + /// + /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. + /// + /// The first endpoint, corresponding to the interpolation parameter value of 0. + /// The second endpoint, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 lerp(float3 x, float3 y, float3 s) { return x + s * (y - x); } /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. + /// + /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. + /// + /// The first endpoint, corresponding to the interpolation parameter value of 0. + /// The second endpoint, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 lerp(float4 x, float4 y, float4 s) { return x + s * (y - x); } /// Returns the result of linearly interpolating from x to y using the interpolation parameter s. + /// + /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. + /// + /// The first endpoint, corresponding to the interpolation parameter value of 0. + /// The second endpoint, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double lerp(double x, double y, double s) { return x + s * (y - x); } /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. + /// + /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. + /// + /// The first endpoint, corresponding to the interpolation parameter value of 0. + /// The second endpoint, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 lerp(double2 x, double2 y, double s) { return x + s * (y - x); } /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. + /// + /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. + /// + /// The first endpoint, corresponding to the interpolation parameter value of 0. + /// The second endpoint, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 lerp(double3 x, double3 y, double s) { return x + s * (y - x); } /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. + /// + /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. + /// + /// The first endpoint, corresponding to the interpolation parameter value of 0. + /// The second endpoint, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 lerp(double4 x, double4 y, double s) { return x + s * (y - x); } /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. + /// + /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. + /// + /// The first endpoint, corresponding to the interpolation parameter value of 0. + /// The second endpoint, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 lerp(double2 x, double2 y, double2 s) { return x + s * (y - x); } /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. + /// + /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. + /// + /// The first endpoint, corresponding to the interpolation parameter value of 0. + /// The second endpoint, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 lerp(double3 x, double3 y, double3 s) { return x + s * (y - x); } /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. + /// + /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. + /// + /// The first endpoint, corresponding to the interpolation parameter value of 0. + /// The second endpoint, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 lerp(double4 x, double4 y, double4 s) { return x + s * (y - x); } /// Returns the result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). + /// The first endpoint of the range. + /// The second endpoint of the range. + /// The value to normalize to the range. + /// The interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float unlerp(float a, float b, float x) { return (x - a) / (b - a); } /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). + /// The first endpoint of the range. + /// The second endpoint of the range. + /// The value to normalize to the range. + /// The componentwise interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 unlerp(float2 a, float2 b, float2 x) { return (x - a) / (b - a); } /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). + /// The first endpoint of the range. + /// The second endpoint of the range. + /// The value to normalize to the range. + /// The componentwise interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 unlerp(float3 a, float3 b, float3 x) { return (x - a) / (b - a); } /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). + /// The first endpoint of the range. + /// The second endpoint of the range. + /// The value to normalize to the range. + /// The componentwise interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 unlerp(float4 a, float4 b, float4 x) { return (x - a) / (b - a); } /// Returns the result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). + /// The first endpoint of the range. + /// The second endpoint of the range. + /// The value to normalize to the range. + /// The interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double unlerp(double a, double b, double x) { return (x - a) / (b - a); } /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). + /// The first endpoint of the range. + /// The second endpoint of the range. + /// The value to normalize to the range. + /// The componentwise interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 unlerp(double2 a, double2 b, double2 x) { return (x - a) / (b - a); } /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). + /// The first endpoint of the range. + /// The second endpoint of the range. + /// The value to normalize to the range. + /// The componentwise interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 unlerp(double3 a, double3 b, double3 x) { return (x - a) / (b - a); } /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). + /// The first endpoint of the range. + /// The second endpoint of the range. + /// The value to normalize to the range. + /// The componentwise interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 unlerp(double4 a, double4 b, double4 x) { return (x - a) / (b - a); } - /// Returns the result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. + /// Returns the result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. + /// The first endpoint of the source range [a,b]. + /// The second endpoint of the source range [a, b]. + /// The first endpoint of the destination range [c, d]. + /// The second endpoint of the destination range [c, d]. + /// The value to remap from the source to destination range. + /// The remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float remap(float a, float b, float c, float d, float x) { return lerp(c, d, unlerp(a, b, x)); } - /// Returns the componentwise result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. + /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. + /// The first endpoint of the source range [a,b]. + /// The second endpoint of the source range [a, b]. + /// The first endpoint of the destination range [c, d]. + /// The second endpoint of the destination range [c, d]. + /// The value to remap from the source to destination range. + /// The componentwise remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 remap(float2 a, float2 b, float2 c, float2 d, float2 x) { return lerp(c, d, unlerp(a, b, x)); } - /// Returns the componentwise result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. + /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. + /// The first endpoint of the source range [a,b]. + /// The second endpoint of the source range [a, b]. + /// The first endpoint of the destination range [c, d]. + /// The second endpoint of the destination range [c, d]. + /// The value to remap from the source to destination range. + /// The componentwise remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 remap(float3 a, float3 b, float3 c, float3 d, float3 x) { return lerp(c, d, unlerp(a, b, x)); } - /// Returns the componentwise result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. + /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. + /// The first endpoint of the source range [a,b]. + /// The second endpoint of the source range [a, b]. + /// The first endpoint of the destination range [c, d]. + /// The second endpoint of the destination range [c, d]. + /// The value to remap from the source to destination range. + /// The componentwise remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 remap(float4 a, float4 b, float4 c, float4 d, float4 x) { return lerp(c, d, unlerp(a, b, x)); } - /// Returns the result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. + /// Returns the result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. + /// The first endpoint of the source range [a,b]. + /// The second endpoint of the source range [a, b]. + /// The first endpoint of the destination range [c, d]. + /// The second endpoint of the destination range [c, d]. + /// The value to remap from the source to destination range. + /// The remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double remap(double a, double b, double c, double d, double x) { return lerp(c, d, unlerp(a, b, x)); } - /// Returns the componentwise result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. + /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. + /// The first endpoint of the source range [a,b]. + /// The second endpoint of the source range [a, b]. + /// The first endpoint of the destination range [c, d]. + /// The second endpoint of the destination range [c, d]. + /// The value to remap from the source to destination range. + /// The componentwise remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 remap(double2 a, double2 b, double2 c, double2 d, double2 x) { return lerp(c, d, unlerp(a, b, x)); } - /// Returns the componentwise result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. + /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. + /// The first endpoint of the source range [a,b]. + /// The second endpoint of the source range [a, b]. + /// The first endpoint of the destination range [c, d]. + /// The second endpoint of the destination range [c, d]. + /// The value to remap from the source to destination range. + /// The componentwise remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 remap(double3 a, double3 b, double3 c, double3 d, double3 x) { return lerp(c, d, unlerp(a, b, x)); } - /// Returns the componentwise result of a non-clamping linear remapping of a value x from [a, b] to [c, d]. + /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. + /// The first endpoint of the source range [a,b]. + /// The second endpoint of the source range [a, b]. + /// The first endpoint of the destination range [c, d]. + /// The second endpoint of the destination range [c, d]. + /// The value to remap from the source to destination range. + /// The componentwise remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 remap(double4 a, double4 b, double4 c, double4 d, double4 x) { return lerp(c, d, unlerp(a, b, x)); } /// Returns the result of a multiply-add operation (a * b + c) on 3 int values. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int mad(int a, int b, int c) { return a * b + c; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 int2 vectors. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 mad(int2 a, int2 b, int2 c) { return a * b + c; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 int3 vectors. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 mad(int3 a, int3 b, int3 c) { return a * b + c; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 int4 vectors. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 mad(int4 a, int4 b, int4 c) { return a * b + c; } /// Returns the result of a multiply-add operation (a * b + c) on 3 uint values. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint mad(uint a, uint b, uint c) { return a * b + c; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 uint2 vectors. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 mad(uint2 a, uint2 b, uint2 c) { return a * b + c; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 uint3 vectors. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 mad(uint3 a, uint3 b, uint3 c) { return a * b + c; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 uint4 vectors. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 mad(uint4 a, uint4 b, uint4 c) { return a * b + c; } /// Returns the result of a multiply-add operation (a * b + c) on 3 long values. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long mad(long a, long b, long c) { return a * b + c; } /// Returns the result of a multiply-add operation (a * b + c) on 3 ulong values. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ulong mad(ulong a, ulong b, ulong c) { return a * b + c; } /// Returns the result of a multiply-add operation (a * b + c) on 3 float values. + /// + /// When Burst compiled with fast math enabled on some architectures, this could be converted to a fused multiply add (FMA). + /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when + /// this computation is not fused. + /// + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float mad(float a, float b, float c) { return a * b + c; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 float2 vectors. + /// + /// When Burst compiled with fast math enabled on some architectures, this could be converted to a fused multiply add (FMA). + /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when + /// this computation is not fused. + /// + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 mad(float2 a, float2 b, float2 c) { return a * b + c; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 float3 vectors. + /// + /// When Burst compiled with fast math enabled on some architectures, this could be converted to a fused multiply add (FMA). + /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when + /// this computation is not fused. + /// + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 mad(float3 a, float3 b, float3 c) { return a * b + c; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 float4 vectors. + /// + /// When Burst compiled with fast math enabled on some architectures, this could be converted to a fused multiply add (FMA). + /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when + /// this computation is not fused. + /// + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 mad(float4 a, float4 b, float4 c) { return a * b + c; } /// Returns the result of a multiply-add operation (a * b + c) on 3 double values. + /// + /// When Burst compiled with fast math enabled on some architectures, this could be converted to a fused multiply add (FMA). + /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when + /// this computation is not fused. + /// + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double mad(double a, double b, double c) { return a * b + c; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 double2 vectors. + /// + /// When Burst compiled with fast math enabled on some architectures, this could be converted to a fused multiply add (FMA). + /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when + /// this computation is not fused. + /// + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 mad(double2 a, double2 b, double2 c) { return a * b + c; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 double3 vectors. + /// + /// When Burst compiled with fast math enabled on some architectures, this could be converted to a fused multiply add (FMA). + /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when + /// this computation is not fused. + /// + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 mad(double3 a, double3 b, double3 c) { return a * b + c; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 double4 vectors. + /// + /// When Burst compiled with fast math enabled on some architectures, this could be converted to a fused multiply add (FMA). + /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when + /// this computation is not fused. + /// + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. + /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 mad(double4 a, double4 b, double4 c) { return a * b + c; } /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are int values. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int clamp(int x, int a, int b) { return max(a, min(b, x)); } /// Returns the result of a componentwise clamping of the int2 x into the interval [a, b], where a and b are int2 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 clamp(int2 x, int2 a, int2 b) { return max(a, min(b, x)); } /// Returns the result of a componentwise clamping of the int3 x into the interval [a, b], where x, a and b are int3 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 clamp(int3 x, int3 a, int3 b) { return max(a, min(b, x)); } /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are int4 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 clamp(int4 x, int4 a, int4 b) { return max(a, min(b, x)); } /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are uint values. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint clamp(uint x, uint a, uint b) { return max(a, min(b, x)); } /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are uint2 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 clamp(uint2 x, uint2 a, uint2 b) { return max(a, min(b, x)); } /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are uint3 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 clamp(uint3 x, uint3 a, uint3 b) { return max(a, min(b, x)); } /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are uint4 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 clamp(uint4 x, uint4 a, uint4 b) { return max(a, min(b, x)); } /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are long values. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long clamp(long x, long a, long b) { return max(a, min(b, x)); } /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are ulong values. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ulong clamp(ulong x, ulong a, ulong b) { return max(a, min(b, x)); } /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are float values. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float clamp(float x, float a, float b) { return max(a, min(b, x)); } /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are float2 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 clamp(float2 x, float2 a, float2 b) { return max(a, min(b, x)); } /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are float3 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 clamp(float3 x, float3 a, float3 b) { return max(a, min(b, x)); } /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are float4 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 clamp(float4 x, float4 a, float4 b) { return max(a, min(b, x)); } /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are double values. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double clamp(double x, double a, double b) { return max(a, min(b, x)); } /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are double2 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 clamp(double2 x, double2 a, double2 b) { return max(a, min(b, x)); } /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are double3 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 clamp(double3 x, double3 a, double3 b) { return max(a, min(b, x)); } /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are double4 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input x into the interval [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 clamp(double4 x, double4 a, double4 b) { return max(a, min(b, x)); } /// Returns the result of clamping the float value x into the interval [0, 1]. + /// Input value. + /// The clamping of the input into the interval [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float saturate(float x) { return clamp(x, 0.0f, 1.0f); } /// Returns the result of a componentwise clamping of the float2 vector x into the interval [0, 1]. + /// Input value. + /// The componentwise clamping of the input into the interval [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 saturate(float2 x) { return clamp(x, new float2(0.0f), new float2(1.0f)); } /// Returns the result of a componentwise clamping of the float3 vector x into the interval [0, 1]. + /// Input value. + /// The componentwise clamping of the input into the interval [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 saturate(float3 x) { return clamp(x, new float3(0.0f), new float3(1.0f)); } /// Returns the result of a componentwise clamping of the float4 vector x into the interval [0, 1]. + /// Input value. + /// The componentwise clamping of the input into the interval [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 saturate(float4 x) { return clamp(x, new float4(0.0f), new float4(1.0f)); } /// Returns the result of clamping the double value x into the interval [0, 1]. + /// Input value. + /// The clamping of the input into the interval [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double saturate(double x) { return clamp(x, 0.0, 1.0); } /// Returns the result of a componentwise clamping of the double2 vector x into the interval [0, 1]. + /// Input value. + /// The componentwise clamping of the input into the interval [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 saturate(double2 x) { return clamp(x, new double2(0.0), new double2(1.0)); } /// Returns the result of a componentwise clamping of the double3 vector x into the interval [0, 1]. + /// Input value. + /// The componentwise clamping of the input into the interval [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 saturate(double3 x) { return clamp(x, new double3(0.0), new double3(1.0)); } /// Returns the result of a componentwise clamping of the double4 vector x into the interval [0, 1]. + /// Input value. + /// The componentwise clamping of the input into the interval [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 saturate(double4 x) { return clamp(x, new double4(0.0), new double4(1.0)); } /// Returns the absolute value of a int value. + /// Input value. + /// The absolute value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int abs(int x) { return max(-x, x); } /// Returns the componentwise absolute value of a int2 vector. + /// Input value. + /// The componentwise absolute value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 abs(int2 x) { return max(-x, x); } /// Returns the componentwise absolute value of a int3 vector. + /// Input value. + /// The componentwise absolute value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 abs(int3 x) { return max(-x, x); } /// Returns the componentwise absolute value of a int4 vector. + /// Input value. + /// The componentwise absolute value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 abs(int4 x) { return max(-x, x); } /// Returns the absolute value of a long value. + /// Input value. + /// The absolute value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long abs(long x) { return max(-x, x); } /// Returns the absolute value of a float value. + /// Input value. + /// The absolute value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float abs(float x) { return asfloat(asuint(x) & 0x7FFFFFFF); } /// Returns the componentwise absolute value of a float2 vector. + /// Input value. + /// The componentwise absolute value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 abs(float2 x) { return asfloat(asuint(x) & 0x7FFFFFFF); } /// Returns the componentwise absolute value of a float3 vector. + /// Input value. + /// The componentwise absolute value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 abs(float3 x) { return asfloat(asuint(x) & 0x7FFFFFFF); } /// Returns the componentwise absolute value of a float4 vector. + /// Input value. + /// The componentwise absolute value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 abs(float4 x) { return asfloat(asuint(x) & 0x7FFFFFFF); } /// Returns the absolute value of a double value. + /// Input value. + /// The absolute value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double abs(double x) { return asdouble(asulong(x) & 0x7FFFFFFFFFFFFFFF); } /// Returns the componentwise absolute value of a double2 vector. + /// Input value. + /// The componentwise absolute value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 abs(double2 x) { return double2(asdouble(asulong(x.x) & 0x7FFFFFFFFFFFFFFF), asdouble(asulong(x.y) & 0x7FFFFFFFFFFFFFFF)); } /// Returns the componentwise absolute value of a double3 vector. + /// Input value. + /// The componentwise absolute value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 abs(double3 x) { return double3(asdouble(asulong(x.x) & 0x7FFFFFFFFFFFFFFF), asdouble(asulong(x.y) & 0x7FFFFFFFFFFFFFFF), asdouble(asulong(x.z) & 0x7FFFFFFFFFFFFFFF)); } /// Returns the componentwise absolute value of a double4 vector. + /// Input value. + /// The componentwise absolute value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 abs(double4 x) { return double4(asdouble(asulong(x.x) & 0x7FFFFFFFFFFFFFFF), asdouble(asulong(x.y) & 0x7FFFFFFFFFFFFFFF), asdouble(asulong(x.z) & 0x7FFFFFFFFFFFFFFF), asdouble(asulong(x.w) & 0x7FFFFFFFFFFFFFFF)); } /// Returns the dot product of two int values. Equivalent to multiplication. + /// The first value. + /// The second value. + /// The dot product of two values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int dot(int x, int y) { return x * y; } /// Returns the dot product of two int2 vectors. + /// The first vector. + /// The second vector. + /// The dot product of two vectors. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int dot(int2 x, int2 y) { return x.x * y.x + x.y * y.y; } /// Returns the dot product of two int3 vectors. + /// The first vector. + /// The second vector. + /// The dot product of two vectors. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int dot(int3 x, int3 y) { return x.x * y.x + x.y * y.y + x.z * y.z; } /// Returns the dot product of two int4 vectors. + /// The first vector. + /// The second vector. + /// The dot product of two vectors. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int dot(int4 x, int4 y) { return x.x * y.x + x.y * y.y + x.z * y.z + x.w * y.w; } /// Returns the dot product of two uint values. Equivalent to multiplication. + /// The first value. + /// The second value. + /// The dot product of two values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint dot(uint x, uint y) { return x * y; } /// Returns the dot product of two uint2 vectors. + /// The first vector. + /// The second vector. + /// The dot product of two vectors. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint dot(uint2 x, uint2 y) { return x.x * y.x + x.y * y.y; } /// Returns the dot product of two uint3 vectors. + /// The first vector. + /// The second vector. + /// The dot product of two vectors. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint dot(uint3 x, uint3 y) { return x.x * y.x + x.y * y.y + x.z * y.z; } /// Returns the dot product of two uint4 vectors. + /// The first vector. + /// The second vector. + /// The dot product of two vectors. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint dot(uint4 x, uint4 y) { return x.x * y.x + x.y * y.y + x.z * y.z + x.w * y.w; } /// Returns the dot product of two float values. Equivalent to multiplication. + /// The first value. + /// The second value. + /// The dot product of two values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float dot(float x, float y) { return x * y; } /// Returns the dot product of two float2 vectors. + /// The first vector. + /// The second vector. + /// The dot product of two vectors. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float dot(float2 x, float2 y) { return x.x * y.x + x.y * y.y; } /// Returns the dot product of two float3 vectors. + /// The first vector. + /// The second vector. + /// The dot product of two vectors. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float dot(float3 x, float3 y) { return x.x * y.x + x.y * y.y + x.z * y.z; } /// Returns the dot product of two float4 vectors. + /// The first vector. + /// The second vector. + /// The dot product of two vectors. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float dot(float4 x, float4 y) { return x.x * y.x + x.y * y.y + x.z * y.z + x.w * y.w; } /// Returns the dot product of two double values. Equivalent to multiplication. + /// The first value. + /// The second value. + /// The dot product of two values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double dot(double x, double y) { return x * y; } /// Returns the dot product of two double2 vectors. + /// The first vector. + /// The second vector. + /// The dot product of two vectors. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double dot(double2 x, double2 y) { return x.x * y.x + x.y * y.y; } /// Returns the dot product of two double3 vectors. + /// The first vector. + /// The second vector. + /// The dot product of two vectors. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double dot(double3 x, double3 y) { return x.x * y.x + x.y * y.y + x.z * y.z; } /// Returns the dot product of two double4 vectors. + /// The first vector. + /// The second vector. + /// The dot product of two vectors. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double dot(double4 x, double4 y) { return x.x * y.x + x.y * y.y + x.z * y.z + x.w * y.w; } /// Returns the tangent of a float value. + /// Input value. + /// The tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float tan(float x) { return (float)System.Math.Tan(x); } /// Returns the componentwise tangent of a float2 vector. + /// Input value. + /// The componentwise tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 tan(float2 x) { return new float2(tan(x.x), tan(x.y)); } /// Returns the componentwise tangent of a float3 vector. + /// Input value. + /// The componentwise tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 tan(float3 x) { return new float3(tan(x.x), tan(x.y), tan(x.z)); } /// Returns the componentwise tangent of a float4 vector. + /// Input value. + /// The componentwise tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 tan(float4 x) { return new float4(tan(x.x), tan(x.y), tan(x.z), tan(x.w)); } /// Returns the tangent of a double value. + /// Input value. + /// The tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double tan(double x) { return System.Math.Tan(x); } /// Returns the componentwise tangent of a double2 vector. + /// Input value. + /// The componentwise tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 tan(double2 x) { return new double2(tan(x.x), tan(x.y)); } /// Returns the componentwise tangent of a double3 vector. + /// Input value. + /// The componentwise tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 tan(double3 x) { return new double3(tan(x.x), tan(x.y), tan(x.z)); } /// Returns the componentwise tangent of a double4 vector. + /// Input value. + /// The componentwise tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 tan(double4 x) { return new double4(tan(x.x), tan(x.y), tan(x.z), tan(x.w)); } /// Returns the hyperbolic tangent of a float value. + /// Input value. + /// The hyperbolic tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float tanh(float x) { return (float)System.Math.Tanh(x); } /// Returns the componentwise hyperbolic tangent of a float2 vector. + /// Input value. + /// The componentwise hyperbolic tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 tanh(float2 x) { return new float2(tanh(x.x), tanh(x.y)); } /// Returns the componentwise hyperbolic tangent of a float3 vector. + /// Input value. + /// The componentwise hyperbolic tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 tanh(float3 x) { return new float3(tanh(x.x), tanh(x.y), tanh(x.z)); } /// Returns the componentwise hyperbolic tangent of a float4 vector. + /// Input value. + /// The componentwise hyperbolic tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 tanh(float4 x) { return new float4(tanh(x.x), tanh(x.y), tanh(x.z), tanh(x.w)); } /// Returns the hyperbolic tangent of a double value. + /// Input value. + /// The hyperbolic tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double tanh(double x) { return System.Math.Tanh(x); } /// Returns the componentwise hyperbolic tangent of a double2 vector. + /// Input value. + /// The componentwise hyperbolic tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 tanh(double2 x) { return new double2(tanh(x.x), tanh(x.y)); } /// Returns the componentwise hyperbolic tangent of a double3 vector. + /// Input value. + /// The componentwise hyperbolic tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 tanh(double3 x) { return new double3(tanh(x.x), tanh(x.y), tanh(x.z)); } /// Returns the componentwise hyperbolic tangent of a double4 vector. + /// Input value. + /// The componentwise hyperbolic tangent of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 tanh(double4 x) { return new double4(tanh(x.x), tanh(x.y), tanh(x.z), tanh(x.w)); } /// Returns the arctangent of a float value. + /// A tangent value, usually the ratio y/x on the unit circle. + /// The arctangent of the input, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float atan(float x) { return (float)System.Math.Atan(x); } /// Returns the componentwise arctangent of a float2 vector. + /// A tangent value, usually the ratio y/x on the unit circle. + /// The componentwise arctangent of the input, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 atan(float2 x) { return new float2(atan(x.x), atan(x.y)); } /// Returns the componentwise arctangent of a float3 vector. + /// A tangent value, usually the ratio y/x on the unit circle. + /// The componentwise arctangent of the input, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 atan(float3 x) { return new float3(atan(x.x), atan(x.y), atan(x.z)); } /// Returns the componentwise arctangent of a float4 vector. + /// A tangent value, usually the ratio y/x on the unit circle. + /// The componentwise arctangent of the input, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 atan(float4 x) { return new float4(atan(x.x), atan(x.y), atan(x.z), atan(x.w)); } /// Returns the arctangent of a double value. + /// A tangent value, usually the ratio y/x on the unit circle. + /// The arctangent of the input, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double atan(double x) { return System.Math.Atan(x); } /// Returns the componentwise arctangent of a double2 vector. + /// A tangent value, usually the ratio y/x on the unit circle. + /// The componentwise arctangent of the input, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 atan(double2 x) { return new double2(atan(x.x), atan(x.y)); } /// Returns the componentwise arctangent of a double3 vector. + /// A tangent value, usually the ratio y/x on the unit circle. + /// The componentwise arctangent of the input, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 atan(double3 x) { return new double3(atan(x.x), atan(x.y), atan(x.z)); } /// Returns the componentwise arctangent of a double4 vector. + /// A tangent value, usually the ratio y/x on the unit circle. + /// The componentwise arctangent of the input, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 atan(double4 x) { return new double4(atan(x.x), atan(x.y), atan(x.z), atan(x.w)); } /// Returns the 2-argument arctangent of a pair of float values. + /// Numerator of the ratio y/x, usually the y component on the unit circle. + /// Denominator of the ratio y/x, usually the x component on the unit circle. + /// The arctangent of the ratio y/x, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float atan2(float y, float x) { return (float)System.Math.Atan2(y, x); } /// Returns the componentwise 2-argument arctangent of a pair of floats2 vectors. + /// Numerator of the ratio y/x, usually the y component on the unit circle. + /// Denominator of the ratio y/x, usually the x component on the unit circle. + /// The componentwise arctangent of the ratio y/x, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 atan2(float2 y, float2 x) { return new float2(atan2(y.x, x.x), atan2(y.y, x.y)); } /// Returns the componentwise 2-argument arctangent of a pair of floats3 vectors. + /// Numerator of the ratio y/x, usually the y component on the unit circle. + /// Denominator of the ratio y/x, usually the x component on the unit circle. + /// The componentwise arctangent of the ratio y/x, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 atan2(float3 y, float3 x) { return new float3(atan2(y.x, x.x), atan2(y.y, x.y), atan2(y.z, x.z)); } /// Returns the componentwise 2-argument arctangent of a pair of floats4 vectors. + /// Numerator of the ratio y/x, usually the y component on the unit circle. + /// Denominator of the ratio y/x, usually the x component on the unit circle. + /// The componentwise arctangent of the ratio y/x, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 atan2(float4 y, float4 x) { return new float4(atan2(y.x, x.x), atan2(y.y, x.y), atan2(y.z, x.z), atan2(y.w, x.w)); } /// Returns the 2-argument arctangent of a pair of double values. + /// Numerator of the ratio y/x, usually the y component on the unit circle. + /// Denominator of the ratio y/x, usually the x component on the unit circle. + /// The arctangent of the ratio y/x, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double atan2(double y, double x) { return System.Math.Atan2(y, x); } /// Returns the 2-argument arctangent of a pair of double2 vectors. + /// Numerator of the ratio y/x, usually the y component on the unit circle. + /// Denominator of the ratio y/x, usually the x component on the unit circle. + /// The componentwise arctangent of the ratio y/x, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 atan2(double2 y, double2 x) { return new double2(atan2(y.x, x.x), atan2(y.y, x.y)); } /// Returns the 2-argument arctangent of a pair of double3 vectors. + /// Numerator of the ratio y/x, usually the y component on the unit circle. + /// Denominator of the ratio y/x, usually the x component on the unit circle. + /// The componentwise arctangent of the ratio y/x, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 atan2(double3 y, double3 x) { return new double3(atan2(y.x, x.x), atan2(y.y, x.y), atan2(y.z, x.z)); } /// Returns the 2-argument arctangent of a pair of double4 vectors. + /// Numerator of the ratio y/x, usually the y component on the unit circle. + /// Denominator of the ratio y/x, usually the x component on the unit circle. + /// The componentwise arctangent of the ratio y/x, in radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 atan2(double4 y, double4 x) { return new double4(atan2(y.x, x.x), atan2(y.y, x.y), atan2(y.z, x.z), atan2(y.w, x.w)); } /// Returns the cosine of a float value. + /// Input value. + /// The cosine cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cos(float x) { return (float)System.Math.Cos(x); } /// Returns the componentwise cosine of a float2 vector. + /// Input value. + /// The componentwise cosine cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 cos(float2 x) { return new float2(cos(x.x), cos(x.y)); } /// Returns the componentwise cosine of a float3 vector. + /// Input value. + /// The componentwise cosine cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 cos(float3 x) { return new float3(cos(x.x), cos(x.y), cos(x.z)); } /// Returns the componentwise cosine of a float4 vector. + /// Input value. + /// The componentwise cosine cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 cos(float4 x) { return new float4(cos(x.x), cos(x.y), cos(x.z), cos(x.w)); } /// Returns the cosine of a double value. + /// Input value. + /// The cosine cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double cos(double x) { return System.Math.Cos(x); } /// Returns the componentwise cosine of a double2 vector. + /// Input value. + /// The componentwise cosine cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 cos(double2 x) { return new double2(cos(x.x), cos(x.y)); } /// Returns the componentwise cosine of a double3 vector. + /// Input value. + /// The componentwise cosine cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 cos(double3 x) { return new double3(cos(x.x), cos(x.y), cos(x.z)); } /// Returns the componentwise cosine of a double4 vector. + /// Input value. + /// The componentwise cosine cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 cos(double4 x) { return new double4(cos(x.x), cos(x.y), cos(x.z), cos(x.w)); } /// Returns the hyperbolic cosine of a float value. + /// Input value. + /// The hyperbolic cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cosh(float x) { return (float)System.Math.Cosh(x); } /// Returns the componentwise hyperbolic cosine of a float2 vector. + /// Input value. + /// The componentwise hyperbolic cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 cosh(float2 x) { return new float2(cosh(x.x), cosh(x.y)); } /// Returns the componentwise hyperbolic cosine of a float3 vector. + /// Input value. + /// The componentwise hyperbolic cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 cosh(float3 x) { return new float3(cosh(x.x), cosh(x.y), cosh(x.z)); } /// Returns the componentwise hyperbolic cosine of a float4 vector. + /// Input value. + /// The componentwise hyperbolic cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 cosh(float4 x) { return new float4(cosh(x.x), cosh(x.y), cosh(x.z), cosh(x.w)); } /// Returns the hyperbolic cosine of a double value. + /// Input value. + /// The hyperbolic cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double cosh(double x) { return System.Math.Cosh(x); } /// Returns the componentwise hyperbolic cosine of a double2 vector. + /// Input value. + /// The componentwise hyperbolic cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 cosh(double2 x) { return new double2(cosh(x.x), cosh(x.y)); } /// Returns the componentwise hyperbolic cosine of a double3 vector. + /// Input value. + /// The componentwise hyperbolic cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 cosh(double3 x) { return new double3(cosh(x.x), cosh(x.y), cosh(x.z)); } /// Returns the componentwise hyperbolic cosine of a double4 vector. + /// Input value. + /// The componentwise hyperbolic cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 cosh(double4 x) { return new double4(cosh(x.x), cosh(x.y), cosh(x.z), cosh(x.w)); } /// Returns the arccosine of a float value. + /// Input value. + /// The arccosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float acos(float x) { return (float)System.Math.Acos((float)x); } /// Returns the componentwise arccosine of a float2 vector. + /// Input value. + /// The componentwise arccosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 acos(float2 x) { return new float2(acos(x.x), acos(x.y)); } /// Returns the componentwise arccosine of a float3 vector. + /// Input value. + /// The componentwise arccosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 acos(float3 x) { return new float3(acos(x.x), acos(x.y), acos(x.z)); } /// Returns the componentwise arccosine of a float4 vector. + /// Input value. + /// The componentwise arccosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 acos(float4 x) { return new float4(acos(x.x), acos(x.y), acos(x.z), acos(x.w)); } /// Returns the arccosine of a double value. + /// Input value. + /// The arccosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double acos(double x) { return System.Math.Acos(x); } /// Returns the componentwise arccosine of a double2 vector. + /// Input value. + /// The componentwise arccosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 acos(double2 x) { return new double2(acos(x.x), acos(x.y)); } /// Returns the componentwise arccosine of a double3 vector. + /// Input value. + /// The componentwise arccosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 acos(double3 x) { return new double3(acos(x.x), acos(x.y), acos(x.z)); } /// Returns the componentwise arccosine of a double4 vector. + /// Input value. + /// The componentwise arccosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 acos(double4 x) { return new double4(acos(x.x), acos(x.y), acos(x.z), acos(x.w)); } /// Returns the sine of a float value. + /// Input value. + /// The sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float sin(float x) { return (float)System.Math.Sin((float)x); } /// Returns the componentwise sine of a float2 vector. + /// Input value. + /// The componentwise sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 sin(float2 x) { return new float2(sin(x.x), sin(x.y)); } /// Returns the componentwise sine of a float3 vector. + /// Input value. + /// The componentwise sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 sin(float3 x) { return new float3(sin(x.x), sin(x.y), sin(x.z)); } /// Returns the componentwise sine of a float4 vector. + /// Input value. + /// The componentwise sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 sin(float4 x) { return new float4(sin(x.x), sin(x.y), sin(x.z), sin(x.w)); } /// Returns the sine of a double value. + /// Input value. + /// The sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double sin(double x) { return System.Math.Sin(x); } /// Returns the componentwise sine of a double2 vector. + /// Input value. + /// The componentwise sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 sin(double2 x) { return new double2(sin(x.x), sin(x.y)); } /// Returns the componentwise sine of a double3 vector. + /// Input value. + /// The componentwise sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 sin(double3 x) { return new double3(sin(x.x), sin(x.y), sin(x.z)); } /// Returns the componentwise sine of a double4 vector. + /// Input value. + /// The componentwise sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 sin(double4 x) { return new double4(sin(x.x), sin(x.y), sin(x.z), sin(x.w)); } /// Returns the hyperbolic sine of a float value. + /// Input value. + /// The hyperbolic sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float sinh(float x) { return (float)System.Math.Sinh((float)x); } /// Returns the componentwise hyperbolic sine of a float2 vector. + /// Input value. + /// The componentwise hyperbolic sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 sinh(float2 x) { return new float2(sinh(x.x), sinh(x.y)); } /// Returns the componentwise hyperbolic sine of a float3 vector. + /// Input value. + /// The componentwise hyperbolic sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 sinh(float3 x) { return new float3(sinh(x.x), sinh(x.y), sinh(x.z)); } /// Returns the componentwise hyperbolic sine of a float4 vector. + /// Input value. + /// The componentwise hyperbolic sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 sinh(float4 x) { return new float4(sinh(x.x), sinh(x.y), sinh(x.z), sinh(x.w)); } /// Returns the hyperbolic sine of a double value. + /// Input value. + /// The hyperbolic sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double sinh(double x) { return System.Math.Sinh(x); } /// Returns the componentwise hyperbolic sine of a double2 vector. + /// Input value. + /// The componentwise hyperbolic sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 sinh(double2 x) { return new double2(sinh(x.x), sinh(x.y)); } /// Returns the componentwise hyperbolic sine of a double3 vector. + /// Input value. + /// The componentwise hyperbolic sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 sinh(double3 x) { return new double3(sinh(x.x), sinh(x.y), sinh(x.z)); } /// Returns the componentwise hyperbolic sine of a double4 vector. + /// Input value. + /// The componentwise hyperbolic sine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 sinh(double4 x) { return new double4(sinh(x.x), sinh(x.y), sinh(x.z), sinh(x.w)); } /// Returns the arcsine of a float value. + /// Input value. + /// The arcsine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float asin(float x) { return (float)System.Math.Asin((float)x); } /// Returns the componentwise arcsine of a float2 vector. + /// Input value. + /// The componentwise arcsine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 asin(float2 x) { return new float2(asin(x.x), asin(x.y)); } /// Returns the componentwise arcsine of a float3 vector. + /// Input value. + /// The componentwise arcsine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 asin(float3 x) { return new float3(asin(x.x), asin(x.y), asin(x.z)); } /// Returns the componentwise arcsine of a float4 vector. + /// Input value. + /// The componentwise arcsine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 asin(float4 x) { return new float4(asin(x.x), asin(x.y), asin(x.z), asin(x.w)); } /// Returns the arcsine of a double value. + /// Input value. + /// The arcsine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double asin(double x) { return System.Math.Asin(x); } /// Returns the componentwise arcsine of a double2 vector. + /// Input value. + /// The componentwise arcsine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 asin(double2 x) { return new double2(asin(x.x), asin(x.y)); } /// Returns the componentwise arcsine of a double3 vector. + /// Input value. + /// The componentwise arcsine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 asin(double3 x) { return new double3(asin(x.x), asin(x.y), asin(x.z)); } /// Returns the componentwise arcsine of a double4 vector. + /// Input value. + /// The componentwise arcsine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 asin(double4 x) { return new double4(asin(x.x), asin(x.y), asin(x.z), asin(x.w)); } /// Returns the result of rounding a float value up to the nearest integral value less or equal to the original value. + /// Input value. + /// The round down to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float floor(float x) { return (float)System.Math.Floor((float)x); } /// Returns the result of rounding each component of a float2 vector value down to the nearest value less or equal to the original value. + /// Input value. + /// The componentwise round down to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 floor(float2 x) { return new float2(floor(x.x), floor(x.y)); } /// Returns the result of rounding each component of a float3 vector value down to the nearest value less or equal to the original value. + /// Input value. + /// The componentwise round down to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 floor(float3 x) { return new float3(floor(x.x), floor(x.y), floor(x.z)); } /// Returns the result of rounding each component of a float4 vector value down to the nearest value less or equal to the original value. + /// Input value. + /// The componentwise round down to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 floor(float4 x) { return new float4(floor(x.x), floor(x.y), floor(x.z), floor(x.w)); } /// Returns the result of rounding a double value up to the nearest integral value less or equal to the original value. + /// Input value. + /// The round down to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double floor(double x) { return System.Math.Floor(x); } /// Returns the result of rounding each component of a double2 vector value down to the nearest value less or equal to the original value. + /// Input value. + /// The componentwise round down to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 floor(double2 x) { return new double2(floor(x.x), floor(x.y)); } /// Returns the result of rounding each component of a double3 vector value down to the nearest value less or equal to the original value. + /// Input value. + /// The componentwise round down to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 floor(double3 x) { return new double3(floor(x.x), floor(x.y), floor(x.z)); } /// Returns the result of rounding each component of a double4 vector value down to the nearest value less or equal to the original value. + /// Input value. + /// The componentwise round down to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 floor(double4 x) { return new double4(floor(x.x), floor(x.y), floor(x.z), floor(x.w)); } /// Returns the result of rounding a float value up to the nearest integral value greater or equal to the original value. + /// Input value. + /// The round up to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float ceil(float x) { return (float)System.Math.Ceiling((float)x); } /// Returns the result of rounding each component of a float2 vector value up to the nearest value greater or equal to the original value. + /// Input value. + /// The componentwise round up to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 ceil(float2 x) { return new float2(ceil(x.x), ceil(x.y)); } /// Returns the result of rounding each component of a float3 vector value up to the nearest value greater or equal to the original value. + /// Input value. + /// The componentwise round up to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 ceil(float3 x) { return new float3(ceil(x.x), ceil(x.y), ceil(x.z)); } /// Returns the result of rounding each component of a float4 vector value up to the nearest value greater or equal to the original value. + /// Input value. + /// The componentwise round up to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 ceil(float4 x) { return new float4(ceil(x.x), ceil(x.y), ceil(x.z), ceil(x.w)); } /// Returns the result of rounding a double value up to the nearest greater integral value greater or equal to the original value. + /// Input value. + /// The round up to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double ceil(double x) { return System.Math.Ceiling(x); } /// Returns the result of rounding each component of a double2 vector value up to the nearest integral value greater or equal to the original value. + /// Input value. + /// The componentwise round up to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 ceil(double2 x) { return new double2(ceil(x.x), ceil(x.y)); } /// Returns the result of rounding each component of a double3 vector value up to the nearest integral value greater or equal to the original value.. + /// Input value. + /// The componentwise round up to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 ceil(double3 x) { return new double3(ceil(x.x), ceil(x.y), ceil(x.z)); } /// Returns the result of rounding each component of a double4 vector value up to the nearest integral value greater or equal to the original value. + /// Input value. + /// The componentwise round up to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 ceil(double4 x) { return new double4(ceil(x.x), ceil(x.y), ceil(x.z), ceil(x.w)); } /// Returns the result of rounding a float value to the nearest integral value. + /// Input value. + /// The round to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float round(float x) { return (float)System.Math.Round((float)x); } /// Returns the result of rounding each component of a float2 vector value to the nearest integral value. + /// Input value. + /// The componentwise round to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 round(float2 x) { return new float2(round(x.x), round(x.y)); } /// Returns the result of rounding each component of a float3 vector value to the nearest integral value. + /// Input value. + /// The componentwise round to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 round(float3 x) { return new float3(round(x.x), round(x.y), round(x.z)); } /// Returns the result of rounding each component of a float4 vector value to the nearest integral value. + /// Input value. + /// The componentwise round to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 round(float4 x) { return new float4(round(x.x), round(x.y), round(x.z), round(x.w)); } /// Returns the result of rounding a double value to the nearest integral value. + /// Input value. + /// The round to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double round(double x) { return System.Math.Round(x); } /// Returns the result of rounding each component of a double2 vector value to the nearest integral value. + /// Input value. + /// The componentwise round to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 round(double2 x) { return new double2(round(x.x), round(x.y)); } /// Returns the result of rounding each component of a double3 vector value to the nearest integral value. + /// Input value. + /// The componentwise round to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 round(double3 x) { return new double3(round(x.x), round(x.y), round(x.z)); } /// Returns the result of rounding each component of a double4 vector value to the nearest integral value. + /// Input value. + /// The componentwise round to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 round(double4 x) { return new double4(round(x.x), round(x.y), round(x.z), round(x.w)); } /// Returns the result of truncating a float value to an integral float value. + /// Input value. + /// The truncation of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float trunc(float x) { return (float)System.Math.Truncate((float)x); } /// Returns the result of a componentwise truncation of a float2 value to an integral float2 value. + /// Input value. + /// The componentwise truncation of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 trunc(float2 x) { return new float2(trunc(x.x), trunc(x.y)); } /// Returns the result of a componentwise truncation of a float3 value to an integral float3 value. + /// Input value. + /// The componentwise truncation of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 trunc(float3 x) { return new float3(trunc(x.x), trunc(x.y), trunc(x.z)); } /// Returns the result of a componentwise truncation of a float4 value to an integral float4 value. + /// Input value. + /// The componentwise truncation of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 trunc(float4 x) { return new float4(trunc(x.x), trunc(x.y), trunc(x.z), trunc(x.w)); } /// Returns the result of truncating a double value to an integral double value. + /// Input value. + /// The truncation of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double trunc(double x) { return System.Math.Truncate(x); } /// Returns the result of a componentwise truncation of a double2 value to an integral double2 value. + /// Input value. + /// The componentwise truncation of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 trunc(double2 x) { return new double2(trunc(x.x), trunc(x.y)); } /// Returns the result of a componentwise truncation of a double3 value to an integral double3 value. + /// Input value. + /// The componentwise truncation of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 trunc(double3 x) { return new double3(trunc(x.x), trunc(x.y), trunc(x.z)); } /// Returns the result of a componentwise truncation of a double4 value to an integral double4 value. + /// Input value. + /// The componentwise truncation of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 trunc(double4 x) { return new double4(trunc(x.x), trunc(x.y), trunc(x.z), trunc(x.w)); } /// Returns the fractional part of a float value. + /// Input value. + /// The fractional part of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float frac(float x) { return x - floor(x); } /// Returns the componentwise fractional parts of a float2 vector. + /// Input value. + /// The componentwise fractional part of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 frac(float2 x) { return x - floor(x); } /// Returns the componentwise fractional parts of a float3 vector. + /// Input value. + /// The componentwise fractional part of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 frac(float3 x) { return x - floor(x); } /// Returns the componentwise fractional parts of a float4 vector. + /// Input value. + /// The componentwise fractional part of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 frac(float4 x) { return x - floor(x); } /// Returns the fractional part of a double value. + /// Input value. + /// The fractional part of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double frac(double x) { return x - floor(x); } /// Returns the componentwise fractional parts of a double2 vector. + /// Input value. + /// The componentwise fractional part of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 frac(double2 x) { return x - floor(x); } /// Returns the componentwise fractional parts of a double3 vector. + /// Input value. + /// The componentwise fractional part of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 frac(double3 x) { return x - floor(x); } /// Returns the componentwise fractional parts of a double4 vector. + /// Input value. + /// The componentwise fractional part of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 frac(double4 x) { return x - floor(x); } /// Returns the reciprocal a float value. + /// Input value. + /// The reciprocal of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float rcp(float x) { return 1.0f / x; } /// Returns the componentwise reciprocal a float2 vector. + /// Input value. + /// The componentwise reciprocal of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 rcp(float2 x) { return 1.0f / x; } /// Returns the componentwise reciprocal a float3 vector. + /// Input value. + /// The componentwise reciprocal of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 rcp(float3 x) { return 1.0f / x; } /// Returns the componentwise reciprocal a float4 vector. + /// Input value. + /// The componentwise reciprocal of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 rcp(float4 x) { return 1.0f / x; } /// Returns the reciprocal a double value. + /// Input value. + /// The reciprocal of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double rcp(double x) { return 1.0 / x; } /// Returns the componentwise reciprocal a double2 vector. + /// Input value. + /// The componentwise reciprocal of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 rcp(double2 x) { return 1.0 / x; } /// Returns the componentwise reciprocal a double3 vector. + /// Input value. + /// The componentwise reciprocal of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 rcp(double3 x) { return 1.0 / x; } /// Returns the componentwise reciprocal a double4 vector. + /// Input value. + /// The componentwise reciprocal of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 rcp(double4 x) { return 1.0 / x; } /// Returns the sign of a int value. -1 if it is less than zero, 0 if it is zero and 1 if it greater than zero. + /// Input value. + /// The sign of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int sign(int x) { return (x > 0 ? 1 : 0) - (x < 0 ? 1 : 0); } /// Returns the componentwise sign of a int2 value. 1 for positive components, 0 for zero components and -1 for negative components. + /// Input value. + /// The componentwise sign of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 sign(int2 x) { return new int2(sign(x.x), sign(x.y)); } /// Returns the componentwise sign of a int3 value. 1 for positive components, 0 for zero components and -1 for negative components. + /// Input value. + /// The componentwise sign of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 sign(int3 x) { return new int3(sign(x.x), sign(x.y), sign(x.z)); } /// Returns the componentwise sign of a int4 value. 1 for positive components, 0 for zero components and -1 for negative components. + /// Input value. + /// The componentwise sign of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 sign(int4 x) { return new int4(sign(x.x), sign(x.y), sign(x.z), sign(x.w)); } /// Returns the sign of a float value. -1.0f if it is less than zero, 0.0f if it is zero and 1.0f if it greater than zero. + /// Input value. + /// The sign of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float sign(float x) { return (x > 0.0f ? 1.0f : 0.0f) - (x < 0.0f ? 1.0f : 0.0f); } /// Returns the componentwise sign of a float2 value. 1.0f for positive components, 0.0f for zero components and -1.0f for negative components. + /// Input value. + /// The componentwise sign of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 sign(float2 x) { return new float2(sign(x.x), sign(x.y)); } /// Returns the componentwise sign of a float3 value. 1.0f for positive components, 0.0f for zero components and -1.0f for negative components. + /// Input value. + /// The componentwise sign of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 sign(float3 x) { return new float3(sign(x.x), sign(x.y), sign(x.z)); } /// Returns the componentwise sign of a float4 value. 1.0f for positive components, 0.0f for zero components and -1.0f for negative components. + /// Input value. + /// The componentwise sign of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 sign(float4 x) { return new float4(sign(x.x), sign(x.y), sign(x.z), sign(x.w)); } /// Returns the sign of a double value. -1.0 if it is less than zero, 0.0 if it is zero and 1.0 if it greater than zero. + /// Input value. + /// The sign of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double sign(double x) { return x == 0 ? 0 : (x > 0.0 ? 1.0 : 0.0) - (x < 0.0 ? 1.0 : 0.0); } /// Returns the componentwise sign of a double2 value. 1.0 for positive components, 0.0 for zero components and -1.0 for negative components. + /// Input value. + /// The componentwise sign of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 sign(double2 x) { return new double2(sign(x.x), sign(x.y)); } /// Returns the componentwise sign of a double3 value. 1.0 for positive components, 0.0 for zero components and -1.0 for negative components. + /// Input value. + /// The componentwise sign of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 sign(double3 x) { return new double3(sign(x.x), sign(x.y), sign(x.z)); } /// Returns the componentwise sign of a double4 value. 1.0 for positive components, 0.0 for zero components and -1.0 for negative components. + /// Input value. + /// The componentwise sign of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 sign(double4 x) { return new double4(sign(x.x), sign(x.y), sign(x.z), sign(x.w)); } /// Returns x raised to the power y. + /// The exponent base. + /// The exponent power. + /// The result of raising x to the power y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float pow(float x, float y) { return (float)System.Math.Pow((float)x, (float)y); } /// Returns the componentwise result of raising x to the power y. + /// The exponent base. + /// The exponent power. + /// The componentwise result of raising x to the power y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 pow(float2 x, float2 y) { return new float2(pow(x.x, y.x), pow(x.y, y.y)); } /// Returns the componentwise result of raising x to the power y. + /// The exponent base. + /// The exponent power. + /// The componentwise result of raising x to the power y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 pow(float3 x, float3 y) { return new float3(pow(x.x, y.x), pow(x.y, y.y), pow(x.z, y.z)); } /// Returns the componentwise result of raising x to the power y. + /// The exponent base. + /// The exponent power. + /// The componentwise result of raising x to the power y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 pow(float4 x, float4 y) { return new float4(pow(x.x, y.x), pow(x.y, y.y), pow(x.z, y.z), pow(x.w, y.w)); } /// Returns x raised to the power y. + /// The exponent base. + /// The exponent power. + /// The result of raising x to the power y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double pow(double x, double y) { return System.Math.Pow(x, y); } /// Returns the componentwise result of raising x to the power y. + /// The exponent base. + /// The exponent power. + /// The componentwise result of raising x to the power y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 pow(double2 x, double2 y) { return new double2(pow(x.x, y.x), pow(x.y, y.y)); } /// Returns the componentwise result of raising x to the power y. + /// The exponent base. + /// The exponent power. + /// The componentwise result of raising x to the power y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 pow(double3 x, double3 y) { return new double3(pow(x.x, y.x), pow(x.y, y.y), pow(x.z, y.z)); } /// Returns the componentwise result of raising x to the power y. + /// The exponent base. + /// The exponent power. + /// The componentwise result of raising x to the power y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 pow(double4 x, double4 y) { return new double4(pow(x.x, y.x), pow(x.y, y.y), pow(x.z, y.z), pow(x.w, y.w)); } /// Returns the base-e exponential of x. + /// Input value. + /// The base-e exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float exp(float x) { return (float)System.Math.Exp((float)x); } /// Returns the componentwise base-e exponential of x. + /// Input value. + /// The componentwise base-e exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 exp(float2 x) { return new float2(exp(x.x), exp(x.y)); } /// Returns the componentwise base-e exponential of x. + /// Input value. + /// The componentwise base-e exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 exp(float3 x) { return new float3(exp(x.x), exp(x.y), exp(x.z)); } /// Returns the componentwise base-e exponential of x. + /// Input value. + /// The componentwise base-e exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 exp(float4 x) { return new float4(exp(x.x), exp(x.y), exp(x.z), exp(x.w)); } /// Returns the base-e exponential of x. + /// Input value. + /// The base-e exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double exp(double x) { return System.Math.Exp(x); } /// Returns the componentwise base-e exponential of x. + /// Input value. + /// The componentwise base-e exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 exp(double2 x) { return new double2(exp(x.x), exp(x.y)); } /// Returns the componentwise base-e exponential of x. + /// Input value. + /// The componentwise base-e exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 exp(double3 x) { return new double3(exp(x.x), exp(x.y), exp(x.z)); } /// Returns the componentwise base-e exponential of x. + /// Input value. + /// The componentwise base-e exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 exp(double4 x) { return new double4(exp(x.x), exp(x.y), exp(x.z), exp(x.w)); } /// Returns the base-2 exponential of x. + /// Input value. + /// The base-2 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float exp2(float x) { return (float)System.Math.Exp((float)x * 0.69314718f); } /// Returns the componentwise base-2 exponential of x. + /// Input value. + /// The componentwise base-2 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 exp2(float2 x) { return new float2(exp2(x.x), exp2(x.y)); } /// Returns the componentwise base-2 exponential of x. + /// Input value. + /// The componentwise base-2 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 exp2(float3 x) { return new float3(exp2(x.x), exp2(x.y), exp2(x.z)); } /// Returns the componentwise base-2 exponential of x. + /// Input value. + /// The componentwise base-2 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 exp2(float4 x) { return new float4(exp2(x.x), exp2(x.y), exp2(x.z), exp2(x.w)); } /// Returns the base-2 exponential of x. + /// Input value. + /// The base-2 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double exp2(double x) { return System.Math.Exp(x * 0.693147180559945309); } /// Returns the componentwise base-2 exponential of x. + /// Input value. + /// The componentwise base-2 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 exp2(double2 x) { return new double2(exp2(x.x), exp2(x.y)); } /// Returns the componentwise base-2 exponential of x. + /// Input value. + /// The componentwise base-2 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 exp2(double3 x) { return new double3(exp2(x.x), exp2(x.y), exp2(x.z)); } /// Returns the componentwise base-2 exponential of x. + /// Input value. + /// The componentwise base-2 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 exp2(double4 x) { return new double4(exp2(x.x), exp2(x.y), exp2(x.z), exp2(x.w)); } /// Returns the base-10 exponential of x. + /// Input value. + /// The base-10 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float exp10(float x) { return (float)System.Math.Exp((float)x * 2.30258509f); } /// Returns the componentwise base-10 exponential of x. + /// Input value. + /// The componentwise base-10 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 exp10(float2 x) { return new float2(exp10(x.x), exp10(x.y)); } /// Returns the componentwise base-10 exponential of x. + /// Input value. + /// The componentwise base-10 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 exp10(float3 x) { return new float3(exp10(x.x), exp10(x.y), exp10(x.z)); } /// Returns the componentwise base-10 exponential of x. + /// Input value. + /// The componentwise base-10 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 exp10(float4 x) { return new float4(exp10(x.x), exp10(x.y), exp10(x.z), exp10(x.w)); } /// Returns the base-10 exponential of x. + /// Input value. + /// The base-10 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double exp10(double x) { return System.Math.Exp(x * 2.302585092994045684); } /// Returns the componentwise base-10 exponential of x. + /// Input value. + /// The componentwise base-10 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 exp10(double2 x) { return new double2(exp10(x.x), exp10(x.y)); } /// Returns the componentwise base-10 exponential of x. + /// Input value. + /// The componentwise base-10 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 exp10(double3 x) { return new double3(exp10(x.x), exp10(x.y), exp10(x.z)); } /// Returns the componentwise base-10 exponential of x. + /// Input value. + /// The componentwise base-10 exponential of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 exp10(double4 x) { return new double4(exp10(x.x), exp10(x.y), exp10(x.z), exp10(x.w)); } /// Returns the natural logarithm of a float value. + /// Input value. + /// The natural logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float log(float x) { return (float)System.Math.Log((float)x); } /// Returns the componentwise natural logarithm of a float2 vector. + /// Input value. + /// The componentwise natural logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 log(float2 x) { return new float2(log(x.x), log(x.y)); } /// Returns the componentwise natural logarithm of a float3 vector. + /// Input value. + /// The componentwise natural logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 log(float3 x) { return new float3(log(x.x), log(x.y), log(x.z)); } /// Returns the componentwise natural logarithm of a float4 vector. + /// Input value. + /// The componentwise natural logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 log(float4 x) { return new float4(log(x.x), log(x.y), log(x.z), log(x.w)); } /// Returns the natural logarithm of a double value. + /// Input value. + /// The natural logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double log(double x) { return System.Math.Log(x); } /// Returns the componentwise natural logarithm of a double2 vector. + /// Input value. + /// The componentwise natural logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 log(double2 x) { return new double2(log(x.x), log(x.y)); } /// Returns the componentwise natural logarithm of a double3 vector. + /// Input value. + /// The componentwise natural logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 log(double3 x) { return new double3(log(x.x), log(x.y), log(x.z)); } /// Returns the componentwise natural logarithm of a double4 vector. + /// Input value. + /// The componentwise natural logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 log(double4 x) { return new double4(log(x.x), log(x.y), log(x.z), log(x.w)); } /// Returns the base-2 logarithm of a float value. + /// Input value. + /// The base-2 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float log2(float x) { return (float)System.Math.Log((float)x, 2.0f); } /// Returns the componentwise base-2 logarithm of a float2 vector. + /// Input value. + /// The componentwise base-2 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 log2(float2 x) { return new float2(log2(x.x), log2(x.y)); } /// Returns the componentwise base-2 logarithm of a float3 vector. + /// Input value. + /// The componentwise base-2 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 log2(float3 x) { return new float3(log2(x.x), log2(x.y), log2(x.z)); } /// Returns the componentwise base-2 logarithm of a float4 vector. + /// Input value. + /// The componentwise base-2 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 log2(float4 x) { return new float4(log2(x.x), log2(x.y), log2(x.z), log2(x.w)); } /// Returns the base-2 logarithm of a double value. + /// Input value. + /// The base-2 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double log2(double x) { return System.Math.Log(x, 2.0); } /// Returns the componentwise base-2 logarithm of a double2 vector. + /// Input value. + /// The componentwise base-2 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 log2(double2 x) { return new double2(log2(x.x), log2(x.y)); } /// Returns the componentwise base-2 logarithm of a double3 vector. + /// Input value. + /// The componentwise base-2 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 log2(double3 x) { return new double3(log2(x.x), log2(x.y), log2(x.z)); } /// Returns the componentwise base-2 logarithm of a double4 vector. + /// Input value. + /// The componentwise base-2 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 log2(double4 x) { return new double4(log2(x.x), log2(x.y), log2(x.z), log2(x.w)); } /// Returns the base-10 logarithm of a float value. + /// Input value. + /// The base-10 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float log10(float x) { return (float)System.Math.Log10((float)x); } /// Returns the componentwise base-10 logarithm of a float2 vector. + /// Input value. + /// The componentwise base-10 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 log10(float2 x) { return new float2(log10(x.x), log10(x.y)); } /// Returns the componentwise base-10 logarithm of a float3 vector. + /// Input value. + /// The componentwise base-10 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 log10(float3 x) { return new float3(log10(x.x), log10(x.y), log10(x.z)); } /// Returns the componentwise base-10 logarithm of a float4 vector. + /// Input value. + /// The componentwise base-10 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 log10(float4 x) { return new float4(log10(x.x), log10(x.y), log10(x.z), log10(x.w)); } /// Returns the base-10 logarithm of a double value. + /// Input value. + /// The base-10 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double log10(double x) { return System.Math.Log10(x); } /// Returns the componentwise base-10 logarithm of a double2 vector. + /// Input value. + /// The componentwise base-10 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 log10(double2 x) { return new double2(log10(x.x), log10(x.y)); } /// Returns the componentwise base-10 logarithm of a double3 vector. + /// Input value. + /// The componentwise base-10 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 log10(double3 x) { return new double3(log10(x.x), log10(x.y), log10(x.z)); } /// Returns the componentwise base-10 logarithm of a double4 vector. + /// Input value. + /// The componentwise base-10 logarithm of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 log10(double4 x) { return new double4(log10(x.x), log10(x.y), log10(x.z), log10(x.w)); } /// Returns the floating point remainder of x/y. + /// The dividend in x/y. + /// The divisor in x/y. + /// The remainder of x/y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float fmod(float x, float y) { return x % y; } /// Returns the componentwise floating point remainder of x/y. + /// The dividend in x/y. + /// The divisor in x/y. + /// The componentwise remainder of x/y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 fmod(float2 x, float2 y) { return new float2(x.x % y.x, x.y % y.y); } /// Returns the componentwise floating point remainder of x/y. + /// The dividend in x/y. + /// The divisor in x/y. + /// The componentwise remainder of x/y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 fmod(float3 x, float3 y) { return new float3(x.x % y.x, x.y % y.y, x.z % y.z); } /// Returns the componentwise floating point remainder of x/y. + /// The dividend in x/y. + /// The divisor in x/y. + /// The componentwise remainder of x/y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 fmod(float4 x, float4 y) { return new float4(x.x % y.x, x.y % y.y, x.z % y.z, x.w % y.w); } /// Returns the double precision floating point remainder of x/y. + /// The dividend in x/y. + /// The divisor in x/y. + /// The remainder of x/y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double fmod(double x, double y) { return x % y; } /// Returns the componentwise double precision floating point remainder of x/y. + /// The dividend in x/y. + /// The divisor in x/y. + /// The componentwise remainder of x/y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 fmod(double2 x, double2 y) { return new double2(x.x % y.x, x.y % y.y); } /// Returns the componentwise double precision floating point remainder of x/y. + /// The dividend in x/y. + /// The divisor in x/y. + /// The componentwise remainder of x/y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 fmod(double3 x, double3 y) { return new double3(x.x % y.x, x.y % y.y, x.z % y.z); } /// Returns the componentwise double precision floating point remainder of x/y. + /// The dividend in x/y. + /// The divisor in x/y. + /// The componentwise remainder of x/y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 fmod(double4 x, double4 y) { return new double4(x.x % y.x, x.y % y.y, x.z % y.z, x.w % y.w); } /// Splits a float value into an integral part i and a fractional part that gets returned. Both parts take the sign of the input. + /// Value to split into integral and fractional part. + /// Output value containing integral part of x. + /// The fractional part of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float modf(float x, out float i) { i = trunc(x); return x - i; } @@ -1999,6 +3129,9 @@ public static bool4 ispow2(uint4 x) /// Performs a componentwise split of a float2 vector into an integral part i and a fractional part that gets returned. /// Both parts take the sign of the corresponding input component. /// + /// Value to split into integral and fractional part. + /// Output value containing integral part of x. + /// The componentwise fractional part of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 modf(float2 x, out float2 i) { i = trunc(x); return x - i; } @@ -2006,6 +3139,9 @@ public static bool4 ispow2(uint4 x) /// Performs a componentwise split of a float3 vector into an integral part i and a fractional part that gets returned. /// Both parts take the sign of the corresponding input component. /// + /// Value to split into integral and fractional part. + /// Output value containing integral part of x. + /// The componentwise fractional part of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 modf(float3 x, out float3 i) { i = trunc(x); return x - i; } @@ -2013,11 +3149,17 @@ public static bool4 ispow2(uint4 x) /// Performs a componentwise split of a float4 vector into an integral part i and a fractional part that gets returned. /// Both parts take the sign of the corresponding input component. /// + /// Value to split into integral and fractional part. + /// Output value containing integral part of x. + /// The componentwise fractional part of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 modf(float4 x, out float4 i) { i = trunc(x); return x - i; } /// Splits a double value into an integral part i and a fractional part that gets returned. Both parts take the sign of the input. + /// Value to split into integral and fractional part. + /// Output value containing integral part of x. + /// The fractional part of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double modf(double x, out double i) { i = trunc(x); return x - i; } @@ -2025,6 +3167,9 @@ public static bool4 ispow2(uint4 x) /// Performs a componentwise split of a double2 vector into an integral part i and a fractional part that gets returned. /// Both parts take the sign of the corresponding input component. /// + /// Value to split into integral and fractional part. + /// Output value containing integral part of x. + /// The componentwise fractional part of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 modf(double2 x, out double2 i) { i = trunc(x); return x - i; } @@ -2032,6 +3177,9 @@ public static bool4 ispow2(uint4 x) /// Performs a componentwise split of a double3 vector into an integral part i and a fractional part that gets returned. /// Both parts take the sign of the corresponding input component. /// + /// Value to split into integral and fractional part. + /// Output value containing integral part of x. + /// The componentwise fractional part of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 modf(double3 x, out double3 i) { i = trunc(x); return x - i; } @@ -2039,100 +3187,147 @@ public static bool4 ispow2(uint4 x) /// Performs a componentwise split of a double4 vector into an integral part i and a fractional part that gets returned. /// Both parts take the sign of the corresponding input component. /// + /// Value to split into integral and fractional part. + /// Output value containing integral part of x. + /// The componentwise fractional part of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 modf(double4 x, out double4 i) { i = trunc(x); return x - i; } /// Returns the square root of a float value. + /// Value to use when computing square root. + /// The square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float sqrt(float x) { return (float)System.Math.Sqrt((float)x); } /// Returns the componentwise square root of a float2 vector. + /// Value to use when computing square root. + /// The componentwise square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 sqrt(float2 x) { return new float2(sqrt(x.x), sqrt(x.y)); } /// Returns the componentwise square root of a float3 vector. + /// Value to use when computing square root. + /// The componentwise square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 sqrt(float3 x) { return new float3(sqrt(x.x), sqrt(x.y), sqrt(x.z)); } /// Returns the componentwise square root of a float4 vector. + /// Value to use when computing square root. + /// The componentwise square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 sqrt(float4 x) { return new float4(sqrt(x.x), sqrt(x.y), sqrt(x.z), sqrt(x.w)); } /// Returns the square root of a double value. + /// Value to use when computing square root. + /// The square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double sqrt(double x) { return System.Math.Sqrt(x); } /// Returns the componentwise square root of a double2 vector. + /// Value to use when computing square root. + /// The componentwise square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 sqrt(double2 x) { return new double2(sqrt(x.x), sqrt(x.y)); } /// Returns the componentwise square root of a double3 vector. + /// Value to use when computing square root. + /// The componentwise square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 sqrt(double3 x) { return new double3(sqrt(x.x), sqrt(x.y), sqrt(x.z)); } /// Returns the componentwise square root of a double4 vector. + /// Value to use when computing square root. + /// The componentwise square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 sqrt(double4 x) { return new double4(sqrt(x.x), sqrt(x.y), sqrt(x.z), sqrt(x.w)); } /// Returns the reciprocal square root of a float value. + /// Value to use when computing reciprocal square root. + /// The reciprocal square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float rsqrt(float x) { return 1.0f / sqrt(x); } /// Returns the componentwise reciprocal square root of a float2 vector. + /// Value to use when computing reciprocal square root. + /// The componentwise reciprocal square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 rsqrt(float2 x) { return 1.0f / sqrt(x); } /// Returns the componentwise reciprocal square root of a float3 vector. + /// Value to use when computing reciprocal square root. + /// The componentwise reciprocal square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 rsqrt(float3 x) { return 1.0f / sqrt(x); } /// Returns the componentwise reciprocal square root of a float4 vector + /// Value to use when computing reciprocal square root. + /// The componentwise reciprocal square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 rsqrt(float4 x) { return 1.0f / sqrt(x); } /// Returns the reciprocal square root of a double value. + /// Value to use when computing reciprocal square root. + /// The reciprocal square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double rsqrt(double x) { return 1.0 / sqrt(x); } /// Returns the componentwise reciprocal square root of a double2 vector. + /// Value to use when computing reciprocal square root. + /// The componentwise reciprocal square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 rsqrt(double2 x) { return 1.0 / sqrt(x); } /// Returns the componentwise reciprocal square root of a double3 vector. + /// Value to use when computing reciprocal square root. + /// The componentwise reciprocal square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 rsqrt(double3 x) { return 1.0 / sqrt(x); } /// Returns the componentwise reciprocal square root of a double4 vector. + /// Value to use when computing reciprocal square root. + /// The componentwise reciprocal square root. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 rsqrt(double4 x) { return 1.0 / sqrt(x); } /// Returns a normalized version of the float2 vector x by scaling it by 1 / length(x). + /// Vector to normalize. + /// The normalized vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 normalize(float2 x) { return rsqrt(dot(x, x)) * x; } /// Returns a normalized version of the float3 vector x by scaling it by 1 / length(x). + /// Vector to normalize. + /// The normalized vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 normalize(float3 x) { return rsqrt(dot(x, x)) * x; } /// Returns a normalized version of the float4 vector x by scaling it by 1 / length(x). + /// Vector to normalize. + /// The normalized vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 normalize(float4 x) { return rsqrt(dot(x, x)) * x; } /// Returns a normalized version of the double2 vector x by scaling it by 1 / length(x). + /// Vector to normalize. + /// The normalized vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 normalize(double2 x) { return rsqrt(dot(x, x)) * x; } /// Returns a normalized version of the double3 vector x by scaling it by 1 / length(x). + /// Vector to normalize. + /// The normalized vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 normalize(double3 x) { return rsqrt(dot(x, x)) * x; } /// Returns a normalized version of the double4 vector x by scaling it by 1 / length(x). + /// Vector to normalize. + /// The normalized vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 normalize(double4 x) { return rsqrt(dot(x, x)) * x; } @@ -2141,6 +3336,9 @@ public static bool4 ispow2(uint4 x) /// Returns a safe normalized version of the float2 vector x by scaling it by 1 / length(x). /// Returns the given default value when 1 / length(x) does not produce a finite number. /// + /// Vector to normalize. + /// Vector to return if normalized vector is not finite. + /// The normalized vector or the default value if the normalized vector is not finite. [MethodImpl(MethodImplOptions.AggressiveInlining)] static public float2 normalizesafe(float2 x, float2 defaultvalue = new float2()) { @@ -2152,6 +3350,9 @@ public static bool4 ispow2(uint4 x) /// Returns a safe normalized version of the float3 vector x by scaling it by 1 / length(x). /// Returns the given default value when 1 / length(x) does not produce a finite number. /// + /// Vector to normalize. + /// Vector to return if normalized vector is not finite. + /// The normalized vector or the default value if the normalized vector is not finite. [MethodImpl(MethodImplOptions.AggressiveInlining)] static public float3 normalizesafe(float3 x, float3 defaultvalue = new float3()) { @@ -2163,6 +3364,9 @@ public static bool4 ispow2(uint4 x) /// Returns a safe normalized version of the float4 vector x by scaling it by 1 / length(x). /// Returns the given default value when 1 / length(x) does not produce a finite number. /// + /// Vector to normalize. + /// Vector to return if normalized vector is not finite. + /// The normalized vector or the default value if the normalized vector is not finite. [MethodImpl(MethodImplOptions.AggressiveInlining)] static public float4 normalizesafe(float4 x, float4 defaultvalue = new float4()) { @@ -2175,6 +3379,9 @@ public static bool4 ispow2(uint4 x) /// Returns a safe normalized version of the double4 vector x by scaling it by 1 / length(x). /// Returns the given default value when 1 / length(x) does not produce a finite number. /// + /// Vector to normalize. + /// Vector to return if normalized vector is not finite. + /// The normalized vector or the default value if the normalized vector is not finite. [MethodImpl(MethodImplOptions.AggressiveInlining)] static public double2 normalizesafe(double2 x, double2 defaultvalue = new double2()) { @@ -2186,6 +3393,9 @@ public static bool4 ispow2(uint4 x) /// Returns a safe normalized version of the double4 vector x by scaling it by 1 / length(x). /// Returns the given default value when 1 / length(x) does not produce a finite number. /// + /// Vector to normalize. + /// Vector to return if normalized vector is not finite. + /// The normalized vector or the default value if the normalized vector is not finite. [MethodImpl(MethodImplOptions.AggressiveInlining)] static public double3 normalizesafe(double3 x, double3 defaultvalue = new double3()) { @@ -2197,6 +3407,9 @@ public static bool4 ispow2(uint4 x) /// Returns a safe normalized version of the double4 vector x by scaling it by 1 / length(x). /// Returns the given default value when 1 / length(x) does not produce a finite number. /// + /// Vector to normalize. + /// Vector to return if normalized vector is not finite. + /// The normalized vector or the default value if the normalized vector is not finite. [MethodImpl(MethodImplOptions.AggressiveInlining)] static public double4 normalizesafe(double4 x, double4 defaultvalue = new double4()) { @@ -2206,151 +3419,241 @@ public static bool4 ispow2(uint4 x) /// Returns the length of a float value. Equivalent to the absolute value. + /// Value to use when computing length. + /// Length of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float length(float x) { return abs(x); } /// Returns the length of a float2 vector. + /// Vector to use when computing length. + /// Length of vector x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float length(float2 x) { return sqrt(dot(x, x)); } /// Returns the length of a float3 vector. + /// Vector to use when computing length. + /// Length of vector x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float length(float3 x) { return sqrt(dot(x, x)); } /// Returns the length of a float4 vector. + /// Vector to use when computing length. + /// Length of vector x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float length(float4 x) { return sqrt(dot(x, x)); } /// Returns the length of a double value. Equivalent to the absolute value. + /// Value to use when computing squared length. + /// Squared length of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double length(double x) { return abs(x); } /// Returns the length of a double2 vector. + /// Vector to use when computing squared length. + /// Squared length of vector x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double length(double2 x) { return sqrt(dot(x, x)); } /// Returns the length of a double3 vector. + /// Vector to use when computing squared length. + /// Squared length of vector x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double length(double3 x) { return sqrt(dot(x, x)); } /// Returns the length of a double4 vector. + /// Vector to use when computing squared length. + /// Squared length of vector x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double length(double4 x) { return sqrt(dot(x, x)); } /// Returns the squared length of a float value. Equivalent to squaring the value. + /// Value to use when computing squared length. + /// Squared length of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float lengthsq(float x) { return x*x; } /// Returns the squared length of a float2 vector. + /// Vector to use when computing squared length. + /// Squared length of vector x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float lengthsq(float2 x) { return dot(x, x); } /// Returns the squared length of a float3 vector. + /// Vector to use when computing squared length. + /// Squared length of vector x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float lengthsq(float3 x) { return dot(x, x); } /// Returns the squared length of a float4 vector. + /// Vector to use when computing squared length. + /// Squared length of vector x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float lengthsq(float4 x) { return dot(x, x); } /// Returns the squared length of a double value. Equivalent to squaring the value. + /// Value to use when computing squared length. + /// Squared length of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double lengthsq(double x) { return x * x; } /// Returns the squared length of a double2 vector. + /// Vector to use when computing squared length. + /// Squared length of vector x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double lengthsq(double2 x) { return dot(x, x); } /// Returns the squared length of a double3 vector. + /// Vector to use when computing squared length. + /// Squared length of vector x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double lengthsq(double3 x) { return dot(x, x); } /// Returns the squared length of a double4 vector. + /// Vector to use when computing squared length. + /// Squared length of vector x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double lengthsq(double4 x) { return dot(x, x); } /// Returns the distance between two float values. + /// First value to use in distance computation. + /// Second value to use in distance computation. + /// The distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distance(float x, float y) { return abs(y - x); } /// Returns the distance between two float2 vectors. + /// First vector to use in distance computation. + /// Second vector to use in distance computation. + /// The distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distance(float2 x, float2 y) { return length(y - x); } /// Returns the distance between two float3 vectors. + /// First vector to use in distance computation. + /// Second vector to use in distance computation. + /// The distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distance(float3 x, float3 y) { return length(y - x); } /// Returns the distance between two float4 vectors. + /// First vector to use in distance computation. + /// Second vector to use in distance computation. + /// The distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distance(float4 x, float4 y) { return length(y - x); } /// Returns the distance between two double values. + /// First value to use in distance computation. + /// Second value to use in distance computation. + /// The distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distance(double x, double y) { return abs(y - x); } /// Returns the distance between two double2 vectors. + /// First vector to use in distance computation. + /// Second vector to use in distance computation. + /// The distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distance(double2 x, double2 y) { return length(y - x); } /// Returns the distance between two double3 vectors. + /// First vector to use in distance computation. + /// Second vector to use in distance computation. + /// The distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distance(double3 x, double3 y) { return length(y - x); } /// Returns the distance between two double4 vectors. + /// First vector to use in distance computation. + /// Second vector to use in distance computation. + /// The distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distance(double4 x, double4 y) { return length(y - x); } - /// Returns the distance between two float values. + /// Returns the squared distance between two float values. + /// First value to use in distance computation. + /// Second value to use in distance computation. + /// The squared distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distancesq(float x, float y) { return (y - x) * (y - x); } - /// Returns the distance between two float2 vectors. + /// Returns the squared distance between two float2 vectors. + /// First vector to use in distance computation. + /// Second vector to use in distance computation. + /// The squared distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distancesq(float2 x, float2 y) { return lengthsq(y - x); } - /// Returns the distance between two float3 vectors. + /// Returns the squared distance between two float3 vectors. + /// First vector to use in distance computation. + /// Second vector to use in distance computation. + /// The squared distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distancesq(float3 x, float3 y) { return lengthsq(y - x); } - /// Returns the distance between two float4 vectors. + /// Returns the squared distance between two float4 vectors. + /// First vector to use in distance computation. + /// Second vector to use in distance computation. + /// The squared distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float distancesq(float4 x, float4 y) { return lengthsq(y - x); } - /// Returns the distance between two double values. + /// Returns the squared distance between two double values. + /// First value to use in distance computation. + /// Second value to use in distance computation. + /// The squared distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distancesq(double x, double y) { return (y - x) * (y - x); } - /// Returns the distance between two double2 vectors. + /// Returns the squared distance between two double2 vectors. + /// First vector to use in distance computation. + /// Second vector to use in distance computation. + /// The squared distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distancesq(double2 x, double2 y) { return lengthsq(y - x); } - /// Returns the distance between two double3 vectors. + /// Returns the squared distance between two double3 vectors. + /// First vector to use in distance computation. + /// Second vector to use in distance computation. + /// The squared distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distancesq(double3 x, double3 y) { return lengthsq(y - x); } - /// Returns the distance between two double4 vectors. + /// Returns the squared distance between two double4 vectors. + /// First vector to use in distance computation. + /// Second vector to use in distance computation. + /// The squared distance between x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double distancesq(double4 x, double4 y) { return lengthsq(y - x); } /// Returns the cross product of two float3 vectors. + /// First vector to use in cross product. + /// Second vector to use in cross product. + /// The cross product of x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 cross(float3 x, float3 y) { return (x * y.yzx - x.yzx * y).yzx; } /// Returns the cross product of two double3 vectors. + /// First vector to use in cross product. + /// Second vector to use in cross product. + /// The cross product of x and y. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 cross(double3 x, double3 y) { return (x * y.yzx - x.yzx * y).yzx; } /// Returns a smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. + /// The value to be interpolated. + /// Returns a value camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float smoothstep(float a, float b, float x) { @@ -2359,6 +3662,10 @@ public static float smoothstep(float a, float b, float x) } /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. + /// The value to be interpolated. + /// Returns component values camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 smoothstep(float2 a, float2 b, float2 x) { @@ -2367,6 +3674,10 @@ public static float2 smoothstep(float2 a, float2 b, float2 x) } /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. + /// The value to be interpolated. + /// Returns component values camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 smoothstep(float3 a, float3 b, float3 x) { @@ -2375,6 +3686,10 @@ public static float3 smoothstep(float3 a, float3 b, float3 x) } /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. + /// The value to be interpolated. + /// Returns component values camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 smoothstep(float4 a, float4 b, float4 x) { @@ -2384,6 +3699,10 @@ public static float4 smoothstep(float4 a, float4 b, float4 x) /// Returns a smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. + /// The value to be interpolated. + /// Returns a value camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double smoothstep(double a, double b, double x) { @@ -2392,6 +3711,10 @@ public static double smoothstep(double a, double b, double x) } /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. + /// The value to be interpolated. + /// Returns component values camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 smoothstep(double2 a, double2 b, double2 x) { @@ -2400,6 +3723,10 @@ public static double2 smoothstep(double2 a, double2 b, double2 x) } /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. + /// The value to be interpolated. + /// Returns component values camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 smoothstep(double3 a, double3 b, double3 x) { @@ -2408,6 +3735,10 @@ public static double3 smoothstep(double3 a, double3 b, double3 x) } /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. + /// The value to be interpolated. + /// Returns component values camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 smoothstep(double4 a, double4 b, double4 x) { @@ -2417,288 +3748,464 @@ public static double4 smoothstep(double4 a, double4 b, double4 x) /// Returns true if any component of the input bool2 vector is true, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are true, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(bool2 x) { return x.x || x.y; } /// Returns true if any component of the input bool3 vector is true, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are true, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(bool3 x) { return x.x || x.y || x.z; } /// Returns true if any components of the input bool4 vector is true, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are true, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(bool4 x) { return x.x || x.y || x.z || x.w; } /// Returns true if any component of the input int2 vector is non-zero, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(int2 x) { return x.x != 0 || x.y != 0; } /// Returns true if any component of the input int3 vector is non-zero, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(int3 x) { return x.x != 0 || x.y != 0 || x.z != 0; } /// Returns true if any components of the input int4 vector is non-zero, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(int4 x) { return x.x != 0 || x.y != 0 || x.z != 0 || x.w != 0; } /// Returns true if any component of the input uint2 vector is non-zero, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(uint2 x) { return x.x != 0 || x.y != 0; } /// Returns true if any component of the input uint3 vector is non-zero, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(uint3 x) { return x.x != 0 || x.y != 0 || x.z != 0; } /// Returns true if any components of the input uint4 vector is non-zero, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(uint4 x) { return x.x != 0 || x.y != 0 || x.z != 0 || x.w != 0; } /// Returns true if any component of the input float2 vector is non-zero, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(float2 x) { return x.x != 0.0f || x.y != 0.0f; } /// Returns true if any component of the input float3 vector is non-zero, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(float3 x) { return x.x != 0.0f || x.y != 0.0f || x.z != 0.0f; } /// Returns true if any component of the input float4 vector is non-zero, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(float4 x) { return x.x != 0.0f || x.y != 0.0f || x.z != 0.0f || x.w != 0.0f; } /// Returns true if any component of the input double2 vector is non-zero, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(double2 x) { return x.x != 0.0 || x.y != 0.0; } /// Returns true if any component of the input double3 vector is non-zero, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(double3 x) { return x.x != 0.0 || x.y != 0.0 || x.z != 0.0; } /// Returns true if any component of the input double4 vector is non-zero, false otherwise. + /// Vector of values to compare. + /// True if any the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool any(double4 x) { return x.x != 0.0 || x.y != 0.0 || x.z != 0.0 || x.w != 0.0; } /// Returns true if all components of the input bool2 vector are true, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are true, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(bool2 x) { return x.x && x.y; } /// Returns true if all components of the input bool3 vector are true, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are true, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(bool3 x) { return x.x && x.y && x.z; } /// Returns true if all components of the input bool4 vector are true, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are true, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(bool4 x) { return x.x && x.y && x.z && x.w; } /// Returns true if all components of the input int2 vector are non-zero, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(int2 x) { return x.x != 0 && x.y != 0; } /// Returns true if all components of the input int3 vector are non-zero, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(int3 x) { return x.x != 0 && x.y != 0 && x.z != 0; } /// Returns true if all components of the input int4 vector are non-zero, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(int4 x) { return x.x != 0 && x.y != 0 && x.z != 0 && x.w != 0; } /// Returns true if all components of the input uint2 vector are non-zero, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(uint2 x) { return x.x != 0 && x.y != 0; } /// Returns true if all components of the input uint3 vector are non-zero, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(uint3 x) { return x.x != 0 && x.y != 0 && x.z != 0; } /// Returns true if all components of the input uint4 vector are non-zero, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(uint4 x) { return x.x != 0 && x.y != 0 && x.z != 0 && x.w != 0; } /// Returns true if all components of the input float2 vector are non-zero, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(float2 x) { return x.x != 0.0f && x.y != 0.0f; } /// Returns true if all components of the input float3 vector are non-zero, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(float3 x) { return x.x != 0.0f && x.y != 0.0f && x.z != 0.0f; } /// Returns true if all components of the input float4 vector are non-zero, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(float4 x) { return x.x != 0.0f && x.y != 0.0f && x.z != 0.0f && x.w != 0.0f; } /// Returns true if all components of the input double2 vector are non-zero, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(double2 x) { return x.x != 0.0 && x.y != 0.0; } /// Returns true if all components of the input double3 vector are non-zero, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(double3 x) { return x.x != 0.0 && x.y != 0.0 && x.z != 0.0; } /// Returns true if all components of the input double4 vector are non-zero, false otherwise. + /// Vector of values to compare. + /// True if all the components of x are non-zero, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool all(double4 x) { return x.x != 0.0 && x.y != 0.0 && x.z != 0.0 && x.w != 0.0; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int select(int a, int b, bool c) { return c ? b : a; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 select(int2 a, int2 b, bool c) { return c ? b : a; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 select(int3 a, int3 b, bool c) { return c ? b : a; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 select(int4 a, int4 b, bool c) { return c ? b : a; } /// - /// Returns a componentwise selection between two int2 vectors a and b based on a bool2 selection mask c. + /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. /// + /// Values to use if c is false. + /// Values to use if c is true. + /// Selection mask to choose between a and b. + /// The componentwise selection between a and b according to selection mask c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 select(int2 a, int2 b, bool2 c) { return new int2(c.x ? b.x : a.x, c.y ? b.y : a.y); } /// - /// Returns a componentwise selection between two int3 vectors a and b based on a bool3 selection mask c. + /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. /// + /// Values to use if c is false. + /// Values to use if c is true. + /// Selection mask to choose between a and b. + /// The componentwise selection between a and b according to selection mask c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 select(int3 a, int3 b, bool3 c) { return new int3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } /// - /// Returns a componentwise selection between two int4 vectors a and b based on a bool4 selection mask c. + /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. /// + /// Values to use if c is false. + /// Values to use if c is true. + /// Selection mask to choose between a and b. + /// The componentwise selection between a and b according to selection mask c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 select(int4 a, int4 b, bool4 c) { return new int4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint select(uint a, uint b, bool c) { return c ? b : a; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 select(uint2 a, uint2 b, bool c) { return c ? b : a; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 select(uint3 a, uint3 b, bool c) { return c ? b : a; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 select(uint4 a, uint4 b, bool c) { return c ? b : a; } /// - /// Returns a componentwise selection between two uint2 vectors a and b based on a bool2 selection mask c. + /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. /// + /// Values to use if c is false. + /// Values to use if c is true. + /// Selection mask to choose between a and b. + /// The componentwise selection between a and b according to selection mask c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 select(uint2 a, uint2 b, bool2 c) { return new uint2(c.x ? b.x : a.x, c.y ? b.y : a.y); } /// - /// Returns a componentwise selection between two uint3 vectors a and b based on a bool3 selection mask c. + /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. /// + /// Values to use if c is false. + /// Values to use if c is true. + /// Selection mask to choose between a and b. + /// The componentwise selection between a and b according to selection mask c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 select(uint3 a, uint3 b, bool3 c) { return new uint3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } /// - /// Returns a componentwise selection between two uint4 vectors a and b based on a bool4 selection mask c. + /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. /// + /// Values to use if c is false. + /// Values to use if c is true. + /// Selection mask to choose between a and b. + /// The componentwise selection between a and b according to selection mask c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 select(uint4 a, uint4 b, bool4 c) { return new uint4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long select(long a, long b, bool c) { return c ? b : a; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ulong select(ulong a, ulong b, bool c) { return c ? b : a; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float select(float a, float b, bool c) { return c ? b : a; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 select(float2 a, float2 b, bool c) { return c ? b : a; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 select(float3 a, float3 b, bool c) { return c ? b : a; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 select(float4 a, float4 b, bool c) { return c ? b : a; } /// - /// Returns a componentwise selection between two float2 vectors a and b based on a bool2 selection mask c. + /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. /// + /// Values to use if c is false. + /// Values to use if c is true. + /// Selection mask to choose between a and b. + /// The componentwise selection between a and b according to selection mask c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 select(float2 a, float2 b, bool2 c) { return new float2(c.x ? b.x : a.x, c.y ? b.y : a.y); } /// - /// Returns a componentwise selection between two float3 vectors a and b based on a bool3 selection mask c. + /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. /// + /// Values to use if c is false. + /// Values to use if c is true. + /// Selection mask to choose between a and b. + /// The componentwise selection between a and b according to selection mask c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 select(float3 a, float3 b, bool3 c) { return new float3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } /// - /// Returns a componentwise selection between two float4 vectors a and b based on a bool4 selection mask c. + /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. /// + /// Values to use if c is false. + /// Values to use if c is true. + /// Selection mask to choose between a and b. + /// The componentwise selection between a and b according to selection mask c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 select(float4 a, float4 b, bool4 c) { return new float4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double select(double a, double b, bool c) { return c ? b : a; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 select(double2 a, double2 b, bool c) { return c ? b : a; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 select(double3 a, double3 b, bool c) { return c ? b : a; } /// Returns b if c is true, a otherwise. + /// Value to use if c is false. + /// Value to use if c is true. + /// Bool value to choose between a and b. + /// The selection between a and b according to bool c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 select(double4 a, double4 b, bool c) { return c ? b : a; } /// - /// Returns a componentwise selection between two double2 vectors a and b based on a bool2 selection mask c. + /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. /// + /// Values to use if c is false. + /// Values to use if c is true. + /// Selection mask to choose between a and b. + /// The componentwise selection between a and b according to selection mask c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 select(double2 a, double2 b, bool2 c) { return new double2(c.x ? b.x : a.x, c.y ? b.y : a.y); } /// - /// Returns a componentwise selection between two double3 vectors a and b based on a bool3 selection mask c. + /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. /// + /// Values to use if c is false. + /// Values to use if c is true. + /// Selection mask to choose between a and b. + /// The componentwise selection between a and b according to selection mask c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 select(double3 a, double3 b, bool3 c) { return new double3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } @@ -2706,71 +4213,121 @@ public static double4 smoothstep(double4 a, double4 b, double4 x) /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. /// + /// Values to use if c is false. + /// Values to use if c is true. + /// Selection mask to choose between a and b. + /// The componentwise selection between a and b according to selection mask c. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 select(double4 a, double4 b, bool4 c) { return new double4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } - /// Computes a step function. Returns 1.0f when x >= y, 0.0f otherwise. + /// Returns the result of a step function where the result is 1.0f when x >= y and 0.0f otherwise. + /// Value to be used as a threshold for returning 1. + /// Value to compare against threshold y. + /// 1 if the comparison x >= y is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float step(float y, float x) { return select(0.0f, 1.0f, x >= y); } - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. + /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. + /// Vector of values to be used as a threshold for returning 1. + /// Vector of values to compare against threshold y. + /// 1 if the componentwise comparison x >= y is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 step(float2 y, float2 x) { return select(float2(0.0f), float2(1.0f), x >= y); } - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. + /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. + /// Vector of values to be used as a threshold for returning 1. + /// Vector of values to compare against threshold y. + /// 1 if the componentwise comparison x >= y is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 step(float3 y, float3 x) { return select(float3(0.0f), float3(1.0f), x >= y); } - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. + /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. + /// Vector of values to be used as a threshold for returning 1. + /// Vector of values to compare against threshold y. + /// 1 if the componentwise comparison x >= y is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 step(float4 y, float4 x) { return select(float4(0.0f), float4(1.0f), x >= y); } - /// Computes a step function. Returns 1.0 when x >= y, 0.0 otherwise. + /// Returns the result of a step function where the result is 1.0f when x >= y and 0.0f otherwise. + /// Values to be used as a threshold for returning 1. + /// Values to compare against threshold y. + /// 1 if the comparison x >= y is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double step(double y, double x) { return select(0.0, 1.0, x >= y); } - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. + /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. + /// Vector of values to be used as a threshold for returning 1. + /// Vector of values to compare against threshold y. + /// 1 if the componentwise comparison x >= y is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 step(double2 y, double2 x) { return select(double2(0.0), double2(1.0), x >= y); } - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. + /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. + /// Vector of values to be used as a threshold for returning 1. + /// Vector of values to compare against threshold y. + /// 1 if the componentwise comparison x >= y is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 step(double3 y, double3 x) { return select(double3(0.0), double3(1.0), x >= y); } - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. + /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. + /// Vector of values to be used as a threshold for returning 1. + /// Vector of values to compare against threshold y. + /// 1 if the componentwise comparison x >= y is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 step(double4 y, double4 x) { return select(double4(0.0), double4(1.0), x >= y); } /// Given an incident vector i and a normal vector n, returns the reflection vector r = i - 2.0f * dot(i, n) * n. + /// Incident vector. + /// Normal vector. + /// Reflection vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 reflect(float2 i, float2 n) { return i - 2f * n * dot(i, n); } /// Given an incident vector i and a normal vector n, returns the reflection vector r = i - 2.0f * dot(i, n) * n. + /// Incident vector. + /// Normal vector. + /// Reflection vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 reflect(float3 i, float3 n) { return i - 2f * n * dot(i, n); } /// Given an incident vector i and a normal vector n, returns the reflection vector r = i - 2.0f * dot(i, n) * n. + /// Incident vector. + /// Normal vector. + /// Reflection vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 reflect(float4 i, float4 n) { return i - 2f * n * dot(i, n); } /// Given an incident vector i and a normal vector n, returns the reflection vector r = i - 2.0 * dot(i, n) * n. + /// Incident vector. + /// Normal vector. + /// Reflection vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 reflect(double2 i, double2 n) { return i - 2 * n * dot(i, n); } /// Given an incident vector i and a normal vector n, returns the reflection vector r = i - 2.0 * dot(i, n) * n. + /// Incident vector. + /// Normal vector. + /// Reflection vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 reflect(double3 i, double3 n) { return i - 2 * n * dot(i, n); } /// Given an incident vector i and a normal vector n, returns the reflection vector r = i - 2.0 * dot(i, n) * n. + /// Incident vector. + /// Normal vector. + /// Reflection vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 reflect(double4 i, double4 n) { return i - 2 * n * dot(i, n); } /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. + /// Incident vector. + /// Normal vector. + /// Index of refraction. + /// Refraction vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 refract(float2 i, float2 n, float eta) { @@ -2780,6 +4337,10 @@ public static float2 refract(float2 i, float2 n, float eta) } /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. + /// Incident vector. + /// Normal vector. + /// Index of refraction. + /// Refraction vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 refract(float3 i, float3 n, float eta) { @@ -2789,6 +4350,10 @@ public static float3 refract(float3 i, float3 n, float eta) } /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. + /// Incident vector. + /// Normal vector. + /// Index of refraction. + /// Refraction vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 refract(float4 i, float4 n, float eta) { @@ -2799,6 +4364,10 @@ public static float4 refract(float4 i, float4 n, float eta) /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. + /// Incident vector. + /// Normal vector. + /// Index of refraction. + /// Refraction vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 refract(double2 i, double2 n, double eta) { @@ -2808,6 +4377,10 @@ public static double2 refract(double2 i, double2 n, double eta) } /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. + /// Incident vector. + /// Normal vector. + /// Index of refraction. + /// Refraction vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 refract(double3 i, double3 n, double eta) { @@ -2817,6 +4390,10 @@ public static double3 refract(double3 i, double3 n, double eta) } /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. + /// Incident vector. + /// Normal vector. + /// Index of refraction. + /// Refraction vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 refract(double4 i, double4 n, double eta) { @@ -3059,62 +4636,118 @@ public static double4 project(double4 a, double4 b) return select(defaultValue, proj, all(isfinite(proj))); } - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. + /// Conditionally flips a vector n if two vectors i and ng are pointing in the same direction. Returns n if dot(i, ng) < 0, -n otherwise. + /// Vector to conditionally flip. + /// First vector in direction comparison. + /// Second vector in direction comparison. + /// -n if i and ng point in the same direction; otherwise return n unchanged. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 faceforward(float2 n, float2 i, float2 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. + /// Conditionally flips a vector n if two vectors i and ng are pointing in the same direction. Returns n if dot(i, ng) < 0, -n otherwise. + /// Vector to conditionally flip. + /// First vector in direction comparison. + /// Second vector in direction comparison. + /// -n if i and ng point in the same direction; otherwise return n unchanged. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 faceforward(float3 n, float3 i, float3 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. + /// Conditionally flips a vector n if two vectors i and ng are pointing in the same direction. Returns n if dot(i, ng) < 0, -n otherwise. + /// Vector to conditionally flip. + /// First vector in direction comparison. + /// Second vector in direction comparison. + /// -n if i and ng point in the same direction; otherwise return n unchanged. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 faceforward(float4 n, float4 i, float4 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. + /// Conditionally flips a vector n if two vectors i and ng are pointing in the same direction. Returns n if dot(i, ng) < 0, -n otherwise. + /// Vector to conditionally flip. + /// First vector in direction comparison. + /// Second vector in direction comparison. + /// -n if i and ng point in the same direction; otherwise return n unchanged. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 faceforward(double2 n, double2 i, double2 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. + /// Conditionally flips a vector n if two vectors i and ng are pointing in the same direction. Returns n if dot(i, ng) < 0, -n otherwise. + /// Vector to conditionally flip. + /// First vector in direction comparison. + /// Second vector in direction comparison. + /// -n if i and ng point in the same direction; otherwise return n unchanged. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 faceforward(double3 n, double3 i, double3 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } - /// Conditionally flips a vector n to face in the direction of i. Returns n if dot(i, ng) < 0, -n otherwise. + /// Conditionally flips a vector n if two vectors i and ng are pointing in the same direction. Returns n if dot(i, ng) < 0, -n otherwise. + /// Vector to conditionally flip. + /// First vector in direction comparison. + /// Second vector in direction comparison. + /// -n if i and ng point in the same direction; otherwise return n unchanged. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 faceforward(double4 n, double4 i, double4 ng) { return select(n, -n, dot(ng, i) >= 0.0f); } /// Returns the sine and cosine of the input float value x through the out parameters s and c. + /// When Burst compiled, his method is faster than calling sin() and cos() separately. + /// Input angle in radians. + /// Output sine of the input. + /// Output cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void sincos(float x, out float s, out float c) { s = sin(x); c = cos(x); } /// Returns the componentwise sine and cosine of the input float2 vector x through the out parameters s and c. + /// When Burst compiled, his method is faster than calling sin() and cos() separately. + /// Input vector containing angles in radians. + /// Output vector containing the componentwise sine of the input. + /// Output vector containing the componentwise cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void sincos(float2 x, out float2 s, out float2 c) { s = sin(x); c = cos(x); } /// Returns the componentwise sine and cosine of the input float3 vector x through the out parameters s and c. + /// When Burst compiled, his method is faster than calling sin() and cos() separately. + /// Input vector containing angles in radians. + /// Output vector containing the componentwise sine of the input. + /// Output vector containing the componentwise cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void sincos(float3 x, out float3 s, out float3 c) { s = sin(x); c = cos(x); } /// Returns the componentwise sine and cosine of the input float4 vector x through the out parameters s and c. + /// When Burst compiled, his method is faster than calling sin() and cos() separately. + /// Input vector containing angles in radians. + /// Output vector containing the componentwise sine of the input. + /// Output vector containing the componentwise cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void sincos(float4 x, out float4 s, out float4 c) { s = sin(x); c = cos(x); } /// Returns the sine and cosine of the input double value x through the out parameters s and c. + /// When Burst compiled, his method is faster than calling sin() and cos() separately. + /// Input angle in radians. + /// Output sine of the input. + /// Output cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void sincos(double x, out double s, out double c) { s = sin(x); c = cos(x); } /// Returns the componentwise sine and cosine of the input double2 vector x through the out parameters s and c. + /// When Burst compiled, his method is faster than calling sin() and cos() separately. + /// Input vector containing angles in radians. + /// Output vector containing the componentwise sine of the input. + /// Output vector containing the componentwise cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void sincos(double2 x, out double2 s, out double2 c) { s = sin(x); c = cos(x); } /// Returns the componentwise sine and cosine of the input double3 vector x through the out parameters s and c. + /// When Burst compiled, his method is faster than calling sin() and cos() separately. + /// Input vector containing angles in radians. + /// Output vector containing the componentwise sine of the input. + /// Output vector containing the componentwise cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void sincos(double3 x, out double3 s, out double3 c) { s = sin(x); c = cos(x); } /// Returns the componentwise sine and cosine of the input double4 vector x through the out parameters s and c. + /// When Burst compiled, his method is faster than calling sin() and cos() separately. + /// Input vector containing angles in radians. + /// Output vector containing the componentwise sine of the input. + /// Output vector containing the componentwise cosine of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void sincos(double4 x, out double4 s, out double4 c) { s = sin(x); c = cos(x); } @@ -3207,23 +4840,33 @@ public static int countbits(ulong x) /// Returns the componentwise number of leading zeros in the binary representations of an int vector. + /// Input value. + /// The number of leading zeros of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int lzcnt(int x) { return lzcnt((uint)x); } /// Returns the componentwise number of leading zeros in the binary representations of an int2 vector. + /// Input value. + /// The componentwise number of leading zeros of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 lzcnt(int2 x) { return int2(lzcnt(x.x), lzcnt(x.y)); } /// Returns the componentwise number of leading zeros in the binary representations of an int3 vector. + /// Input value. + /// The componentwise number of leading zeros of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 lzcnt(int3 x) { return int3(lzcnt(x.x), lzcnt(x.y), lzcnt(x.z)); } /// Returns the componentwise number of leading zeros in the binary representations of an int4 vector. + /// Input value. + /// The componentwise number of leading zeros of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 lzcnt(int4 x) { return int4(lzcnt(x.x), lzcnt(x.y), lzcnt(x.z), lzcnt(x.w)); } /// Returns number of leading zeros in the binary representations of a uint value. + /// Input value. + /// The number of leading zeros of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int lzcnt(uint x) { @@ -3237,24 +4880,34 @@ public static int lzcnt(uint x) } /// Returns the componentwise number of leading zeros in the binary representations of a uint2 vector. + /// Input value. + /// The componentwise number of leading zeros of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 lzcnt(uint2 x) { return int2(lzcnt(x.x), lzcnt(x.y)); } /// Returns the componentwise number of leading zeros in the binary representations of a uint3 vector. + /// Input value. + /// The componentwise number of leading zeros of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 lzcnt(uint3 x) { return int3(lzcnt(x.x), lzcnt(x.y), lzcnt(x.z)); } /// Returns the componentwise number of leading zeros in the binary representations of a uint4 vector. + /// Input value. + /// The componentwise number of leading zeros of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 lzcnt(uint4 x) { return int4(lzcnt(x.x), lzcnt(x.y), lzcnt(x.z), lzcnt(x.w)); } /// Returns number of leading zeros in the binary representations of a long value. + /// Input value. + /// The number of leading zeros of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int lzcnt(long x) { return lzcnt((ulong)x); } /// Returns number of leading zeros in the binary representations of a ulong value. + /// Input value. + /// The number of leading zeros of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int lzcnt(ulong x) { @@ -3433,23 +5086,33 @@ public static int tzcnt(ulong x) /// Returns the result of performing a reversal of the bit pattern of an int value. + /// Value to reverse. + /// Value with reversed bits. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int reversebits(int x) { return (int)reversebits((uint)x); } /// Returns the result of performing a componentwise reversal of the bit pattern of an int2 vector. + /// Value to reverse. + /// Value with componentwise reversed bits. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 reversebits(int2 x) { return (int2)reversebits((uint2)x); } /// Returns the result of performing a componentwise reversal of the bit pattern of an int3 vector. + /// Value to reverse. + /// Value with componentwise reversed bits. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 reversebits(int3 x) { return (int3)reversebits((uint3)x); } /// Returns the result of performing a componentwise reversal of the bit pattern of an int4 vector. + /// Value to reverse. + /// Value with componentwise reversed bits. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 reversebits(int4 x) { return (int4)reversebits((uint4)x); } /// Returns the result of performing a reversal of the bit pattern of a uint value. + /// Value to reverse. + /// Value with reversed bits. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint reversebits(uint x) { x = ((x >> 1) & 0x55555555) | ((x & 0x55555555) << 1); @@ -3460,6 +5123,8 @@ public static uint reversebits(uint x) { } /// Returns the result of performing a componentwise reversal of the bit pattern of an uint2 vector. + /// Value to reverse. + /// Value with componentwise reversed bits. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 reversebits(uint2 x) { @@ -3471,6 +5136,8 @@ public static uint2 reversebits(uint2 x) } /// Returns the result of performing a componentwise reversal of the bit pattern of an uint3 vector. + /// Value to reverse. + /// Value with componentwise reversed bits. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 reversebits(uint3 x) { @@ -3482,6 +5149,8 @@ public static uint3 reversebits(uint3 x) } /// Returns the result of performing a componentwise reversal of the bit pattern of an uint4 vector. + /// Value to reverse. + /// Value with componentwise reversed bits. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 reversebits(uint4 x) { @@ -3494,11 +5163,15 @@ public static uint4 reversebits(uint4 x) /// Returns the result of performing a reversal of the bit pattern of a long value. + /// Value to reverse. + /// Value with reversed bits. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long reversebits(long x) { return (long)reversebits((ulong)x); } /// Returns the result of performing a reversal of the bit pattern of a ulong value. + /// Value to reverse. + /// Value with reversed bits. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ulong reversebits(ulong x) { @@ -3512,94 +5185,156 @@ public static ulong reversebits(ulong x) /// Returns the result of rotating the bits of an int left by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int rol(int x, int n) { return (int)rol((uint)x, n); } /// Returns the componentwise result of rotating the bits of an int2 left by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The componentwise rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 rol(int2 x, int n) { return (int2)rol((uint2)x, n); } /// Returns the componentwise result of rotating the bits of an int3 left by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The componentwise rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 rol(int3 x, int n) { return (int3)rol((uint3)x, n); } /// Returns the componentwise result of rotating the bits of an int4 left by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The componentwise rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 rol(int4 x, int n) { return (int4)rol((uint4)x, n); } /// Returns the result of rotating the bits of a uint left by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint rol(uint x, int n) { return (x << n) | (x >> (32 - n)); } /// Returns the componentwise result of rotating the bits of a uint2 left by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The componentwise rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 rol(uint2 x, int n) { return (x << n) | (x >> (32 - n)); } /// Returns the componentwise result of rotating the bits of a uint3 left by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The componentwise rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 rol(uint3 x, int n) { return (x << n) | (x >> (32 - n)); } /// Returns the componentwise result of rotating the bits of a uint4 left by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The componentwise rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 rol(uint4 x, int n) { return (x << n) | (x >> (32 - n)); } /// Returns the result of rotating the bits of a long left by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long rol(long x, int n) { return (long)rol((ulong)x, n); } /// Returns the result of rotating the bits of a ulong left by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ulong rol(ulong x, int n) { return (x << n) | (x >> (64 - n)); } /// Returns the result of rotating the bits of an int right by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int ror(int x, int n) { return (int)ror((uint)x, n); } /// Returns the componentwise result of rotating the bits of an int2 right by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The componentwise rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 ror(int2 x, int n) { return (int2)ror((uint2)x, n); } /// Returns the componentwise result of rotating the bits of an int3 right by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The componentwise rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 ror(int3 x, int n) { return (int3)ror((uint3)x, n); } /// Returns the componentwise result of rotating the bits of an int4 right by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The componentwise rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 ror(int4 x, int n) { return (int4)ror((uint4)x, n); } /// Returns the result of rotating the bits of a uint right by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint ror(uint x, int n) { return (x >> n) | (x << (32 - n)); } /// Returns the componentwise result of rotating the bits of a uint2 right by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The componentwise rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 ror(uint2 x, int n) { return (x >> n) | (x << (32 - n)); } /// Returns the componentwise result of rotating the bits of a uint3 right by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The componentwise rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 ror(uint3 x, int n) { return (x >> n) | (x << (32 - n)); } /// Returns the componentwise result of rotating the bits of a uint4 right by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The componentwise rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 ror(uint4 x, int n) { return (x >> n) | (x << (32 - n)); } /// Returns the result of rotating the bits of a long right by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long ror(long x, int n) { return (long)ror((ulong)x, n); } /// Returns the result of rotating the bits of a ulong right by bits n. + /// Value to rotate. + /// Number of bits to rotate. + /// The rotated value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ulong ror(ulong x, int n) { return (x >> n) | (x << (64 - n)); } /// Returns the smallest power of two greater than or equal to the input. + /// Input value. + /// The smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int ceilpow2(int x) { @@ -3613,6 +5348,8 @@ public static int ceilpow2(int x) } /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. + /// Input value. + /// The componentwise smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 ceilpow2(int2 x) { @@ -3626,6 +5363,8 @@ public static int2 ceilpow2(int2 x) } /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. + /// Input value. + /// The componentwise smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 ceilpow2(int3 x) { @@ -3639,6 +5378,8 @@ public static int3 ceilpow2(int3 x) } /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. + /// Input value. + /// The componentwise smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 ceilpow2(int4 x) { @@ -3653,6 +5394,8 @@ public static int4 ceilpow2(int4 x) /// Returns the smallest power of two greater than or equal to the input. + /// Input value. + /// The smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint ceilpow2(uint x) { @@ -3666,6 +5409,8 @@ public static uint ceilpow2(uint x) } /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. + /// Input value. + /// The componentwise smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 ceilpow2(uint2 x) { @@ -3679,6 +5424,8 @@ public static uint2 ceilpow2(uint2 x) } /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. + /// Input value. + /// The componentwise smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 ceilpow2(uint3 x) { @@ -3692,6 +5439,8 @@ public static uint3 ceilpow2(uint3 x) } /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. + /// Input value. + /// The componentwise smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 ceilpow2(uint4 x) { @@ -3706,6 +5455,8 @@ public static uint4 ceilpow2(uint4 x) /// Returns the smallest power of two greater than or equal to the input. + /// Input value. + /// The smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long ceilpow2(long x) { @@ -3721,6 +5472,8 @@ public static long ceilpow2(long x) /// Returns the smallest power of two greater than or equal to the input. + /// Input value. + /// The smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ulong ceilpow2(ulong x) { @@ -3754,7 +5507,7 @@ public static int ceillog2(int x) /// /// Components of x must be greater than 0, otherwise the result for that component is undefined. /// - /// to be used as input. + /// int2 to be used as input. /// Componentwise ceiling of the base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 ceillog2(int2 x) @@ -3768,7 +5521,7 @@ public static int2 ceillog2(int2 x) /// /// Components of x must be greater than 0, otherwise the result for that component is undefined. /// - /// to be used as input. + /// int3 to be used as input. /// Componentwise ceiling of the base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 ceillog2(int3 x) @@ -3782,7 +5535,7 @@ public static int3 ceillog2(int3 x) /// /// Components of x must be greater than 0, otherwise the result for that component is undefined. /// - /// to be used as input. + /// int4 to be used as input. /// Componentwise ceiling of the base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 ceillog2(int4 x) @@ -3810,7 +5563,7 @@ public static int ceillog2(uint x) /// /// Components of x must be greater than 0, otherwise the result for that component is undefined. /// - /// to be used as input. + /// uint2 to be used as input. /// Componentwise ceiling of the base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 ceillog2(uint2 x) @@ -3824,7 +5577,7 @@ public static int2 ceillog2(uint2 x) /// /// Components of x must be greater than 0, otherwise the result for that component is undefined. /// - /// to be used as input. + /// uint3 to be used as input. /// Componentwise ceiling of the base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 ceillog2(uint3 x) @@ -3838,7 +5591,7 @@ public static int3 ceillog2(uint3 x) /// /// Components of x must be greater than 0, otherwise the result for that component is undefined. /// - /// to be used as input. + /// uint4 to be used as input. /// Componentwise ceiling of the base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 ceillog2(uint4 x) @@ -3862,7 +5615,7 @@ public static int floorlog2(int x) /// Computes the componentwise floor of the base-2 logarithm of x. /// /// Components of x must be greater than zero, otherwise the result of the component is undefined. - /// to be used as input. + /// int2 to be used as input. /// Componentwise floor of base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 floorlog2(int2 x) @@ -3874,7 +5627,7 @@ public static int2 floorlog2(int2 x) /// Computes the componentwise floor of the base-2 logarithm of x. /// /// Components of x must be greater than zero, otherwise the result of the component is undefined. - /// to be used as input. + /// int3 to be used as input. /// Componentwise floor of base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 floorlog2(int3 x) @@ -3886,7 +5639,7 @@ public static int3 floorlog2(int3 x) /// Computes the componentwise floor of the base-2 logarithm of x. /// /// Components of x must be greater than zero, otherwise the result of the component is undefined. - /// to be used as input. + /// int4 to be used as input. /// Componentwise floor of base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 floorlog2(int4 x) @@ -3910,7 +5663,7 @@ public static int floorlog2(uint x) /// Computes the componentwise floor of the base-2 logarithm of x. /// /// Components of x must be greater than zero, otherwise the result of the component is undefined. - /// to be used as input. + /// uint2 to be used as input. /// Componentwise floor of base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 floorlog2(uint2 x) @@ -3922,7 +5675,7 @@ public static int2 floorlog2(uint2 x) /// Computes the componentwise floor of the base-2 logarithm of x. /// /// Components of x must be greater than zero, otherwise the result of the component is undefined. - /// to be used as input. + /// uint3 to be used as input. /// Componentwise floor of base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 floorlog2(uint3 x) @@ -3934,7 +5687,7 @@ public static int3 floorlog2(uint3 x) /// Computes the componentwise floor of the base-2 logarithm of x. /// /// Components of x must be greater than zero, otherwise the result of the component is undefined. - /// to be used as input. + /// uint4 to be used as input. /// Componentwise floor of base-2 logarithm of x. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 floorlog2(uint4 x) @@ -3943,225 +5696,329 @@ public static int4 floorlog2(uint4 x) } /// Returns the result of converting a float value from degrees to radians. + /// Angle in degrees. + /// Angle converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float radians(float x) { return x * 0.0174532925f; } /// Returns the result of a componentwise conversion of a float2 vector from degrees to radians. + /// Vector containing angles in degrees. + /// Vector containing angles converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 radians(float2 x) { return x * 0.0174532925f; } /// Returns the result of a componentwise conversion of a float3 vector from degrees to radians. + /// Vector containing angles in degrees. + /// Vector containing angles converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 radians(float3 x) { return x * 0.0174532925f; } /// Returns the result of a componentwise conversion of a float4 vector from degrees to radians. + /// Vector containing angles in degrees. + /// Vector containing angles converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 radians(float4 x) { return x * 0.0174532925f; } /// Returns the result of converting a float value from degrees to radians. + /// Angle in degrees. + /// Angle converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double radians(double x) { return x * 0.017453292519943296; } /// Returns the result of a componentwise conversion of a float2 vector from degrees to radians. + /// Vector containing angles in degrees. + /// Vector containing angles converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 radians(double2 x) { return x * 0.017453292519943296; } /// Returns the result of a componentwise conversion of a float3 vector from degrees to radians. + /// Vector containing angles in degrees. + /// Vector containing angles converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 radians(double3 x) { return x * 0.017453292519943296; } /// Returns the result of a componentwise conversion of a float4 vector from degrees to radians. + /// Vector containing angles in degrees. + /// Vector containing angles converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 radians(double4 x) { return x * 0.017453292519943296; } /// Returns the result of converting a double value from radians to degrees. + /// Angle in radians. + /// Angle converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float degrees(float x) { return x * 57.295779513f; } /// Returns the result of a componentwise conversion of a double2 vector from radians to degrees. + /// Vector containing angles in radians. + /// Vector containing angles converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 degrees(float2 x) { return x * 57.295779513f; } /// Returns the result of a componentwise conversion of a double3 vector from radians to degrees. + /// Vector containing angles in radians. + /// Vector containing angles converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 degrees(float3 x) { return x * 57.295779513f; } /// Returns the result of a componentwise conversion of a double4 vector from radians to degrees. + /// Vector containing angles in radians. + /// Vector containing angles converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 degrees(float4 x) { return x * 57.295779513f; } /// Returns the result of converting a double value from radians to degrees. + /// Angle in radians. + /// Angle converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double degrees(double x) { return x * 57.29577951308232; } /// Returns the result of a componentwise conversion of a double2 vector from radians to degrees. + /// Vector containing angles in radians. + /// Vector containing angles converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 degrees(double2 x) { return x * 57.29577951308232; } /// Returns the result of a componentwise conversion of a double3 vector from radians to degrees. + /// Vector containing angles in radians. + /// Vector containing values converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 degrees(double3 x) { return x * 57.29577951308232; } /// Returns the result of a componentwise conversion of a double4 vector from radians to degrees. + /// Vector containing angles in radians. + /// Vector containing angles converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 degrees(double4 x) { return x * 57.29577951308232; } /// Returns the minimum component of an int2 vector. + /// The vector to use when computing the minimum component. + /// The value of the minimum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int cmin(int2 x) { return min(x.x, x.y); } /// Returns the minimum component of an int3 vector. + /// The vector to use when computing the minimum component. + /// The value of the minimum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int cmin(int3 x) { return min(min(x.x, x.y), x.z); } /// Returns the minimum component of an int4 vector. + /// The vector to use when computing the minimum component. + /// The value of the minimum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int cmin(int4 x) { return min(min(x.x, x.y), min(x.z, x.w)); } /// Returns the minimum component of a uint2 vector. + /// The vector to use when computing the minimum component. + /// The value of the minimum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint cmin(uint2 x) { return min(x.x, x.y); } /// Returns the minimum component of a uint3 vector. + /// The vector to use when computing the minimum component. + /// The value of the minimum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint cmin(uint3 x) { return min(min(x.x, x.y), x.z); } /// Returns the minimum component of a uint4 vector. + /// The vector to use when computing the minimum component. + /// The value of the minimum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint cmin(uint4 x) { return min(min(x.x, x.y), min(x.z, x.w)); } /// Returns the minimum component of a float2 vector. + /// The vector to use when computing the minimum component. + /// The value of the minimum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cmin(float2 x) { return min(x.x, x.y); } /// Returns the minimum component of a float3 vector. + /// The vector to use when computing the minimum component. + /// The value of the minimum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cmin(float3 x) { return min(min(x.x, x.y), x.z); } - /// Returns the maximum component of a float3 vector. + /// Returns the minimum component of a float4 vector. + /// The vector to use when computing the minimum component. + /// The value of the minimum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cmin(float4 x) { return min(min(x.x, x.y), min(x.z, x.w)); } - /// Returns the minimum component of a float2 vector. + /// Returns the minimum component of a double2 vector. + /// The vector to use when computing the minimum component. + /// The value of the minimum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double cmin(double2 x) { return min(x.x, x.y); } - /// Returns the minimum component of a float3 vector. + /// Returns the minimum component of a double3 vector. + /// The vector to use when computing the minimum component. + /// The value of the minimum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double cmin(double3 x) { return min(min(x.x, x.y), x.z); } - /// Returns the maximum component of a float3 vector. + /// Returns the minimum component of a double4 vector. + /// The vector to use when computing the minimum component. + /// The value of the minimum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double cmin(double4 x) { return min(min(x.x, x.y), min(x.z, x.w)); } /// Returns the maximum component of an int2 vector. + /// The vector to use when computing the maximum component. + /// The value of the maximum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int cmax(int2 x) { return max(x.x, x.y); } /// Returns the maximum component of an int3 vector. + /// The vector to use when computing the maximum component. + /// The value of the maximum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int cmax(int3 x) { return max(max(x.x, x.y), x.z); } /// Returns the maximum component of an int4 vector. + /// The vector to use when computing the maximum component. + /// The value of the maximum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int cmax(int4 x) { return max(max(x.x, x.y), max(x.z, x.w)); } /// Returns the maximum component of a uint2 vector. + /// The vector to use when computing the maximum component. + /// The value of the maximum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint cmax(uint2 x) { return max(x.x, x.y); } /// Returns the maximum component of a uint3 vector. + /// The vector to use when computing the maximum component. + /// The value of the maximum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint cmax(uint3 x) { return max(max(x.x, x.y), x.z); } /// Returns the maximum component of a uint4 vector. + /// The vector to use when computing the maximum component. + /// The value of the maximum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint cmax(uint4 x) { return max(max(x.x, x.y), max(x.z, x.w)); } /// Returns the maximum component of a float2 vector. + /// The vector to use when computing the maximum component. + /// The value of the maximum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cmax(float2 x) { return max(x.x, x.y); } /// Returns the maximum component of a float3 vector. + /// The vector to use when computing the maximum component. + /// The value of the maximum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cmax(float3 x) { return max(max(x.x, x.y), x.z); } /// Returns the maximum component of a float4 vector. + /// The vector to use when computing the maximum component. + /// The value of the maximum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float cmax(float4 x) { return max(max(x.x, x.y), max(x.z, x.w)); } /// Returns the maximum component of a double2 vector. + /// The vector to use when computing the maximum component. + /// The value of the maximum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double cmax(double2 x) { return max(x.x, x.y); } /// Returns the maximum component of a double3 vector. + /// The vector to use when computing the maximum component. + /// The value of the maximum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double cmax(double3 x) { return max(max(x.x, x.y), x.z); } /// Returns the maximum component of a double4 vector. + /// The vector to use when computing the maximum component. + /// The value of the maximum component of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double cmax(double4 x) { return max(max(x.x, x.y), max(x.z, x.w)); } /// Returns the horizontal sum of components of an int2 vector. + /// The vector to use when computing the horizontal sum. + /// The horizontal sum of of components of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int csum(int2 x) { return x.x + x.y; } /// Returns the horizontal sum of components of an int3 vector. + /// The vector to use when computing the horizontal sum. + /// The horizontal sum of of components of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int csum(int3 x) { return x.x + x.y + x.z; } /// Returns the horizontal sum of components of an int4 vector. + /// The vector to use when computing the horizontal sum. + /// The horizontal sum of of components of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int csum(int4 x) { return x.x + x.y + x.z + x.w; } /// Returns the horizontal sum of components of a uint2 vector. + /// The vector to use when computing the horizontal sum. + /// The horizontal sum of of components of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint csum(uint2 x) { return x.x + x.y; } /// Returns the horizontal sum of components of a uint3 vector. + /// The vector to use when computing the horizontal sum. + /// The horizontal sum of of components of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint csum(uint3 x) { return x.x + x.y + x.z; } /// Returns the horizontal sum of components of a uint4 vector. + /// The vector to use when computing the horizontal sum. + /// The horizontal sum of of components of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint csum(uint4 x) { return x.x + x.y + x.z + x.w; } /// Returns the horizontal sum of components of a float2 vector. + /// The vector to use when computing the horizontal sum. + /// The horizontal sum of of components of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float csum(float2 x) { return x.x + x.y; } /// Returns the horizontal sum of components of a float3 vector. + /// The vector to use when computing the horizontal sum. + /// The horizontal sum of of components of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float csum(float3 x) { return x.x + x.y + x.z; } /// Returns the horizontal sum of components of a float4 vector. + /// The vector to use when computing the horizontal sum. + /// The horizontal sum of of components of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float csum(float4 x) { return (x.x + x.y) + (x.z + x.w); } /// Returns the horizontal sum of components of a double2 vector. + /// The vector to use when computing the horizontal sum. + /// The horizontal sum of of components of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double csum(double2 x) { return x.x + x.y; } /// Returns the horizontal sum of components of a double3 vector. + /// The vector to use when computing the horizontal sum. + /// The horizontal sum of of components of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double csum(double3 x) { return x.x + x.y + x.z; } /// Returns the horizontal sum of components of a double4 vector. + /// The vector to use when computing the horizontal sum. + /// The horizontal sum of of components of the vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double csum(double4 x) { return (x.x + x.y) + (x.z + x.w); } @@ -4443,6 +6300,8 @@ public static unsafe int compress(float* output, int index, float4 val, bool4 ma } /// Returns the floating point representation of a half-precision floating point value. + /// The half precision float. + /// The single precision float representation of the half precision float. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float f16tof32(uint x) { @@ -4457,6 +6316,8 @@ public static float f16tof32(uint x) } /// Returns the floating point representation of a half-precision floating point vector. + /// The half precision float vector. + /// The single precision float vector representation of the half precision float vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 f16tof32(uint2 x) { @@ -4471,6 +6332,8 @@ public static float2 f16tof32(uint2 x) } /// Returns the floating point representation of a half-precision floating point vector. + /// The half precision float vector. + /// The single precision float vector representation of the half precision float vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 f16tof32(uint3 x) { @@ -4485,6 +6348,8 @@ public static float3 f16tof32(uint3 x) } /// Returns the floating point representation of a half-precision floating point vector. + /// The half precision float vector. + /// The single precision float vector representation of the half precision float vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 f16tof32(uint4 x) { @@ -4499,6 +6364,8 @@ public static float4 f16tof32(uint4 x) } /// Returns the result converting a float value to its nearest half-precision floating point representation. + /// The single precision float. + /// The half precision float representation of the single precision float. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint f32tof16(float x) { @@ -4513,6 +6380,8 @@ public static uint f32tof16(float x) } /// Returns the result of a componentwise conversion of a float2 vector to its nearest half-precision floating point representation. + /// The single precision float vector. + /// The half precision float vector representation of the single precision float vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 f32tof16(float2 x) { @@ -4527,6 +6396,8 @@ public static uint2 f32tof16(float2 x) } /// Returns the result of a componentwise conversion of a float3 vector to its nearest half-precision floating point representation. + /// The single precision float vector. + /// The half precision float vector representation of the single precision float vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 f32tof16(float3 x) { @@ -4541,6 +6412,8 @@ public static uint3 f32tof16(float3 x) } /// Returns the result of a componentwise conversion of a float4 vector to its nearest half-precision floating point representation. + /// The single precision float vector. + /// The half precision float vector representation of the single precision float vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 f32tof16(float4 x) { @@ -4604,6 +6477,7 @@ public static void orthonormal_basis(double3 normal, out double3 basis1, out dou /// A pointer to the beginning of the data. /// Number of bytes to hash. /// Starting seed value. + /// The 32 bit hash of the input data buffer. public static unsafe uint hash(void* pBuffer, int numBytes, uint seed = 0) { unchecked diff --git a/src/Unity.Mathematics/math_unity_conversion.cs b/src/Unity.Mathematics/math_unity_conversion.cs index 54b21fb0..a51051f5 100644 --- a/src/Unity.Mathematics/math_unity_conversion.cs +++ b/src/Unity.Mathematics/math_unity_conversion.cs @@ -7,31 +7,86 @@ namespace Unity.Mathematics { public partial struct float2 { + /// + /// Converts a float2 to Vector2. + /// + /// float2 to convert. + /// The converted Vector2. public static implicit operator Vector2(float2 v) { return new Vector2(v.x, v.y); } + + /// + /// Converts a Vector2 to float2. + /// + /// Vector2 to convert. + /// The converted float2. public static implicit operator float2(Vector2 v) { return new float2(v.x, v.y); } } public partial struct float3 { + /// + /// Converts a float3 to Vector3. + /// + /// float3 to convert. + /// The converted Vector3. public static implicit operator Vector3(float3 v) { return new Vector3(v.x, v.y, v.z); } + + /// + /// Converts a Vector3 to float3. + /// + /// Vector3 to convert. + /// The converted float3. public static implicit operator float3(Vector3 v) { return new float3(v.x, v.y, v.z); } } public partial struct float4 { + /// + /// Converts a Vector4 to float4. + /// + /// Vector4 to convert. + /// The converted float4. public static implicit operator float4(Vector4 v) { return new float4(v.x, v.y, v.z, v.w); } + + /// + /// Converts a float4 to Vector4. + /// + /// float4 to convert. + /// The converted Vector4. public static implicit operator Vector4(float4 v) { return new Vector4(v.x, v.y, v.z, v.w); } } public partial struct quaternion { + /// + /// Converts a quaternion to Quaternion. + /// + /// quaternion to convert. + /// The converted Quaternion. public static implicit operator Quaternion(quaternion q) { return new Quaternion(q.value.x, q.value.y, q.value.z, q.value.w); } + + /// + /// Converts a Quaternion to quaternion. + /// + /// Quaternion to convert. + /// The converted quaternion. public static implicit operator quaternion(Quaternion q) { return new quaternion(q.x, q.y, q.z, q.w); } } public partial struct float4x4 { + /// + /// Converts a Matrix4x4 to float4x4. + /// + /// Matrix4x4 to convert. + /// The converted float4x4. public static implicit operator float4x4(Matrix4x4 m) { return new float4x4(m.GetColumn(0), m.GetColumn(1), m.GetColumn(2), m.GetColumn(3)); } + + /// + /// Converts a float4x4 to Matrix4x4. + /// + /// float4x4 to convert. + /// The converted Matrix4x4. public static implicit operator Matrix4x4(float4x4 m) { return new Matrix4x4(m.c0, m.c1, m.c2, m.c3); } } } diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index af8a42e4..fe4a679c 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -24,6 +24,8 @@ public static float2x2 Rotate(float angle) } /// Returns a float2x2 matrix representing a uniform scaling of both axes by s. + /// The scaling factor. + /// The float2x2 matrix representing uniform scale by s. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 Scale(float s) { @@ -32,6 +34,9 @@ public static float2x2 Scale(float s) } /// Returns a float2x2 matrix representing a non-uniform axis scaling by x and y. + /// The x-axis scaling factor. + /// The y-axis scaling factor. + /// The float2x2 matrix representing a non-uniform scale. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 Scale(float x, float y) { @@ -40,6 +45,8 @@ public static float2x2 Scale(float x, float y) } /// Returns a float2x2 matrix representing a non-uniform axis scaling by the components of the float2 vector v. + /// The float2 containing the x and y axis scaling factors. + /// The float2x2 matrix representing a non-uniform scale. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 Scale(float2 v) { @@ -61,6 +68,7 @@ public float3x3(float4x4 f4x4) } /// Constructs a float3x3 matrix from a unit quaternion. + /// The quaternion rotation. public float3x3(quaternion q) { float4 v = q.value; @@ -78,6 +86,9 @@ public float3x3(quaternion q) /// Returns a float3x3 matrix representing a rotation around a unit axis by an angle in radians. /// The rotation direction is clockwise when looking along the rotation axis towards the origin. /// + /// The rotation axis. + /// The angle of rotation in radians. + /// The float3x3 matrix representing the rotation around an axis. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 AxisAngle(float3 axis, float angle) { @@ -113,6 +124,7 @@ public static float3x3 AxisAngle(float3 axis, float angle) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The float3x3 rotation matrix representing the rotation by Euler angles in x-y-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerXYZ(float3 xyz) { @@ -131,6 +143,7 @@ public static float3x3 EulerXYZ(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The float3x3 rotation matrix representing the rotation by Euler angles in x-z-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerXZY(float3 xyz) { @@ -149,6 +162,7 @@ public static float3x3 EulerXZY(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The float3x3 rotation matrix representing the rotation by Euler angles in y-x-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerYXZ(float3 xyz) { @@ -167,6 +181,7 @@ public static float3x3 EulerYXZ(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The float3x3 rotation matrix representing the rotation by Euler angles in y-z-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerYZX(float3 xyz) { @@ -186,6 +201,7 @@ public static float3x3 EulerYZX(float3 xyz) /// This is the default order rotation order in Unity. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The float3x3 rotation matrix representing the rotation by Euler angles in z-x-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerZXY(float3 xyz) { @@ -204,6 +220,7 @@ public static float3x3 EulerZXY(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The float3x3 rotation matrix representing the rotation by Euler angles in z-y-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerZYX(float3 xyz) { @@ -224,6 +241,7 @@ public static float3x3 EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The float3x3 rotation matrix representing the rotation by Euler angles in x-y-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerXYZ(float x, float y, float z) { return EulerXYZ(float3(x, y, z)); } @@ -234,6 +252,7 @@ public static float3x3 EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The float3x3 rotation matrix representing the rotation by Euler angles in x-z-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerXZY(float x, float y, float z) { return EulerXZY(float3(x, y, z)); } @@ -244,6 +263,7 @@ public static float3x3 EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The float3x3 rotation matrix representing the rotation by Euler angles in y-x-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerYXZ(float x, float y, float z) { return EulerYXZ(float3(x, y, z)); } @@ -254,6 +274,7 @@ public static float3x3 EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The float3x3 rotation matrix representing the rotation by Euler angles in y-z-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerYZX(float x, float y, float z) { return EulerYZX(float3(x, y, z)); } @@ -265,6 +286,7 @@ public static float3x3 EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The float3x3 rotation matrix representing the rotation by Euler angles in z-x-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerZXY(float x, float y, float z) { return EulerZXY(float3(x, y, z)); } @@ -275,6 +297,7 @@ public static float3x3 EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The float3x3 rotation matrix representing the rotation by Euler angles in z-y-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 EulerZYX(float x, float y, float z) { return EulerZYX(float3(x, y, z)); } @@ -286,6 +309,7 @@ public static float3x3 EulerZYX(float3 xyz) /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. /// The order in which the rotations are applied. + /// The float3x3 rotation matrix representing the rotation by Euler angles in the given order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 Euler(float3 xyz, RotationOrder order = RotationOrder.Default) { @@ -318,14 +342,16 @@ public static float3x3 Euler(float3 xyz, RotationOrder order = RotationOrder.Def /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. /// The order in which the rotations are applied. + /// The float3x3 rotation matrix representing the rotation by Euler angles in the given order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 Euler(float x, float y, float z, RotationOrder order = RotationOrder.Default) { return Euler(float3(x, y, z), order); } - /// Returns a float4x4 matrix that rotates around the x-axis by a given number of radians. + /// Returns a float3x3 matrix that rotates around the x-axis by a given number of radians. /// The clockwise rotation angle when looking along the x-axis towards the origin in radians. + /// The float3x3 rotation matrix representing a rotation around the x-axis. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 RotateX(float angle) { @@ -337,8 +363,9 @@ public static float3x3 RotateX(float angle) 0.0f, s, c); } - /// Returns a float4x4 matrix that rotates around the y-axis by a given number of radians. + /// Returns a float3x3 matrix that rotates around the y-axis by a given number of radians. /// The clockwise rotation angle when looking along the y-axis towards the origin in radians. + /// The float3x3 rotation matrix representing a rotation around the y-axis. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 RotateY(float angle) { @@ -350,8 +377,9 @@ public static float3x3 RotateY(float angle) -s, 0.0f, c); } - /// Returns a float4x4 matrix that rotates around the z-axis by a given number of radians. + /// Returns a float3x3 matrix that rotates around the z-axis by a given number of radians. /// The clockwise rotation angle when looking along the z-axis towards the origin in radians. + /// The float3x3 rotation matrix representing a rotation around the z-axis. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 RotateZ(float angle) { @@ -363,7 +391,9 @@ public static float3x3 RotateZ(float angle) 0.0f, 0.0f, 1.0f); } - //Returns a float3x3 matrix representing a uniform scaling of all axes by s. + /// Returns a float3x3 matrix representing a uniform scaling of all axes by s. + /// The uniform scaling factor. + /// The float3x3 matrix representing a uniform scale. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 Scale(float s) { @@ -373,6 +403,10 @@ public static float3x3 Scale(float s) } /// Returns a float3x3 matrix representing a non-uniform axis scaling by x, y and z. + /// The x-axis scaling factor. + /// The y-axis scaling factor. + /// The z-axis scaling factor. + /// The float3x3 rotation matrix representing a non-uniform scale. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 Scale(float x, float y, float z) { @@ -382,6 +416,8 @@ public static float3x3 Scale(float x, float y, float z) } /// Returns a float3x3 matrix representing a non-uniform axis scaling by the components of the float3 vector v. + /// The vector containing non-uniform scaling factors. + /// The float3x3 rotation matrix representing a non-uniform scale. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 Scale(float3 v) { @@ -393,6 +429,9 @@ public static float3x3 Scale(float3 v) /// The two input vectors are assumed to be unit length and not collinear. /// If these assumptions are not met use float3x3.LookRotationSafe instead. /// + /// The forward vector to align the center of view with. + /// The up vector to point top of view toward. + /// The float3x3 view rotation matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 LookRotation(float3 forward, float3 up) { @@ -406,6 +445,9 @@ public static float3x3 LookRotation(float3 forward, float3 up) /// If the magnitude of either of the vectors is so extreme that the calculation cannot be carried out reliably or the vectors are collinear, /// the identity will be returned instead. /// + /// The forward vector to align the center of view with. + /// The up vector to point top of view toward. + /// The float3x3 view rotation matrix or the identity matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 LookRotationSafe(float3 forward, float3 up) { @@ -429,12 +471,19 @@ public static float3x3 LookRotationSafe(float3 forward, float3 up) select(float3(0,0,1), forward, accept)); } + /// + /// Converts a float4x4 to a float3x3. + /// + /// The float4x4 to convert to a float3x3. + /// The float3x3 constructed from the upper left 3x3 of the input float4x4 matrix. public static explicit operator float3x3(float4x4 f4x4) => new float3x3(f4x4); } public partial struct float4x4 { /// Constructs a float4x4 from a float3x3 rotation matrix and a float3 translation vector. + /// The float3x3 rotation matrix. + /// The translation vector. public float4x4(float3x3 rotation, float3 translation) { c0 = float4(rotation.c0, 0.0f); @@ -444,6 +493,8 @@ public float4x4(float3x3 rotation, float3 translation) } /// Constructs a float4x4 from a quaternion and a float3 translation vector. + /// The quaternion rotation. + /// The translation vector. public float4x4(quaternion rotation, float3 translation) { float3x3 rot = float3x3(rotation); @@ -454,6 +505,7 @@ public float4x4(quaternion rotation, float3 translation) } /// Constructs a float4x4 from a RigidTransform. + /// The RigidTransform. public float4x4(RigidTransform transform) { float3x3 rot = float3x3(transform.rot); @@ -467,6 +519,9 @@ public float4x4(RigidTransform transform) /// Returns a float4x4 matrix representing a rotation around a unit axis by an angle in radians. /// The rotation direction is clockwise when looking along the rotation axis towards the origin. /// + /// The axis of rotation. + /// The angle of rotation in radians. + /// The float4x4 matrix representing the rotation about an axis. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 AxisAngle(float3 axis, float angle) { @@ -498,6 +553,7 @@ public static float4x4 AxisAngle(float3 axis, float angle) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The float4x4 rotation matrix of the Euler angle rotation in x-y-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerXYZ(float3 xyz) { @@ -517,6 +573,7 @@ public static float4x4 EulerXYZ(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The float4x4 rotation matrix of the Euler angle rotation in x-z-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerXZY(float3 xyz) { @@ -536,6 +593,7 @@ public static float4x4 EulerXZY(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The float4x4 rotation matrix of the Euler angle rotation in y-x-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerYXZ(float3 xyz) { @@ -555,6 +613,7 @@ public static float4x4 EulerYXZ(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The float4x4 rotation matrix of the Euler angle rotation in y-z-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerYZX(float3 xyz) { @@ -575,6 +634,7 @@ public static float4x4 EulerYZX(float3 xyz) /// This is the default order rotation order in Unity. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The float4x4 rotation matrix of the Euler angle rotation in z-x-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerZXY(float3 xyz) { @@ -594,6 +654,7 @@ public static float4x4 EulerZXY(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The float4x4 rotation matrix of the Euler angle rotation in z-y-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerZYX(float3 xyz) { @@ -615,6 +676,7 @@ public static float4x4 EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The float4x4 rotation matrix of the Euler angle rotation in x-y-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerXYZ(float x, float y, float z) { return EulerXYZ(float3(x, y, z)); } @@ -625,6 +687,7 @@ public static float4x4 EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The float4x4 rotation matrix of the Euler angle rotation in x-z-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerXZY(float x, float y, float z) { return EulerXZY(float3(x, y, z)); } @@ -635,6 +698,7 @@ public static float4x4 EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The float4x4 rotation matrix of the Euler angle rotation in y-x-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerYXZ(float x, float y, float z) { return EulerYXZ(float3(x, y, z)); } @@ -645,6 +709,7 @@ public static float4x4 EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The float4x4 rotation matrix of the Euler angle rotation in y-z-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerYZX(float x, float y, float z) { return EulerYZX(float3(x, y, z)); } @@ -656,6 +721,7 @@ public static float4x4 EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The float4x4 rotation matrix of the Euler angle rotation in z-x-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerZXY(float x, float y, float z) { return EulerZXY(float3(x, y, z)); } @@ -666,9 +732,19 @@ public static float4x4 EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The float4x4 rotation matrix of the Euler angle rotation in z-y-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 EulerZYX(float x, float y, float z) { return EulerZYX(float3(x, y, z)); } + /// + /// Returns a float4x4 constructed by first performing 3 rotations around the principal axes in a given order. + /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. + /// When the rotation order is known at compile time, it is recommended for performance reasons to use specific + /// Euler rotation constructors such as EulerZXY(...). + /// + /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The order in which the rotations are applied. + /// The float4x4 rotation matrix of the Euler angle rotation in given order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 Euler(float3 xyz, RotationOrder order = RotationOrder.Default) { @@ -701,6 +777,7 @@ public static float4x4 Euler(float3 xyz, RotationOrder order = RotationOrder.Def /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. /// The order in which the rotations are applied. + /// The float4x4 rotation matrix of the Euler angle rotation in given order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 Euler(float x, float y, float z, RotationOrder order = RotationOrder.Default) { @@ -709,6 +786,7 @@ public static float4x4 Euler(float x, float y, float z, RotationOrder order = Ro /// Returns a float4x4 matrix that rotates around the x-axis by a given number of radians. /// The clockwise rotation angle when looking along the x-axis towards the origin in radians. + /// The float4x4 rotation matrix that rotates around the x-axis. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 RotateX(float angle) { @@ -724,6 +802,7 @@ public static float4x4 RotateX(float angle) /// Returns a float4x4 matrix that rotates around the y-axis by a given number of radians. /// The clockwise rotation angle when looking along the y-axis towards the origin in radians. + /// The float4x4 rotation matrix that rotates around the y-axis. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 RotateY(float angle) { @@ -739,6 +818,7 @@ public static float4x4 RotateY(float angle) /// Returns a float4x4 matrix that rotates around the z-axis by a given number of radians. /// The clockwise rotation angle when looking along the z-axis towards the origin in radians. + /// The float4x4 rotation matrix that rotates around the z-axis. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 RotateZ(float angle) { @@ -753,6 +833,8 @@ public static float4x4 RotateZ(float angle) } /// Returns a float4x4 scale matrix given 3 axis scales. + /// The uniform scaling factor. + /// The float4x4 matrix that represents a uniform scale. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 Scale(float s) { @@ -763,6 +845,10 @@ public static float4x4 Scale(float s) } /// Returns a float4x4 scale matrix given a float3 vector containing the 3 axis scales. + /// The x-axis scaling factor. + /// The y-axis scaling factor. + /// The z-axis scaling factor. + /// The float4x4 matrix that represents a non-uniform scale. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 Scale(float x, float y, float z) { @@ -773,6 +859,8 @@ public static float4x4 Scale(float x, float y, float z) } /// Returns a float4x4 scale matrix given a float3 vector containing the 3 axis scales. + /// The vector containing scale factors for each axis. + /// The float4x4 matrix that represents a non-uniform scale. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 Scale(float3 scales) { @@ -780,6 +868,8 @@ public static float4x4 Scale(float3 scales) } /// Returns a float4x4 translation matrix given a float3 translation vector. + /// The translation vector. + /// The float4x4 translation matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 Translate(float3 vector) { @@ -795,6 +885,10 @@ public static float4x4 Translate(float3 vector) /// the vector between them is assumes to be collinear with the up vector. /// If these assumptions are not met use float4x4.LookRotationSafe instead. /// + /// The eye position. + /// The view target position. + /// The eye up direction. + /// The float4x4 view matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 LookAt(float3 eye, float3 target, float3 up) { @@ -815,6 +909,7 @@ public static float4x4 LookAt(float3 eye, float3 target, float3 up) /// The height of the view volume. /// The distance to the near plane. /// The distance to the far plane. + /// The float4x4 centered orthographic projection matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 Ortho(float width, float height, float near, float far) { @@ -839,6 +934,7 @@ public static float4x4 Ortho(float width, float height, float near, float far) /// The minimum y-coordinate of the view volume. /// The distance to the near plane. /// The distance to the far plane. + /// The float4x4 off-center orthographic projection matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 OrthoOffCenter(float left, float right, float bottom, float top, float near, float far) { @@ -861,6 +957,7 @@ public static float4x4 OrthoOffCenter(float left, float right, float bottom, flo /// X:Y aspect ratio. /// Distance to near plane. Must be greater than zero. /// Distance to far plane. Must be greater than zero. + /// The float4x4 perspective projection matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 PerspectiveFov(float verticalFov, float aspect, float near, float far) { @@ -884,6 +981,7 @@ public static float4x4 PerspectiveFov(float verticalFov, float aspect, float nea /// The y-coordinate of the top side of the clipping frustum at the near plane. /// Distance to the near plane. Must be greater than zero. /// Distance to the far plane. Must be greater than zero. + /// The float4x4 off-center perspective projection matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 PerspectiveOffCenter(float left, float right, float bottom, float top, float near, float far) { @@ -903,6 +1001,10 @@ public static float4x4 PerspectiveOffCenter(float left, float right, float botto /// Returns a float4x4 matrix representing a combined scale-, rotation- and translation transform. /// Equivalent to mul(translationTransform, mul(rotationTransform, scaleTransform)). /// + /// The translation vector. + /// The quaternion rotation. + /// The scaling factors of each axis. + /// The float4x4 matrix representing the translation, rotation, and scale by the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 TRS(float3 translation, quaternion rotation, float3 scale) { @@ -928,6 +1030,8 @@ public static float3x3 float3x3(float4x4 f4x4) } /// Returns a float3x3 matrix constructed from a quaternion. + /// The quaternion representing a rotation. + /// The float3x3 constructed from a quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 float3x3(quaternion rotation) { @@ -935,6 +1039,9 @@ public static float3x3 float3x3(quaternion rotation) } /// Returns a float4x4 constructed from a float3x3 rotation matrix and a float3 translation vector. + /// The float3x3 rotation matrix. + /// The translation vector. + /// The float4x4 constructed from a rotation and translation. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(float3x3 rotation, float3 translation) { @@ -942,6 +1049,9 @@ public static float4x4 float4x4(float3x3 rotation, float3 translation) } /// Returns a float4x4 constructed from a quaternion and a float3 translation vector. + /// The quaternion rotation. + /// The translation vector. + /// The float4x4 constructed from a rotation and translation. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(quaternion rotation, float3 translation) { @@ -949,6 +1059,8 @@ public static float4x4 float4x4(quaternion rotation, float3 translation) } /// Returns a float4x4 constructed from a RigidTransform. + /// The rigid transformation. + /// The float4x4 constructed from a RigidTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(RigidTransform transform) { @@ -956,6 +1068,8 @@ public static float4x4 float4x4(RigidTransform transform) } /// Returns an orthonormalized version of a float3x3 matrix. + /// The float3x3 to be orthonormalized. + /// The orthonormalized float3x3 matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 orthonormalize(float3x3 i) { diff --git a/src/Unity.Mathematics/matrix.gen.cs b/src/Unity.Mathematics/matrix.gen.cs index 4bd21af2..85427ac6 100644 --- a/src/Unity.Mathematics/matrix.gen.cs +++ b/src/Unity.Mathematics/matrix.gen.cs @@ -14,6 +14,9 @@ namespace Unity.Mathematics partial class math { /// Returns the float value result of a matrix multiplication between a float value and a float value. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float mul(float a, float b) { @@ -21,6 +24,9 @@ public static float mul(float a, float b) } /// Returns the float value result of a matrix multiplication between a float2 row vector and a float2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float mul(float2 a, float2 b) { @@ -28,6 +34,9 @@ public static float mul(float2 a, float2 b) } /// Returns the float2 row vector result of a matrix multiplication between a float2 row vector and a float2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 mul(float2 a, float2x2 b) { @@ -37,6 +46,9 @@ public static float2 mul(float2 a, float2x2 b) } /// Returns the float3 row vector result of a matrix multiplication between a float2 row vector and a float2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 mul(float2 a, float2x3 b) { @@ -47,6 +59,9 @@ public static float3 mul(float2 a, float2x3 b) } /// Returns the float4 row vector result of a matrix multiplication between a float2 row vector and a float2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 mul(float2 a, float2x4 b) { @@ -58,6 +73,9 @@ public static float4 mul(float2 a, float2x4 b) } /// Returns the float value result of a matrix multiplication between a float3 row vector and a float3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float mul(float3 a, float3 b) { @@ -65,6 +83,9 @@ public static float mul(float3 a, float3 b) } /// Returns the float2 row vector result of a matrix multiplication between a float3 row vector and a float3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 mul(float3 a, float3x2 b) { @@ -74,6 +95,9 @@ public static float2 mul(float3 a, float3x2 b) } /// Returns the float3 row vector result of a matrix multiplication between a float3 row vector and a float3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 mul(float3 a, float3x3 b) { @@ -84,6 +108,9 @@ public static float3 mul(float3 a, float3x3 b) } /// Returns the float4 row vector result of a matrix multiplication between a float3 row vector and a float3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 mul(float3 a, float3x4 b) { @@ -95,6 +122,9 @@ public static float4 mul(float3 a, float3x4 b) } /// Returns the float value result of a matrix multiplication between a float4 row vector and a float4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float mul(float4 a, float4 b) { @@ -102,6 +132,9 @@ public static float mul(float4 a, float4 b) } /// Returns the float2 row vector result of a matrix multiplication between a float4 row vector and a float4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 mul(float4 a, float4x2 b) { @@ -111,6 +144,9 @@ public static float2 mul(float4 a, float4x2 b) } /// Returns the float3 row vector result of a matrix multiplication between a float4 row vector and a float4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 mul(float4 a, float4x3 b) { @@ -121,6 +157,9 @@ public static float3 mul(float4 a, float4x3 b) } /// Returns the float4 row vector result of a matrix multiplication between a float4 row vector and a float4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 mul(float4 a, float4x4 b) { @@ -132,6 +171,9 @@ public static float4 mul(float4 a, float4x4 b) } /// Returns the float2 column vector result of a matrix multiplication between a float2x2 matrix and a float2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 mul(float2x2 a, float2 b) { @@ -139,6 +181,9 @@ public static float2 mul(float2x2 a, float2 b) } /// Returns the float2x2 matrix result of a matrix multiplication between a float2x2 matrix and a float2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 mul(float2x2 a, float2x2 b) { @@ -148,6 +193,9 @@ public static float2x2 mul(float2x2 a, float2x2 b) } /// Returns the float2x3 matrix result of a matrix multiplication between a float2x2 matrix and a float2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 mul(float2x2 a, float2x3 b) { @@ -158,6 +206,9 @@ public static float2x3 mul(float2x2 a, float2x3 b) } /// Returns the float2x4 matrix result of a matrix multiplication between a float2x2 matrix and a float2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 mul(float2x2 a, float2x4 b) { @@ -169,6 +220,9 @@ public static float2x4 mul(float2x2 a, float2x4 b) } /// Returns the float2 column vector result of a matrix multiplication between a float2x3 matrix and a float3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 mul(float2x3 a, float3 b) { @@ -176,6 +230,9 @@ public static float2 mul(float2x3 a, float3 b) } /// Returns the float2x2 matrix result of a matrix multiplication between a float2x3 matrix and a float3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 mul(float2x3 a, float3x2 b) { @@ -185,6 +242,9 @@ public static float2x2 mul(float2x3 a, float3x2 b) } /// Returns the float2x3 matrix result of a matrix multiplication between a float2x3 matrix and a float3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 mul(float2x3 a, float3x3 b) { @@ -195,6 +255,9 @@ public static float2x3 mul(float2x3 a, float3x3 b) } /// Returns the float2x4 matrix result of a matrix multiplication between a float2x3 matrix and a float3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 mul(float2x3 a, float3x4 b) { @@ -206,6 +269,9 @@ public static float2x4 mul(float2x3 a, float3x4 b) } /// Returns the float2 column vector result of a matrix multiplication between a float2x4 matrix and a float4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2 mul(float2x4 a, float4 b) { @@ -213,6 +279,9 @@ public static float2 mul(float2x4 a, float4 b) } /// Returns the float2x2 matrix result of a matrix multiplication between a float2x4 matrix and a float4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x2 mul(float2x4 a, float4x2 b) { @@ -222,6 +291,9 @@ public static float2x2 mul(float2x4 a, float4x2 b) } /// Returns the float2x3 matrix result of a matrix multiplication between a float2x4 matrix and a float4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x3 mul(float2x4 a, float4x3 b) { @@ -232,6 +304,9 @@ public static float2x3 mul(float2x4 a, float4x3 b) } /// Returns the float2x4 matrix result of a matrix multiplication between a float2x4 matrix and a float4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float2x4 mul(float2x4 a, float4x4 b) { @@ -243,6 +318,9 @@ public static float2x4 mul(float2x4 a, float4x4 b) } /// Returns the float3 column vector result of a matrix multiplication between a float3x2 matrix and a float2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 mul(float3x2 a, float2 b) { @@ -250,6 +328,9 @@ public static float3 mul(float3x2 a, float2 b) } /// Returns the float3x2 matrix result of a matrix multiplication between a float3x2 matrix and a float2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 mul(float3x2 a, float2x2 b) { @@ -259,6 +340,9 @@ public static float3x2 mul(float3x2 a, float2x2 b) } /// Returns the float3x3 matrix result of a matrix multiplication between a float3x2 matrix and a float2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 mul(float3x2 a, float2x3 b) { @@ -269,6 +353,9 @@ public static float3x3 mul(float3x2 a, float2x3 b) } /// Returns the float3x4 matrix result of a matrix multiplication between a float3x2 matrix and a float2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 mul(float3x2 a, float2x4 b) { @@ -280,6 +367,9 @@ public static float3x4 mul(float3x2 a, float2x4 b) } /// Returns the float3 column vector result of a matrix multiplication between a float3x3 matrix and a float3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 mul(float3x3 a, float3 b) { @@ -287,6 +377,9 @@ public static float3 mul(float3x3 a, float3 b) } /// Returns the float3x2 matrix result of a matrix multiplication between a float3x3 matrix and a float3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 mul(float3x3 a, float3x2 b) { @@ -296,6 +389,9 @@ public static float3x2 mul(float3x3 a, float3x2 b) } /// Returns the float3x3 matrix result of a matrix multiplication between a float3x3 matrix and a float3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 mul(float3x3 a, float3x3 b) { @@ -306,6 +402,9 @@ public static float3x3 mul(float3x3 a, float3x3 b) } /// Returns the float3x4 matrix result of a matrix multiplication between a float3x3 matrix and a float3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 mul(float3x3 a, float3x4 b) { @@ -317,6 +416,9 @@ public static float3x4 mul(float3x3 a, float3x4 b) } /// Returns the float3 column vector result of a matrix multiplication between a float3x4 matrix and a float4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 mul(float3x4 a, float4 b) { @@ -324,6 +426,9 @@ public static float3 mul(float3x4 a, float4 b) } /// Returns the float3x2 matrix result of a matrix multiplication between a float3x4 matrix and a float4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x2 mul(float3x4 a, float4x2 b) { @@ -333,6 +438,9 @@ public static float3x2 mul(float3x4 a, float4x2 b) } /// Returns the float3x3 matrix result of a matrix multiplication between a float3x4 matrix and a float4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 mul(float3x4 a, float4x3 b) { @@ -343,6 +451,9 @@ public static float3x3 mul(float3x4 a, float4x3 b) } /// Returns the float3x4 matrix result of a matrix multiplication between a float3x4 matrix and a float4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 mul(float3x4 a, float4x4 b) { @@ -354,6 +465,9 @@ public static float3x4 mul(float3x4 a, float4x4 b) } /// Returns the float4 column vector result of a matrix multiplication between a float4x2 matrix and a float2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 mul(float4x2 a, float2 b) { @@ -361,6 +475,9 @@ public static float4 mul(float4x2 a, float2 b) } /// Returns the float4x2 matrix result of a matrix multiplication between a float4x2 matrix and a float2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 mul(float4x2 a, float2x2 b) { @@ -370,6 +487,9 @@ public static float4x2 mul(float4x2 a, float2x2 b) } /// Returns the float4x3 matrix result of a matrix multiplication between a float4x2 matrix and a float2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 mul(float4x2 a, float2x3 b) { @@ -380,6 +500,9 @@ public static float4x3 mul(float4x2 a, float2x3 b) } /// Returns the float4x4 matrix result of a matrix multiplication between a float4x2 matrix and a float2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 mul(float4x2 a, float2x4 b) { @@ -391,6 +514,9 @@ public static float4x4 mul(float4x2 a, float2x4 b) } /// Returns the float4 column vector result of a matrix multiplication between a float4x3 matrix and a float3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 mul(float4x3 a, float3 b) { @@ -398,6 +524,9 @@ public static float4 mul(float4x3 a, float3 b) } /// Returns the float4x2 matrix result of a matrix multiplication between a float4x3 matrix and a float3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 mul(float4x3 a, float3x2 b) { @@ -407,6 +536,9 @@ public static float4x2 mul(float4x3 a, float3x2 b) } /// Returns the float4x3 matrix result of a matrix multiplication between a float4x3 matrix and a float3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 mul(float4x3 a, float3x3 b) { @@ -417,6 +549,9 @@ public static float4x3 mul(float4x3 a, float3x3 b) } /// Returns the float4x4 matrix result of a matrix multiplication between a float4x3 matrix and a float3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 mul(float4x3 a, float3x4 b) { @@ -428,6 +563,9 @@ public static float4x4 mul(float4x3 a, float3x4 b) } /// Returns the float4 column vector result of a matrix multiplication between a float4x4 matrix and a float4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 mul(float4x4 a, float4 b) { @@ -435,6 +573,9 @@ public static float4 mul(float4x4 a, float4 b) } /// Returns the float4x2 matrix result of a matrix multiplication between a float4x4 matrix and a float4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x2 mul(float4x4 a, float4x2 b) { @@ -444,6 +585,9 @@ public static float4x2 mul(float4x4 a, float4x2 b) } /// Returns the float4x3 matrix result of a matrix multiplication between a float4x4 matrix and a float4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x3 mul(float4x4 a, float4x3 b) { @@ -454,6 +598,9 @@ public static float4x3 mul(float4x4 a, float4x3 b) } /// Returns the float4x4 matrix result of a matrix multiplication between a float4x4 matrix and a float4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 mul(float4x4 a, float4x4 b) { @@ -465,6 +612,9 @@ public static float4x4 mul(float4x4 a, float4x4 b) } /// Returns the double value result of a matrix multiplication between a double value and a double value. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double mul(double a, double b) { @@ -472,6 +622,9 @@ public static double mul(double a, double b) } /// Returns the double value result of a matrix multiplication between a double2 row vector and a double2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double mul(double2 a, double2 b) { @@ -479,6 +632,9 @@ public static double mul(double2 a, double2 b) } /// Returns the double2 row vector result of a matrix multiplication between a double2 row vector and a double2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 mul(double2 a, double2x2 b) { @@ -488,6 +644,9 @@ public static double2 mul(double2 a, double2x2 b) } /// Returns the double3 row vector result of a matrix multiplication between a double2 row vector and a double2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 mul(double2 a, double2x3 b) { @@ -498,6 +657,9 @@ public static double3 mul(double2 a, double2x3 b) } /// Returns the double4 row vector result of a matrix multiplication between a double2 row vector and a double2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 mul(double2 a, double2x4 b) { @@ -509,6 +671,9 @@ public static double4 mul(double2 a, double2x4 b) } /// Returns the double value result of a matrix multiplication between a double3 row vector and a double3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double mul(double3 a, double3 b) { @@ -516,6 +681,9 @@ public static double mul(double3 a, double3 b) } /// Returns the double2 row vector result of a matrix multiplication between a double3 row vector and a double3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 mul(double3 a, double3x2 b) { @@ -525,6 +693,9 @@ public static double2 mul(double3 a, double3x2 b) } /// Returns the double3 row vector result of a matrix multiplication between a double3 row vector and a double3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 mul(double3 a, double3x3 b) { @@ -535,6 +706,9 @@ public static double3 mul(double3 a, double3x3 b) } /// Returns the double4 row vector result of a matrix multiplication between a double3 row vector and a double3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 mul(double3 a, double3x4 b) { @@ -546,6 +720,9 @@ public static double4 mul(double3 a, double3x4 b) } /// Returns the double value result of a matrix multiplication between a double4 row vector and a double4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double mul(double4 a, double4 b) { @@ -553,6 +730,9 @@ public static double mul(double4 a, double4 b) } /// Returns the double2 row vector result of a matrix multiplication between a double4 row vector and a double4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 mul(double4 a, double4x2 b) { @@ -562,6 +742,9 @@ public static double2 mul(double4 a, double4x2 b) } /// Returns the double3 row vector result of a matrix multiplication between a double4 row vector and a double4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 mul(double4 a, double4x3 b) { @@ -572,6 +755,9 @@ public static double3 mul(double4 a, double4x3 b) } /// Returns the double4 row vector result of a matrix multiplication between a double4 row vector and a double4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 mul(double4 a, double4x4 b) { @@ -583,6 +769,9 @@ public static double4 mul(double4 a, double4x4 b) } /// Returns the double2 column vector result of a matrix multiplication between a double2x2 matrix and a double2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 mul(double2x2 a, double2 b) { @@ -590,6 +779,9 @@ public static double2 mul(double2x2 a, double2 b) } /// Returns the double2x2 matrix result of a matrix multiplication between a double2x2 matrix and a double2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 mul(double2x2 a, double2x2 b) { @@ -599,6 +791,9 @@ public static double2x2 mul(double2x2 a, double2x2 b) } /// Returns the double2x3 matrix result of a matrix multiplication between a double2x2 matrix and a double2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 mul(double2x2 a, double2x3 b) { @@ -609,6 +804,9 @@ public static double2x3 mul(double2x2 a, double2x3 b) } /// Returns the double2x4 matrix result of a matrix multiplication between a double2x2 matrix and a double2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 mul(double2x2 a, double2x4 b) { @@ -620,6 +818,9 @@ public static double2x4 mul(double2x2 a, double2x4 b) } /// Returns the double2 column vector result of a matrix multiplication between a double2x3 matrix and a double3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 mul(double2x3 a, double3 b) { @@ -627,6 +828,9 @@ public static double2 mul(double2x3 a, double3 b) } /// Returns the double2x2 matrix result of a matrix multiplication between a double2x3 matrix and a double3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 mul(double2x3 a, double3x2 b) { @@ -636,6 +840,9 @@ public static double2x2 mul(double2x3 a, double3x2 b) } /// Returns the double2x3 matrix result of a matrix multiplication between a double2x3 matrix and a double3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 mul(double2x3 a, double3x3 b) { @@ -646,6 +853,9 @@ public static double2x3 mul(double2x3 a, double3x3 b) } /// Returns the double2x4 matrix result of a matrix multiplication between a double2x3 matrix and a double3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 mul(double2x3 a, double3x4 b) { @@ -657,6 +867,9 @@ public static double2x4 mul(double2x3 a, double3x4 b) } /// Returns the double2 column vector result of a matrix multiplication between a double2x4 matrix and a double4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2 mul(double2x4 a, double4 b) { @@ -664,6 +877,9 @@ public static double2 mul(double2x4 a, double4 b) } /// Returns the double2x2 matrix result of a matrix multiplication between a double2x4 matrix and a double4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x2 mul(double2x4 a, double4x2 b) { @@ -673,6 +889,9 @@ public static double2x2 mul(double2x4 a, double4x2 b) } /// Returns the double2x3 matrix result of a matrix multiplication between a double2x4 matrix and a double4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x3 mul(double2x4 a, double4x3 b) { @@ -683,6 +902,9 @@ public static double2x3 mul(double2x4 a, double4x3 b) } /// Returns the double2x4 matrix result of a matrix multiplication between a double2x4 matrix and a double4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double2x4 mul(double2x4 a, double4x4 b) { @@ -694,6 +916,9 @@ public static double2x4 mul(double2x4 a, double4x4 b) } /// Returns the double3 column vector result of a matrix multiplication between a double3x2 matrix and a double2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 mul(double3x2 a, double2 b) { @@ -701,6 +926,9 @@ public static double3 mul(double3x2 a, double2 b) } /// Returns the double3x2 matrix result of a matrix multiplication between a double3x2 matrix and a double2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 mul(double3x2 a, double2x2 b) { @@ -710,6 +938,9 @@ public static double3x2 mul(double3x2 a, double2x2 b) } /// Returns the double3x3 matrix result of a matrix multiplication between a double3x2 matrix and a double2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 mul(double3x2 a, double2x3 b) { @@ -720,6 +951,9 @@ public static double3x3 mul(double3x2 a, double2x3 b) } /// Returns the double3x4 matrix result of a matrix multiplication between a double3x2 matrix and a double2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 mul(double3x2 a, double2x4 b) { @@ -731,6 +965,9 @@ public static double3x4 mul(double3x2 a, double2x4 b) } /// Returns the double3 column vector result of a matrix multiplication between a double3x3 matrix and a double3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 mul(double3x3 a, double3 b) { @@ -738,6 +975,9 @@ public static double3 mul(double3x3 a, double3 b) } /// Returns the double3x2 matrix result of a matrix multiplication between a double3x3 matrix and a double3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 mul(double3x3 a, double3x2 b) { @@ -747,6 +987,9 @@ public static double3x2 mul(double3x3 a, double3x2 b) } /// Returns the double3x3 matrix result of a matrix multiplication between a double3x3 matrix and a double3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 mul(double3x3 a, double3x3 b) { @@ -757,6 +1000,9 @@ public static double3x3 mul(double3x3 a, double3x3 b) } /// Returns the double3x4 matrix result of a matrix multiplication between a double3x3 matrix and a double3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 mul(double3x3 a, double3x4 b) { @@ -768,6 +1014,9 @@ public static double3x4 mul(double3x3 a, double3x4 b) } /// Returns the double3 column vector result of a matrix multiplication between a double3x4 matrix and a double4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3 mul(double3x4 a, double4 b) { @@ -775,6 +1024,9 @@ public static double3 mul(double3x4 a, double4 b) } /// Returns the double3x2 matrix result of a matrix multiplication between a double3x4 matrix and a double4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x2 mul(double3x4 a, double4x2 b) { @@ -784,6 +1036,9 @@ public static double3x2 mul(double3x4 a, double4x2 b) } /// Returns the double3x3 matrix result of a matrix multiplication between a double3x4 matrix and a double4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x3 mul(double3x4 a, double4x3 b) { @@ -794,6 +1049,9 @@ public static double3x3 mul(double3x4 a, double4x3 b) } /// Returns the double3x4 matrix result of a matrix multiplication between a double3x4 matrix and a double4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double3x4 mul(double3x4 a, double4x4 b) { @@ -805,6 +1063,9 @@ public static double3x4 mul(double3x4 a, double4x4 b) } /// Returns the double4 column vector result of a matrix multiplication between a double4x2 matrix and a double2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 mul(double4x2 a, double2 b) { @@ -812,6 +1073,9 @@ public static double4 mul(double4x2 a, double2 b) } /// Returns the double4x2 matrix result of a matrix multiplication between a double4x2 matrix and a double2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 mul(double4x2 a, double2x2 b) { @@ -821,6 +1085,9 @@ public static double4x2 mul(double4x2 a, double2x2 b) } /// Returns the double4x3 matrix result of a matrix multiplication between a double4x2 matrix and a double2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 mul(double4x2 a, double2x3 b) { @@ -831,6 +1098,9 @@ public static double4x3 mul(double4x2 a, double2x3 b) } /// Returns the double4x4 matrix result of a matrix multiplication between a double4x2 matrix and a double2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 mul(double4x2 a, double2x4 b) { @@ -842,6 +1112,9 @@ public static double4x4 mul(double4x2 a, double2x4 b) } /// Returns the double4 column vector result of a matrix multiplication between a double4x3 matrix and a double3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 mul(double4x3 a, double3 b) { @@ -849,6 +1122,9 @@ public static double4 mul(double4x3 a, double3 b) } /// Returns the double4x2 matrix result of a matrix multiplication between a double4x3 matrix and a double3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 mul(double4x3 a, double3x2 b) { @@ -858,6 +1134,9 @@ public static double4x2 mul(double4x3 a, double3x2 b) } /// Returns the double4x3 matrix result of a matrix multiplication between a double4x3 matrix and a double3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 mul(double4x3 a, double3x3 b) { @@ -868,6 +1147,9 @@ public static double4x3 mul(double4x3 a, double3x3 b) } /// Returns the double4x4 matrix result of a matrix multiplication between a double4x3 matrix and a double3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 mul(double4x3 a, double3x4 b) { @@ -879,6 +1161,9 @@ public static double4x4 mul(double4x3 a, double3x4 b) } /// Returns the double4 column vector result of a matrix multiplication between a double4x4 matrix and a double4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 mul(double4x4 a, double4 b) { @@ -886,6 +1171,9 @@ public static double4 mul(double4x4 a, double4 b) } /// Returns the double4x2 matrix result of a matrix multiplication between a double4x4 matrix and a double4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x2 mul(double4x4 a, double4x2 b) { @@ -895,6 +1183,9 @@ public static double4x2 mul(double4x4 a, double4x2 b) } /// Returns the double4x3 matrix result of a matrix multiplication between a double4x4 matrix and a double4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x3 mul(double4x4 a, double4x3 b) { @@ -905,6 +1196,9 @@ public static double4x3 mul(double4x4 a, double4x3 b) } /// Returns the double4x4 matrix result of a matrix multiplication between a double4x4 matrix and a double4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4x4 mul(double4x4 a, double4x4 b) { @@ -916,6 +1210,9 @@ public static double4x4 mul(double4x4 a, double4x4 b) } /// Returns the int value result of a matrix multiplication between an int value and an int value. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int mul(int a, int b) { @@ -923,6 +1220,9 @@ public static int mul(int a, int b) } /// Returns the int value result of a matrix multiplication between an int2 row vector and an int2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int mul(int2 a, int2 b) { @@ -930,6 +1230,9 @@ public static int mul(int2 a, int2 b) } /// Returns the int2 row vector result of a matrix multiplication between an int2 row vector and an int2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 mul(int2 a, int2x2 b) { @@ -939,6 +1242,9 @@ public static int2 mul(int2 a, int2x2 b) } /// Returns the int3 row vector result of a matrix multiplication between an int2 row vector and an int2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 mul(int2 a, int2x3 b) { @@ -949,6 +1255,9 @@ public static int3 mul(int2 a, int2x3 b) } /// Returns the int4 row vector result of a matrix multiplication between an int2 row vector and an int2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 mul(int2 a, int2x4 b) { @@ -960,6 +1269,9 @@ public static int4 mul(int2 a, int2x4 b) } /// Returns the int value result of a matrix multiplication between an int3 row vector and an int3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int mul(int3 a, int3 b) { @@ -967,6 +1279,9 @@ public static int mul(int3 a, int3 b) } /// Returns the int2 row vector result of a matrix multiplication between an int3 row vector and an int3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 mul(int3 a, int3x2 b) { @@ -976,6 +1291,9 @@ public static int2 mul(int3 a, int3x2 b) } /// Returns the int3 row vector result of a matrix multiplication between an int3 row vector and an int3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 mul(int3 a, int3x3 b) { @@ -986,6 +1304,9 @@ public static int3 mul(int3 a, int3x3 b) } /// Returns the int4 row vector result of a matrix multiplication between an int3 row vector and an int3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 mul(int3 a, int3x4 b) { @@ -997,6 +1318,9 @@ public static int4 mul(int3 a, int3x4 b) } /// Returns the int value result of a matrix multiplication between an int4 row vector and an int4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int mul(int4 a, int4 b) { @@ -1004,6 +1328,9 @@ public static int mul(int4 a, int4 b) } /// Returns the int2 row vector result of a matrix multiplication between an int4 row vector and an int4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 mul(int4 a, int4x2 b) { @@ -1013,6 +1340,9 @@ public static int2 mul(int4 a, int4x2 b) } /// Returns the int3 row vector result of a matrix multiplication between an int4 row vector and an int4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 mul(int4 a, int4x3 b) { @@ -1023,6 +1353,9 @@ public static int3 mul(int4 a, int4x3 b) } /// Returns the int4 row vector result of a matrix multiplication between an int4 row vector and an int4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 mul(int4 a, int4x4 b) { @@ -1034,6 +1367,9 @@ public static int4 mul(int4 a, int4x4 b) } /// Returns the int2 column vector result of a matrix multiplication between an int2x2 matrix and an int2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 mul(int2x2 a, int2 b) { @@ -1041,6 +1377,9 @@ public static int2 mul(int2x2 a, int2 b) } /// Returns the int2x2 matrix result of a matrix multiplication between an int2x2 matrix and an int2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 mul(int2x2 a, int2x2 b) { @@ -1050,6 +1389,9 @@ public static int2x2 mul(int2x2 a, int2x2 b) } /// Returns the int2x3 matrix result of a matrix multiplication between an int2x2 matrix and an int2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 mul(int2x2 a, int2x3 b) { @@ -1060,6 +1402,9 @@ public static int2x3 mul(int2x2 a, int2x3 b) } /// Returns the int2x4 matrix result of a matrix multiplication between an int2x2 matrix and an int2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 mul(int2x2 a, int2x4 b) { @@ -1071,6 +1416,9 @@ public static int2x4 mul(int2x2 a, int2x4 b) } /// Returns the int2 column vector result of a matrix multiplication between an int2x3 matrix and an int3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 mul(int2x3 a, int3 b) { @@ -1078,6 +1426,9 @@ public static int2 mul(int2x3 a, int3 b) } /// Returns the int2x2 matrix result of a matrix multiplication between an int2x3 matrix and an int3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 mul(int2x3 a, int3x2 b) { @@ -1087,6 +1438,9 @@ public static int2x2 mul(int2x3 a, int3x2 b) } /// Returns the int2x3 matrix result of a matrix multiplication between an int2x3 matrix and an int3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 mul(int2x3 a, int3x3 b) { @@ -1097,6 +1451,9 @@ public static int2x3 mul(int2x3 a, int3x3 b) } /// Returns the int2x4 matrix result of a matrix multiplication between an int2x3 matrix and an int3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 mul(int2x3 a, int3x4 b) { @@ -1108,6 +1465,9 @@ public static int2x4 mul(int2x3 a, int3x4 b) } /// Returns the int2 column vector result of a matrix multiplication between an int2x4 matrix and an int4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2 mul(int2x4 a, int4 b) { @@ -1115,6 +1475,9 @@ public static int2 mul(int2x4 a, int4 b) } /// Returns the int2x2 matrix result of a matrix multiplication between an int2x4 matrix and an int4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x2 mul(int2x4 a, int4x2 b) { @@ -1124,6 +1487,9 @@ public static int2x2 mul(int2x4 a, int4x2 b) } /// Returns the int2x3 matrix result of a matrix multiplication between an int2x4 matrix and an int4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x3 mul(int2x4 a, int4x3 b) { @@ -1134,6 +1500,9 @@ public static int2x3 mul(int2x4 a, int4x3 b) } /// Returns the int2x4 matrix result of a matrix multiplication between an int2x4 matrix and an int4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int2x4 mul(int2x4 a, int4x4 b) { @@ -1145,6 +1514,9 @@ public static int2x4 mul(int2x4 a, int4x4 b) } /// Returns the int3 column vector result of a matrix multiplication between an int3x2 matrix and an int2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 mul(int3x2 a, int2 b) { @@ -1152,6 +1524,9 @@ public static int3 mul(int3x2 a, int2 b) } /// Returns the int3x2 matrix result of a matrix multiplication between an int3x2 matrix and an int2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 mul(int3x2 a, int2x2 b) { @@ -1161,6 +1536,9 @@ public static int3x2 mul(int3x2 a, int2x2 b) } /// Returns the int3x3 matrix result of a matrix multiplication between an int3x2 matrix and an int2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 mul(int3x2 a, int2x3 b) { @@ -1171,6 +1549,9 @@ public static int3x3 mul(int3x2 a, int2x3 b) } /// Returns the int3x4 matrix result of a matrix multiplication between an int3x2 matrix and an int2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 mul(int3x2 a, int2x4 b) { @@ -1182,6 +1563,9 @@ public static int3x4 mul(int3x2 a, int2x4 b) } /// Returns the int3 column vector result of a matrix multiplication between an int3x3 matrix and an int3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 mul(int3x3 a, int3 b) { @@ -1189,6 +1573,9 @@ public static int3 mul(int3x3 a, int3 b) } /// Returns the int3x2 matrix result of a matrix multiplication between an int3x3 matrix and an int3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 mul(int3x3 a, int3x2 b) { @@ -1198,6 +1585,9 @@ public static int3x2 mul(int3x3 a, int3x2 b) } /// Returns the int3x3 matrix result of a matrix multiplication between an int3x3 matrix and an int3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 mul(int3x3 a, int3x3 b) { @@ -1208,6 +1598,9 @@ public static int3x3 mul(int3x3 a, int3x3 b) } /// Returns the int3x4 matrix result of a matrix multiplication between an int3x3 matrix and an int3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 mul(int3x3 a, int3x4 b) { @@ -1219,6 +1612,9 @@ public static int3x4 mul(int3x3 a, int3x4 b) } /// Returns the int3 column vector result of a matrix multiplication between an int3x4 matrix and an int4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3 mul(int3x4 a, int4 b) { @@ -1226,6 +1622,9 @@ public static int3 mul(int3x4 a, int4 b) } /// Returns the int3x2 matrix result of a matrix multiplication between an int3x4 matrix and an int4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x2 mul(int3x4 a, int4x2 b) { @@ -1235,6 +1634,9 @@ public static int3x2 mul(int3x4 a, int4x2 b) } /// Returns the int3x3 matrix result of a matrix multiplication between an int3x4 matrix and an int4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x3 mul(int3x4 a, int4x3 b) { @@ -1245,6 +1647,9 @@ public static int3x3 mul(int3x4 a, int4x3 b) } /// Returns the int3x4 matrix result of a matrix multiplication between an int3x4 matrix and an int4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int3x4 mul(int3x4 a, int4x4 b) { @@ -1256,6 +1661,9 @@ public static int3x4 mul(int3x4 a, int4x4 b) } /// Returns the int4 column vector result of a matrix multiplication between an int4x2 matrix and an int2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 mul(int4x2 a, int2 b) { @@ -1263,6 +1671,9 @@ public static int4 mul(int4x2 a, int2 b) } /// Returns the int4x2 matrix result of a matrix multiplication between an int4x2 matrix and an int2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 mul(int4x2 a, int2x2 b) { @@ -1272,6 +1683,9 @@ public static int4x2 mul(int4x2 a, int2x2 b) } /// Returns the int4x3 matrix result of a matrix multiplication between an int4x2 matrix and an int2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 mul(int4x2 a, int2x3 b) { @@ -1282,6 +1696,9 @@ public static int4x3 mul(int4x2 a, int2x3 b) } /// Returns the int4x4 matrix result of a matrix multiplication between an int4x2 matrix and an int2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 mul(int4x2 a, int2x4 b) { @@ -1293,6 +1710,9 @@ public static int4x4 mul(int4x2 a, int2x4 b) } /// Returns the int4 column vector result of a matrix multiplication between an int4x3 matrix and an int3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 mul(int4x3 a, int3 b) { @@ -1300,6 +1720,9 @@ public static int4 mul(int4x3 a, int3 b) } /// Returns the int4x2 matrix result of a matrix multiplication between an int4x3 matrix and an int3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 mul(int4x3 a, int3x2 b) { @@ -1309,6 +1732,9 @@ public static int4x2 mul(int4x3 a, int3x2 b) } /// Returns the int4x3 matrix result of a matrix multiplication between an int4x3 matrix and an int3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 mul(int4x3 a, int3x3 b) { @@ -1319,6 +1745,9 @@ public static int4x3 mul(int4x3 a, int3x3 b) } /// Returns the int4x4 matrix result of a matrix multiplication between an int4x3 matrix and an int3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 mul(int4x3 a, int3x4 b) { @@ -1330,6 +1759,9 @@ public static int4x4 mul(int4x3 a, int3x4 b) } /// Returns the int4 column vector result of a matrix multiplication between an int4x4 matrix and an int4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 mul(int4x4 a, int4 b) { @@ -1337,6 +1769,9 @@ public static int4 mul(int4x4 a, int4 b) } /// Returns the int4x2 matrix result of a matrix multiplication between an int4x4 matrix and an int4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x2 mul(int4x4 a, int4x2 b) { @@ -1346,6 +1781,9 @@ public static int4x2 mul(int4x4 a, int4x2 b) } /// Returns the int4x3 matrix result of a matrix multiplication between an int4x4 matrix and an int4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x3 mul(int4x4 a, int4x3 b) { @@ -1356,6 +1794,9 @@ public static int4x3 mul(int4x4 a, int4x3 b) } /// Returns the int4x4 matrix result of a matrix multiplication between an int4x4 matrix and an int4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4x4 mul(int4x4 a, int4x4 b) { @@ -1367,6 +1808,9 @@ public static int4x4 mul(int4x4 a, int4x4 b) } /// Returns the uint value result of a matrix multiplication between a uint value and a uint value. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint mul(uint a, uint b) { @@ -1374,6 +1818,9 @@ public static uint mul(uint a, uint b) } /// Returns the uint value result of a matrix multiplication between a uint2 row vector and a uint2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint mul(uint2 a, uint2 b) { @@ -1381,6 +1828,9 @@ public static uint mul(uint2 a, uint2 b) } /// Returns the uint2 row vector result of a matrix multiplication between a uint2 row vector and a uint2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 mul(uint2 a, uint2x2 b) { @@ -1390,6 +1840,9 @@ public static uint2 mul(uint2 a, uint2x2 b) } /// Returns the uint3 row vector result of a matrix multiplication between a uint2 row vector and a uint2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 mul(uint2 a, uint2x3 b) { @@ -1400,6 +1853,9 @@ public static uint3 mul(uint2 a, uint2x3 b) } /// Returns the uint4 row vector result of a matrix multiplication between a uint2 row vector and a uint2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 mul(uint2 a, uint2x4 b) { @@ -1411,6 +1867,9 @@ public static uint4 mul(uint2 a, uint2x4 b) } /// Returns the uint value result of a matrix multiplication between a uint3 row vector and a uint3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint mul(uint3 a, uint3 b) { @@ -1418,6 +1877,9 @@ public static uint mul(uint3 a, uint3 b) } /// Returns the uint2 row vector result of a matrix multiplication between a uint3 row vector and a uint3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 mul(uint3 a, uint3x2 b) { @@ -1427,6 +1889,9 @@ public static uint2 mul(uint3 a, uint3x2 b) } /// Returns the uint3 row vector result of a matrix multiplication between a uint3 row vector and a uint3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 mul(uint3 a, uint3x3 b) { @@ -1437,6 +1902,9 @@ public static uint3 mul(uint3 a, uint3x3 b) } /// Returns the uint4 row vector result of a matrix multiplication between a uint3 row vector and a uint3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 mul(uint3 a, uint3x4 b) { @@ -1448,6 +1916,9 @@ public static uint4 mul(uint3 a, uint3x4 b) } /// Returns the uint value result of a matrix multiplication between a uint4 row vector and a uint4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint mul(uint4 a, uint4 b) { @@ -1455,6 +1926,9 @@ public static uint mul(uint4 a, uint4 b) } /// Returns the uint2 row vector result of a matrix multiplication between a uint4 row vector and a uint4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 mul(uint4 a, uint4x2 b) { @@ -1464,6 +1938,9 @@ public static uint2 mul(uint4 a, uint4x2 b) } /// Returns the uint3 row vector result of a matrix multiplication between a uint4 row vector and a uint4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 mul(uint4 a, uint4x3 b) { @@ -1474,6 +1951,9 @@ public static uint3 mul(uint4 a, uint4x3 b) } /// Returns the uint4 row vector result of a matrix multiplication between a uint4 row vector and a uint4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 mul(uint4 a, uint4x4 b) { @@ -1485,6 +1965,9 @@ public static uint4 mul(uint4 a, uint4x4 b) } /// Returns the uint2 column vector result of a matrix multiplication between a uint2x2 matrix and a uint2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 mul(uint2x2 a, uint2 b) { @@ -1492,6 +1975,9 @@ public static uint2 mul(uint2x2 a, uint2 b) } /// Returns the uint2x2 matrix result of a matrix multiplication between a uint2x2 matrix and a uint2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 mul(uint2x2 a, uint2x2 b) { @@ -1501,6 +1987,9 @@ public static uint2x2 mul(uint2x2 a, uint2x2 b) } /// Returns the uint2x3 matrix result of a matrix multiplication between a uint2x2 matrix and a uint2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 mul(uint2x2 a, uint2x3 b) { @@ -1511,6 +2000,9 @@ public static uint2x3 mul(uint2x2 a, uint2x3 b) } /// Returns the uint2x4 matrix result of a matrix multiplication between a uint2x2 matrix and a uint2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 mul(uint2x2 a, uint2x4 b) { @@ -1522,6 +2014,9 @@ public static uint2x4 mul(uint2x2 a, uint2x4 b) } /// Returns the uint2 column vector result of a matrix multiplication between a uint2x3 matrix and a uint3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 mul(uint2x3 a, uint3 b) { @@ -1529,6 +2024,9 @@ public static uint2 mul(uint2x3 a, uint3 b) } /// Returns the uint2x2 matrix result of a matrix multiplication between a uint2x3 matrix and a uint3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 mul(uint2x3 a, uint3x2 b) { @@ -1538,6 +2036,9 @@ public static uint2x2 mul(uint2x3 a, uint3x2 b) } /// Returns the uint2x3 matrix result of a matrix multiplication between a uint2x3 matrix and a uint3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 mul(uint2x3 a, uint3x3 b) { @@ -1548,6 +2049,9 @@ public static uint2x3 mul(uint2x3 a, uint3x3 b) } /// Returns the uint2x4 matrix result of a matrix multiplication between a uint2x3 matrix and a uint3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 mul(uint2x3 a, uint3x4 b) { @@ -1559,6 +2063,9 @@ public static uint2x4 mul(uint2x3 a, uint3x4 b) } /// Returns the uint2 column vector result of a matrix multiplication between a uint2x4 matrix and a uint4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 mul(uint2x4 a, uint4 b) { @@ -1566,6 +2073,9 @@ public static uint2 mul(uint2x4 a, uint4 b) } /// Returns the uint2x2 matrix result of a matrix multiplication between a uint2x4 matrix and a uint4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 mul(uint2x4 a, uint4x2 b) { @@ -1575,6 +2085,9 @@ public static uint2x2 mul(uint2x4 a, uint4x2 b) } /// Returns the uint2x3 matrix result of a matrix multiplication between a uint2x4 matrix and a uint4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 mul(uint2x4 a, uint4x3 b) { @@ -1585,6 +2098,9 @@ public static uint2x3 mul(uint2x4 a, uint4x3 b) } /// Returns the uint2x4 matrix result of a matrix multiplication between a uint2x4 matrix and a uint4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 mul(uint2x4 a, uint4x4 b) { @@ -1596,6 +2112,9 @@ public static uint2x4 mul(uint2x4 a, uint4x4 b) } /// Returns the uint3 column vector result of a matrix multiplication between a uint3x2 matrix and a uint2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 mul(uint3x2 a, uint2 b) { @@ -1603,6 +2122,9 @@ public static uint3 mul(uint3x2 a, uint2 b) } /// Returns the uint3x2 matrix result of a matrix multiplication between a uint3x2 matrix and a uint2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 mul(uint3x2 a, uint2x2 b) { @@ -1612,6 +2134,9 @@ public static uint3x2 mul(uint3x2 a, uint2x2 b) } /// Returns the uint3x3 matrix result of a matrix multiplication between a uint3x2 matrix and a uint2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 mul(uint3x2 a, uint2x3 b) { @@ -1622,6 +2147,9 @@ public static uint3x3 mul(uint3x2 a, uint2x3 b) } /// Returns the uint3x4 matrix result of a matrix multiplication between a uint3x2 matrix and a uint2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 mul(uint3x2 a, uint2x4 b) { @@ -1633,6 +2161,9 @@ public static uint3x4 mul(uint3x2 a, uint2x4 b) } /// Returns the uint3 column vector result of a matrix multiplication between a uint3x3 matrix and a uint3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 mul(uint3x3 a, uint3 b) { @@ -1640,6 +2171,9 @@ public static uint3 mul(uint3x3 a, uint3 b) } /// Returns the uint3x2 matrix result of a matrix multiplication between a uint3x3 matrix and a uint3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 mul(uint3x3 a, uint3x2 b) { @@ -1649,6 +2183,9 @@ public static uint3x2 mul(uint3x3 a, uint3x2 b) } /// Returns the uint3x3 matrix result of a matrix multiplication between a uint3x3 matrix and a uint3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 mul(uint3x3 a, uint3x3 b) { @@ -1659,6 +2196,9 @@ public static uint3x3 mul(uint3x3 a, uint3x3 b) } /// Returns the uint3x4 matrix result of a matrix multiplication between a uint3x3 matrix and a uint3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 mul(uint3x3 a, uint3x4 b) { @@ -1670,6 +2210,9 @@ public static uint3x4 mul(uint3x3 a, uint3x4 b) } /// Returns the uint3 column vector result of a matrix multiplication between a uint3x4 matrix and a uint4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 mul(uint3x4 a, uint4 b) { @@ -1677,6 +2220,9 @@ public static uint3 mul(uint3x4 a, uint4 b) } /// Returns the uint3x2 matrix result of a matrix multiplication between a uint3x4 matrix and a uint4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 mul(uint3x4 a, uint4x2 b) { @@ -1686,6 +2232,9 @@ public static uint3x2 mul(uint3x4 a, uint4x2 b) } /// Returns the uint3x3 matrix result of a matrix multiplication between a uint3x4 matrix and a uint4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 mul(uint3x4 a, uint4x3 b) { @@ -1696,6 +2245,9 @@ public static uint3x3 mul(uint3x4 a, uint4x3 b) } /// Returns the uint3x4 matrix result of a matrix multiplication between a uint3x4 matrix and a uint4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 mul(uint3x4 a, uint4x4 b) { @@ -1707,6 +2259,9 @@ public static uint3x4 mul(uint3x4 a, uint4x4 b) } /// Returns the uint4 column vector result of a matrix multiplication between a uint4x2 matrix and a uint2 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 mul(uint4x2 a, uint2 b) { @@ -1714,6 +2269,9 @@ public static uint4 mul(uint4x2 a, uint2 b) } /// Returns the uint4x2 matrix result of a matrix multiplication between a uint4x2 matrix and a uint2x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 mul(uint4x2 a, uint2x2 b) { @@ -1723,6 +2281,9 @@ public static uint4x2 mul(uint4x2 a, uint2x2 b) } /// Returns the uint4x3 matrix result of a matrix multiplication between a uint4x2 matrix and a uint2x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 mul(uint4x2 a, uint2x3 b) { @@ -1733,6 +2294,9 @@ public static uint4x3 mul(uint4x2 a, uint2x3 b) } /// Returns the uint4x4 matrix result of a matrix multiplication between a uint4x2 matrix and a uint2x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 mul(uint4x2 a, uint2x4 b) { @@ -1744,6 +2308,9 @@ public static uint4x4 mul(uint4x2 a, uint2x4 b) } /// Returns the uint4 column vector result of a matrix multiplication between a uint4x3 matrix and a uint3 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 mul(uint4x3 a, uint3 b) { @@ -1751,6 +2318,9 @@ public static uint4 mul(uint4x3 a, uint3 b) } /// Returns the uint4x2 matrix result of a matrix multiplication between a uint4x3 matrix and a uint3x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 mul(uint4x3 a, uint3x2 b) { @@ -1760,6 +2330,9 @@ public static uint4x2 mul(uint4x3 a, uint3x2 b) } /// Returns the uint4x3 matrix result of a matrix multiplication between a uint4x3 matrix and a uint3x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 mul(uint4x3 a, uint3x3 b) { @@ -1770,6 +2343,9 @@ public static uint4x3 mul(uint4x3 a, uint3x3 b) } /// Returns the uint4x4 matrix result of a matrix multiplication between a uint4x3 matrix and a uint3x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 mul(uint4x3 a, uint3x4 b) { @@ -1781,6 +2357,9 @@ public static uint4x4 mul(uint4x3 a, uint3x4 b) } /// Returns the uint4 column vector result of a matrix multiplication between a uint4x4 matrix and a uint4 column vector. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 mul(uint4x4 a, uint4 b) { @@ -1788,6 +2367,9 @@ public static uint4 mul(uint4x4 a, uint4 b) } /// Returns the uint4x2 matrix result of a matrix multiplication between a uint4x4 matrix and a uint4x2 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 mul(uint4x4 a, uint4x2 b) { @@ -1797,6 +2379,9 @@ public static uint4x2 mul(uint4x4 a, uint4x2 b) } /// Returns the uint4x3 matrix result of a matrix multiplication between a uint4x4 matrix and a uint4x3 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 mul(uint4x4 a, uint4x3 b) { @@ -1807,6 +2392,9 @@ public static uint4x3 mul(uint4x4 a, uint4x3 b) } /// Returns the uint4x4 matrix result of a matrix multiplication between a uint4x4 matrix and a uint4x4 matrix. + /// Left hand side argument of the matrix multiply. + /// Right hand side argument of the matrix multiply. + /// The computed matrix multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 mul(uint4x4 a, uint4x4 b) { diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index 882b0533..ae7b0601 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -5,28 +5,42 @@ namespace Unity.Mathematics { + /// + /// A quaternion type for representing rotations. + /// [Il2CppEagerStaticClassConstruction] [Serializable] public partial struct quaternion : System.IEquatable, IFormattable { + /// + /// The quaternion component values. + /// public float4 value; /// A quaternion representing the identity transform. public static readonly quaternion identity = new quaternion(0.0f, 0.0f, 0.0f, 1.0f); /// Constructs a quaternion from four float values. + /// The quaternion x component. + /// The quaternion y component. + /// The quaternion z component. + /// The quaternion w component. [MethodImpl(MethodImplOptions.AggressiveInlining)] public quaternion(float x, float y, float z, float w) { value.x = x; value.y = y; value.z = z; value.w = w; } /// Constructs a quaternion from float4 vector. + /// The quaternion xyzw component values. [MethodImpl(MethodImplOptions.AggressiveInlining)] public quaternion(float4 value) { this.value = value; } /// Implicitly converts a float4 vector to a quaternion. + /// The quaternion xyzw component values. + /// The quaternion constructed from a float4 vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator quaternion(float4 v) { return new quaternion(v); } /// Constructs a unit quaternion from a float3x3 rotation matrix. The matrix must be orthonormal. + /// The float3x3 orthonormal rotation matrix. public quaternion(float3x3 m) { float3 u = m.c0; @@ -50,6 +64,7 @@ public quaternion(float3x3 m) } /// Constructs a unit quaternion from an orthonormal float4x4 matrix. + /// The float4x4 orthonormal rotation matrix. public quaternion(float4x4 m) { float4 u = m.c0; @@ -77,6 +92,9 @@ public quaternion(float4x4 m) /// Returns a quaternion representing a rotation around a unit axis by an angle in radians. /// The rotation direction is clockwise when looking along the rotation axis towards the origin. /// + /// The axis of rotation. + /// The angle of rotation in radians. + /// The quaternion representing a rotation around an axis. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion AxisAngle(float3 axis, float angle) { @@ -90,6 +108,7 @@ public static quaternion AxisAngle(float3 axis, float angle) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The quaternion representing the Euler angle rotation in x-y-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerXYZ(float3 xyz) { @@ -110,6 +129,7 @@ public static quaternion EulerXYZ(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The quaternion representing the Euler angle rotation in x-z-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerXZY(float3 xyz) { @@ -130,6 +150,7 @@ public static quaternion EulerXZY(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The quaternion representing the Euler angle rotation in y-x-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerYXZ(float3 xyz) { @@ -150,6 +171,7 @@ public static quaternion EulerYXZ(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The quaternion representing the Euler angle rotation in y-z-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerYZX(float3 xyz) { @@ -171,6 +193,7 @@ public static quaternion EulerYZX(float3 xyz) /// This is the default order rotation order in Unity. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The quaternion representing the Euler angle rotation in z-x-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerZXY(float3 xyz) { @@ -191,6 +214,7 @@ public static quaternion EulerZXY(float3 xyz) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The quaternion representing the Euler angle rotation in z-y-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerZYX(float3 xyz) { @@ -213,6 +237,7 @@ public static quaternion EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The quaternion representing the Euler angle rotation in x-y-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerXYZ(float x, float y, float z) { return EulerXYZ(float3(x, y, z)); } @@ -223,6 +248,7 @@ public static quaternion EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The quaternion representing the Euler angle rotation in x-z-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerXZY(float x, float y, float z) { return EulerXZY(float3(x, y, z)); } @@ -233,6 +259,7 @@ public static quaternion EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The quaternion representing the Euler angle rotation in y-x-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerYXZ(float x, float y, float z) { return EulerYXZ(float3(x, y, z)); } @@ -243,6 +270,7 @@ public static quaternion EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The quaternion representing the Euler angle rotation in y-z-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerYZX(float x, float y, float z) { return EulerYZX(float3(x, y, z)); } @@ -254,6 +282,7 @@ public static quaternion EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The quaternion representing the Euler angle rotation in z-x-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerZXY(float x, float y, float z) { return EulerZXY(float3(x, y, z)); } @@ -264,6 +293,7 @@ public static quaternion EulerZYX(float3 xyz) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The quaternion representing the Euler angle rotation in z-y-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion EulerZYX(float x, float y, float z) { return EulerZYX(float3(x, y, z)); } @@ -275,6 +305,7 @@ public static quaternion EulerZYX(float3 xyz) /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. /// The order in which the rotations are applied. + /// The quaternion representing the Euler angle rotation in the specified order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion Euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) { @@ -307,6 +338,7 @@ public static quaternion Euler(float3 xyz, RotationOrder order = RotationOrder.Z /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. /// The order in which the rotations are applied. + /// The quaternion representing the Euler angle rotation in the specified order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion Euler(float x, float y, float z, RotationOrder order = RotationOrder.Default) { @@ -315,6 +347,7 @@ public static quaternion Euler(float x, float y, float z, RotationOrder order = /// Returns a quaternion that rotates around the x-axis by a given number of radians. /// The clockwise rotation angle when looking along the x-axis towards the origin in radians. + /// The quaternion representing a rotation around the x-axis. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion RotateX(float angle) { @@ -325,6 +358,7 @@ public static quaternion RotateX(float angle) /// Returns a quaternion that rotates around the y-axis by a given number of radians. /// The clockwise rotation angle when looking along the y-axis towards the origin in radians. + /// The quaternion representing a rotation around the y-axis. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion RotateY(float angle) { @@ -335,6 +369,7 @@ public static quaternion RotateY(float angle) /// Returns a quaternion that rotates around the z-axis by a given number of radians. /// The clockwise rotation angle when looking along the z-axis towards the origin in radians. + /// The quaternion representing a rotation around the z-axis. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion RotateZ(float angle) { @@ -348,6 +383,9 @@ public static quaternion RotateZ(float angle) /// The two input vectors are assumed to be unit length and not collinear. /// If these assumptions are not met use float3x3.LookRotationSafe instead. /// + /// The view forward direction. + /// The view up direction. + /// The quaternion view rotation. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion LookRotation(float3 forward, float3 up) { @@ -361,6 +399,9 @@ public static quaternion LookRotation(float3 forward, float3 up) /// If the magnitude of either of the vectors is so extreme that the calculation cannot be carried out reliably or the vectors are collinear, /// the identity will be returned instead. /// + /// The view forward direction. + /// The view up direction. + /// The quaternion view rotation or the identity quaternion. public static quaternion LookRotationSafe(float3 forward, float3 up) { float forwardLengthSq = dot(forward, forward); @@ -381,18 +422,24 @@ public static quaternion LookRotationSafe(float3 forward, float3 up) } /// Returns true if the quaternion is equal to a given quaternion, false otherwise. + /// The quaternion to compare with. + /// True if the quaternion is equal to the input, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(quaternion x) { return value.x == x.value.x && value.y == x.value.y && value.z == x.value.z && value.w == x.value.w; } /// Returns whether true if the quaternion is equal to a given quaternion, false otherwise. + /// The object to compare with. + /// True if the quaternion is equal to the input, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override bool Equals(object x) { return x is quaternion converted && Equals(converted); } /// Returns a hash code for the quaternion. + /// The hash code of the quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the quaternion. + /// The string representation of the quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -400,6 +447,9 @@ public override string ToString() } /// Returns a string representation of the quaternion using a specified format and culture-specific format information. + /// The format string. + /// The format provider to use during string formatting. + /// The formatted string representation of the quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -410,22 +460,35 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a quaternion constructed from four float values. + /// The x component of the quaternion. + /// The y component of the quaternion. + /// The z component of the quaternion. + /// The w component of the quaternion. + /// The quaternion constructed from individual components. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion quaternion(float x, float y, float z, float w) { return new quaternion(x, y, z, w); } /// Returns a quaternion constructed from a float4 vector. + /// The float4 containing the components of the quaternion. + /// The quaternion constructed from a float4. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion quaternion(float4 value) { return new quaternion(value); } /// Returns a unit quaternion constructed from a float3x3 rotation matrix. The matrix must be orthonormal. + /// The float3x3 rotation matrix. + /// The quaternion constructed from a float3x3 matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion quaternion(float3x3 m) { return new quaternion(m); } /// Returns a unit quaternion constructed from a float4x4 matrix. The matrix must be orthonormal. + /// The float4x4 matrix (must be orthonormal). + /// The quaternion constructed from a float4x4 matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion quaternion(float4x4 m) { return new quaternion(m); } /// Returns the conjugate of a quaternion value. + /// The quaternion to conjugate. + /// The conjugate of the input quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion conjugate(quaternion q) { @@ -433,6 +496,8 @@ public static quaternion conjugate(quaternion q) } /// Returns the inverse of a quaternion value. + /// The quaternion to invert. + /// The quaternion inverse of the input quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion inverse(quaternion q) { @@ -441,6 +506,9 @@ public static quaternion inverse(quaternion q) } /// Returns the dot product of two quaternions. + /// The first quaternion. + /// The second quaternion. + /// The dot product of two quaternions. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float dot(quaternion a, quaternion b) { @@ -448,6 +516,8 @@ public static float dot(quaternion a, quaternion b) } /// Returns the length of a quaternion. + /// The input quaternion. + /// The length of the input quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float length(quaternion q) { @@ -455,6 +525,8 @@ public static float length(quaternion q) } /// Returns the squared length of a quaternion. + /// The input quaternion. + /// The length squared of the input quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float lengthsq(quaternion q) { @@ -462,6 +534,8 @@ public static float lengthsq(quaternion q) } /// Returns a normalized version of a quaternion q by scaling it by 1 / length(q). + /// The quaternion to normalize. + /// The normalized quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion normalize(quaternion q) { @@ -473,6 +547,8 @@ public static quaternion normalize(quaternion q) /// Returns a safe normalized version of the q by scaling it by 1 / length(q). /// Returns the identity when 1 / length(q) does not produce a finite number. /// + /// The quaternion to normalize. + /// The normalized quaternion or the identity quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion normalizesafe(quaternion q) { @@ -485,6 +561,9 @@ public static quaternion normalizesafe(quaternion q) /// Returns a safe normalized version of the q by scaling it by 1 / length(q). /// Returns the given default value when 1 / length(q) does not produce a finite number. /// + /// The quaternion to normalize. + /// The default value. + /// The normalized quaternion or the default value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion normalizesafe(quaternion q, quaternion defaultvalue) { @@ -494,6 +573,8 @@ public static quaternion normalizesafe(quaternion q, quaternion defaultvalue) } /// Returns the natural exponent of a quaternion. Assumes w is zero. + /// The quaternion with w component equal to zero. + /// The natural exponent of the input quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion unitexp(quaternion q) { @@ -505,6 +586,8 @@ public static quaternion unitexp(quaternion q) } /// Returns the natural exponent of a quaternion. + /// The quaternion. + /// The natural exponent of the input quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion exp(quaternion q) { @@ -516,6 +599,8 @@ public static quaternion exp(quaternion q) } /// Returns the natural logarithm of a unit length quaternion. + /// The unit length quaternion. + /// The natural logarithm of the unit length quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion unitlog(quaternion q) { @@ -525,6 +610,8 @@ public static quaternion unitlog(quaternion q) } /// Returns the natural logarithm of a quaternion. + /// The quaternion. + /// The natural logarithm of the input quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion log(quaternion q) { @@ -536,6 +623,9 @@ public static quaternion log(quaternion q) } /// Returns the result of transforming the quaternion b by the quaternion a. + /// The quaternion on the left. + /// The quaternion on the right. + /// The result of transforming quaternion b by the quaternion a. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion mul(quaternion a, quaternion b) { @@ -543,6 +633,9 @@ public static quaternion mul(quaternion a, quaternion b) } /// Returns the result of transforming a vector by a quaternion. + /// The quaternion transformation. + /// The vector to transform. + /// The transformation of vector v by quaternion q. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 mul(quaternion q, float3 v) { @@ -551,6 +644,9 @@ public static float3 mul(quaternion q, float3 v) } /// Returns the result of rotating a vector by a unit quaternion. + /// The quaternion rotation. + /// The vector to rotate. + /// The rotation of vector v by quaternion q. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 rotate(quaternion q, float3 v) { @@ -559,6 +655,14 @@ public static float3 rotate(quaternion q, float3 v) } /// Returns the result of a normalized linear interpolation between two quaternions q1 and a2 using an interpolation parameter t. + /// + /// Prefer to use this over slerp() when you know the distance between q1 and q2 is small. This can be much + /// higher performance due to avoiding trigonometric function evaluations that occur in slerp(). + /// + /// The first quaternion. + /// The second quaternion. + /// The interpolation parameter. + /// The normalized linear interpolation of two quaternions. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion nlerp(quaternion q1, quaternion q2, float t) { @@ -572,6 +676,10 @@ public static quaternion nlerp(quaternion q1, quaternion q2, float t) } /// Returns the result of a spherical interpolation between two quaternions q1 and a2 using an interpolation parameter t. + /// The first quaternion. + /// The second quaternion. + /// The interpolation parameter. + /// The spherical linear interpolation of two quaternions. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion slerp(quaternion q1, quaternion q2, float t) { @@ -598,6 +706,8 @@ public static quaternion slerp(quaternion q1, quaternion q2, float t) } /// Returns a uint hash code of a quaternion. + /// The quaternion to hash. + /// The hash code for the input quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(quaternion q) { @@ -609,6 +719,8 @@ public static uint hash(quaternion q) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// The quaternion to hash. + /// The uint4 vector hash code of the input quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(quaternion q) { @@ -616,6 +728,11 @@ public static uint4 hashwide(quaternion q) } + /// + /// Transforms the forward vector by a quaternion. + /// + /// The quaternion transformation. + /// The forward vector transformed by the input quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 forward(quaternion q) { return mul(q, float3(0, 0, 1)); } // for compatibility } diff --git a/src/Unity.Mathematics/random.cs b/src/Unity.Mathematics/random.cs index 7b2f4e05..3c94b6e3 100644 --- a/src/Unity.Mathematics/random.cs +++ b/src/Unity.Mathematics/random.cs @@ -16,11 +16,15 @@ namespace Unity.Mathematics [Serializable] public partial struct Random { + /// + /// The random number generator state. It should not be zero. + /// public uint state; /// /// Constructs a Random instance with a given seed value. The seed must be non-zero. /// + /// The seed to initialize with. [MethodImpl(MethodImplOptions.AggressiveInlining)] public Random(uint seed) { @@ -79,6 +83,7 @@ internal static uint WangHash(uint n) /// /// Initialized the state of the Random instance with a given seed value. The seed must be non-zero. /// + /// The seed to initialize with. [MethodImpl(MethodImplOptions.AggressiveInlining)] public void InitState(uint seed = 0x6E624EB7u) { @@ -87,6 +92,7 @@ public void InitState(uint seed = 0x6E624EB7u) } /// Returns a uniformly random bool value. + /// A uniformly random boolean value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool NextBool() { @@ -94,6 +100,7 @@ public bool NextBool() } /// Returns a uniformly random bool2 value. + /// A uniformly random bool2 value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool2 NextBool2() { @@ -102,6 +109,7 @@ public bool2 NextBool2() } /// Returns a uniformly random bool3 value. + /// A uniformly random bool3 value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool3 NextBool3() { @@ -110,6 +118,7 @@ public bool3 NextBool3() } /// Returns a uniformly random bool4 value. + /// A uniformly random bool4 value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool4 NextBool4() { @@ -119,6 +128,7 @@ public bool4 NextBool4() /// Returns a uniformly random int value in the interval [-2147483647, 2147483647]. + /// A uniformly random integer value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int NextInt() { @@ -126,6 +136,7 @@ public int NextInt() } /// Returns a uniformly random int2 value with all components in the interval [-2147483647, 2147483647]. + /// A uniformly random int2 value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2 NextInt2() { @@ -133,6 +144,7 @@ public int2 NextInt2() } /// Returns a uniformly random int3 value with all components in the interval [-2147483647, 2147483647]. + /// A uniformly random int3 value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3 NextInt3() { @@ -140,6 +152,7 @@ public int3 NextInt3() } /// Returns a uniformly random int4 value with all components in the interval [-2147483647, 2147483647]. + /// A uniformly random int4 value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4 NextInt4() { @@ -147,6 +160,8 @@ public int4 NextInt4() } /// Returns a uniformly random int value in the interval [0, max). + /// The maximum value to generate, exclusive. + /// A uniformly random int value in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public int NextInt(int max) { @@ -155,6 +170,8 @@ public int NextInt(int max) } /// Returns a uniformly random int2 value with all components in the interval [0, max). + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random int2 value with all components in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2 NextInt2(int2 max) { @@ -165,6 +182,8 @@ public int2 NextInt2(int2 max) } /// Returns a uniformly random int3 value with all components in the interval [0, max). + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random int3 value with all components in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3 NextInt3(int3 max) { @@ -177,6 +196,8 @@ public int3 NextInt3(int3 max) } /// Returns a uniformly random int4 value with all components in the interval [0, max). + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random int4 value with all components in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4 NextInt4(int4 max) { @@ -191,6 +212,9 @@ public int4 NextInt4(int4 max) } /// Returns a uniformly random int value in the interval [min, max). + /// The minimum value to generate, inclusive. + /// The maximum value to generate, exclusive. + /// A uniformly random integer between [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public int NextInt(int min, int max) { @@ -200,6 +224,9 @@ public int NextInt(int min, int max) } /// Returns a uniformly random int2 value with all components in the interval [min, max). + /// The componentwise minimum value to generate, inclusive. + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random int2 between [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public int2 NextInt2(int2 min, int2 max) { @@ -211,6 +238,9 @@ public int2 NextInt2(int2 min, int2 max) } /// Returns a uniformly random int3 value with all components in the interval [min, max). + /// The componentwise minimum value to generate, inclusive. + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random int3 between [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public int3 NextInt3(int3 min, int3 max) { @@ -224,6 +254,9 @@ public int3 NextInt3(int3 min, int3 max) } /// Returns a uniformly random int4 value with all components in the interval [min, max). + /// The componentwise minimum value to generate, inclusive. + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random int4 between [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public int4 NextInt4(int4 min, int4 max) { @@ -239,6 +272,7 @@ public int4 NextInt4(int4 min, int4 max) } /// Returns a uniformly random uint value in the interval [0, 4294967294]. + /// A uniformly random unsigned integer. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint NextUInt() { @@ -246,6 +280,7 @@ public uint NextUInt() } /// Returns a uniformly random uint2 value with all components in the interval [0, 4294967294]. + /// A uniformly random uint2. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2 NextUInt2() { @@ -253,6 +288,7 @@ public uint2 NextUInt2() } /// Returns a uniformly random uint3 value with all components in the interval [0, 4294967294]. + /// A uniformly random uint3. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3 NextUInt3() { @@ -260,6 +296,7 @@ public uint3 NextUInt3() } /// Returns a uniformly random uint4 value with all components in the interval [0, 4294967294]. + /// A uniformly random uint4. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4 NextUInt4() { @@ -268,6 +305,8 @@ public uint4 NextUInt4() /// Returns a uniformly random uint value in the interval [0, max). + /// The maximum value to generate, exclusive. + /// A uniformly random unsigned integer in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint NextUInt(uint max) { @@ -275,6 +314,8 @@ public uint NextUInt(uint max) } /// Returns a uniformly random uint2 value with all components in the interval [0, max). + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random uint2 in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2 NextUInt2(uint2 max) { @@ -283,6 +324,8 @@ public uint2 NextUInt2(uint2 max) } /// Returns a uniformly random uint3 value with all components in the interval [0, max). + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random uint3 in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3 NextUInt3(uint3 max) { @@ -292,6 +335,8 @@ public uint3 NextUInt3(uint3 max) } /// Returns a uniformly random uint4 value with all components in the interval [0, max). + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random uint4 in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4 NextUInt4(uint4 max) { @@ -302,6 +347,9 @@ public uint4 NextUInt4(uint4 max) } /// Returns a uniformly random uint value in the interval [min, max). + /// The minimum value to generate, inclusive. + /// The maximum value to generate, exclusive. + /// A uniformly random unsigned integer in the range [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint NextUInt(uint min, uint max) { @@ -311,6 +359,9 @@ public uint NextUInt(uint min, uint max) } /// Returns a uniformly random uint2 value with all components in the interval [min, max). + /// The componentwise minimum value to generate, inclusive. + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random uint2 in the range [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2 NextUInt2(uint2 min, uint2 max) { @@ -322,6 +373,9 @@ public uint2 NextUInt2(uint2 min, uint2 max) } /// Returns a uniformly random uint3 value with all components in the interval [min, max). + /// The componentwise minimum value to generate, inclusive. + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random uint3 in the range [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3 NextUInt3(uint3 min, uint3 max) { @@ -335,6 +389,9 @@ public uint3 NextUInt3(uint3 min, uint3 max) } /// Returns a uniformly random uint4 value with all components in the interval [min, max). + /// The componentwise minimum value to generate, inclusive. + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random uint4 in the range [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4 NextUInt4(uint4 min, uint4 max) { @@ -350,6 +407,7 @@ public uint4 NextUInt4(uint4 min, uint4 max) } /// Returns a uniformly random float value in the interval [0, 1). + /// A uniformly random float value in the range [0, 1). [MethodImpl(MethodImplOptions.AggressiveInlining)] public float NextFloat() { @@ -357,6 +415,7 @@ public float NextFloat() } /// Returns a uniformly random float2 value with all components in the interval [0, 1). + /// A uniformly random float2 value in the range [0, 1). [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2 NextFloat2() { @@ -364,6 +423,7 @@ public float2 NextFloat2() } /// Returns a uniformly random float3 value with all components in the interval [0, 1). + /// A uniformly random float3 value in the range [0, 1). [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3 NextFloat3() { @@ -371,6 +431,7 @@ public float3 NextFloat3() } /// Returns a uniformly random float4 value with all components in the interval [0, 1). + /// A uniformly random float4 value in the range [0, 1). [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4 NextFloat4() { @@ -379,41 +440,62 @@ public float4 NextFloat4() /// Returns a uniformly random float value in the interval [0, max). + /// The maximum value to generate, exclusive. + /// A uniformly random float value in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public float NextFloat(float max) { return NextFloat() * max; } /// Returns a uniformly random float2 value with all components in the interval [0, max). + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random float2 value in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2 NextFloat2(float2 max) { return NextFloat2() * max; } /// Returns a uniformly random float3 value with all components in the interval [0, max). + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random float3 value in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3 NextFloat3(float3 max) { return NextFloat3() * max; } /// Returns a uniformly random float4 value with all components in the interval [0, max). + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random float4 value in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4 NextFloat4(float4 max) { return NextFloat4() * max; } /// Returns a uniformly random float value in the interval [min, max). + /// The minimum value to generate, inclusive. + /// The maximum value to generate, exclusive. + /// A uniformly random float value in the range [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public float NextFloat(float min, float max) { return NextFloat() * (max - min) + min; } /// Returns a uniformly random float2 value with all components in the interval [min, max). + /// The componentwise minimum value to generate, inclusive. + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random float2 value in the range [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2 NextFloat2(float2 min, float2 max) { return NextFloat2() * (max - min) + min; } /// Returns a uniformly random float3 value with all components in the interval [min, max). + /// The componentwise minimum value to generate, inclusive. + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random float3 value in the range [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3 NextFloat3(float3 min, float3 max) { return NextFloat3() * (max - min) + min; } /// Returns a uniformly random float4 value with all components in the interval [min, max). + /// The componentwise minimum value to generate, inclusive. + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random float4 value in the range [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4 NextFloat4(float4 min, float4 max) { return NextFloat4() * (max - min) + min; } /// Returns a uniformly random double value in the interval [0, 1). + /// A uniformly random double value in the range [0, 1). [MethodImpl(MethodImplOptions.AggressiveInlining)] public double NextDouble() { @@ -422,6 +504,7 @@ public double NextDouble() } /// Returns a uniformly random double2 value with all components in the interval [0, 1). + /// A uniformly random double2 value in the range [0, 1). [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2 NextDouble2() { @@ -432,6 +515,7 @@ public double2 NextDouble2() } /// Returns a uniformly random double3 value with all components in the interval [0, 1). + /// A uniformly random double3 value in the range [0, 1). [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3 NextDouble3() { @@ -444,6 +528,7 @@ public double3 NextDouble3() } /// Returns a uniformly random double4 value with all components in the interval [0, 1). + /// A uniformly random double4 value in the range [0, 1). [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4 NextDouble4() { @@ -459,39 +544,60 @@ public double4 NextDouble4() /// Returns a uniformly random double value in the interval [0, max). + /// The maximum value to generate, exclusive. + /// A uniformly random double value in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public double NextDouble(double max) { return NextDouble() * max; } /// Returns a uniformly random double2 value with all components in the interval [0, max). + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random double2 value in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2 NextDouble2(double2 max) { return NextDouble2() * max; } /// Returns a uniformly random double3 value with all components in the interval [0, max). + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random double3 value in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3 NextDouble3(double3 max) { return NextDouble3() * max; } /// Returns a uniformly random double4 value with all components in the interval [0, max). + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random double4 value in the range [0, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4 NextDouble4(double4 max) { return NextDouble4() * max; } /// Returns a uniformly random double value in the interval [min, max). + /// The minimum value to generate, inclusive. + /// The maximum value to generate, exclusive. + /// A uniformly random double value in the range [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public double NextDouble(double min, double max) { return NextDouble() * (max - min) + min; } /// Returns a uniformly random double2 value with all components in the interval [min, max). + /// The componentwise minimum value to generate, inclusive. + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random double2 value in the range [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2 NextDouble2(double2 min, double2 max) { return NextDouble2() * (max - min) + min; } /// Returns a uniformly random double3 value with all components in the interval [min, max). + /// The componentwise minimum value to generate, inclusive. + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random double3 value in the range [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3 NextDouble3(double3 min, double3 max) { return NextDouble3() * (max - min) + min; } /// Returns a uniformly random double4 value with all components in the interval [min, max). + /// The componentwise minimum value to generate, inclusive. + /// The componentwise maximum value to generate, exclusive. + /// A uniformly random double4 value in the range [min, max). [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4 NextDouble4(double4 min, double4 max) { return NextDouble4() * (max - min) + min; } /// Returns a unit length float2 vector representing a uniformly random 2D direction. + /// A uniformly random unit length float2 vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2 NextFloat2Direction() { @@ -502,6 +608,7 @@ public float2 NextFloat2Direction() } /// Returns a unit length double2 vector representing a uniformly random 2D direction. + /// A uniformly random unit length double2 vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2 NextDouble2Direction() { @@ -512,6 +619,7 @@ public double2 NextDouble2Direction() } /// Returns a unit length float3 vector representing a uniformly random 3D direction. + /// A uniformly random unit length float3 vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3 NextFloat3Direction() { @@ -525,6 +633,7 @@ public float3 NextFloat3Direction() } /// Returns a unit length double3 vector representing a uniformly random 3D direction. + /// A uniformly random unit length double3 vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3 NextDouble3Direction() { @@ -538,6 +647,7 @@ public double3 NextDouble3Direction() } /// Returns a unit length quaternion representing a uniformly 3D rotation. + /// A uniformly random unit length quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public quaternion NextQuaternionRotation() { diff --git a/src/Unity.Mathematics/rigid_transform.cs b/src/Unity.Mathematics/rigid_transform.cs index 832a0ad7..0fbec1ef 100644 --- a/src/Unity.Mathematics/rigid_transform.cs +++ b/src/Unity.Mathematics/rigid_transform.cs @@ -5,17 +5,29 @@ namespace Unity.Mathematics { + /// + /// A rigid transformation type. + /// [Il2CppEagerStaticClassConstruction] [Serializable] public struct RigidTransform { + /// + /// The rotation part of the rigid transformation. + /// public quaternion rot; + + /// + /// The translation part of the rigid transformation. + /// public float3 pos; /// A RigidTransform representing the identity transform. public static readonly RigidTransform identity = new RigidTransform(new quaternion(0.0f, 0.0f, 0.0f, 1.0f), new float3(0.0f, 0.0f, 0.0f)); /// Constructs a RigidTransform from a rotation represented by a unit quaternion and a translation represented by a float3 vector. + /// The quaternion rotation. + /// The translation vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public RigidTransform(quaternion rotation, float3 translation) { @@ -24,6 +36,8 @@ public RigidTransform(quaternion rotation, float3 translation) } /// Constructs a RigidTransform from a rotation represented by a float3x3 matrix and a translation represented by a float3 vector. + /// The float3x3 rotation matrix. + /// The translation vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public RigidTransform(float3x3 rotation, float3 translation) { @@ -32,6 +46,7 @@ public RigidTransform(float3x3 rotation, float3 translation) } /// Constructs a RigidTransform from a float4x4. Assumes the matrix is orthonormal. + /// The float4x4 transformation matrix, must be orthonormal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public RigidTransform(float4x4 transform) { @@ -44,6 +59,9 @@ public RigidTransform(float4x4 transform) /// Returns a RigidTransform representing a rotation around a unit axis by an angle in radians. /// The rotation direction is clockwise when looking along the rotation axis towards the origin. /// + /// The axis of rotation. + /// The rotation angle in radians. + /// The RigidTransform from a rotation axis and angle of rotation. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform AxisAngle(float3 axis, float angle) { return new RigidTransform(quaternion.AxisAngle(axis, angle), float3.zero); } @@ -52,6 +70,7 @@ public RigidTransform(float4x4 transform) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The RigidTransform of the Euler angle transformation in x-y-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform EulerXYZ(float3 xyz) { return new RigidTransform(quaternion.EulerXYZ(xyz), float3.zero); } @@ -60,6 +79,7 @@ public RigidTransform(float4x4 transform) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The RigidTransform of the Euler angle transformation in x-z-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform EulerXZY(float3 xyz) { return new RigidTransform(quaternion.EulerXZY(xyz), float3.zero); } @@ -68,6 +88,7 @@ public RigidTransform(float4x4 transform) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The RigidTransform of the Euler angle transformation in y-x-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform EulerYXZ(float3 xyz) { return new RigidTransform(quaternion.EulerYXZ(xyz), float3.zero); } @@ -76,6 +97,7 @@ public RigidTransform(float4x4 transform) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The RigidTransform of the Euler angle transformation in y-z-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform EulerYZX(float3 xyz) { return new RigidTransform(quaternion.EulerYZX(xyz), float3.zero); } @@ -86,6 +108,7 @@ public RigidTransform(float4x4 transform) /// This is the default order rotation order in Unity. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The RigidTransform of the Euler angle transformation in z-x-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform EulerZXY(float3 xyz) { return new RigidTransform(quaternion.EulerZXY(xyz), float3.zero); } @@ -94,6 +117,7 @@ public RigidTransform(float4x4 transform) /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. + /// The RigidTransform of the Euler angle transformation in z-y-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform EulerZYX(float3 xyz) { return new RigidTransform(quaternion.EulerZYX(xyz), float3.zero); } @@ -104,6 +128,7 @@ public RigidTransform(float4x4 transform) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The RigidTransform of the Euler angle transformation in x-y-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform EulerXYZ(float x, float y, float z) { return EulerXYZ(float3(x, y, z)); } @@ -114,6 +139,7 @@ public RigidTransform(float4x4 transform) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The RigidTransform of the Euler angle transformation in x-z-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform EulerXZY(float x, float y, float z) { return EulerXZY(float3(x, y, z)); } @@ -124,6 +150,7 @@ public RigidTransform(float4x4 transform) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The RigidTransform of the Euler angle transformation in y-x-z order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform EulerYXZ(float x, float y, float z) { return EulerYXZ(float3(x, y, z)); } @@ -134,6 +161,7 @@ public RigidTransform(float4x4 transform) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The RigidTransform of the Euler angle transformation in y-z-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform EulerYZX(float x, float y, float z) { return EulerYZX(float3(x, y, z)); } @@ -145,6 +173,7 @@ public RigidTransform(float4x4 transform) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The RigidTransform of the Euler angle transformation in z-x-y order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform EulerZXY(float x, float y, float z) { return EulerZXY(float3(x, y, z)); } @@ -155,6 +184,7 @@ public RigidTransform(float4x4 transform) /// The rotation angle around the x-axis in radians. /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. + /// The RigidTransform of the Euler angle transformation in z-y-x order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform EulerZYX(float x, float y, float z) { return EulerZYX(float3(x, y, z)); } @@ -166,6 +196,7 @@ public RigidTransform(float4x4 transform) /// /// A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians. /// The order in which the rotations are applied. + /// The RigidTransform of the Euler angle transformation in the given rotation order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform Euler(float3 xyz, RotationOrder order = RotationOrder.ZXY) { @@ -198,30 +229,34 @@ public static RigidTransform Euler(float3 xyz, RotationOrder order = RotationOrd /// The rotation angle around the y-axis in radians. /// The rotation angle around the z-axis in radians. /// The order in which the rotations are applied. + /// The RigidTransform of the Euler angle transformation in the given rotation order. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform Euler(float x, float y, float z, RotationOrder order = RotationOrder.Default) { return Euler(float3(x, y, z), order); } - /// Returns a float4x4 matrix that rotates around the x-axis by a given number of radians. + /// Returns a RigidTransform that rotates around the x-axis by a given number of radians. /// The clockwise rotation angle when looking along the x-axis towards the origin in radians. + /// The RigidTransform of rotating around the x-axis by the given angle. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform RotateX(float angle) { return new RigidTransform(quaternion.RotateX(angle), float3.zero); } - /// Returns a float4x4 matrix that rotates around the y-axis by a given number of radians. + /// Returns a RigidTransform that rotates around the y-axis by a given number of radians. /// The clockwise rotation angle when looking along the y-axis towards the origin in radians. + /// The RigidTransform of rotating around the y-axis by the given angle. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform RotateY(float angle) { return new RigidTransform(quaternion.RotateY(angle), float3.zero); } - /// Returns a float4x4 matrix that rotates around the z-axis by a given number of radians. + /// Returns a RigidTransform that rotates around the z-axis by a given number of radians. /// The clockwise rotation angle when looking along the z-axis towards the origin in radians. + /// The RigidTransform of rotating around the z-axis by the given angle. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform RotateZ(float angle) { @@ -229,6 +264,8 @@ public static RigidTransform RotateZ(float angle) } /// Returns a RigidTransform that translates by an amount specified by a float3 vector. + /// The translation vector. + /// The RigidTransform that translates by the given translation vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform Translate(float3 vector) { @@ -237,18 +274,24 @@ public static RigidTransform Translate(float3 vector) /// Returns true if the RigidTransform is equal to a given RigidTransform, false otherwise. + /// The RigidTransform to compare with. + /// True if the RigidTransform is equal to the input, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(RigidTransform x) { return rot.Equals(x.rot) && pos.Equals(x.pos); } /// Returns true if the RigidTransform is equal to a given RigidTransform, false otherwise. + /// The object to compare with. + /// True if the RigidTransform is equal to the input, false otherwise. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override bool Equals(object x) { return x is RigidTransform converted && Equals(converted); } /// Returns a hash code for the RigidTransform. + /// The hash code of the RigidTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the RigidTransform. + /// The string representation of the RigidTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -256,7 +299,10 @@ public override string ToString() rot.value.x, rot.value.y, rot.value.z, rot.value.w, pos.x, pos.y, pos.z); } - /// Returns a string representation of the quaternion using a specified format and culture-specific format information. + /// Returns a string representation of the RigidTransform using a specified format and culture-specific format information. + /// The format string. + /// The format provider to use during formatting. + /// The formatted string representation of the RigidTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -274,18 +320,28 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a RigidTransform constructed from a rotation represented by a unit quaternion and a translation represented by a float3 vector. + /// The quaternion rotation. + /// The translation vector. + /// The RigidTransform of the given rotation quaternion and translation vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform RigidTransform(quaternion rot, float3 pos) { return new RigidTransform(rot, pos); } - /// Returns a RigidTransform constructed from a rotation represented by a unit quaternion and a translation represented by a float3 vector. + /// Returns a RigidTransform constructed from a rotation represented by a float3x3 rotation matrix and a translation represented by a float3 vector. + /// The float3x3 rotation matrix. + /// The translation vector. + /// The RigidTransform of the given rotation matrix and translation vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform RigidTransform(float3x3 rotation, float3 translation) { return new RigidTransform(rotation, translation); } /// Returns a RigidTransform constructed from a rotation represented by a float3x3 matrix and a translation represented by a float3 vector. + /// The float4x4 transformation matrix. + /// The RigidTransform of the given float4x4 transformation matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform RigidTransform(float4x4 transform) { return new RigidTransform(transform); } /// Returns the inverse of a RigidTransform. + /// The RigidTransform to invert. + /// The inverse RigidTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform inverse(RigidTransform t) { @@ -295,6 +351,9 @@ public static RigidTransform inverse(RigidTransform t) } /// Returns the result of transforming the RigidTransform b by the RigidTransform a. + /// The RigidTransform on the left. + /// The RigidTransform on the right. + /// The RigidTransform of a transforming b. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static RigidTransform mul(RigidTransform a, RigidTransform b) { @@ -302,6 +361,9 @@ public static RigidTransform mul(RigidTransform a, RigidTransform b) } /// Returns the result of transforming a float4 homogeneous coordinate by a RigidTransform. + /// The RigidTransform. + /// The position to be transformed. + /// The transformed position. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4 mul(RigidTransform a, float4 pos) { @@ -309,6 +371,9 @@ public static float4 mul(RigidTransform a, float4 pos) } /// Returns the result of rotating a float3 vector by a RigidTransform. + /// The RigidTransform. + /// The direction vector to rotate. + /// The rotated direction vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 rotate(RigidTransform a, float3 dir) { @@ -316,6 +381,9 @@ public static float3 rotate(RigidTransform a, float3 dir) } /// Returns the result of transforming a float3 point by a RigidTransform. + /// The RigidTransform. + /// The position to transform. + /// The transformed position. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 transform(RigidTransform a, float3 pos) { @@ -323,6 +391,8 @@ public static float3 transform(RigidTransform a, float3 pos) } /// Returns a uint hash code of a RigidTransform. + /// The RigidTransform to hash. + /// The hash code of the input RigidTransform [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(RigidTransform t) { @@ -334,6 +404,8 @@ public static uint hash(RigidTransform t) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// The RigidTransform to hash. + /// The uint4 wide hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(RigidTransform t) { diff --git a/src/Unity.Mathematics/uint2.gen.cs b/src/Unity.Mathematics/uint2.gen.cs index a9f4eda5..b3aaa509 100644 --- a/src/Unity.Mathematics/uint2.gen.cs +++ b/src/Unity.Mathematics/uint2.gen.cs @@ -15,18 +15,23 @@ namespace Unity.Mathematics { + /// A 2 component vector of uints. [DebuggerTypeProxy(typeof(uint2.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct uint2 : System.IEquatable, IFormattable { + /// x component of the vector. public uint x; + /// y component of the vector. public uint y; /// uint2 zero value. public static readonly uint2 zero; /// Constructs a uint2 vector from two uint values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(uint x, uint y) { @@ -35,6 +40,7 @@ public uint2(uint x, uint y) } /// Constructs a uint2 vector from a uint2 vector. + /// The constructed vector's xy components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(uint2 xy) { @@ -43,6 +49,7 @@ public uint2(uint2 xy) } /// Constructs a uint2 vector from a single uint value by assigning it to every component. + /// uint to convert to uint2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(uint v) { @@ -51,6 +58,7 @@ public uint2(uint v) } /// Constructs a uint2 vector from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(bool v) { @@ -59,6 +67,7 @@ public uint2(bool v) } /// Constructs a uint2 vector from a bool2 vector by componentwise conversion. + /// bool2 to convert to uint2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(bool2 v) { @@ -67,6 +76,7 @@ public uint2(bool2 v) } /// Constructs a uint2 vector from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(int v) { @@ -75,6 +85,7 @@ public uint2(int v) } /// Constructs a uint2 vector from a int2 vector by componentwise conversion. + /// int2 to convert to uint2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(int2 v) { @@ -83,6 +94,7 @@ public uint2(int2 v) } /// Constructs a uint2 vector from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(float v) { @@ -91,6 +103,7 @@ public uint2(float v) } /// Constructs a uint2 vector from a float2 vector by componentwise conversion. + /// float2 to convert to uint2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(float2 v) { @@ -99,6 +112,7 @@ public uint2(float2 v) } /// Constructs a uint2 vector from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(double v) { @@ -107,6 +121,7 @@ public uint2(double v) } /// Constructs a uint2 vector from a double2 vector by componentwise conversion. + /// double2 to convert to uint2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2(double2 v) { @@ -116,259 +131,420 @@ public uint2(double2 v) /// Implicitly converts a single uint value to a uint2 vector by assigning it to every component. + /// uint to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint2(uint v) { return new uint2(v); } /// Explicitly converts a single bool value to a uint2 vector by converting it to uint and assigning it to every component. + /// bool to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2(bool v) { return new uint2(v); } /// Explicitly converts a bool2 vector to a uint2 vector by componentwise conversion. + /// bool2 to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2(bool2 v) { return new uint2(v); } /// Explicitly converts a single int value to a uint2 vector by converting it to uint and assigning it to every component. + /// int to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2(int v) { return new uint2(v); } /// Explicitly converts a int2 vector to a uint2 vector by componentwise conversion. + /// int2 to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2(int2 v) { return new uint2(v); } /// Explicitly converts a single float value to a uint2 vector by converting it to uint and assigning it to every component. + /// float to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2(float v) { return new uint2(v); } /// Explicitly converts a float2 vector to a uint2 vector by componentwise conversion. + /// float2 to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2(float2 v) { return new uint2(v); } /// Explicitly converts a single double value to a uint2 vector by converting it to uint and assigning it to every component. + /// double to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2(double v) { return new uint2(v); } /// Explicitly converts a double2 vector to a uint2 vector by componentwise conversion. + /// double2 to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2(double2 v) { return new uint2(v); } /// Returns the result of a componentwise multiplication operation on two uint2 vectors. + /// Left hand side uint2 to use to compute componentwise multiplication. + /// Right hand side uint2 to use to compute componentwise multiplication. + /// uint2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator * (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x * rhs.x, lhs.y * rhs.y); } /// Returns the result of a componentwise multiplication operation on a uint2 vector and a uint value. + /// Left hand side uint2 to use to compute componentwise multiplication. + /// Right hand side uint to use to compute componentwise multiplication. + /// uint2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator * (uint2 lhs, uint rhs) { return new uint2 (lhs.x * rhs, lhs.y * rhs); } /// Returns the result of a componentwise multiplication operation on a uint value and a uint2 vector. + /// Left hand side uint to use to compute componentwise multiplication. + /// Right hand side uint2 to use to compute componentwise multiplication. + /// uint2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator * (uint lhs, uint2 rhs) { return new uint2 (lhs * rhs.x, lhs * rhs.y); } /// Returns the result of a componentwise addition operation on two uint2 vectors. + /// Left hand side uint2 to use to compute componentwise addition. + /// Right hand side uint2 to use to compute componentwise addition. + /// uint2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator + (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x + rhs.x, lhs.y + rhs.y); } /// Returns the result of a componentwise addition operation on a uint2 vector and a uint value. + /// Left hand side uint2 to use to compute componentwise addition. + /// Right hand side uint to use to compute componentwise addition. + /// uint2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator + (uint2 lhs, uint rhs) { return new uint2 (lhs.x + rhs, lhs.y + rhs); } /// Returns the result of a componentwise addition operation on a uint value and a uint2 vector. + /// Left hand side uint to use to compute componentwise addition. + /// Right hand side uint2 to use to compute componentwise addition. + /// uint2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator + (uint lhs, uint2 rhs) { return new uint2 (lhs + rhs.x, lhs + rhs.y); } /// Returns the result of a componentwise subtraction operation on two uint2 vectors. + /// Left hand side uint2 to use to compute componentwise subtraction. + /// Right hand side uint2 to use to compute componentwise subtraction. + /// uint2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator - (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x - rhs.x, lhs.y - rhs.y); } /// Returns the result of a componentwise subtraction operation on a uint2 vector and a uint value. + /// Left hand side uint2 to use to compute componentwise subtraction. + /// Right hand side uint to use to compute componentwise subtraction. + /// uint2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator - (uint2 lhs, uint rhs) { return new uint2 (lhs.x - rhs, lhs.y - rhs); } /// Returns the result of a componentwise subtraction operation on a uint value and a uint2 vector. + /// Left hand side uint to use to compute componentwise subtraction. + /// Right hand side uint2 to use to compute componentwise subtraction. + /// uint2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator - (uint lhs, uint2 rhs) { return new uint2 (lhs - rhs.x, lhs - rhs.y); } /// Returns the result of a componentwise division operation on two uint2 vectors. + /// Left hand side uint2 to use to compute componentwise division. + /// Right hand side uint2 to use to compute componentwise division. + /// uint2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator / (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x / rhs.x, lhs.y / rhs.y); } /// Returns the result of a componentwise division operation on a uint2 vector and a uint value. + /// Left hand side uint2 to use to compute componentwise division. + /// Right hand side uint to use to compute componentwise division. + /// uint2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator / (uint2 lhs, uint rhs) { return new uint2 (lhs.x / rhs, lhs.y / rhs); } /// Returns the result of a componentwise division operation on a uint value and a uint2 vector. + /// Left hand side uint to use to compute componentwise division. + /// Right hand side uint2 to use to compute componentwise division. + /// uint2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator / (uint lhs, uint2 rhs) { return new uint2 (lhs / rhs.x, lhs / rhs.y); } /// Returns the result of a componentwise modulus operation on two uint2 vectors. + /// Left hand side uint2 to use to compute componentwise modulus. + /// Right hand side uint2 to use to compute componentwise modulus. + /// uint2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator % (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x % rhs.x, lhs.y % rhs.y); } /// Returns the result of a componentwise modulus operation on a uint2 vector and a uint value. + /// Left hand side uint2 to use to compute componentwise modulus. + /// Right hand side uint to use to compute componentwise modulus. + /// uint2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator % (uint2 lhs, uint rhs) { return new uint2 (lhs.x % rhs, lhs.y % rhs); } /// Returns the result of a componentwise modulus operation on a uint value and a uint2 vector. + /// Left hand side uint to use to compute componentwise modulus. + /// Right hand side uint2 to use to compute componentwise modulus. + /// uint2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator % (uint lhs, uint2 rhs) { return new uint2 (lhs % rhs.x, lhs % rhs.y); } /// Returns the result of a componentwise increment operation on a uint2 vector. + /// Value to use when computing the componentwise increment. + /// uint2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator ++ (uint2 val) { return new uint2 (++val.x, ++val.y); } /// Returns the result of a componentwise decrement operation on a uint2 vector. + /// Value to use when computing the componentwise decrement. + /// uint2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator -- (uint2 val) { return new uint2 (--val.x, --val.y); } /// Returns the result of a componentwise less than operation on two uint2 vectors. + /// Left hand side uint2 to use to compute componentwise less than. + /// Right hand side uint2 to use to compute componentwise less than. + /// bool2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x < rhs.x, lhs.y < rhs.y); } /// Returns the result of a componentwise less than operation on a uint2 vector and a uint value. + /// Left hand side uint2 to use to compute componentwise less than. + /// Right hand side uint to use to compute componentwise less than. + /// bool2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (uint2 lhs, uint rhs) { return new bool2 (lhs.x < rhs, lhs.y < rhs); } /// Returns the result of a componentwise less than operation on a uint value and a uint2 vector. + /// Left hand side uint to use to compute componentwise less than. + /// Right hand side uint2 to use to compute componentwise less than. + /// bool2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator < (uint lhs, uint2 rhs) { return new bool2 (lhs < rhs.x, lhs < rhs.y); } /// Returns the result of a componentwise less or equal operation on two uint2 vectors. + /// Left hand side uint2 to use to compute componentwise less or equal. + /// Right hand side uint2 to use to compute componentwise less or equal. + /// bool2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x <= rhs.x, lhs.y <= rhs.y); } /// Returns the result of a componentwise less or equal operation on a uint2 vector and a uint value. + /// Left hand side uint2 to use to compute componentwise less or equal. + /// Right hand side uint to use to compute componentwise less or equal. + /// bool2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (uint2 lhs, uint rhs) { return new bool2 (lhs.x <= rhs, lhs.y <= rhs); } /// Returns the result of a componentwise less or equal operation on a uint value and a uint2 vector. + /// Left hand side uint to use to compute componentwise less or equal. + /// Right hand side uint2 to use to compute componentwise less or equal. + /// bool2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator <= (uint lhs, uint2 rhs) { return new bool2 (lhs <= rhs.x, lhs <= rhs.y); } /// Returns the result of a componentwise greater than operation on two uint2 vectors. + /// Left hand side uint2 to use to compute componentwise greater than. + /// Right hand side uint2 to use to compute componentwise greater than. + /// bool2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x > rhs.x, lhs.y > rhs.y); } /// Returns the result of a componentwise greater than operation on a uint2 vector and a uint value. + /// Left hand side uint2 to use to compute componentwise greater than. + /// Right hand side uint to use to compute componentwise greater than. + /// bool2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (uint2 lhs, uint rhs) { return new bool2 (lhs.x > rhs, lhs.y > rhs); } /// Returns the result of a componentwise greater than operation on a uint value and a uint2 vector. + /// Left hand side uint to use to compute componentwise greater than. + /// Right hand side uint2 to use to compute componentwise greater than. + /// bool2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator > (uint lhs, uint2 rhs) { return new bool2 (lhs > rhs.x, lhs > rhs.y); } /// Returns the result of a componentwise greater or equal operation on two uint2 vectors. + /// Left hand side uint2 to use to compute componentwise greater or equal. + /// Right hand side uint2 to use to compute componentwise greater or equal. + /// bool2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x >= rhs.x, lhs.y >= rhs.y); } /// Returns the result of a componentwise greater or equal operation on a uint2 vector and a uint value. + /// Left hand side uint2 to use to compute componentwise greater or equal. + /// Right hand side uint to use to compute componentwise greater or equal. + /// bool2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (uint2 lhs, uint rhs) { return new bool2 (lhs.x >= rhs, lhs.y >= rhs); } /// Returns the result of a componentwise greater or equal operation on a uint value and a uint2 vector. + /// Left hand side uint to use to compute componentwise greater or equal. + /// Right hand side uint2 to use to compute componentwise greater or equal. + /// bool2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator >= (uint lhs, uint2 rhs) { return new bool2 (lhs >= rhs.x, lhs >= rhs.y); } /// Returns the result of a componentwise unary minus operation on a uint2 vector. + /// Value to use when computing the componentwise unary minus. + /// uint2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator - (uint2 val) { return new uint2 ((uint)-val.x, (uint)-val.y); } /// Returns the result of a componentwise unary plus operation on a uint2 vector. + /// Value to use when computing the componentwise unary plus. + /// uint2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator + (uint2 val) { return new uint2 (+val.x, +val.y); } /// Returns the result of a componentwise left shift operation on a uint2 vector by a number of bits specified by a single int. + /// The vector to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator << (uint2 x, int n) { return new uint2 (x.x << n, x.y << n); } /// Returns the result of a componentwise right shift operation on a uint2 vector by a number of bits specified by a single int. + /// The vector to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator >> (uint2 x, int n) { return new uint2 (x.x >> n, x.y >> n); } /// Returns the result of a componentwise equality operation on two uint2 vectors. + /// Left hand side uint2 to use to compute componentwise equality. + /// Right hand side uint2 to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x == rhs.x, lhs.y == rhs.y); } /// Returns the result of a componentwise equality operation on a uint2 vector and a uint value. + /// Left hand side uint2 to use to compute componentwise equality. + /// Right hand side uint to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (uint2 lhs, uint rhs) { return new bool2 (lhs.x == rhs, lhs.y == rhs); } /// Returns the result of a componentwise equality operation on a uint value and a uint2 vector. + /// Left hand side uint to use to compute componentwise equality. + /// Right hand side uint2 to use to compute componentwise equality. + /// bool2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator == (uint lhs, uint2 rhs) { return new bool2 (lhs == rhs.x, lhs == rhs.y); } /// Returns the result of a componentwise not equal operation on two uint2 vectors. + /// Left hand side uint2 to use to compute componentwise not equal. + /// Right hand side uint2 to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (uint2 lhs, uint2 rhs) { return new bool2 (lhs.x != rhs.x, lhs.y != rhs.y); } /// Returns the result of a componentwise not equal operation on a uint2 vector and a uint value. + /// Left hand side uint2 to use to compute componentwise not equal. + /// Right hand side uint to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (uint2 lhs, uint rhs) { return new bool2 (lhs.x != rhs, lhs.y != rhs); } /// Returns the result of a componentwise not equal operation on a uint value and a uint2 vector. + /// Left hand side uint to use to compute componentwise not equal. + /// Right hand side uint2 to use to compute componentwise not equal. + /// bool2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2 operator != (uint lhs, uint2 rhs) { return new bool2 (lhs != rhs.x, lhs != rhs.y); } /// Returns the result of a componentwise bitwise not operation on a uint2 vector. + /// Value to use when computing the componentwise bitwise not. + /// uint2 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator ~ (uint2 val) { return new uint2 (~val.x, ~val.y); } /// Returns the result of a componentwise bitwise and operation on two uint2 vectors. + /// Left hand side uint2 to use to compute componentwise bitwise and. + /// Right hand side uint2 to use to compute componentwise bitwise and. + /// uint2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator & (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x & rhs.x, lhs.y & rhs.y); } /// Returns the result of a componentwise bitwise and operation on a uint2 vector and a uint value. + /// Left hand side uint2 to use to compute componentwise bitwise and. + /// Right hand side uint to use to compute componentwise bitwise and. + /// uint2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator & (uint2 lhs, uint rhs) { return new uint2 (lhs.x & rhs, lhs.y & rhs); } /// Returns the result of a componentwise bitwise and operation on a uint value and a uint2 vector. + /// Left hand side uint to use to compute componentwise bitwise and. + /// Right hand side uint2 to use to compute componentwise bitwise and. + /// uint2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator & (uint lhs, uint2 rhs) { return new uint2 (lhs & rhs.x, lhs & rhs.y); } /// Returns the result of a componentwise bitwise or operation on two uint2 vectors. + /// Left hand side uint2 to use to compute componentwise bitwise or. + /// Right hand side uint2 to use to compute componentwise bitwise or. + /// uint2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator | (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x | rhs.x, lhs.y | rhs.y); } /// Returns the result of a componentwise bitwise or operation on a uint2 vector and a uint value. + /// Left hand side uint2 to use to compute componentwise bitwise or. + /// Right hand side uint to use to compute componentwise bitwise or. + /// uint2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator | (uint2 lhs, uint rhs) { return new uint2 (lhs.x | rhs, lhs.y | rhs); } /// Returns the result of a componentwise bitwise or operation on a uint value and a uint2 vector. + /// Left hand side uint to use to compute componentwise bitwise or. + /// Right hand side uint2 to use to compute componentwise bitwise or. + /// uint2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator | (uint lhs, uint2 rhs) { return new uint2 (lhs | rhs.x, lhs | rhs.y); } /// Returns the result of a componentwise bitwise exclusive or operation on two uint2 vectors. + /// Left hand side uint2 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint2 to use to compute componentwise bitwise exclusive or. + /// uint2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator ^ (uint2 lhs, uint2 rhs) { return new uint2 (lhs.x ^ rhs.x, lhs.y ^ rhs.y); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint2 vector and a uint value. + /// Left hand side uint2 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint to use to compute componentwise bitwise exclusive or. + /// uint2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator ^ (uint2 lhs, uint rhs) { return new uint2 (lhs.x ^ rhs, lhs.y ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint2 vector. + /// Left hand side uint to use to compute componentwise bitwise exclusive or. + /// Right hand side uint2 to use to compute componentwise bitwise exclusive or. + /// uint2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 operator ^ (uint lhs, uint2 rhs) { return new uint2 (lhs ^ rhs.x, lhs ^ rhs.y); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxx { @@ -377,6 +553,7 @@ public uint4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxy { @@ -385,6 +562,7 @@ public uint4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyx { @@ -393,6 +571,7 @@ public uint4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyy { @@ -401,6 +580,7 @@ public uint4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxx { @@ -409,6 +589,7 @@ public uint4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxy { @@ -417,6 +598,7 @@ public uint4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyx { @@ -425,6 +607,7 @@ public uint4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyy { @@ -433,6 +616,7 @@ public uint4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxx { @@ -441,6 +625,7 @@ public uint4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxy { @@ -449,6 +634,7 @@ public uint4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyx { @@ -457,6 +643,7 @@ public uint4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyy { @@ -465,6 +652,7 @@ public uint4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxx { @@ -473,6 +661,7 @@ public uint4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxy { @@ -481,6 +670,7 @@ public uint4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyx { @@ -489,6 +679,7 @@ public uint4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyy { @@ -497,6 +688,7 @@ public uint4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxx { @@ -505,6 +697,7 @@ public uint3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxy { @@ -513,6 +706,7 @@ public uint3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyx { @@ -521,6 +715,7 @@ public uint3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyy { @@ -529,6 +724,7 @@ public uint3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxx { @@ -537,6 +733,7 @@ public uint3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxy { @@ -545,6 +742,7 @@ public uint3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyx { @@ -553,6 +751,7 @@ public uint3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyy { @@ -561,6 +760,7 @@ public uint3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xx { @@ -569,6 +769,7 @@ public uint2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xy { @@ -579,6 +780,7 @@ public uint2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yx { @@ -589,6 +791,7 @@ public uint2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yy { @@ -620,19 +823,25 @@ unsafe public uint this[int index] } /// Returns true if the uint2 is equal to a given uint2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint2 rhs) { return x == rhs.x && y == rhs.y; } /// Returns true if the uint2 is equal to a given uint2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is uint2 converted && Equals(converted); } /// Returns a hash code for the uint2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the uint2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -640,6 +849,9 @@ public override string ToString() } /// Returns a string representation of the uint2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -662,50 +874,75 @@ public DebuggerProxy(uint2 v) public static partial class math { /// Returns a uint2 vector constructed from two uint values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// uint2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 uint2(uint x, uint y) { return new uint2(x, y); } /// Returns a uint2 vector constructed from a uint2 vector. + /// The constructed vector's xy components will be set to this value. + /// uint2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 uint2(uint2 xy) { return new uint2(xy); } /// Returns a uint2 vector constructed from a single uint value by assigning it to every component. + /// uint to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 uint2(uint v) { return new uint2(v); } /// Returns a uint2 vector constructed from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 uint2(bool v) { return new uint2(v); } /// Return a uint2 vector constructed from a bool2 vector by componentwise conversion. + /// bool2 to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 uint2(bool2 v) { return new uint2(v); } /// Returns a uint2 vector constructed from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 uint2(int v) { return new uint2(v); } /// Return a uint2 vector constructed from a int2 vector by componentwise conversion. + /// int2 to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 uint2(int2 v) { return new uint2(v); } /// Returns a uint2 vector constructed from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 uint2(float v) { return new uint2(v); } /// Return a uint2 vector constructed from a float2 vector by componentwise conversion. + /// float2 to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 uint2(float2 v) { return new uint2(v); } /// Returns a uint2 vector constructed from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 uint2(double v) { return new uint2(v); } /// Return a uint2 vector constructed from a double2 vector by componentwise conversion. + /// double2 to convert to uint2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 uint2(double2 v) { return new uint2(v); } /// Returns a uint hash code of a uint2 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(uint2 v) { @@ -717,6 +954,8 @@ public static uint hash(uint2 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(uint2 v) { @@ -724,40 +963,62 @@ public static uint2 hashwide(uint2 v) } /// Returns the result of specified shuffling of the components from two uint2 vectors into a uint value. + /// uint2 to use as the left argument of the shuffle operation. + /// uint2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting uint. + /// uint result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint shuffle(uint2 a, uint2 b, ShuffleComponent x) + public static uint shuffle(uint2 left, uint2 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two uint2 vectors into a uint2 vector. + /// uint2 to use as the left argument of the shuffle operation. + /// uint2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting uint2 x component. + /// The ShuffleComponent to use when setting the resulting uint2 y component. + /// uint2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 shuffle(uint2 a, uint2 b, ShuffleComponent x, ShuffleComponent y) + public static uint2 shuffle(uint2 left, uint2 right, ShuffleComponent x, ShuffleComponent y) { return uint2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two uint2 vectors into a uint3 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 shuffle(uint2 a, uint2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + /// uint2 to use as the left argument of the shuffle operation. + /// uint2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting uint3 x component. + /// The ShuffleComponent to use when setting the resulting uint3 y component. + /// The ShuffleComponent to use when setting the resulting uint3 z component. + /// uint3 result of the shuffle operation. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint3 shuffle(uint2 left, uint2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return uint3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two uint2 vectors into a uint4 vector. - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 shuffle(uint2 a, uint2 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + /// uint2 to use as the left argument of the shuffle operation. + /// uint2 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting uint4 x component. + /// The ShuffleComponent to use when setting the resulting uint4 y component. + /// The ShuffleComponent to use when setting the resulting uint4 z component. + /// The ShuffleComponent to use when setting the resulting uint4 w component. + /// uint4 result of the shuffle operation. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 shuffle(uint2 left, uint2 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return uint4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/uint2x2.gen.cs b/src/Unity.Mathematics/uint2x2.gen.cs index 75ec2c24..d3bc9190 100644 --- a/src/Unity.Mathematics/uint2x2.gen.cs +++ b/src/Unity.Mathematics/uint2x2.gen.cs @@ -14,11 +14,14 @@ namespace Unity.Mathematics { + /// A 2x2 matrix of uints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct uint2x2 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public uint2 c0; + /// Column 1 of the matrix. public uint2 c1; /// uint2x2 identity transform. @@ -28,6 +31,8 @@ public partial struct uint2x2 : System.IEquatable, IFormattable public static readonly uint2x2 zero; /// Constructs a uint2x2 matrix from two uint2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x2(uint2 c0, uint2 c1) { @@ -36,6 +41,10 @@ public uint2x2(uint2 c0, uint2 c1) } /// Constructs a uint2x2 matrix from 4 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x2(uint m00, uint m01, uint m10, uint m11) @@ -45,6 +54,7 @@ public uint2x2(uint m00, uint m01, } /// Constructs a uint2x2 matrix from a single uint value by assigning it to every component. + /// uint to convert to uint2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x2(uint v) { @@ -53,6 +63,7 @@ public uint2x2(uint v) } /// Constructs a uint2x2 matrix from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x2(bool v) { @@ -61,6 +72,7 @@ public uint2x2(bool v) } /// Constructs a uint2x2 matrix from a bool2x2 matrix by componentwise conversion. + /// bool2x2 to convert to uint2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x2(bool2x2 v) { @@ -69,6 +81,7 @@ public uint2x2(bool2x2 v) } /// Constructs a uint2x2 matrix from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x2(int v) { @@ -77,6 +90,7 @@ public uint2x2(int v) } /// Constructs a uint2x2 matrix from a int2x2 matrix by componentwise conversion. + /// int2x2 to convert to uint2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x2(int2x2 v) { @@ -85,6 +99,7 @@ public uint2x2(int2x2 v) } /// Constructs a uint2x2 matrix from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x2(float v) { @@ -93,6 +108,7 @@ public uint2x2(float v) } /// Constructs a uint2x2 matrix from a float2x2 matrix by componentwise conversion. + /// float2x2 to convert to uint2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x2(float2x2 v) { @@ -101,6 +117,7 @@ public uint2x2(float2x2 v) } /// Constructs a uint2x2 matrix from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x2(double v) { @@ -109,6 +126,7 @@ public uint2x2(double v) } /// Constructs a uint2x2 matrix from a double2x2 matrix by componentwise conversion. + /// double2x2 to convert to uint2x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x2(double2x2 v) { @@ -118,253 +136,413 @@ public uint2x2(double2x2 v) /// Implicitly converts a single uint value to a uint2x2 matrix by assigning it to every component. + /// uint to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint2x2(uint v) { return new uint2x2(v); } /// Explicitly converts a single bool value to a uint2x2 matrix by converting it to uint and assigning it to every component. + /// bool to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x2(bool v) { return new uint2x2(v); } /// Explicitly converts a bool2x2 matrix to a uint2x2 matrix by componentwise conversion. + /// bool2x2 to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x2(bool2x2 v) { return new uint2x2(v); } /// Explicitly converts a single int value to a uint2x2 matrix by converting it to uint and assigning it to every component. + /// int to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x2(int v) { return new uint2x2(v); } /// Explicitly converts a int2x2 matrix to a uint2x2 matrix by componentwise conversion. + /// int2x2 to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x2(int2x2 v) { return new uint2x2(v); } /// Explicitly converts a single float value to a uint2x2 matrix by converting it to uint and assigning it to every component. + /// float to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x2(float v) { return new uint2x2(v); } /// Explicitly converts a float2x2 matrix to a uint2x2 matrix by componentwise conversion. + /// float2x2 to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x2(float2x2 v) { return new uint2x2(v); } /// Explicitly converts a single double value to a uint2x2 matrix by converting it to uint and assigning it to every component. + /// double to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x2(double v) { return new uint2x2(v); } /// Explicitly converts a double2x2 matrix to a uint2x2 matrix by componentwise conversion. + /// double2x2 to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x2(double2x2 v) { return new uint2x2(v); } /// Returns the result of a componentwise multiplication operation on two uint2x2 matrices. + /// Left hand side uint2x2 to use to compute componentwise multiplication. + /// Right hand side uint2x2 to use to compute componentwise multiplication. + /// uint2x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator * (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } /// Returns the result of a componentwise multiplication operation on a uint2x2 matrix and a uint value. + /// Left hand side uint2x2 to use to compute componentwise multiplication. + /// Right hand side uint to use to compute componentwise multiplication. + /// uint2x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator * (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 * rhs, lhs.c1 * rhs); } /// Returns the result of a componentwise multiplication operation on a uint value and a uint2x2 matrix. + /// Left hand side uint to use to compute componentwise multiplication. + /// Right hand side uint2x2 to use to compute componentwise multiplication. + /// uint2x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator * (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs * rhs.c0, lhs * rhs.c1); } /// Returns the result of a componentwise addition operation on two uint2x2 matrices. + /// Left hand side uint2x2 to use to compute componentwise addition. + /// Right hand side uint2x2 to use to compute componentwise addition. + /// uint2x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator + (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } /// Returns the result of a componentwise addition operation on a uint2x2 matrix and a uint value. + /// Left hand side uint2x2 to use to compute componentwise addition. + /// Right hand side uint to use to compute componentwise addition. + /// uint2x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator + (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 + rhs, lhs.c1 + rhs); } /// Returns the result of a componentwise addition operation on a uint value and a uint2x2 matrix. + /// Left hand side uint to use to compute componentwise addition. + /// Right hand side uint2x2 to use to compute componentwise addition. + /// uint2x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator + (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs + rhs.c0, lhs + rhs.c1); } /// Returns the result of a componentwise subtraction operation on two uint2x2 matrices. + /// Left hand side uint2x2 to use to compute componentwise subtraction. + /// Right hand side uint2x2 to use to compute componentwise subtraction. + /// uint2x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator - (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } /// Returns the result of a componentwise subtraction operation on a uint2x2 matrix and a uint value. + /// Left hand side uint2x2 to use to compute componentwise subtraction. + /// Right hand side uint to use to compute componentwise subtraction. + /// uint2x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator - (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 - rhs, lhs.c1 - rhs); } /// Returns the result of a componentwise subtraction operation on a uint value and a uint2x2 matrix. + /// Left hand side uint to use to compute componentwise subtraction. + /// Right hand side uint2x2 to use to compute componentwise subtraction. + /// uint2x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator - (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs - rhs.c0, lhs - rhs.c1); } /// Returns the result of a componentwise division operation on two uint2x2 matrices. + /// Left hand side uint2x2 to use to compute componentwise division. + /// Right hand side uint2x2 to use to compute componentwise division. + /// uint2x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator / (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } /// Returns the result of a componentwise division operation on a uint2x2 matrix and a uint value. + /// Left hand side uint2x2 to use to compute componentwise division. + /// Right hand side uint to use to compute componentwise division. + /// uint2x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator / (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 / rhs, lhs.c1 / rhs); } /// Returns the result of a componentwise division operation on a uint value and a uint2x2 matrix. + /// Left hand side uint to use to compute componentwise division. + /// Right hand side uint2x2 to use to compute componentwise division. + /// uint2x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator / (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs / rhs.c0, lhs / rhs.c1); } /// Returns the result of a componentwise modulus operation on two uint2x2 matrices. + /// Left hand side uint2x2 to use to compute componentwise modulus. + /// Right hand side uint2x2 to use to compute componentwise modulus. + /// uint2x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator % (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } /// Returns the result of a componentwise modulus operation on a uint2x2 matrix and a uint value. + /// Left hand side uint2x2 to use to compute componentwise modulus. + /// Right hand side uint to use to compute componentwise modulus. + /// uint2x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator % (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 % rhs, lhs.c1 % rhs); } /// Returns the result of a componentwise modulus operation on a uint value and a uint2x2 matrix. + /// Left hand side uint to use to compute componentwise modulus. + /// Right hand side uint2x2 to use to compute componentwise modulus. + /// uint2x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator % (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs % rhs.c0, lhs % rhs.c1); } /// Returns the result of a componentwise increment operation on a uint2x2 matrix. + /// Value to use when computing the componentwise increment. + /// uint2x2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator ++ (uint2x2 val) { return new uint2x2 (++val.c0, ++val.c1); } /// Returns the result of a componentwise decrement operation on a uint2x2 matrix. + /// Value to use when computing the componentwise decrement. + /// uint2x2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator -- (uint2x2 val) { return new uint2x2 (--val.c0, --val.c1); } /// Returns the result of a componentwise less than operation on two uint2x2 matrices. + /// Left hand side uint2x2 to use to compute componentwise less than. + /// Right hand side uint2x2 to use to compute componentwise less than. + /// bool2x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator < (uint2x2 lhs, uint2x2 rhs) { return new bool2x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } /// Returns the result of a componentwise less than operation on a uint2x2 matrix and a uint value. + /// Left hand side uint2x2 to use to compute componentwise less than. + /// Right hand side uint to use to compute componentwise less than. + /// bool2x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator < (uint2x2 lhs, uint rhs) { return new bool2x2 (lhs.c0 < rhs, lhs.c1 < rhs); } /// Returns the result of a componentwise less than operation on a uint value and a uint2x2 matrix. + /// Left hand side uint to use to compute componentwise less than. + /// Right hand side uint2x2 to use to compute componentwise less than. + /// bool2x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator < (uint lhs, uint2x2 rhs) { return new bool2x2 (lhs < rhs.c0, lhs < rhs.c1); } /// Returns the result of a componentwise less or equal operation on two uint2x2 matrices. + /// Left hand side uint2x2 to use to compute componentwise less or equal. + /// Right hand side uint2x2 to use to compute componentwise less or equal. + /// bool2x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator <= (uint2x2 lhs, uint2x2 rhs) { return new bool2x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } /// Returns the result of a componentwise less or equal operation on a uint2x2 matrix and a uint value. + /// Left hand side uint2x2 to use to compute componentwise less or equal. + /// Right hand side uint to use to compute componentwise less or equal. + /// bool2x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator <= (uint2x2 lhs, uint rhs) { return new bool2x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } /// Returns the result of a componentwise less or equal operation on a uint value and a uint2x2 matrix. + /// Left hand side uint to use to compute componentwise less or equal. + /// Right hand side uint2x2 to use to compute componentwise less or equal. + /// bool2x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator <= (uint lhs, uint2x2 rhs) { return new bool2x2 (lhs <= rhs.c0, lhs <= rhs.c1); } /// Returns the result of a componentwise greater than operation on two uint2x2 matrices. + /// Left hand side uint2x2 to use to compute componentwise greater than. + /// Right hand side uint2x2 to use to compute componentwise greater than. + /// bool2x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator > (uint2x2 lhs, uint2x2 rhs) { return new bool2x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } /// Returns the result of a componentwise greater than operation on a uint2x2 matrix and a uint value. + /// Left hand side uint2x2 to use to compute componentwise greater than. + /// Right hand side uint to use to compute componentwise greater than. + /// bool2x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator > (uint2x2 lhs, uint rhs) { return new bool2x2 (lhs.c0 > rhs, lhs.c1 > rhs); } /// Returns the result of a componentwise greater than operation on a uint value and a uint2x2 matrix. + /// Left hand side uint to use to compute componentwise greater than. + /// Right hand side uint2x2 to use to compute componentwise greater than. + /// bool2x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator > (uint lhs, uint2x2 rhs) { return new bool2x2 (lhs > rhs.c0, lhs > rhs.c1); } /// Returns the result of a componentwise greater or equal operation on two uint2x2 matrices. + /// Left hand side uint2x2 to use to compute componentwise greater or equal. + /// Right hand side uint2x2 to use to compute componentwise greater or equal. + /// bool2x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator >= (uint2x2 lhs, uint2x2 rhs) { return new bool2x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } /// Returns the result of a componentwise greater or equal operation on a uint2x2 matrix and a uint value. + /// Left hand side uint2x2 to use to compute componentwise greater or equal. + /// Right hand side uint to use to compute componentwise greater or equal. + /// bool2x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator >= (uint2x2 lhs, uint rhs) { return new bool2x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a uint value and a uint2x2 matrix. + /// Left hand side uint to use to compute componentwise greater or equal. + /// Right hand side uint2x2 to use to compute componentwise greater or equal. + /// bool2x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator >= (uint lhs, uint2x2 rhs) { return new bool2x2 (lhs >= rhs.c0, lhs >= rhs.c1); } /// Returns the result of a componentwise unary minus operation on a uint2x2 matrix. + /// Value to use when computing the componentwise unary minus. + /// uint2x2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator - (uint2x2 val) { return new uint2x2 (-val.c0, -val.c1); } /// Returns the result of a componentwise unary plus operation on a uint2x2 matrix. + /// Value to use when computing the componentwise unary plus. + /// uint2x2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator + (uint2x2 val) { return new uint2x2 (+val.c0, +val.c1); } /// Returns the result of a componentwise left shift operation on a uint2x2 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator << (uint2x2 x, int n) { return new uint2x2 (x.c0 << n, x.c1 << n); } /// Returns the result of a componentwise right shift operation on a uint2x2 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator >> (uint2x2 x, int n) { return new uint2x2 (x.c0 >> n, x.c1 >> n); } /// Returns the result of a componentwise equality operation on two uint2x2 matrices. + /// Left hand side uint2x2 to use to compute componentwise equality. + /// Right hand side uint2x2 to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (uint2x2 lhs, uint2x2 rhs) { return new bool2x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on a uint2x2 matrix and a uint value. + /// Left hand side uint2x2 to use to compute componentwise equality. + /// Right hand side uint to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (uint2x2 lhs, uint rhs) { return new bool2x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on a uint value and a uint2x2 matrix. + /// Left hand side uint to use to compute componentwise equality. + /// Right hand side uint2x2 to use to compute componentwise equality. + /// bool2x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator == (uint lhs, uint2x2 rhs) { return new bool2x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two uint2x2 matrices. + /// Left hand side uint2x2 to use to compute componentwise not equal. + /// Right hand side uint2x2 to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (uint2x2 lhs, uint2x2 rhs) { return new bool2x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on a uint2x2 matrix and a uint value. + /// Left hand side uint2x2 to use to compute componentwise not equal. + /// Right hand side uint to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (uint2x2 lhs, uint rhs) { return new bool2x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on a uint value and a uint2x2 matrix. + /// Left hand side uint to use to compute componentwise not equal. + /// Right hand side uint2x2 to use to compute componentwise not equal. + /// bool2x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x2 operator != (uint lhs, uint2x2 rhs) { return new bool2x2 (lhs != rhs.c0, lhs != rhs.c1); } /// Returns the result of a componentwise bitwise not operation on a uint2x2 matrix. + /// Value to use when computing the componentwise bitwise not. + /// uint2x2 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator ~ (uint2x2 val) { return new uint2x2 (~val.c0, ~val.c1); } /// Returns the result of a componentwise bitwise and operation on two uint2x2 matrices. + /// Left hand side uint2x2 to use to compute componentwise bitwise and. + /// Right hand side uint2x2 to use to compute componentwise bitwise and. + /// uint2x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator & (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } /// Returns the result of a componentwise bitwise and operation on a uint2x2 matrix and a uint value. + /// Left hand side uint2x2 to use to compute componentwise bitwise and. + /// Right hand side uint to use to compute componentwise bitwise and. + /// uint2x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator & (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 & rhs, lhs.c1 & rhs); } /// Returns the result of a componentwise bitwise and operation on a uint value and a uint2x2 matrix. + /// Left hand side uint to use to compute componentwise bitwise and. + /// Right hand side uint2x2 to use to compute componentwise bitwise and. + /// uint2x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator & (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs & rhs.c0, lhs & rhs.c1); } /// Returns the result of a componentwise bitwise or operation on two uint2x2 matrices. + /// Left hand side uint2x2 to use to compute componentwise bitwise or. + /// Right hand side uint2x2 to use to compute componentwise bitwise or. + /// uint2x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator | (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } /// Returns the result of a componentwise bitwise or operation on a uint2x2 matrix and a uint value. + /// Left hand side uint2x2 to use to compute componentwise bitwise or. + /// Right hand side uint to use to compute componentwise bitwise or. + /// uint2x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator | (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 | rhs, lhs.c1 | rhs); } /// Returns the result of a componentwise bitwise or operation on a uint value and a uint2x2 matrix. + /// Left hand side uint to use to compute componentwise bitwise or. + /// Right hand side uint2x2 to use to compute componentwise bitwise or. + /// uint2x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator | (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs | rhs.c0, lhs | rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on two uint2x2 matrices. + /// Left hand side uint2x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint2x2 to use to compute componentwise bitwise exclusive or. + /// uint2x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator ^ (uint2x2 lhs, uint2x2 rhs) { return new uint2x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint2x2 matrix and a uint value. + /// Left hand side uint2x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint to use to compute componentwise bitwise exclusive or. + /// uint2x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator ^ (uint2x2 lhs, uint rhs) { return new uint2x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint2x2 matrix. + /// Left hand side uint to use to compute componentwise bitwise exclusive or. + /// Right hand side uint2x2 to use to compute componentwise bitwise exclusive or. + /// uint2x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 operator ^ (uint lhs, uint2x2 rhs) { return new uint2x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } @@ -384,19 +562,25 @@ unsafe public ref uint2 this[int index] } /// Returns true if the uint2x2 is equal to a given uint2x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint2x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the uint2x2 is equal to a given uint2x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is uint2x2 converted && Equals(converted); } /// Returns a hash code for the uint2x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the uint2x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -404,6 +588,9 @@ public override string ToString() } /// Returns a string representation of the uint2x2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -415,10 +602,18 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a uint2x2 matrix constructed from two uint2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// uint2x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 uint2x2(uint2 c0, uint2 c1) { return new uint2x2(c0, c1); } /// Returns a uint2x2 matrix constructed from from 4 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// uint2x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 uint2x2(uint m00, uint m01, uint m10, uint m11) @@ -428,42 +623,62 @@ public static uint2x2 uint2x2(uint m00, uint m01, } /// Returns a uint2x2 matrix constructed from a single uint value by assigning it to every component. + /// uint to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 uint2x2(uint v) { return new uint2x2(v); } /// Returns a uint2x2 matrix constructed from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 uint2x2(bool v) { return new uint2x2(v); } /// Return a uint2x2 matrix constructed from a bool2x2 matrix by componentwise conversion. + /// bool2x2 to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 uint2x2(bool2x2 v) { return new uint2x2(v); } /// Returns a uint2x2 matrix constructed from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 uint2x2(int v) { return new uint2x2(v); } /// Return a uint2x2 matrix constructed from a int2x2 matrix by componentwise conversion. + /// int2x2 to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 uint2x2(int2x2 v) { return new uint2x2(v); } /// Returns a uint2x2 matrix constructed from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 uint2x2(float v) { return new uint2x2(v); } /// Return a uint2x2 matrix constructed from a float2x2 matrix by componentwise conversion. + /// float2x2 to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 uint2x2(float2x2 v) { return new uint2x2(v); } /// Returns a uint2x2 matrix constructed from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 uint2x2(double v) { return new uint2x2(v); } /// Return a uint2x2 matrix constructed from a double2x2 matrix by componentwise conversion. + /// double2x2 to convert to uint2x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 uint2x2(double2x2 v) { return new uint2x2(v); } /// Return the uint2x2 transpose of a uint2x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x2 transpose(uint2x2 v) { @@ -472,7 +687,9 @@ public static uint2x2 transpose(uint2x2 v) v.c1.x, v.c1.y); } - /// Returns a uint hash code of a uint2x2 vector. + /// Returns a uint hash code of a uint2x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(uint2x2 v) { @@ -481,10 +698,12 @@ public static uint hash(uint2x2 v) } /// - /// Returns a uint2 vector hash code of a uint2x2 vector. + /// Returns a uint2 vector hash code of a uint2x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(uint2x2 v) { diff --git a/src/Unity.Mathematics/uint2x3.gen.cs b/src/Unity.Mathematics/uint2x3.gen.cs index 4198368e..15229ec0 100644 --- a/src/Unity.Mathematics/uint2x3.gen.cs +++ b/src/Unity.Mathematics/uint2x3.gen.cs @@ -14,18 +14,25 @@ namespace Unity.Mathematics { + /// A 2x3 matrix of uints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct uint2x3 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public uint2 c0; + /// Column 1 of the matrix. public uint2 c1; + /// Column 2 of the matrix. public uint2 c2; /// uint2x3 zero value. public static readonly uint2x3 zero; /// Constructs a uint2x3 matrix from three uint2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x3(uint2 c0, uint2 c1, uint2 c2) { @@ -35,6 +42,12 @@ public uint2x3(uint2 c0, uint2 c1, uint2 c2) } /// Constructs a uint2x3 matrix from 6 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x3(uint m00, uint m01, uint m02, uint m10, uint m11, uint m12) @@ -45,6 +58,7 @@ public uint2x3(uint m00, uint m01, uint m02, } /// Constructs a uint2x3 matrix from a single uint value by assigning it to every component. + /// uint to convert to uint2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x3(uint v) { @@ -54,6 +68,7 @@ public uint2x3(uint v) } /// Constructs a uint2x3 matrix from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x3(bool v) { @@ -63,6 +78,7 @@ public uint2x3(bool v) } /// Constructs a uint2x3 matrix from a bool2x3 matrix by componentwise conversion. + /// bool2x3 to convert to uint2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x3(bool2x3 v) { @@ -72,6 +88,7 @@ public uint2x3(bool2x3 v) } /// Constructs a uint2x3 matrix from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x3(int v) { @@ -81,6 +98,7 @@ public uint2x3(int v) } /// Constructs a uint2x3 matrix from a int2x3 matrix by componentwise conversion. + /// int2x3 to convert to uint2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x3(int2x3 v) { @@ -90,6 +108,7 @@ public uint2x3(int2x3 v) } /// Constructs a uint2x3 matrix from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x3(float v) { @@ -99,6 +118,7 @@ public uint2x3(float v) } /// Constructs a uint2x3 matrix from a float2x3 matrix by componentwise conversion. + /// float2x3 to convert to uint2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x3(float2x3 v) { @@ -108,6 +128,7 @@ public uint2x3(float2x3 v) } /// Constructs a uint2x3 matrix from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x3(double v) { @@ -117,6 +138,7 @@ public uint2x3(double v) } /// Constructs a uint2x3 matrix from a double2x3 matrix by componentwise conversion. + /// double2x3 to convert to uint2x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x3(double2x3 v) { @@ -127,253 +149,413 @@ public uint2x3(double2x3 v) /// Implicitly converts a single uint value to a uint2x3 matrix by assigning it to every component. + /// uint to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint2x3(uint v) { return new uint2x3(v); } /// Explicitly converts a single bool value to a uint2x3 matrix by converting it to uint and assigning it to every component. + /// bool to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x3(bool v) { return new uint2x3(v); } /// Explicitly converts a bool2x3 matrix to a uint2x3 matrix by componentwise conversion. + /// bool2x3 to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x3(bool2x3 v) { return new uint2x3(v); } /// Explicitly converts a single int value to a uint2x3 matrix by converting it to uint and assigning it to every component. + /// int to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x3(int v) { return new uint2x3(v); } /// Explicitly converts a int2x3 matrix to a uint2x3 matrix by componentwise conversion. + /// int2x3 to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x3(int2x3 v) { return new uint2x3(v); } /// Explicitly converts a single float value to a uint2x3 matrix by converting it to uint and assigning it to every component. + /// float to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x3(float v) { return new uint2x3(v); } /// Explicitly converts a float2x3 matrix to a uint2x3 matrix by componentwise conversion. + /// float2x3 to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x3(float2x3 v) { return new uint2x3(v); } /// Explicitly converts a single double value to a uint2x3 matrix by converting it to uint and assigning it to every component. + /// double to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x3(double v) { return new uint2x3(v); } /// Explicitly converts a double2x3 matrix to a uint2x3 matrix by componentwise conversion. + /// double2x3 to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x3(double2x3 v) { return new uint2x3(v); } /// Returns the result of a componentwise multiplication operation on two uint2x3 matrices. + /// Left hand side uint2x3 to use to compute componentwise multiplication. + /// Right hand side uint2x3 to use to compute componentwise multiplication. + /// uint2x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator * (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } /// Returns the result of a componentwise multiplication operation on a uint2x3 matrix and a uint value. + /// Left hand side uint2x3 to use to compute componentwise multiplication. + /// Right hand side uint to use to compute componentwise multiplication. + /// uint2x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator * (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } /// Returns the result of a componentwise multiplication operation on a uint value and a uint2x3 matrix. + /// Left hand side uint to use to compute componentwise multiplication. + /// Right hand side uint2x3 to use to compute componentwise multiplication. + /// uint2x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator * (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } /// Returns the result of a componentwise addition operation on two uint2x3 matrices. + /// Left hand side uint2x3 to use to compute componentwise addition. + /// Right hand side uint2x3 to use to compute componentwise addition. + /// uint2x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator + (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } /// Returns the result of a componentwise addition operation on a uint2x3 matrix and a uint value. + /// Left hand side uint2x3 to use to compute componentwise addition. + /// Right hand side uint to use to compute componentwise addition. + /// uint2x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator + (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } /// Returns the result of a componentwise addition operation on a uint value and a uint2x3 matrix. + /// Left hand side uint to use to compute componentwise addition. + /// Right hand side uint2x3 to use to compute componentwise addition. + /// uint2x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator + (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } /// Returns the result of a componentwise subtraction operation on two uint2x3 matrices. + /// Left hand side uint2x3 to use to compute componentwise subtraction. + /// Right hand side uint2x3 to use to compute componentwise subtraction. + /// uint2x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator - (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } /// Returns the result of a componentwise subtraction operation on a uint2x3 matrix and a uint value. + /// Left hand side uint2x3 to use to compute componentwise subtraction. + /// Right hand side uint to use to compute componentwise subtraction. + /// uint2x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator - (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } /// Returns the result of a componentwise subtraction operation on a uint value and a uint2x3 matrix. + /// Left hand side uint to use to compute componentwise subtraction. + /// Right hand side uint2x3 to use to compute componentwise subtraction. + /// uint2x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator - (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } /// Returns the result of a componentwise division operation on two uint2x3 matrices. + /// Left hand side uint2x3 to use to compute componentwise division. + /// Right hand side uint2x3 to use to compute componentwise division. + /// uint2x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator / (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } /// Returns the result of a componentwise division operation on a uint2x3 matrix and a uint value. + /// Left hand side uint2x3 to use to compute componentwise division. + /// Right hand side uint to use to compute componentwise division. + /// uint2x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator / (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } /// Returns the result of a componentwise division operation on a uint value and a uint2x3 matrix. + /// Left hand side uint to use to compute componentwise division. + /// Right hand side uint2x3 to use to compute componentwise division. + /// uint2x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator / (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } /// Returns the result of a componentwise modulus operation on two uint2x3 matrices. + /// Left hand side uint2x3 to use to compute componentwise modulus. + /// Right hand side uint2x3 to use to compute componentwise modulus. + /// uint2x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator % (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } /// Returns the result of a componentwise modulus operation on a uint2x3 matrix and a uint value. + /// Left hand side uint2x3 to use to compute componentwise modulus. + /// Right hand side uint to use to compute componentwise modulus. + /// uint2x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator % (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } /// Returns the result of a componentwise modulus operation on a uint value and a uint2x3 matrix. + /// Left hand side uint to use to compute componentwise modulus. + /// Right hand side uint2x3 to use to compute componentwise modulus. + /// uint2x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator % (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } /// Returns the result of a componentwise increment operation on a uint2x3 matrix. + /// Value to use when computing the componentwise increment. + /// uint2x3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator ++ (uint2x3 val) { return new uint2x3 (++val.c0, ++val.c1, ++val.c2); } /// Returns the result of a componentwise decrement operation on a uint2x3 matrix. + /// Value to use when computing the componentwise decrement. + /// uint2x3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator -- (uint2x3 val) { return new uint2x3 (--val.c0, --val.c1, --val.c2); } /// Returns the result of a componentwise less than operation on two uint2x3 matrices. + /// Left hand side uint2x3 to use to compute componentwise less than. + /// Right hand side uint2x3 to use to compute componentwise less than. + /// bool2x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator < (uint2x3 lhs, uint2x3 rhs) { return new bool2x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } /// Returns the result of a componentwise less than operation on a uint2x3 matrix and a uint value. + /// Left hand side uint2x3 to use to compute componentwise less than. + /// Right hand side uint to use to compute componentwise less than. + /// bool2x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator < (uint2x3 lhs, uint rhs) { return new bool2x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } /// Returns the result of a componentwise less than operation on a uint value and a uint2x3 matrix. + /// Left hand side uint to use to compute componentwise less than. + /// Right hand side uint2x3 to use to compute componentwise less than. + /// bool2x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator < (uint lhs, uint2x3 rhs) { return new bool2x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } /// Returns the result of a componentwise less or equal operation on two uint2x3 matrices. + /// Left hand side uint2x3 to use to compute componentwise less or equal. + /// Right hand side uint2x3 to use to compute componentwise less or equal. + /// bool2x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator <= (uint2x3 lhs, uint2x3 rhs) { return new bool2x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } /// Returns the result of a componentwise less or equal operation on a uint2x3 matrix and a uint value. + /// Left hand side uint2x3 to use to compute componentwise less or equal. + /// Right hand side uint to use to compute componentwise less or equal. + /// bool2x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator <= (uint2x3 lhs, uint rhs) { return new bool2x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } /// Returns the result of a componentwise less or equal operation on a uint value and a uint2x3 matrix. + /// Left hand side uint to use to compute componentwise less or equal. + /// Right hand side uint2x3 to use to compute componentwise less or equal. + /// bool2x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator <= (uint lhs, uint2x3 rhs) { return new bool2x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } /// Returns the result of a componentwise greater than operation on two uint2x3 matrices. + /// Left hand side uint2x3 to use to compute componentwise greater than. + /// Right hand side uint2x3 to use to compute componentwise greater than. + /// bool2x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator > (uint2x3 lhs, uint2x3 rhs) { return new bool2x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } /// Returns the result of a componentwise greater than operation on a uint2x3 matrix and a uint value. + /// Left hand side uint2x3 to use to compute componentwise greater than. + /// Right hand side uint to use to compute componentwise greater than. + /// bool2x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator > (uint2x3 lhs, uint rhs) { return new bool2x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } /// Returns the result of a componentwise greater than operation on a uint value and a uint2x3 matrix. + /// Left hand side uint to use to compute componentwise greater than. + /// Right hand side uint2x3 to use to compute componentwise greater than. + /// bool2x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator > (uint lhs, uint2x3 rhs) { return new bool2x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } /// Returns the result of a componentwise greater or equal operation on two uint2x3 matrices. + /// Left hand side uint2x3 to use to compute componentwise greater or equal. + /// Right hand side uint2x3 to use to compute componentwise greater or equal. + /// bool2x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator >= (uint2x3 lhs, uint2x3 rhs) { return new bool2x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } /// Returns the result of a componentwise greater or equal operation on a uint2x3 matrix and a uint value. + /// Left hand side uint2x3 to use to compute componentwise greater or equal. + /// Right hand side uint to use to compute componentwise greater or equal. + /// bool2x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator >= (uint2x3 lhs, uint rhs) { return new bool2x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a uint value and a uint2x3 matrix. + /// Left hand side uint to use to compute componentwise greater or equal. + /// Right hand side uint2x3 to use to compute componentwise greater or equal. + /// bool2x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator >= (uint lhs, uint2x3 rhs) { return new bool2x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } /// Returns the result of a componentwise unary minus operation on a uint2x3 matrix. + /// Value to use when computing the componentwise unary minus. + /// uint2x3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator - (uint2x3 val) { return new uint2x3 (-val.c0, -val.c1, -val.c2); } /// Returns the result of a componentwise unary plus operation on a uint2x3 matrix. + /// Value to use when computing the componentwise unary plus. + /// uint2x3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator + (uint2x3 val) { return new uint2x3 (+val.c0, +val.c1, +val.c2); } /// Returns the result of a componentwise left shift operation on a uint2x3 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator << (uint2x3 x, int n) { return new uint2x3 (x.c0 << n, x.c1 << n, x.c2 << n); } /// Returns the result of a componentwise right shift operation on a uint2x3 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator >> (uint2x3 x, int n) { return new uint2x3 (x.c0 >> n, x.c1 >> n, x.c2 >> n); } /// Returns the result of a componentwise equality operation on two uint2x3 matrices. + /// Left hand side uint2x3 to use to compute componentwise equality. + /// Right hand side uint2x3 to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (uint2x3 lhs, uint2x3 rhs) { return new bool2x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on a uint2x3 matrix and a uint value. + /// Left hand side uint2x3 to use to compute componentwise equality. + /// Right hand side uint to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (uint2x3 lhs, uint rhs) { return new bool2x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on a uint value and a uint2x3 matrix. + /// Left hand side uint to use to compute componentwise equality. + /// Right hand side uint2x3 to use to compute componentwise equality. + /// bool2x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator == (uint lhs, uint2x3 rhs) { return new bool2x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two uint2x3 matrices. + /// Left hand side uint2x3 to use to compute componentwise not equal. + /// Right hand side uint2x3 to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (uint2x3 lhs, uint2x3 rhs) { return new bool2x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on a uint2x3 matrix and a uint value. + /// Left hand side uint2x3 to use to compute componentwise not equal. + /// Right hand side uint to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (uint2x3 lhs, uint rhs) { return new bool2x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on a uint value and a uint2x3 matrix. + /// Left hand side uint to use to compute componentwise not equal. + /// Right hand side uint2x3 to use to compute componentwise not equal. + /// bool2x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x3 operator != (uint lhs, uint2x3 rhs) { return new bool2x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } /// Returns the result of a componentwise bitwise not operation on a uint2x3 matrix. + /// Value to use when computing the componentwise bitwise not. + /// uint2x3 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator ~ (uint2x3 val) { return new uint2x3 (~val.c0, ~val.c1, ~val.c2); } /// Returns the result of a componentwise bitwise and operation on two uint2x3 matrices. + /// Left hand side uint2x3 to use to compute componentwise bitwise and. + /// Right hand side uint2x3 to use to compute componentwise bitwise and. + /// uint2x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator & (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } /// Returns the result of a componentwise bitwise and operation on a uint2x3 matrix and a uint value. + /// Left hand side uint2x3 to use to compute componentwise bitwise and. + /// Right hand side uint to use to compute componentwise bitwise and. + /// uint2x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator & (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } /// Returns the result of a componentwise bitwise and operation on a uint value and a uint2x3 matrix. + /// Left hand side uint to use to compute componentwise bitwise and. + /// Right hand side uint2x3 to use to compute componentwise bitwise and. + /// uint2x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator & (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } /// Returns the result of a componentwise bitwise or operation on two uint2x3 matrices. + /// Left hand side uint2x3 to use to compute componentwise bitwise or. + /// Right hand side uint2x3 to use to compute componentwise bitwise or. + /// uint2x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator | (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } /// Returns the result of a componentwise bitwise or operation on a uint2x3 matrix and a uint value. + /// Left hand side uint2x3 to use to compute componentwise bitwise or. + /// Right hand side uint to use to compute componentwise bitwise or. + /// uint2x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator | (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } /// Returns the result of a componentwise bitwise or operation on a uint value and a uint2x3 matrix. + /// Left hand side uint to use to compute componentwise bitwise or. + /// Right hand side uint2x3 to use to compute componentwise bitwise or. + /// uint2x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator | (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on two uint2x3 matrices. + /// Left hand side uint2x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint2x3 to use to compute componentwise bitwise exclusive or. + /// uint2x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator ^ (uint2x3 lhs, uint2x3 rhs) { return new uint2x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint2x3 matrix and a uint value. + /// Left hand side uint2x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint to use to compute componentwise bitwise exclusive or. + /// uint2x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator ^ (uint2x3 lhs, uint rhs) { return new uint2x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint2x3 matrix. + /// Left hand side uint to use to compute componentwise bitwise exclusive or. + /// Right hand side uint2x3 to use to compute componentwise bitwise exclusive or. + /// uint2x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 operator ^ (uint lhs, uint2x3 rhs) { return new uint2x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } @@ -393,19 +575,25 @@ unsafe public ref uint2 this[int index] } /// Returns true if the uint2x3 is equal to a given uint2x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint2x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the uint2x3 is equal to a given uint2x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is uint2x3 converted && Equals(converted); } /// Returns a hash code for the uint2x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the uint2x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -413,6 +601,9 @@ public override string ToString() } /// Returns a string representation of the uint2x3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -424,10 +615,21 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a uint2x3 matrix constructed from three uint2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// uint2x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 uint2x3(uint2 c0, uint2 c1, uint2 c2) { return new uint2x3(c0, c1, c2); } /// Returns a uint2x3 matrix constructed from from 6 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// uint2x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 uint2x3(uint m00, uint m01, uint m02, uint m10, uint m11, uint m12) @@ -437,42 +639,62 @@ public static uint2x3 uint2x3(uint m00, uint m01, uint m02, } /// Returns a uint2x3 matrix constructed from a single uint value by assigning it to every component. + /// uint to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 uint2x3(uint v) { return new uint2x3(v); } /// Returns a uint2x3 matrix constructed from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 uint2x3(bool v) { return new uint2x3(v); } /// Return a uint2x3 matrix constructed from a bool2x3 matrix by componentwise conversion. + /// bool2x3 to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 uint2x3(bool2x3 v) { return new uint2x3(v); } /// Returns a uint2x3 matrix constructed from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 uint2x3(int v) { return new uint2x3(v); } /// Return a uint2x3 matrix constructed from a int2x3 matrix by componentwise conversion. + /// int2x3 to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 uint2x3(int2x3 v) { return new uint2x3(v); } /// Returns a uint2x3 matrix constructed from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 uint2x3(float v) { return new uint2x3(v); } /// Return a uint2x3 matrix constructed from a float2x3 matrix by componentwise conversion. + /// float2x3 to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 uint2x3(float2x3 v) { return new uint2x3(v); } /// Returns a uint2x3 matrix constructed from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 uint2x3(double v) { return new uint2x3(v); } /// Return a uint2x3 matrix constructed from a double2x3 matrix by componentwise conversion. + /// double2x3 to convert to uint2x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 uint2x3(double2x3 v) { return new uint2x3(v); } /// Return the uint3x2 transpose of a uint2x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 transpose(uint2x3 v) { @@ -482,7 +704,9 @@ public static uint3x2 transpose(uint2x3 v) v.c2.x, v.c2.y); } - /// Returns a uint hash code of a uint2x3 vector. + /// Returns a uint hash code of a uint2x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(uint2x3 v) { @@ -492,10 +716,12 @@ public static uint hash(uint2x3 v) } /// - /// Returns a uint2 vector hash code of a uint2x3 vector. + /// Returns a uint2 vector hash code of a uint2x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(uint2x3 v) { diff --git a/src/Unity.Mathematics/uint2x4.gen.cs b/src/Unity.Mathematics/uint2x4.gen.cs index c547202d..05d00d36 100644 --- a/src/Unity.Mathematics/uint2x4.gen.cs +++ b/src/Unity.Mathematics/uint2x4.gen.cs @@ -14,19 +14,28 @@ namespace Unity.Mathematics { + /// A 2x4 matrix of uints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct uint2x4 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public uint2 c0; + /// Column 1 of the matrix. public uint2 c1; + /// Column 2 of the matrix. public uint2 c2; + /// Column 3 of the matrix. public uint2 c3; /// uint2x4 zero value. public static readonly uint2x4 zero; /// Constructs a uint2x4 matrix from four uint2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x4(uint2 c0, uint2 c1, uint2 c2, uint2 c3) { @@ -37,6 +46,14 @@ public uint2x4(uint2 c0, uint2 c1, uint2 c2, uint2 c3) } /// Constructs a uint2x4 matrix from 8 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x4(uint m00, uint m01, uint m02, uint m03, uint m10, uint m11, uint m12, uint m13) @@ -48,6 +65,7 @@ public uint2x4(uint m00, uint m01, uint m02, uint m03, } /// Constructs a uint2x4 matrix from a single uint value by assigning it to every component. + /// uint to convert to uint2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x4(uint v) { @@ -58,6 +76,7 @@ public uint2x4(uint v) } /// Constructs a uint2x4 matrix from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x4(bool v) { @@ -68,6 +87,7 @@ public uint2x4(bool v) } /// Constructs a uint2x4 matrix from a bool2x4 matrix by componentwise conversion. + /// bool2x4 to convert to uint2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x4(bool2x4 v) { @@ -78,6 +98,7 @@ public uint2x4(bool2x4 v) } /// Constructs a uint2x4 matrix from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x4(int v) { @@ -88,6 +109,7 @@ public uint2x4(int v) } /// Constructs a uint2x4 matrix from a int2x4 matrix by componentwise conversion. + /// int2x4 to convert to uint2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x4(int2x4 v) { @@ -98,6 +120,7 @@ public uint2x4(int2x4 v) } /// Constructs a uint2x4 matrix from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x4(float v) { @@ -108,6 +131,7 @@ public uint2x4(float v) } /// Constructs a uint2x4 matrix from a float2x4 matrix by componentwise conversion. + /// float2x4 to convert to uint2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x4(float2x4 v) { @@ -118,6 +142,7 @@ public uint2x4(float2x4 v) } /// Constructs a uint2x4 matrix from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x4(double v) { @@ -128,6 +153,7 @@ public uint2x4(double v) } /// Constructs a uint2x4 matrix from a double2x4 matrix by componentwise conversion. + /// double2x4 to convert to uint2x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint2x4(double2x4 v) { @@ -139,253 +165,413 @@ public uint2x4(double2x4 v) /// Implicitly converts a single uint value to a uint2x4 matrix by assigning it to every component. + /// uint to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint2x4(uint v) { return new uint2x4(v); } /// Explicitly converts a single bool value to a uint2x4 matrix by converting it to uint and assigning it to every component. + /// bool to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x4(bool v) { return new uint2x4(v); } /// Explicitly converts a bool2x4 matrix to a uint2x4 matrix by componentwise conversion. + /// bool2x4 to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x4(bool2x4 v) { return new uint2x4(v); } /// Explicitly converts a single int value to a uint2x4 matrix by converting it to uint and assigning it to every component. + /// int to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x4(int v) { return new uint2x4(v); } /// Explicitly converts a int2x4 matrix to a uint2x4 matrix by componentwise conversion. + /// int2x4 to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x4(int2x4 v) { return new uint2x4(v); } /// Explicitly converts a single float value to a uint2x4 matrix by converting it to uint and assigning it to every component. + /// float to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x4(float v) { return new uint2x4(v); } /// Explicitly converts a float2x4 matrix to a uint2x4 matrix by componentwise conversion. + /// float2x4 to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x4(float2x4 v) { return new uint2x4(v); } /// Explicitly converts a single double value to a uint2x4 matrix by converting it to uint and assigning it to every component. + /// double to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x4(double v) { return new uint2x4(v); } /// Explicitly converts a double2x4 matrix to a uint2x4 matrix by componentwise conversion. + /// double2x4 to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint2x4(double2x4 v) { return new uint2x4(v); } /// Returns the result of a componentwise multiplication operation on two uint2x4 matrices. + /// Left hand side uint2x4 to use to compute componentwise multiplication. + /// Right hand side uint2x4 to use to compute componentwise multiplication. + /// uint2x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator * (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } /// Returns the result of a componentwise multiplication operation on a uint2x4 matrix and a uint value. + /// Left hand side uint2x4 to use to compute componentwise multiplication. + /// Right hand side uint to use to compute componentwise multiplication. + /// uint2x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator * (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } /// Returns the result of a componentwise multiplication operation on a uint value and a uint2x4 matrix. + /// Left hand side uint to use to compute componentwise multiplication. + /// Right hand side uint2x4 to use to compute componentwise multiplication. + /// uint2x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator * (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } /// Returns the result of a componentwise addition operation on two uint2x4 matrices. + /// Left hand side uint2x4 to use to compute componentwise addition. + /// Right hand side uint2x4 to use to compute componentwise addition. + /// uint2x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator + (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } /// Returns the result of a componentwise addition operation on a uint2x4 matrix and a uint value. + /// Left hand side uint2x4 to use to compute componentwise addition. + /// Right hand side uint to use to compute componentwise addition. + /// uint2x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator + (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } /// Returns the result of a componentwise addition operation on a uint value and a uint2x4 matrix. + /// Left hand side uint to use to compute componentwise addition. + /// Right hand side uint2x4 to use to compute componentwise addition. + /// uint2x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator + (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } /// Returns the result of a componentwise subtraction operation on two uint2x4 matrices. + /// Left hand side uint2x4 to use to compute componentwise subtraction. + /// Right hand side uint2x4 to use to compute componentwise subtraction. + /// uint2x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator - (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } /// Returns the result of a componentwise subtraction operation on a uint2x4 matrix and a uint value. + /// Left hand side uint2x4 to use to compute componentwise subtraction. + /// Right hand side uint to use to compute componentwise subtraction. + /// uint2x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator - (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } /// Returns the result of a componentwise subtraction operation on a uint value and a uint2x4 matrix. + /// Left hand side uint to use to compute componentwise subtraction. + /// Right hand side uint2x4 to use to compute componentwise subtraction. + /// uint2x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator - (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } /// Returns the result of a componentwise division operation on two uint2x4 matrices. + /// Left hand side uint2x4 to use to compute componentwise division. + /// Right hand side uint2x4 to use to compute componentwise division. + /// uint2x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator / (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } /// Returns the result of a componentwise division operation on a uint2x4 matrix and a uint value. + /// Left hand side uint2x4 to use to compute componentwise division. + /// Right hand side uint to use to compute componentwise division. + /// uint2x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator / (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } /// Returns the result of a componentwise division operation on a uint value and a uint2x4 matrix. + /// Left hand side uint to use to compute componentwise division. + /// Right hand side uint2x4 to use to compute componentwise division. + /// uint2x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator / (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } /// Returns the result of a componentwise modulus operation on two uint2x4 matrices. + /// Left hand side uint2x4 to use to compute componentwise modulus. + /// Right hand side uint2x4 to use to compute componentwise modulus. + /// uint2x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator % (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } /// Returns the result of a componentwise modulus operation on a uint2x4 matrix and a uint value. + /// Left hand side uint2x4 to use to compute componentwise modulus. + /// Right hand side uint to use to compute componentwise modulus. + /// uint2x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator % (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } /// Returns the result of a componentwise modulus operation on a uint value and a uint2x4 matrix. + /// Left hand side uint to use to compute componentwise modulus. + /// Right hand side uint2x4 to use to compute componentwise modulus. + /// uint2x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator % (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } /// Returns the result of a componentwise increment operation on a uint2x4 matrix. + /// Value to use when computing the componentwise increment. + /// uint2x4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator ++ (uint2x4 val) { return new uint2x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } /// Returns the result of a componentwise decrement operation on a uint2x4 matrix. + /// Value to use when computing the componentwise decrement. + /// uint2x4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator -- (uint2x4 val) { return new uint2x4 (--val.c0, --val.c1, --val.c2, --val.c3); } /// Returns the result of a componentwise less than operation on two uint2x4 matrices. + /// Left hand side uint2x4 to use to compute componentwise less than. + /// Right hand side uint2x4 to use to compute componentwise less than. + /// bool2x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator < (uint2x4 lhs, uint2x4 rhs) { return new bool2x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } /// Returns the result of a componentwise less than operation on a uint2x4 matrix and a uint value. + /// Left hand side uint2x4 to use to compute componentwise less than. + /// Right hand side uint to use to compute componentwise less than. + /// bool2x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator < (uint2x4 lhs, uint rhs) { return new bool2x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } /// Returns the result of a componentwise less than operation on a uint value and a uint2x4 matrix. + /// Left hand side uint to use to compute componentwise less than. + /// Right hand side uint2x4 to use to compute componentwise less than. + /// bool2x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator < (uint lhs, uint2x4 rhs) { return new bool2x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } /// Returns the result of a componentwise less or equal operation on two uint2x4 matrices. + /// Left hand side uint2x4 to use to compute componentwise less or equal. + /// Right hand side uint2x4 to use to compute componentwise less or equal. + /// bool2x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator <= (uint2x4 lhs, uint2x4 rhs) { return new bool2x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } /// Returns the result of a componentwise less or equal operation on a uint2x4 matrix and a uint value. + /// Left hand side uint2x4 to use to compute componentwise less or equal. + /// Right hand side uint to use to compute componentwise less or equal. + /// bool2x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator <= (uint2x4 lhs, uint rhs) { return new bool2x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } /// Returns the result of a componentwise less or equal operation on a uint value and a uint2x4 matrix. + /// Left hand side uint to use to compute componentwise less or equal. + /// Right hand side uint2x4 to use to compute componentwise less or equal. + /// bool2x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator <= (uint lhs, uint2x4 rhs) { return new bool2x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } /// Returns the result of a componentwise greater than operation on two uint2x4 matrices. + /// Left hand side uint2x4 to use to compute componentwise greater than. + /// Right hand side uint2x4 to use to compute componentwise greater than. + /// bool2x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator > (uint2x4 lhs, uint2x4 rhs) { return new bool2x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } /// Returns the result of a componentwise greater than operation on a uint2x4 matrix and a uint value. + /// Left hand side uint2x4 to use to compute componentwise greater than. + /// Right hand side uint to use to compute componentwise greater than. + /// bool2x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator > (uint2x4 lhs, uint rhs) { return new bool2x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } /// Returns the result of a componentwise greater than operation on a uint value and a uint2x4 matrix. + /// Left hand side uint to use to compute componentwise greater than. + /// Right hand side uint2x4 to use to compute componentwise greater than. + /// bool2x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator > (uint lhs, uint2x4 rhs) { return new bool2x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } /// Returns the result of a componentwise greater or equal operation on two uint2x4 matrices. + /// Left hand side uint2x4 to use to compute componentwise greater or equal. + /// Right hand side uint2x4 to use to compute componentwise greater or equal. + /// bool2x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator >= (uint2x4 lhs, uint2x4 rhs) { return new bool2x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } /// Returns the result of a componentwise greater or equal operation on a uint2x4 matrix and a uint value. + /// Left hand side uint2x4 to use to compute componentwise greater or equal. + /// Right hand side uint to use to compute componentwise greater or equal. + /// bool2x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator >= (uint2x4 lhs, uint rhs) { return new bool2x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a uint value and a uint2x4 matrix. + /// Left hand side uint to use to compute componentwise greater or equal. + /// Right hand side uint2x4 to use to compute componentwise greater or equal. + /// bool2x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator >= (uint lhs, uint2x4 rhs) { return new bool2x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } /// Returns the result of a componentwise unary minus operation on a uint2x4 matrix. + /// Value to use when computing the componentwise unary minus. + /// uint2x4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator - (uint2x4 val) { return new uint2x4 (-val.c0, -val.c1, -val.c2, -val.c3); } /// Returns the result of a componentwise unary plus operation on a uint2x4 matrix. + /// Value to use when computing the componentwise unary plus. + /// uint2x4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator + (uint2x4 val) { return new uint2x4 (+val.c0, +val.c1, +val.c2, +val.c3); } /// Returns the result of a componentwise left shift operation on a uint2x4 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator << (uint2x4 x, int n) { return new uint2x4 (x.c0 << n, x.c1 << n, x.c2 << n, x.c3 << n); } /// Returns the result of a componentwise right shift operation on a uint2x4 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator >> (uint2x4 x, int n) { return new uint2x4 (x.c0 >> n, x.c1 >> n, x.c2 >> n, x.c3 >> n); } /// Returns the result of a componentwise equality operation on two uint2x4 matrices. + /// Left hand side uint2x4 to use to compute componentwise equality. + /// Right hand side uint2x4 to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (uint2x4 lhs, uint2x4 rhs) { return new bool2x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on a uint2x4 matrix and a uint value. + /// Left hand side uint2x4 to use to compute componentwise equality. + /// Right hand side uint to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (uint2x4 lhs, uint rhs) { return new bool2x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on a uint value and a uint2x4 matrix. + /// Left hand side uint to use to compute componentwise equality. + /// Right hand side uint2x4 to use to compute componentwise equality. + /// bool2x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator == (uint lhs, uint2x4 rhs) { return new bool2x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two uint2x4 matrices. + /// Left hand side uint2x4 to use to compute componentwise not equal. + /// Right hand side uint2x4 to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (uint2x4 lhs, uint2x4 rhs) { return new bool2x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on a uint2x4 matrix and a uint value. + /// Left hand side uint2x4 to use to compute componentwise not equal. + /// Right hand side uint to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (uint2x4 lhs, uint rhs) { return new bool2x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on a uint value and a uint2x4 matrix. + /// Left hand side uint to use to compute componentwise not equal. + /// Right hand side uint2x4 to use to compute componentwise not equal. + /// bool2x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool2x4 operator != (uint lhs, uint2x4 rhs) { return new bool2x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } /// Returns the result of a componentwise bitwise not operation on a uint2x4 matrix. + /// Value to use when computing the componentwise bitwise not. + /// uint2x4 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator ~ (uint2x4 val) { return new uint2x4 (~val.c0, ~val.c1, ~val.c2, ~val.c3); } /// Returns the result of a componentwise bitwise and operation on two uint2x4 matrices. + /// Left hand side uint2x4 to use to compute componentwise bitwise and. + /// Right hand side uint2x4 to use to compute componentwise bitwise and. + /// uint2x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator & (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } /// Returns the result of a componentwise bitwise and operation on a uint2x4 matrix and a uint value. + /// Left hand side uint2x4 to use to compute componentwise bitwise and. + /// Right hand side uint to use to compute componentwise bitwise and. + /// uint2x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator & (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } /// Returns the result of a componentwise bitwise and operation on a uint value and a uint2x4 matrix. + /// Left hand side uint to use to compute componentwise bitwise and. + /// Right hand side uint2x4 to use to compute componentwise bitwise and. + /// uint2x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator & (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } /// Returns the result of a componentwise bitwise or operation on two uint2x4 matrices. + /// Left hand side uint2x4 to use to compute componentwise bitwise or. + /// Right hand side uint2x4 to use to compute componentwise bitwise or. + /// uint2x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator | (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } /// Returns the result of a componentwise bitwise or operation on a uint2x4 matrix and a uint value. + /// Left hand side uint2x4 to use to compute componentwise bitwise or. + /// Right hand side uint to use to compute componentwise bitwise or. + /// uint2x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator | (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } /// Returns the result of a componentwise bitwise or operation on a uint value and a uint2x4 matrix. + /// Left hand side uint to use to compute componentwise bitwise or. + /// Right hand side uint2x4 to use to compute componentwise bitwise or. + /// uint2x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator | (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on two uint2x4 matrices. + /// Left hand side uint2x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint2x4 to use to compute componentwise bitwise exclusive or. + /// uint2x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator ^ (uint2x4 lhs, uint2x4 rhs) { return new uint2x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint2x4 matrix and a uint value. + /// Left hand side uint2x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint to use to compute componentwise bitwise exclusive or. + /// uint2x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator ^ (uint2x4 lhs, uint rhs) { return new uint2x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint2x4 matrix. + /// Left hand side uint to use to compute componentwise bitwise exclusive or. + /// Right hand side uint2x4 to use to compute componentwise bitwise exclusive or. + /// uint2x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 operator ^ (uint lhs, uint2x4 rhs) { return new uint2x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } @@ -405,19 +591,25 @@ unsafe public ref uint2 this[int index] } /// Returns true if the uint2x4 is equal to a given uint2x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint2x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the uint2x4 is equal to a given uint2x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is uint2x4 converted && Equals(converted); } /// Returns a hash code for the uint2x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the uint2x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -425,6 +617,9 @@ public override string ToString() } /// Returns a string representation of the uint2x4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -436,10 +631,24 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a uint2x4 matrix constructed from four uint2 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// uint2x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 uint2x4(uint2 c0, uint2 c1, uint2 c2, uint2 c3) { return new uint2x4(c0, c1, c2, c3); } /// Returns a uint2x4 matrix constructed from from 8 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// uint2x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 uint2x4(uint m00, uint m01, uint m02, uint m03, uint m10, uint m11, uint m12, uint m13) @@ -449,42 +658,62 @@ public static uint2x4 uint2x4(uint m00, uint m01, uint m02, uint m03, } /// Returns a uint2x4 matrix constructed from a single uint value by assigning it to every component. + /// uint to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 uint2x4(uint v) { return new uint2x4(v); } /// Returns a uint2x4 matrix constructed from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 uint2x4(bool v) { return new uint2x4(v); } /// Return a uint2x4 matrix constructed from a bool2x4 matrix by componentwise conversion. + /// bool2x4 to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 uint2x4(bool2x4 v) { return new uint2x4(v); } /// Returns a uint2x4 matrix constructed from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 uint2x4(int v) { return new uint2x4(v); } /// Return a uint2x4 matrix constructed from a int2x4 matrix by componentwise conversion. + /// int2x4 to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 uint2x4(int2x4 v) { return new uint2x4(v); } /// Returns a uint2x4 matrix constructed from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 uint2x4(float v) { return new uint2x4(v); } /// Return a uint2x4 matrix constructed from a float2x4 matrix by componentwise conversion. + /// float2x4 to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 uint2x4(float2x4 v) { return new uint2x4(v); } /// Returns a uint2x4 matrix constructed from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 uint2x4(double v) { return new uint2x4(v); } /// Return a uint2x4 matrix constructed from a double2x4 matrix by componentwise conversion. + /// double2x4 to convert to uint2x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 uint2x4(double2x4 v) { return new uint2x4(v); } /// Return the uint4x2 transpose of a uint2x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 transpose(uint2x4 v) { @@ -495,7 +724,9 @@ public static uint4x2 transpose(uint2x4 v) v.c3.x, v.c3.y); } - /// Returns a uint hash code of a uint2x4 vector. + /// Returns a uint hash code of a uint2x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(uint2x4 v) { @@ -506,10 +737,12 @@ public static uint hash(uint2x4 v) } /// - /// Returns a uint2 vector hash code of a uint2x4 vector. + /// Returns a uint2 vector hash code of a uint2x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint2 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2 hashwide(uint2x4 v) { diff --git a/src/Unity.Mathematics/uint3.gen.cs b/src/Unity.Mathematics/uint3.gen.cs index 80e9cc68..8ad803eb 100644 --- a/src/Unity.Mathematics/uint3.gen.cs +++ b/src/Unity.Mathematics/uint3.gen.cs @@ -15,19 +15,26 @@ namespace Unity.Mathematics { + /// A 3 component vector of uints. [DebuggerTypeProxy(typeof(uint3.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct uint3 : System.IEquatable, IFormattable { + /// x component of the vector. public uint x; + /// y component of the vector. public uint y; + /// z component of the vector. public uint z; /// uint3 zero value. public static readonly uint3 zero; /// Constructs a uint3 vector from three uint values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(uint x, uint y, uint z) { @@ -37,6 +44,8 @@ public uint3(uint x, uint y, uint z) } /// Constructs a uint3 vector from a uint value and a uint2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(uint x, uint2 yz) { @@ -46,6 +55,8 @@ public uint3(uint x, uint2 yz) } /// Constructs a uint3 vector from a uint2 vector and a uint value. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(uint2 xy, uint z) { @@ -55,6 +66,7 @@ public uint3(uint2 xy, uint z) } /// Constructs a uint3 vector from a uint3 vector. + /// The constructed vector's xyz components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(uint3 xyz) { @@ -64,6 +76,7 @@ public uint3(uint3 xyz) } /// Constructs a uint3 vector from a single uint value by assigning it to every component. + /// uint to convert to uint3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(uint v) { @@ -73,6 +86,7 @@ public uint3(uint v) } /// Constructs a uint3 vector from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(bool v) { @@ -82,6 +96,7 @@ public uint3(bool v) } /// Constructs a uint3 vector from a bool3 vector by componentwise conversion. + /// bool3 to convert to uint3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(bool3 v) { @@ -91,6 +106,7 @@ public uint3(bool3 v) } /// Constructs a uint3 vector from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(int v) { @@ -100,6 +116,7 @@ public uint3(int v) } /// Constructs a uint3 vector from a int3 vector by componentwise conversion. + /// int3 to convert to uint3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(int3 v) { @@ -109,6 +126,7 @@ public uint3(int3 v) } /// Constructs a uint3 vector from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(float v) { @@ -118,6 +136,7 @@ public uint3(float v) } /// Constructs a uint3 vector from a float3 vector by componentwise conversion. + /// float3 to convert to uint3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(float3 v) { @@ -127,6 +146,7 @@ public uint3(float3 v) } /// Constructs a uint3 vector from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(double v) { @@ -136,6 +156,7 @@ public uint3(double v) } /// Constructs a uint3 vector from a double3 vector by componentwise conversion. + /// double3 to convert to uint3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3(double3 v) { @@ -146,259 +167,420 @@ public uint3(double3 v) /// Implicitly converts a single uint value to a uint3 vector by assigning it to every component. + /// uint to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint3(uint v) { return new uint3(v); } /// Explicitly converts a single bool value to a uint3 vector by converting it to uint and assigning it to every component. + /// bool to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3(bool v) { return new uint3(v); } /// Explicitly converts a bool3 vector to a uint3 vector by componentwise conversion. + /// bool3 to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3(bool3 v) { return new uint3(v); } /// Explicitly converts a single int value to a uint3 vector by converting it to uint and assigning it to every component. + /// int to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3(int v) { return new uint3(v); } /// Explicitly converts a int3 vector to a uint3 vector by componentwise conversion. + /// int3 to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3(int3 v) { return new uint3(v); } /// Explicitly converts a single float value to a uint3 vector by converting it to uint and assigning it to every component. + /// float to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3(float v) { return new uint3(v); } /// Explicitly converts a float3 vector to a uint3 vector by componentwise conversion. + /// float3 to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3(float3 v) { return new uint3(v); } /// Explicitly converts a single double value to a uint3 vector by converting it to uint and assigning it to every component. + /// double to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3(double v) { return new uint3(v); } /// Explicitly converts a double3 vector to a uint3 vector by componentwise conversion. + /// double3 to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3(double3 v) { return new uint3(v); } /// Returns the result of a componentwise multiplication operation on two uint3 vectors. + /// Left hand side uint3 to use to compute componentwise multiplication. + /// Right hand side uint3 to use to compute componentwise multiplication. + /// uint3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator * (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z); } /// Returns the result of a componentwise multiplication operation on a uint3 vector and a uint value. + /// Left hand side uint3 to use to compute componentwise multiplication. + /// Right hand side uint to use to compute componentwise multiplication. + /// uint3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator * (uint3 lhs, uint rhs) { return new uint3 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs); } /// Returns the result of a componentwise multiplication operation on a uint value and a uint3 vector. + /// Left hand side uint to use to compute componentwise multiplication. + /// Right hand side uint3 to use to compute componentwise multiplication. + /// uint3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator * (uint lhs, uint3 rhs) { return new uint3 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z); } /// Returns the result of a componentwise addition operation on two uint3 vectors. + /// Left hand side uint3 to use to compute componentwise addition. + /// Right hand side uint3 to use to compute componentwise addition. + /// uint3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator + (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z); } /// Returns the result of a componentwise addition operation on a uint3 vector and a uint value. + /// Left hand side uint3 to use to compute componentwise addition. + /// Right hand side uint to use to compute componentwise addition. + /// uint3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator + (uint3 lhs, uint rhs) { return new uint3 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs); } /// Returns the result of a componentwise addition operation on a uint value and a uint3 vector. + /// Left hand side uint to use to compute componentwise addition. + /// Right hand side uint3 to use to compute componentwise addition. + /// uint3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator + (uint lhs, uint3 rhs) { return new uint3 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z); } /// Returns the result of a componentwise subtraction operation on two uint3 vectors. + /// Left hand side uint3 to use to compute componentwise subtraction. + /// Right hand side uint3 to use to compute componentwise subtraction. + /// uint3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator - (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z); } /// Returns the result of a componentwise subtraction operation on a uint3 vector and a uint value. + /// Left hand side uint3 to use to compute componentwise subtraction. + /// Right hand side uint to use to compute componentwise subtraction. + /// uint3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator - (uint3 lhs, uint rhs) { return new uint3 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs); } /// Returns the result of a componentwise subtraction operation on a uint value and a uint3 vector. + /// Left hand side uint to use to compute componentwise subtraction. + /// Right hand side uint3 to use to compute componentwise subtraction. + /// uint3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator - (uint lhs, uint3 rhs) { return new uint3 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z); } /// Returns the result of a componentwise division operation on two uint3 vectors. + /// Left hand side uint3 to use to compute componentwise division. + /// Right hand side uint3 to use to compute componentwise division. + /// uint3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator / (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z); } /// Returns the result of a componentwise division operation on a uint3 vector and a uint value. + /// Left hand side uint3 to use to compute componentwise division. + /// Right hand side uint to use to compute componentwise division. + /// uint3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator / (uint3 lhs, uint rhs) { return new uint3 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs); } /// Returns the result of a componentwise division operation on a uint value and a uint3 vector. + /// Left hand side uint to use to compute componentwise division. + /// Right hand side uint3 to use to compute componentwise division. + /// uint3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator / (uint lhs, uint3 rhs) { return new uint3 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z); } /// Returns the result of a componentwise modulus operation on two uint3 vectors. + /// Left hand side uint3 to use to compute componentwise modulus. + /// Right hand side uint3 to use to compute componentwise modulus. + /// uint3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator % (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z); } /// Returns the result of a componentwise modulus operation on a uint3 vector and a uint value. + /// Left hand side uint3 to use to compute componentwise modulus. + /// Right hand side uint to use to compute componentwise modulus. + /// uint3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator % (uint3 lhs, uint rhs) { return new uint3 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs); } /// Returns the result of a componentwise modulus operation on a uint value and a uint3 vector. + /// Left hand side uint to use to compute componentwise modulus. + /// Right hand side uint3 to use to compute componentwise modulus. + /// uint3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator % (uint lhs, uint3 rhs) { return new uint3 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z); } /// Returns the result of a componentwise increment operation on a uint3 vector. + /// Value to use when computing the componentwise increment. + /// uint3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator ++ (uint3 val) { return new uint3 (++val.x, ++val.y, ++val.z); } /// Returns the result of a componentwise decrement operation on a uint3 vector. + /// Value to use when computing the componentwise decrement. + /// uint3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator -- (uint3 val) { return new uint3 (--val.x, --val.y, --val.z); } /// Returns the result of a componentwise less than operation on two uint3 vectors. + /// Left hand side uint3 to use to compute componentwise less than. + /// Right hand side uint3 to use to compute componentwise less than. + /// bool3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z); } /// Returns the result of a componentwise less than operation on a uint3 vector and a uint value. + /// Left hand side uint3 to use to compute componentwise less than. + /// Right hand side uint to use to compute componentwise less than. + /// bool3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (uint3 lhs, uint rhs) { return new bool3 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs); } /// Returns the result of a componentwise less than operation on a uint value and a uint3 vector. + /// Left hand side uint to use to compute componentwise less than. + /// Right hand side uint3 to use to compute componentwise less than. + /// bool3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator < (uint lhs, uint3 rhs) { return new bool3 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z); } /// Returns the result of a componentwise less or equal operation on two uint3 vectors. + /// Left hand side uint3 to use to compute componentwise less or equal. + /// Right hand side uint3 to use to compute componentwise less or equal. + /// bool3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z); } /// Returns the result of a componentwise less or equal operation on a uint3 vector and a uint value. + /// Left hand side uint3 to use to compute componentwise less or equal. + /// Right hand side uint to use to compute componentwise less or equal. + /// bool3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (uint3 lhs, uint rhs) { return new bool3 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs); } /// Returns the result of a componentwise less or equal operation on a uint value and a uint3 vector. + /// Left hand side uint to use to compute componentwise less or equal. + /// Right hand side uint3 to use to compute componentwise less or equal. + /// bool3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator <= (uint lhs, uint3 rhs) { return new bool3 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z); } /// Returns the result of a componentwise greater than operation on two uint3 vectors. + /// Left hand side uint3 to use to compute componentwise greater than. + /// Right hand side uint3 to use to compute componentwise greater than. + /// bool3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z); } /// Returns the result of a componentwise greater than operation on a uint3 vector and a uint value. + /// Left hand side uint3 to use to compute componentwise greater than. + /// Right hand side uint to use to compute componentwise greater than. + /// bool3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (uint3 lhs, uint rhs) { return new bool3 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs); } /// Returns the result of a componentwise greater than operation on a uint value and a uint3 vector. + /// Left hand side uint to use to compute componentwise greater than. + /// Right hand side uint3 to use to compute componentwise greater than. + /// bool3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator > (uint lhs, uint3 rhs) { return new bool3 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z); } /// Returns the result of a componentwise greater or equal operation on two uint3 vectors. + /// Left hand side uint3 to use to compute componentwise greater or equal. + /// Right hand side uint3 to use to compute componentwise greater or equal. + /// bool3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z); } /// Returns the result of a componentwise greater or equal operation on a uint3 vector and a uint value. + /// Left hand side uint3 to use to compute componentwise greater or equal. + /// Right hand side uint to use to compute componentwise greater or equal. + /// bool3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (uint3 lhs, uint rhs) { return new bool3 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs); } /// Returns the result of a componentwise greater or equal operation on a uint value and a uint3 vector. + /// Left hand side uint to use to compute componentwise greater or equal. + /// Right hand side uint3 to use to compute componentwise greater or equal. + /// bool3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator >= (uint lhs, uint3 rhs) { return new bool3 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z); } /// Returns the result of a componentwise unary minus operation on a uint3 vector. + /// Value to use when computing the componentwise unary minus. + /// uint3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator - (uint3 val) { return new uint3 ((uint)-val.x, (uint)-val.y, (uint)-val.z); } /// Returns the result of a componentwise unary plus operation on a uint3 vector. + /// Value to use when computing the componentwise unary plus. + /// uint3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator + (uint3 val) { return new uint3 (+val.x, +val.y, +val.z); } /// Returns the result of a componentwise left shift operation on a uint3 vector by a number of bits specified by a single int. + /// The vector to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator << (uint3 x, int n) { return new uint3 (x.x << n, x.y << n, x.z << n); } /// Returns the result of a componentwise right shift operation on a uint3 vector by a number of bits specified by a single int. + /// The vector to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator >> (uint3 x, int n) { return new uint3 (x.x >> n, x.y >> n, x.z >> n); } /// Returns the result of a componentwise equality operation on two uint3 vectors. + /// Left hand side uint3 to use to compute componentwise equality. + /// Right hand side uint3 to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z); } /// Returns the result of a componentwise equality operation on a uint3 vector and a uint value. + /// Left hand side uint3 to use to compute componentwise equality. + /// Right hand side uint to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (uint3 lhs, uint rhs) { return new bool3 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs); } /// Returns the result of a componentwise equality operation on a uint value and a uint3 vector. + /// Left hand side uint to use to compute componentwise equality. + /// Right hand side uint3 to use to compute componentwise equality. + /// bool3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator == (uint lhs, uint3 rhs) { return new bool3 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z); } /// Returns the result of a componentwise not equal operation on two uint3 vectors. + /// Left hand side uint3 to use to compute componentwise not equal. + /// Right hand side uint3 to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (uint3 lhs, uint3 rhs) { return new bool3 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z); } /// Returns the result of a componentwise not equal operation on a uint3 vector and a uint value. + /// Left hand side uint3 to use to compute componentwise not equal. + /// Right hand side uint to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (uint3 lhs, uint rhs) { return new bool3 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs); } /// Returns the result of a componentwise not equal operation on a uint value and a uint3 vector. + /// Left hand side uint to use to compute componentwise not equal. + /// Right hand side uint3 to use to compute componentwise not equal. + /// bool3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3 operator != (uint lhs, uint3 rhs) { return new bool3 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z); } /// Returns the result of a componentwise bitwise not operation on a uint3 vector. + /// Value to use when computing the componentwise bitwise not. + /// uint3 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator ~ (uint3 val) { return new uint3 (~val.x, ~val.y, ~val.z); } /// Returns the result of a componentwise bitwise and operation on two uint3 vectors. + /// Left hand side uint3 to use to compute componentwise bitwise and. + /// Right hand side uint3 to use to compute componentwise bitwise and. + /// uint3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator & (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z); } /// Returns the result of a componentwise bitwise and operation on a uint3 vector and a uint value. + /// Left hand side uint3 to use to compute componentwise bitwise and. + /// Right hand side uint to use to compute componentwise bitwise and. + /// uint3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator & (uint3 lhs, uint rhs) { return new uint3 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs); } /// Returns the result of a componentwise bitwise and operation on a uint value and a uint3 vector. + /// Left hand side uint to use to compute componentwise bitwise and. + /// Right hand side uint3 to use to compute componentwise bitwise and. + /// uint3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator & (uint lhs, uint3 rhs) { return new uint3 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z); } /// Returns the result of a componentwise bitwise or operation on two uint3 vectors. + /// Left hand side uint3 to use to compute componentwise bitwise or. + /// Right hand side uint3 to use to compute componentwise bitwise or. + /// uint3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator | (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z); } /// Returns the result of a componentwise bitwise or operation on a uint3 vector and a uint value. + /// Left hand side uint3 to use to compute componentwise bitwise or. + /// Right hand side uint to use to compute componentwise bitwise or. + /// uint3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator | (uint3 lhs, uint rhs) { return new uint3 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs); } /// Returns the result of a componentwise bitwise or operation on a uint value and a uint3 vector. + /// Left hand side uint to use to compute componentwise bitwise or. + /// Right hand side uint3 to use to compute componentwise bitwise or. + /// uint3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator | (uint lhs, uint3 rhs) { return new uint3 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z); } /// Returns the result of a componentwise bitwise exclusive or operation on two uint3 vectors. + /// Left hand side uint3 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint3 to use to compute componentwise bitwise exclusive or. + /// uint3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator ^ (uint3 lhs, uint3 rhs) { return new uint3 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint3 vector and a uint value. + /// Left hand side uint3 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint to use to compute componentwise bitwise exclusive or. + /// uint3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator ^ (uint3 lhs, uint rhs) { return new uint3 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint3 vector. + /// Left hand side uint to use to compute componentwise bitwise exclusive or. + /// Right hand side uint3 to use to compute componentwise bitwise exclusive or. + /// uint3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 operator ^ (uint lhs, uint3 rhs) { return new uint3 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxx { @@ -407,6 +589,7 @@ public uint4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxy { @@ -415,6 +598,7 @@ public uint4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxz { @@ -423,6 +607,7 @@ public uint4 xxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyx { @@ -431,6 +616,7 @@ public uint4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyy { @@ -439,6 +625,7 @@ public uint4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyz { @@ -447,6 +634,7 @@ public uint4 xxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxzx { @@ -455,6 +643,7 @@ public uint4 xxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxzy { @@ -463,6 +652,7 @@ public uint4 xxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxzz { @@ -471,6 +661,7 @@ public uint4 xxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxx { @@ -479,6 +670,7 @@ public uint4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxy { @@ -487,6 +679,7 @@ public uint4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxz { @@ -495,6 +688,7 @@ public uint4 xyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyx { @@ -503,6 +697,7 @@ public uint4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyy { @@ -511,6 +706,7 @@ public uint4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyz { @@ -519,6 +715,7 @@ public uint4 xyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyzx { @@ -527,6 +724,7 @@ public uint4 xyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyzy { @@ -535,6 +733,7 @@ public uint4 xyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyzz { @@ -543,6 +742,7 @@ public uint4 xyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzxx { @@ -551,6 +751,7 @@ public uint4 xzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzxy { @@ -559,6 +760,7 @@ public uint4 xzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzxz { @@ -567,6 +769,7 @@ public uint4 xzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzyx { @@ -575,6 +778,7 @@ public uint4 xzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzyy { @@ -583,6 +787,7 @@ public uint4 xzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzyz { @@ -591,6 +796,7 @@ public uint4 xzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzzx { @@ -599,6 +805,7 @@ public uint4 xzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzzy { @@ -607,6 +814,7 @@ public uint4 xzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzzz { @@ -615,6 +823,7 @@ public uint4 xzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxx { @@ -623,6 +832,7 @@ public uint4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxy { @@ -631,6 +841,7 @@ public uint4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxz { @@ -639,6 +850,7 @@ public uint4 yxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyx { @@ -647,6 +859,7 @@ public uint4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyy { @@ -655,6 +868,7 @@ public uint4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyz { @@ -663,6 +877,7 @@ public uint4 yxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxzx { @@ -671,6 +886,7 @@ public uint4 yxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxzy { @@ -679,6 +895,7 @@ public uint4 yxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxzz { @@ -687,6 +904,7 @@ public uint4 yxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxx { @@ -695,6 +913,7 @@ public uint4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxy { @@ -703,6 +922,7 @@ public uint4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxz { @@ -711,6 +931,7 @@ public uint4 yyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyx { @@ -719,6 +940,7 @@ public uint4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyy { @@ -727,6 +949,7 @@ public uint4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyz { @@ -735,6 +958,7 @@ public uint4 yyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyzx { @@ -743,6 +967,7 @@ public uint4 yyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyzy { @@ -751,6 +976,7 @@ public uint4 yyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyzz { @@ -759,6 +985,7 @@ public uint4 yyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzxx { @@ -767,6 +994,7 @@ public uint4 yzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzxy { @@ -775,6 +1003,7 @@ public uint4 yzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzxz { @@ -783,6 +1012,7 @@ public uint4 yzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzyx { @@ -791,6 +1021,7 @@ public uint4 yzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzyy { @@ -799,6 +1030,7 @@ public uint4 yzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzyz { @@ -807,6 +1039,7 @@ public uint4 yzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzzx { @@ -815,6 +1048,7 @@ public uint4 yzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzzy { @@ -823,6 +1057,7 @@ public uint4 yzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzzz { @@ -831,6 +1066,7 @@ public uint4 yzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxxx { @@ -839,6 +1075,7 @@ public uint4 zxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxxy { @@ -847,6 +1084,7 @@ public uint4 zxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxxz { @@ -855,6 +1093,7 @@ public uint4 zxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxyx { @@ -863,6 +1102,7 @@ public uint4 zxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxyy { @@ -871,6 +1111,7 @@ public uint4 zxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxyz { @@ -879,6 +1120,7 @@ public uint4 zxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxzx { @@ -887,6 +1129,7 @@ public uint4 zxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxzy { @@ -895,6 +1138,7 @@ public uint4 zxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxzz { @@ -903,6 +1147,7 @@ public uint4 zxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyxx { @@ -911,6 +1156,7 @@ public uint4 zyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyxy { @@ -919,6 +1165,7 @@ public uint4 zyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyxz { @@ -927,6 +1174,7 @@ public uint4 zyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyyx { @@ -935,6 +1183,7 @@ public uint4 zyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyyy { @@ -943,6 +1192,7 @@ public uint4 zyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyyz { @@ -951,6 +1201,7 @@ public uint4 zyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyzx { @@ -959,6 +1210,7 @@ public uint4 zyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyzy { @@ -967,6 +1219,7 @@ public uint4 zyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyzz { @@ -975,6 +1228,7 @@ public uint4 zyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzxx { @@ -983,6 +1237,7 @@ public uint4 zzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzxy { @@ -991,6 +1246,7 @@ public uint4 zzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzxz { @@ -999,6 +1255,7 @@ public uint4 zzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzyx { @@ -1007,6 +1264,7 @@ public uint4 zzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzyy { @@ -1015,6 +1273,7 @@ public uint4 zzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzyz { @@ -1023,6 +1282,7 @@ public uint4 zzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzzx { @@ -1031,6 +1291,7 @@ public uint4 zzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzzy { @@ -1039,6 +1300,7 @@ public uint4 zzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzzz { @@ -1047,6 +1309,7 @@ public uint4 zzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxx { @@ -1055,6 +1318,7 @@ public uint3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxy { @@ -1063,6 +1327,7 @@ public uint3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxz { @@ -1071,6 +1336,7 @@ public uint3 xxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyx { @@ -1079,6 +1345,7 @@ public uint3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyy { @@ -1087,6 +1354,7 @@ public uint3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyz { @@ -1097,6 +1365,7 @@ public uint3 xyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xzx { @@ -1105,6 +1374,7 @@ public uint3 xzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xzy { @@ -1115,6 +1385,7 @@ public uint3 xzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xzz { @@ -1123,6 +1394,7 @@ public uint3 xzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxx { @@ -1131,6 +1403,7 @@ public uint3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxy { @@ -1139,6 +1412,7 @@ public uint3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxz { @@ -1149,6 +1423,7 @@ public uint3 yxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyx { @@ -1157,6 +1432,7 @@ public uint3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyy { @@ -1165,6 +1441,7 @@ public uint3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyz { @@ -1173,6 +1450,7 @@ public uint3 yyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yzx { @@ -1183,6 +1461,7 @@ public uint3 yzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yzy { @@ -1191,6 +1470,7 @@ public uint3 yzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yzz { @@ -1199,6 +1479,7 @@ public uint3 yzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zxx { @@ -1207,6 +1488,7 @@ public uint3 zxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zxy { @@ -1217,6 +1499,7 @@ public uint3 zxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zxz { @@ -1225,6 +1508,7 @@ public uint3 zxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zyx { @@ -1235,6 +1519,7 @@ public uint3 zyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zyy { @@ -1243,6 +1528,7 @@ public uint3 zyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zyz { @@ -1251,6 +1537,7 @@ public uint3 zyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zzx { @@ -1259,6 +1546,7 @@ public uint3 zzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zzy { @@ -1267,6 +1555,7 @@ public uint3 zzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zzz { @@ -1275,6 +1564,7 @@ public uint3 zzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xx { @@ -1283,6 +1573,7 @@ public uint2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xy { @@ -1293,6 +1584,7 @@ public uint2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xz { @@ -1303,6 +1595,7 @@ public uint2 xz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yx { @@ -1313,6 +1606,7 @@ public uint2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yy { @@ -1321,6 +1615,7 @@ public uint2 yy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yz { @@ -1331,6 +1626,7 @@ public uint2 yz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 zx { @@ -1341,6 +1637,7 @@ public uint2 zx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 zy { @@ -1351,6 +1648,7 @@ public uint2 zy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 zz { @@ -1382,19 +1680,25 @@ unsafe public uint this[int index] } /// Returns true if the uint3 is equal to a given uint3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint3 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z; } /// Returns true if the uint3 is equal to a given uint3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is uint3 converted && Equals(converted); } /// Returns a hash code for the uint3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the uint3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -1402,6 +1706,9 @@ public override string ToString() } /// Returns a string representation of the uint3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -1426,58 +1733,90 @@ public DebuggerProxy(uint3 v) public static partial class math { /// Returns a uint3 vector constructed from three uint values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// uint3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 uint3(uint x, uint y, uint z) { return new uint3(x, y, z); } /// Returns a uint3 vector constructed from a uint value and a uint2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// uint3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 uint3(uint x, uint2 yz) { return new uint3(x, yz); } /// Returns a uint3 vector constructed from a uint2 vector and a uint value. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// uint3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 uint3(uint2 xy, uint z) { return new uint3(xy, z); } /// Returns a uint3 vector constructed from a uint3 vector. + /// The constructed vector's xyz components will be set to this value. + /// uint3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 uint3(uint3 xyz) { return new uint3(xyz); } /// Returns a uint3 vector constructed from a single uint value by assigning it to every component. + /// uint to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 uint3(uint v) { return new uint3(v); } /// Returns a uint3 vector constructed from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 uint3(bool v) { return new uint3(v); } /// Return a uint3 vector constructed from a bool3 vector by componentwise conversion. + /// bool3 to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 uint3(bool3 v) { return new uint3(v); } /// Returns a uint3 vector constructed from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 uint3(int v) { return new uint3(v); } /// Return a uint3 vector constructed from a int3 vector by componentwise conversion. + /// int3 to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 uint3(int3 v) { return new uint3(v); } /// Returns a uint3 vector constructed from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 uint3(float v) { return new uint3(v); } /// Return a uint3 vector constructed from a float3 vector by componentwise conversion. + /// float3 to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 uint3(float3 v) { return new uint3(v); } /// Returns a uint3 vector constructed from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 uint3(double v) { return new uint3(v); } /// Return a uint3 vector constructed from a double3 vector by componentwise conversion. + /// double3 to convert to uint3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 uint3(double3 v) { return new uint3(v); } /// Returns a uint hash code of a uint3 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(uint3 v) { @@ -1489,6 +1828,8 @@ public static uint hash(uint3 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(uint3 v) { @@ -1496,40 +1837,62 @@ public static uint3 hashwide(uint3 v) } /// Returns the result of specified shuffling of the components from two uint3 vectors into a uint value. + /// uint3 to use as the left argument of the shuffle operation. + /// uint3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting uint. + /// uint result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint shuffle(uint3 a, uint3 b, ShuffleComponent x) + public static uint shuffle(uint3 left, uint3 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two uint3 vectors into a uint2 vector. + /// uint3 to use as the left argument of the shuffle operation. + /// uint3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting uint2 x component. + /// The ShuffleComponent to use when setting the resulting uint2 y component. + /// uint2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 shuffle(uint3 a, uint3 b, ShuffleComponent x, ShuffleComponent y) + public static uint2 shuffle(uint3 left, uint3 right, ShuffleComponent x, ShuffleComponent y) { return uint2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two uint3 vectors into a uint3 vector. + /// uint3 to use as the left argument of the shuffle operation. + /// uint3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting uint3 x component. + /// The ShuffleComponent to use when setting the resulting uint3 y component. + /// The ShuffleComponent to use when setting the resulting uint3 z component. + /// uint3 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 shuffle(uint3 a, uint3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + public static uint3 shuffle(uint3 left, uint3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return uint3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two uint3 vectors into a uint4 vector. + /// uint3 to use as the left argument of the shuffle operation. + /// uint3 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting uint4 x component. + /// The ShuffleComponent to use when setting the resulting uint4 y component. + /// The ShuffleComponent to use when setting the resulting uint4 z component. + /// The ShuffleComponent to use when setting the resulting uint4 w component. + /// uint4 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 shuffle(uint3 a, uint3 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + public static uint4 shuffle(uint3 left, uint3 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return uint4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/uint3x2.gen.cs b/src/Unity.Mathematics/uint3x2.gen.cs index 8fcfc20f..fd1869d7 100644 --- a/src/Unity.Mathematics/uint3x2.gen.cs +++ b/src/Unity.Mathematics/uint3x2.gen.cs @@ -14,17 +14,22 @@ namespace Unity.Mathematics { + /// A 3x2 matrix of uints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct uint3x2 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public uint3 c0; + /// Column 1 of the matrix. public uint3 c1; /// uint3x2 zero value. public static readonly uint3x2 zero; /// Constructs a uint3x2 matrix from two uint3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x2(uint3 c0, uint3 c1) { @@ -33,6 +38,12 @@ public uint3x2(uint3 c0, uint3 c1) } /// Constructs a uint3x2 matrix from 6 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x2(uint m00, uint m01, uint m10, uint m11, @@ -43,6 +54,7 @@ public uint3x2(uint m00, uint m01, } /// Constructs a uint3x2 matrix from a single uint value by assigning it to every component. + /// uint to convert to uint3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x2(uint v) { @@ -51,6 +63,7 @@ public uint3x2(uint v) } /// Constructs a uint3x2 matrix from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x2(bool v) { @@ -59,6 +72,7 @@ public uint3x2(bool v) } /// Constructs a uint3x2 matrix from a bool3x2 matrix by componentwise conversion. + /// bool3x2 to convert to uint3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x2(bool3x2 v) { @@ -67,6 +81,7 @@ public uint3x2(bool3x2 v) } /// Constructs a uint3x2 matrix from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x2(int v) { @@ -75,6 +90,7 @@ public uint3x2(int v) } /// Constructs a uint3x2 matrix from a int3x2 matrix by componentwise conversion. + /// int3x2 to convert to uint3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x2(int3x2 v) { @@ -83,6 +99,7 @@ public uint3x2(int3x2 v) } /// Constructs a uint3x2 matrix from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x2(float v) { @@ -91,6 +108,7 @@ public uint3x2(float v) } /// Constructs a uint3x2 matrix from a float3x2 matrix by componentwise conversion. + /// float3x2 to convert to uint3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x2(float3x2 v) { @@ -99,6 +117,7 @@ public uint3x2(float3x2 v) } /// Constructs a uint3x2 matrix from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x2(double v) { @@ -107,6 +126,7 @@ public uint3x2(double v) } /// Constructs a uint3x2 matrix from a double3x2 matrix by componentwise conversion. + /// double3x2 to convert to uint3x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x2(double3x2 v) { @@ -116,253 +136,413 @@ public uint3x2(double3x2 v) /// Implicitly converts a single uint value to a uint3x2 matrix by assigning it to every component. + /// uint to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint3x2(uint v) { return new uint3x2(v); } /// Explicitly converts a single bool value to a uint3x2 matrix by converting it to uint and assigning it to every component. + /// bool to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x2(bool v) { return new uint3x2(v); } /// Explicitly converts a bool3x2 matrix to a uint3x2 matrix by componentwise conversion. + /// bool3x2 to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x2(bool3x2 v) { return new uint3x2(v); } /// Explicitly converts a single int value to a uint3x2 matrix by converting it to uint and assigning it to every component. + /// int to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x2(int v) { return new uint3x2(v); } /// Explicitly converts a int3x2 matrix to a uint3x2 matrix by componentwise conversion. + /// int3x2 to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x2(int3x2 v) { return new uint3x2(v); } /// Explicitly converts a single float value to a uint3x2 matrix by converting it to uint and assigning it to every component. + /// float to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x2(float v) { return new uint3x2(v); } /// Explicitly converts a float3x2 matrix to a uint3x2 matrix by componentwise conversion. + /// float3x2 to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x2(float3x2 v) { return new uint3x2(v); } /// Explicitly converts a single double value to a uint3x2 matrix by converting it to uint and assigning it to every component. + /// double to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x2(double v) { return new uint3x2(v); } /// Explicitly converts a double3x2 matrix to a uint3x2 matrix by componentwise conversion. + /// double3x2 to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x2(double3x2 v) { return new uint3x2(v); } /// Returns the result of a componentwise multiplication operation on two uint3x2 matrices. + /// Left hand side uint3x2 to use to compute componentwise multiplication. + /// Right hand side uint3x2 to use to compute componentwise multiplication. + /// uint3x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator * (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } /// Returns the result of a componentwise multiplication operation on a uint3x2 matrix and a uint value. + /// Left hand side uint3x2 to use to compute componentwise multiplication. + /// Right hand side uint to use to compute componentwise multiplication. + /// uint3x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator * (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 * rhs, lhs.c1 * rhs); } /// Returns the result of a componentwise multiplication operation on a uint value and a uint3x2 matrix. + /// Left hand side uint to use to compute componentwise multiplication. + /// Right hand side uint3x2 to use to compute componentwise multiplication. + /// uint3x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator * (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs * rhs.c0, lhs * rhs.c1); } /// Returns the result of a componentwise addition operation on two uint3x2 matrices. + /// Left hand side uint3x2 to use to compute componentwise addition. + /// Right hand side uint3x2 to use to compute componentwise addition. + /// uint3x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator + (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } /// Returns the result of a componentwise addition operation on a uint3x2 matrix and a uint value. + /// Left hand side uint3x2 to use to compute componentwise addition. + /// Right hand side uint to use to compute componentwise addition. + /// uint3x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator + (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 + rhs, lhs.c1 + rhs); } /// Returns the result of a componentwise addition operation on a uint value and a uint3x2 matrix. + /// Left hand side uint to use to compute componentwise addition. + /// Right hand side uint3x2 to use to compute componentwise addition. + /// uint3x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator + (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs + rhs.c0, lhs + rhs.c1); } /// Returns the result of a componentwise subtraction operation on two uint3x2 matrices. + /// Left hand side uint3x2 to use to compute componentwise subtraction. + /// Right hand side uint3x2 to use to compute componentwise subtraction. + /// uint3x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator - (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } /// Returns the result of a componentwise subtraction operation on a uint3x2 matrix and a uint value. + /// Left hand side uint3x2 to use to compute componentwise subtraction. + /// Right hand side uint to use to compute componentwise subtraction. + /// uint3x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator - (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 - rhs, lhs.c1 - rhs); } /// Returns the result of a componentwise subtraction operation on a uint value and a uint3x2 matrix. + /// Left hand side uint to use to compute componentwise subtraction. + /// Right hand side uint3x2 to use to compute componentwise subtraction. + /// uint3x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator - (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs - rhs.c0, lhs - rhs.c1); } /// Returns the result of a componentwise division operation on two uint3x2 matrices. + /// Left hand side uint3x2 to use to compute componentwise division. + /// Right hand side uint3x2 to use to compute componentwise division. + /// uint3x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator / (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } /// Returns the result of a componentwise division operation on a uint3x2 matrix and a uint value. + /// Left hand side uint3x2 to use to compute componentwise division. + /// Right hand side uint to use to compute componentwise division. + /// uint3x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator / (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 / rhs, lhs.c1 / rhs); } /// Returns the result of a componentwise division operation on a uint value and a uint3x2 matrix. + /// Left hand side uint to use to compute componentwise division. + /// Right hand side uint3x2 to use to compute componentwise division. + /// uint3x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator / (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs / rhs.c0, lhs / rhs.c1); } /// Returns the result of a componentwise modulus operation on two uint3x2 matrices. + /// Left hand side uint3x2 to use to compute componentwise modulus. + /// Right hand side uint3x2 to use to compute componentwise modulus. + /// uint3x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator % (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } /// Returns the result of a componentwise modulus operation on a uint3x2 matrix and a uint value. + /// Left hand side uint3x2 to use to compute componentwise modulus. + /// Right hand side uint to use to compute componentwise modulus. + /// uint3x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator % (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 % rhs, lhs.c1 % rhs); } /// Returns the result of a componentwise modulus operation on a uint value and a uint3x2 matrix. + /// Left hand side uint to use to compute componentwise modulus. + /// Right hand side uint3x2 to use to compute componentwise modulus. + /// uint3x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator % (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs % rhs.c0, lhs % rhs.c1); } /// Returns the result of a componentwise increment operation on a uint3x2 matrix. + /// Value to use when computing the componentwise increment. + /// uint3x2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator ++ (uint3x2 val) { return new uint3x2 (++val.c0, ++val.c1); } /// Returns the result of a componentwise decrement operation on a uint3x2 matrix. + /// Value to use when computing the componentwise decrement. + /// uint3x2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator -- (uint3x2 val) { return new uint3x2 (--val.c0, --val.c1); } /// Returns the result of a componentwise less than operation on two uint3x2 matrices. + /// Left hand side uint3x2 to use to compute componentwise less than. + /// Right hand side uint3x2 to use to compute componentwise less than. + /// bool3x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator < (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } /// Returns the result of a componentwise less than operation on a uint3x2 matrix and a uint value. + /// Left hand side uint3x2 to use to compute componentwise less than. + /// Right hand side uint to use to compute componentwise less than. + /// bool3x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator < (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 < rhs, lhs.c1 < rhs); } /// Returns the result of a componentwise less than operation on a uint value and a uint3x2 matrix. + /// Left hand side uint to use to compute componentwise less than. + /// Right hand side uint3x2 to use to compute componentwise less than. + /// bool3x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator < (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs < rhs.c0, lhs < rhs.c1); } /// Returns the result of a componentwise less or equal operation on two uint3x2 matrices. + /// Left hand side uint3x2 to use to compute componentwise less or equal. + /// Right hand side uint3x2 to use to compute componentwise less or equal. + /// bool3x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator <= (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } /// Returns the result of a componentwise less or equal operation on a uint3x2 matrix and a uint value. + /// Left hand side uint3x2 to use to compute componentwise less or equal. + /// Right hand side uint to use to compute componentwise less or equal. + /// bool3x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator <= (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } /// Returns the result of a componentwise less or equal operation on a uint value and a uint3x2 matrix. + /// Left hand side uint to use to compute componentwise less or equal. + /// Right hand side uint3x2 to use to compute componentwise less or equal. + /// bool3x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator <= (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs <= rhs.c0, lhs <= rhs.c1); } /// Returns the result of a componentwise greater than operation on two uint3x2 matrices. + /// Left hand side uint3x2 to use to compute componentwise greater than. + /// Right hand side uint3x2 to use to compute componentwise greater than. + /// bool3x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator > (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } /// Returns the result of a componentwise greater than operation on a uint3x2 matrix and a uint value. + /// Left hand side uint3x2 to use to compute componentwise greater than. + /// Right hand side uint to use to compute componentwise greater than. + /// bool3x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator > (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 > rhs, lhs.c1 > rhs); } /// Returns the result of a componentwise greater than operation on a uint value and a uint3x2 matrix. + /// Left hand side uint to use to compute componentwise greater than. + /// Right hand side uint3x2 to use to compute componentwise greater than. + /// bool3x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator > (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs > rhs.c0, lhs > rhs.c1); } /// Returns the result of a componentwise greater or equal operation on two uint3x2 matrices. + /// Left hand side uint3x2 to use to compute componentwise greater or equal. + /// Right hand side uint3x2 to use to compute componentwise greater or equal. + /// bool3x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator >= (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } /// Returns the result of a componentwise greater or equal operation on a uint3x2 matrix and a uint value. + /// Left hand side uint3x2 to use to compute componentwise greater or equal. + /// Right hand side uint to use to compute componentwise greater or equal. + /// bool3x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator >= (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a uint value and a uint3x2 matrix. + /// Left hand side uint to use to compute componentwise greater or equal. + /// Right hand side uint3x2 to use to compute componentwise greater or equal. + /// bool3x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator >= (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs >= rhs.c0, lhs >= rhs.c1); } /// Returns the result of a componentwise unary minus operation on a uint3x2 matrix. + /// Value to use when computing the componentwise unary minus. + /// uint3x2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator - (uint3x2 val) { return new uint3x2 (-val.c0, -val.c1); } /// Returns the result of a componentwise unary plus operation on a uint3x2 matrix. + /// Value to use when computing the componentwise unary plus. + /// uint3x2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator + (uint3x2 val) { return new uint3x2 (+val.c0, +val.c1); } /// Returns the result of a componentwise left shift operation on a uint3x2 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator << (uint3x2 x, int n) { return new uint3x2 (x.c0 << n, x.c1 << n); } /// Returns the result of a componentwise right shift operation on a uint3x2 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator >> (uint3x2 x, int n) { return new uint3x2 (x.c0 >> n, x.c1 >> n); } /// Returns the result of a componentwise equality operation on two uint3x2 matrices. + /// Left hand side uint3x2 to use to compute componentwise equality. + /// Right hand side uint3x2 to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on a uint3x2 matrix and a uint value. + /// Left hand side uint3x2 to use to compute componentwise equality. + /// Right hand side uint to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on a uint value and a uint3x2 matrix. + /// Left hand side uint to use to compute componentwise equality. + /// Right hand side uint3x2 to use to compute componentwise equality. + /// bool3x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator == (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two uint3x2 matrices. + /// Left hand side uint3x2 to use to compute componentwise not equal. + /// Right hand side uint3x2 to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (uint3x2 lhs, uint3x2 rhs) { return new bool3x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on a uint3x2 matrix and a uint value. + /// Left hand side uint3x2 to use to compute componentwise not equal. + /// Right hand side uint to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (uint3x2 lhs, uint rhs) { return new bool3x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on a uint value and a uint3x2 matrix. + /// Left hand side uint to use to compute componentwise not equal. + /// Right hand side uint3x2 to use to compute componentwise not equal. + /// bool3x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x2 operator != (uint lhs, uint3x2 rhs) { return new bool3x2 (lhs != rhs.c0, lhs != rhs.c1); } /// Returns the result of a componentwise bitwise not operation on a uint3x2 matrix. + /// Value to use when computing the componentwise bitwise not. + /// uint3x2 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator ~ (uint3x2 val) { return new uint3x2 (~val.c0, ~val.c1); } /// Returns the result of a componentwise bitwise and operation on two uint3x2 matrices. + /// Left hand side uint3x2 to use to compute componentwise bitwise and. + /// Right hand side uint3x2 to use to compute componentwise bitwise and. + /// uint3x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator & (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } /// Returns the result of a componentwise bitwise and operation on a uint3x2 matrix and a uint value. + /// Left hand side uint3x2 to use to compute componentwise bitwise and. + /// Right hand side uint to use to compute componentwise bitwise and. + /// uint3x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator & (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 & rhs, lhs.c1 & rhs); } /// Returns the result of a componentwise bitwise and operation on a uint value and a uint3x2 matrix. + /// Left hand side uint to use to compute componentwise bitwise and. + /// Right hand side uint3x2 to use to compute componentwise bitwise and. + /// uint3x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator & (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs & rhs.c0, lhs & rhs.c1); } /// Returns the result of a componentwise bitwise or operation on two uint3x2 matrices. + /// Left hand side uint3x2 to use to compute componentwise bitwise or. + /// Right hand side uint3x2 to use to compute componentwise bitwise or. + /// uint3x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator | (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } /// Returns the result of a componentwise bitwise or operation on a uint3x2 matrix and a uint value. + /// Left hand side uint3x2 to use to compute componentwise bitwise or. + /// Right hand side uint to use to compute componentwise bitwise or. + /// uint3x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator | (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 | rhs, lhs.c1 | rhs); } /// Returns the result of a componentwise bitwise or operation on a uint value and a uint3x2 matrix. + /// Left hand side uint to use to compute componentwise bitwise or. + /// Right hand side uint3x2 to use to compute componentwise bitwise or. + /// uint3x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator | (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs | rhs.c0, lhs | rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on two uint3x2 matrices. + /// Left hand side uint3x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint3x2 to use to compute componentwise bitwise exclusive or. + /// uint3x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator ^ (uint3x2 lhs, uint3x2 rhs) { return new uint3x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint3x2 matrix and a uint value. + /// Left hand side uint3x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint to use to compute componentwise bitwise exclusive or. + /// uint3x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator ^ (uint3x2 lhs, uint rhs) { return new uint3x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint3x2 matrix. + /// Left hand side uint to use to compute componentwise bitwise exclusive or. + /// Right hand side uint3x2 to use to compute componentwise bitwise exclusive or. + /// uint3x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 operator ^ (uint lhs, uint3x2 rhs) { return new uint3x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } @@ -382,19 +562,25 @@ unsafe public ref uint3 this[int index] } /// Returns true if the uint3x2 is equal to a given uint3x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint3x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the uint3x2 is equal to a given uint3x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is uint3x2 converted && Equals(converted); } /// Returns a hash code for the uint3x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the uint3x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -402,6 +588,9 @@ public override string ToString() } /// Returns a string representation of the uint3x2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -413,10 +602,20 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a uint3x2 matrix constructed from two uint3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// uint3x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 uint3x2(uint3 c0, uint3 c1) { return new uint3x2(c0, c1); } /// Returns a uint3x2 matrix constructed from from 6 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// uint3x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 uint3x2(uint m00, uint m01, uint m10, uint m11, @@ -428,42 +627,62 @@ public static uint3x2 uint3x2(uint m00, uint m01, } /// Returns a uint3x2 matrix constructed from a single uint value by assigning it to every component. + /// uint to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 uint3x2(uint v) { return new uint3x2(v); } /// Returns a uint3x2 matrix constructed from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 uint3x2(bool v) { return new uint3x2(v); } /// Return a uint3x2 matrix constructed from a bool3x2 matrix by componentwise conversion. + /// bool3x2 to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 uint3x2(bool3x2 v) { return new uint3x2(v); } /// Returns a uint3x2 matrix constructed from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 uint3x2(int v) { return new uint3x2(v); } /// Return a uint3x2 matrix constructed from a int3x2 matrix by componentwise conversion. + /// int3x2 to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 uint3x2(int3x2 v) { return new uint3x2(v); } /// Returns a uint3x2 matrix constructed from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 uint3x2(float v) { return new uint3x2(v); } /// Return a uint3x2 matrix constructed from a float3x2 matrix by componentwise conversion. + /// float3x2 to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 uint3x2(float3x2 v) { return new uint3x2(v); } /// Returns a uint3x2 matrix constructed from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 uint3x2(double v) { return new uint3x2(v); } /// Return a uint3x2 matrix constructed from a double3x2 matrix by componentwise conversion. + /// double3x2 to convert to uint3x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x2 uint3x2(double3x2 v) { return new uint3x2(v); } /// Return the uint2x3 transpose of a uint3x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x3 transpose(uint3x2 v) { @@ -472,7 +691,9 @@ public static uint2x3 transpose(uint3x2 v) v.c1.x, v.c1.y, v.c1.z); } - /// Returns a uint hash code of a uint3x2 vector. + /// Returns a uint hash code of a uint3x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(uint3x2 v) { @@ -481,10 +702,12 @@ public static uint hash(uint3x2 v) } /// - /// Returns a uint3 vector hash code of a uint3x2 vector. + /// Returns a uint3 vector hash code of a uint3x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(uint3x2 v) { diff --git a/src/Unity.Mathematics/uint3x3.gen.cs b/src/Unity.Mathematics/uint3x3.gen.cs index 4a75ea25..ae422aa3 100644 --- a/src/Unity.Mathematics/uint3x3.gen.cs +++ b/src/Unity.Mathematics/uint3x3.gen.cs @@ -14,12 +14,16 @@ namespace Unity.Mathematics { + /// A 3x3 matrix of uints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct uint3x3 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public uint3 c0; + /// Column 1 of the matrix. public uint3 c1; + /// Column 2 of the matrix. public uint3 c2; /// uint3x3 identity transform. @@ -29,6 +33,9 @@ public partial struct uint3x3 : System.IEquatable, IFormattable public static readonly uint3x3 zero; /// Constructs a uint3x3 matrix from three uint3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x3(uint3 c0, uint3 c1, uint3 c2) { @@ -38,6 +45,15 @@ public uint3x3(uint3 c0, uint3 c1, uint3 c2) } /// Constructs a uint3x3 matrix from 9 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x3(uint m00, uint m01, uint m02, uint m10, uint m11, uint m12, @@ -49,6 +65,7 @@ public uint3x3(uint m00, uint m01, uint m02, } /// Constructs a uint3x3 matrix from a single uint value by assigning it to every component. + /// uint to convert to uint3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x3(uint v) { @@ -58,6 +75,7 @@ public uint3x3(uint v) } /// Constructs a uint3x3 matrix from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x3(bool v) { @@ -67,6 +85,7 @@ public uint3x3(bool v) } /// Constructs a uint3x3 matrix from a bool3x3 matrix by componentwise conversion. + /// bool3x3 to convert to uint3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x3(bool3x3 v) { @@ -76,6 +95,7 @@ public uint3x3(bool3x3 v) } /// Constructs a uint3x3 matrix from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x3(int v) { @@ -85,6 +105,7 @@ public uint3x3(int v) } /// Constructs a uint3x3 matrix from a int3x3 matrix by componentwise conversion. + /// int3x3 to convert to uint3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x3(int3x3 v) { @@ -94,6 +115,7 @@ public uint3x3(int3x3 v) } /// Constructs a uint3x3 matrix from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x3(float v) { @@ -103,6 +125,7 @@ public uint3x3(float v) } /// Constructs a uint3x3 matrix from a float3x3 matrix by componentwise conversion. + /// float3x3 to convert to uint3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x3(float3x3 v) { @@ -112,6 +135,7 @@ public uint3x3(float3x3 v) } /// Constructs a uint3x3 matrix from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x3(double v) { @@ -121,6 +145,7 @@ public uint3x3(double v) } /// Constructs a uint3x3 matrix from a double3x3 matrix by componentwise conversion. + /// double3x3 to convert to uint3x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x3(double3x3 v) { @@ -131,253 +156,413 @@ public uint3x3(double3x3 v) /// Implicitly converts a single uint value to a uint3x3 matrix by assigning it to every component. + /// uint to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint3x3(uint v) { return new uint3x3(v); } /// Explicitly converts a single bool value to a uint3x3 matrix by converting it to uint and assigning it to every component. + /// bool to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x3(bool v) { return new uint3x3(v); } /// Explicitly converts a bool3x3 matrix to a uint3x3 matrix by componentwise conversion. + /// bool3x3 to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x3(bool3x3 v) { return new uint3x3(v); } /// Explicitly converts a single int value to a uint3x3 matrix by converting it to uint and assigning it to every component. + /// int to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x3(int v) { return new uint3x3(v); } /// Explicitly converts a int3x3 matrix to a uint3x3 matrix by componentwise conversion. + /// int3x3 to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x3(int3x3 v) { return new uint3x3(v); } /// Explicitly converts a single float value to a uint3x3 matrix by converting it to uint and assigning it to every component. + /// float to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x3(float v) { return new uint3x3(v); } /// Explicitly converts a float3x3 matrix to a uint3x3 matrix by componentwise conversion. + /// float3x3 to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x3(float3x3 v) { return new uint3x3(v); } /// Explicitly converts a single double value to a uint3x3 matrix by converting it to uint and assigning it to every component. + /// double to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x3(double v) { return new uint3x3(v); } /// Explicitly converts a double3x3 matrix to a uint3x3 matrix by componentwise conversion. + /// double3x3 to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x3(double3x3 v) { return new uint3x3(v); } /// Returns the result of a componentwise multiplication operation on two uint3x3 matrices. + /// Left hand side uint3x3 to use to compute componentwise multiplication. + /// Right hand side uint3x3 to use to compute componentwise multiplication. + /// uint3x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator * (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } /// Returns the result of a componentwise multiplication operation on a uint3x3 matrix and a uint value. + /// Left hand side uint3x3 to use to compute componentwise multiplication. + /// Right hand side uint to use to compute componentwise multiplication. + /// uint3x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator * (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } /// Returns the result of a componentwise multiplication operation on a uint value and a uint3x3 matrix. + /// Left hand side uint to use to compute componentwise multiplication. + /// Right hand side uint3x3 to use to compute componentwise multiplication. + /// uint3x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator * (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } /// Returns the result of a componentwise addition operation on two uint3x3 matrices. + /// Left hand side uint3x3 to use to compute componentwise addition. + /// Right hand side uint3x3 to use to compute componentwise addition. + /// uint3x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator + (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } /// Returns the result of a componentwise addition operation on a uint3x3 matrix and a uint value. + /// Left hand side uint3x3 to use to compute componentwise addition. + /// Right hand side uint to use to compute componentwise addition. + /// uint3x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator + (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } /// Returns the result of a componentwise addition operation on a uint value and a uint3x3 matrix. + /// Left hand side uint to use to compute componentwise addition. + /// Right hand side uint3x3 to use to compute componentwise addition. + /// uint3x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator + (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } /// Returns the result of a componentwise subtraction operation on two uint3x3 matrices. + /// Left hand side uint3x3 to use to compute componentwise subtraction. + /// Right hand side uint3x3 to use to compute componentwise subtraction. + /// uint3x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator - (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } /// Returns the result of a componentwise subtraction operation on a uint3x3 matrix and a uint value. + /// Left hand side uint3x3 to use to compute componentwise subtraction. + /// Right hand side uint to use to compute componentwise subtraction. + /// uint3x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator - (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } /// Returns the result of a componentwise subtraction operation on a uint value and a uint3x3 matrix. + /// Left hand side uint to use to compute componentwise subtraction. + /// Right hand side uint3x3 to use to compute componentwise subtraction. + /// uint3x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator - (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } /// Returns the result of a componentwise division operation on two uint3x3 matrices. + /// Left hand side uint3x3 to use to compute componentwise division. + /// Right hand side uint3x3 to use to compute componentwise division. + /// uint3x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator / (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } /// Returns the result of a componentwise division operation on a uint3x3 matrix and a uint value. + /// Left hand side uint3x3 to use to compute componentwise division. + /// Right hand side uint to use to compute componentwise division. + /// uint3x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator / (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } /// Returns the result of a componentwise division operation on a uint value and a uint3x3 matrix. + /// Left hand side uint to use to compute componentwise division. + /// Right hand side uint3x3 to use to compute componentwise division. + /// uint3x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator / (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } /// Returns the result of a componentwise modulus operation on two uint3x3 matrices. + /// Left hand side uint3x3 to use to compute componentwise modulus. + /// Right hand side uint3x3 to use to compute componentwise modulus. + /// uint3x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator % (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } /// Returns the result of a componentwise modulus operation on a uint3x3 matrix and a uint value. + /// Left hand side uint3x3 to use to compute componentwise modulus. + /// Right hand side uint to use to compute componentwise modulus. + /// uint3x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator % (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } /// Returns the result of a componentwise modulus operation on a uint value and a uint3x3 matrix. + /// Left hand side uint to use to compute componentwise modulus. + /// Right hand side uint3x3 to use to compute componentwise modulus. + /// uint3x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator % (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } /// Returns the result of a componentwise increment operation on a uint3x3 matrix. + /// Value to use when computing the componentwise increment. + /// uint3x3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator ++ (uint3x3 val) { return new uint3x3 (++val.c0, ++val.c1, ++val.c2); } /// Returns the result of a componentwise decrement operation on a uint3x3 matrix. + /// Value to use when computing the componentwise decrement. + /// uint3x3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator -- (uint3x3 val) { return new uint3x3 (--val.c0, --val.c1, --val.c2); } /// Returns the result of a componentwise less than operation on two uint3x3 matrices. + /// Left hand side uint3x3 to use to compute componentwise less than. + /// Right hand side uint3x3 to use to compute componentwise less than. + /// bool3x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator < (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } /// Returns the result of a componentwise less than operation on a uint3x3 matrix and a uint value. + /// Left hand side uint3x3 to use to compute componentwise less than. + /// Right hand side uint to use to compute componentwise less than. + /// bool3x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator < (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } /// Returns the result of a componentwise less than operation on a uint value and a uint3x3 matrix. + /// Left hand side uint to use to compute componentwise less than. + /// Right hand side uint3x3 to use to compute componentwise less than. + /// bool3x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator < (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } /// Returns the result of a componentwise less or equal operation on two uint3x3 matrices. + /// Left hand side uint3x3 to use to compute componentwise less or equal. + /// Right hand side uint3x3 to use to compute componentwise less or equal. + /// bool3x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator <= (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } /// Returns the result of a componentwise less or equal operation on a uint3x3 matrix and a uint value. + /// Left hand side uint3x3 to use to compute componentwise less or equal. + /// Right hand side uint to use to compute componentwise less or equal. + /// bool3x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator <= (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } /// Returns the result of a componentwise less or equal operation on a uint value and a uint3x3 matrix. + /// Left hand side uint to use to compute componentwise less or equal. + /// Right hand side uint3x3 to use to compute componentwise less or equal. + /// bool3x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator <= (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } /// Returns the result of a componentwise greater than operation on two uint3x3 matrices. + /// Left hand side uint3x3 to use to compute componentwise greater than. + /// Right hand side uint3x3 to use to compute componentwise greater than. + /// bool3x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator > (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } /// Returns the result of a componentwise greater than operation on a uint3x3 matrix and a uint value. + /// Left hand side uint3x3 to use to compute componentwise greater than. + /// Right hand side uint to use to compute componentwise greater than. + /// bool3x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator > (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } /// Returns the result of a componentwise greater than operation on a uint value and a uint3x3 matrix. + /// Left hand side uint to use to compute componentwise greater than. + /// Right hand side uint3x3 to use to compute componentwise greater than. + /// bool3x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator > (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } /// Returns the result of a componentwise greater or equal operation on two uint3x3 matrices. + /// Left hand side uint3x3 to use to compute componentwise greater or equal. + /// Right hand side uint3x3 to use to compute componentwise greater or equal. + /// bool3x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator >= (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } /// Returns the result of a componentwise greater or equal operation on a uint3x3 matrix and a uint value. + /// Left hand side uint3x3 to use to compute componentwise greater or equal. + /// Right hand side uint to use to compute componentwise greater or equal. + /// bool3x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator >= (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a uint value and a uint3x3 matrix. + /// Left hand side uint to use to compute componentwise greater or equal. + /// Right hand side uint3x3 to use to compute componentwise greater or equal. + /// bool3x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator >= (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } /// Returns the result of a componentwise unary minus operation on a uint3x3 matrix. + /// Value to use when computing the componentwise unary minus. + /// uint3x3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator - (uint3x3 val) { return new uint3x3 (-val.c0, -val.c1, -val.c2); } /// Returns the result of a componentwise unary plus operation on a uint3x3 matrix. + /// Value to use when computing the componentwise unary plus. + /// uint3x3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator + (uint3x3 val) { return new uint3x3 (+val.c0, +val.c1, +val.c2); } /// Returns the result of a componentwise left shift operation on a uint3x3 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator << (uint3x3 x, int n) { return new uint3x3 (x.c0 << n, x.c1 << n, x.c2 << n); } /// Returns the result of a componentwise right shift operation on a uint3x3 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator >> (uint3x3 x, int n) { return new uint3x3 (x.c0 >> n, x.c1 >> n, x.c2 >> n); } /// Returns the result of a componentwise equality operation on two uint3x3 matrices. + /// Left hand side uint3x3 to use to compute componentwise equality. + /// Right hand side uint3x3 to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on a uint3x3 matrix and a uint value. + /// Left hand side uint3x3 to use to compute componentwise equality. + /// Right hand side uint to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on a uint value and a uint3x3 matrix. + /// Left hand side uint to use to compute componentwise equality. + /// Right hand side uint3x3 to use to compute componentwise equality. + /// bool3x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator == (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two uint3x3 matrices. + /// Left hand side uint3x3 to use to compute componentwise not equal. + /// Right hand side uint3x3 to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (uint3x3 lhs, uint3x3 rhs) { return new bool3x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on a uint3x3 matrix and a uint value. + /// Left hand side uint3x3 to use to compute componentwise not equal. + /// Right hand side uint to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (uint3x3 lhs, uint rhs) { return new bool3x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on a uint value and a uint3x3 matrix. + /// Left hand side uint to use to compute componentwise not equal. + /// Right hand side uint3x3 to use to compute componentwise not equal. + /// bool3x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x3 operator != (uint lhs, uint3x3 rhs) { return new bool3x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } /// Returns the result of a componentwise bitwise not operation on a uint3x3 matrix. + /// Value to use when computing the componentwise bitwise not. + /// uint3x3 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator ~ (uint3x3 val) { return new uint3x3 (~val.c0, ~val.c1, ~val.c2); } /// Returns the result of a componentwise bitwise and operation on two uint3x3 matrices. + /// Left hand side uint3x3 to use to compute componentwise bitwise and. + /// Right hand side uint3x3 to use to compute componentwise bitwise and. + /// uint3x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator & (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } /// Returns the result of a componentwise bitwise and operation on a uint3x3 matrix and a uint value. + /// Left hand side uint3x3 to use to compute componentwise bitwise and. + /// Right hand side uint to use to compute componentwise bitwise and. + /// uint3x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator & (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } /// Returns the result of a componentwise bitwise and operation on a uint value and a uint3x3 matrix. + /// Left hand side uint to use to compute componentwise bitwise and. + /// Right hand side uint3x3 to use to compute componentwise bitwise and. + /// uint3x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator & (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } /// Returns the result of a componentwise bitwise or operation on two uint3x3 matrices. + /// Left hand side uint3x3 to use to compute componentwise bitwise or. + /// Right hand side uint3x3 to use to compute componentwise bitwise or. + /// uint3x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator | (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } /// Returns the result of a componentwise bitwise or operation on a uint3x3 matrix and a uint value. + /// Left hand side uint3x3 to use to compute componentwise bitwise or. + /// Right hand side uint to use to compute componentwise bitwise or. + /// uint3x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator | (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } /// Returns the result of a componentwise bitwise or operation on a uint value and a uint3x3 matrix. + /// Left hand side uint to use to compute componentwise bitwise or. + /// Right hand side uint3x3 to use to compute componentwise bitwise or. + /// uint3x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator | (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on two uint3x3 matrices. + /// Left hand side uint3x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint3x3 to use to compute componentwise bitwise exclusive or. + /// uint3x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator ^ (uint3x3 lhs, uint3x3 rhs) { return new uint3x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint3x3 matrix and a uint value. + /// Left hand side uint3x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint to use to compute componentwise bitwise exclusive or. + /// uint3x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator ^ (uint3x3 lhs, uint rhs) { return new uint3x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint3x3 matrix. + /// Left hand side uint to use to compute componentwise bitwise exclusive or. + /// Right hand side uint3x3 to use to compute componentwise bitwise exclusive or. + /// uint3x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 operator ^ (uint lhs, uint3x3 rhs) { return new uint3x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } @@ -397,19 +582,25 @@ unsafe public ref uint3 this[int index] } /// Returns true if the uint3x3 is equal to a given uint3x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint3x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the uint3x3 is equal to a given uint3x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is uint3x3 converted && Equals(converted); } /// Returns a hash code for the uint3x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the uint3x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -417,6 +608,9 @@ public override string ToString() } /// Returns a string representation of the uint3x3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -428,10 +622,24 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a uint3x3 matrix constructed from three uint3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// uint3x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 uint3x3(uint3 c0, uint3 c1, uint3 c2) { return new uint3x3(c0, c1, c2); } /// Returns a uint3x3 matrix constructed from from 9 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// uint3x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 uint3x3(uint m00, uint m01, uint m02, uint m10, uint m11, uint m12, @@ -443,42 +651,62 @@ public static uint3x3 uint3x3(uint m00, uint m01, uint m02, } /// Returns a uint3x3 matrix constructed from a single uint value by assigning it to every component. + /// uint to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 uint3x3(uint v) { return new uint3x3(v); } /// Returns a uint3x3 matrix constructed from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 uint3x3(bool v) { return new uint3x3(v); } /// Return a uint3x3 matrix constructed from a bool3x3 matrix by componentwise conversion. + /// bool3x3 to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 uint3x3(bool3x3 v) { return new uint3x3(v); } /// Returns a uint3x3 matrix constructed from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 uint3x3(int v) { return new uint3x3(v); } /// Return a uint3x3 matrix constructed from a int3x3 matrix by componentwise conversion. + /// int3x3 to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 uint3x3(int3x3 v) { return new uint3x3(v); } /// Returns a uint3x3 matrix constructed from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 uint3x3(float v) { return new uint3x3(v); } /// Return a uint3x3 matrix constructed from a float3x3 matrix by componentwise conversion. + /// float3x3 to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 uint3x3(float3x3 v) { return new uint3x3(v); } /// Returns a uint3x3 matrix constructed from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 uint3x3(double v) { return new uint3x3(v); } /// Return a uint3x3 matrix constructed from a double3x3 matrix by componentwise conversion. + /// double3x3 to convert to uint3x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 uint3x3(double3x3 v) { return new uint3x3(v); } /// Return the uint3x3 transpose of a uint3x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x3 transpose(uint3x3 v) { @@ -488,7 +716,9 @@ public static uint3x3 transpose(uint3x3 v) v.c2.x, v.c2.y, v.c2.z); } - /// Returns a uint hash code of a uint3x3 vector. + /// Returns a uint hash code of a uint3x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(uint3x3 v) { @@ -498,10 +728,12 @@ public static uint hash(uint3x3 v) } /// - /// Returns a uint3 vector hash code of a uint3x3 vector. + /// Returns a uint3 vector hash code of a uint3x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(uint3x3 v) { diff --git a/src/Unity.Mathematics/uint3x4.gen.cs b/src/Unity.Mathematics/uint3x4.gen.cs index 79af8c16..84d4bde0 100644 --- a/src/Unity.Mathematics/uint3x4.gen.cs +++ b/src/Unity.Mathematics/uint3x4.gen.cs @@ -14,19 +14,28 @@ namespace Unity.Mathematics { + /// A 3x4 matrix of uints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct uint3x4 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public uint3 c0; + /// Column 1 of the matrix. public uint3 c1; + /// Column 2 of the matrix. public uint3 c2; + /// Column 3 of the matrix. public uint3 c3; /// uint3x4 zero value. public static readonly uint3x4 zero; /// Constructs a uint3x4 matrix from four uint3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x4(uint3 c0, uint3 c1, uint3 c2, uint3 c3) { @@ -37,6 +46,18 @@ public uint3x4(uint3 c0, uint3 c1, uint3 c2, uint3 c3) } /// Constructs a uint3x4 matrix from 12 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x4(uint m00, uint m01, uint m02, uint m03, uint m10, uint m11, uint m12, uint m13, @@ -49,6 +70,7 @@ public uint3x4(uint m00, uint m01, uint m02, uint m03, } /// Constructs a uint3x4 matrix from a single uint value by assigning it to every component. + /// uint to convert to uint3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x4(uint v) { @@ -59,6 +81,7 @@ public uint3x4(uint v) } /// Constructs a uint3x4 matrix from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x4(bool v) { @@ -69,6 +92,7 @@ public uint3x4(bool v) } /// Constructs a uint3x4 matrix from a bool3x4 matrix by componentwise conversion. + /// bool3x4 to convert to uint3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x4(bool3x4 v) { @@ -79,6 +103,7 @@ public uint3x4(bool3x4 v) } /// Constructs a uint3x4 matrix from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x4(int v) { @@ -89,6 +114,7 @@ public uint3x4(int v) } /// Constructs a uint3x4 matrix from a int3x4 matrix by componentwise conversion. + /// int3x4 to convert to uint3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x4(int3x4 v) { @@ -99,6 +125,7 @@ public uint3x4(int3x4 v) } /// Constructs a uint3x4 matrix from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x4(float v) { @@ -109,6 +136,7 @@ public uint3x4(float v) } /// Constructs a uint3x4 matrix from a float3x4 matrix by componentwise conversion. + /// float3x4 to convert to uint3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x4(float3x4 v) { @@ -119,6 +147,7 @@ public uint3x4(float3x4 v) } /// Constructs a uint3x4 matrix from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x4(double v) { @@ -129,6 +158,7 @@ public uint3x4(double v) } /// Constructs a uint3x4 matrix from a double3x4 matrix by componentwise conversion. + /// double3x4 to convert to uint3x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint3x4(double3x4 v) { @@ -140,253 +170,413 @@ public uint3x4(double3x4 v) /// Implicitly converts a single uint value to a uint3x4 matrix by assigning it to every component. + /// uint to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint3x4(uint v) { return new uint3x4(v); } /// Explicitly converts a single bool value to a uint3x4 matrix by converting it to uint and assigning it to every component. + /// bool to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x4(bool v) { return new uint3x4(v); } /// Explicitly converts a bool3x4 matrix to a uint3x4 matrix by componentwise conversion. + /// bool3x4 to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x4(bool3x4 v) { return new uint3x4(v); } /// Explicitly converts a single int value to a uint3x4 matrix by converting it to uint and assigning it to every component. + /// int to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x4(int v) { return new uint3x4(v); } /// Explicitly converts a int3x4 matrix to a uint3x4 matrix by componentwise conversion. + /// int3x4 to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x4(int3x4 v) { return new uint3x4(v); } /// Explicitly converts a single float value to a uint3x4 matrix by converting it to uint and assigning it to every component. + /// float to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x4(float v) { return new uint3x4(v); } /// Explicitly converts a float3x4 matrix to a uint3x4 matrix by componentwise conversion. + /// float3x4 to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x4(float3x4 v) { return new uint3x4(v); } /// Explicitly converts a single double value to a uint3x4 matrix by converting it to uint and assigning it to every component. + /// double to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x4(double v) { return new uint3x4(v); } /// Explicitly converts a double3x4 matrix to a uint3x4 matrix by componentwise conversion. + /// double3x4 to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint3x4(double3x4 v) { return new uint3x4(v); } /// Returns the result of a componentwise multiplication operation on two uint3x4 matrices. + /// Left hand side uint3x4 to use to compute componentwise multiplication. + /// Right hand side uint3x4 to use to compute componentwise multiplication. + /// uint3x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator * (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } /// Returns the result of a componentwise multiplication operation on a uint3x4 matrix and a uint value. + /// Left hand side uint3x4 to use to compute componentwise multiplication. + /// Right hand side uint to use to compute componentwise multiplication. + /// uint3x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator * (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } /// Returns the result of a componentwise multiplication operation on a uint value and a uint3x4 matrix. + /// Left hand side uint to use to compute componentwise multiplication. + /// Right hand side uint3x4 to use to compute componentwise multiplication. + /// uint3x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator * (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } /// Returns the result of a componentwise addition operation on two uint3x4 matrices. + /// Left hand side uint3x4 to use to compute componentwise addition. + /// Right hand side uint3x4 to use to compute componentwise addition. + /// uint3x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator + (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } /// Returns the result of a componentwise addition operation on a uint3x4 matrix and a uint value. + /// Left hand side uint3x4 to use to compute componentwise addition. + /// Right hand side uint to use to compute componentwise addition. + /// uint3x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator + (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } /// Returns the result of a componentwise addition operation on a uint value and a uint3x4 matrix. + /// Left hand side uint to use to compute componentwise addition. + /// Right hand side uint3x4 to use to compute componentwise addition. + /// uint3x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator + (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } /// Returns the result of a componentwise subtraction operation on two uint3x4 matrices. + /// Left hand side uint3x4 to use to compute componentwise subtraction. + /// Right hand side uint3x4 to use to compute componentwise subtraction. + /// uint3x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator - (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } /// Returns the result of a componentwise subtraction operation on a uint3x4 matrix and a uint value. + /// Left hand side uint3x4 to use to compute componentwise subtraction. + /// Right hand side uint to use to compute componentwise subtraction. + /// uint3x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator - (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } /// Returns the result of a componentwise subtraction operation on a uint value and a uint3x4 matrix. + /// Left hand side uint to use to compute componentwise subtraction. + /// Right hand side uint3x4 to use to compute componentwise subtraction. + /// uint3x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator - (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } /// Returns the result of a componentwise division operation on two uint3x4 matrices. + /// Left hand side uint3x4 to use to compute componentwise division. + /// Right hand side uint3x4 to use to compute componentwise division. + /// uint3x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator / (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } /// Returns the result of a componentwise division operation on a uint3x4 matrix and a uint value. + /// Left hand side uint3x4 to use to compute componentwise division. + /// Right hand side uint to use to compute componentwise division. + /// uint3x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator / (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } /// Returns the result of a componentwise division operation on a uint value and a uint3x4 matrix. + /// Left hand side uint to use to compute componentwise division. + /// Right hand side uint3x4 to use to compute componentwise division. + /// uint3x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator / (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } /// Returns the result of a componentwise modulus operation on two uint3x4 matrices. + /// Left hand side uint3x4 to use to compute componentwise modulus. + /// Right hand side uint3x4 to use to compute componentwise modulus. + /// uint3x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator % (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } /// Returns the result of a componentwise modulus operation on a uint3x4 matrix and a uint value. + /// Left hand side uint3x4 to use to compute componentwise modulus. + /// Right hand side uint to use to compute componentwise modulus. + /// uint3x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator % (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } /// Returns the result of a componentwise modulus operation on a uint value and a uint3x4 matrix. + /// Left hand side uint to use to compute componentwise modulus. + /// Right hand side uint3x4 to use to compute componentwise modulus. + /// uint3x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator % (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } /// Returns the result of a componentwise increment operation on a uint3x4 matrix. + /// Value to use when computing the componentwise increment. + /// uint3x4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator ++ (uint3x4 val) { return new uint3x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } /// Returns the result of a componentwise decrement operation on a uint3x4 matrix. + /// Value to use when computing the componentwise decrement. + /// uint3x4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator -- (uint3x4 val) { return new uint3x4 (--val.c0, --val.c1, --val.c2, --val.c3); } /// Returns the result of a componentwise less than operation on two uint3x4 matrices. + /// Left hand side uint3x4 to use to compute componentwise less than. + /// Right hand side uint3x4 to use to compute componentwise less than. + /// bool3x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator < (uint3x4 lhs, uint3x4 rhs) { return new bool3x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } /// Returns the result of a componentwise less than operation on a uint3x4 matrix and a uint value. + /// Left hand side uint3x4 to use to compute componentwise less than. + /// Right hand side uint to use to compute componentwise less than. + /// bool3x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator < (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } /// Returns the result of a componentwise less than operation on a uint value and a uint3x4 matrix. + /// Left hand side uint to use to compute componentwise less than. + /// Right hand side uint3x4 to use to compute componentwise less than. + /// bool3x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator < (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } /// Returns the result of a componentwise less or equal operation on two uint3x4 matrices. + /// Left hand side uint3x4 to use to compute componentwise less or equal. + /// Right hand side uint3x4 to use to compute componentwise less or equal. + /// bool3x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator <= (uint3x4 lhs, uint3x4 rhs) { return new bool3x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } /// Returns the result of a componentwise less or equal operation on a uint3x4 matrix and a uint value. + /// Left hand side uint3x4 to use to compute componentwise less or equal. + /// Right hand side uint to use to compute componentwise less or equal. + /// bool3x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator <= (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } /// Returns the result of a componentwise less or equal operation on a uint value and a uint3x4 matrix. + /// Left hand side uint to use to compute componentwise less or equal. + /// Right hand side uint3x4 to use to compute componentwise less or equal. + /// bool3x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator <= (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } /// Returns the result of a componentwise greater than operation on two uint3x4 matrices. + /// Left hand side uint3x4 to use to compute componentwise greater than. + /// Right hand side uint3x4 to use to compute componentwise greater than. + /// bool3x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator > (uint3x4 lhs, uint3x4 rhs) { return new bool3x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } /// Returns the result of a componentwise greater than operation on a uint3x4 matrix and a uint value. + /// Left hand side uint3x4 to use to compute componentwise greater than. + /// Right hand side uint to use to compute componentwise greater than. + /// bool3x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator > (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } /// Returns the result of a componentwise greater than operation on a uint value and a uint3x4 matrix. + /// Left hand side uint to use to compute componentwise greater than. + /// Right hand side uint3x4 to use to compute componentwise greater than. + /// bool3x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator > (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } /// Returns the result of a componentwise greater or equal operation on two uint3x4 matrices. + /// Left hand side uint3x4 to use to compute componentwise greater or equal. + /// Right hand side uint3x4 to use to compute componentwise greater or equal. + /// bool3x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator >= (uint3x4 lhs, uint3x4 rhs) { return new bool3x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } /// Returns the result of a componentwise greater or equal operation on a uint3x4 matrix and a uint value. + /// Left hand side uint3x4 to use to compute componentwise greater or equal. + /// Right hand side uint to use to compute componentwise greater or equal. + /// bool3x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator >= (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a uint value and a uint3x4 matrix. + /// Left hand side uint to use to compute componentwise greater or equal. + /// Right hand side uint3x4 to use to compute componentwise greater or equal. + /// bool3x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator >= (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } /// Returns the result of a componentwise unary minus operation on a uint3x4 matrix. + /// Value to use when computing the componentwise unary minus. + /// uint3x4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator - (uint3x4 val) { return new uint3x4 (-val.c0, -val.c1, -val.c2, -val.c3); } /// Returns the result of a componentwise unary plus operation on a uint3x4 matrix. + /// Value to use when computing the componentwise unary plus. + /// uint3x4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator + (uint3x4 val) { return new uint3x4 (+val.c0, +val.c1, +val.c2, +val.c3); } /// Returns the result of a componentwise left shift operation on a uint3x4 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator << (uint3x4 x, int n) { return new uint3x4 (x.c0 << n, x.c1 << n, x.c2 << n, x.c3 << n); } /// Returns the result of a componentwise right shift operation on a uint3x4 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator >> (uint3x4 x, int n) { return new uint3x4 (x.c0 >> n, x.c1 >> n, x.c2 >> n, x.c3 >> n); } /// Returns the result of a componentwise equality operation on two uint3x4 matrices. + /// Left hand side uint3x4 to use to compute componentwise equality. + /// Right hand side uint3x4 to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (uint3x4 lhs, uint3x4 rhs) { return new bool3x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on a uint3x4 matrix and a uint value. + /// Left hand side uint3x4 to use to compute componentwise equality. + /// Right hand side uint to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on a uint value and a uint3x4 matrix. + /// Left hand side uint to use to compute componentwise equality. + /// Right hand side uint3x4 to use to compute componentwise equality. + /// bool3x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator == (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two uint3x4 matrices. + /// Left hand side uint3x4 to use to compute componentwise not equal. + /// Right hand side uint3x4 to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (uint3x4 lhs, uint3x4 rhs) { return new bool3x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on a uint3x4 matrix and a uint value. + /// Left hand side uint3x4 to use to compute componentwise not equal. + /// Right hand side uint to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (uint3x4 lhs, uint rhs) { return new bool3x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on a uint value and a uint3x4 matrix. + /// Left hand side uint to use to compute componentwise not equal. + /// Right hand side uint3x4 to use to compute componentwise not equal. + /// bool3x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool3x4 operator != (uint lhs, uint3x4 rhs) { return new bool3x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } /// Returns the result of a componentwise bitwise not operation on a uint3x4 matrix. + /// Value to use when computing the componentwise bitwise not. + /// uint3x4 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator ~ (uint3x4 val) { return new uint3x4 (~val.c0, ~val.c1, ~val.c2, ~val.c3); } /// Returns the result of a componentwise bitwise and operation on two uint3x4 matrices. + /// Left hand side uint3x4 to use to compute componentwise bitwise and. + /// Right hand side uint3x4 to use to compute componentwise bitwise and. + /// uint3x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator & (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } /// Returns the result of a componentwise bitwise and operation on a uint3x4 matrix and a uint value. + /// Left hand side uint3x4 to use to compute componentwise bitwise and. + /// Right hand side uint to use to compute componentwise bitwise and. + /// uint3x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator & (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } /// Returns the result of a componentwise bitwise and operation on a uint value and a uint3x4 matrix. + /// Left hand side uint to use to compute componentwise bitwise and. + /// Right hand side uint3x4 to use to compute componentwise bitwise and. + /// uint3x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator & (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } /// Returns the result of a componentwise bitwise or operation on two uint3x4 matrices. + /// Left hand side uint3x4 to use to compute componentwise bitwise or. + /// Right hand side uint3x4 to use to compute componentwise bitwise or. + /// uint3x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator | (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } /// Returns the result of a componentwise bitwise or operation on a uint3x4 matrix and a uint value. + /// Left hand side uint3x4 to use to compute componentwise bitwise or. + /// Right hand side uint to use to compute componentwise bitwise or. + /// uint3x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator | (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } /// Returns the result of a componentwise bitwise or operation on a uint value and a uint3x4 matrix. + /// Left hand side uint to use to compute componentwise bitwise or. + /// Right hand side uint3x4 to use to compute componentwise bitwise or. + /// uint3x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator | (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on two uint3x4 matrices. + /// Left hand side uint3x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint3x4 to use to compute componentwise bitwise exclusive or. + /// uint3x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator ^ (uint3x4 lhs, uint3x4 rhs) { return new uint3x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint3x4 matrix and a uint value. + /// Left hand side uint3x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint to use to compute componentwise bitwise exclusive or. + /// uint3x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator ^ (uint3x4 lhs, uint rhs) { return new uint3x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint3x4 matrix. + /// Left hand side uint to use to compute componentwise bitwise exclusive or. + /// Right hand side uint3x4 to use to compute componentwise bitwise exclusive or. + /// uint3x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 operator ^ (uint lhs, uint3x4 rhs) { return new uint3x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } @@ -406,19 +596,25 @@ unsafe public ref uint3 this[int index] } /// Returns true if the uint3x4 is equal to a given uint3x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint3x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the uint3x4 is equal to a given uint3x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is uint3x4 converted && Equals(converted); } /// Returns a hash code for the uint3x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the uint3x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -426,6 +622,9 @@ public override string ToString() } /// Returns a string representation of the uint3x4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -437,10 +636,28 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a uint3x4 matrix constructed from four uint3 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// uint3x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 uint3x4(uint3 c0, uint3 c1, uint3 c2, uint3 c3) { return new uint3x4(c0, c1, c2, c3); } /// Returns a uint3x4 matrix constructed from from 12 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// uint3x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 uint3x4(uint m00, uint m01, uint m02, uint m03, uint m10, uint m11, uint m12, uint m13, @@ -452,42 +669,62 @@ public static uint3x4 uint3x4(uint m00, uint m01, uint m02, uint m03, } /// Returns a uint3x4 matrix constructed from a single uint value by assigning it to every component. + /// uint to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 uint3x4(uint v) { return new uint3x4(v); } /// Returns a uint3x4 matrix constructed from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 uint3x4(bool v) { return new uint3x4(v); } /// Return a uint3x4 matrix constructed from a bool3x4 matrix by componentwise conversion. + /// bool3x4 to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 uint3x4(bool3x4 v) { return new uint3x4(v); } /// Returns a uint3x4 matrix constructed from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 uint3x4(int v) { return new uint3x4(v); } /// Return a uint3x4 matrix constructed from a int3x4 matrix by componentwise conversion. + /// int3x4 to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 uint3x4(int3x4 v) { return new uint3x4(v); } /// Returns a uint3x4 matrix constructed from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 uint3x4(float v) { return new uint3x4(v); } /// Return a uint3x4 matrix constructed from a float3x4 matrix by componentwise conversion. + /// float3x4 to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 uint3x4(float3x4 v) { return new uint3x4(v); } /// Returns a uint3x4 matrix constructed from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 uint3x4(double v) { return new uint3x4(v); } /// Return a uint3x4 matrix constructed from a double3x4 matrix by componentwise conversion. + /// double3x4 to convert to uint3x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 uint3x4(double3x4 v) { return new uint3x4(v); } /// Return the uint4x3 transpose of a uint3x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 transpose(uint3x4 v) { @@ -498,7 +735,9 @@ public static uint4x3 transpose(uint3x4 v) v.c3.x, v.c3.y, v.c3.z); } - /// Returns a uint hash code of a uint3x4 vector. + /// Returns a uint hash code of a uint3x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(uint3x4 v) { @@ -509,10 +748,12 @@ public static uint hash(uint3x4 v) } /// - /// Returns a uint3 vector hash code of a uint3x4 vector. + /// Returns a uint3 vector hash code of a uint3x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint3 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3 hashwide(uint3x4 v) { diff --git a/src/Unity.Mathematics/uint4.gen.cs b/src/Unity.Mathematics/uint4.gen.cs index e925058a..126a9ebb 100644 --- a/src/Unity.Mathematics/uint4.gen.cs +++ b/src/Unity.Mathematics/uint4.gen.cs @@ -15,20 +15,29 @@ namespace Unity.Mathematics { + /// A 4 component vector of uints. [DebuggerTypeProxy(typeof(uint4.DebuggerProxy))] [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct uint4 : System.IEquatable, IFormattable { + /// x component of the vector. public uint x; + /// y component of the vector. public uint y; + /// z component of the vector. public uint z; + /// w component of the vector. public uint w; /// uint4 zero value. public static readonly uint4 zero; /// Constructs a uint4 vector from four uint values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(uint x, uint y, uint z, uint w) { @@ -39,6 +48,9 @@ public uint4(uint x, uint y, uint z, uint w) } /// Constructs a uint4 vector from two uint values and a uint2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's zw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(uint x, uint y, uint2 zw) { @@ -49,6 +61,9 @@ public uint4(uint x, uint y, uint2 zw) } /// Constructs a uint4 vector from a uint value, a uint2 vector and a uint value. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(uint x, uint2 yz, uint w) { @@ -59,6 +74,8 @@ public uint4(uint x, uint2 yz, uint w) } /// Constructs a uint4 vector from a uint value and a uint3 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yzw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(uint x, uint3 yzw) { @@ -69,6 +86,9 @@ public uint4(uint x, uint3 yzw) } /// Constructs a uint4 vector from a uint2 vector and two uint values. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(uint2 xy, uint z, uint w) { @@ -79,6 +99,8 @@ public uint4(uint2 xy, uint z, uint w) } /// Constructs a uint4 vector from two uint2 vectors. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's zw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(uint2 xy, uint2 zw) { @@ -89,6 +111,8 @@ public uint4(uint2 xy, uint2 zw) } /// Constructs a uint4 vector from a uint3 vector and a uint value. + /// The constructed vector's xyz components will be set to this value. + /// The constructed vector's w component will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(uint3 xyz, uint w) { @@ -99,6 +123,7 @@ public uint4(uint3 xyz, uint w) } /// Constructs a uint4 vector from a uint4 vector. + /// The constructed vector's xyzw components will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(uint4 xyzw) { @@ -109,6 +134,7 @@ public uint4(uint4 xyzw) } /// Constructs a uint4 vector from a single uint value by assigning it to every component. + /// uint to convert to uint4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(uint v) { @@ -119,6 +145,7 @@ public uint4(uint v) } /// Constructs a uint4 vector from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(bool v) { @@ -129,6 +156,7 @@ public uint4(bool v) } /// Constructs a uint4 vector from a bool4 vector by componentwise conversion. + /// bool4 to convert to uint4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(bool4 v) { @@ -139,6 +167,7 @@ public uint4(bool4 v) } /// Constructs a uint4 vector from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(int v) { @@ -149,6 +178,7 @@ public uint4(int v) } /// Constructs a uint4 vector from a int4 vector by componentwise conversion. + /// int4 to convert to uint4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(int4 v) { @@ -159,6 +189,7 @@ public uint4(int4 v) } /// Constructs a uint4 vector from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(float v) { @@ -169,6 +200,7 @@ public uint4(float v) } /// Constructs a uint4 vector from a float4 vector by componentwise conversion. + /// float4 to convert to uint4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(float4 v) { @@ -179,6 +211,7 @@ public uint4(float4 v) } /// Constructs a uint4 vector from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(double v) { @@ -189,6 +222,7 @@ public uint4(double v) } /// Constructs a uint4 vector from a double4 vector by componentwise conversion. + /// double4 to convert to uint4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4(double4 v) { @@ -200,259 +234,420 @@ public uint4(double4 v) /// Implicitly converts a single uint value to a uint4 vector by assigning it to every component. + /// uint to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint4(uint v) { return new uint4(v); } /// Explicitly converts a single bool value to a uint4 vector by converting it to uint and assigning it to every component. + /// bool to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4(bool v) { return new uint4(v); } /// Explicitly converts a bool4 vector to a uint4 vector by componentwise conversion. + /// bool4 to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4(bool4 v) { return new uint4(v); } /// Explicitly converts a single int value to a uint4 vector by converting it to uint and assigning it to every component. + /// int to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4(int v) { return new uint4(v); } /// Explicitly converts a int4 vector to a uint4 vector by componentwise conversion. + /// int4 to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4(int4 v) { return new uint4(v); } /// Explicitly converts a single float value to a uint4 vector by converting it to uint and assigning it to every component. + /// float to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4(float v) { return new uint4(v); } /// Explicitly converts a float4 vector to a uint4 vector by componentwise conversion. + /// float4 to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4(float4 v) { return new uint4(v); } /// Explicitly converts a single double value to a uint4 vector by converting it to uint and assigning it to every component. + /// double to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4(double v) { return new uint4(v); } /// Explicitly converts a double4 vector to a uint4 vector by componentwise conversion. + /// double4 to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4(double4 v) { return new uint4(v); } /// Returns the result of a componentwise multiplication operation on two uint4 vectors. + /// Left hand side uint4 to use to compute componentwise multiplication. + /// Right hand side uint4 to use to compute componentwise multiplication. + /// uint4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator * (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } /// Returns the result of a componentwise multiplication operation on a uint4 vector and a uint value. + /// Left hand side uint4 to use to compute componentwise multiplication. + /// Right hand side uint to use to compute componentwise multiplication. + /// uint4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator * (uint4 lhs, uint rhs) { return new uint4 (lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } /// Returns the result of a componentwise multiplication operation on a uint value and a uint4 vector. + /// Left hand side uint to use to compute componentwise multiplication. + /// Right hand side uint4 to use to compute componentwise multiplication. + /// uint4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator * (uint lhs, uint4 rhs) { return new uint4 (lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } /// Returns the result of a componentwise addition operation on two uint4 vectors. + /// Left hand side uint4 to use to compute componentwise addition. + /// Right hand side uint4 to use to compute componentwise addition. + /// uint4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator + (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } /// Returns the result of a componentwise addition operation on a uint4 vector and a uint value. + /// Left hand side uint4 to use to compute componentwise addition. + /// Right hand side uint to use to compute componentwise addition. + /// uint4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator + (uint4 lhs, uint rhs) { return new uint4 (lhs.x + rhs, lhs.y + rhs, lhs.z + rhs, lhs.w + rhs); } /// Returns the result of a componentwise addition operation on a uint value and a uint4 vector. + /// Left hand side uint to use to compute componentwise addition. + /// Right hand side uint4 to use to compute componentwise addition. + /// uint4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator + (uint lhs, uint4 rhs) { return new uint4 (lhs + rhs.x, lhs + rhs.y, lhs + rhs.z, lhs + rhs.w); } /// Returns the result of a componentwise subtraction operation on two uint4 vectors. + /// Left hand side uint4 to use to compute componentwise subtraction. + /// Right hand side uint4 to use to compute componentwise subtraction. + /// uint4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator - (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } /// Returns the result of a componentwise subtraction operation on a uint4 vector and a uint value. + /// Left hand side uint4 to use to compute componentwise subtraction. + /// Right hand side uint to use to compute componentwise subtraction. + /// uint4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator - (uint4 lhs, uint rhs) { return new uint4 (lhs.x - rhs, lhs.y - rhs, lhs.z - rhs, lhs.w - rhs); } /// Returns the result of a componentwise subtraction operation on a uint value and a uint4 vector. + /// Left hand side uint to use to compute componentwise subtraction. + /// Right hand side uint4 to use to compute componentwise subtraction. + /// uint4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator - (uint lhs, uint4 rhs) { return new uint4 (lhs - rhs.x, lhs - rhs.y, lhs - rhs.z, lhs - rhs.w); } /// Returns the result of a componentwise division operation on two uint4 vectors. + /// Left hand side uint4 to use to compute componentwise division. + /// Right hand side uint4 to use to compute componentwise division. + /// uint4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator / (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x / rhs.x, lhs.y / rhs.y, lhs.z / rhs.z, lhs.w / rhs.w); } /// Returns the result of a componentwise division operation on a uint4 vector and a uint value. + /// Left hand side uint4 to use to compute componentwise division. + /// Right hand side uint to use to compute componentwise division. + /// uint4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator / (uint4 lhs, uint rhs) { return new uint4 (lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } /// Returns the result of a componentwise division operation on a uint value and a uint4 vector. + /// Left hand side uint to use to compute componentwise division. + /// Right hand side uint4 to use to compute componentwise division. + /// uint4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator / (uint lhs, uint4 rhs) { return new uint4 (lhs / rhs.x, lhs / rhs.y, lhs / rhs.z, lhs / rhs.w); } /// Returns the result of a componentwise modulus operation on two uint4 vectors. + /// Left hand side uint4 to use to compute componentwise modulus. + /// Right hand side uint4 to use to compute componentwise modulus. + /// uint4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator % (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x % rhs.x, lhs.y % rhs.y, lhs.z % rhs.z, lhs.w % rhs.w); } /// Returns the result of a componentwise modulus operation on a uint4 vector and a uint value. + /// Left hand side uint4 to use to compute componentwise modulus. + /// Right hand side uint to use to compute componentwise modulus. + /// uint4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator % (uint4 lhs, uint rhs) { return new uint4 (lhs.x % rhs, lhs.y % rhs, lhs.z % rhs, lhs.w % rhs); } /// Returns the result of a componentwise modulus operation on a uint value and a uint4 vector. + /// Left hand side uint to use to compute componentwise modulus. + /// Right hand side uint4 to use to compute componentwise modulus. + /// uint4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator % (uint lhs, uint4 rhs) { return new uint4 (lhs % rhs.x, lhs % rhs.y, lhs % rhs.z, lhs % rhs.w); } /// Returns the result of a componentwise increment operation on a uint4 vector. + /// Value to use when computing the componentwise increment. + /// uint4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator ++ (uint4 val) { return new uint4 (++val.x, ++val.y, ++val.z, ++val.w); } /// Returns the result of a componentwise decrement operation on a uint4 vector. + /// Value to use when computing the componentwise decrement. + /// uint4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator -- (uint4 val) { return new uint4 (--val.x, --val.y, --val.z, --val.w); } /// Returns the result of a componentwise less than operation on two uint4 vectors. + /// Left hand side uint4 to use to compute componentwise less than. + /// Right hand side uint4 to use to compute componentwise less than. + /// bool4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x < rhs.x, lhs.y < rhs.y, lhs.z < rhs.z, lhs.w < rhs.w); } /// Returns the result of a componentwise less than operation on a uint4 vector and a uint value. + /// Left hand side uint4 to use to compute componentwise less than. + /// Right hand side uint to use to compute componentwise less than. + /// bool4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (uint4 lhs, uint rhs) { return new bool4 (lhs.x < rhs, lhs.y < rhs, lhs.z < rhs, lhs.w < rhs); } /// Returns the result of a componentwise less than operation on a uint value and a uint4 vector. + /// Left hand side uint to use to compute componentwise less than. + /// Right hand side uint4 to use to compute componentwise less than. + /// bool4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator < (uint lhs, uint4 rhs) { return new bool4 (lhs < rhs.x, lhs < rhs.y, lhs < rhs.z, lhs < rhs.w); } /// Returns the result of a componentwise less or equal operation on two uint4 vectors. + /// Left hand side uint4 to use to compute componentwise less or equal. + /// Right hand side uint4 to use to compute componentwise less or equal. + /// bool4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x <= rhs.x, lhs.y <= rhs.y, lhs.z <= rhs.z, lhs.w <= rhs.w); } /// Returns the result of a componentwise less or equal operation on a uint4 vector and a uint value. + /// Left hand side uint4 to use to compute componentwise less or equal. + /// Right hand side uint to use to compute componentwise less or equal. + /// bool4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (uint4 lhs, uint rhs) { return new bool4 (lhs.x <= rhs, lhs.y <= rhs, lhs.z <= rhs, lhs.w <= rhs); } /// Returns the result of a componentwise less or equal operation on a uint value and a uint4 vector. + /// Left hand side uint to use to compute componentwise less or equal. + /// Right hand side uint4 to use to compute componentwise less or equal. + /// bool4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator <= (uint lhs, uint4 rhs) { return new bool4 (lhs <= rhs.x, lhs <= rhs.y, lhs <= rhs.z, lhs <= rhs.w); } /// Returns the result of a componentwise greater than operation on two uint4 vectors. + /// Left hand side uint4 to use to compute componentwise greater than. + /// Right hand side uint4 to use to compute componentwise greater than. + /// bool4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x > rhs.x, lhs.y > rhs.y, lhs.z > rhs.z, lhs.w > rhs.w); } /// Returns the result of a componentwise greater than operation on a uint4 vector and a uint value. + /// Left hand side uint4 to use to compute componentwise greater than. + /// Right hand side uint to use to compute componentwise greater than. + /// bool4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (uint4 lhs, uint rhs) { return new bool4 (lhs.x > rhs, lhs.y > rhs, lhs.z > rhs, lhs.w > rhs); } /// Returns the result of a componentwise greater than operation on a uint value and a uint4 vector. + /// Left hand side uint to use to compute componentwise greater than. + /// Right hand side uint4 to use to compute componentwise greater than. + /// bool4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator > (uint lhs, uint4 rhs) { return new bool4 (lhs > rhs.x, lhs > rhs.y, lhs > rhs.z, lhs > rhs.w); } /// Returns the result of a componentwise greater or equal operation on two uint4 vectors. + /// Left hand side uint4 to use to compute componentwise greater or equal. + /// Right hand side uint4 to use to compute componentwise greater or equal. + /// bool4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x >= rhs.x, lhs.y >= rhs.y, lhs.z >= rhs.z, lhs.w >= rhs.w); } /// Returns the result of a componentwise greater or equal operation on a uint4 vector and a uint value. + /// Left hand side uint4 to use to compute componentwise greater or equal. + /// Right hand side uint to use to compute componentwise greater or equal. + /// bool4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (uint4 lhs, uint rhs) { return new bool4 (lhs.x >= rhs, lhs.y >= rhs, lhs.z >= rhs, lhs.w >= rhs); } /// Returns the result of a componentwise greater or equal operation on a uint value and a uint4 vector. + /// Left hand side uint to use to compute componentwise greater or equal. + /// Right hand side uint4 to use to compute componentwise greater or equal. + /// bool4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator >= (uint lhs, uint4 rhs) { return new bool4 (lhs >= rhs.x, lhs >= rhs.y, lhs >= rhs.z, lhs >= rhs.w); } /// Returns the result of a componentwise unary minus operation on a uint4 vector. + /// Value to use when computing the componentwise unary minus. + /// uint4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator - (uint4 val) { return new uint4 ((uint)-val.x, (uint)-val.y, (uint)-val.z, (uint)-val.w); } /// Returns the result of a componentwise unary plus operation on a uint4 vector. + /// Value to use when computing the componentwise unary plus. + /// uint4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator + (uint4 val) { return new uint4 (+val.x, +val.y, +val.z, +val.w); } /// Returns the result of a componentwise left shift operation on a uint4 vector by a number of bits specified by a single int. + /// The vector to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator << (uint4 x, int n) { return new uint4 (x.x << n, x.y << n, x.z << n, x.w << n); } /// Returns the result of a componentwise right shift operation on a uint4 vector by a number of bits specified by a single int. + /// The vector to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator >> (uint4 x, int n) { return new uint4 (x.x >> n, x.y >> n, x.z >> n, x.w >> n); } /// Returns the result of a componentwise equality operation on two uint4 vectors. + /// Left hand side uint4 to use to compute componentwise equality. + /// Right hand side uint4 to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x == rhs.x, lhs.y == rhs.y, lhs.z == rhs.z, lhs.w == rhs.w); } /// Returns the result of a componentwise equality operation on a uint4 vector and a uint value. + /// Left hand side uint4 to use to compute componentwise equality. + /// Right hand side uint to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (uint4 lhs, uint rhs) { return new bool4 (lhs.x == rhs, lhs.y == rhs, lhs.z == rhs, lhs.w == rhs); } /// Returns the result of a componentwise equality operation on a uint value and a uint4 vector. + /// Left hand side uint to use to compute componentwise equality. + /// Right hand side uint4 to use to compute componentwise equality. + /// bool4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator == (uint lhs, uint4 rhs) { return new bool4 (lhs == rhs.x, lhs == rhs.y, lhs == rhs.z, lhs == rhs.w); } /// Returns the result of a componentwise not equal operation on two uint4 vectors. + /// Left hand side uint4 to use to compute componentwise not equal. + /// Right hand side uint4 to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (uint4 lhs, uint4 rhs) { return new bool4 (lhs.x != rhs.x, lhs.y != rhs.y, lhs.z != rhs.z, lhs.w != rhs.w); } /// Returns the result of a componentwise not equal operation on a uint4 vector and a uint value. + /// Left hand side uint4 to use to compute componentwise not equal. + /// Right hand side uint to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (uint4 lhs, uint rhs) { return new bool4 (lhs.x != rhs, lhs.y != rhs, lhs.z != rhs, lhs.w != rhs); } /// Returns the result of a componentwise not equal operation on a uint value and a uint4 vector. + /// Left hand side uint to use to compute componentwise not equal. + /// Right hand side uint4 to use to compute componentwise not equal. + /// bool4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4 operator != (uint lhs, uint4 rhs) { return new bool4 (lhs != rhs.x, lhs != rhs.y, lhs != rhs.z, lhs != rhs.w); } /// Returns the result of a componentwise bitwise not operation on a uint4 vector. + /// Value to use when computing the componentwise bitwise not. + /// uint4 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator ~ (uint4 val) { return new uint4 (~val.x, ~val.y, ~val.z, ~val.w); } /// Returns the result of a componentwise bitwise and operation on two uint4 vectors. + /// Left hand side uint4 to use to compute componentwise bitwise and. + /// Right hand side uint4 to use to compute componentwise bitwise and. + /// uint4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator & (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x & rhs.x, lhs.y & rhs.y, lhs.z & rhs.z, lhs.w & rhs.w); } /// Returns the result of a componentwise bitwise and operation on a uint4 vector and a uint value. + /// Left hand side uint4 to use to compute componentwise bitwise and. + /// Right hand side uint to use to compute componentwise bitwise and. + /// uint4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator & (uint4 lhs, uint rhs) { return new uint4 (lhs.x & rhs, lhs.y & rhs, lhs.z & rhs, lhs.w & rhs); } /// Returns the result of a componentwise bitwise and operation on a uint value and a uint4 vector. + /// Left hand side uint to use to compute componentwise bitwise and. + /// Right hand side uint4 to use to compute componentwise bitwise and. + /// uint4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator & (uint lhs, uint4 rhs) { return new uint4 (lhs & rhs.x, lhs & rhs.y, lhs & rhs.z, lhs & rhs.w); } /// Returns the result of a componentwise bitwise or operation on two uint4 vectors. + /// Left hand side uint4 to use to compute componentwise bitwise or. + /// Right hand side uint4 to use to compute componentwise bitwise or. + /// uint4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator | (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x | rhs.x, lhs.y | rhs.y, lhs.z | rhs.z, lhs.w | rhs.w); } /// Returns the result of a componentwise bitwise or operation on a uint4 vector and a uint value. + /// Left hand side uint4 to use to compute componentwise bitwise or. + /// Right hand side uint to use to compute componentwise bitwise or. + /// uint4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator | (uint4 lhs, uint rhs) { return new uint4 (lhs.x | rhs, lhs.y | rhs, lhs.z | rhs, lhs.w | rhs); } /// Returns the result of a componentwise bitwise or operation on a uint value and a uint4 vector. + /// Left hand side uint to use to compute componentwise bitwise or. + /// Right hand side uint4 to use to compute componentwise bitwise or. + /// uint4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator | (uint lhs, uint4 rhs) { return new uint4 (lhs | rhs.x, lhs | rhs.y, lhs | rhs.z, lhs | rhs.w); } /// Returns the result of a componentwise bitwise exclusive or operation on two uint4 vectors. + /// Left hand side uint4 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint4 to use to compute componentwise bitwise exclusive or. + /// uint4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator ^ (uint4 lhs, uint4 rhs) { return new uint4 (lhs.x ^ rhs.x, lhs.y ^ rhs.y, lhs.z ^ rhs.z, lhs.w ^ rhs.w); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint4 vector and a uint value. + /// Left hand side uint4 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint to use to compute componentwise bitwise exclusive or. + /// uint4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator ^ (uint4 lhs, uint rhs) { return new uint4 (lhs.x ^ rhs, lhs.y ^ rhs, lhs.z ^ rhs, lhs.w ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint4 vector. + /// Left hand side uint to use to compute componentwise bitwise exclusive or. + /// Right hand side uint4 to use to compute componentwise bitwise exclusive or. + /// uint4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 operator ^ (uint lhs, uint4 rhs) { return new uint4 (lhs ^ rhs.x, lhs ^ rhs.y, lhs ^ rhs.z, lhs ^ rhs.w); } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxx { @@ -461,6 +656,7 @@ public uint4 xxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxy { @@ -469,6 +665,7 @@ public uint4 xxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxz { @@ -477,6 +674,7 @@ public uint4 xxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxxw { @@ -485,6 +683,7 @@ public uint4 xxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyx { @@ -493,6 +692,7 @@ public uint4 xxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyy { @@ -501,6 +701,7 @@ public uint4 xxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyz { @@ -509,6 +710,7 @@ public uint4 xxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxyw { @@ -517,6 +719,7 @@ public uint4 xxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxzx { @@ -525,6 +728,7 @@ public uint4 xxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxzy { @@ -533,6 +737,7 @@ public uint4 xxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxzz { @@ -541,6 +746,7 @@ public uint4 xxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxzw { @@ -549,6 +755,7 @@ public uint4 xxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxwx { @@ -557,6 +764,7 @@ public uint4 xxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxwy { @@ -565,6 +773,7 @@ public uint4 xxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxwz { @@ -573,6 +782,7 @@ public uint4 xxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xxww { @@ -581,6 +791,7 @@ public uint4 xxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxx { @@ -589,6 +800,7 @@ public uint4 xyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxy { @@ -597,6 +809,7 @@ public uint4 xyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxz { @@ -605,6 +818,7 @@ public uint4 xyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyxw { @@ -613,6 +827,7 @@ public uint4 xyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyx { @@ -621,6 +836,7 @@ public uint4 xyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyy { @@ -629,6 +845,7 @@ public uint4 xyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyz { @@ -637,6 +854,7 @@ public uint4 xyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyyw { @@ -645,6 +863,7 @@ public uint4 xyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyzx { @@ -653,6 +872,7 @@ public uint4 xyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyzy { @@ -661,6 +881,7 @@ public uint4 xyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyzz { @@ -669,6 +890,7 @@ public uint4 xyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyzw { @@ -679,6 +901,7 @@ public uint4 xyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xywx { @@ -687,6 +910,7 @@ public uint4 xywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xywy { @@ -695,6 +919,7 @@ public uint4 xywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xywz { @@ -705,6 +930,7 @@ public uint4 xywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xyww { @@ -713,6 +939,7 @@ public uint4 xyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzxx { @@ -721,6 +948,7 @@ public uint4 xzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzxy { @@ -729,6 +957,7 @@ public uint4 xzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzxz { @@ -737,6 +966,7 @@ public uint4 xzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzxw { @@ -745,6 +975,7 @@ public uint4 xzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzyx { @@ -753,6 +984,7 @@ public uint4 xzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzyy { @@ -761,6 +993,7 @@ public uint4 xzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzyz { @@ -769,6 +1002,7 @@ public uint4 xzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzyw { @@ -779,6 +1013,7 @@ public uint4 xzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzzx { @@ -787,6 +1022,7 @@ public uint4 xzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzzy { @@ -795,6 +1031,7 @@ public uint4 xzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzzz { @@ -803,6 +1040,7 @@ public uint4 xzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzzw { @@ -811,6 +1049,7 @@ public uint4 xzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzwx { @@ -819,6 +1058,7 @@ public uint4 xzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzwy { @@ -829,6 +1069,7 @@ public uint4 xzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzwz { @@ -837,6 +1078,7 @@ public uint4 xzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xzww { @@ -845,6 +1087,7 @@ public uint4 xzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwxx { @@ -853,6 +1096,7 @@ public uint4 xwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwxy { @@ -861,6 +1105,7 @@ public uint4 xwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwxz { @@ -869,6 +1114,7 @@ public uint4 xwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwxw { @@ -877,6 +1123,7 @@ public uint4 xwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwyx { @@ -885,6 +1132,7 @@ public uint4 xwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwyy { @@ -893,6 +1141,7 @@ public uint4 xwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwyz { @@ -903,6 +1152,7 @@ public uint4 xwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwyw { @@ -911,6 +1161,7 @@ public uint4 xwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwzx { @@ -919,6 +1170,7 @@ public uint4 xwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwzy { @@ -929,6 +1181,7 @@ public uint4 xwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwzz { @@ -937,6 +1190,7 @@ public uint4 xwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwzw { @@ -945,6 +1199,7 @@ public uint4 xwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwwx { @@ -953,6 +1208,7 @@ public uint4 xwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwwy { @@ -961,6 +1217,7 @@ public uint4 xwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwwz { @@ -969,6 +1226,7 @@ public uint4 xwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 xwww { @@ -977,6 +1235,7 @@ public uint4 xwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxx { @@ -985,6 +1244,7 @@ public uint4 yxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxy { @@ -993,6 +1253,7 @@ public uint4 yxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxz { @@ -1001,6 +1262,7 @@ public uint4 yxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxxw { @@ -1009,6 +1271,7 @@ public uint4 yxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyx { @@ -1017,6 +1280,7 @@ public uint4 yxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyy { @@ -1025,6 +1289,7 @@ public uint4 yxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyz { @@ -1033,6 +1298,7 @@ public uint4 yxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxyw { @@ -1041,6 +1307,7 @@ public uint4 yxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxzx { @@ -1049,6 +1316,7 @@ public uint4 yxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxzy { @@ -1057,6 +1325,7 @@ public uint4 yxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxzz { @@ -1065,6 +1334,7 @@ public uint4 yxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxzw { @@ -1075,6 +1345,7 @@ public uint4 yxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxwx { @@ -1083,6 +1354,7 @@ public uint4 yxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxwy { @@ -1091,6 +1363,7 @@ public uint4 yxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxwz { @@ -1101,6 +1374,7 @@ public uint4 yxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yxww { @@ -1109,6 +1383,7 @@ public uint4 yxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxx { @@ -1117,6 +1392,7 @@ public uint4 yyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxy { @@ -1125,6 +1401,7 @@ public uint4 yyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxz { @@ -1133,6 +1410,7 @@ public uint4 yyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyxw { @@ -1141,6 +1419,7 @@ public uint4 yyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyx { @@ -1149,6 +1428,7 @@ public uint4 yyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyy { @@ -1157,6 +1437,7 @@ public uint4 yyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyz { @@ -1165,6 +1446,7 @@ public uint4 yyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyyw { @@ -1173,6 +1455,7 @@ public uint4 yyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyzx { @@ -1181,6 +1464,7 @@ public uint4 yyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyzy { @@ -1189,6 +1473,7 @@ public uint4 yyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyzz { @@ -1197,6 +1482,7 @@ public uint4 yyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyzw { @@ -1205,6 +1491,7 @@ public uint4 yyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yywx { @@ -1213,6 +1500,7 @@ public uint4 yywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yywy { @@ -1221,6 +1509,7 @@ public uint4 yywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yywz { @@ -1229,6 +1518,7 @@ public uint4 yywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yyww { @@ -1237,6 +1527,7 @@ public uint4 yyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzxx { @@ -1245,6 +1536,7 @@ public uint4 yzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzxy { @@ -1253,6 +1545,7 @@ public uint4 yzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzxz { @@ -1261,6 +1554,7 @@ public uint4 yzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzxw { @@ -1271,6 +1565,7 @@ public uint4 yzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzyx { @@ -1279,6 +1574,7 @@ public uint4 yzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzyy { @@ -1287,6 +1583,7 @@ public uint4 yzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzyz { @@ -1295,6 +1592,7 @@ public uint4 yzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzyw { @@ -1303,6 +1601,7 @@ public uint4 yzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzzx { @@ -1311,6 +1610,7 @@ public uint4 yzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzzy { @@ -1319,6 +1619,7 @@ public uint4 yzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzzz { @@ -1327,6 +1628,7 @@ public uint4 yzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzzw { @@ -1335,6 +1637,7 @@ public uint4 yzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzwx { @@ -1345,6 +1648,7 @@ public uint4 yzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzwy { @@ -1353,6 +1657,7 @@ public uint4 yzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzwz { @@ -1361,6 +1666,7 @@ public uint4 yzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 yzww { @@ -1369,6 +1675,7 @@ public uint4 yzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywxx { @@ -1377,6 +1684,7 @@ public uint4 ywxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywxy { @@ -1385,6 +1693,7 @@ public uint4 ywxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywxz { @@ -1395,6 +1704,7 @@ public uint4 ywxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywxw { @@ -1403,6 +1713,7 @@ public uint4 ywxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywyx { @@ -1411,6 +1722,7 @@ public uint4 ywyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywyy { @@ -1419,6 +1731,7 @@ public uint4 ywyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywyz { @@ -1427,6 +1740,7 @@ public uint4 ywyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywyw { @@ -1435,6 +1749,7 @@ public uint4 ywyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywzx { @@ -1445,6 +1760,7 @@ public uint4 ywzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywzy { @@ -1453,6 +1769,7 @@ public uint4 ywzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywzz { @@ -1461,6 +1778,7 @@ public uint4 ywzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywzw { @@ -1469,6 +1787,7 @@ public uint4 ywzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywwx { @@ -1477,6 +1796,7 @@ public uint4 ywwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywwy { @@ -1485,6 +1805,7 @@ public uint4 ywwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywwz { @@ -1493,6 +1814,7 @@ public uint4 ywwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 ywww { @@ -1501,6 +1823,7 @@ public uint4 ywww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxxx { @@ -1509,6 +1832,7 @@ public uint4 zxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxxy { @@ -1517,6 +1841,7 @@ public uint4 zxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxxz { @@ -1525,6 +1850,7 @@ public uint4 zxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxxw { @@ -1533,6 +1859,7 @@ public uint4 zxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxyx { @@ -1541,6 +1868,7 @@ public uint4 zxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxyy { @@ -1549,6 +1877,7 @@ public uint4 zxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxyz { @@ -1557,6 +1886,7 @@ public uint4 zxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxyw { @@ -1567,6 +1897,7 @@ public uint4 zxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxzx { @@ -1575,6 +1906,7 @@ public uint4 zxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxzy { @@ -1583,6 +1915,7 @@ public uint4 zxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxzz { @@ -1591,6 +1924,7 @@ public uint4 zxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxzw { @@ -1599,6 +1933,7 @@ public uint4 zxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxwx { @@ -1607,6 +1942,7 @@ public uint4 zxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxwy { @@ -1617,6 +1953,7 @@ public uint4 zxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxwz { @@ -1625,6 +1962,7 @@ public uint4 zxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zxww { @@ -1633,6 +1971,7 @@ public uint4 zxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyxx { @@ -1641,6 +1980,7 @@ public uint4 zyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyxy { @@ -1649,6 +1989,7 @@ public uint4 zyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyxz { @@ -1657,6 +1998,7 @@ public uint4 zyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyxw { @@ -1667,6 +2009,7 @@ public uint4 zyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyyx { @@ -1675,6 +2018,7 @@ public uint4 zyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyyy { @@ -1683,6 +2027,7 @@ public uint4 zyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyyz { @@ -1691,6 +2036,7 @@ public uint4 zyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyyw { @@ -1699,6 +2045,7 @@ public uint4 zyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyzx { @@ -1707,6 +2054,7 @@ public uint4 zyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyzy { @@ -1715,6 +2063,7 @@ public uint4 zyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyzz { @@ -1723,6 +2072,7 @@ public uint4 zyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyzw { @@ -1731,6 +2081,7 @@ public uint4 zyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zywx { @@ -1741,6 +2092,7 @@ public uint4 zywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zywy { @@ -1749,6 +2101,7 @@ public uint4 zywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zywz { @@ -1757,6 +2110,7 @@ public uint4 zywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zyww { @@ -1765,6 +2119,7 @@ public uint4 zyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzxx { @@ -1773,6 +2128,7 @@ public uint4 zzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzxy { @@ -1781,6 +2137,7 @@ public uint4 zzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzxz { @@ -1789,6 +2146,7 @@ public uint4 zzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzxw { @@ -1797,6 +2155,7 @@ public uint4 zzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzyx { @@ -1805,6 +2164,7 @@ public uint4 zzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzyy { @@ -1813,6 +2173,7 @@ public uint4 zzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzyz { @@ -1821,6 +2182,7 @@ public uint4 zzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzyw { @@ -1829,6 +2191,7 @@ public uint4 zzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzzx { @@ -1837,6 +2200,7 @@ public uint4 zzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzzy { @@ -1845,6 +2209,7 @@ public uint4 zzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzzz { @@ -1853,6 +2218,7 @@ public uint4 zzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzzw { @@ -1861,6 +2227,7 @@ public uint4 zzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzwx { @@ -1869,6 +2236,7 @@ public uint4 zzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzwy { @@ -1877,6 +2245,7 @@ public uint4 zzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzwz { @@ -1885,6 +2254,7 @@ public uint4 zzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zzww { @@ -1893,6 +2263,7 @@ public uint4 zzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwxx { @@ -1901,6 +2272,7 @@ public uint4 zwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwxy { @@ -1911,6 +2283,7 @@ public uint4 zwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwxz { @@ -1919,6 +2292,7 @@ public uint4 zwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwxw { @@ -1927,6 +2301,7 @@ public uint4 zwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwyx { @@ -1937,6 +2312,7 @@ public uint4 zwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwyy { @@ -1945,6 +2321,7 @@ public uint4 zwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwyz { @@ -1953,6 +2330,7 @@ public uint4 zwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwyw { @@ -1961,6 +2339,7 @@ public uint4 zwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwzx { @@ -1969,6 +2348,7 @@ public uint4 zwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwzy { @@ -1977,6 +2357,7 @@ public uint4 zwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwzz { @@ -1985,6 +2366,7 @@ public uint4 zwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwzw { @@ -1993,6 +2375,7 @@ public uint4 zwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwwx { @@ -2001,6 +2384,7 @@ public uint4 zwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwwy { @@ -2009,6 +2393,7 @@ public uint4 zwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwwz { @@ -2017,6 +2402,7 @@ public uint4 zwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 zwww { @@ -2025,6 +2411,7 @@ public uint4 zwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxxx { @@ -2033,6 +2420,7 @@ public uint4 wxxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxxy { @@ -2041,6 +2429,7 @@ public uint4 wxxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxxz { @@ -2049,6 +2438,7 @@ public uint4 wxxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxxw { @@ -2057,6 +2447,7 @@ public uint4 wxxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxyx { @@ -2065,6 +2456,7 @@ public uint4 wxyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxyy { @@ -2073,6 +2465,7 @@ public uint4 wxyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxyz { @@ -2083,6 +2476,7 @@ public uint4 wxyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxyw { @@ -2091,6 +2485,7 @@ public uint4 wxyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxzx { @@ -2099,6 +2494,7 @@ public uint4 wxzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxzy { @@ -2109,6 +2505,7 @@ public uint4 wxzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxzz { @@ -2117,6 +2514,7 @@ public uint4 wxzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxzw { @@ -2125,6 +2523,7 @@ public uint4 wxzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxwx { @@ -2133,6 +2532,7 @@ public uint4 wxwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxwy { @@ -2141,6 +2541,7 @@ public uint4 wxwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxwz { @@ -2149,6 +2550,7 @@ public uint4 wxwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wxww { @@ -2157,6 +2559,7 @@ public uint4 wxww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyxx { @@ -2165,6 +2568,7 @@ public uint4 wyxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyxy { @@ -2173,6 +2577,7 @@ public uint4 wyxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyxz { @@ -2183,6 +2588,7 @@ public uint4 wyxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyxw { @@ -2191,6 +2597,7 @@ public uint4 wyxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyyx { @@ -2199,6 +2606,7 @@ public uint4 wyyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyyy { @@ -2207,6 +2615,7 @@ public uint4 wyyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyyz { @@ -2215,6 +2624,7 @@ public uint4 wyyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyyw { @@ -2223,6 +2633,7 @@ public uint4 wyyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyzx { @@ -2233,6 +2644,7 @@ public uint4 wyzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyzy { @@ -2241,6 +2653,7 @@ public uint4 wyzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyzz { @@ -2249,6 +2662,7 @@ public uint4 wyzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyzw { @@ -2257,6 +2671,7 @@ public uint4 wyzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wywx { @@ -2265,6 +2680,7 @@ public uint4 wywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wywy { @@ -2273,6 +2689,7 @@ public uint4 wywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wywz { @@ -2281,6 +2698,7 @@ public uint4 wywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wyww { @@ -2289,6 +2707,7 @@ public uint4 wyww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzxx { @@ -2297,6 +2716,7 @@ public uint4 wzxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzxy { @@ -2307,6 +2727,7 @@ public uint4 wzxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzxz { @@ -2315,6 +2736,7 @@ public uint4 wzxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzxw { @@ -2323,6 +2745,7 @@ public uint4 wzxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzyx { @@ -2333,6 +2756,7 @@ public uint4 wzyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzyy { @@ -2341,6 +2765,7 @@ public uint4 wzyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzyz { @@ -2349,6 +2774,7 @@ public uint4 wzyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzyw { @@ -2357,6 +2783,7 @@ public uint4 wzyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzzx { @@ -2365,6 +2792,7 @@ public uint4 wzzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzzy { @@ -2373,6 +2801,7 @@ public uint4 wzzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzzz { @@ -2381,6 +2810,7 @@ public uint4 wzzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzzw { @@ -2389,6 +2819,7 @@ public uint4 wzzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzwx { @@ -2397,6 +2828,7 @@ public uint4 wzwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzwy { @@ -2405,6 +2837,7 @@ public uint4 wzwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzwz { @@ -2413,6 +2846,7 @@ public uint4 wzwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wzww { @@ -2421,6 +2855,7 @@ public uint4 wzww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwxx { @@ -2429,6 +2864,7 @@ public uint4 wwxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwxy { @@ -2437,6 +2873,7 @@ public uint4 wwxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwxz { @@ -2445,6 +2882,7 @@ public uint4 wwxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwxw { @@ -2453,6 +2891,7 @@ public uint4 wwxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwyx { @@ -2461,6 +2900,7 @@ public uint4 wwyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwyy { @@ -2469,6 +2909,7 @@ public uint4 wwyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwyz { @@ -2477,6 +2918,7 @@ public uint4 wwyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwyw { @@ -2485,6 +2927,7 @@ public uint4 wwyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwzx { @@ -2493,6 +2936,7 @@ public uint4 wwzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwzy { @@ -2501,6 +2945,7 @@ public uint4 wwzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwzz { @@ -2509,6 +2954,7 @@ public uint4 wwzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwzw { @@ -2517,6 +2963,7 @@ public uint4 wwzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwwx { @@ -2525,6 +2972,7 @@ public uint4 wwwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwwy { @@ -2533,6 +2981,7 @@ public uint4 wwwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwwz { @@ -2541,6 +2990,7 @@ public uint4 wwwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint4 wwww { @@ -2549,6 +2999,7 @@ public uint4 wwww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxx { @@ -2557,6 +3008,7 @@ public uint3 xxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxy { @@ -2565,6 +3017,7 @@ public uint3 xxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxz { @@ -2573,6 +3026,7 @@ public uint3 xxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xxw { @@ -2581,6 +3035,7 @@ public uint3 xxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyx { @@ -2589,6 +3044,7 @@ public uint3 xyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyy { @@ -2597,6 +3053,7 @@ public uint3 xyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyz { @@ -2607,6 +3064,7 @@ public uint3 xyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xyw { @@ -2617,6 +3075,7 @@ public uint3 xyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xzx { @@ -2625,6 +3084,7 @@ public uint3 xzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xzy { @@ -2635,6 +3095,7 @@ public uint3 xzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xzz { @@ -2643,6 +3104,7 @@ public uint3 xzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xzw { @@ -2653,6 +3115,7 @@ public uint3 xzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xwx { @@ -2661,6 +3124,7 @@ public uint3 xwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xwy { @@ -2671,6 +3135,7 @@ public uint3 xwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xwz { @@ -2681,6 +3146,7 @@ public uint3 xwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 xww { @@ -2689,6 +3155,7 @@ public uint3 xww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxx { @@ -2697,6 +3164,7 @@ public uint3 yxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxy { @@ -2705,6 +3173,7 @@ public uint3 yxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxz { @@ -2715,6 +3184,7 @@ public uint3 yxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yxw { @@ -2725,6 +3195,7 @@ public uint3 yxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyx { @@ -2733,6 +3204,7 @@ public uint3 yyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyy { @@ -2741,6 +3213,7 @@ public uint3 yyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyz { @@ -2749,6 +3222,7 @@ public uint3 yyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yyw { @@ -2757,6 +3231,7 @@ public uint3 yyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yzx { @@ -2767,6 +3242,7 @@ public uint3 yzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yzy { @@ -2775,6 +3251,7 @@ public uint3 yzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yzz { @@ -2783,6 +3260,7 @@ public uint3 yzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yzw { @@ -2793,6 +3271,7 @@ public uint3 yzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 ywx { @@ -2803,6 +3282,7 @@ public uint3 ywx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 ywy { @@ -2811,6 +3291,7 @@ public uint3 ywy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 ywz { @@ -2821,6 +3302,7 @@ public uint3 ywz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 yww { @@ -2829,6 +3311,7 @@ public uint3 yww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zxx { @@ -2837,6 +3320,7 @@ public uint3 zxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zxy { @@ -2847,6 +3331,7 @@ public uint3 zxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zxz { @@ -2855,6 +3340,7 @@ public uint3 zxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zxw { @@ -2865,6 +3351,7 @@ public uint3 zxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zyx { @@ -2875,6 +3362,7 @@ public uint3 zyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zyy { @@ -2883,6 +3371,7 @@ public uint3 zyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zyz { @@ -2891,6 +3380,7 @@ public uint3 zyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zyw { @@ -2901,6 +3391,7 @@ public uint3 zyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zzx { @@ -2909,6 +3400,7 @@ public uint3 zzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zzy { @@ -2917,6 +3409,7 @@ public uint3 zzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zzz { @@ -2925,6 +3418,7 @@ public uint3 zzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zzw { @@ -2933,6 +3427,7 @@ public uint3 zzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zwx { @@ -2943,6 +3438,7 @@ public uint3 zwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zwy { @@ -2953,6 +3449,7 @@ public uint3 zwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zwz { @@ -2961,6 +3458,7 @@ public uint3 zwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 zww { @@ -2969,6 +3467,7 @@ public uint3 zww } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wxx { @@ -2977,6 +3476,7 @@ public uint3 wxx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wxy { @@ -2987,6 +3487,7 @@ public uint3 wxy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wxz { @@ -2997,6 +3498,7 @@ public uint3 wxz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wxw { @@ -3005,6 +3507,7 @@ public uint3 wxw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wyx { @@ -3015,6 +3518,7 @@ public uint3 wyx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wyy { @@ -3023,6 +3527,7 @@ public uint3 wyy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wyz { @@ -3033,6 +3538,7 @@ public uint3 wyz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wyw { @@ -3041,6 +3547,7 @@ public uint3 wyw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wzx { @@ -3051,6 +3558,7 @@ public uint3 wzx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wzy { @@ -3061,6 +3569,7 @@ public uint3 wzy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wzz { @@ -3069,6 +3578,7 @@ public uint3 wzz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wzw { @@ -3077,6 +3587,7 @@ public uint3 wzw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wwx { @@ -3085,6 +3596,7 @@ public uint3 wwx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wwy { @@ -3093,6 +3605,7 @@ public uint3 wwy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 wwz { @@ -3101,6 +3614,7 @@ public uint3 wwz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint3 www { @@ -3109,6 +3623,7 @@ public uint3 www } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xx { @@ -3117,6 +3632,7 @@ public uint2 xx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xy { @@ -3127,6 +3643,7 @@ public uint2 xy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xz { @@ -3137,6 +3654,7 @@ public uint2 xz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 xw { @@ -3147,6 +3665,7 @@ public uint2 xw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yx { @@ -3157,6 +3676,7 @@ public uint2 yx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yy { @@ -3165,6 +3685,7 @@ public uint2 yy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yz { @@ -3175,6 +3696,7 @@ public uint2 yz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 yw { @@ -3185,6 +3707,7 @@ public uint2 yw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 zx { @@ -3195,6 +3718,7 @@ public uint2 zx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 zy { @@ -3205,6 +3729,7 @@ public uint2 zy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 zz { @@ -3213,6 +3738,7 @@ public uint2 zz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 zw { @@ -3223,6 +3749,7 @@ public uint2 zw } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 wx { @@ -3233,6 +3760,7 @@ public uint2 wx } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 wy { @@ -3243,6 +3771,7 @@ public uint2 wy } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 wz { @@ -3253,6 +3782,7 @@ public uint2 wz } + /// Swizzles the vector. [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public uint2 ww { @@ -3284,19 +3814,25 @@ unsafe public uint this[int index] } /// Returns true if the uint4 is equal to a given uint4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint4 rhs) { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; } /// Returns true if the uint4 is equal to a given uint4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is uint4 converted && Equals(converted); } /// Returns a hash code for the uint4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the uint4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -3304,6 +3840,9 @@ public override string ToString() } /// Returns a string representation of the uint4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -3330,74 +3869,122 @@ public DebuggerProxy(uint4 v) public static partial class math { /// Returns a uint4 vector constructed from four uint values. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. + /// uint4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(uint x, uint y, uint z, uint w) { return new uint4(x, y, z, w); } /// Returns a uint4 vector constructed from two uint values and a uint2 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's y component will be set to this value. + /// The constructed vector's zw components will be set to this value. + /// uint4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(uint x, uint y, uint2 zw) { return new uint4(x, y, zw); } /// Returns a uint4 vector constructed from a uint value, a uint2 vector and a uint value. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yz components will be set to this value. + /// The constructed vector's w component will be set to this value. + /// uint4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(uint x, uint2 yz, uint w) { return new uint4(x, yz, w); } /// Returns a uint4 vector constructed from a uint value and a uint3 vector. + /// The constructed vector's x component will be set to this value. + /// The constructed vector's yzw components will be set to this value. + /// uint4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(uint x, uint3 yzw) { return new uint4(x, yzw); } /// Returns a uint4 vector constructed from a uint2 vector and two uint values. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's z component will be set to this value. + /// The constructed vector's w component will be set to this value. + /// uint4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(uint2 xy, uint z, uint w) { return new uint4(xy, z, w); } /// Returns a uint4 vector constructed from two uint2 vectors. + /// The constructed vector's xy components will be set to this value. + /// The constructed vector's zw components will be set to this value. + /// uint4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(uint2 xy, uint2 zw) { return new uint4(xy, zw); } /// Returns a uint4 vector constructed from a uint3 vector and a uint value. + /// The constructed vector's xyz components will be set to this value. + /// The constructed vector's w component will be set to this value. + /// uint4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(uint3 xyz, uint w) { return new uint4(xyz, w); } /// Returns a uint4 vector constructed from a uint4 vector. + /// The constructed vector's xyzw components will be set to this value. + /// uint4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(uint4 xyzw) { return new uint4(xyzw); } /// Returns a uint4 vector constructed from a single uint value by assigning it to every component. + /// uint to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(uint v) { return new uint4(v); } /// Returns a uint4 vector constructed from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(bool v) { return new uint4(v); } /// Return a uint4 vector constructed from a bool4 vector by componentwise conversion. + /// bool4 to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(bool4 v) { return new uint4(v); } /// Returns a uint4 vector constructed from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(int v) { return new uint4(v); } /// Return a uint4 vector constructed from a int4 vector by componentwise conversion. + /// int4 to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(int4 v) { return new uint4(v); } /// Returns a uint4 vector constructed from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(float v) { return new uint4(v); } /// Return a uint4 vector constructed from a float4 vector by componentwise conversion. + /// float4 to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(float4 v) { return new uint4(v); } /// Returns a uint4 vector constructed from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(double v) { return new uint4(v); } /// Return a uint4 vector constructed from a double4 vector by componentwise conversion. + /// double4 to convert to uint4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 uint4(double4 v) { return new uint4(v); } /// Returns a uint hash code of a uint4 vector. + /// Vector value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(uint4 v) { @@ -3409,6 +3996,8 @@ public static uint hash(uint4 v) /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Vector value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(uint4 v) { @@ -3416,40 +4005,62 @@ public static uint4 hashwide(uint4 v) } /// Returns the result of specified shuffling of the components from two uint4 vectors into a uint value. + /// uint4 to use as the left argument of the shuffle operation. + /// uint4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting uint. + /// uint result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint shuffle(uint4 a, uint4 b, ShuffleComponent x) + public static uint shuffle(uint4 left, uint4 right, ShuffleComponent x) { - return select_shuffle_component(a, b, x); + return select_shuffle_component(left, right, x); } /// Returns the result of specified shuffling of the components from two uint4 vectors into a uint2 vector. + /// uint4 to use as the left argument of the shuffle operation. + /// uint4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting uint2 x component. + /// The ShuffleComponent to use when setting the resulting uint2 y component. + /// uint2 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 shuffle(uint4 a, uint4 b, ShuffleComponent x, ShuffleComponent y) + public static uint2 shuffle(uint4 left, uint4 right, ShuffleComponent x, ShuffleComponent y) { return uint2( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y)); } /// Returns the result of specified shuffling of the components from two uint4 vectors into a uint3 vector. + /// uint4 to use as the left argument of the shuffle operation. + /// uint4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting uint3 x component. + /// The ShuffleComponent to use when setting the resulting uint3 y component. + /// The ShuffleComponent to use when setting the resulting uint3 z component. + /// uint3 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 shuffle(uint4 a, uint4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) + public static uint3 shuffle(uint4 left, uint4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z) { return uint3( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z)); } /// Returns the result of specified shuffling of the components from two uint4 vectors into a uint4 vector. + /// uint4 to use as the left argument of the shuffle operation. + /// uint4 to use as the right argument of the shuffle operation. + /// The ShuffleComponent to use when setting the resulting uint4 x component. + /// The ShuffleComponent to use when setting the resulting uint4 y component. + /// The ShuffleComponent to use when setting the resulting uint4 z component. + /// The ShuffleComponent to use when setting the resulting uint4 w component. + /// uint4 result of the shuffle operation. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 shuffle(uint4 a, uint4 b, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) + public static uint4 shuffle(uint4 left, uint4 right, ShuffleComponent x, ShuffleComponent y, ShuffleComponent z, ShuffleComponent w) { return uint4( - select_shuffle_component(a, b, x), - select_shuffle_component(a, b, y), - select_shuffle_component(a, b, z), - select_shuffle_component(a, b, w)); + select_shuffle_component(left, right, x), + select_shuffle_component(left, right, y), + select_shuffle_component(left, right, z), + select_shuffle_component(left, right, w)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/Unity.Mathematics/uint4x2.gen.cs b/src/Unity.Mathematics/uint4x2.gen.cs index b4acde82..e338acef 100644 --- a/src/Unity.Mathematics/uint4x2.gen.cs +++ b/src/Unity.Mathematics/uint4x2.gen.cs @@ -14,17 +14,22 @@ namespace Unity.Mathematics { + /// A 4x2 matrix of uints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct uint4x2 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public uint4 c0; + /// Column 1 of the matrix. public uint4 c1; /// uint4x2 zero value. public static readonly uint4x2 zero; /// Constructs a uint4x2 matrix from two uint4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x2(uint4 c0, uint4 c1) { @@ -33,6 +38,14 @@ public uint4x2(uint4 c0, uint4 c1) } /// Constructs a uint4x2 matrix from 8 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x2(uint m00, uint m01, uint m10, uint m11, @@ -44,6 +57,7 @@ public uint4x2(uint m00, uint m01, } /// Constructs a uint4x2 matrix from a single uint value by assigning it to every component. + /// uint to convert to uint4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x2(uint v) { @@ -52,6 +66,7 @@ public uint4x2(uint v) } /// Constructs a uint4x2 matrix from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x2(bool v) { @@ -60,6 +75,7 @@ public uint4x2(bool v) } /// Constructs a uint4x2 matrix from a bool4x2 matrix by componentwise conversion. + /// bool4x2 to convert to uint4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x2(bool4x2 v) { @@ -68,6 +84,7 @@ public uint4x2(bool4x2 v) } /// Constructs a uint4x2 matrix from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x2(int v) { @@ -76,6 +93,7 @@ public uint4x2(int v) } /// Constructs a uint4x2 matrix from a int4x2 matrix by componentwise conversion. + /// int4x2 to convert to uint4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x2(int4x2 v) { @@ -84,6 +102,7 @@ public uint4x2(int4x2 v) } /// Constructs a uint4x2 matrix from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x2(float v) { @@ -92,6 +111,7 @@ public uint4x2(float v) } /// Constructs a uint4x2 matrix from a float4x2 matrix by componentwise conversion. + /// float4x2 to convert to uint4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x2(float4x2 v) { @@ -100,6 +120,7 @@ public uint4x2(float4x2 v) } /// Constructs a uint4x2 matrix from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x2(double v) { @@ -108,6 +129,7 @@ public uint4x2(double v) } /// Constructs a uint4x2 matrix from a double4x2 matrix by componentwise conversion. + /// double4x2 to convert to uint4x2 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x2(double4x2 v) { @@ -117,253 +139,413 @@ public uint4x2(double4x2 v) /// Implicitly converts a single uint value to a uint4x2 matrix by assigning it to every component. + /// uint to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint4x2(uint v) { return new uint4x2(v); } /// Explicitly converts a single bool value to a uint4x2 matrix by converting it to uint and assigning it to every component. + /// bool to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x2(bool v) { return new uint4x2(v); } /// Explicitly converts a bool4x2 matrix to a uint4x2 matrix by componentwise conversion. + /// bool4x2 to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x2(bool4x2 v) { return new uint4x2(v); } /// Explicitly converts a single int value to a uint4x2 matrix by converting it to uint and assigning it to every component. + /// int to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x2(int v) { return new uint4x2(v); } /// Explicitly converts a int4x2 matrix to a uint4x2 matrix by componentwise conversion. + /// int4x2 to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x2(int4x2 v) { return new uint4x2(v); } /// Explicitly converts a single float value to a uint4x2 matrix by converting it to uint and assigning it to every component. + /// float to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x2(float v) { return new uint4x2(v); } /// Explicitly converts a float4x2 matrix to a uint4x2 matrix by componentwise conversion. + /// float4x2 to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x2(float4x2 v) { return new uint4x2(v); } /// Explicitly converts a single double value to a uint4x2 matrix by converting it to uint and assigning it to every component. + /// double to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x2(double v) { return new uint4x2(v); } /// Explicitly converts a double4x2 matrix to a uint4x2 matrix by componentwise conversion. + /// double4x2 to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x2(double4x2 v) { return new uint4x2(v); } /// Returns the result of a componentwise multiplication operation on two uint4x2 matrices. + /// Left hand side uint4x2 to use to compute componentwise multiplication. + /// Right hand side uint4x2 to use to compute componentwise multiplication. + /// uint4x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator * (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1); } /// Returns the result of a componentwise multiplication operation on a uint4x2 matrix and a uint value. + /// Left hand side uint4x2 to use to compute componentwise multiplication. + /// Right hand side uint to use to compute componentwise multiplication. + /// uint4x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator * (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 * rhs, lhs.c1 * rhs); } /// Returns the result of a componentwise multiplication operation on a uint value and a uint4x2 matrix. + /// Left hand side uint to use to compute componentwise multiplication. + /// Right hand side uint4x2 to use to compute componentwise multiplication. + /// uint4x2 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator * (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs * rhs.c0, lhs * rhs.c1); } /// Returns the result of a componentwise addition operation on two uint4x2 matrices. + /// Left hand side uint4x2 to use to compute componentwise addition. + /// Right hand side uint4x2 to use to compute componentwise addition. + /// uint4x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator + (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1); } /// Returns the result of a componentwise addition operation on a uint4x2 matrix and a uint value. + /// Left hand side uint4x2 to use to compute componentwise addition. + /// Right hand side uint to use to compute componentwise addition. + /// uint4x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator + (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 + rhs, lhs.c1 + rhs); } /// Returns the result of a componentwise addition operation on a uint value and a uint4x2 matrix. + /// Left hand side uint to use to compute componentwise addition. + /// Right hand side uint4x2 to use to compute componentwise addition. + /// uint4x2 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator + (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs + rhs.c0, lhs + rhs.c1); } /// Returns the result of a componentwise subtraction operation on two uint4x2 matrices. + /// Left hand side uint4x2 to use to compute componentwise subtraction. + /// Right hand side uint4x2 to use to compute componentwise subtraction. + /// uint4x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator - (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1); } /// Returns the result of a componentwise subtraction operation on a uint4x2 matrix and a uint value. + /// Left hand side uint4x2 to use to compute componentwise subtraction. + /// Right hand side uint to use to compute componentwise subtraction. + /// uint4x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator - (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 - rhs, lhs.c1 - rhs); } /// Returns the result of a componentwise subtraction operation on a uint value and a uint4x2 matrix. + /// Left hand side uint to use to compute componentwise subtraction. + /// Right hand side uint4x2 to use to compute componentwise subtraction. + /// uint4x2 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator - (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs - rhs.c0, lhs - rhs.c1); } /// Returns the result of a componentwise division operation on two uint4x2 matrices. + /// Left hand side uint4x2 to use to compute componentwise division. + /// Right hand side uint4x2 to use to compute componentwise division. + /// uint4x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator / (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1); } /// Returns the result of a componentwise division operation on a uint4x2 matrix and a uint value. + /// Left hand side uint4x2 to use to compute componentwise division. + /// Right hand side uint to use to compute componentwise division. + /// uint4x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator / (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 / rhs, lhs.c1 / rhs); } /// Returns the result of a componentwise division operation on a uint value and a uint4x2 matrix. + /// Left hand side uint to use to compute componentwise division. + /// Right hand side uint4x2 to use to compute componentwise division. + /// uint4x2 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator / (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs / rhs.c0, lhs / rhs.c1); } /// Returns the result of a componentwise modulus operation on two uint4x2 matrices. + /// Left hand side uint4x2 to use to compute componentwise modulus. + /// Right hand side uint4x2 to use to compute componentwise modulus. + /// uint4x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator % (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1); } /// Returns the result of a componentwise modulus operation on a uint4x2 matrix and a uint value. + /// Left hand side uint4x2 to use to compute componentwise modulus. + /// Right hand side uint to use to compute componentwise modulus. + /// uint4x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator % (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 % rhs, lhs.c1 % rhs); } /// Returns the result of a componentwise modulus operation on a uint value and a uint4x2 matrix. + /// Left hand side uint to use to compute componentwise modulus. + /// Right hand side uint4x2 to use to compute componentwise modulus. + /// uint4x2 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator % (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs % rhs.c0, lhs % rhs.c1); } /// Returns the result of a componentwise increment operation on a uint4x2 matrix. + /// Value to use when computing the componentwise increment. + /// uint4x2 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator ++ (uint4x2 val) { return new uint4x2 (++val.c0, ++val.c1); } /// Returns the result of a componentwise decrement operation on a uint4x2 matrix. + /// Value to use when computing the componentwise decrement. + /// uint4x2 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator -- (uint4x2 val) { return new uint4x2 (--val.c0, --val.c1); } /// Returns the result of a componentwise less than operation on two uint4x2 matrices. + /// Left hand side uint4x2 to use to compute componentwise less than. + /// Right hand side uint4x2 to use to compute componentwise less than. + /// bool4x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator < (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1); } /// Returns the result of a componentwise less than operation on a uint4x2 matrix and a uint value. + /// Left hand side uint4x2 to use to compute componentwise less than. + /// Right hand side uint to use to compute componentwise less than. + /// bool4x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator < (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 < rhs, lhs.c1 < rhs); } /// Returns the result of a componentwise less than operation on a uint value and a uint4x2 matrix. + /// Left hand side uint to use to compute componentwise less than. + /// Right hand side uint4x2 to use to compute componentwise less than. + /// bool4x2 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator < (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs < rhs.c0, lhs < rhs.c1); } /// Returns the result of a componentwise less or equal operation on two uint4x2 matrices. + /// Left hand side uint4x2 to use to compute componentwise less or equal. + /// Right hand side uint4x2 to use to compute componentwise less or equal. + /// bool4x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator <= (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1); } /// Returns the result of a componentwise less or equal operation on a uint4x2 matrix and a uint value. + /// Left hand side uint4x2 to use to compute componentwise less or equal. + /// Right hand side uint to use to compute componentwise less or equal. + /// bool4x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator <= (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 <= rhs, lhs.c1 <= rhs); } /// Returns the result of a componentwise less or equal operation on a uint value and a uint4x2 matrix. + /// Left hand side uint to use to compute componentwise less or equal. + /// Right hand side uint4x2 to use to compute componentwise less or equal. + /// bool4x2 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator <= (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs <= rhs.c0, lhs <= rhs.c1); } /// Returns the result of a componentwise greater than operation on two uint4x2 matrices. + /// Left hand side uint4x2 to use to compute componentwise greater than. + /// Right hand side uint4x2 to use to compute componentwise greater than. + /// bool4x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator > (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1); } /// Returns the result of a componentwise greater than operation on a uint4x2 matrix and a uint value. + /// Left hand side uint4x2 to use to compute componentwise greater than. + /// Right hand side uint to use to compute componentwise greater than. + /// bool4x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator > (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 > rhs, lhs.c1 > rhs); } /// Returns the result of a componentwise greater than operation on a uint value and a uint4x2 matrix. + /// Left hand side uint to use to compute componentwise greater than. + /// Right hand side uint4x2 to use to compute componentwise greater than. + /// bool4x2 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator > (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs > rhs.c0, lhs > rhs.c1); } /// Returns the result of a componentwise greater or equal operation on two uint4x2 matrices. + /// Left hand side uint4x2 to use to compute componentwise greater or equal. + /// Right hand side uint4x2 to use to compute componentwise greater or equal. + /// bool4x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator >= (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1); } /// Returns the result of a componentwise greater or equal operation on a uint4x2 matrix and a uint value. + /// Left hand side uint4x2 to use to compute componentwise greater or equal. + /// Right hand side uint to use to compute componentwise greater or equal. + /// bool4x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator >= (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 >= rhs, lhs.c1 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a uint value and a uint4x2 matrix. + /// Left hand side uint to use to compute componentwise greater or equal. + /// Right hand side uint4x2 to use to compute componentwise greater or equal. + /// bool4x2 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator >= (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs >= rhs.c0, lhs >= rhs.c1); } /// Returns the result of a componentwise unary minus operation on a uint4x2 matrix. + /// Value to use when computing the componentwise unary minus. + /// uint4x2 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator - (uint4x2 val) { return new uint4x2 (-val.c0, -val.c1); } /// Returns the result of a componentwise unary plus operation on a uint4x2 matrix. + /// Value to use when computing the componentwise unary plus. + /// uint4x2 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator + (uint4x2 val) { return new uint4x2 (+val.c0, +val.c1); } /// Returns the result of a componentwise left shift operation on a uint4x2 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator << (uint4x2 x, int n) { return new uint4x2 (x.c0 << n, x.c1 << n); } /// Returns the result of a componentwise right shift operation on a uint4x2 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator >> (uint4x2 x, int n) { return new uint4x2 (x.c0 >> n, x.c1 >> n); } /// Returns the result of a componentwise equality operation on two uint4x2 matrices. + /// Left hand side uint4x2 to use to compute componentwise equality. + /// Right hand side uint4x2 to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1); } /// Returns the result of a componentwise equality operation on a uint4x2 matrix and a uint value. + /// Left hand side uint4x2 to use to compute componentwise equality. + /// Right hand side uint to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 == rhs, lhs.c1 == rhs); } /// Returns the result of a componentwise equality operation on a uint value and a uint4x2 matrix. + /// Left hand side uint to use to compute componentwise equality. + /// Right hand side uint4x2 to use to compute componentwise equality. + /// bool4x2 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator == (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs == rhs.c0, lhs == rhs.c1); } /// Returns the result of a componentwise not equal operation on two uint4x2 matrices. + /// Left hand side uint4x2 to use to compute componentwise not equal. + /// Right hand side uint4x2 to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (uint4x2 lhs, uint4x2 rhs) { return new bool4x2 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1); } /// Returns the result of a componentwise not equal operation on a uint4x2 matrix and a uint value. + /// Left hand side uint4x2 to use to compute componentwise not equal. + /// Right hand side uint to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (uint4x2 lhs, uint rhs) { return new bool4x2 (lhs.c0 != rhs, lhs.c1 != rhs); } /// Returns the result of a componentwise not equal operation on a uint value and a uint4x2 matrix. + /// Left hand side uint to use to compute componentwise not equal. + /// Right hand side uint4x2 to use to compute componentwise not equal. + /// bool4x2 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x2 operator != (uint lhs, uint4x2 rhs) { return new bool4x2 (lhs != rhs.c0, lhs != rhs.c1); } /// Returns the result of a componentwise bitwise not operation on a uint4x2 matrix. + /// Value to use when computing the componentwise bitwise not. + /// uint4x2 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator ~ (uint4x2 val) { return new uint4x2 (~val.c0, ~val.c1); } /// Returns the result of a componentwise bitwise and operation on two uint4x2 matrices. + /// Left hand side uint4x2 to use to compute componentwise bitwise and. + /// Right hand side uint4x2 to use to compute componentwise bitwise and. + /// uint4x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator & (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1); } /// Returns the result of a componentwise bitwise and operation on a uint4x2 matrix and a uint value. + /// Left hand side uint4x2 to use to compute componentwise bitwise and. + /// Right hand side uint to use to compute componentwise bitwise and. + /// uint4x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator & (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 & rhs, lhs.c1 & rhs); } /// Returns the result of a componentwise bitwise and operation on a uint value and a uint4x2 matrix. + /// Left hand side uint to use to compute componentwise bitwise and. + /// Right hand side uint4x2 to use to compute componentwise bitwise and. + /// uint4x2 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator & (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs & rhs.c0, lhs & rhs.c1); } /// Returns the result of a componentwise bitwise or operation on two uint4x2 matrices. + /// Left hand side uint4x2 to use to compute componentwise bitwise or. + /// Right hand side uint4x2 to use to compute componentwise bitwise or. + /// uint4x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator | (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1); } /// Returns the result of a componentwise bitwise or operation on a uint4x2 matrix and a uint value. + /// Left hand side uint4x2 to use to compute componentwise bitwise or. + /// Right hand side uint to use to compute componentwise bitwise or. + /// uint4x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator | (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 | rhs, lhs.c1 | rhs); } /// Returns the result of a componentwise bitwise or operation on a uint value and a uint4x2 matrix. + /// Left hand side uint to use to compute componentwise bitwise or. + /// Right hand side uint4x2 to use to compute componentwise bitwise or. + /// uint4x2 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator | (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs | rhs.c0, lhs | rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on two uint4x2 matrices. + /// Left hand side uint4x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint4x2 to use to compute componentwise bitwise exclusive or. + /// uint4x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator ^ (uint4x2 lhs, uint4x2 rhs) { return new uint4x2 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint4x2 matrix and a uint value. + /// Left hand side uint4x2 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint to use to compute componentwise bitwise exclusive or. + /// uint4x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator ^ (uint4x2 lhs, uint rhs) { return new uint4x2 (lhs.c0 ^ rhs, lhs.c1 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint4x2 matrix. + /// Left hand side uint to use to compute componentwise bitwise exclusive or. + /// Right hand side uint4x2 to use to compute componentwise bitwise exclusive or. + /// uint4x2 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 operator ^ (uint lhs, uint4x2 rhs) { return new uint4x2 (lhs ^ rhs.c0, lhs ^ rhs.c1); } @@ -383,19 +565,25 @@ unsafe public ref uint4 this[int index] } /// Returns true if the uint4x2 is equal to a given uint4x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint4x2 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1); } /// Returns true if the uint4x2 is equal to a given uint4x2, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is uint4x2 converted && Equals(converted); } /// Returns a hash code for the uint4x2. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the uint4x2. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -403,6 +591,9 @@ public override string ToString() } /// Returns a string representation of the uint4x2 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -414,10 +605,22 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a uint4x2 matrix constructed from two uint4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// uint4x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 uint4x2(uint4 c0, uint4 c1) { return new uint4x2(c0, c1); } /// Returns a uint4x2 matrix constructed from from 8 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// uint4x2 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 uint4x2(uint m00, uint m01, uint m10, uint m11, @@ -431,42 +634,62 @@ public static uint4x2 uint4x2(uint m00, uint m01, } /// Returns a uint4x2 matrix constructed from a single uint value by assigning it to every component. + /// uint to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 uint4x2(uint v) { return new uint4x2(v); } /// Returns a uint4x2 matrix constructed from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 uint4x2(bool v) { return new uint4x2(v); } /// Return a uint4x2 matrix constructed from a bool4x2 matrix by componentwise conversion. + /// bool4x2 to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 uint4x2(bool4x2 v) { return new uint4x2(v); } /// Returns a uint4x2 matrix constructed from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 uint4x2(int v) { return new uint4x2(v); } /// Return a uint4x2 matrix constructed from a int4x2 matrix by componentwise conversion. + /// int4x2 to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 uint4x2(int4x2 v) { return new uint4x2(v); } /// Returns a uint4x2 matrix constructed from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 uint4x2(float v) { return new uint4x2(v); } /// Return a uint4x2 matrix constructed from a float4x2 matrix by componentwise conversion. + /// float4x2 to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 uint4x2(float4x2 v) { return new uint4x2(v); } /// Returns a uint4x2 matrix constructed from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 uint4x2(double v) { return new uint4x2(v); } /// Return a uint4x2 matrix constructed from a double4x2 matrix by componentwise conversion. + /// double4x2 to convert to uint4x2 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x2 uint4x2(double4x2 v) { return new uint4x2(v); } /// Return the uint2x4 transpose of a uint4x2 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint2x4 transpose(uint4x2 v) { @@ -475,7 +698,9 @@ public static uint2x4 transpose(uint4x2 v) v.c1.x, v.c1.y, v.c1.z, v.c1.w); } - /// Returns a uint hash code of a uint4x2 vector. + /// Returns a uint hash code of a uint4x2 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(uint4x2 v) { @@ -484,10 +709,12 @@ public static uint hash(uint4x2 v) } /// - /// Returns a uint4 vector hash code of a uint4x2 vector. + /// Returns a uint4 vector hash code of a uint4x2 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(uint4x2 v) { diff --git a/src/Unity.Mathematics/uint4x3.gen.cs b/src/Unity.Mathematics/uint4x3.gen.cs index 33d72765..6365cb7e 100644 --- a/src/Unity.Mathematics/uint4x3.gen.cs +++ b/src/Unity.Mathematics/uint4x3.gen.cs @@ -14,18 +14,25 @@ namespace Unity.Mathematics { + /// A 4x3 matrix of uints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct uint4x3 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public uint4 c0; + /// Column 1 of the matrix. public uint4 c1; + /// Column 2 of the matrix. public uint4 c2; /// uint4x3 zero value. public static readonly uint4x3 zero; /// Constructs a uint4x3 matrix from three uint4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x3(uint4 c0, uint4 c1, uint4 c2) { @@ -35,6 +42,18 @@ public uint4x3(uint4 c0, uint4 c1, uint4 c2) } /// Constructs a uint4x3 matrix from 12 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x3(uint m00, uint m01, uint m02, uint m10, uint m11, uint m12, @@ -47,6 +66,7 @@ public uint4x3(uint m00, uint m01, uint m02, } /// Constructs a uint4x3 matrix from a single uint value by assigning it to every component. + /// uint to convert to uint4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x3(uint v) { @@ -56,6 +76,7 @@ public uint4x3(uint v) } /// Constructs a uint4x3 matrix from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x3(bool v) { @@ -65,6 +86,7 @@ public uint4x3(bool v) } /// Constructs a uint4x3 matrix from a bool4x3 matrix by componentwise conversion. + /// bool4x3 to convert to uint4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x3(bool4x3 v) { @@ -74,6 +96,7 @@ public uint4x3(bool4x3 v) } /// Constructs a uint4x3 matrix from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x3(int v) { @@ -83,6 +106,7 @@ public uint4x3(int v) } /// Constructs a uint4x3 matrix from a int4x3 matrix by componentwise conversion. + /// int4x3 to convert to uint4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x3(int4x3 v) { @@ -92,6 +116,7 @@ public uint4x3(int4x3 v) } /// Constructs a uint4x3 matrix from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x3(float v) { @@ -101,6 +126,7 @@ public uint4x3(float v) } /// Constructs a uint4x3 matrix from a float4x3 matrix by componentwise conversion. + /// float4x3 to convert to uint4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x3(float4x3 v) { @@ -110,6 +136,7 @@ public uint4x3(float4x3 v) } /// Constructs a uint4x3 matrix from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x3(double v) { @@ -119,6 +146,7 @@ public uint4x3(double v) } /// Constructs a uint4x3 matrix from a double4x3 matrix by componentwise conversion. + /// double4x3 to convert to uint4x3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x3(double4x3 v) { @@ -129,253 +157,413 @@ public uint4x3(double4x3 v) /// Implicitly converts a single uint value to a uint4x3 matrix by assigning it to every component. + /// uint to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint4x3(uint v) { return new uint4x3(v); } /// Explicitly converts a single bool value to a uint4x3 matrix by converting it to uint and assigning it to every component. + /// bool to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x3(bool v) { return new uint4x3(v); } /// Explicitly converts a bool4x3 matrix to a uint4x3 matrix by componentwise conversion. + /// bool4x3 to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x3(bool4x3 v) { return new uint4x3(v); } /// Explicitly converts a single int value to a uint4x3 matrix by converting it to uint and assigning it to every component. + /// int to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x3(int v) { return new uint4x3(v); } /// Explicitly converts a int4x3 matrix to a uint4x3 matrix by componentwise conversion. + /// int4x3 to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x3(int4x3 v) { return new uint4x3(v); } /// Explicitly converts a single float value to a uint4x3 matrix by converting it to uint and assigning it to every component. + /// float to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x3(float v) { return new uint4x3(v); } /// Explicitly converts a float4x3 matrix to a uint4x3 matrix by componentwise conversion. + /// float4x3 to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x3(float4x3 v) { return new uint4x3(v); } /// Explicitly converts a single double value to a uint4x3 matrix by converting it to uint and assigning it to every component. + /// double to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x3(double v) { return new uint4x3(v); } /// Explicitly converts a double4x3 matrix to a uint4x3 matrix by componentwise conversion. + /// double4x3 to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x3(double4x3 v) { return new uint4x3(v); } /// Returns the result of a componentwise multiplication operation on two uint4x3 matrices. + /// Left hand side uint4x3 to use to compute componentwise multiplication. + /// Right hand side uint4x3 to use to compute componentwise multiplication. + /// uint4x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator * (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2); } /// Returns the result of a componentwise multiplication operation on a uint4x3 matrix and a uint value. + /// Left hand side uint4x3 to use to compute componentwise multiplication. + /// Right hand side uint to use to compute componentwise multiplication. + /// uint4x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator * (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs); } /// Returns the result of a componentwise multiplication operation on a uint value and a uint4x3 matrix. + /// Left hand side uint to use to compute componentwise multiplication. + /// Right hand side uint4x3 to use to compute componentwise multiplication. + /// uint4x3 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator * (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2); } /// Returns the result of a componentwise addition operation on two uint4x3 matrices. + /// Left hand side uint4x3 to use to compute componentwise addition. + /// Right hand side uint4x3 to use to compute componentwise addition. + /// uint4x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator + (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2); } /// Returns the result of a componentwise addition operation on a uint4x3 matrix and a uint value. + /// Left hand side uint4x3 to use to compute componentwise addition. + /// Right hand side uint to use to compute componentwise addition. + /// uint4x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator + (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs); } /// Returns the result of a componentwise addition operation on a uint value and a uint4x3 matrix. + /// Left hand side uint to use to compute componentwise addition. + /// Right hand side uint4x3 to use to compute componentwise addition. + /// uint4x3 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator + (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2); } /// Returns the result of a componentwise subtraction operation on two uint4x3 matrices. + /// Left hand side uint4x3 to use to compute componentwise subtraction. + /// Right hand side uint4x3 to use to compute componentwise subtraction. + /// uint4x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator - (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2); } /// Returns the result of a componentwise subtraction operation on a uint4x3 matrix and a uint value. + /// Left hand side uint4x3 to use to compute componentwise subtraction. + /// Right hand side uint to use to compute componentwise subtraction. + /// uint4x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator - (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs); } /// Returns the result of a componentwise subtraction operation on a uint value and a uint4x3 matrix. + /// Left hand side uint to use to compute componentwise subtraction. + /// Right hand side uint4x3 to use to compute componentwise subtraction. + /// uint4x3 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator - (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2); } /// Returns the result of a componentwise division operation on two uint4x3 matrices. + /// Left hand side uint4x3 to use to compute componentwise division. + /// Right hand side uint4x3 to use to compute componentwise division. + /// uint4x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator / (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2); } /// Returns the result of a componentwise division operation on a uint4x3 matrix and a uint value. + /// Left hand side uint4x3 to use to compute componentwise division. + /// Right hand side uint to use to compute componentwise division. + /// uint4x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator / (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs); } /// Returns the result of a componentwise division operation on a uint value and a uint4x3 matrix. + /// Left hand side uint to use to compute componentwise division. + /// Right hand side uint4x3 to use to compute componentwise division. + /// uint4x3 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator / (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2); } /// Returns the result of a componentwise modulus operation on two uint4x3 matrices. + /// Left hand side uint4x3 to use to compute componentwise modulus. + /// Right hand side uint4x3 to use to compute componentwise modulus. + /// uint4x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator % (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2); } /// Returns the result of a componentwise modulus operation on a uint4x3 matrix and a uint value. + /// Left hand side uint4x3 to use to compute componentwise modulus. + /// Right hand side uint to use to compute componentwise modulus. + /// uint4x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator % (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs); } /// Returns the result of a componentwise modulus operation on a uint value and a uint4x3 matrix. + /// Left hand side uint to use to compute componentwise modulus. + /// Right hand side uint4x3 to use to compute componentwise modulus. + /// uint4x3 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator % (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2); } /// Returns the result of a componentwise increment operation on a uint4x3 matrix. + /// Value to use when computing the componentwise increment. + /// uint4x3 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator ++ (uint4x3 val) { return new uint4x3 (++val.c0, ++val.c1, ++val.c2); } /// Returns the result of a componentwise decrement operation on a uint4x3 matrix. + /// Value to use when computing the componentwise decrement. + /// uint4x3 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator -- (uint4x3 val) { return new uint4x3 (--val.c0, --val.c1, --val.c2); } /// Returns the result of a componentwise less than operation on two uint4x3 matrices. + /// Left hand side uint4x3 to use to compute componentwise less than. + /// Right hand side uint4x3 to use to compute componentwise less than. + /// bool4x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator < (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2); } /// Returns the result of a componentwise less than operation on a uint4x3 matrix and a uint value. + /// Left hand side uint4x3 to use to compute componentwise less than. + /// Right hand side uint to use to compute componentwise less than. + /// bool4x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator < (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs); } /// Returns the result of a componentwise less than operation on a uint value and a uint4x3 matrix. + /// Left hand side uint to use to compute componentwise less than. + /// Right hand side uint4x3 to use to compute componentwise less than. + /// bool4x3 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator < (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2); } /// Returns the result of a componentwise less or equal operation on two uint4x3 matrices. + /// Left hand side uint4x3 to use to compute componentwise less or equal. + /// Right hand side uint4x3 to use to compute componentwise less or equal. + /// bool4x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator <= (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2); } /// Returns the result of a componentwise less or equal operation on a uint4x3 matrix and a uint value. + /// Left hand side uint4x3 to use to compute componentwise less or equal. + /// Right hand side uint to use to compute componentwise less or equal. + /// bool4x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator <= (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs); } /// Returns the result of a componentwise less or equal operation on a uint value and a uint4x3 matrix. + /// Left hand side uint to use to compute componentwise less or equal. + /// Right hand side uint4x3 to use to compute componentwise less or equal. + /// bool4x3 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator <= (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2); } /// Returns the result of a componentwise greater than operation on two uint4x3 matrices. + /// Left hand side uint4x3 to use to compute componentwise greater than. + /// Right hand side uint4x3 to use to compute componentwise greater than. + /// bool4x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator > (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2); } /// Returns the result of a componentwise greater than operation on a uint4x3 matrix and a uint value. + /// Left hand side uint4x3 to use to compute componentwise greater than. + /// Right hand side uint to use to compute componentwise greater than. + /// bool4x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator > (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs); } /// Returns the result of a componentwise greater than operation on a uint value and a uint4x3 matrix. + /// Left hand side uint to use to compute componentwise greater than. + /// Right hand side uint4x3 to use to compute componentwise greater than. + /// bool4x3 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator > (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2); } /// Returns the result of a componentwise greater or equal operation on two uint4x3 matrices. + /// Left hand side uint4x3 to use to compute componentwise greater or equal. + /// Right hand side uint4x3 to use to compute componentwise greater or equal. + /// bool4x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator >= (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2); } /// Returns the result of a componentwise greater or equal operation on a uint4x3 matrix and a uint value. + /// Left hand side uint4x3 to use to compute componentwise greater or equal. + /// Right hand side uint to use to compute componentwise greater or equal. + /// bool4x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator >= (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a uint value and a uint4x3 matrix. + /// Left hand side uint to use to compute componentwise greater or equal. + /// Right hand side uint4x3 to use to compute componentwise greater or equal. + /// bool4x3 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator >= (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2); } /// Returns the result of a componentwise unary minus operation on a uint4x3 matrix. + /// Value to use when computing the componentwise unary minus. + /// uint4x3 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator - (uint4x3 val) { return new uint4x3 (-val.c0, -val.c1, -val.c2); } /// Returns the result of a componentwise unary plus operation on a uint4x3 matrix. + /// Value to use when computing the componentwise unary plus. + /// uint4x3 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator + (uint4x3 val) { return new uint4x3 (+val.c0, +val.c1, +val.c2); } /// Returns the result of a componentwise left shift operation on a uint4x3 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator << (uint4x3 x, int n) { return new uint4x3 (x.c0 << n, x.c1 << n, x.c2 << n); } /// Returns the result of a componentwise right shift operation on a uint4x3 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator >> (uint4x3 x, int n) { return new uint4x3 (x.c0 >> n, x.c1 >> n, x.c2 >> n); } /// Returns the result of a componentwise equality operation on two uint4x3 matrices. + /// Left hand side uint4x3 to use to compute componentwise equality. + /// Right hand side uint4x3 to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2); } /// Returns the result of a componentwise equality operation on a uint4x3 matrix and a uint value. + /// Left hand side uint4x3 to use to compute componentwise equality. + /// Right hand side uint to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs); } /// Returns the result of a componentwise equality operation on a uint value and a uint4x3 matrix. + /// Left hand side uint to use to compute componentwise equality. + /// Right hand side uint4x3 to use to compute componentwise equality. + /// bool4x3 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator == (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2); } /// Returns the result of a componentwise not equal operation on two uint4x3 matrices. + /// Left hand side uint4x3 to use to compute componentwise not equal. + /// Right hand side uint4x3 to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (uint4x3 lhs, uint4x3 rhs) { return new bool4x3 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2); } /// Returns the result of a componentwise not equal operation on a uint4x3 matrix and a uint value. + /// Left hand side uint4x3 to use to compute componentwise not equal. + /// Right hand side uint to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (uint4x3 lhs, uint rhs) { return new bool4x3 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs); } /// Returns the result of a componentwise not equal operation on a uint value and a uint4x3 matrix. + /// Left hand side uint to use to compute componentwise not equal. + /// Right hand side uint4x3 to use to compute componentwise not equal. + /// bool4x3 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x3 operator != (uint lhs, uint4x3 rhs) { return new bool4x3 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2); } /// Returns the result of a componentwise bitwise not operation on a uint4x3 matrix. + /// Value to use when computing the componentwise bitwise not. + /// uint4x3 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator ~ (uint4x3 val) { return new uint4x3 (~val.c0, ~val.c1, ~val.c2); } /// Returns the result of a componentwise bitwise and operation on two uint4x3 matrices. + /// Left hand side uint4x3 to use to compute componentwise bitwise and. + /// Right hand side uint4x3 to use to compute componentwise bitwise and. + /// uint4x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator & (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2); } /// Returns the result of a componentwise bitwise and operation on a uint4x3 matrix and a uint value. + /// Left hand side uint4x3 to use to compute componentwise bitwise and. + /// Right hand side uint to use to compute componentwise bitwise and. + /// uint4x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator & (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs); } /// Returns the result of a componentwise bitwise and operation on a uint value and a uint4x3 matrix. + /// Left hand side uint to use to compute componentwise bitwise and. + /// Right hand side uint4x3 to use to compute componentwise bitwise and. + /// uint4x3 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator & (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2); } /// Returns the result of a componentwise bitwise or operation on two uint4x3 matrices. + /// Left hand side uint4x3 to use to compute componentwise bitwise or. + /// Right hand side uint4x3 to use to compute componentwise bitwise or. + /// uint4x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator | (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2); } /// Returns the result of a componentwise bitwise or operation on a uint4x3 matrix and a uint value. + /// Left hand side uint4x3 to use to compute componentwise bitwise or. + /// Right hand side uint to use to compute componentwise bitwise or. + /// uint4x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator | (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs); } /// Returns the result of a componentwise bitwise or operation on a uint value and a uint4x3 matrix. + /// Left hand side uint to use to compute componentwise bitwise or. + /// Right hand side uint4x3 to use to compute componentwise bitwise or. + /// uint4x3 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator | (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on two uint4x3 matrices. + /// Left hand side uint4x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint4x3 to use to compute componentwise bitwise exclusive or. + /// uint4x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator ^ (uint4x3 lhs, uint4x3 rhs) { return new uint4x3 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint4x3 matrix and a uint value. + /// Left hand side uint4x3 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint to use to compute componentwise bitwise exclusive or. + /// uint4x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator ^ (uint4x3 lhs, uint rhs) { return new uint4x3 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint4x3 matrix. + /// Left hand side uint to use to compute componentwise bitwise exclusive or. + /// Right hand side uint4x3 to use to compute componentwise bitwise exclusive or. + /// uint4x3 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 operator ^ (uint lhs, uint4x3 rhs) { return new uint4x3 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2); } @@ -395,19 +583,25 @@ unsafe public ref uint4 this[int index] } /// Returns true if the uint4x3 is equal to a given uint4x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint4x3 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2); } /// Returns true if the uint4x3 is equal to a given uint4x3, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is uint4x3 converted && Equals(converted); } /// Returns a hash code for the uint4x3. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the uint4x3. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -415,6 +609,9 @@ public override string ToString() } /// Returns a string representation of the uint4x3 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -426,10 +623,27 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a uint4x3 matrix constructed from three uint4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// uint4x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 uint4x3(uint4 c0, uint4 c1, uint4 c2) { return new uint4x3(c0, c1, c2); } /// Returns a uint4x3 matrix constructed from from 12 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// uint4x3 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 uint4x3(uint m00, uint m01, uint m02, uint m10, uint m11, uint m12, @@ -443,42 +657,62 @@ public static uint4x3 uint4x3(uint m00, uint m01, uint m02, } /// Returns a uint4x3 matrix constructed from a single uint value by assigning it to every component. + /// uint to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 uint4x3(uint v) { return new uint4x3(v); } /// Returns a uint4x3 matrix constructed from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 uint4x3(bool v) { return new uint4x3(v); } /// Return a uint4x3 matrix constructed from a bool4x3 matrix by componentwise conversion. + /// bool4x3 to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 uint4x3(bool4x3 v) { return new uint4x3(v); } /// Returns a uint4x3 matrix constructed from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 uint4x3(int v) { return new uint4x3(v); } /// Return a uint4x3 matrix constructed from a int4x3 matrix by componentwise conversion. + /// int4x3 to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 uint4x3(int4x3 v) { return new uint4x3(v); } /// Returns a uint4x3 matrix constructed from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 uint4x3(float v) { return new uint4x3(v); } /// Return a uint4x3 matrix constructed from a float4x3 matrix by componentwise conversion. + /// float4x3 to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 uint4x3(float4x3 v) { return new uint4x3(v); } /// Returns a uint4x3 matrix constructed from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 uint4x3(double v) { return new uint4x3(v); } /// Return a uint4x3 matrix constructed from a double4x3 matrix by componentwise conversion. + /// double4x3 to convert to uint4x3 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x3 uint4x3(double4x3 v) { return new uint4x3(v); } /// Return the uint3x4 transpose of a uint4x3 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint3x4 transpose(uint4x3 v) { @@ -488,7 +722,9 @@ public static uint3x4 transpose(uint4x3 v) v.c2.x, v.c2.y, v.c2.z, v.c2.w); } - /// Returns a uint hash code of a uint4x3 vector. + /// Returns a uint hash code of a uint4x3 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(uint4x3 v) { @@ -498,10 +734,12 @@ public static uint hash(uint4x3 v) } /// - /// Returns a uint4 vector hash code of a uint4x3 vector. + /// Returns a uint4 vector hash code of a uint4x3 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(uint4x3 v) { diff --git a/src/Unity.Mathematics/uint4x4.gen.cs b/src/Unity.Mathematics/uint4x4.gen.cs index 692154cf..9948f54f 100644 --- a/src/Unity.Mathematics/uint4x4.gen.cs +++ b/src/Unity.Mathematics/uint4x4.gen.cs @@ -14,13 +14,18 @@ namespace Unity.Mathematics { + /// A 4x4 matrix of uints. [System.Serializable] [Il2CppEagerStaticClassConstruction] public partial struct uint4x4 : System.IEquatable, IFormattable { + /// Column 0 of the matrix. public uint4 c0; + /// Column 1 of the matrix. public uint4 c1; + /// Column 2 of the matrix. public uint4 c2; + /// Column 3 of the matrix. public uint4 c3; /// uint4x4 identity transform. @@ -30,6 +35,10 @@ public partial struct uint4x4 : System.IEquatable, IFormattable public static readonly uint4x4 zero; /// Constructs a uint4x4 matrix from four uint4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x4(uint4 c0, uint4 c1, uint4 c2, uint4 c3) { @@ -40,6 +49,22 @@ public uint4x4(uint4 c0, uint4 c1, uint4 c2, uint4 c3) } /// Constructs a uint4x4 matrix from 16 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// The matrix at row 3, column 3 will be set to this value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x4(uint m00, uint m01, uint m02, uint m03, uint m10, uint m11, uint m12, uint m13, @@ -53,6 +78,7 @@ public uint4x4(uint m00, uint m01, uint m02, uint m03, } /// Constructs a uint4x4 matrix from a single uint value by assigning it to every component. + /// uint to convert to uint4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x4(uint v) { @@ -63,6 +89,7 @@ public uint4x4(uint v) } /// Constructs a uint4x4 matrix from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x4(bool v) { @@ -73,6 +100,7 @@ public uint4x4(bool v) } /// Constructs a uint4x4 matrix from a bool4x4 matrix by componentwise conversion. + /// bool4x4 to convert to uint4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x4(bool4x4 v) { @@ -83,6 +111,7 @@ public uint4x4(bool4x4 v) } /// Constructs a uint4x4 matrix from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x4(int v) { @@ -93,6 +122,7 @@ public uint4x4(int v) } /// Constructs a uint4x4 matrix from a int4x4 matrix by componentwise conversion. + /// int4x4 to convert to uint4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x4(int4x4 v) { @@ -103,6 +133,7 @@ public uint4x4(int4x4 v) } /// Constructs a uint4x4 matrix from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x4(float v) { @@ -113,6 +144,7 @@ public uint4x4(float v) } /// Constructs a uint4x4 matrix from a float4x4 matrix by componentwise conversion. + /// float4x4 to convert to uint4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x4(float4x4 v) { @@ -123,6 +155,7 @@ public uint4x4(float4x4 v) } /// Constructs a uint4x4 matrix from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x4(double v) { @@ -133,6 +166,7 @@ public uint4x4(double v) } /// Constructs a uint4x4 matrix from a double4x4 matrix by componentwise conversion. + /// double4x4 to convert to uint4x4 [MethodImpl(MethodImplOptions.AggressiveInlining)] public uint4x4(double4x4 v) { @@ -144,253 +178,413 @@ public uint4x4(double4x4 v) /// Implicitly converts a single uint value to a uint4x4 matrix by assigning it to every component. + /// uint to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator uint4x4(uint v) { return new uint4x4(v); } /// Explicitly converts a single bool value to a uint4x4 matrix by converting it to uint and assigning it to every component. + /// bool to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x4(bool v) { return new uint4x4(v); } /// Explicitly converts a bool4x4 matrix to a uint4x4 matrix by componentwise conversion. + /// bool4x4 to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x4(bool4x4 v) { return new uint4x4(v); } /// Explicitly converts a single int value to a uint4x4 matrix by converting it to uint and assigning it to every component. + /// int to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x4(int v) { return new uint4x4(v); } /// Explicitly converts a int4x4 matrix to a uint4x4 matrix by componentwise conversion. + /// int4x4 to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x4(int4x4 v) { return new uint4x4(v); } /// Explicitly converts a single float value to a uint4x4 matrix by converting it to uint and assigning it to every component. + /// float to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x4(float v) { return new uint4x4(v); } /// Explicitly converts a float4x4 matrix to a uint4x4 matrix by componentwise conversion. + /// float4x4 to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x4(float4x4 v) { return new uint4x4(v); } /// Explicitly converts a single double value to a uint4x4 matrix by converting it to uint and assigning it to every component. + /// double to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x4(double v) { return new uint4x4(v); } /// Explicitly converts a double4x4 matrix to a uint4x4 matrix by componentwise conversion. + /// double4x4 to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static explicit operator uint4x4(double4x4 v) { return new uint4x4(v); } /// Returns the result of a componentwise multiplication operation on two uint4x4 matrices. + /// Left hand side uint4x4 to use to compute componentwise multiplication. + /// Right hand side uint4x4 to use to compute componentwise multiplication. + /// uint4x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator * (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 * rhs.c0, lhs.c1 * rhs.c1, lhs.c2 * rhs.c2, lhs.c3 * rhs.c3); } /// Returns the result of a componentwise multiplication operation on a uint4x4 matrix and a uint value. + /// Left hand side uint4x4 to use to compute componentwise multiplication. + /// Right hand side uint to use to compute componentwise multiplication. + /// uint4x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator * (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 * rhs, lhs.c1 * rhs, lhs.c2 * rhs, lhs.c3 * rhs); } /// Returns the result of a componentwise multiplication operation on a uint value and a uint4x4 matrix. + /// Left hand side uint to use to compute componentwise multiplication. + /// Right hand side uint4x4 to use to compute componentwise multiplication. + /// uint4x4 result of the componentwise multiplication. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator * (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs * rhs.c0, lhs * rhs.c1, lhs * rhs.c2, lhs * rhs.c3); } /// Returns the result of a componentwise addition operation on two uint4x4 matrices. + /// Left hand side uint4x4 to use to compute componentwise addition. + /// Right hand side uint4x4 to use to compute componentwise addition. + /// uint4x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator + (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 + rhs.c0, lhs.c1 + rhs.c1, lhs.c2 + rhs.c2, lhs.c3 + rhs.c3); } /// Returns the result of a componentwise addition operation on a uint4x4 matrix and a uint value. + /// Left hand side uint4x4 to use to compute componentwise addition. + /// Right hand side uint to use to compute componentwise addition. + /// uint4x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator + (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 + rhs, lhs.c1 + rhs, lhs.c2 + rhs, lhs.c3 + rhs); } /// Returns the result of a componentwise addition operation on a uint value and a uint4x4 matrix. + /// Left hand side uint to use to compute componentwise addition. + /// Right hand side uint4x4 to use to compute componentwise addition. + /// uint4x4 result of the componentwise addition. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator + (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs + rhs.c0, lhs + rhs.c1, lhs + rhs.c2, lhs + rhs.c3); } /// Returns the result of a componentwise subtraction operation on two uint4x4 matrices. + /// Left hand side uint4x4 to use to compute componentwise subtraction. + /// Right hand side uint4x4 to use to compute componentwise subtraction. + /// uint4x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator - (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 - rhs.c0, lhs.c1 - rhs.c1, lhs.c2 - rhs.c2, lhs.c3 - rhs.c3); } /// Returns the result of a componentwise subtraction operation on a uint4x4 matrix and a uint value. + /// Left hand side uint4x4 to use to compute componentwise subtraction. + /// Right hand side uint to use to compute componentwise subtraction. + /// uint4x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator - (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 - rhs, lhs.c1 - rhs, lhs.c2 - rhs, lhs.c3 - rhs); } /// Returns the result of a componentwise subtraction operation on a uint value and a uint4x4 matrix. + /// Left hand side uint to use to compute componentwise subtraction. + /// Right hand side uint4x4 to use to compute componentwise subtraction. + /// uint4x4 result of the componentwise subtraction. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator - (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs - rhs.c0, lhs - rhs.c1, lhs - rhs.c2, lhs - rhs.c3); } /// Returns the result of a componentwise division operation on two uint4x4 matrices. + /// Left hand side uint4x4 to use to compute componentwise division. + /// Right hand side uint4x4 to use to compute componentwise division. + /// uint4x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator / (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 / rhs.c0, lhs.c1 / rhs.c1, lhs.c2 / rhs.c2, lhs.c3 / rhs.c3); } /// Returns the result of a componentwise division operation on a uint4x4 matrix and a uint value. + /// Left hand side uint4x4 to use to compute componentwise division. + /// Right hand side uint to use to compute componentwise division. + /// uint4x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator / (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 / rhs, lhs.c1 / rhs, lhs.c2 / rhs, lhs.c3 / rhs); } /// Returns the result of a componentwise division operation on a uint value and a uint4x4 matrix. + /// Left hand side uint to use to compute componentwise division. + /// Right hand side uint4x4 to use to compute componentwise division. + /// uint4x4 result of the componentwise division. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator / (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs / rhs.c0, lhs / rhs.c1, lhs / rhs.c2, lhs / rhs.c3); } /// Returns the result of a componentwise modulus operation on two uint4x4 matrices. + /// Left hand side uint4x4 to use to compute componentwise modulus. + /// Right hand side uint4x4 to use to compute componentwise modulus. + /// uint4x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator % (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 % rhs.c0, lhs.c1 % rhs.c1, lhs.c2 % rhs.c2, lhs.c3 % rhs.c3); } /// Returns the result of a componentwise modulus operation on a uint4x4 matrix and a uint value. + /// Left hand side uint4x4 to use to compute componentwise modulus. + /// Right hand side uint to use to compute componentwise modulus. + /// uint4x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator % (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 % rhs, lhs.c1 % rhs, lhs.c2 % rhs, lhs.c3 % rhs); } /// Returns the result of a componentwise modulus operation on a uint value and a uint4x4 matrix. + /// Left hand side uint to use to compute componentwise modulus. + /// Right hand side uint4x4 to use to compute componentwise modulus. + /// uint4x4 result of the componentwise modulus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator % (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs % rhs.c0, lhs % rhs.c1, lhs % rhs.c2, lhs % rhs.c3); } /// Returns the result of a componentwise increment operation on a uint4x4 matrix. + /// Value to use when computing the componentwise increment. + /// uint4x4 result of the componentwise increment. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator ++ (uint4x4 val) { return new uint4x4 (++val.c0, ++val.c1, ++val.c2, ++val.c3); } /// Returns the result of a componentwise decrement operation on a uint4x4 matrix. + /// Value to use when computing the componentwise decrement. + /// uint4x4 result of the componentwise decrement. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator -- (uint4x4 val) { return new uint4x4 (--val.c0, --val.c1, --val.c2, --val.c3); } /// Returns the result of a componentwise less than operation on two uint4x4 matrices. + /// Left hand side uint4x4 to use to compute componentwise less than. + /// Right hand side uint4x4 to use to compute componentwise less than. + /// bool4x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator < (uint4x4 lhs, uint4x4 rhs) { return new bool4x4 (lhs.c0 < rhs.c0, lhs.c1 < rhs.c1, lhs.c2 < rhs.c2, lhs.c3 < rhs.c3); } /// Returns the result of a componentwise less than operation on a uint4x4 matrix and a uint value. + /// Left hand side uint4x4 to use to compute componentwise less than. + /// Right hand side uint to use to compute componentwise less than. + /// bool4x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator < (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 < rhs, lhs.c1 < rhs, lhs.c2 < rhs, lhs.c3 < rhs); } /// Returns the result of a componentwise less than operation on a uint value and a uint4x4 matrix. + /// Left hand side uint to use to compute componentwise less than. + /// Right hand side uint4x4 to use to compute componentwise less than. + /// bool4x4 result of the componentwise less than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator < (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs < rhs.c0, lhs < rhs.c1, lhs < rhs.c2, lhs < rhs.c3); } /// Returns the result of a componentwise less or equal operation on two uint4x4 matrices. + /// Left hand side uint4x4 to use to compute componentwise less or equal. + /// Right hand side uint4x4 to use to compute componentwise less or equal. + /// bool4x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator <= (uint4x4 lhs, uint4x4 rhs) { return new bool4x4 (lhs.c0 <= rhs.c0, lhs.c1 <= rhs.c1, lhs.c2 <= rhs.c2, lhs.c3 <= rhs.c3); } /// Returns the result of a componentwise less or equal operation on a uint4x4 matrix and a uint value. + /// Left hand side uint4x4 to use to compute componentwise less or equal. + /// Right hand side uint to use to compute componentwise less or equal. + /// bool4x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator <= (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 <= rhs, lhs.c1 <= rhs, lhs.c2 <= rhs, lhs.c3 <= rhs); } /// Returns the result of a componentwise less or equal operation on a uint value and a uint4x4 matrix. + /// Left hand side uint to use to compute componentwise less or equal. + /// Right hand side uint4x4 to use to compute componentwise less or equal. + /// bool4x4 result of the componentwise less or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator <= (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs <= rhs.c0, lhs <= rhs.c1, lhs <= rhs.c2, lhs <= rhs.c3); } /// Returns the result of a componentwise greater than operation on two uint4x4 matrices. + /// Left hand side uint4x4 to use to compute componentwise greater than. + /// Right hand side uint4x4 to use to compute componentwise greater than. + /// bool4x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator > (uint4x4 lhs, uint4x4 rhs) { return new bool4x4 (lhs.c0 > rhs.c0, lhs.c1 > rhs.c1, lhs.c2 > rhs.c2, lhs.c3 > rhs.c3); } /// Returns the result of a componentwise greater than operation on a uint4x4 matrix and a uint value. + /// Left hand side uint4x4 to use to compute componentwise greater than. + /// Right hand side uint to use to compute componentwise greater than. + /// bool4x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator > (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 > rhs, lhs.c1 > rhs, lhs.c2 > rhs, lhs.c3 > rhs); } /// Returns the result of a componentwise greater than operation on a uint value and a uint4x4 matrix. + /// Left hand side uint to use to compute componentwise greater than. + /// Right hand side uint4x4 to use to compute componentwise greater than. + /// bool4x4 result of the componentwise greater than. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator > (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs > rhs.c0, lhs > rhs.c1, lhs > rhs.c2, lhs > rhs.c3); } /// Returns the result of a componentwise greater or equal operation on two uint4x4 matrices. + /// Left hand side uint4x4 to use to compute componentwise greater or equal. + /// Right hand side uint4x4 to use to compute componentwise greater or equal. + /// bool4x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator >= (uint4x4 lhs, uint4x4 rhs) { return new bool4x4 (lhs.c0 >= rhs.c0, lhs.c1 >= rhs.c1, lhs.c2 >= rhs.c2, lhs.c3 >= rhs.c3); } /// Returns the result of a componentwise greater or equal operation on a uint4x4 matrix and a uint value. + /// Left hand side uint4x4 to use to compute componentwise greater or equal. + /// Right hand side uint to use to compute componentwise greater or equal. + /// bool4x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator >= (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 >= rhs, lhs.c1 >= rhs, lhs.c2 >= rhs, lhs.c3 >= rhs); } /// Returns the result of a componentwise greater or equal operation on a uint value and a uint4x4 matrix. + /// Left hand side uint to use to compute componentwise greater or equal. + /// Right hand side uint4x4 to use to compute componentwise greater or equal. + /// bool4x4 result of the componentwise greater or equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator >= (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs >= rhs.c0, lhs >= rhs.c1, lhs >= rhs.c2, lhs >= rhs.c3); } /// Returns the result of a componentwise unary minus operation on a uint4x4 matrix. + /// Value to use when computing the componentwise unary minus. + /// uint4x4 result of the componentwise unary minus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator - (uint4x4 val) { return new uint4x4 (-val.c0, -val.c1, -val.c2, -val.c3); } /// Returns the result of a componentwise unary plus operation on a uint4x4 matrix. + /// Value to use when computing the componentwise unary plus. + /// uint4x4 result of the componentwise unary plus. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator + (uint4x4 val) { return new uint4x4 (+val.c0, +val.c1, +val.c2, +val.c3); } /// Returns the result of a componentwise left shift operation on a uint4x4 matrix by a number of bits specified by a single int. + /// The matrix to left shift. + /// The number of bits to left shift. + /// The result of the componentwise left shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator << (uint4x4 x, int n) { return new uint4x4 (x.c0 << n, x.c1 << n, x.c2 << n, x.c3 << n); } /// Returns the result of a componentwise right shift operation on a uint4x4 matrix by a number of bits specified by a single int. + /// The matrix to right shift. + /// The number of bits to right shift. + /// The result of the componentwise right shift. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator >> (uint4x4 x, int n) { return new uint4x4 (x.c0 >> n, x.c1 >> n, x.c2 >> n, x.c3 >> n); } /// Returns the result of a componentwise equality operation on two uint4x4 matrices. + /// Left hand side uint4x4 to use to compute componentwise equality. + /// Right hand side uint4x4 to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (uint4x4 lhs, uint4x4 rhs) { return new bool4x4 (lhs.c0 == rhs.c0, lhs.c1 == rhs.c1, lhs.c2 == rhs.c2, lhs.c3 == rhs.c3); } /// Returns the result of a componentwise equality operation on a uint4x4 matrix and a uint value. + /// Left hand side uint4x4 to use to compute componentwise equality. + /// Right hand side uint to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 == rhs, lhs.c1 == rhs, lhs.c2 == rhs, lhs.c3 == rhs); } /// Returns the result of a componentwise equality operation on a uint value and a uint4x4 matrix. + /// Left hand side uint to use to compute componentwise equality. + /// Right hand side uint4x4 to use to compute componentwise equality. + /// bool4x4 result of the componentwise equality. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator == (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs == rhs.c0, lhs == rhs.c1, lhs == rhs.c2, lhs == rhs.c3); } /// Returns the result of a componentwise not equal operation on two uint4x4 matrices. + /// Left hand side uint4x4 to use to compute componentwise not equal. + /// Right hand side uint4x4 to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (uint4x4 lhs, uint4x4 rhs) { return new bool4x4 (lhs.c0 != rhs.c0, lhs.c1 != rhs.c1, lhs.c2 != rhs.c2, lhs.c3 != rhs.c3); } /// Returns the result of a componentwise not equal operation on a uint4x4 matrix and a uint value. + /// Left hand side uint4x4 to use to compute componentwise not equal. + /// Right hand side uint to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (uint4x4 lhs, uint rhs) { return new bool4x4 (lhs.c0 != rhs, lhs.c1 != rhs, lhs.c2 != rhs, lhs.c3 != rhs); } /// Returns the result of a componentwise not equal operation on a uint value and a uint4x4 matrix. + /// Left hand side uint to use to compute componentwise not equal. + /// Right hand side uint4x4 to use to compute componentwise not equal. + /// bool4x4 result of the componentwise not equal. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool4x4 operator != (uint lhs, uint4x4 rhs) { return new bool4x4 (lhs != rhs.c0, lhs != rhs.c1, lhs != rhs.c2, lhs != rhs.c3); } /// Returns the result of a componentwise bitwise not operation on a uint4x4 matrix. + /// Value to use when computing the componentwise bitwise not. + /// uint4x4 result of the componentwise bitwise not. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator ~ (uint4x4 val) { return new uint4x4 (~val.c0, ~val.c1, ~val.c2, ~val.c3); } /// Returns the result of a componentwise bitwise and operation on two uint4x4 matrices. + /// Left hand side uint4x4 to use to compute componentwise bitwise and. + /// Right hand side uint4x4 to use to compute componentwise bitwise and. + /// uint4x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator & (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 & rhs.c0, lhs.c1 & rhs.c1, lhs.c2 & rhs.c2, lhs.c3 & rhs.c3); } /// Returns the result of a componentwise bitwise and operation on a uint4x4 matrix and a uint value. + /// Left hand side uint4x4 to use to compute componentwise bitwise and. + /// Right hand side uint to use to compute componentwise bitwise and. + /// uint4x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator & (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 & rhs, lhs.c1 & rhs, lhs.c2 & rhs, lhs.c3 & rhs); } /// Returns the result of a componentwise bitwise and operation on a uint value and a uint4x4 matrix. + /// Left hand side uint to use to compute componentwise bitwise and. + /// Right hand side uint4x4 to use to compute componentwise bitwise and. + /// uint4x4 result of the componentwise bitwise and. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator & (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs & rhs.c0, lhs & rhs.c1, lhs & rhs.c2, lhs & rhs.c3); } /// Returns the result of a componentwise bitwise or operation on two uint4x4 matrices. + /// Left hand side uint4x4 to use to compute componentwise bitwise or. + /// Right hand side uint4x4 to use to compute componentwise bitwise or. + /// uint4x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator | (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 | rhs.c0, lhs.c1 | rhs.c1, lhs.c2 | rhs.c2, lhs.c3 | rhs.c3); } /// Returns the result of a componentwise bitwise or operation on a uint4x4 matrix and a uint value. + /// Left hand side uint4x4 to use to compute componentwise bitwise or. + /// Right hand side uint to use to compute componentwise bitwise or. + /// uint4x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator | (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 | rhs, lhs.c1 | rhs, lhs.c2 | rhs, lhs.c3 | rhs); } /// Returns the result of a componentwise bitwise or operation on a uint value and a uint4x4 matrix. + /// Left hand side uint to use to compute componentwise bitwise or. + /// Right hand side uint4x4 to use to compute componentwise bitwise or. + /// uint4x4 result of the componentwise bitwise or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator | (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs | rhs.c0, lhs | rhs.c1, lhs | rhs.c2, lhs | rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on two uint4x4 matrices. + /// Left hand side uint4x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint4x4 to use to compute componentwise bitwise exclusive or. + /// uint4x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator ^ (uint4x4 lhs, uint4x4 rhs) { return new uint4x4 (lhs.c0 ^ rhs.c0, lhs.c1 ^ rhs.c1, lhs.c2 ^ rhs.c2, lhs.c3 ^ rhs.c3); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint4x4 matrix and a uint value. + /// Left hand side uint4x4 to use to compute componentwise bitwise exclusive or. + /// Right hand side uint to use to compute componentwise bitwise exclusive or. + /// uint4x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator ^ (uint4x4 lhs, uint rhs) { return new uint4x4 (lhs.c0 ^ rhs, lhs.c1 ^ rhs, lhs.c2 ^ rhs, lhs.c3 ^ rhs); } /// Returns the result of a componentwise bitwise exclusive or operation on a uint value and a uint4x4 matrix. + /// Left hand side uint to use to compute componentwise bitwise exclusive or. + /// Right hand side uint4x4 to use to compute componentwise bitwise exclusive or. + /// uint4x4 result of the componentwise bitwise exclusive or. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 operator ^ (uint lhs, uint4x4 rhs) { return new uint4x4 (lhs ^ rhs.c0, lhs ^ rhs.c1, lhs ^ rhs.c2, lhs ^ rhs.c3); } @@ -410,19 +604,25 @@ unsafe public ref uint4 this[int index] } /// Returns true if the uint4x4 is equal to a given uint4x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(uint4x4 rhs) { return c0.Equals(rhs.c0) && c1.Equals(rhs.c1) && c2.Equals(rhs.c2) && c3.Equals(rhs.c3); } /// Returns true if the uint4x4 is equal to a given uint4x4, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is uint4x4 converted && Equals(converted); } /// Returns a hash code for the uint4x4. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)math.hash(this); } /// Returns a string representation of the uint4x4. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -430,6 +630,9 @@ public override string ToString() } /// Returns a string representation of the uint4x4 using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -441,10 +644,32 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { /// Returns a uint4x4 matrix constructed from four uint4 vectors. + /// The matrix column c0 will be set to this value. + /// The matrix column c1 will be set to this value. + /// The matrix column c2 will be set to this value. + /// The matrix column c3 will be set to this value. + /// uint4x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 uint4x4(uint4 c0, uint4 c1, uint4 c2, uint4 c3) { return new uint4x4(c0, c1, c2, c3); } /// Returns a uint4x4 matrix constructed from from 16 uint values given in row-major order. + /// The matrix at row 0, column 0 will be set to this value. + /// The matrix at row 0, column 1 will be set to this value. + /// The matrix at row 0, column 2 will be set to this value. + /// The matrix at row 0, column 3 will be set to this value. + /// The matrix at row 1, column 0 will be set to this value. + /// The matrix at row 1, column 1 will be set to this value. + /// The matrix at row 1, column 2 will be set to this value. + /// The matrix at row 1, column 3 will be set to this value. + /// The matrix at row 2, column 0 will be set to this value. + /// The matrix at row 2, column 1 will be set to this value. + /// The matrix at row 2, column 2 will be set to this value. + /// The matrix at row 2, column 3 will be set to this value. + /// The matrix at row 3, column 0 will be set to this value. + /// The matrix at row 3, column 1 will be set to this value. + /// The matrix at row 3, column 2 will be set to this value. + /// The matrix at row 3, column 3 will be set to this value. + /// uint4x4 constructed from arguments. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 uint4x4(uint m00, uint m01, uint m02, uint m03, uint m10, uint m11, uint m12, uint m13, @@ -458,42 +683,62 @@ public static uint4x4 uint4x4(uint m00, uint m01, uint m02, uint m03, } /// Returns a uint4x4 matrix constructed from a single uint value by assigning it to every component. + /// uint to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 uint4x4(uint v) { return new uint4x4(v); } /// Returns a uint4x4 matrix constructed from a single bool value by converting it to uint and assigning it to every component. + /// bool to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 uint4x4(bool v) { return new uint4x4(v); } /// Return a uint4x4 matrix constructed from a bool4x4 matrix by componentwise conversion. + /// bool4x4 to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 uint4x4(bool4x4 v) { return new uint4x4(v); } /// Returns a uint4x4 matrix constructed from a single int value by converting it to uint and assigning it to every component. + /// int to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 uint4x4(int v) { return new uint4x4(v); } /// Return a uint4x4 matrix constructed from a int4x4 matrix by componentwise conversion. + /// int4x4 to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 uint4x4(int4x4 v) { return new uint4x4(v); } /// Returns a uint4x4 matrix constructed from a single float value by converting it to uint and assigning it to every component. + /// float to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 uint4x4(float v) { return new uint4x4(v); } /// Return a uint4x4 matrix constructed from a float4x4 matrix by componentwise conversion. + /// float4x4 to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 uint4x4(float4x4 v) { return new uint4x4(v); } /// Returns a uint4x4 matrix constructed from a single double value by converting it to uint and assigning it to every component. + /// double to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 uint4x4(double v) { return new uint4x4(v); } /// Return a uint4x4 matrix constructed from a double4x4 matrix by componentwise conversion. + /// double4x4 to convert to uint4x4 + /// Converted value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 uint4x4(double4x4 v) { return new uint4x4(v); } /// Return the uint4x4 transpose of a uint4x4 matrix. + /// Value to transpose. + /// Transposed value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4x4 transpose(uint4x4 v) { @@ -504,7 +749,9 @@ public static uint4x4 transpose(uint4x4 v) v.c3.x, v.c3.y, v.c3.z, v.c3.w); } - /// Returns a uint hash code of a uint4x4 vector. + /// Returns a uint hash code of a uint4x4 matrix. + /// Matrix value to hash. + /// uint hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(uint4x4 v) { @@ -515,10 +762,12 @@ public static uint hash(uint4x4 v) } /// - /// Returns a uint4 vector hash code of a uint4x4 vector. + /// Returns a uint4 vector hash code of a uint4x4 matrix. /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash /// that are only reduced to a narrow uint hash at the very end instead of at every step. /// + /// Matrix value to hash. + /// uint4 hash of the argument. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(uint4x4 v) { From c0ac04f3a84275845d5b39270cfe38027cbe04ac Mon Sep 17 00:00:00 2001 From: Kevin MacAulay Vacheresse Date: Mon, 15 Mar 2021 21:37:09 -0600 Subject: [PATCH 339/437] Upgrades generated tests to improve the comment message to tell users how to regenerate and removes the use of .Definition which is not supported in the 2.0+ line of test-framework.performance --- src/Tests/Tests/Shared/TestBool2.gen.cs | 2 +- src/Tests/Tests/Shared/TestBool2x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestBool2x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestBool2x4.gen.cs | 2 +- src/Tests/Tests/Shared/TestBool3.gen.cs | 2 +- src/Tests/Tests/Shared/TestBool3x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestBool3x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestBool3x4.gen.cs | 2 +- src/Tests/Tests/Shared/TestBool4.gen.cs | 2 +- src/Tests/Tests/Shared/TestBool4x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestBool4x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestBool4x4.gen.cs | 2 +- src/Tests/Tests/Shared/TestDouble2.gen.cs | 2 +- src/Tests/Tests/Shared/TestDouble2x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestDouble2x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestDouble2x4.gen.cs | 2 +- src/Tests/Tests/Shared/TestDouble3.gen.cs | 2 +- src/Tests/Tests/Shared/TestDouble3x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestDouble3x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestDouble3x4.gen.cs | 2 +- src/Tests/Tests/Shared/TestDouble4.gen.cs | 2 +- src/Tests/Tests/Shared/TestDouble4x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestDouble4x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestDouble4x4.gen.cs | 2 +- src/Tests/Tests/Shared/TestFloat2.gen.cs | 2 +- src/Tests/Tests/Shared/TestFloat2x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestFloat2x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestFloat2x4.gen.cs | 2 +- src/Tests/Tests/Shared/TestFloat3.gen.cs | 2 +- src/Tests/Tests/Shared/TestFloat3x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestFloat3x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestFloat3x4.gen.cs | 2 +- src/Tests/Tests/Shared/TestFloat4.gen.cs | 2 +- src/Tests/Tests/Shared/TestFloat4x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestFloat4x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestFloat4x4.gen.cs | 2 +- src/Tests/Tests/Shared/TestInt2.gen.cs | 2 +- src/Tests/Tests/Shared/TestInt2x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestInt2x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestInt2x4.gen.cs | 2 +- src/Tests/Tests/Shared/TestInt3.gen.cs | 2 +- src/Tests/Tests/Shared/TestInt3x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestInt3x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestInt3x4.gen.cs | 2 +- src/Tests/Tests/Shared/TestInt4.gen.cs | 2 +- src/Tests/Tests/Shared/TestInt4x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestInt4x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestInt4x4.gen.cs | 2 +- src/Tests/Tests/Shared/TestMath.gen.cs | 2 +- src/Tests/Tests/Shared/TestUint2.gen.cs | 2 +- src/Tests/Tests/Shared/TestUint2x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestUint2x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestUint2x4.gen.cs | 2 +- src/Tests/Tests/Shared/TestUint3.gen.cs | 2 +- src/Tests/Tests/Shared/TestUint3x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestUint3x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestUint3x4.gen.cs | 2 +- src/Tests/Tests/Shared/TestUint4.gen.cs | 2 +- src/Tests/Tests/Shared/TestUint4x2.gen.cs | 2 +- src/Tests/Tests/Shared/TestUint4x3.gen.cs | 2 +- src/Tests/Tests/Shared/TestUint4x4.gen.cs | 2 +- .../VectorGenerator.cs | 4 +- .../TestConversions.gen.cs | 20 +--------- .../TestFastInverse.gen.cs | 6 +-- .../TestHash.gen.cs | 28 +------------- .../TestInverse.gen.cs | 16 +------- .../TestMath.gen.cs | 6 +-- .../TestMinMaxAABB.gen.cs | 6 +-- .../TestMul.gen.cs | 16 +------- .../TestNoise.gen.cs | 38 +------------------ .../TestNormalize.gen.cs | 26 +------------ .../TestPlane.gen.cs | 4 +- .../TestRandom.gen.cs | 26 +------------ .../TestRotation.gen.cs | 16 +------- .../TestShuffle.gen.cs | 8 +--- .../TestTranspose.gen.cs | 14 +------ .../TestTrig.gen.cs | 10 +---- src/Unity.Mathematics/bool2.gen.cs | 2 +- src/Unity.Mathematics/bool2x2.gen.cs | 2 +- src/Unity.Mathematics/bool2x3.gen.cs | 2 +- src/Unity.Mathematics/bool2x4.gen.cs | 2 +- src/Unity.Mathematics/bool3.gen.cs | 2 +- src/Unity.Mathematics/bool3x2.gen.cs | 2 +- src/Unity.Mathematics/bool3x3.gen.cs | 2 +- src/Unity.Mathematics/bool3x4.gen.cs | 2 +- src/Unity.Mathematics/bool4.gen.cs | 2 +- src/Unity.Mathematics/bool4x2.gen.cs | 2 +- src/Unity.Mathematics/bool4x3.gen.cs | 2 +- src/Unity.Mathematics/bool4x4.gen.cs | 2 +- src/Unity.Mathematics/double2.gen.cs | 2 +- src/Unity.Mathematics/double2x2.gen.cs | 2 +- src/Unity.Mathematics/double2x3.gen.cs | 2 +- src/Unity.Mathematics/double2x4.gen.cs | 2 +- src/Unity.Mathematics/double3.gen.cs | 2 +- src/Unity.Mathematics/double3x2.gen.cs | 2 +- src/Unity.Mathematics/double3x3.gen.cs | 2 +- src/Unity.Mathematics/double3x4.gen.cs | 2 +- src/Unity.Mathematics/double4.gen.cs | 2 +- src/Unity.Mathematics/double4x2.gen.cs | 2 +- src/Unity.Mathematics/double4x3.gen.cs | 2 +- src/Unity.Mathematics/double4x4.gen.cs | 2 +- src/Unity.Mathematics/float2.gen.cs | 2 +- src/Unity.Mathematics/float2x2.gen.cs | 2 +- src/Unity.Mathematics/float2x3.gen.cs | 2 +- src/Unity.Mathematics/float2x4.gen.cs | 2 +- src/Unity.Mathematics/float3.gen.cs | 2 +- src/Unity.Mathematics/float3x2.gen.cs | 2 +- src/Unity.Mathematics/float3x3.gen.cs | 2 +- src/Unity.Mathematics/float3x4.gen.cs | 2 +- src/Unity.Mathematics/float4.gen.cs | 2 +- src/Unity.Mathematics/float4x2.gen.cs | 2 +- src/Unity.Mathematics/float4x3.gen.cs | 2 +- src/Unity.Mathematics/float4x4.gen.cs | 2 +- src/Unity.Mathematics/half2.gen.cs | 2 +- src/Unity.Mathematics/half3.gen.cs | 2 +- src/Unity.Mathematics/half4.gen.cs | 2 +- src/Unity.Mathematics/int2.gen.cs | 2 +- src/Unity.Mathematics/int2x2.gen.cs | 2 +- src/Unity.Mathematics/int2x3.gen.cs | 2 +- src/Unity.Mathematics/int2x4.gen.cs | 2 +- src/Unity.Mathematics/int3.gen.cs | 2 +- src/Unity.Mathematics/int3x2.gen.cs | 2 +- src/Unity.Mathematics/int3x3.gen.cs | 2 +- src/Unity.Mathematics/int3x4.gen.cs | 2 +- src/Unity.Mathematics/int4.gen.cs | 2 +- src/Unity.Mathematics/int4x2.gen.cs | 2 +- src/Unity.Mathematics/int4x3.gen.cs | 2 +- src/Unity.Mathematics/int4x4.gen.cs | 2 +- src/Unity.Mathematics/matrix.gen.cs | 2 +- src/Unity.Mathematics/uint2.gen.cs | 2 +- src/Unity.Mathematics/uint2x2.gen.cs | 2 +- src/Unity.Mathematics/uint2x3.gen.cs | 2 +- src/Unity.Mathematics/uint2x4.gen.cs | 2 +- src/Unity.Mathematics/uint3.gen.cs | 2 +- src/Unity.Mathematics/uint3x2.gen.cs | 2 +- src/Unity.Mathematics/uint3x3.gen.cs | 2 +- src/Unity.Mathematics/uint3x4.gen.cs | 2 +- src/Unity.Mathematics/uint4.gen.cs | 2 +- src/Unity.Mathematics/uint4x2.gen.cs | 2 +- src/Unity.Mathematics/uint4x3.gen.cs | 2 +- src/Unity.Mathematics/uint4x4.gen.cs | 2 +- 141 files changed, 141 insertions(+), 353 deletions(-) diff --git a/src/Tests/Tests/Shared/TestBool2.gen.cs b/src/Tests/Tests/Shared/TestBool2.gen.cs index e6611a21..3546ddd3 100644 --- a/src/Tests/Tests/Shared/TestBool2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestBool2x2.gen.cs b/src/Tests/Tests/Shared/TestBool2x2.gen.cs index 1e1796c1..dbfd2fa1 100644 --- a/src/Tests/Tests/Shared/TestBool2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestBool2x3.gen.cs b/src/Tests/Tests/Shared/TestBool2x3.gen.cs index 0a48b12b..e0f8f2d3 100644 --- a/src/Tests/Tests/Shared/TestBool2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestBool2x4.gen.cs b/src/Tests/Tests/Shared/TestBool2x4.gen.cs index 14783e3f..4200e9ee 100644 --- a/src/Tests/Tests/Shared/TestBool2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestBool3.gen.cs b/src/Tests/Tests/Shared/TestBool3.gen.cs index 445a9368..e6b69c43 100644 --- a/src/Tests/Tests/Shared/TestBool3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestBool3x2.gen.cs b/src/Tests/Tests/Shared/TestBool3x2.gen.cs index 18a6862a..d41f918c 100644 --- a/src/Tests/Tests/Shared/TestBool3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestBool3x3.gen.cs b/src/Tests/Tests/Shared/TestBool3x3.gen.cs index 48edee0c..4a2301d9 100644 --- a/src/Tests/Tests/Shared/TestBool3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestBool3x4.gen.cs b/src/Tests/Tests/Shared/TestBool3x4.gen.cs index ac7c65f4..c0981361 100644 --- a/src/Tests/Tests/Shared/TestBool3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestBool4.gen.cs b/src/Tests/Tests/Shared/TestBool4.gen.cs index 73ed49b9..69e823ab 100644 --- a/src/Tests/Tests/Shared/TestBool4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestBool4x2.gen.cs b/src/Tests/Tests/Shared/TestBool4x2.gen.cs index b689182a..0a2a54ca 100644 --- a/src/Tests/Tests/Shared/TestBool4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestBool4x3.gen.cs b/src/Tests/Tests/Shared/TestBool4x3.gen.cs index c2ae3231..8be23641 100644 --- a/src/Tests/Tests/Shared/TestBool4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestBool4x4.gen.cs b/src/Tests/Tests/Shared/TestBool4x4.gen.cs index da5ea36c..c83c5d8d 100644 --- a/src/Tests/Tests/Shared/TestBool4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestDouble2.gen.cs b/src/Tests/Tests/Shared/TestDouble2.gen.cs index ec155483..cd44e120 100644 --- a/src/Tests/Tests/Shared/TestDouble2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestDouble2x2.gen.cs b/src/Tests/Tests/Shared/TestDouble2x2.gen.cs index 1a222ad6..c7fc90d5 100644 --- a/src/Tests/Tests/Shared/TestDouble2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestDouble2x3.gen.cs b/src/Tests/Tests/Shared/TestDouble2x3.gen.cs index b93357a2..d95bba8d 100644 --- a/src/Tests/Tests/Shared/TestDouble2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestDouble2x4.gen.cs b/src/Tests/Tests/Shared/TestDouble2x4.gen.cs index 76cf4e06..aac05afe 100644 --- a/src/Tests/Tests/Shared/TestDouble2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestDouble3.gen.cs b/src/Tests/Tests/Shared/TestDouble3.gen.cs index 3f5a847d..cc53ddbf 100644 --- a/src/Tests/Tests/Shared/TestDouble3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestDouble3x2.gen.cs b/src/Tests/Tests/Shared/TestDouble3x2.gen.cs index 6a93f3bc..382e68b6 100644 --- a/src/Tests/Tests/Shared/TestDouble3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestDouble3x3.gen.cs b/src/Tests/Tests/Shared/TestDouble3x3.gen.cs index f1b508e6..56364618 100644 --- a/src/Tests/Tests/Shared/TestDouble3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestDouble3x4.gen.cs b/src/Tests/Tests/Shared/TestDouble3x4.gen.cs index d9ef296f..c54ef5be 100644 --- a/src/Tests/Tests/Shared/TestDouble3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestDouble4.gen.cs b/src/Tests/Tests/Shared/TestDouble4.gen.cs index 1ec83d7c..2d907e2a 100644 --- a/src/Tests/Tests/Shared/TestDouble4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestDouble4x2.gen.cs b/src/Tests/Tests/Shared/TestDouble4x2.gen.cs index 5c64b8ac..0e02dc29 100644 --- a/src/Tests/Tests/Shared/TestDouble4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestDouble4x3.gen.cs b/src/Tests/Tests/Shared/TestDouble4x3.gen.cs index b146bab3..66d6e952 100644 --- a/src/Tests/Tests/Shared/TestDouble4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestDouble4x4.gen.cs b/src/Tests/Tests/Shared/TestDouble4x4.gen.cs index abac180a..bd638617 100644 --- a/src/Tests/Tests/Shared/TestDouble4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestFloat2.gen.cs b/src/Tests/Tests/Shared/TestFloat2.gen.cs index cac2a3ea..b14288cc 100644 --- a/src/Tests/Tests/Shared/TestFloat2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestFloat2x2.gen.cs b/src/Tests/Tests/Shared/TestFloat2x2.gen.cs index c3a18f19..5b818da7 100644 --- a/src/Tests/Tests/Shared/TestFloat2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestFloat2x3.gen.cs b/src/Tests/Tests/Shared/TestFloat2x3.gen.cs index 5bc914e6..8a93998c 100644 --- a/src/Tests/Tests/Shared/TestFloat2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestFloat2x4.gen.cs b/src/Tests/Tests/Shared/TestFloat2x4.gen.cs index 110ab303..d959a802 100644 --- a/src/Tests/Tests/Shared/TestFloat2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestFloat3.gen.cs b/src/Tests/Tests/Shared/TestFloat3.gen.cs index 8a9a1a0b..48c5b1a4 100644 --- a/src/Tests/Tests/Shared/TestFloat3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestFloat3x2.gen.cs b/src/Tests/Tests/Shared/TestFloat3x2.gen.cs index 05ea64d1..a497e7be 100644 --- a/src/Tests/Tests/Shared/TestFloat3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestFloat3x3.gen.cs b/src/Tests/Tests/Shared/TestFloat3x3.gen.cs index 5d9caf1c..37e72288 100644 --- a/src/Tests/Tests/Shared/TestFloat3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestFloat3x4.gen.cs b/src/Tests/Tests/Shared/TestFloat3x4.gen.cs index a1f0204f..57e75392 100644 --- a/src/Tests/Tests/Shared/TestFloat3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestFloat4.gen.cs b/src/Tests/Tests/Shared/TestFloat4.gen.cs index c6ee4bf6..eec3bd88 100644 --- a/src/Tests/Tests/Shared/TestFloat4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestFloat4x2.gen.cs b/src/Tests/Tests/Shared/TestFloat4x2.gen.cs index 39ef2f86..ef36f471 100644 --- a/src/Tests/Tests/Shared/TestFloat4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestFloat4x3.gen.cs b/src/Tests/Tests/Shared/TestFloat4x3.gen.cs index bdf4402c..f14618d1 100644 --- a/src/Tests/Tests/Shared/TestFloat4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestFloat4x4.gen.cs b/src/Tests/Tests/Shared/TestFloat4x4.gen.cs index 1dc9a2e4..cc444939 100644 --- a/src/Tests/Tests/Shared/TestFloat4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestInt2.gen.cs b/src/Tests/Tests/Shared/TestInt2.gen.cs index 0a3fb248..78c07923 100644 --- a/src/Tests/Tests/Shared/TestInt2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestInt2x2.gen.cs b/src/Tests/Tests/Shared/TestInt2x2.gen.cs index 8e225ff5..517c4586 100644 --- a/src/Tests/Tests/Shared/TestInt2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestInt2x3.gen.cs b/src/Tests/Tests/Shared/TestInt2x3.gen.cs index c876a7a7..e6b88941 100644 --- a/src/Tests/Tests/Shared/TestInt2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestInt2x4.gen.cs b/src/Tests/Tests/Shared/TestInt2x4.gen.cs index 281ef525..f9650035 100644 --- a/src/Tests/Tests/Shared/TestInt2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestInt3.gen.cs b/src/Tests/Tests/Shared/TestInt3.gen.cs index e8bcab87..29f8ec66 100644 --- a/src/Tests/Tests/Shared/TestInt3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestInt3x2.gen.cs b/src/Tests/Tests/Shared/TestInt3x2.gen.cs index c9d36991..11b9edb4 100644 --- a/src/Tests/Tests/Shared/TestInt3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestInt3x3.gen.cs b/src/Tests/Tests/Shared/TestInt3x3.gen.cs index 8442d1df..e5b804e0 100644 --- a/src/Tests/Tests/Shared/TestInt3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestInt3x4.gen.cs b/src/Tests/Tests/Shared/TestInt3x4.gen.cs index f0151852..254a797c 100644 --- a/src/Tests/Tests/Shared/TestInt3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestInt4.gen.cs b/src/Tests/Tests/Shared/TestInt4.gen.cs index 926a3d46..065bb609 100644 --- a/src/Tests/Tests/Shared/TestInt4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestInt4x2.gen.cs b/src/Tests/Tests/Shared/TestInt4x2.gen.cs index fc73ff2f..564c7aa7 100644 --- a/src/Tests/Tests/Shared/TestInt4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestInt4x3.gen.cs b/src/Tests/Tests/Shared/TestInt4x3.gen.cs index 58bb3a13..6fdd2f07 100644 --- a/src/Tests/Tests/Shared/TestInt4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestInt4x4.gen.cs b/src/Tests/Tests/Shared/TestInt4x4.gen.cs index 13d08338..87f3887b 100644 --- a/src/Tests/Tests/Shared/TestInt4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestMath.gen.cs b/src/Tests/Tests/Shared/TestMath.gen.cs index 04115f0f..3a803b97 100644 --- a/src/Tests/Tests/Shared/TestMath.gen.cs +++ b/src/Tests/Tests/Shared/TestMath.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestUint2.gen.cs b/src/Tests/Tests/Shared/TestUint2.gen.cs index 11c09fa2..67c0813b 100644 --- a/src/Tests/Tests/Shared/TestUint2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestUint2x2.gen.cs b/src/Tests/Tests/Shared/TestUint2x2.gen.cs index 53d7d008..a5f371ec 100644 --- a/src/Tests/Tests/Shared/TestUint2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestUint2x3.gen.cs b/src/Tests/Tests/Shared/TestUint2x3.gen.cs index ed4ce8e4..d8aa9b0a 100644 --- a/src/Tests/Tests/Shared/TestUint2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestUint2x4.gen.cs b/src/Tests/Tests/Shared/TestUint2x4.gen.cs index c17978c3..7783684e 100644 --- a/src/Tests/Tests/Shared/TestUint2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestUint3.gen.cs b/src/Tests/Tests/Shared/TestUint3.gen.cs index d1bd8f32..6fca57ce 100644 --- a/src/Tests/Tests/Shared/TestUint3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestUint3x2.gen.cs b/src/Tests/Tests/Shared/TestUint3x2.gen.cs index 655dfafe..106b90dc 100644 --- a/src/Tests/Tests/Shared/TestUint3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestUint3x3.gen.cs b/src/Tests/Tests/Shared/TestUint3x3.gen.cs index 97c0b837..5861b8a2 100644 --- a/src/Tests/Tests/Shared/TestUint3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestUint3x4.gen.cs b/src/Tests/Tests/Shared/TestUint3x4.gen.cs index e3b5fe1f..9832a2a7 100644 --- a/src/Tests/Tests/Shared/TestUint3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestUint4.gen.cs b/src/Tests/Tests/Shared/TestUint4.gen.cs index 8fbcf5cf..49e0be49 100644 --- a/src/Tests/Tests/Shared/TestUint4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestUint4x2.gen.cs b/src/Tests/Tests/Shared/TestUint4x2.gen.cs index 0743f6b4..4cf1fc14 100644 --- a/src/Tests/Tests/Shared/TestUint4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestUint4x3.gen.cs b/src/Tests/Tests/Shared/TestUint4x3.gen.cs index 7e5fe851..0bcde5e9 100644 --- a/src/Tests/Tests/Shared/TestUint4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Tests/Tests/Shared/TestUint4x4.gen.cs b/src/Tests/Tests/Shared/TestUint4x4.gen.cs index 0feed624..67f34ee1 100644 --- a/src/Tests/Tests/Shared/TestUint4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using NUnit.Framework; diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index 95d8dfc2..06dece3c 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -178,7 +178,7 @@ private static string UpperCaseFirstLetter(string s) "// This code was generated by a tool.\n" + "//\n" + "// Changes to this file may cause incorrect behavior and will be lost if\n" + - "// the code is regenerated.\n" + + "// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen.\n" + "// \n" + "//------------------------------------------------------------------------------\n"; @@ -3785,7 +3785,6 @@ void GeneratePerformanceTest(StringBuilder str, string testName, PerformanceTest str.AppendFormat("\t\t\t{{\n"); str.AppendFormat("\t\t\t\ttestFunction.Invoke(ref args);\n"); str.AppendFormat("\t\t\t}})\n"); - str.AppendFormat("\t\t\t.Definition(sampleUnit: SampleUnit.Microsecond)\n"); str.AppendFormat("\t\t\t.WarmupCount(1)\n"); str.AppendFormat("\t\t\t.MeasurementCount(10)\n"); str.AppendFormat("\t\t\t.Run();\n"); @@ -3802,7 +3801,6 @@ void GeneratePerformanceTest(StringBuilder str, string testName, PerformanceTest str.AppendFormat("\t\t\t{{\n"); str.AppendFormat("\t\t\t testFunction.Invoke(ref args);\n"); str.AppendFormat("\t\t\t}})\n"); - str.AppendFormat("\t\t\t.Definition(sampleUnit: SampleUnit.Microsecond)\n"); str.AppendFormat("\t\t\t.WarmupCount(1)\n"); str.AppendFormat("\t\t\t.MeasurementCount(10)\n"); str.AppendFormat("\t\t\t.Run();\n"); diff --git a/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs index 8c7e8e18..a71041fe 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -82,7 +82,6 @@ public void quaternion_to_float3x3_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -100,7 +99,6 @@ public void quaternion_to_float3x3_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -170,7 +168,6 @@ public void float3x3_to_quaternion_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -188,7 +185,6 @@ public void float3x3_to_quaternion_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -258,7 +254,6 @@ public void float4_to_half4_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -276,7 +271,6 @@ public void float4_to_half4_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -346,7 +340,6 @@ public void half4_to_float4_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -364,7 +357,6 @@ public void half4_to_float4_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -442,7 +434,6 @@ public void quaternion_to_RigidTransform_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -460,7 +451,6 @@ public void quaternion_to_RigidTransform_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -530,7 +520,6 @@ public void quaternion_to_float4x4_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -548,7 +537,6 @@ public void quaternion_to_float4x4_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -626,7 +614,6 @@ public void float4x4_to_quaternion_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -644,7 +631,6 @@ public void float4x4_to_quaternion_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -714,7 +700,6 @@ public void float4_to_uint4_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -732,7 +717,6 @@ public void float4_to_uint4_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -802,7 +786,6 @@ public void uint4_to_float4_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -820,7 +803,6 @@ public void uint4_to_float4_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs index 3895131f..a106dceb 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -74,7 +74,6 @@ public void float4x4_fastinverse_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -92,7 +91,6 @@ public void float4x4_fastinverse_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -154,7 +152,6 @@ public void double4x4_fastinverse_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -172,7 +169,6 @@ public void double4x4_fastinverse_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs index d14dbc0f..795a14ed 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -82,7 +82,6 @@ public void float2_hash_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -100,7 +99,6 @@ public void float2_hash_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -170,7 +168,6 @@ public void float3_hash_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -188,7 +185,6 @@ public void float3_hash_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -258,7 +254,6 @@ public void float4_hash_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -276,7 +271,6 @@ public void float4_hash_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -346,7 +340,6 @@ public void double2_hash_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -364,7 +357,6 @@ public void double2_hash_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -434,7 +426,6 @@ public void double3_hash_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -452,7 +443,6 @@ public void double3_hash_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -522,7 +512,6 @@ public void double4_hash_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -540,7 +529,6 @@ public void double4_hash_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -610,7 +598,6 @@ public void float2x2_hash_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -628,7 +615,6 @@ public void float2x2_hash_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -698,7 +684,6 @@ public void float3x3_hash_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -716,7 +701,6 @@ public void float3x3_hash_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -786,7 +770,6 @@ public void float4x4_hash_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -804,7 +787,6 @@ public void float4x4_hash_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -874,7 +856,6 @@ public void float2x2_hashwide_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -892,7 +873,6 @@ public void float2x2_hashwide_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -962,7 +942,6 @@ public void float3x3_hashwide_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -980,7 +959,6 @@ public void float3x3_hashwide_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1050,7 +1028,6 @@ public void float4x4_hashwide_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1068,7 +1045,6 @@ public void float4x4_hashwide_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1138,7 +1114,6 @@ public void float2_hashwide_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1156,7 +1131,6 @@ public void float2_hashwide_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs index 95df92c1..feaae6b9 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -74,7 +74,6 @@ public void float4x4_inverse_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -92,7 +91,6 @@ public void float4x4_inverse_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -154,7 +152,6 @@ public void float3x3_inverse_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -172,7 +169,6 @@ public void float3x3_inverse_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -234,7 +230,6 @@ public void float2x2_inverse_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -252,7 +247,6 @@ public void float2x2_inverse_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -314,7 +308,6 @@ public void double4x4_inverse_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -332,7 +325,6 @@ public void double4x4_inverse_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -394,7 +386,6 @@ public void double3x3_inverse_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -412,7 +403,6 @@ public void double3x3_inverse_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -474,7 +464,6 @@ public void double2x2_inverse_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -492,7 +481,6 @@ public void double2x2_inverse_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -554,7 +542,6 @@ public void quaternion_inverse_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -572,7 +559,6 @@ public void quaternion_inverse_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs index 15c6c2a2..de550c24 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -98,7 +98,6 @@ public void orthonormal_basis_float_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -116,7 +115,6 @@ public void orthonormal_basis_float_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -202,7 +200,6 @@ public void orthonormal_basis_double_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -220,7 +217,6 @@ public void orthonormal_basis_double_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs index 67d7c733..c1369c6a 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -74,7 +74,6 @@ public void Transform_float4x4_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -92,7 +91,6 @@ public void Transform_float4x4_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -154,7 +152,6 @@ public void Transform_float3x3_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -172,7 +169,6 @@ public void Transform_float3x3_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs index 9763f0a1..16ecbe3d 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -82,7 +82,6 @@ public void float4x4_float4x4_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -100,7 +99,6 @@ public void float4x4_float4x4_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -170,7 +168,6 @@ public void float4x4_float4_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -188,7 +185,6 @@ public void float4x4_float4_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -258,7 +254,6 @@ public void quaternion_quaternion_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -276,7 +271,6 @@ public void quaternion_quaternion_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -346,7 +340,6 @@ public void float3x3_float3x3_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -364,7 +357,6 @@ public void float3x3_float3x3_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -434,7 +426,6 @@ public void float2x2_float2x2_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -452,7 +443,6 @@ public void float2x2_float2x2_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -522,7 +512,6 @@ public void float3x3_float3_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -540,7 +529,6 @@ public void float3x3_float3_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -610,7 +598,6 @@ public void float2x2_float2_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -628,7 +615,6 @@ public void float2x2_float2_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs index 6f4d38eb..624b96df 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -74,7 +74,6 @@ public void snoise2D_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -92,7 +91,6 @@ public void snoise2D_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -154,7 +152,6 @@ public void snoise3D_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -172,7 +169,6 @@ public void snoise3D_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -234,7 +230,6 @@ public void snoise4D_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -252,7 +247,6 @@ public void snoise4D_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -322,7 +316,6 @@ public void snoise3Dgrad_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -340,7 +333,6 @@ public void snoise3Dgrad_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -402,7 +394,6 @@ public void cnoise2D_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -420,7 +411,6 @@ public void cnoise2D_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -482,7 +472,6 @@ public void cnoise3D_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -500,7 +489,6 @@ public void cnoise3D_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -562,7 +550,6 @@ public void cnoise4D_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -580,7 +567,6 @@ public void cnoise4D_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -642,7 +628,6 @@ public void pnoise2D_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -660,7 +645,6 @@ public void pnoise2D_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -722,7 +706,6 @@ public void pnoise3D_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -740,7 +723,6 @@ public void pnoise3D_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -802,7 +784,6 @@ public void pnoise4D_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -820,7 +801,6 @@ public void pnoise4D_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -882,7 +862,6 @@ public void cellular2D_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -900,7 +879,6 @@ public void cellular2D_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -962,7 +940,6 @@ public void cellular3D_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -980,7 +957,6 @@ public void cellular3D_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1042,7 +1018,6 @@ public void cellular2x2_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1060,7 +1035,6 @@ public void cellular2x2_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1122,7 +1096,6 @@ public void cellular2x2x2_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1140,7 +1113,6 @@ public void cellular2x2x2_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1202,7 +1174,6 @@ public void psrdnoise_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1220,7 +1191,6 @@ public void psrdnoise_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1282,7 +1252,6 @@ public void psrnoise_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1300,7 +1269,6 @@ public void psrnoise_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1362,7 +1330,6 @@ public void srdnoise_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1380,7 +1347,6 @@ public void srdnoise_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1442,7 +1408,6 @@ public void srnoise_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1460,7 +1425,6 @@ public void srnoise_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs index 89dd96e9..f4b12c0c 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -74,7 +74,6 @@ public void float4_normalize_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -92,7 +91,6 @@ public void float4_normalize_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -154,7 +152,6 @@ public void float3_normalize_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -172,7 +169,6 @@ public void float3_normalize_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -234,7 +230,6 @@ public void float2_normalize_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -252,7 +247,6 @@ public void float2_normalize_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -314,7 +308,6 @@ public void double4_normalize_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -332,7 +325,6 @@ public void double4_normalize_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -394,7 +386,6 @@ public void double3_normalize_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -412,7 +403,6 @@ public void double3_normalize_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -474,7 +464,6 @@ public void double2_normalize_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -492,7 +481,6 @@ public void double2_normalize_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -554,7 +542,6 @@ public void float4_normalizesafe_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -572,7 +559,6 @@ public void float4_normalizesafe_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -634,7 +620,6 @@ public void float3_normalizesafe_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -652,7 +637,6 @@ public void float3_normalizesafe_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -714,7 +698,6 @@ public void float2_normalizesafe_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -732,7 +715,6 @@ public void float2_normalizesafe_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -794,7 +776,6 @@ public void double4_normalizesafe_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -812,7 +793,6 @@ public void double4_normalizesafe_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -874,7 +854,6 @@ public void double3_normalizesafe_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -892,7 +871,6 @@ public void double3_normalizesafe_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -954,7 +932,6 @@ public void double2_normalizesafe_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -972,7 +949,6 @@ public void double2_normalizesafe_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs index ff027803..0932a333 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -74,7 +74,6 @@ public void Normalize_Plane_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -92,7 +91,6 @@ public void Normalize_Plane_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs index bf14d144..6cdccc7a 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -82,7 +82,6 @@ public void Random_NextUint_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -100,7 +99,6 @@ public void Random_NextUint_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -170,7 +168,6 @@ public void Random_NextUint2_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -188,7 +185,6 @@ public void Random_NextUint2_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -258,7 +254,6 @@ public void Random_NextUint3_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -276,7 +271,6 @@ public void Random_NextUint3_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -346,7 +340,6 @@ public void Random_NextUint4_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -364,7 +357,6 @@ public void Random_NextUint4_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -434,7 +426,6 @@ public void Random_NextFloat_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -452,7 +443,6 @@ public void Random_NextFloat_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -522,7 +512,6 @@ public void Random_NextFloat2_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -540,7 +529,6 @@ public void Random_NextFloat2_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -610,7 +598,6 @@ public void Random_NextFloat3_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -628,7 +615,6 @@ public void Random_NextFloat3_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -698,7 +684,6 @@ public void Random_NextFloat4_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -716,7 +701,6 @@ public void Random_NextFloat4_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -786,7 +770,6 @@ public void Random_NextDouble_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -804,7 +787,6 @@ public void Random_NextDouble_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -874,7 +856,6 @@ public void Random_NextDouble2_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -892,7 +873,6 @@ public void Random_NextDouble2_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -962,7 +942,6 @@ public void Random_NextDouble3_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -980,7 +959,6 @@ public void Random_NextDouble3_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1050,7 +1028,6 @@ public void Random_NextDouble4_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1068,7 +1045,6 @@ public void Random_NextDouble4_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs index a49ded49..b8be6dd0 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -82,7 +82,6 @@ public void float4x4_EulerXYZ_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -100,7 +99,6 @@ public void float4x4_EulerXYZ_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -170,7 +168,6 @@ public void float3x3_EulerXYZ_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -188,7 +185,6 @@ public void float3x3_EulerXYZ_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -266,7 +262,6 @@ public void float4x4_AxisAngle_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -284,7 +279,6 @@ public void float4x4_AxisAngle_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -362,7 +356,6 @@ public void float3x3_AxisAngle_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -380,7 +373,6 @@ public void float3x3_AxisAngle_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -458,7 +450,6 @@ public void float3x3_LookRotation_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -476,7 +467,6 @@ public void float3x3_LookRotation_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -554,7 +544,6 @@ public void float3x3_LookRotationSafe_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -572,7 +561,6 @@ public void float3x3_LookRotationSafe_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -658,7 +646,6 @@ public void float4x4_LookAt_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -676,7 +663,6 @@ public void float4x4_LookAt_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs index 830b3466..80c74c48 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -90,7 +90,6 @@ public void float2_shuffle_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -108,7 +107,6 @@ public void float2_shuffle_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -186,7 +184,6 @@ public void float3_shuffle_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -204,7 +201,6 @@ public void float3_shuffle_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -282,7 +278,6 @@ public void float4_shuffle_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -300,7 +295,6 @@ public void float4_shuffle_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs index 0ea0cd8b..1b9ea9e4 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -74,7 +74,6 @@ public void transpose_float4x4_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -92,7 +91,6 @@ public void transpose_float4x4_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -154,7 +152,6 @@ public void transpose_float3x3_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -172,7 +169,6 @@ public void transpose_float3x3_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -234,7 +230,6 @@ public void transpose_float2x2_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -252,7 +247,6 @@ public void transpose_float2x2_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -314,7 +308,6 @@ public void transpose_double4x4_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -332,7 +325,6 @@ public void transpose_double4x4_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -394,7 +386,6 @@ public void transpose_double3x3_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -412,7 +403,6 @@ public void transpose_double3x3_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -474,7 +464,6 @@ public void transpose_double2x2_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -492,7 +481,6 @@ public void transpose_double2x2_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs index 89864ba4..8b8851ae 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; @@ -82,7 +82,6 @@ public void float_sincos_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -100,7 +99,6 @@ public void float_sincos_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -170,7 +168,6 @@ public void float2_sincos_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -188,7 +185,6 @@ public void float2_sincos_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -258,7 +254,6 @@ public void float3_sincos_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -276,7 +271,6 @@ public void float3_sincos_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -346,7 +340,6 @@ public void float4_sincos_mono() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -364,7 +357,6 @@ public void float4_sincos_burst() { testFunction.Invoke(ref args); }) - .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics/bool2.gen.cs b/src/Unity.Mathematics/bool2.gen.cs index 5ada3003..15951804 100644 --- a/src/Unity.Mathematics/bool2.gen.cs +++ b/src/Unity.Mathematics/bool2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/bool2x2.gen.cs b/src/Unity.Mathematics/bool2x2.gen.cs index f42e505b..02460be4 100644 --- a/src/Unity.Mathematics/bool2x2.gen.cs +++ b/src/Unity.Mathematics/bool2x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/bool2x3.gen.cs b/src/Unity.Mathematics/bool2x3.gen.cs index 778d32c7..4e497b66 100644 --- a/src/Unity.Mathematics/bool2x3.gen.cs +++ b/src/Unity.Mathematics/bool2x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/bool2x4.gen.cs b/src/Unity.Mathematics/bool2x4.gen.cs index ceef7bdc..c4f76156 100644 --- a/src/Unity.Mathematics/bool2x4.gen.cs +++ b/src/Unity.Mathematics/bool2x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/bool3.gen.cs b/src/Unity.Mathematics/bool3.gen.cs index b3de0810..602a7ccf 100644 --- a/src/Unity.Mathematics/bool3.gen.cs +++ b/src/Unity.Mathematics/bool3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/bool3x2.gen.cs b/src/Unity.Mathematics/bool3x2.gen.cs index d1e5326b..8790944d 100644 --- a/src/Unity.Mathematics/bool3x2.gen.cs +++ b/src/Unity.Mathematics/bool3x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/bool3x3.gen.cs b/src/Unity.Mathematics/bool3x3.gen.cs index e9ef62a8..1ce216d7 100644 --- a/src/Unity.Mathematics/bool3x3.gen.cs +++ b/src/Unity.Mathematics/bool3x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/bool3x4.gen.cs b/src/Unity.Mathematics/bool3x4.gen.cs index 980f802c..f93f07f4 100644 --- a/src/Unity.Mathematics/bool3x4.gen.cs +++ b/src/Unity.Mathematics/bool3x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/bool4.gen.cs b/src/Unity.Mathematics/bool4.gen.cs index 6c793e35..b19f367c 100644 --- a/src/Unity.Mathematics/bool4.gen.cs +++ b/src/Unity.Mathematics/bool4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/bool4x2.gen.cs b/src/Unity.Mathematics/bool4x2.gen.cs index e84c24ad..875357d6 100644 --- a/src/Unity.Mathematics/bool4x2.gen.cs +++ b/src/Unity.Mathematics/bool4x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/bool4x3.gen.cs b/src/Unity.Mathematics/bool4x3.gen.cs index 7bf6773a..655bfab1 100644 --- a/src/Unity.Mathematics/bool4x3.gen.cs +++ b/src/Unity.Mathematics/bool4x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/bool4x4.gen.cs b/src/Unity.Mathematics/bool4x4.gen.cs index ec9dff81..9112018b 100644 --- a/src/Unity.Mathematics/bool4x4.gen.cs +++ b/src/Unity.Mathematics/bool4x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/double2.gen.cs b/src/Unity.Mathematics/double2.gen.cs index 11fbae9d..d4d213f6 100644 --- a/src/Unity.Mathematics/double2.gen.cs +++ b/src/Unity.Mathematics/double2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/double2x2.gen.cs b/src/Unity.Mathematics/double2x2.gen.cs index 5c21029c..57328b34 100644 --- a/src/Unity.Mathematics/double2x2.gen.cs +++ b/src/Unity.Mathematics/double2x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/double2x3.gen.cs b/src/Unity.Mathematics/double2x3.gen.cs index 2509e351..f6a34908 100644 --- a/src/Unity.Mathematics/double2x3.gen.cs +++ b/src/Unity.Mathematics/double2x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/double2x4.gen.cs b/src/Unity.Mathematics/double2x4.gen.cs index 1f71c1d5..00e91ec9 100644 --- a/src/Unity.Mathematics/double2x4.gen.cs +++ b/src/Unity.Mathematics/double2x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/double3.gen.cs b/src/Unity.Mathematics/double3.gen.cs index 048026bf..3468bbfc 100644 --- a/src/Unity.Mathematics/double3.gen.cs +++ b/src/Unity.Mathematics/double3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/double3x2.gen.cs b/src/Unity.Mathematics/double3x2.gen.cs index f485cc00..50e477ed 100644 --- a/src/Unity.Mathematics/double3x2.gen.cs +++ b/src/Unity.Mathematics/double3x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/double3x3.gen.cs b/src/Unity.Mathematics/double3x3.gen.cs index adf86755..1bdeb13f 100644 --- a/src/Unity.Mathematics/double3x3.gen.cs +++ b/src/Unity.Mathematics/double3x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/double3x4.gen.cs b/src/Unity.Mathematics/double3x4.gen.cs index 6cdfd51c..5e687dce 100644 --- a/src/Unity.Mathematics/double3x4.gen.cs +++ b/src/Unity.Mathematics/double3x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/double4.gen.cs b/src/Unity.Mathematics/double4.gen.cs index c4f08461..b5a13817 100644 --- a/src/Unity.Mathematics/double4.gen.cs +++ b/src/Unity.Mathematics/double4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/double4x2.gen.cs b/src/Unity.Mathematics/double4x2.gen.cs index 2582847a..77005ce7 100644 --- a/src/Unity.Mathematics/double4x2.gen.cs +++ b/src/Unity.Mathematics/double4x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/double4x3.gen.cs b/src/Unity.Mathematics/double4x3.gen.cs index b774b09b..54e6cfea 100644 --- a/src/Unity.Mathematics/double4x3.gen.cs +++ b/src/Unity.Mathematics/double4x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/double4x4.gen.cs b/src/Unity.Mathematics/double4x4.gen.cs index 9732d5ff..1380a77f 100644 --- a/src/Unity.Mathematics/double4x4.gen.cs +++ b/src/Unity.Mathematics/double4x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/float2.gen.cs b/src/Unity.Mathematics/float2.gen.cs index 77118da5..f9359491 100644 --- a/src/Unity.Mathematics/float2.gen.cs +++ b/src/Unity.Mathematics/float2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/float2x2.gen.cs b/src/Unity.Mathematics/float2x2.gen.cs index 1f97ff74..b4d88079 100644 --- a/src/Unity.Mathematics/float2x2.gen.cs +++ b/src/Unity.Mathematics/float2x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/float2x3.gen.cs b/src/Unity.Mathematics/float2x3.gen.cs index c9198c2a..38a1e2a0 100644 --- a/src/Unity.Mathematics/float2x3.gen.cs +++ b/src/Unity.Mathematics/float2x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/float2x4.gen.cs b/src/Unity.Mathematics/float2x4.gen.cs index c9ba8bbf..2ec76c5a 100644 --- a/src/Unity.Mathematics/float2x4.gen.cs +++ b/src/Unity.Mathematics/float2x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/float3.gen.cs b/src/Unity.Mathematics/float3.gen.cs index 4a77f41b..178cf4eb 100644 --- a/src/Unity.Mathematics/float3.gen.cs +++ b/src/Unity.Mathematics/float3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/float3x2.gen.cs b/src/Unity.Mathematics/float3x2.gen.cs index 1584886b..e4a95dba 100644 --- a/src/Unity.Mathematics/float3x2.gen.cs +++ b/src/Unity.Mathematics/float3x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/float3x3.gen.cs b/src/Unity.Mathematics/float3x3.gen.cs index fe3362b2..14929538 100644 --- a/src/Unity.Mathematics/float3x3.gen.cs +++ b/src/Unity.Mathematics/float3x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/float3x4.gen.cs b/src/Unity.Mathematics/float3x4.gen.cs index 704d39dc..f6111f6d 100644 --- a/src/Unity.Mathematics/float3x4.gen.cs +++ b/src/Unity.Mathematics/float3x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/float4.gen.cs b/src/Unity.Mathematics/float4.gen.cs index 3d082cac..ef5d96c7 100644 --- a/src/Unity.Mathematics/float4.gen.cs +++ b/src/Unity.Mathematics/float4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/float4x2.gen.cs b/src/Unity.Mathematics/float4x2.gen.cs index 760379b5..1b5d6b10 100644 --- a/src/Unity.Mathematics/float4x2.gen.cs +++ b/src/Unity.Mathematics/float4x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/float4x3.gen.cs b/src/Unity.Mathematics/float4x3.gen.cs index d379e75b..da29e56b 100644 --- a/src/Unity.Mathematics/float4x3.gen.cs +++ b/src/Unity.Mathematics/float4x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/float4x4.gen.cs b/src/Unity.Mathematics/float4x4.gen.cs index d7b93485..061cc0c5 100644 --- a/src/Unity.Mathematics/float4x4.gen.cs +++ b/src/Unity.Mathematics/float4x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/half2.gen.cs b/src/Unity.Mathematics/half2.gen.cs index d1fb87b5..78c4fcdd 100644 --- a/src/Unity.Mathematics/half2.gen.cs +++ b/src/Unity.Mathematics/half2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/half3.gen.cs b/src/Unity.Mathematics/half3.gen.cs index a3ca987d..2e5e8904 100644 --- a/src/Unity.Mathematics/half3.gen.cs +++ b/src/Unity.Mathematics/half3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/half4.gen.cs b/src/Unity.Mathematics/half4.gen.cs index 0251fa69..f9786994 100644 --- a/src/Unity.Mathematics/half4.gen.cs +++ b/src/Unity.Mathematics/half4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/int2.gen.cs b/src/Unity.Mathematics/int2.gen.cs index 7fd1e14c..f47650db 100644 --- a/src/Unity.Mathematics/int2.gen.cs +++ b/src/Unity.Mathematics/int2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/int2x2.gen.cs b/src/Unity.Mathematics/int2x2.gen.cs index f436f852..f46bc532 100644 --- a/src/Unity.Mathematics/int2x2.gen.cs +++ b/src/Unity.Mathematics/int2x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/int2x3.gen.cs b/src/Unity.Mathematics/int2x3.gen.cs index 59891a63..ec5efe95 100644 --- a/src/Unity.Mathematics/int2x3.gen.cs +++ b/src/Unity.Mathematics/int2x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/int2x4.gen.cs b/src/Unity.Mathematics/int2x4.gen.cs index c3be074f..dbb1d76f 100644 --- a/src/Unity.Mathematics/int2x4.gen.cs +++ b/src/Unity.Mathematics/int2x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/int3.gen.cs b/src/Unity.Mathematics/int3.gen.cs index d766a8c6..082a91ab 100644 --- a/src/Unity.Mathematics/int3.gen.cs +++ b/src/Unity.Mathematics/int3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/int3x2.gen.cs b/src/Unity.Mathematics/int3x2.gen.cs index 0ea7ff76..894901bb 100644 --- a/src/Unity.Mathematics/int3x2.gen.cs +++ b/src/Unity.Mathematics/int3x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/int3x3.gen.cs b/src/Unity.Mathematics/int3x3.gen.cs index 37ca9702..e4c27e5e 100644 --- a/src/Unity.Mathematics/int3x3.gen.cs +++ b/src/Unity.Mathematics/int3x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/int3x4.gen.cs b/src/Unity.Mathematics/int3x4.gen.cs index 21c4ec38..99a96e63 100644 --- a/src/Unity.Mathematics/int3x4.gen.cs +++ b/src/Unity.Mathematics/int3x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/int4.gen.cs b/src/Unity.Mathematics/int4.gen.cs index 2271eca8..495d2f93 100644 --- a/src/Unity.Mathematics/int4.gen.cs +++ b/src/Unity.Mathematics/int4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/int4x2.gen.cs b/src/Unity.Mathematics/int4x2.gen.cs index 0aaeec7b..c1766a77 100644 --- a/src/Unity.Mathematics/int4x2.gen.cs +++ b/src/Unity.Mathematics/int4x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/int4x3.gen.cs b/src/Unity.Mathematics/int4x3.gen.cs index 0ab88040..c6a8e38c 100644 --- a/src/Unity.Mathematics/int4x3.gen.cs +++ b/src/Unity.Mathematics/int4x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/int4x4.gen.cs b/src/Unity.Mathematics/int4x4.gen.cs index d225c3df..7d0d38a9 100644 --- a/src/Unity.Mathematics/int4x4.gen.cs +++ b/src/Unity.Mathematics/int4x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/matrix.gen.cs b/src/Unity.Mathematics/matrix.gen.cs index 85427ac6..2dce88fe 100644 --- a/src/Unity.Mathematics/matrix.gen.cs +++ b/src/Unity.Mathematics/matrix.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/uint2.gen.cs b/src/Unity.Mathematics/uint2.gen.cs index b3aaa509..92234f6c 100644 --- a/src/Unity.Mathematics/uint2.gen.cs +++ b/src/Unity.Mathematics/uint2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/uint2x2.gen.cs b/src/Unity.Mathematics/uint2x2.gen.cs index d3bc9190..8f2a4666 100644 --- a/src/Unity.Mathematics/uint2x2.gen.cs +++ b/src/Unity.Mathematics/uint2x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/uint2x3.gen.cs b/src/Unity.Mathematics/uint2x3.gen.cs index 15229ec0..8d576265 100644 --- a/src/Unity.Mathematics/uint2x3.gen.cs +++ b/src/Unity.Mathematics/uint2x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/uint2x4.gen.cs b/src/Unity.Mathematics/uint2x4.gen.cs index 05d00d36..362e69a8 100644 --- a/src/Unity.Mathematics/uint2x4.gen.cs +++ b/src/Unity.Mathematics/uint2x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/uint3.gen.cs b/src/Unity.Mathematics/uint3.gen.cs index 8ad803eb..95df67b8 100644 --- a/src/Unity.Mathematics/uint3.gen.cs +++ b/src/Unity.Mathematics/uint3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/uint3x2.gen.cs b/src/Unity.Mathematics/uint3x2.gen.cs index fd1869d7..15ac238a 100644 --- a/src/Unity.Mathematics/uint3x2.gen.cs +++ b/src/Unity.Mathematics/uint3x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/uint3x3.gen.cs b/src/Unity.Mathematics/uint3x3.gen.cs index ae422aa3..57f9f1de 100644 --- a/src/Unity.Mathematics/uint3x3.gen.cs +++ b/src/Unity.Mathematics/uint3x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/uint3x4.gen.cs b/src/Unity.Mathematics/uint3x4.gen.cs index 84d4bde0..51bca3b8 100644 --- a/src/Unity.Mathematics/uint3x4.gen.cs +++ b/src/Unity.Mathematics/uint3x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/uint4.gen.cs b/src/Unity.Mathematics/uint4.gen.cs index 126a9ebb..cffed4fc 100644 --- a/src/Unity.Mathematics/uint4.gen.cs +++ b/src/Unity.Mathematics/uint4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/uint4x2.gen.cs b/src/Unity.Mathematics/uint4x2.gen.cs index e338acef..29cbd505 100644 --- a/src/Unity.Mathematics/uint4x2.gen.cs +++ b/src/Unity.Mathematics/uint4x2.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/uint4x3.gen.cs b/src/Unity.Mathematics/uint4x3.gen.cs index 6365cb7e..0eede77d 100644 --- a/src/Unity.Mathematics/uint4x3.gen.cs +++ b/src/Unity.Mathematics/uint4x3.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; diff --git a/src/Unity.Mathematics/uint4x4.gen.cs b/src/Unity.Mathematics/uint4x4.gen.cs index 9948f54f..566373b8 100644 --- a/src/Unity.Mathematics/uint4x4.gen.cs +++ b/src/Unity.Mathematics/uint4x4.gen.cs @@ -3,7 +3,7 @@ // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// the code is regenerated. To update the generation of this file, modify and re-run Unity.Mathematics.CodeGen. // //------------------------------------------------------------------------------ using System; From 56dd48326c8a0a22dd547baea9bf0ac7b4ebdacc Mon Sep 17 00:00:00 2001 From: Kevin MacAulay Vacheresse Date: Mon, 15 Mar 2021 22:19:12 -0600 Subject: [PATCH 340/437] Updates the test-framework.performance version used to better match DOTS usage --- Unity.Mathematics.TestProject/Packages/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Unity.Mathematics.TestProject/Packages/manifest.json b/Unity.Mathematics.TestProject/Packages/manifest.json index 5688abd1..f3a5ba75 100644 --- a/Unity.Mathematics.TestProject/Packages/manifest.json +++ b/Unity.Mathematics.TestProject/Packages/manifest.json @@ -7,7 +7,7 @@ "com.unity.package-validation-suite": "0.8.1-preview", "com.unity.properties": "0.10.4-preview", "com.unity.test-framework": "1.1.11", - "com.unity.test-framework.performance": "1.3.2-preview" + "com.unity.test-framework.performance": "2.6.0-preview" }, "testables": [ "com.unity.mathematics" From a94d0650a910e604651bbb9e4e3f05fc82301362 Mon Sep 17 00:00:00 2001 From: Kevin MacAulay Vacheresse Date: Tue, 16 Mar 2021 09:34:16 -0600 Subject: [PATCH 341/437] Updates test-framework code to 2.8-preview which allows for sample units to be specified again --- .../Packages/manifest.json | 2 +- .../VectorGenerator.cs | 4 + .../TestConversions.gen.cs | 54 ++++++--- .../TestFastInverse.gen.cs | 12 +- .../TestHash.gen.cs | 78 ++++++++----- .../TestInverse.gen.cs | 42 ++++--- .../TestMath.gen.cs | 12 +- .../TestMinMaxAABB.gen.cs | 12 +- .../TestMul.gen.cs | 42 ++++--- .../TestNoise.gen.cs | 108 ++++++++++++------ .../TestNormalize.gen.cs | 72 ++++++++---- .../TestPlane.gen.cs | 6 +- .../TestRandom.gen.cs | 72 ++++++++---- .../TestRotation.gen.cs | 42 ++++--- .../TestShuffle.gen.cs | 18 ++- .../TestTranspose.gen.cs | 36 ++++-- .../TestTrig.gen.cs | 24 ++-- src/package.json | 1 + 18 files changed, 426 insertions(+), 211 deletions(-) diff --git a/Unity.Mathematics.TestProject/Packages/manifest.json b/Unity.Mathematics.TestProject/Packages/manifest.json index f3a5ba75..5b27463f 100644 --- a/Unity.Mathematics.TestProject/Packages/manifest.json +++ b/Unity.Mathematics.TestProject/Packages/manifest.json @@ -7,7 +7,7 @@ "com.unity.package-validation-suite": "0.8.1-preview", "com.unity.properties": "0.10.4-preview", "com.unity.test-framework": "1.1.11", - "com.unity.test-framework.performance": "2.6.0-preview" + "com.unity.test-framework.performance": "2.8.0-preview" }, "testables": [ "com.unity.mathematics" diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index 06dece3c..35d58e12 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -3781,10 +3781,12 @@ void GeneratePerformanceTest(StringBuilder str, string testName, PerformanceTest str.AppendFormat("\t\t\tvar args = new {0}.Arguments();\n", testName); str.AppendFormat("\t\t\targs.Init();\n"); str.AppendFormat("\n"); + str.AppendFormat("\t\t\tvar monoSampleGroup = new SampleGroup(\"Mono\", SampleUnit.Microsecond);"); str.AppendFormat("\t\t\tMeasure.Method(() =>\n"); str.AppendFormat("\t\t\t{{\n"); str.AppendFormat("\t\t\t\ttestFunction.Invoke(ref args);\n"); str.AppendFormat("\t\t\t}})\n"); + str.AppendFormat("\t\t\t.SampleGroup(monoSampleGroup)\n"); str.AppendFormat("\t\t\t.WarmupCount(1)\n"); str.AppendFormat("\t\t\t.MeasurementCount(10)\n"); str.AppendFormat("\t\t\t.Run();\n"); @@ -3797,10 +3799,12 @@ void GeneratePerformanceTest(StringBuilder str, string testName, PerformanceTest str.AppendFormat("\t\t\tvar args = new {0}.Arguments();\n", testName); str.AppendFormat("\t\t\targs.Init();\n"); str.AppendFormat("\n"); + str.AppendFormat("\t\t\tvar burstSampleGroup = new SampleGroup(\"Burst\", SampleUnit.Microsecond);"); str.AppendFormat("\t\t\tMeasure.Method(() =>\n"); str.AppendFormat("\t\t\t{{\n"); str.AppendFormat("\t\t\t testFunction.Invoke(ref args);\n"); str.AppendFormat("\t\t\t}})\n"); + str.AppendFormat("\t\t\t.SampleGroup(burstSampleGroup)\n"); str.AppendFormat("\t\t\t.WarmupCount(1)\n"); str.AppendFormat("\t\t\t.MeasurementCount(10)\n"); str.AppendFormat("\t\t\t.Run();\n"); diff --git a/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs index a71041fe..08266759 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs @@ -78,10 +78,11 @@ public void quaternion_to_float3x3_mono() var args = new quaternion_to_float3x3.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -95,10 +96,11 @@ public void quaternion_to_float3x3_burst() var args = new quaternion_to_float3x3.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -164,10 +166,11 @@ public void float3x3_to_quaternion_mono() var args = new float3x3_to_quaternion.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -181,10 +184,11 @@ public void float3x3_to_quaternion_burst() var args = new float3x3_to_quaternion.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -250,10 +254,11 @@ public void float4_to_half4_mono() var args = new float4_to_half4.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -267,10 +272,11 @@ public void float4_to_half4_burst() var args = new float4_to_half4.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -336,10 +342,11 @@ public void half4_to_float4_mono() var args = new half4_to_float4.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -353,10 +360,11 @@ public void half4_to_float4_burst() var args = new half4_to_float4.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -430,10 +438,11 @@ public void quaternion_to_RigidTransform_mono() var args = new quaternion_to_RigidTransform.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -447,10 +456,11 @@ public void quaternion_to_RigidTransform_burst() var args = new quaternion_to_RigidTransform.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -516,10 +526,11 @@ public void quaternion_to_float4x4_mono() var args = new quaternion_to_float4x4.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -533,10 +544,11 @@ public void quaternion_to_float4x4_burst() var args = new quaternion_to_float4x4.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -610,10 +622,11 @@ public void float4x4_to_quaternion_mono() var args = new float4x4_to_quaternion.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -627,10 +640,11 @@ public void float4x4_to_quaternion_burst() var args = new float4x4_to_quaternion.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -696,10 +710,11 @@ public void float4_to_uint4_mono() var args = new float4_to_uint4.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -713,10 +728,11 @@ public void float4_to_uint4_burst() var args = new float4_to_uint4.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -782,10 +798,11 @@ public void uint4_to_float4_mono() var args = new uint4_to_float4.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -799,10 +816,11 @@ public void uint4_to_float4_burst() var args = new uint4_to_float4.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs index a106dceb..b133ff85 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs @@ -70,10 +70,11 @@ public void float4x4_fastinverse_mono() var args = new float4x4_fastinverse.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -87,10 +88,11 @@ public void float4x4_fastinverse_burst() var args = new float4x4_fastinverse.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -148,10 +150,11 @@ public void double4x4_fastinverse_mono() var args = new double4x4_fastinverse.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -165,10 +168,11 @@ public void double4x4_fastinverse_burst() var args = new double4x4_fastinverse.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs index 795a14ed..b26397f9 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs @@ -78,10 +78,11 @@ public void float2_hash_mono() var args = new float2_hash.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -95,10 +96,11 @@ public void float2_hash_burst() var args = new float2_hash.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -164,10 +166,11 @@ public void float3_hash_mono() var args = new float3_hash.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -181,10 +184,11 @@ public void float3_hash_burst() var args = new float3_hash.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -250,10 +254,11 @@ public void float4_hash_mono() var args = new float4_hash.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -267,10 +272,11 @@ public void float4_hash_burst() var args = new float4_hash.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -336,10 +342,11 @@ public void double2_hash_mono() var args = new double2_hash.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -353,10 +360,11 @@ public void double2_hash_burst() var args = new double2_hash.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -422,10 +430,11 @@ public void double3_hash_mono() var args = new double3_hash.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -439,10 +448,11 @@ public void double3_hash_burst() var args = new double3_hash.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -508,10 +518,11 @@ public void double4_hash_mono() var args = new double4_hash.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -525,10 +536,11 @@ public void double4_hash_burst() var args = new double4_hash.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -594,10 +606,11 @@ public void float2x2_hash_mono() var args = new float2x2_hash.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -611,10 +624,11 @@ public void float2x2_hash_burst() var args = new float2x2_hash.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -680,10 +694,11 @@ public void float3x3_hash_mono() var args = new float3x3_hash.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -697,10 +712,11 @@ public void float3x3_hash_burst() var args = new float3x3_hash.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -766,10 +782,11 @@ public void float4x4_hash_mono() var args = new float4x4_hash.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -783,10 +800,11 @@ public void float4x4_hash_burst() var args = new float4x4_hash.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -852,10 +870,11 @@ public void float2x2_hashwide_mono() var args = new float2x2_hashwide.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -869,10 +888,11 @@ public void float2x2_hashwide_burst() var args = new float2x2_hashwide.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -938,10 +958,11 @@ public void float3x3_hashwide_mono() var args = new float3x3_hashwide.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -955,10 +976,11 @@ public void float3x3_hashwide_burst() var args = new float3x3_hashwide.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1024,10 +1046,11 @@ public void float4x4_hashwide_mono() var args = new float4x4_hashwide.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1041,10 +1064,11 @@ public void float4x4_hashwide_burst() var args = new float4x4_hashwide.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1110,10 +1134,11 @@ public void float2_hashwide_mono() var args = new float2_hashwide.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1127,10 +1152,11 @@ public void float2_hashwide_burst() var args = new float2_hashwide.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs index feaae6b9..5450d48c 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs @@ -70,10 +70,11 @@ public void float4x4_inverse_mono() var args = new float4x4_inverse.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -87,10 +88,11 @@ public void float4x4_inverse_burst() var args = new float4x4_inverse.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -148,10 +150,11 @@ public void float3x3_inverse_mono() var args = new float3x3_inverse.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -165,10 +168,11 @@ public void float3x3_inverse_burst() var args = new float3x3_inverse.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -226,10 +230,11 @@ public void float2x2_inverse_mono() var args = new float2x2_inverse.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -243,10 +248,11 @@ public void float2x2_inverse_burst() var args = new float2x2_inverse.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -304,10 +310,11 @@ public void double4x4_inverse_mono() var args = new double4x4_inverse.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -321,10 +328,11 @@ public void double4x4_inverse_burst() var args = new double4x4_inverse.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -382,10 +390,11 @@ public void double3x3_inverse_mono() var args = new double3x3_inverse.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -399,10 +408,11 @@ public void double3x3_inverse_burst() var args = new double3x3_inverse.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -460,10 +470,11 @@ public void double2x2_inverse_mono() var args = new double2x2_inverse.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -477,10 +488,11 @@ public void double2x2_inverse_burst() var args = new double2x2_inverse.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -538,10 +550,11 @@ public void quaternion_inverse_mono() var args = new quaternion_inverse.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -555,10 +568,11 @@ public void quaternion_inverse_burst() var args = new quaternion_inverse.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs index de550c24..d2efa23f 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs @@ -94,10 +94,11 @@ public void orthonormal_basis_float_mono() var args = new orthonormal_basis_float.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -111,10 +112,11 @@ public void orthonormal_basis_float_burst() var args = new orthonormal_basis_float.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -196,10 +198,11 @@ public void orthonormal_basis_double_mono() var args = new orthonormal_basis_double.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -213,10 +216,11 @@ public void orthonormal_basis_double_burst() var args = new orthonormal_basis_double.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs index c1369c6a..41590ed8 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs @@ -70,10 +70,11 @@ public void Transform_float4x4_mono() var args = new Transform_float4x4.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -87,10 +88,11 @@ public void Transform_float4x4_burst() var args = new Transform_float4x4.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -148,10 +150,11 @@ public void Transform_float3x3_mono() var args = new Transform_float3x3.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -165,10 +168,11 @@ public void Transform_float3x3_burst() var args = new Transform_float3x3.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs index 16ecbe3d..85bf5525 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs @@ -78,10 +78,11 @@ public void float4x4_float4x4_mono() var args = new float4x4_float4x4.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -95,10 +96,11 @@ public void float4x4_float4x4_burst() var args = new float4x4_float4x4.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -164,10 +166,11 @@ public void float4x4_float4_mono() var args = new float4x4_float4.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -181,10 +184,11 @@ public void float4x4_float4_burst() var args = new float4x4_float4.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -250,10 +254,11 @@ public void quaternion_quaternion_mono() var args = new quaternion_quaternion.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -267,10 +272,11 @@ public void quaternion_quaternion_burst() var args = new quaternion_quaternion.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -336,10 +342,11 @@ public void float3x3_float3x3_mono() var args = new float3x3_float3x3.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -353,10 +360,11 @@ public void float3x3_float3x3_burst() var args = new float3x3_float3x3.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -422,10 +430,11 @@ public void float2x2_float2x2_mono() var args = new float2x2_float2x2.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -439,10 +448,11 @@ public void float2x2_float2x2_burst() var args = new float2x2_float2x2.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -508,10 +518,11 @@ public void float3x3_float3_mono() var args = new float3x3_float3.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -525,10 +536,11 @@ public void float3x3_float3_burst() var args = new float3x3_float3.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -594,10 +606,11 @@ public void float2x2_float2_mono() var args = new float2x2_float2.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -611,10 +624,11 @@ public void float2x2_float2_burst() var args = new float2x2_float2.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs index 624b96df..c9d18d8d 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs @@ -70,10 +70,11 @@ public void snoise2D_mono() var args = new snoise2D.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -87,10 +88,11 @@ public void snoise2D_burst() var args = new snoise2D.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -148,10 +150,11 @@ public void snoise3D_mono() var args = new snoise3D.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -165,10 +168,11 @@ public void snoise3D_burst() var args = new snoise3D.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -226,10 +230,11 @@ public void snoise4D_mono() var args = new snoise4D.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -243,10 +248,11 @@ public void snoise4D_burst() var args = new snoise4D.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -312,10 +318,11 @@ public void snoise3Dgrad_mono() var args = new snoise3Dgrad.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -329,10 +336,11 @@ public void snoise3Dgrad_burst() var args = new snoise3Dgrad.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -390,10 +398,11 @@ public void cnoise2D_mono() var args = new cnoise2D.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -407,10 +416,11 @@ public void cnoise2D_burst() var args = new cnoise2D.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -468,10 +478,11 @@ public void cnoise3D_mono() var args = new cnoise3D.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -485,10 +496,11 @@ public void cnoise3D_burst() var args = new cnoise3D.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -546,10 +558,11 @@ public void cnoise4D_mono() var args = new cnoise4D.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -563,10 +576,11 @@ public void cnoise4D_burst() var args = new cnoise4D.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -624,10 +638,11 @@ public void pnoise2D_mono() var args = new pnoise2D.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -641,10 +656,11 @@ public void pnoise2D_burst() var args = new pnoise2D.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -702,10 +718,11 @@ public void pnoise3D_mono() var args = new pnoise3D.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -719,10 +736,11 @@ public void pnoise3D_burst() var args = new pnoise3D.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -780,10 +798,11 @@ public void pnoise4D_mono() var args = new pnoise4D.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -797,10 +816,11 @@ public void pnoise4D_burst() var args = new pnoise4D.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -858,10 +878,11 @@ public void cellular2D_mono() var args = new cellular2D.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -875,10 +896,11 @@ public void cellular2D_burst() var args = new cellular2D.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -936,10 +958,11 @@ public void cellular3D_mono() var args = new cellular3D.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -953,10 +976,11 @@ public void cellular3D_burst() var args = new cellular3D.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1014,10 +1038,11 @@ public void cellular2x2_mono() var args = new cellular2x2.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1031,10 +1056,11 @@ public void cellular2x2_burst() var args = new cellular2x2.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1092,10 +1118,11 @@ public void cellular2x2x2_mono() var args = new cellular2x2x2.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1109,10 +1136,11 @@ public void cellular2x2x2_burst() var args = new cellular2x2x2.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1170,10 +1198,11 @@ public void psrdnoise_mono() var args = new psrdnoise.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1187,10 +1216,11 @@ public void psrdnoise_burst() var args = new psrdnoise.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1248,10 +1278,11 @@ public void psrnoise_mono() var args = new psrnoise.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1265,10 +1296,11 @@ public void psrnoise_burst() var args = new psrnoise.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1326,10 +1358,11 @@ public void srdnoise_mono() var args = new srdnoise.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1343,10 +1376,11 @@ public void srdnoise_burst() var args = new srdnoise.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1404,10 +1438,11 @@ public void srnoise_mono() var args = new srnoise.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1421,10 +1456,11 @@ public void srnoise_burst() var args = new srnoise.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs index f4b12c0c..869b5f14 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs @@ -70,10 +70,11 @@ public void float4_normalize_mono() var args = new float4_normalize.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -87,10 +88,11 @@ public void float4_normalize_burst() var args = new float4_normalize.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -148,10 +150,11 @@ public void float3_normalize_mono() var args = new float3_normalize.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -165,10 +168,11 @@ public void float3_normalize_burst() var args = new float3_normalize.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -226,10 +230,11 @@ public void float2_normalize_mono() var args = new float2_normalize.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -243,10 +248,11 @@ public void float2_normalize_burst() var args = new float2_normalize.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -304,10 +310,11 @@ public void double4_normalize_mono() var args = new double4_normalize.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -321,10 +328,11 @@ public void double4_normalize_burst() var args = new double4_normalize.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -382,10 +390,11 @@ public void double3_normalize_mono() var args = new double3_normalize.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -399,10 +408,11 @@ public void double3_normalize_burst() var args = new double3_normalize.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -460,10 +470,11 @@ public void double2_normalize_mono() var args = new double2_normalize.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -477,10 +488,11 @@ public void double2_normalize_burst() var args = new double2_normalize.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -538,10 +550,11 @@ public void float4_normalizesafe_mono() var args = new float4_normalizesafe.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -555,10 +568,11 @@ public void float4_normalizesafe_burst() var args = new float4_normalizesafe.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -616,10 +630,11 @@ public void float3_normalizesafe_mono() var args = new float3_normalizesafe.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -633,10 +648,11 @@ public void float3_normalizesafe_burst() var args = new float3_normalizesafe.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -694,10 +710,11 @@ public void float2_normalizesafe_mono() var args = new float2_normalizesafe.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -711,10 +728,11 @@ public void float2_normalizesafe_burst() var args = new float2_normalizesafe.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -772,10 +790,11 @@ public void double4_normalizesafe_mono() var args = new double4_normalizesafe.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -789,10 +808,11 @@ public void double4_normalizesafe_burst() var args = new double4_normalizesafe.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -850,10 +870,11 @@ public void double3_normalizesafe_mono() var args = new double3_normalizesafe.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -867,10 +888,11 @@ public void double3_normalizesafe_burst() var args = new double3_normalizesafe.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -928,10 +950,11 @@ public void double2_normalizesafe_mono() var args = new double2_normalizesafe.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -945,10 +968,11 @@ public void double2_normalizesafe_burst() var args = new double2_normalizesafe.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs index 0932a333..ae1818bc 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs @@ -70,10 +70,11 @@ public void Normalize_Plane_mono() var args = new Normalize_Plane.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -87,10 +88,11 @@ public void Normalize_Plane_burst() var args = new Normalize_Plane.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs index 6cdccc7a..51055cc9 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs @@ -78,10 +78,11 @@ public void Random_NextUint_mono() var args = new Random_NextUint.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -95,10 +96,11 @@ public void Random_NextUint_burst() var args = new Random_NextUint.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -164,10 +166,11 @@ public void Random_NextUint2_mono() var args = new Random_NextUint2.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -181,10 +184,11 @@ public void Random_NextUint2_burst() var args = new Random_NextUint2.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -250,10 +254,11 @@ public void Random_NextUint3_mono() var args = new Random_NextUint3.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -267,10 +272,11 @@ public void Random_NextUint3_burst() var args = new Random_NextUint3.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -336,10 +342,11 @@ public void Random_NextUint4_mono() var args = new Random_NextUint4.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -353,10 +360,11 @@ public void Random_NextUint4_burst() var args = new Random_NextUint4.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -422,10 +430,11 @@ public void Random_NextFloat_mono() var args = new Random_NextFloat.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -439,10 +448,11 @@ public void Random_NextFloat_burst() var args = new Random_NextFloat.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -508,10 +518,11 @@ public void Random_NextFloat2_mono() var args = new Random_NextFloat2.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -525,10 +536,11 @@ public void Random_NextFloat2_burst() var args = new Random_NextFloat2.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -594,10 +606,11 @@ public void Random_NextFloat3_mono() var args = new Random_NextFloat3.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -611,10 +624,11 @@ public void Random_NextFloat3_burst() var args = new Random_NextFloat3.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -680,10 +694,11 @@ public void Random_NextFloat4_mono() var args = new Random_NextFloat4.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -697,10 +712,11 @@ public void Random_NextFloat4_burst() var args = new Random_NextFloat4.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -766,10 +782,11 @@ public void Random_NextDouble_mono() var args = new Random_NextDouble.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -783,10 +800,11 @@ public void Random_NextDouble_burst() var args = new Random_NextDouble.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -852,10 +870,11 @@ public void Random_NextDouble2_mono() var args = new Random_NextDouble2.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -869,10 +888,11 @@ public void Random_NextDouble2_burst() var args = new Random_NextDouble2.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -938,10 +958,11 @@ public void Random_NextDouble3_mono() var args = new Random_NextDouble3.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -955,10 +976,11 @@ public void Random_NextDouble3_burst() var args = new Random_NextDouble3.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1024,10 +1046,11 @@ public void Random_NextDouble4_mono() var args = new Random_NextDouble4.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -1041,10 +1064,11 @@ public void Random_NextDouble4_burst() var args = new Random_NextDouble4.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs index b8be6dd0..27fbc1dd 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs @@ -78,10 +78,11 @@ public void float4x4_EulerXYZ_mono() var args = new float4x4_EulerXYZ.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -95,10 +96,11 @@ public void float4x4_EulerXYZ_burst() var args = new float4x4_EulerXYZ.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -164,10 +166,11 @@ public void float3x3_EulerXYZ_mono() var args = new float3x3_EulerXYZ.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -181,10 +184,11 @@ public void float3x3_EulerXYZ_burst() var args = new float3x3_EulerXYZ.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -258,10 +262,11 @@ public void float4x4_AxisAngle_mono() var args = new float4x4_AxisAngle.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -275,10 +280,11 @@ public void float4x4_AxisAngle_burst() var args = new float4x4_AxisAngle.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -352,10 +358,11 @@ public void float3x3_AxisAngle_mono() var args = new float3x3_AxisAngle.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -369,10 +376,11 @@ public void float3x3_AxisAngle_burst() var args = new float3x3_AxisAngle.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -446,10 +454,11 @@ public void float3x3_LookRotation_mono() var args = new float3x3_LookRotation.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -463,10 +472,11 @@ public void float3x3_LookRotation_burst() var args = new float3x3_LookRotation.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -540,10 +550,11 @@ public void float3x3_LookRotationSafe_mono() var args = new float3x3_LookRotationSafe.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -557,10 +568,11 @@ public void float3x3_LookRotationSafe_burst() var args = new float3x3_LookRotationSafe.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -642,10 +654,11 @@ public void float4x4_LookAt_mono() var args = new float4x4_LookAt.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -659,10 +672,11 @@ public void float4x4_LookAt_burst() var args = new float4x4_LookAt.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs index 80c74c48..a4d37840 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs @@ -86,10 +86,11 @@ public void float2_shuffle_mono() var args = new float2_shuffle.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -103,10 +104,11 @@ public void float2_shuffle_burst() var args = new float2_shuffle.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -180,10 +182,11 @@ public void float3_shuffle_mono() var args = new float3_shuffle.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -197,10 +200,11 @@ public void float3_shuffle_burst() var args = new float3_shuffle.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -274,10 +278,11 @@ public void float4_shuffle_mono() var args = new float4_shuffle.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -291,10 +296,11 @@ public void float4_shuffle_burst() var args = new float4_shuffle.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs index 1b9ea9e4..67625c77 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs @@ -70,10 +70,11 @@ public void transpose_float4x4_mono() var args = new transpose_float4x4.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -87,10 +88,11 @@ public void transpose_float4x4_burst() var args = new transpose_float4x4.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -148,10 +150,11 @@ public void transpose_float3x3_mono() var args = new transpose_float3x3.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -165,10 +168,11 @@ public void transpose_float3x3_burst() var args = new transpose_float3x3.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -226,10 +230,11 @@ public void transpose_float2x2_mono() var args = new transpose_float2x2.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -243,10 +248,11 @@ public void transpose_float2x2_burst() var args = new transpose_float2x2.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -304,10 +310,11 @@ public void transpose_double4x4_mono() var args = new transpose_double4x4.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -321,10 +328,11 @@ public void transpose_double4x4_burst() var args = new transpose_double4x4.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -382,10 +390,11 @@ public void transpose_double3x3_mono() var args = new transpose_double3x3.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -399,10 +408,11 @@ public void transpose_double3x3_burst() var args = new transpose_double3x3.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -460,10 +470,11 @@ public void transpose_double2x2_mono() var args = new transpose_double2x2.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -477,10 +488,11 @@ public void transpose_double2x2_burst() var args = new transpose_double2x2.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs index 8b8851ae..55e88160 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs @@ -78,10 +78,11 @@ public void float_sincos_mono() var args = new float_sincos.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -95,10 +96,11 @@ public void float_sincos_burst() var args = new float_sincos.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -164,10 +166,11 @@ public void float2_sincos_mono() var args = new float2_sincos.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -181,10 +184,11 @@ public void float2_sincos_burst() var args = new float2_sincos.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -250,10 +254,11 @@ public void float3_sincos_mono() var args = new float3_sincos.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -267,10 +272,11 @@ public void float3_sincos_burst() var args = new float3_sincos.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -336,10 +342,11 @@ public void float4_sincos_mono() var args = new float4_sincos.Arguments(); args.Init(); - Measure.Method(() => + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); @@ -353,10 +360,11 @@ public void float4_sincos_burst() var args = new float4_sincos.Arguments(); args.Init(); - Measure.Method(() => + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) + .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); diff --git a/src/package.json b/src/package.json index ac714659..e99b4250 100755 --- a/src/package.json +++ b/src/package.json @@ -8,6 +8,7 @@ "unity" ], "dependencies": { + "com.unity.test-framework.performance": "2.8-preview" }, "repository": { "type": "git", From b261137bea8faf132eef27d7a0a258d6e7230770 Mon Sep 17 00:00:00 2001 From: Kevin MacAulay Vacheresse Date: Tue, 16 Mar 2021 12:14:25 -0600 Subject: [PATCH 342/437] Correcting version declared in package.json --- src/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/package.json b/src/package.json index e99b4250..fe25e6cd 100755 --- a/src/package.json +++ b/src/package.json @@ -8,7 +8,7 @@ "unity" ], "dependencies": { - "com.unity.test-framework.performance": "2.8-preview" + "com.unity.test-framework.performance": "2.8.0-preview" }, "repository": { "type": "git", From 8658bf6b8a244a64e95b84aba49e93fce182fe2a Mon Sep 17 00:00:00 2001 From: Kevin MacAulay Vacheresse Date: Tue, 16 Mar 2021 17:41:12 -0600 Subject: [PATCH 343/437] Removes the dependency on test-framework.performace from package as it's only required for Math's test project --- src/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/src/package.json b/src/package.json index fe25e6cd..ac714659 100755 --- a/src/package.json +++ b/src/package.json @@ -8,7 +8,6 @@ "unity" ], "dependencies": { - "com.unity.test-framework.performance": "2.8.0-preview" }, "repository": { "type": "git", From 5e3a64d643b41ac2a563ebdb05e0ff9bd121c770 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 18 Aug 2021 13:22:30 -0700 Subject: [PATCH 344/437] Update license file to conform to standard. (#195) --- LICENSE.md | 32 +++----------------------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 311c9904..c86bf6a7 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,30 +1,4 @@ -Unity Companion License (“License”) -Software Copyright © 2019 Unity Technologies ApS - -Unity Technologies ApS (“Unity”) grants to you a worldwide, non-exclusive, no-charge, and royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute the software that is made available under this License (“Software”), subject to the following terms and conditions: - -1. Unity Companion Use Only. Exercise of the license granted herein is limited to exercise for the creation, use, and/or distribution of applications, software, or other content pursuant to a valid Unity content authoring and rendering engine software license (“Engine License”). That means while use of the Software is not limited to use in the software licensed under the Engine License, the Software may not be used for any purpose other than the creation, use, and/or distribution of Engine License-dependent applications, software, or other content. No other exercise of the license granted herein is permitted, and in no event may the Software be used for competitive analysis or to develop a competing product or service. - -2. No Modification of Engine License. Neither this License nor any exercise of the license granted herein modifies the Engine License in any way. - -3. Ownership & Grant Back to You. +Unity.Mathematics © 2019 Unity Technologies -3.1 You own your content. In this License, “derivative works” means derivatives of the Software itself--works derived only from the Software by you under this License (for example, modifying the code of the Software itself to improve its efficacy); “derivative works” of the Software do not include, for example, games, apps, or content that you create using the Software. You keep all right, title, and interest to your own content. - -3.2 Unity owns its content. While you keep all right, title, and interest to your own content per the above, as between Unity and you, Unity will own all right, title, and interest to all intellectual property rights (including patent, trademark, and copyright) in the Software and derivative works of the Software, and you hereby assign and agree to assign all such rights in those derivative works to Unity. - -3.3 You have a license to those derivative works. Subject to this License, Unity grants to you the same worldwide, non-exclusive, no-charge, and royalty-free copyright license to derivative works of the Software you create as is granted to you for the Software under this License. - -4. Trademarks. You are not granted any right or license under this License to use any trademarks, service marks, trade names, products names, or branding of Unity or its affiliates (“Trademarks”). Descriptive uses of Trademarks are permitted; see, for example, Unity’s Branding Usage Guidelines at https://unity3d.com/public-relations/brand. - -5. Notices & Third-Party Rights. This License, including the copyright notice associated with the Software, must be provided in all substantial portions of the Software and derivative works thereof (or, if that is impracticable, in any other location where such notices are customarily placed). Further, if the Software is accompanied by a Unity “third-party notices” or similar file, you acknowledge and agree that software identified in that file is governed by those separate license terms. - -6. DISCLAIMER, LIMITATION OF LIABILITY. THE SOFTWARE AND ANY DERIVATIVE WORKS THEREOF IS PROVIDED ON AN "AS IS" BASIS, AND IS PROVIDED WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND/OR NONINFRINGEMENT. IN NO EVENT SHALL ANY COPYRIGHT HOLDER OR AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES (WHETHER DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL, INCLUDING PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, LOSS OF USE, DATA, OR PROFITS, AND BUSINESS INTERRUPTION), OR OTHER LIABILITY WHATSOEVER, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM OR OUT OF, OR IN CONNECTION WITH, THE SOFTWARE OR ANY DERIVATIVE WORKS THEREOF OR THE USE OF OR OTHER DEALINGS IN SAME, EVEN WHERE ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -7. USE IS ACCEPTANCE and License Versions. Your receipt and use of the Software constitutes your acceptance of this License and its terms and conditions. Software released by Unity under this License may be modified or updated and the License with it; upon any such modification or update, you will comply with the terms of the updated License for any use of any of the Software under the updated License. - -8. Use in Compliance with Law and Termination. Your exercise of the license granted herein will at all times be in compliance with applicable law and will not infringe any proprietary rights (including intellectual property rights); this License will terminate immediately on any breach by you of this License. - -9. Severability. If any provision of this License is held to be unenforceable or invalid, that provision will be enforced to the maximum extent possible and the other provisions will remain in full force and effect. - -10. Governing Law and Venue. This License is governed by and construed in accordance with the laws of Denmark, except for its conflict of laws rules; the United Nations Convention on Contracts for the International Sale of Goods will not apply. If you reside (or your principal place of business is) within the United States, you and Unity agree to submit to the personal and exclusive jurisdiction of and venue in the state and federal courts located in San Francisco County, California concerning any dispute arising out of this License (“Dispute”). If you reside (or your principal place of business is) outside the United States, you and Unity agree to submit to the personal and exclusive jurisdiction of and venue in the courts located in Copenhagen, Denmark concerning any Dispute. \ No newline at end of file +Licensed under the Unity Companion License for Unity-dependent projects (see https://unity3d.com/legal/licenses/unity_companion_license). +Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions. \ No newline at end of file From 0534d3a98ccd18c50736cc312af3f3f1467ca5e0 Mon Sep 17 00:00:00 2001 From: Cassandra Lacombe Date: Mon, 4 Oct 2021 13:57:40 -0400 Subject: [PATCH 345/437] Package Signature in CI As part of the package signing initiative, we'd like bundled packages to be prepared for upcoming constraints regarding the need to have packages with a valid signature during APV testing. Because of this, we are going through all bundled packages' repositories creating a PR that would enable package signing on your packages. With signing enabled, upm-ci will perform an extra step where it will send each package to a signing service and then generate the final signed artifacts. Internally, in an attempt to ensure that everything works, we are running yamato tests where all bundled packages (including yours) are signed and validated, proving that the packages in this repository should yield no errors. The validation step is also performed in all platforms. In the case that any error does arise, this can be simply reverted back by removing the environment variable, UPMCI_ENABLE_PACKAGE_SIGNING in the publishing jobs. For more information, please refer to: https://confluence.unity3d.com/display/PAK/Package+Signature You can contact us through: #team-pkd-176-internal-package-signing @cassandra & @felipemunoz --- .yamato/upm-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index ee8ad143..7871afb3 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -116,6 +116,8 @@ publish: type: Unity::VM image: package-ci/win10:stable flavor: b1.large + variables: + UPMCI_ENABLE_PACKAGE_SIGNING: 1 commands: - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - upm-ci package publish --package-path src/ From af4f0a33555647a8866bddf84e0e1ac33c678f8b Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Mon, 4 Oct 2021 17:54:45 -0700 Subject: [PATCH 346/437] Merge release/1.2.4 back to master (#198) Merge release/1.2.4 changes to master. Most changes are CI changes. --- .yamato/upm-ci.yml | 136 +++++++++++++++++++---------- LICENSE.md | 2 +- src/CHANGELOG.md | 15 +++- src/LICENSE.md | 32 +------ src/Unity.Mathematics/math.cs | 2 - src/ValidationExceptions.json | 5 ++ src/ValidationExceptions.json.meta | 7 ++ src/package.json | 2 +- 8 files changed, 116 insertions(+), 85 deletions(-) create mode 100644 src/ValidationExceptions.json create mode 100644 src/ValidationExceptions.json.meta diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index 7871afb3..7abddb97 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -26,37 +26,83 @@ upmci_platforms: type: Unity::VM::osx flavor: b1.large -editor_versions: +validate_editor_versions: - version: "2018.4" display_name: "2018.4" - - version: "2019.2" - display_name: "2019.2" - - version: "2019.3" - display_name: "2019.3" - - version: "2020.2/partner/staging" - display_name: "2020.2_partner_staging" + - version: "2019.4" + display_name: "2019.4" + - version: "2020.3" + display_name: "2020.3" + - version: "2021.1" + display_name: "2021.1" + - version: "2021.2" + display_name: "2021.2" + - version: "2022.1" + display_name: "2022.1" + - version: "2020.3/partner/staging" + display_name: "2020.3_partner_staging" + - version: "trunk" + display_name: "trunk" + +package_tests_editor_versions: + # 2018.3 shows up here but not under validate_editor_versions because package validation is no longer + # supported on 2018.3 but Mathematics still supports it so we need to be able to test it. CI jobs + # from this list will run package tests only instead of the full validation suite. + - version: "2018.3" + display_name: "2018.3" + - version: "2018.4" + display_name: "2018.4" + - version: "2019.4" + display_name: "2019.4" + - version: "2020.3" + display_name: "2020.3" + - version: "2021.1" + display_name: "2021.1" + - version: "2021.2" + display_name: "2021.2" + - version: "2022.1" + display_name: "2022.1" + - version: "2020.3/partner/staging" + display_name: "2020.3_partner_staging" - version: "trunk" display_name: "trunk" --- -{% for platform in build_platforms %} -{% unless platform.name == "linux" %} -run_tests_on_mono_{{platform.name}}: - name: Tests NUnit on {{platform.name}} +{% for platform in upmci_platforms %} +{% for editor in package_tests_editor_versions %} +package_tests_{{platform.name}}_{{editor.display_name}}: + name: Package tests {{platform.name}} {{editor.display_name}} agent: - type: {{platform.type}} - image: {{platform.image}} - flavor: {{platform.flavor}} + image: {{platform.image}} + type: {{platform.type}} + flavor: {{platform.flavor}} commands: - {% if platform.name == "windows" %} - - choco install nuget.commandline - {% endif %} - - nuget restore src - - msbuild src/Unity.Mathematics.sln - - mono src/packages/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe src/Tests/bin/Debug/Unity.Mathematics.Tests.dll --process=single -{% endunless %} + - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g + - upm-ci package pack --package-path src/ + - upm-ci package test --type package-tests --package-path src/ --unity-version {{ editor.version }} + artifacts: + test_results: + paths: + - "upm-ci~/**/*" +{% endfor %} {% endfor %} +package_tests_all: + name: Package tests all + dependencies: + {% for platform in upmci_platforms %} + {% for editor in package_tests_editor_versions %} + - .yamato/upm-ci.yml#package_tests_{{platform.name}}_{{editor.display_name}} + {% endfor %} + {% endfor %} + +package_tests_minimal: + name: Package tests minimal + dependencies: + {% for platform in upmci_platforms %} + - .yamato/upm-ci.yml#package_tests_{{platform.name}}_2018.3 + {% endfor %} + validate_package_minimal: name: Validate Package Linux Minimal agent: @@ -66,7 +112,7 @@ validate_package_minimal: commands: - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version 2019.1 + - upm-ci package test --package-path src/ --unity-version 2019.4 artifacts: packages: paths: @@ -74,15 +120,9 @@ validate_package_minimal: test_results: paths: - "upm-ci~/**/*" - dependencies: - {% for platform in build_platforms %} - {% unless platform.name == "linux" %} - - .yamato/upm-ci.yml#run_tests_on_mono_{{platform.name}} - {% endunless %} - {% endfor %} - {% for platform in upmci_platforms %} - {% for editor in editor_versions %} +{% for platform in upmci_platforms %} +{% for editor in validate_editor_versions %} validate_package_{{platform.name}}_{{editor.display_name}}: name: Validate package {{platform.name}} {{editor.display_name}} agent: @@ -100,15 +140,17 @@ validate_package_{{platform.name}}_{{editor.display_name}}: results_{{platform.name}}_{{editor.display_name}}: paths: - "upm-ci~/**/*" +{% endfor %} +{% endfor %} + +validate_package_all: + name: Validate package all dependencies: - {% for platform in build_platforms %} - {% unless platform.name == "linux" %} - - .yamato/upm-ci.yml#run_tests_on_mono_{{platform.name}} - {% endunless %} + {% for platform in upmci_platforms %} + {% for editor in validate_editor_versions %} + - .yamato/upm-ci.yml#validate_package_{{platform.name}}_{{editor.display_name}} + {% endfor %} {% endfor %} - {% endfor %} - {% endfor %} - publish: name: Publish @@ -126,8 +168,12 @@ publish: paths: - "upm-ci~/packages/**/*" dependencies: - - .yamato/upm-ci.yml#validate_package_minimal - + {% for platform in build_platforms %} + {% for editor in validate_editor_versions %} + - .yamato/upm-ci.yml#validate_package_{{platform.name}}_{{editor.display_name}} + {% endfor %} + {% endfor %} + - .yamato/upm-ci.yml#package_tests_minimal promote: name: Promote @@ -147,7 +193,6 @@ promote: dependencies: - .yamato/upm-ci.yml#publish - publish_ci: name: all Publish Pipeline triggers: @@ -164,18 +209,13 @@ nightly_ci: - branch: master frequency: daily dependencies: - {% for platform in build_platforms %} - {% for editor in editor_versions %} - - .yamato/upm-ci.yml#validate_package_{{platform.name}}_{{editor.display_name}} - {% endfor %} - {% endfor %} - + - .yamato/upm-ci.yml#validate_package_all commit_ci: - name: all CI pipeline + name: Commit CI pipeline triggers: branches: only: - "/.*/" dependencies: - - .yamato/upm-ci.yml#validate_package_minimal + - .yamato/upm-ci.yml#package_tests_minimal diff --git a/LICENSE.md b/LICENSE.md index c86bf6a7..3ab46903 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -Unity.Mathematics © 2019 Unity Technologies +com.unity.mathematics copyright © 2019 Unity Technologies Licensed under the Unity Companion License for Unity-dependent projects (see https://unity3d.com/legal/licenses/unity_companion_license). Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions. \ No newline at end of file diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 7f0d7db1..f58636ca 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -2,22 +2,29 @@ ## [Unreleased] ### Added -* Added `[Il2CppEagerStaticClassConstruction]` to Unity.Mathematics types to run static constructors at startup. This improves IL2CPP performance slightly for types that have static constructors. * Added `math.square()` to compute the square (x * x). * Added `math.orthonormal_basis()` to compute an orthonormal basis from a single unit length vector. * Added `math.sign(x)` for int, int2, int3 and int4. ### Changed -* Changed noise documentation in comments to xmldoc comments. +### Deprecated +### Removed +### Fixed + +## [1.2.4] - 2021-09-22 +### Added +* Added `[Il2CppEagerStaticClassConstruction]` to Unity.Mathematics types to run static constructors at startup. This improves IL2CPP performance slightly for types that have static constructors. +### Changed +* License file updated to satisfy Unity's package validation tests. +* Changed noise documentation in comments to xmldoc comments. ### Deprecated ### Removed ### Fixed * Fixed Equals(object) override which did not check type before casting. This could cause exceptions to be thrown when the object did not match the expected type. * Fixed incorrect `math.tzcnt` documentation which mentioned leading zero counts instead of trailing zero counts. * Fixed `float2x2.Rotate` documentation to mention radians instead of degrees. - -### Internal (Not ready for production) +* Fixed documentation for methods and properties that were previously undocumented. ## [1.2.1] - 2020-08-06 diff --git a/src/LICENSE.md b/src/LICENSE.md index 311c9904..3ab46903 100755 --- a/src/LICENSE.md +++ b/src/LICENSE.md @@ -1,30 +1,4 @@ -Unity Companion License (“License”) -Software Copyright © 2019 Unity Technologies ApS - -Unity Technologies ApS (“Unity”) grants to you a worldwide, non-exclusive, no-charge, and royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute the software that is made available under this License (“Software”), subject to the following terms and conditions: - -1. Unity Companion Use Only. Exercise of the license granted herein is limited to exercise for the creation, use, and/or distribution of applications, software, or other content pursuant to a valid Unity content authoring and rendering engine software license (“Engine License”). That means while use of the Software is not limited to use in the software licensed under the Engine License, the Software may not be used for any purpose other than the creation, use, and/or distribution of Engine License-dependent applications, software, or other content. No other exercise of the license granted herein is permitted, and in no event may the Software be used for competitive analysis or to develop a competing product or service. - -2. No Modification of Engine License. Neither this License nor any exercise of the license granted herein modifies the Engine License in any way. - -3. Ownership & Grant Back to You. +com.unity.mathematics copyright © 2019 Unity Technologies -3.1 You own your content. In this License, “derivative works” means derivatives of the Software itself--works derived only from the Software by you under this License (for example, modifying the code of the Software itself to improve its efficacy); “derivative works” of the Software do not include, for example, games, apps, or content that you create using the Software. You keep all right, title, and interest to your own content. - -3.2 Unity owns its content. While you keep all right, title, and interest to your own content per the above, as between Unity and you, Unity will own all right, title, and interest to all intellectual property rights (including patent, trademark, and copyright) in the Software and derivative works of the Software, and you hereby assign and agree to assign all such rights in those derivative works to Unity. - -3.3 You have a license to those derivative works. Subject to this License, Unity grants to you the same worldwide, non-exclusive, no-charge, and royalty-free copyright license to derivative works of the Software you create as is granted to you for the Software under this License. - -4. Trademarks. You are not granted any right or license under this License to use any trademarks, service marks, trade names, products names, or branding of Unity or its affiliates (“Trademarks”). Descriptive uses of Trademarks are permitted; see, for example, Unity’s Branding Usage Guidelines at https://unity3d.com/public-relations/brand. - -5. Notices & Third-Party Rights. This License, including the copyright notice associated with the Software, must be provided in all substantial portions of the Software and derivative works thereof (or, if that is impracticable, in any other location where such notices are customarily placed). Further, if the Software is accompanied by a Unity “third-party notices” or similar file, you acknowledge and agree that software identified in that file is governed by those separate license terms. - -6. DISCLAIMER, LIMITATION OF LIABILITY. THE SOFTWARE AND ANY DERIVATIVE WORKS THEREOF IS PROVIDED ON AN "AS IS" BASIS, AND IS PROVIDED WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND/OR NONINFRINGEMENT. IN NO EVENT SHALL ANY COPYRIGHT HOLDER OR AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES (WHETHER DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL, INCLUDING PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, LOSS OF USE, DATA, OR PROFITS, AND BUSINESS INTERRUPTION), OR OTHER LIABILITY WHATSOEVER, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM OR OUT OF, OR IN CONNECTION WITH, THE SOFTWARE OR ANY DERIVATIVE WORKS THEREOF OR THE USE OF OR OTHER DEALINGS IN SAME, EVEN WHERE ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -7. USE IS ACCEPTANCE and License Versions. Your receipt and use of the Software constitutes your acceptance of this License and its terms and conditions. Software released by Unity under this License may be modified or updated and the License with it; upon any such modification or update, you will comply with the terms of the updated License for any use of any of the Software under the updated License. - -8. Use in Compliance with Law and Termination. Your exercise of the license granted herein will at all times be in compliance with applicable law and will not infringe any proprietary rights (including intellectual property rights); this License will terminate immediately on any breach by you of this License. - -9. Severability. If any provision of this License is held to be unenforceable or invalid, that provision will be enforced to the maximum extent possible and the other provisions will remain in full force and effect. - -10. Governing Law and Venue. This License is governed by and construed in accordance with the laws of Denmark, except for its conflict of laws rules; the United Nations Convention on Contracts for the International Sale of Goods will not apply. If you reside (or your principal place of business is) within the United States, you and Unity agree to submit to the personal and exclusive jurisdiction of and venue in the state and federal courts located in San Francisco County, California concerning any dispute arising out of this License (“Dispute”). If you reside (or your principal place of business is) outside the United States, you and Unity agree to submit to the personal and exclusive jurisdiction of and venue in the courts located in Copenhagen, Denmark concerning any Dispute. \ No newline at end of file +Licensed under the Unity Companion License for Unity-dependent projects (see https://unity3d.com/legal/licenses/unity_companion_license). +Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions. \ No newline at end of file diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 3400cc01..ad464d7d 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -2627,7 +2627,6 @@ public static bool4 ispow2(uint4 x) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double4 rcp(double4 x) { return 1.0 / x; } - /// Returns the sign of a int value. -1 if it is less than zero, 0 if it is zero and 1 if it greater than zero. /// Input value. /// The sign of the input. @@ -2652,7 +2651,6 @@ public static bool4 ispow2(uint4 x) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int4 sign(int4 x) { return new int4(sign(x.x), sign(x.y), sign(x.z), sign(x.w)); } - /// Returns the sign of a float value. -1.0f if it is less than zero, 0.0f if it is zero and 1.0f if it greater than zero. /// Input value. /// The sign of the input. diff --git a/src/ValidationExceptions.json b/src/ValidationExceptions.json new file mode 100644 index 00000000..e8a81512 --- /dev/null +++ b/src/ValidationExceptions.json @@ -0,0 +1,5 @@ +{ + "ErrorExceptions": [ + ], + "WarningExceptions": [] +} \ No newline at end of file diff --git a/src/ValidationExceptions.json.meta b/src/ValidationExceptions.json.meta new file mode 100644 index 00000000..e0483f02 --- /dev/null +++ b/src/ValidationExceptions.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 5ed727127196a4ecc90e24e2cd7af338 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/package.json b/src/package.json index ac714659..da1a2f7c 100755 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.mathematics", "displayName": "Mathematics", - "version": "1.2.1", + "version": "1.2.4", "unity": "2018.3", "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax.", "keywords": [ From 4a1d9dff0feb4b91699d118406a145505aa3c1cd Mon Sep 17 00:00:00 2001 From: Fabrizio Perria Date: Wed, 20 Oct 2021 10:54:07 +0200 Subject: [PATCH 347/437] Provide runtime identifier --- src/Unity.Mathematics/Unity.Mathematics.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 11383fbb..fa59d06c 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -11,6 +11,7 @@ Unity Unity.Mathematics v4.7.1 + win 512 From 4f846b8ce86bddf054c771e3940eeed92000c5a3 Mon Sep 17 00:00:00 2001 From: Fabrizio Perria Date: Wed, 20 Oct 2021 11:42:40 +0200 Subject: [PATCH 348/437] Revert "Provide runtime identifier" This reverts commit 4a1d9dff0feb4b91699d118406a145505aa3c1cd. --- src/Unity.Mathematics/Unity.Mathematics.csproj | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index fa59d06c..11383fbb 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -11,7 +11,6 @@ Unity Unity.Mathematics v4.7.1 - win 512 From 6c978302ee98bcebadc69a9e8ddb039a8a33f70c Mon Sep 17 00:00:00 2001 From: Fabrizio Perria Date: Wed, 20 Oct 2021 11:43:20 +0200 Subject: [PATCH 349/437] recover burst compatibility --- src/Tests/Unity.Mathematics.Tests.csproj | 2 +- src/Unity.Mathematics.sln | 8 +- src/Unity.Mathematics/Geometry/MinMaxAABB.cs | 4 +- src/Unity.Mathematics/Geometry/Plane.cs | 2 +- .../Properties/AssemblyInfo.cs | 47 ----- .../Unity.Mathematics.csproj | 163 ++---------------- 6 files changed, 18 insertions(+), 208 deletions(-) delete mode 100644 src/Unity.Mathematics/Properties/AssemblyInfo.cs diff --git a/src/Tests/Unity.Mathematics.Tests.csproj b/src/Tests/Unity.Mathematics.Tests.csproj index 4ca36bde..7d9e0d5c 100644 --- a/src/Tests/Unity.Mathematics.Tests.csproj +++ b/src/Tests/Unity.Mathematics.Tests.csproj @@ -103,7 +103,7 @@ - + diff --git a/src/Unity.Mathematics.sln b/src/Unity.Mathematics.sln index 19d5c88a..2e4dadd0 100644 --- a/src/Unity.Mathematics.sln +++ b/src/Unity.Mathematics.sln @@ -28,14 +28,14 @@ Global GlobalSection(ProjectConfigurationPlatforms) = postSolution {19810344-7387-4155-935F-BDD5CC61F0BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19810344-7387-4155-935F-BDD5CC61F0BF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {19810344-7387-4155-935F-BDD5CC61F0BF}.Debug|x64.ActiveCfg = Debug|x64 - {19810344-7387-4155-935F-BDD5CC61F0BF}.Debug|x64.Build.0 = Debug|x64 + {19810344-7387-4155-935F-BDD5CC61F0BF}.Debug|x64.ActiveCfg = Debug|Any CPU + {19810344-7387-4155-935F-BDD5CC61F0BF}.Debug|x64.Build.0 = Debug|Any CPU {19810344-7387-4155-935F-BDD5CC61F0BF}.Debug|x86.ActiveCfg = Debug|Any CPU {19810344-7387-4155-935F-BDD5CC61F0BF}.Debug|x86.Build.0 = Debug|Any CPU {19810344-7387-4155-935F-BDD5CC61F0BF}.Release|Any CPU.ActiveCfg = Release|Any CPU {19810344-7387-4155-935F-BDD5CC61F0BF}.Release|Any CPU.Build.0 = Release|Any CPU - {19810344-7387-4155-935F-BDD5CC61F0BF}.Release|x64.ActiveCfg = Release|x64 - {19810344-7387-4155-935F-BDD5CC61F0BF}.Release|x64.Build.0 = Release|x64 + {19810344-7387-4155-935F-BDD5CC61F0BF}.Release|x64.ActiveCfg = Release|Any CPU + {19810344-7387-4155-935F-BDD5CC61F0BF}.Release|x64.Build.0 = Release|Any CPU {19810344-7387-4155-935F-BDD5CC61F0BF}.Release|x86.ActiveCfg = Release|Any CPU {19810344-7387-4155-935F-BDD5CC61F0BF}.Release|x86.Build.0 = Release|Any CPU {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU diff --git a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs index eb4a3876..6b5b666d 100644 --- a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs +++ b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs @@ -16,7 +16,7 @@ namespace Unity.Mathematics.Geometry /// [System.Serializable] [Il2CppEagerStaticClassConstruction] - internal struct MinMaxAABB : IEquatable + public struct MinMaxAABB : IEquatable { /// /// The minimum point contained by the AABB. @@ -213,7 +213,7 @@ public override string ToString() } } - internal static partial class Math + public static partial class Math { /// /// Transforms the AABB with the given transform. diff --git a/src/Unity.Mathematics/Geometry/Plane.cs b/src/Unity.Mathematics/Geometry/Plane.cs index 92d47c5e..5094bb94 100644 --- a/src/Unity.Mathematics/Geometry/Plane.cs +++ b/src/Unity.Mathematics/Geometry/Plane.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Geometry [DebuggerDisplay("{Normal}, {Distance}")] [Serializable] [Il2CppEagerStaticClassConstruction] - internal struct Plane + public struct Plane { /// /// A plane in the form Ax + By + Cz + Dw = 0. diff --git a/src/Unity.Mathematics/Properties/AssemblyInfo.cs b/src/Unity.Mathematics/Properties/AssemblyInfo.cs deleted file mode 100644 index c090f5b4..00000000 --- a/src/Unity.Mathematics/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -#if !UNITY_DOTSPLAYER -using System.Reflection; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("Unity.Mathematics")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Unity.Mathematics")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("19810344-7387-4155-935F-BDD5CC61F0BF")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] - -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] -#endif - -[assembly: InternalsVisibleTo("Unity.Mathematics.Tests")] -[assembly: InternalsVisibleTo("Unity.Mathematics.PerformanceTests")] -[assembly: InternalsVisibleTo("btests")] \ No newline at end of file diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 11383fbb..43ae5cc1 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -1,162 +1,19 @@ - - - + - Debug - AnyCPU - {19810344-7387-4155-935F-BDD5CC61F0BF} - {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Library - Properties - Unity - Unity.Mathematics - v4.7.1 - 512 - - - AnyCPU - true - full - false - ..\..\build\bin\Debug\ - DEBUG;TRACE - prompt - 4 - true - true - - - AnyCPU - pdbonly - true - ..\..\build\bin\Release\ - TRACE - prompt - 4 - true - true - - - AnyCPU - true - full - false - ..\..\build\bin\Debug\ - DEBUG;TRACE - prompt - 4 - true - true - - + net471 AnyCPU - pdbonly - true - ..\..\build\bin\Release\ - TRACE - prompt - 4 true - true + false + ..\..\build\bin\$(Configuration)\ - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - + \ No newline at end of file From 0a19cfed4bec15aebf0d4365ecb91308464a07c4 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Thu, 2 Jul 2020 12:03:09 +0200 Subject: [PATCH 350/437] Fix Unity.Mathematics to stay on version 1.0.0.0 --- src/Unity.Mathematics/Unity.Mathematics.csproj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 43ae5cc1..f4c7c4e6 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -5,6 +5,8 @@ true false ..\..\build\bin\$(Configuration)\ + + 1.0.0.0 From 5b4fc08f44cf57001c8086e73f6619e0b9b8bddd Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Mon, 1 Nov 2021 11:23:54 -0700 Subject: [PATCH 351/437] DOTS-5107: Fix vector drawing in the inspector. (#199) Fix property drawing in the inspector when manually drawing a property that was hidden with `[HideInInspector]`. --- src/CHANGELOG.md | 1 + .../PrimitiveVectorDrawer.cs | 147 +++++++++++++++++- 2 files changed, 146 insertions(+), 2 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index f58636ca..027ec284 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -10,6 +10,7 @@ ### Deprecated ### Removed ### Fixed +* Fixed property drawing when manually drawing a property that was hidden with [HideInInspector]. ## [1.2.4] - 2021-09-22 ### Added diff --git a/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs b/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs index d84d81f9..28d8f47f 100644 --- a/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs +++ b/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs @@ -89,9 +89,152 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten if (attribute is DoNotNormalizeAttribute && string.IsNullOrEmpty(label.tooltip)) label.tooltip = Content.doNotNormalizeTooltip; - EditorGUI.BeginProperty(position, label, property); - EditorGUI.MultiPropertyField(position, subLabels, property.FindPropertyRelative(startIter), label); + label = EditorGUI.BeginProperty(position, label, property); + var valuesIterator = property.FindPropertyRelative(startIter); + MultiPropertyField(position, subLabels, valuesIterator, label); EditorGUI.EndProperty(); } + + void MultiPropertyField(Rect position, GUIContent[] subLabels, SerializedProperty valuesIterator, GUIContent label) + { +#if UNITY_2022_1_OR_NEWER + EditorGUI.MultiPropertyField(position, subLabels, valuesIterator, label, EditorGUI.PropertyVisibility.All); +#else + EditorGUICopy.MultiPropertyField(position, subLabels, valuesIterator, label); +#endif + } + } + +#if !UNITY_2022_1_OR_NEWER + internal class EditorGUICopy + { + internal const float kSpacingSubLabel = 4; + private const float kIndentPerLevel = 15; + internal const float kPrefixPaddingRight = 2; + internal static int indentLevel = 0; + private static readonly int s_FoldoutHash = "Foldout".GetHashCode(); + + // internal static readonly SVC kVerticalSpacingMultiField = new SVC("--theme-multifield-vertical-spacing", 0.0f); + // kVerticalSpacingMultiField should actually look like the above line ^^^ but we don't have access to SVC, + // so instead we just set this value to what is observed in the debugger with the Unity dark theme. + internal const float kVerticalSpacingMultiField = 2; + + internal enum PropertyVisibility + { + All, + OnlyVisible + } + + // This code is basically EditorGUI.MultiPropertyField(Rect, GUIContent[], SerializedProperty, GUIContent), + // but with the property visibility assumed to be "All" instead of "OnlyVisible". We really want to have "All" + // because it's possible for someone to hide something in the inspector with [HideInInspector] but then manually + // draw it themselves later. In this case, if you called EditorGUI.MultiPropertyField() directly, you'd + // end up with some fields that point to some unrelated visible property. + public static void MultiPropertyField(Rect position, GUIContent[] subLabels, SerializedProperty valuesIterator, GUIContent label) + { + int id = GUIUtility.GetControlID(s_FoldoutHash, FocusType.Keyboard, position); + position = MultiFieldPrefixLabel(position, id, label, subLabels.Length); + position.height = EditorGUIUtility.singleLineHeight; + MultiPropertyFieldInternal(position, subLabels, valuesIterator, PropertyVisibility.All); + } + + internal static void BeginDisabled(bool disabled) + { + // Unused, but left here to minimize changes in EditorGUICopy.MultiPropertyFieldInternal(). + } + + internal static void EndDisabled() + { + // Unused, but left here to minimize changes in EditorGUICopy.MultiPropertyFieldInternal(). + } + + internal static float CalcPrefixLabelWidth(GUIContent label, GUIStyle style = null) + { + if (style == null) + style = EditorStyles.label; + return style.CalcSize(label).x; + } + + internal static void MultiPropertyFieldInternal(Rect position, GUIContent[] subLabels, SerializedProperty valuesIterator, PropertyVisibility visibility, bool[] disabledMask = null, float prefixLabelWidth = -1) + { + int eCount = subLabels.Length; + float w = (position.width - (eCount - 1) * kSpacingSubLabel) / eCount; + Rect nr = new Rect(position) {width = w}; + float t = EditorGUIUtility.labelWidth; + int l = indentLevel; + indentLevel = 0; + for (int i = 0; i < subLabels.Length; i++) + { + EditorGUIUtility.labelWidth = prefixLabelWidth > 0 ? prefixLabelWidth : CalcPrefixLabelWidth(subLabels[i]); + + if (disabledMask != null) + BeginDisabled(disabledMask[i]); + EditorGUI.PropertyField(nr, valuesIterator, subLabels[i]); + if (disabledMask != null) + EndDisabled(); + nr.x += w + kSpacingSubLabel; + + switch (visibility) + { + case PropertyVisibility.All: + valuesIterator.Next(false); + break; + + case PropertyVisibility.OnlyVisible: + valuesIterator.NextVisible(false); + break; + } + } + EditorGUIUtility.labelWidth = t; + indentLevel = l; + } + + internal static bool LabelHasContent(GUIContent label) + { + if (label == null) + { + return true; + } + // @TODO: find out why checking for GUIContent.none doesn't work + return label.text != string.Empty || label.image != null; + } + + internal static float indent => indentLevel * kIndentPerLevel; + + internal static Rect MultiFieldPrefixLabel(Rect totalPosition, int id, GUIContent label, int columns) + { + if (!LabelHasContent(label)) + { + return EditorGUI.IndentedRect(totalPosition); + } + + if (EditorGUIUtility.wideMode) + { + Rect labelPosition = new Rect(totalPosition.x + indent, totalPosition.y, EditorGUIUtility.labelWidth - indent, EditorGUIUtility.singleLineHeight); + Rect fieldPosition = totalPosition; + fieldPosition.xMin += EditorGUIUtility.labelWidth + kPrefixPaddingRight; + + // If there are 2 columns we use the same column widths as if there had been 3 columns + // in order to make columns line up neatly. + if (columns == 2) + { + float columnWidth = (fieldPosition.width - (3 - 1) * kSpacingSubLabel) / 3f; + fieldPosition.xMax -= (columnWidth + kSpacingSubLabel); + } + + EditorGUI.HandlePrefixLabel(totalPosition, labelPosition, label, id); + return fieldPosition; + } + else + { + Rect labelPosition = new Rect(totalPosition.x + indent, totalPosition.y, totalPosition.width - indent, EditorGUIUtility.singleLineHeight); + Rect fieldPosition = totalPosition; + fieldPosition.xMin += indent + kIndentPerLevel; + fieldPosition.yMin += EditorGUIUtility.singleLineHeight + kVerticalSpacingMultiField; + EditorGUI.HandlePrefixLabel(totalPosition, labelPosition, label, id); + return fieldPosition; + } + } } +#endif } From e5b7df1d758d901825b3465757cff88aea72b0d3 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Fri, 12 Nov 2021 16:18:39 -0800 Subject: [PATCH 352/437] Merge back 1.2.5 to master (#202) Merging changelog and package.json after releasing 1.2.5. --- src/CHANGELOG.md | 7 ++++++- src/package.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 027ec284..f780369d 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -5,7 +5,13 @@ * Added `math.square()` to compute the square (x * x). * Added `math.orthonormal_basis()` to compute an orthonormal basis from a single unit length vector. * Added `math.sign(x)` for int, int2, int3 and int4. +### Changed +### Deprecated +### Removed +### Fixed +## [1.2.5] - 2021-11-01 +### Added ### Changed ### Deprecated ### Removed @@ -15,7 +21,6 @@ ## [1.2.4] - 2021-09-22 ### Added * Added `[Il2CppEagerStaticClassConstruction]` to Unity.Mathematics types to run static constructors at startup. This improves IL2CPP performance slightly for types that have static constructors. - ### Changed * License file updated to satisfy Unity's package validation tests. * Changed noise documentation in comments to xmldoc comments. diff --git a/src/package.json b/src/package.json index da1a2f7c..21c041d3 100755 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.mathematics", "displayName": "Mathematics", - "version": "1.2.4", + "version": "1.2.5", "unity": "2018.3", "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax.", "keywords": [ From 4528bab5e33afd1956f5acca564d05b89e6d4fd8 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Mon, 22 Nov 2021 14:09:48 -0800 Subject: [PATCH 353/437] Make performance tests create a variable for iteration count. (#205) While the performance tests worked just fine, it was annoying to hand modify a performance test when investigating performance issues. You had to search the code for all instances of a const literal and be sure you changed the number in all those places. Instead, use a variable so you can change it in one place. --- .../VectorGenerator.cs | 7 +- .../TestConversions.gen.cs | 116 +++++++------ .../TestFastInverse.gen.cs | 16 +- .../TestHash.gen.cs | 156 ++++++++++-------- .../TestInverse.gen.cs | 56 ++++--- .../TestMath.gen.cs | 40 +++-- .../TestMinMaxAABB.gen.cs | 16 +- .../TestMul.gen.cs | 84 ++++++---- .../TestNoise.gen.cs | 148 ++++++++++------- .../TestNormalize.gen.cs | 96 +++++++---- .../TestPlane.gen.cs | 8 +- .../TestRandom.gen.cs | 144 +++++++++------- .../TestRotation.gen.cs | 108 ++++++------ .../TestShuffle.gen.cs | 48 +++--- .../TestTranspose.gen.cs | 48 ++++-- .../TestTrig.gen.cs | 48 +++--- 16 files changed, 675 insertions(+), 464 deletions(-) diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index 35d58e12..74ca911d 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -3722,6 +3722,7 @@ void GeneratePerformanceTest(StringBuilder str, string testName, PerformanceTest str.AppendFormat("\t\t[BurstCompile(CompileSynchronously = true)]\n"); str.AppendFormat("\t\tpublic unsafe class {0}\n", testName); str.AppendFormat("\t\t{{\n"); + str.AppendFormat("\t\t\tpublic const int iterations = {0};\n\n", loopIterations); str.AppendFormat("\t\t\tpublic struct Arguments : IDisposable\n"); str.AppendFormat("\t\t\t{{\n"); @@ -3736,8 +3737,8 @@ void GeneratePerformanceTest(StringBuilder str, string testName, PerformanceTest foreach (var argument in testArguments) { - str.AppendFormat("\t\t\t\t\t{0} = ({1}*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf<{1}>() * {2}, UnsafeUtility.AlignOf<{1}>(), Allocator.Persistent);\n", argument.m_MemberName, argument.m_ElementType, loopIterations); - str.AppendFormat("\t\t\t\t\tfor (int i = 0; i < {0}; ++i)\n", loopIterations); + str.AppendFormat("\t\t\t\t\t{0} = ({1}*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf<{1}>() * iterations, UnsafeUtility.AlignOf<{1}>(), Allocator.Persistent);\n", argument.m_MemberName, argument.m_ElementType); + str.AppendFormat("\t\t\t\t\tfor (int i = 0; i < iterations; ++i)\n"); str.AppendFormat("\t\t\t\t\t{{\n"); str.AppendFormat("\t\t\t\t\t {0}[i] = {1};\n", argument.m_MemberName, argument.m_ElementInitializer); str.AppendFormat("\t\t\t\t\t}}\n\n"); @@ -3758,7 +3759,7 @@ void GeneratePerformanceTest(StringBuilder str, string testName, PerformanceTest str.AppendFormat("\t\t\tpublic static void CommonTestFunction(ref Arguments args)\n"); str.AppendFormat("\t\t\t{{\n"); - str.AppendFormat("\t\t\t\tfor (int i = 0; i < {0}; ++i)\n", loopIterations); + str.AppendFormat("\t\t\t\tfor (int i = 0; i < iterations; ++i)\n"); str.AppendFormat("\t\t\t\t{{\n"); str.AppendFormat("\t\t\t\t\t{0}\n", loopBody); str.AppendFormat("\t\t\t\t}}\n"); diff --git a/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs index 08266759..20193726 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs @@ -21,6 +21,8 @@ partial class TestConversions [BurstCompile(CompileSynchronously = true)] public unsafe class quaternion_to_float3x3 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public quaternion* q; @@ -28,14 +30,14 @@ public struct Arguments : IDisposable public void Init() { - q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { q[i] = quaternion.identity; } - f3x3 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f3x3 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f3x3[i] = float3x3.identity; } @@ -51,7 +53,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.f3x3[i] = new float3x3(args.q[i]); } @@ -109,6 +111,8 @@ public void quaternion_to_float3x3_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3x3_to_quaternion { + public const int iterations = 10000; + public struct Arguments : IDisposable { public quaternion* q; @@ -116,14 +120,14 @@ public struct Arguments : IDisposable public void Init() { - q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { q[i] = quaternion.identity; } - f3x3 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f3x3 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f3x3[i] = float3x3.identity; } @@ -139,7 +143,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.q[i] = new quaternion(args.f3x3[i]); } @@ -197,6 +201,8 @@ public void float3x3_to_quaternion_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float4_to_half4 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4* f4; @@ -204,14 +210,14 @@ public struct Arguments : IDisposable public void Init() { - f4 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f4 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f4[i] = new float4(1.0f, 2.0f, 3.0f, 4.0f); } - h4 = (half4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + h4 = (half4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { h4[i] = new half4(new float4(-1.0f, -2.0f, -3.0f, -4.0f)); } @@ -227,7 +233,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.h4[i] = new half4(args.f4[i]); } @@ -285,6 +291,8 @@ public void float4_to_half4_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class half4_to_float4 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4* f4; @@ -292,14 +300,14 @@ public struct Arguments : IDisposable public void Init() { - f4 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f4 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f4[i] = new float4(1.0f, 2.0f, 3.0f, 4.0f); } - h4 = (half4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + h4 = (half4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { h4[i] = new half4(new float4(-1.0f, -2.0f, -3.0f, -4.0f)); } @@ -315,7 +323,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.f4[i] = new float4(args.h4[i]); } @@ -373,6 +381,8 @@ public void half4_to_float4_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class quaternion_to_RigidTransform { + public const int iterations = 10000; + public struct Arguments : IDisposable { public quaternion* q; @@ -381,20 +391,20 @@ public struct Arguments : IDisposable public void Init() { - q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { q[i] = quaternion.identity; } - rt = (RigidTransform*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + rt = (RigidTransform*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rt[i] = RigidTransform.identity; } - pos = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + pos = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { pos[i] = new float3(); } @@ -411,7 +421,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.rt[i] = new RigidTransform(args.q[i], args.pos[i]); } @@ -469,6 +479,8 @@ public void quaternion_to_RigidTransform_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class quaternion_to_float4x4 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public quaternion* q; @@ -476,14 +488,14 @@ public struct Arguments : IDisposable public void Init() { - q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { q[i] = quaternion.identity; } - f4x4 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f4x4 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f4x4[i] = float4x4.identity; } @@ -499,7 +511,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.q[i] = new quaternion(args.f4x4[i]); } @@ -557,6 +569,8 @@ public void quaternion_to_float4x4_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float4x4_to_quaternion { + public const int iterations = 10000; + public struct Arguments : IDisposable { public quaternion* q; @@ -565,20 +579,20 @@ public struct Arguments : IDisposable public void Init() { - q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { q[i] = quaternion.identity; } - f4x4 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f4x4 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f4x4[i] = float4x4.identity; } - f3 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f3 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f3[i] = new float3(); } @@ -595,7 +609,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.f4x4[i] = new float4x4(args.q[i], args.f3[i]); } @@ -653,6 +667,8 @@ public void float4x4_to_quaternion_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float4_to_uint4 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4* f4; @@ -660,14 +676,14 @@ public struct Arguments : IDisposable public void Init() { - f4 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f4 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f4[i] = new float4(1.0f, 2.0f, 3.0f, 4.0f); } - u4 = (uint4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + u4 = (uint4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { u4[i] = new uint4(100, 101, 102, 103); } @@ -683,7 +699,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.u4[i] = new uint4(args.f4[i]); } @@ -741,6 +757,8 @@ public void float4_to_uint4_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class uint4_to_float4 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4* f4; @@ -748,14 +766,14 @@ public struct Arguments : IDisposable public void Init() { - f4 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f4 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f4[i] = new float4(1.0f, 2.0f, 3.0f, 4.0f); } - u4 = (uint4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + u4 = (uint4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { u4[i] = new uint4(100, 101, 102, 103); } @@ -771,7 +789,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.f4[i] = new float4(args.u4[i]); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs index b133ff85..62f950f0 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs @@ -21,14 +21,16 @@ partial class TestFastInverse [BurstCompile(CompileSynchronously = true)] public unsafe class float4x4_fastinverse { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4x4* m1; public void Init() { - m1 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m1 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m1[i] = float4x4.identity; } @@ -43,7 +45,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m1[i] = math.fastinverse(args.m1[i]); } @@ -101,14 +103,16 @@ public void float4x4_fastinverse_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class double4x4_fastinverse { + public const int iterations = 10000; + public struct Arguments : IDisposable { public double4x4* m1; public void Init() { - m1 = (double4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m1 = (double4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m1[i] = double4x4.identity; } @@ -123,7 +127,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m1[i] = math.fastinverse(args.m1[i]); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs index b26397f9..320bda9f 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs @@ -21,6 +21,8 @@ partial class TestHash [BurstCompile(CompileSynchronously = true)] public unsafe class float2_hash { + public const int iterations = 100000; + public struct Arguments : IDisposable { public float2* v; @@ -28,14 +30,14 @@ public struct Arguments : IDisposable public void Init() { - v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2(1.0f); } - hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { hash[i] = 0; } @@ -51,7 +53,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.hash[i] = math.hash(args.v[i]); } @@ -109,6 +111,8 @@ public void float2_hash_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3_hash { + public const int iterations = 100000; + public struct Arguments : IDisposable { public float3* v; @@ -116,14 +120,14 @@ public struct Arguments : IDisposable public void Init() { - v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float3(1.0f); } - hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { hash[i] = 0; } @@ -139,7 +143,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.hash[i] = math.hash(args.v[i]); } @@ -197,6 +201,8 @@ public void float3_hash_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float4_hash { + public const int iterations = 100000; + public struct Arguments : IDisposable { public float4* v; @@ -204,14 +210,14 @@ public struct Arguments : IDisposable public void Init() { - v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float4(1.0f); } - hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { hash[i] = 0; } @@ -227,7 +233,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.hash[i] = math.hash(args.v[i]); } @@ -285,6 +291,8 @@ public void float4_hash_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class double2_hash { + public const int iterations = 100000; + public struct Arguments : IDisposable { public double2* v; @@ -292,14 +300,14 @@ public struct Arguments : IDisposable public void Init() { - v = (double2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v = (double2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new double2(1.0f); } - hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { hash[i] = 0; } @@ -315,7 +323,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.hash[i] = math.hash(args.v[i]); } @@ -373,6 +381,8 @@ public void double2_hash_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class double3_hash { + public const int iterations = 100000; + public struct Arguments : IDisposable { public double3* v; @@ -380,14 +390,14 @@ public struct Arguments : IDisposable public void Init() { - v = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new double3(1.0f); } - hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { hash[i] = 0; } @@ -403,7 +413,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.hash[i] = math.hash(args.v[i]); } @@ -461,6 +471,8 @@ public void double3_hash_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class double4_hash { + public const int iterations = 100000; + public struct Arguments : IDisposable { public double4* v; @@ -468,14 +480,14 @@ public struct Arguments : IDisposable public void Init() { - v = (double4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v = (double4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new double4(1.0f); } - hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { hash[i] = 0; } @@ -491,7 +503,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.hash[i] = math.hash(args.v[i]); } @@ -549,6 +561,8 @@ public void double4_hash_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float2x2_hash { + public const int iterations = 100000; + public struct Arguments : IDisposable { public float2x2* v; @@ -556,14 +570,14 @@ public struct Arguments : IDisposable public void Init() { - v = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2x2(1.0f); } - hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { hash[i] = 0; } @@ -579,7 +593,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.hash[i] = math.hash(args.v[i]); } @@ -637,6 +651,8 @@ public void float2x2_hash_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3x3_hash { + public const int iterations = 100000; + public struct Arguments : IDisposable { public float3x3* v; @@ -644,14 +660,14 @@ public struct Arguments : IDisposable public void Init() { - v = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float3x3(1.0f); } - hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { hash[i] = 0; } @@ -667,7 +683,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.hash[i] = math.hash(args.v[i]); } @@ -725,6 +741,8 @@ public void float3x3_hash_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float4x4_hash { + public const int iterations = 100000; + public struct Arguments : IDisposable { public float4x4* v; @@ -732,14 +750,14 @@ public struct Arguments : IDisposable public void Init() { - v = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float4x4(1.0f); } - hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + hash = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { hash[i] = 0; } @@ -755,7 +773,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.hash[i] = math.hash(args.v[i]); } @@ -813,6 +831,8 @@ public void float4x4_hash_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float2x2_hashwide { + public const int iterations = 100000; + public struct Arguments : IDisposable { public float2x2* v; @@ -820,14 +840,14 @@ public struct Arguments : IDisposable public void Init() { - v = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2x2(1.0f); } - hash = (uint2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + hash = (uint2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { hash[i] = 0; } @@ -843,7 +863,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.hash[i] = math.hashwide(args.v[i]); } @@ -901,6 +921,8 @@ public void float2x2_hashwide_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3x3_hashwide { + public const int iterations = 100000; + public struct Arguments : IDisposable { public float3x3* v; @@ -908,14 +930,14 @@ public struct Arguments : IDisposable public void Init() { - v = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float3x3(1.0f); } - hash = (uint3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + hash = (uint3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { hash[i] = 0; } @@ -931,7 +953,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.hash[i] = math.hashwide(args.v[i]); } @@ -989,6 +1011,8 @@ public void float3x3_hashwide_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float4x4_hashwide { + public const int iterations = 100000; + public struct Arguments : IDisposable { public float4x4* v; @@ -996,14 +1020,14 @@ public struct Arguments : IDisposable public void Init() { - v = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float4x4(1.0f); } - hash = (uint4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + hash = (uint4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { hash[i] = 0; } @@ -1019,7 +1043,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.hash[i] = math.hashwide(args.v[i]); } @@ -1077,6 +1101,8 @@ public void float4x4_hashwide_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float2_hashwide { + public const int iterations = 100000; + public struct Arguments : IDisposable { public float2* v; @@ -1084,14 +1110,14 @@ public struct Arguments : IDisposable public void Init() { - v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2(1.0f); } - hash = (uint2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + hash = (uint2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { hash[i] = new uint2(); } @@ -1107,7 +1133,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.hash[i] = math.hashwide(args.v[i]); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs index 5450d48c..438bfb75 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs @@ -21,14 +21,16 @@ partial class TestInverse [BurstCompile(CompileSynchronously = true)] public unsafe class float4x4_inverse { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4x4* m1; public void Init() { - m1 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m1 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m1[i] = float4x4.identity; } @@ -43,7 +45,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m1[i] = math.inverse(args.m1[i]); } @@ -101,14 +103,16 @@ public void float4x4_inverse_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3x3_inverse { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3x3* m1; public void Init() { - m1 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m1 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m1[i] = float3x3.identity; } @@ -123,7 +127,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m1[i] = math.inverse(args.m1[i]); } @@ -181,14 +185,16 @@ public void float3x3_inverse_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float2x2_inverse { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2x2* m1; public void Init() { - m1 = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m1 = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m1[i] = float2x2.identity; } @@ -203,7 +209,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m1[i] = math.inverse(args.m1[i]); } @@ -261,14 +267,16 @@ public void float2x2_inverse_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class double4x4_inverse { + public const int iterations = 10000; + public struct Arguments : IDisposable { public double4x4* m1; public void Init() { - m1 = (double4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m1 = (double4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m1[i] = double4x4.identity; } @@ -283,7 +291,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m1[i] = math.inverse(args.m1[i]); } @@ -341,14 +349,16 @@ public void double4x4_inverse_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class double3x3_inverse { + public const int iterations = 10000; + public struct Arguments : IDisposable { public double3x3* m1; public void Init() { - m1 = (double3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m1 = (double3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m1[i] = double3x3.identity; } @@ -363,7 +373,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m1[i] = math.inverse(args.m1[i]); } @@ -421,14 +431,16 @@ public void double3x3_inverse_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class double2x2_inverse { + public const int iterations = 10000; + public struct Arguments : IDisposable { public double2x2* m1; public void Init() { - m1 = (double2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m1 = (double2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m1[i] = double2x2.identity; } @@ -443,7 +455,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m1[i] = math.inverse(args.m1[i]); } @@ -501,14 +513,16 @@ public void double2x2_inverse_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class quaternion_inverse { + public const int iterations = 10000; + public struct Arguments : IDisposable { public quaternion* q; public void Init() { - q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { q[i] = quaternion.identity; } @@ -523,7 +537,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.q[i] = math.inverse(args.q[i]); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs index d2efa23f..01376555 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs @@ -21,6 +21,8 @@ partial class TestMath [BurstCompile(CompileSynchronously = true)] public unsafe class orthonormal_basis_float { + public const int iterations = 1000000; + public struct Arguments : IDisposable { public Random* rng; @@ -30,26 +32,26 @@ public struct Arguments : IDisposable public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 1000000; ++i) + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rng[i] = new Random(1234u); } - v1 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 1000000; ++i) + v1 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v1[i] = rng[0].NextFloat3Direction(); } - v2 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 1000000; ++i) + v2 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v2[i] = new float3(); } - v3 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 1000000; ++i) + v3 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v3[i] = new float3(); } @@ -67,7 +69,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 1000000; ++i) + for (int i = 0; i < iterations; ++i) { math.orthonormal_basis(args.v1[i], out args.v2[i], out args.v3[i]); } @@ -125,6 +127,8 @@ public void orthonormal_basis_float_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class orthonormal_basis_double { + public const int iterations = 1000000; + public struct Arguments : IDisposable { public Random* rng; @@ -134,26 +138,26 @@ public struct Arguments : IDisposable public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 1000000; ++i) + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rng[i] = new Random(1234u); } - v1 = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 1000000; ++i) + v1 = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v1[i] = rng[0].NextDouble3Direction(); } - v2 = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 1000000; ++i) + v2 = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v2[i] = new double(); } - v3 = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 1000000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 1000000; ++i) + v3 = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v3[i] = new double(); } @@ -171,7 +175,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 1000000; ++i) + for (int i = 0; i < iterations; ++i) { math.orthonormal_basis(args.v1[i], out args.v2[i], out args.v3[i]); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs index 41590ed8..b964fec4 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs @@ -21,14 +21,16 @@ partial class TestMinMaxAABB [BurstCompile(CompileSynchronously = true)] public unsafe class Transform_float4x4 { + public const int iterations = 100000; + public struct Arguments : IDisposable { public Geometry.MinMaxAABB* a; public void Init() { - a = (Geometry.MinMaxAABB*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + a = (Geometry.MinMaxAABB*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { a[i] = new Geometry.MinMaxAABB(); } @@ -43,7 +45,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.a[i] = Geometry.Math.Transform(float4x4.identity, args.a[i]); } @@ -101,14 +103,16 @@ public void Transform_float4x4_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class Transform_float3x3 { + public const int iterations = 100000; + public struct Arguments : IDisposable { public Geometry.MinMaxAABB* a; public void Init() { - a = (Geometry.MinMaxAABB*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + a = (Geometry.MinMaxAABB*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { a[i] = new Geometry.MinMaxAABB(); } @@ -123,7 +127,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.a[i] = Geometry.Math.Transform(float3x3.identity, args.a[i]); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs index 85bf5525..06c29893 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs @@ -21,6 +21,8 @@ partial class TestMul [BurstCompile(CompileSynchronously = true)] public unsafe class float4x4_float4x4 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4x4* m1; @@ -28,14 +30,14 @@ public struct Arguments : IDisposable public void Init() { - m1 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m1 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m1[i] = float4x4.identity; } - m2 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m2 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m2[i] = float4x4.identity; } @@ -51,7 +53,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m1[i] = math.mul(args.m1[i], args.m2[i]); } @@ -109,6 +111,8 @@ public void float4x4_float4x4_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float4x4_float4 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4x4* m1; @@ -116,14 +120,14 @@ public struct Arguments : IDisposable public void Init() { - m1 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m1 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m1[i] = float4x4.identity; } - m2 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m2 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m2[i] = new float4(1.0f, 0.0f, 0.0f, 1.0f); } @@ -139,7 +143,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m2[i] = math.mul(args.m1[i], args.m2[i]); } @@ -197,6 +201,8 @@ public void float4x4_float4_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class quaternion_quaternion { + public const int iterations = 10000; + public struct Arguments : IDisposable { public quaternion* q1; @@ -204,14 +210,14 @@ public struct Arguments : IDisposable public void Init() { - q1 = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + q1 = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { q1[i] = quaternion.identity; } - q2 = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + q2 = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { q2[i] = quaternion.identity; } @@ -227,7 +233,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.q2[i] = math.mul(args.q1[i], args.q2[i]); } @@ -285,6 +291,8 @@ public void quaternion_quaternion_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3x3_float3x3 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3x3* m1; @@ -292,14 +300,14 @@ public struct Arguments : IDisposable public void Init() { - m1 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m1 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m1[i] = float3x3.identity; } - m2 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m2 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m2[i] = float3x3.identity; } @@ -315,7 +323,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m2[i] = math.mul(args.m1[i], args.m2[i]); } @@ -373,6 +381,8 @@ public void float3x3_float3x3_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float2x2_float2x2 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2x2* m1; @@ -380,14 +390,14 @@ public struct Arguments : IDisposable public void Init() { - m1 = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m1 = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m1[i] = float2x2.identity; } - m2 = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m2 = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m2[i] = float2x2.identity; } @@ -403,7 +413,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m2[i] = math.mul(args.m1[i], args.m2[i]); } @@ -461,6 +471,8 @@ public void float2x2_float2x2_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3x3_float3 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3x3* m1; @@ -468,14 +480,14 @@ public struct Arguments : IDisposable public void Init() { - m1 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m1 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m1[i] = float3x3.identity; } - m2 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m2 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m2[i] = new float3(1.0f, 0.0f, 0.0f); } @@ -491,7 +503,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m2[i] = math.mul(args.m1[i], args.m2[i]); } @@ -549,6 +561,8 @@ public void float3x3_float3_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float2x2_float2 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2x2* m1; @@ -556,14 +570,14 @@ public struct Arguments : IDisposable public void Init() { - m1 = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m1 = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m1[i] = float2x2.identity; } - m2 = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m2 = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m2[i] = new float2(1.0f, 0.0f); } @@ -579,7 +593,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m2[i] = math.mul(args.m1[i], args.m2[i]); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs index c9d18d8d..988d06a6 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs @@ -21,14 +21,16 @@ partial class TestNoise [BurstCompile(CompileSynchronously = true)] public unsafe class snoise2D { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2* v; public void Init() { - v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2(); } @@ -43,7 +45,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i].x = noise.snoise(args.v[i]); } @@ -101,14 +103,16 @@ public void snoise2D_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class snoise3D { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* v; public void Init() { - v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float3(); } @@ -123,7 +127,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i].x = noise.snoise(args.v[i]); } @@ -181,14 +185,16 @@ public void snoise3D_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class snoise4D { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4* v; public void Init() { - v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float4(); } @@ -203,7 +209,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i].x = noise.snoise(args.v[i]); } @@ -261,6 +267,8 @@ public void snoise4D_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class snoise3Dgrad { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* v; @@ -268,14 +276,14 @@ public struct Arguments : IDisposable public void Init() { - v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float3(); } - gradient = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + gradient = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { gradient[i] = new float3(); } @@ -291,7 +299,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i].x = noise.snoise(args.v[i], out args.gradient[i]); } @@ -349,14 +357,16 @@ public void snoise3Dgrad_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class cnoise2D { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2* v; public void Init() { - v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2(); } @@ -371,7 +381,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i].x = noise.cnoise(args.v[i]); } @@ -429,14 +439,16 @@ public void cnoise2D_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class cnoise3D { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* v; public void Init() { - v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float3(); } @@ -451,7 +463,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i].x = noise.cnoise(args.v[i]); } @@ -509,14 +521,16 @@ public void cnoise3D_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class cnoise4D { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4* v; public void Init() { - v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float4(); } @@ -531,7 +545,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i].x = noise.cnoise(args.v[i]); } @@ -589,14 +603,16 @@ public void cnoise4D_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class pnoise2D { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2* v; public void Init() { - v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2(); } @@ -611,7 +627,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i].x = noise.pnoise(args.v[i], args.v[i]); } @@ -669,14 +685,16 @@ public void pnoise2D_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class pnoise3D { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* v; public void Init() { - v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float3(); } @@ -691,7 +709,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i].x = noise.pnoise(args.v[i], args.v[i]); } @@ -749,14 +767,16 @@ public void pnoise3D_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class pnoise4D { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4* v; public void Init() { - v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float4(); } @@ -771,7 +791,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i].x = noise.pnoise(args.v[i], args.v[i]); } @@ -829,14 +849,16 @@ public void pnoise4D_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class cellular2D { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2* v; public void Init() { - v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2(); } @@ -851,7 +873,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = noise.cellular(args.v[i]); } @@ -909,14 +931,16 @@ public void cellular2D_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class cellular3D { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* v; public void Init() { - v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float3(); } @@ -931,7 +955,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i].xy = noise.cellular(args.v[i]); } @@ -989,14 +1013,16 @@ public void cellular3D_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class cellular2x2 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2* v; public void Init() { - v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2(); } @@ -1011,7 +1037,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = noise.cellular2x2(args.v[i]); } @@ -1069,14 +1095,16 @@ public void cellular2x2_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class cellular2x2x2 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* v; public void Init() { - v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float3(); } @@ -1091,7 +1119,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i].xy = noise.cellular2x2x2(args.v[i]); } @@ -1149,14 +1177,16 @@ public void cellular2x2x2_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class psrdnoise { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2* v; public void Init() { - v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2(); } @@ -1171,7 +1201,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = noise.psrdnoise(args.v[i], args.v[i], args.v[i].y).xy; } @@ -1229,14 +1259,16 @@ public void psrdnoise_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class psrnoise { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2* v; public void Init() { - v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2(); } @@ -1251,7 +1283,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i].x = noise.psrnoise(args.v[i], args.v[i], args.v[i].y); } @@ -1309,14 +1341,16 @@ public void psrnoise_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class srdnoise { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2* v; public void Init() { - v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2(); } @@ -1331,7 +1365,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = noise.srdnoise(args.v[i], args.v[i].y).xy; } @@ -1389,14 +1423,16 @@ public void srdnoise_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class srnoise { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2* v; public void Init() { - v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2(); } @@ -1411,7 +1447,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i].x = noise.srnoise(args.v[i], args.v[i].y); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs index 869b5f14..b2915796 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs @@ -21,14 +21,16 @@ partial class TestNormalize [BurstCompile(CompileSynchronously = true)] public unsafe class float4_normalize { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4* v; public void Init() { - v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float4(1.0f); } @@ -43,7 +45,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = math.normalize(args.v[i]); } @@ -101,14 +103,16 @@ public void float4_normalize_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3_normalize { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* v; public void Init() { - v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float3(1.0f); } @@ -123,7 +127,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = math.normalize(args.v[i]); } @@ -181,14 +185,16 @@ public void float3_normalize_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float2_normalize { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2* v; public void Init() { - v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2(1.0f); } @@ -203,7 +209,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = math.normalize(args.v[i]); } @@ -261,14 +267,16 @@ public void float2_normalize_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class double4_normalize { + public const int iterations = 10000; + public struct Arguments : IDisposable { public double4* v; public void Init() { - v = (double4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (double4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new double4(1.0f); } @@ -283,7 +291,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = math.normalize(args.v[i]); } @@ -341,14 +349,16 @@ public void double4_normalize_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class double3_normalize { + public const int iterations = 10000; + public struct Arguments : IDisposable { public double3* v; public void Init() { - v = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new double3(1.0f); } @@ -363,7 +373,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = math.normalize(args.v[i]); } @@ -421,14 +431,16 @@ public void double3_normalize_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class double2_normalize { + public const int iterations = 10000; + public struct Arguments : IDisposable { public double2* v; public void Init() { - v = (double2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (double2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new double2(1.0f); } @@ -443,7 +455,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = math.normalize(args.v[i]); } @@ -501,14 +513,16 @@ public void double2_normalize_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float4_normalizesafe { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4* v; public void Init() { - v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float4(1.0f); } @@ -523,7 +537,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = math.normalizesafe(args.v[i]); } @@ -581,14 +595,16 @@ public void float4_normalizesafe_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3_normalizesafe { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* v; public void Init() { - v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float3(1.0f); } @@ -603,7 +619,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = math.normalizesafe(args.v[i]); } @@ -661,14 +677,16 @@ public void float3_normalizesafe_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float2_normalizesafe { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2* v; public void Init() { - v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float2(1.0f); } @@ -683,7 +701,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = math.normalizesafe(args.v[i]); } @@ -741,14 +759,16 @@ public void float2_normalizesafe_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class double4_normalizesafe { + public const int iterations = 10000; + public struct Arguments : IDisposable { public double4* v; public void Init() { - v = (double4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (double4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new double4(1.0f); } @@ -763,7 +783,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = math.normalizesafe(args.v[i]); } @@ -821,14 +841,16 @@ public void double4_normalizesafe_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class double3_normalizesafe { + public const int iterations = 10000; + public struct Arguments : IDisposable { public double3* v; public void Init() { - v = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new double3(1.0f); } @@ -843,7 +865,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = math.normalizesafe(args.v[i]); } @@ -901,14 +923,16 @@ public void double3_normalizesafe_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class double2_normalizesafe { + public const int iterations = 10000; + public struct Arguments : IDisposable { public double2* v; public void Init() { - v = (double2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (double2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new double2(1.0f); } @@ -923,7 +947,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.v[i] = math.normalizesafe(args.v[i]); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs index ae1818bc..cb29c3b2 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs @@ -21,14 +21,16 @@ partial class TestPlane [BurstCompile(CompileSynchronously = true)] public unsafe class Normalize_Plane { + public const int iterations = 10000; + public struct Arguments : IDisposable { public Plane* p; public void Init() { - p = (Plane*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + p = (Plane*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { p[i] = new Plane { NormalAndDistance = new float4(1.0f) }; } @@ -43,7 +45,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.p[i] = Plane.Normalize(args.p[i]); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs index 51055cc9..ee29e432 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs @@ -21,6 +21,8 @@ partial class TestRandom [BurstCompile(CompileSynchronously = true)] public unsafe class Random_NextUint { + public const int iterations = 10000; + public struct Arguments : IDisposable { public Random* rng; @@ -28,14 +30,14 @@ public struct Arguments : IDisposable public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rng[i] = new Unity.Mathematics.Random(1); } - u = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + u = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { u[i] = 0; } @@ -51,7 +53,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.u[i] = args.rng[i].NextUInt(); } @@ -109,6 +111,8 @@ public void Random_NextUint_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class Random_NextUint2 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public Random* rng; @@ -116,14 +120,14 @@ public struct Arguments : IDisposable public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rng[i] = new Unity.Mathematics.Random(1); } - u = (uint2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + u = (uint2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { u[i] = 0; } @@ -139,7 +143,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.u[i] = args.rng[i].NextUInt2(); } @@ -197,6 +201,8 @@ public void Random_NextUint2_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class Random_NextUint3 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public Random* rng; @@ -204,14 +210,14 @@ public struct Arguments : IDisposable public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rng[i] = new Unity.Mathematics.Random(1); } - u = (uint3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + u = (uint3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { u[i] = 0; } @@ -227,7 +233,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.u[i] = args.rng[i].NextUInt3(); } @@ -285,6 +291,8 @@ public void Random_NextUint3_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class Random_NextUint4 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public Random* rng; @@ -292,14 +300,14 @@ public struct Arguments : IDisposable public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rng[i] = new Unity.Mathematics.Random(1); } - u = (uint4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + u = (uint4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { u[i] = 0; } @@ -315,7 +323,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.u[i] = args.rng[i].NextUInt4(); } @@ -373,6 +381,8 @@ public void Random_NextUint4_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class Random_NextFloat { + public const int iterations = 10000; + public struct Arguments : IDisposable { public Random* rng; @@ -380,14 +390,14 @@ public struct Arguments : IDisposable public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rng[i] = new Unity.Mathematics.Random(1); } - f = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f[i] = 0.0f; } @@ -403,7 +413,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.f[i] = args.rng[i].NextFloat(); } @@ -461,6 +471,8 @@ public void Random_NextFloat_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class Random_NextFloat2 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public Random* rng; @@ -468,14 +480,14 @@ public struct Arguments : IDisposable public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rng[i] = new Unity.Mathematics.Random(1); } - f = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f[i] = new float2(0.0f); } @@ -491,7 +503,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.f[i] = args.rng[i].NextFloat2(); } @@ -549,6 +561,8 @@ public void Random_NextFloat2_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class Random_NextFloat3 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public Random* rng; @@ -556,14 +570,14 @@ public struct Arguments : IDisposable public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rng[i] = new Unity.Mathematics.Random(1); } - f = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f[i] = new float3(0.0f); } @@ -579,7 +593,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.f[i] = args.rng[i].NextFloat3(); } @@ -637,6 +651,8 @@ public void Random_NextFloat3_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class Random_NextFloat4 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public Random* rng; @@ -644,14 +660,14 @@ public struct Arguments : IDisposable public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rng[i] = new Unity.Mathematics.Random(1); } - f = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f[i] = new float4(0.0f); } @@ -667,7 +683,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.f[i] = args.rng[i].NextFloat4(); } @@ -725,6 +741,8 @@ public void Random_NextFloat4_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class Random_NextDouble { + public const int iterations = 10000; + public struct Arguments : IDisposable { public Random* rng; @@ -732,14 +750,14 @@ public struct Arguments : IDisposable public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rng[i] = new Unity.Mathematics.Random(1); } - f = (double*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f = (double*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f[i] = 0.0; } @@ -755,7 +773,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.f[i] = args.rng[i].NextDouble(); } @@ -813,6 +831,8 @@ public void Random_NextDouble_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class Random_NextDouble2 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public Random* rng; @@ -820,14 +840,14 @@ public struct Arguments : IDisposable public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rng[i] = new Unity.Mathematics.Random(1); } - f = (double2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f = (double2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f[i] = new double2(0.0); } @@ -843,7 +863,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.f[i] = args.rng[i].NextDouble2(); } @@ -901,6 +921,8 @@ public void Random_NextDouble2_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class Random_NextDouble3 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public Random* rng; @@ -908,14 +930,14 @@ public struct Arguments : IDisposable public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rng[i] = new Unity.Mathematics.Random(1); } - f = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f[i] = new double3(0.0); } @@ -931,7 +953,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.f[i] = args.rng[i].NextDouble3(); } @@ -989,6 +1011,8 @@ public void Random_NextDouble3_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class Random_NextDouble4 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public Random* rng; @@ -996,14 +1020,14 @@ public struct Arguments : IDisposable public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { rng[i] = new Unity.Mathematics.Random(1); } - f = (double4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + f = (double4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { f[i] = new double4(0.0); } @@ -1019,7 +1043,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.f[i] = args.rng[i].NextDouble4(); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs index 27fbc1dd..e0324fce 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs @@ -21,6 +21,8 @@ partial class TestRotation [BurstCompile(CompileSynchronously = true)] public unsafe class float4x4_EulerXYZ { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* v; @@ -28,14 +30,14 @@ public struct Arguments : IDisposable public void Init() { - v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float3(1.0f); } - m = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m[i] = float4x4.identity; } @@ -51,7 +53,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m[i] = float4x4.EulerXYZ(args.v[i]); } @@ -109,6 +111,8 @@ public void float4x4_EulerXYZ_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3x3_EulerXYZ { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* v; @@ -116,14 +120,14 @@ public struct Arguments : IDisposable public void Init() { - v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = new float3(1.0f); } - m = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m[i] = float3x3.identity; } @@ -139,7 +143,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m[i] = float3x3.EulerXYZ(args.v[i]); } @@ -197,6 +201,8 @@ public void float3x3_EulerXYZ_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float4x4_AxisAngle { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* v; @@ -205,20 +211,20 @@ public struct Arguments : IDisposable public void Init() { - v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = math.normalize(new float3(1.0f)); } - m = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m[i] = float4x4.identity; } - angle = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + angle = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { angle[i] = 1.0f; } @@ -235,7 +241,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m[i] = float4x4.AxisAngle(args.v[i], args.angle[i]); } @@ -293,6 +299,8 @@ public void float4x4_AxisAngle_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3x3_AxisAngle { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* v; @@ -301,20 +309,20 @@ public struct Arguments : IDisposable public void Init() { - v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v[i] = math.normalize(new float3(1.0f)); } - m = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m[i] = float3x3.identity; } - angle = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + angle = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { angle[i] = 1.0f; } @@ -331,7 +339,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m[i] = float3x3.AxisAngle(args.v[i], args.angle[i]); } @@ -389,6 +397,8 @@ public void float3x3_AxisAngle_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3x3_LookRotation { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* forward; @@ -397,20 +407,20 @@ public struct Arguments : IDisposable public void Init() { - forward = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + forward = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { forward[i] = math.normalize(new float3(1.0f)); } - up = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + up = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { up[i] = math.normalize(new float3(0.0f, 1.0f, 0.0f)); } - m = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m[i] = float3x3.identity; } @@ -427,7 +437,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m[i] = float3x3.LookRotation(args.forward[i], args.up[i]); } @@ -485,6 +495,8 @@ public void float3x3_LookRotation_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3x3_LookRotationSafe { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* forward; @@ -493,20 +505,20 @@ public struct Arguments : IDisposable public void Init() { - forward = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + forward = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { forward[i] = math.normalize(new float3(1.0f)); } - up = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + up = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { up[i] = math.normalize(new float3(0.0f, 1.0f, 0.0f)); } - m = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m[i] = float3x3.identity; } @@ -523,7 +535,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m[i] = float3x3.LookRotationSafe(args.forward[i], args.up[i]); } @@ -581,6 +593,8 @@ public void float3x3_LookRotationSafe_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float4x4_LookAt { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* eye; @@ -590,26 +604,26 @@ public struct Arguments : IDisposable public void Init() { - eye = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + eye = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { eye[i] = math.normalize(new float3(1.0f)); } - target = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + target = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { target[i] = math.normalize(new float3(0.0f, 1.0f, 0.0f)); } - up = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + up = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { up[i] = math.normalize(new float3(-5.0f, 2.0f, 3.0f)); } - m = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m[i] = float4x4.identity; } @@ -627,7 +641,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m[i] = float4x4.LookAt(args.eye[i], args.target[i], args.up[i]); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs index a4d37840..2d0c0a55 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs @@ -21,6 +21,8 @@ partial class TestShuffle [BurstCompile(CompileSynchronously = true)] public unsafe class float2_shuffle { + public const int iterations = 100000; + public struct Arguments : IDisposable { public float2* v1; @@ -29,20 +31,20 @@ public struct Arguments : IDisposable public void Init() { - v1 = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v1 = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v1[i] = new float2(1.0f); } - v2 = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v2 = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v2[i] = new float2(2.0f); } - result = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + result = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { result[i] = new float2(1.0f); } @@ -59,7 +61,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.result[i] = math.shuffle(args.v1[i], args.v2[i], math.ShuffleComponent.RightX, math.ShuffleComponent.LeftY); } @@ -117,6 +119,8 @@ public void float2_shuffle_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3_shuffle { + public const int iterations = 100000; + public struct Arguments : IDisposable { public float3* v1; @@ -125,20 +129,20 @@ public struct Arguments : IDisposable public void Init() { - v1 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v1 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v1[i] = new float3(1.0f); } - v2 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v2 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v2[i] = new float3(2.0f); } - result = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + result = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { result[i] = new float3(1.0f); } @@ -155,7 +159,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.result[i] = math.shuffle(args.v1[i], args.v2[i], math.ShuffleComponent.RightX, math.ShuffleComponent.LeftZ, math.ShuffleComponent.LeftX); } @@ -213,6 +217,8 @@ public void float3_shuffle_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float4_shuffle { + public const int iterations = 100000; + public struct Arguments : IDisposable { public float4* v1; @@ -221,20 +227,20 @@ public struct Arguments : IDisposable public void Init() { - v1 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v1 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v1[i] = new float4(1.0f); } - v2 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + v2 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { v2[i] = new float4(2.0f); } - result = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 100000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 100000; ++i) + result = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { result[i] = new float4(1.0f); } @@ -251,7 +257,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 100000; ++i) + for (int i = 0; i < iterations; ++i) { args.result[i] = math.shuffle(args.v1[i], args.v2[i], math.ShuffleComponent.RightX, math.ShuffleComponent.LeftZ, math.ShuffleComponent.LeftX, math.ShuffleComponent.RightY); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs index 67625c77..ff0d0c8a 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs @@ -21,14 +21,16 @@ partial class TestTranspose [BurstCompile(CompileSynchronously = true)] public unsafe class transpose_float4x4 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4x4* m; public void Init() { - m = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m[i] = float4x4.identity; } @@ -43,7 +45,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m[i] = math.transpose(args.m[i]); } @@ -101,14 +103,16 @@ public void transpose_float4x4_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class transpose_float3x3 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3x3* m; public void Init() { - m = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m[i] = float3x3.identity; } @@ -123,7 +127,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m[i] = math.transpose(args.m[i]); } @@ -181,14 +185,16 @@ public void transpose_float3x3_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class transpose_float2x2 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2x2* m; public void Init() { - m = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m[i] = float2x2.identity; } @@ -203,7 +209,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m[i] = math.transpose(args.m[i]); } @@ -261,14 +267,16 @@ public void transpose_float2x2_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class transpose_double4x4 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public double4x4* m; public void Init() { - m = (double4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m = (double4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m[i] = double4x4.identity; } @@ -283,7 +291,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m[i] = math.transpose(args.m[i]); } @@ -341,14 +349,16 @@ public void transpose_double4x4_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class transpose_double3x3 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public double3x3* m; public void Init() { - m = (double3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m = (double3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m[i] = double3x3.identity; } @@ -363,7 +373,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m[i] = math.transpose(args.m[i]); } @@ -421,14 +431,16 @@ public void transpose_double3x3_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class transpose_double2x2 { + public const int iterations = 10000; + public struct Arguments : IDisposable { public double2x2* m; public void Init() { - m = (double2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + m = (double2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { m[i] = double2x2.identity; } @@ -443,7 +455,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { args.m[i] = math.transpose(args.m[i]); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs index 55e88160..4f0ab126 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs @@ -21,6 +21,8 @@ partial class TestTrig [BurstCompile(CompileSynchronously = true)] public unsafe class float_sincos { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float* sin; @@ -28,14 +30,14 @@ public struct Arguments : IDisposable public void Init() { - sin = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + sin = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { sin[i] = 0.0f; } - cos = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + cos = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { cos[i] = 1.0f; } @@ -51,7 +53,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { math.sincos(args.sin[i], out args.sin[i], out args.cos[i]); } @@ -109,6 +111,8 @@ public void float_sincos_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float2_sincos { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float2* sin; @@ -116,14 +120,14 @@ public struct Arguments : IDisposable public void Init() { - sin = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + sin = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { sin[i] = new float2(0.0f); } - cos = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + cos = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { cos[i] = new float2(1.0f); } @@ -139,7 +143,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { math.sincos(args.sin[i], out args.sin[i], out args.cos[i]); } @@ -197,6 +201,8 @@ public void float2_sincos_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float3_sincos { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float3* sin; @@ -204,14 +210,14 @@ public struct Arguments : IDisposable public void Init() { - sin = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + sin = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { sin[i] = new float3(0.0f); } - cos = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + cos = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { cos[i] = new float3(1.0f); } @@ -227,7 +233,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { math.sincos(args.sin[i], out args.sin[i], out args.cos[i]); } @@ -285,6 +291,8 @@ public void float3_sincos_burst() [BurstCompile(CompileSynchronously = true)] public unsafe class float4_sincos { + public const int iterations = 10000; + public struct Arguments : IDisposable { public float4* sin; @@ -292,14 +300,14 @@ public struct Arguments : IDisposable public void Init() { - sin = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + sin = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { sin[i] = new float4(0.0f); } - cos = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * 10000, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < 10000; ++i) + cos = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) { cos[i] = new float4(1.0f); } @@ -315,7 +323,7 @@ public void Dispose() public static void CommonTestFunction(ref Arguments args) { - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < iterations; ++i) { math.sincos(args.sin[i], out args.sin[i], out args.cos[i]); } From 429f5308338792b8ae3d2e2168da901337044359 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Mon, 6 Dec 2021 10:25:26 -0800 Subject: [PATCH 354/437] Avoid using union structs for asfloat(int) and friends (#206) Remove the use of union structs in asuint() and similar methods. Instead, reinterpret the value with type punning so mono generates better code. --- src/CHANGELOG.md | 1 + .../VectorGenerator.cs | 216 +- .../TestConversions.gen.cs | 18 + .../TestFastInverse.gen.cs | 4 + .../TestHash.gen.cs | 26 + .../TestInverse.gen.cs | 14 + .../TestMath.gen.cs | 2600 ++++++++++++++++- .../TestMinMaxAABB.gen.cs | 4 + .../TestMul.gen.cs | 14 + .../TestNoise.gen.cs | 36 + .../TestNormalize.gen.cs | 24 + .../TestPlane.gen.cs | 2 + .../TestRandom.gen.cs | 144 +- .../TestRotation.gen.cs | 14 + .../TestShuffle.gen.cs | 6 + .../TestTranspose.gen.cs | 12 + .../TestTrig.gen.cs | 8 + src/Unity.Mathematics/math.cs | 238 +- 18 files changed, 3165 insertions(+), 216 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index f780369d..b86d2ff8 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -6,6 +6,7 @@ * Added `math.orthonormal_basis()` to compute an orthonormal basis from a single unit length vector. * Added `math.sign(x)` for int, int2, int3 and int4. ### Changed +* `asfloat(uint)`, `asuint(float)`, `asint(float)` and other related methods are now faster in mono without Burst. Other methods which use these will see a performance improvement. ### Deprecated ### Removed ### Fixed diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index 74ca911d..1a696c16 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -3295,55 +3295,43 @@ void GenerateRandomPerformanceTests(StringBuilder str) BeginPerformanceTestCodeGen(str, "TestRandom"); GeneratePerformanceTest(str, "Random_NextUint", new PerformanceTestArrayArgument[] { - new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Unity.Mathematics.Random(1)" }, new PerformanceTestArrayArgument { m_ElementType = "uint", m_MemberName = "u", m_ElementInitializer = "0" }, - }, "args.u[i] = args.rng[i].NextUInt();", 10000); + }, "args.u[i] = args.rng.NextUInt();", 10000); GeneratePerformanceTest(str, "Random_NextUint2", new PerformanceTestArrayArgument[] { - new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Unity.Mathematics.Random(1)" }, new PerformanceTestArrayArgument { m_ElementType = "uint2", m_MemberName = "u", m_ElementInitializer = "0" }, - }, "args.u[i] = args.rng[i].NextUInt2();", 10000); + }, "args.u[i] = args.rng.NextUInt2();", 10000); GeneratePerformanceTest(str, "Random_NextUint3", new PerformanceTestArrayArgument[] { - new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Unity.Mathematics.Random(1)" }, new PerformanceTestArrayArgument { m_ElementType = "uint3", m_MemberName = "u", m_ElementInitializer = "0" }, - }, "args.u[i] = args.rng[i].NextUInt3();", 10000); + }, "args.u[i] = args.rng.NextUInt3();", 10000); GeneratePerformanceTest(str, "Random_NextUint4", new PerformanceTestArrayArgument[] { - new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Unity.Mathematics.Random(1)" }, new PerformanceTestArrayArgument { m_ElementType = "uint4", m_MemberName = "u", m_ElementInitializer = "0" }, - }, "args.u[i] = args.rng[i].NextUInt4();", 10000); + }, "args.u[i] = args.rng.NextUInt4();", 10000); GeneratePerformanceTest(str, "Random_NextFloat", new PerformanceTestArrayArgument[] { - new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Unity.Mathematics.Random(1)" }, new PerformanceTestArrayArgument { m_ElementType = "float", m_MemberName = "f", m_ElementInitializer = "0.0f" }, - }, "args.f[i] = args.rng[i].NextFloat();", 10000); + }, "args.f[i] = args.rng.NextFloat();", 10000); GeneratePerformanceTest(str, "Random_NextFloat2", new PerformanceTestArrayArgument[] { - new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Unity.Mathematics.Random(1)" }, new PerformanceTestArrayArgument { m_ElementType = "float2", m_MemberName = "f", m_ElementInitializer = "new float2(0.0f)" }, - }, "args.f[i] = args.rng[i].NextFloat2();", 10000); + }, "args.f[i] = args.rng.NextFloat2();", 10000); GeneratePerformanceTest(str, "Random_NextFloat3", new PerformanceTestArrayArgument[] { - new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Unity.Mathematics.Random(1)" }, new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "f", m_ElementInitializer = "new float3(0.0f)" }, - }, "args.f[i] = args.rng[i].NextFloat3();", 10000); + }, "args.f[i] = args.rng.NextFloat3();", 10000); GeneratePerformanceTest(str, "Random_NextFloat4", new PerformanceTestArrayArgument[] { - new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Unity.Mathematics.Random(1)" }, new PerformanceTestArrayArgument { m_ElementType = "float4", m_MemberName = "f", m_ElementInitializer = "new float4(0.0f)" }, - }, "args.f[i] = args.rng[i].NextFloat4();", 10000); + }, "args.f[i] = args.rng.NextFloat4();", 10000); GeneratePerformanceTest(str, "Random_NextDouble", new PerformanceTestArrayArgument[] { - new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Unity.Mathematics.Random(1)" }, new PerformanceTestArrayArgument { m_ElementType = "double", m_MemberName = "f", m_ElementInitializer = "0.0" }, - }, "args.f[i] = args.rng[i].NextDouble();", 10000); + }, "args.f[i] = args.rng.NextDouble();", 10000); GeneratePerformanceTest(str, "Random_NextDouble2", new PerformanceTestArrayArgument[] { - new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Unity.Mathematics.Random(1)" }, new PerformanceTestArrayArgument { m_ElementType = "double2", m_MemberName = "f", m_ElementInitializer = "new double2(0.0)" }, - }, "args.f[i] = args.rng[i].NextDouble2();", 10000); + }, "args.f[i] = args.rng.NextDouble2();", 10000); GeneratePerformanceTest(str, "Random_NextDouble3", new PerformanceTestArrayArgument[] { - new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Unity.Mathematics.Random(1)" }, new PerformanceTestArrayArgument { m_ElementType = "double3", m_MemberName = "f", m_ElementInitializer = "new double3(0.0)" }, - }, "args.f[i] = args.rng[i].NextDouble3();", 10000); + }, "args.f[i] = args.rng.NextDouble3();", 10000); GeneratePerformanceTest(str, "Random_NextDouble4", new PerformanceTestArrayArgument[] { - new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Unity.Mathematics.Random(1)" }, new PerformanceTestArrayArgument { m_ElementType = "double4", m_MemberName = "f", m_ElementInitializer = "new double4(0.0)" }, - }, "args.f[i] = args.rng[i].NextDouble4();", 10000); + }, "args.f[i] = args.rng.NextDouble4();", 10000); EndPerformanceTestCodeGen(str); } @@ -3691,22 +3679,186 @@ public void GenerateMathPerformanceTests(StringBuilder str) GeneratePerformanceTest(str, "orthonormal_basis_float", new PerformanceTestArrayArgument[] { - // This rng array is totally wasteful since we create loopIterations of them when we just need one. - new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Random(1234u)" }, - new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "v1", m_ElementInitializer = "rng[0].NextFloat3Direction()" }, + new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "v1", m_ElementInitializer = "rng.NextFloat3Direction()" }, new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "v2", m_ElementInitializer = "new float3()" }, new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "v3", m_ElementInitializer = "new float3()" }, }, "math.orthonormal_basis(args.v1[i], out args.v2[i], out args.v3[i]);", 1000000); GeneratePerformanceTest(str, "orthonormal_basis_double", new PerformanceTestArrayArgument[] { - // This rng array is totally wasteful since we create loopIterations of them when we just need one. - new PerformanceTestArrayArgument { m_ElementType = "Random", m_MemberName = "rng", m_ElementInitializer = "new Random(1234u)" }, - new PerformanceTestArrayArgument { m_ElementType = "double3", m_MemberName = "v1", m_ElementInitializer = "rng[0].NextDouble3Direction()" }, + new PerformanceTestArrayArgument { m_ElementType = "double3", m_MemberName = "v1", m_ElementInitializer = "rng.NextDouble3Direction()" }, new PerformanceTestArrayArgument { m_ElementType = "double3", m_MemberName = "v2", m_ElementInitializer = "new double()" }, new PerformanceTestArrayArgument { m_ElementType = "double3", m_MemberName = "v3", m_ElementInitializer = "new double()" }, }, "math.orthonormal_basis(args.v1[i], out args.v2[i], out args.v3[i]);", 1000000); + GeneratePerformanceTest(str, "asuint_float", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "uint", m_MemberName = "result", m_ElementInitializer = "new uint()" }, + new PerformanceTestArrayArgument { m_ElementType = "float", m_MemberName = "v", m_ElementInitializer = "rng.NextFloat(-1.0f, 1.0f)" }, + }, "args.result[i] = math.asuint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asuint_float2", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "uint2", m_MemberName = "result", m_ElementInitializer = "new uint2()" }, + new PerformanceTestArrayArgument { m_ElementType = "float2", m_MemberName = "v", m_ElementInitializer = "rng.NextFloat2(-1.0f, 1.0f)" }, + }, "args.result[i] = math.asuint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asuint_float3", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "uint3", m_MemberName = "result", m_ElementInitializer = "new uint3()" }, + new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "v", m_ElementInitializer = "rng.NextFloat3(-1.0f, 1.0f)" }, + }, "args.result[i] = math.asuint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asuint_float4", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "uint4", m_MemberName = "result", m_ElementInitializer = "new uint4()" }, + new PerformanceTestArrayArgument { m_ElementType = "float4", m_MemberName = "v", m_ElementInitializer = "rng.NextFloat4(-1.0f, 1.0f)" }, + }, "args.result[i] = math.asuint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asint_float", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "int", m_MemberName = "result", m_ElementInitializer = "new int()" }, + new PerformanceTestArrayArgument { m_ElementType = "float", m_MemberName = "v", m_ElementInitializer = "rng.NextFloat(-1.0f, 1.0f)" }, + }, "args.result[i] = math.asint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asint_float2", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "int2", m_MemberName = "result", m_ElementInitializer = "new int2()" }, + new PerformanceTestArrayArgument { m_ElementType = "float2", m_MemberName = "v", m_ElementInitializer = "rng.NextFloat2(-1.0f, 1.0f)" }, + }, "args.result[i] = math.asint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asint_float3", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "int3", m_MemberName = "result", m_ElementInitializer = "new int3()" }, + new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "v", m_ElementInitializer = "rng.NextFloat3(-1.0f, 1.0f)" }, + }, "args.result[i] = math.asint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asint_float4", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "int4", m_MemberName = "result", m_ElementInitializer = "new int4()" }, + new PerformanceTestArrayArgument { m_ElementType = "float4", m_MemberName = "v", m_ElementInitializer = "rng.NextFloat4(-1.0f, 1.0f)" }, + }, "args.result[i] = math.asint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asfloat_uint", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "float", m_MemberName = "result", m_ElementInitializer = "new uint()" }, + new PerformanceTestArrayArgument { m_ElementType = "uint", m_MemberName = "v", m_ElementInitializer = "rng.NextUInt()" }, + }, "args.result[i] = math.asfloat(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asfloat_uint2", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "float2", m_MemberName = "result", m_ElementInitializer = "new uint2()" }, + new PerformanceTestArrayArgument { m_ElementType = "uint2", m_MemberName = "v", m_ElementInitializer = "rng.NextUInt2()" }, + }, "args.result[i] = math.asfloat(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asfloat_uint3", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "result", m_ElementInitializer = "new uint3()" }, + new PerformanceTestArrayArgument { m_ElementType = "uint3", m_MemberName = "v", m_ElementInitializer = "rng.NextUInt3()" }, + }, "args.result[i] = math.asfloat(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asfloat_uint4", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "float4", m_MemberName = "result", m_ElementInitializer = "new uint4()" }, + new PerformanceTestArrayArgument { m_ElementType = "uint4", m_MemberName = "v", m_ElementInitializer = "rng.NextUInt4()" }, + }, "args.result[i] = math.asfloat(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asfloat_int", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "float", m_MemberName = "result", m_ElementInitializer = "new int()" }, + new PerformanceTestArrayArgument { m_ElementType = "int", m_MemberName = "v", m_ElementInitializer = "rng.NextInt()" }, + }, "args.result[i] = math.asfloat(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asfloat_int2", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "float2", m_MemberName = "result", m_ElementInitializer = "new int2()" }, + new PerformanceTestArrayArgument { m_ElementType = "int2", m_MemberName = "v", m_ElementInitializer = "rng.NextInt2()" }, + }, "args.result[i] = math.asfloat(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asfloat_int3", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "result", m_ElementInitializer = "new int3()" }, + new PerformanceTestArrayArgument { m_ElementType = "int3", m_MemberName = "v", m_ElementInitializer = "rng.NextInt3()" }, + }, "args.result[i] = math.asfloat(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asfloat_int4", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "float4", m_MemberName = "result", m_ElementInitializer = "new int4()" }, + new PerformanceTestArrayArgument { m_ElementType = "int4", m_MemberName = "v", m_ElementInitializer = "rng.NextInt4()" }, + }, "args.result[i] = math.asfloat(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asdouble_ulong", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "double", m_MemberName = "result", m_ElementInitializer = "new double()" }, + new PerformanceTestArrayArgument { m_ElementType = "ulong", m_MemberName = "v", m_ElementInitializer = "rng.NextUInt()" }, + }, "args.result[i] = math.asdouble(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asdouble_long", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "double", m_MemberName = "result", m_ElementInitializer = "new double()" }, + new PerformanceTestArrayArgument { m_ElementType = "long", m_MemberName = "v", m_ElementInitializer = "rng.NextInt()" }, + }, "args.result[i] = math.asdouble(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "aslong_double", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "long", m_MemberName = "result", m_ElementInitializer = "new long()" }, + new PerformanceTestArrayArgument { m_ElementType = "double", m_MemberName = "v", m_ElementInitializer = "rng.NextDouble(-1.0, 1.0)" }, + }, "args.result[i] = math.aslong(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asulong_double", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "ulong", m_MemberName = "result", m_ElementInitializer = "new ulong()" }, + new PerformanceTestArrayArgument { m_ElementType = "double", m_MemberName = "v", m_ElementInitializer = "rng.NextDouble(-1.0, 1.0)" }, + }, "args.result[i] = math.asulong(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asuint_int", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "uint", m_MemberName = "result", m_ElementInitializer = "new uint()" }, + new PerformanceTestArrayArgument { m_ElementType = "int", m_MemberName = "v", m_ElementInitializer = "rng.NextInt()" }, + }, "args.result[i] = math.asuint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asuint_int2", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "uint2", m_MemberName = "result", m_ElementInitializer = "new uint2()" }, + new PerformanceTestArrayArgument { m_ElementType = "int2", m_MemberName = "v", m_ElementInitializer = "rng.NextInt2()" }, + }, "args.result[i] = math.asuint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asuint_int3", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "uint3", m_MemberName = "result", m_ElementInitializer = "new uint3()" }, + new PerformanceTestArrayArgument { m_ElementType = "int3", m_MemberName = "v", m_ElementInitializer = "rng.NextInt3()" }, + }, "args.result[i] = math.asuint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asuint_int4", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "uint4", m_MemberName = "result", m_ElementInitializer = "new uint4()" }, + new PerformanceTestArrayArgument { m_ElementType = "int4", m_MemberName = "v", m_ElementInitializer = "rng.NextInt4()" }, + }, "args.result[i] = math.asuint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asint_uint", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "int", m_MemberName = "result", m_ElementInitializer = "new int()" }, + new PerformanceTestArrayArgument { m_ElementType = "uint", m_MemberName = "v", m_ElementInitializer = "rng.NextUInt()" }, + }, "args.result[i] = math.asint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asint_uint2", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "int2", m_MemberName = "result", m_ElementInitializer = "new int2()" }, + new PerformanceTestArrayArgument { m_ElementType = "uint2", m_MemberName = "v", m_ElementInitializer = "rng.NextUInt2()" }, + }, "args.result[i] = math.asint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asint_uint3", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "int3", m_MemberName = "result", m_ElementInitializer = "new int3()" }, + new PerformanceTestArrayArgument { m_ElementType = "uint3", m_MemberName = "v", m_ElementInitializer = "rng.NextUInt3()" }, + }, "args.result[i] = math.asint(args.v[i]);", 400000); + + GeneratePerformanceTest(str, "asint_uint4", new[] + { + new PerformanceTestArrayArgument { m_ElementType = "int4", m_MemberName = "result", m_ElementInitializer = "new int4()" }, + new PerformanceTestArrayArgument { m_ElementType = "uint4", m_MemberName = "v", m_ElementInitializer = "rng.NextUInt4()" }, + }, "args.result[i] = math.asint(args.v[i]);", 400000); + EndPerformanceTestCodeGen(str); } @@ -3717,7 +3869,7 @@ public struct PerformanceTestArrayArgument public string m_ElementInitializer; } - void GeneratePerformanceTest(StringBuilder str, string testName, PerformanceTestArrayArgument[] testArguments, string loopBody, int loopIterations) + void GeneratePerformanceTest(StringBuilder str, string testName, PerformanceTestArrayArgument[] testArguments, string loopBody, int loopIterations, uint rngSeed = 1u) { str.AppendFormat("\t\t[BurstCompile(CompileSynchronously = true)]\n"); str.AppendFormat("\t\tpublic unsafe class {0}\n", testName); @@ -3725,6 +3877,7 @@ void GeneratePerformanceTest(StringBuilder str, string testName, PerformanceTest str.AppendFormat("\t\t\tpublic const int iterations = {0};\n\n", loopIterations); str.AppendFormat("\t\t\tpublic struct Arguments : IDisposable\n"); str.AppendFormat("\t\t\t{{\n"); + str.AppendFormat("\t\t\t\tpublic Random rng;\n"); foreach (var argument in testArguments) { @@ -3734,6 +3887,7 @@ void GeneratePerformanceTest(StringBuilder str, string testName, PerformanceTest str.AppendFormat("\n"); str.AppendFormat("\t\t\t\tpublic void Init()\n"); str.AppendFormat("\t\t\t\t{{\n"); + str.AppendFormat("\t\t\t\t\trng = new Random({0});\n", rngSeed); foreach (var argument in testArguments) { diff --git a/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs index 20193726..3050d7f5 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestConversions.gen.cs @@ -25,11 +25,13 @@ public unsafe class quaternion_to_float3x3 public struct Arguments : IDisposable { + public Random rng; public quaternion* q; public float3x3* f3x3; public void Init() { + rng = new Random(1); q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -115,11 +117,13 @@ public unsafe class float3x3_to_quaternion public struct Arguments : IDisposable { + public Random rng; public quaternion* q; public float3x3* f3x3; public void Init() { + rng = new Random(1); q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -205,11 +209,13 @@ public unsafe class float4_to_half4 public struct Arguments : IDisposable { + public Random rng; public float4* f4; public half4* h4; public void Init() { + rng = new Random(1); f4 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -295,11 +301,13 @@ public unsafe class half4_to_float4 public struct Arguments : IDisposable { + public Random rng; public float4* f4; public half4* h4; public void Init() { + rng = new Random(1); f4 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -385,12 +393,14 @@ public unsafe class quaternion_to_RigidTransform public struct Arguments : IDisposable { + public Random rng; public quaternion* q; public RigidTransform* rt; public float3* pos; public void Init() { + rng = new Random(1); q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -483,11 +493,13 @@ public unsafe class quaternion_to_float4x4 public struct Arguments : IDisposable { + public Random rng; public quaternion* q; public float4x4* f4x4; public void Init() { + rng = new Random(1); q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -573,12 +585,14 @@ public unsafe class float4x4_to_quaternion public struct Arguments : IDisposable { + public Random rng; public quaternion* q; public float4x4* f4x4; public float3* f3; public void Init() { + rng = new Random(1); q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -671,11 +685,13 @@ public unsafe class float4_to_uint4 public struct Arguments : IDisposable { + public Random rng; public float4* f4; public uint4* u4; public void Init() { + rng = new Random(1); f4 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -761,11 +777,13 @@ public unsafe class uint4_to_float4 public struct Arguments : IDisposable { + public Random rng; public float4* f4; public uint4* u4; public void Init() { + rng = new Random(1); f4 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { diff --git a/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs index 62f950f0..570951dd 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestFastInverse.gen.cs @@ -25,10 +25,12 @@ public unsafe class float4x4_fastinverse public struct Arguments : IDisposable { + public Random rng; public float4x4* m1; public void Init() { + rng = new Random(1); m1 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -107,10 +109,12 @@ public unsafe class double4x4_fastinverse public struct Arguments : IDisposable { + public Random rng; public double4x4* m1; public void Init() { + rng = new Random(1); m1 = (double4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { diff --git a/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs index 320bda9f..e90cf82c 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestHash.gen.cs @@ -25,11 +25,13 @@ public unsafe class float2_hash public struct Arguments : IDisposable { + public Random rng; public float2* v; public uint* hash; public void Init() { + rng = new Random(1); v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -115,11 +117,13 @@ public unsafe class float3_hash public struct Arguments : IDisposable { + public Random rng; public float3* v; public uint* hash; public void Init() { + rng = new Random(1); v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -205,11 +209,13 @@ public unsafe class float4_hash public struct Arguments : IDisposable { + public Random rng; public float4* v; public uint* hash; public void Init() { + rng = new Random(1); v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -295,11 +301,13 @@ public unsafe class double2_hash public struct Arguments : IDisposable { + public Random rng; public double2* v; public uint* hash; public void Init() { + rng = new Random(1); v = (double2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -385,11 +393,13 @@ public unsafe class double3_hash public struct Arguments : IDisposable { + public Random rng; public double3* v; public uint* hash; public void Init() { + rng = new Random(1); v = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -475,11 +485,13 @@ public unsafe class double4_hash public struct Arguments : IDisposable { + public Random rng; public double4* v; public uint* hash; public void Init() { + rng = new Random(1); v = (double4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -565,11 +577,13 @@ public unsafe class float2x2_hash public struct Arguments : IDisposable { + public Random rng; public float2x2* v; public uint* hash; public void Init() { + rng = new Random(1); v = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -655,11 +669,13 @@ public unsafe class float3x3_hash public struct Arguments : IDisposable { + public Random rng; public float3x3* v; public uint* hash; public void Init() { + rng = new Random(1); v = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -745,11 +761,13 @@ public unsafe class float4x4_hash public struct Arguments : IDisposable { + public Random rng; public float4x4* v; public uint* hash; public void Init() { + rng = new Random(1); v = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -835,11 +853,13 @@ public unsafe class float2x2_hashwide public struct Arguments : IDisposable { + public Random rng; public float2x2* v; public uint2* hash; public void Init() { + rng = new Random(1); v = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -925,11 +945,13 @@ public unsafe class float3x3_hashwide public struct Arguments : IDisposable { + public Random rng; public float3x3* v; public uint3* hash; public void Init() { + rng = new Random(1); v = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -1015,11 +1037,13 @@ public unsafe class float4x4_hashwide public struct Arguments : IDisposable { + public Random rng; public float4x4* v; public uint4* hash; public void Init() { + rng = new Random(1); v = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -1105,11 +1129,13 @@ public unsafe class float2_hashwide public struct Arguments : IDisposable { + public Random rng; public float2* v; public uint2* hash; public void Init() { + rng = new Random(1); v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { diff --git a/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs index 438bfb75..1359b2a3 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs @@ -25,10 +25,12 @@ public unsafe class float4x4_inverse public struct Arguments : IDisposable { + public Random rng; public float4x4* m1; public void Init() { + rng = new Random(1); m1 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -107,10 +109,12 @@ public unsafe class float3x3_inverse public struct Arguments : IDisposable { + public Random rng; public float3x3* m1; public void Init() { + rng = new Random(1); m1 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -189,10 +193,12 @@ public unsafe class float2x2_inverse public struct Arguments : IDisposable { + public Random rng; public float2x2* m1; public void Init() { + rng = new Random(1); m1 = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -271,10 +277,12 @@ public unsafe class double4x4_inverse public struct Arguments : IDisposable { + public Random rng; public double4x4* m1; public void Init() { + rng = new Random(1); m1 = (double4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -353,10 +361,12 @@ public unsafe class double3x3_inverse public struct Arguments : IDisposable { + public Random rng; public double3x3* m1; public void Init() { + rng = new Random(1); m1 = (double3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -435,10 +445,12 @@ public unsafe class double2x2_inverse public struct Arguments : IDisposable { + public Random rng; public double2x2* m1; public void Init() { + rng = new Random(1); m1 = (double2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -517,10 +529,12 @@ public unsafe class quaternion_inverse public struct Arguments : IDisposable { + public Random rng; public quaternion* q; public void Init() { + rng = new Random(1); q = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { diff --git a/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs index 01376555..d6ad87f5 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs @@ -25,23 +25,18 @@ public unsafe class orthonormal_basis_float public struct Arguments : IDisposable { - public Random* rng; + public Random rng; public float3* v1; public float3* v2; public float3* v3; public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < iterations; ++i) - { - rng[i] = new Random(1234u); - } - + rng = new Random(1); v1 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { - v1[i] = rng[0].NextFloat3Direction(); + v1[i] = rng.NextFloat3Direction(); } v2 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); @@ -60,7 +55,6 @@ public void Init() public void Dispose() { - UnsafeUtility.Free(rng, Allocator.Persistent); UnsafeUtility.Free(v1, Allocator.Persistent); UnsafeUtility.Free(v2, Allocator.Persistent); UnsafeUtility.Free(v3, Allocator.Persistent); @@ -131,23 +125,18 @@ public unsafe class orthonormal_basis_double public struct Arguments : IDisposable { - public Random* rng; + public Random rng; public double3* v1; public double3* v2; public double3* v3; public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < iterations; ++i) - { - rng[i] = new Random(1234u); - } - + rng = new Random(1); v1 = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { - v1[i] = rng[0].NextDouble3Direction(); + v1[i] = rng.NextDouble3Direction(); } v2 = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); @@ -166,7 +155,6 @@ public void Init() public void Dispose() { - UnsafeUtility.Free(rng, Allocator.Persistent); UnsafeUtility.Free(v1, Allocator.Persistent); UnsafeUtility.Free(v2, Allocator.Persistent); UnsafeUtility.Free(v3, Allocator.Persistent); @@ -220,6 +208,2582 @@ public void orthonormal_basis_double_burst() var args = new orthonormal_basis_double.Arguments(); args.Init(); + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asuint_float + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public uint* result; + public float* v; + + public void Init() + { + rng = new Random(1); + result = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new uint(); + } + + v = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextFloat(-1.0f, 1.0f); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asuint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asuint_float_mono() + { + asuint_float.TestFunction testFunction = asuint_float.MonoTestFunction; + var args = new asuint_float.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asuint_float_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asuint_float.BurstTestFunction); + var args = new asuint_float.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asuint_float2 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public uint2* result; + public float2* v; + + public void Init() + { + rng = new Random(1); + result = (uint2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new uint2(); + } + + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextFloat2(-1.0f, 1.0f); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asuint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asuint_float2_mono() + { + asuint_float2.TestFunction testFunction = asuint_float2.MonoTestFunction; + var args = new asuint_float2.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asuint_float2_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asuint_float2.BurstTestFunction); + var args = new asuint_float2.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asuint_float3 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public uint3* result; + public float3* v; + + public void Init() + { + rng = new Random(1); + result = (uint3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new uint3(); + } + + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextFloat3(-1.0f, 1.0f); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asuint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asuint_float3_mono() + { + asuint_float3.TestFunction testFunction = asuint_float3.MonoTestFunction; + var args = new asuint_float3.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asuint_float3_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asuint_float3.BurstTestFunction); + var args = new asuint_float3.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asuint_float4 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public uint4* result; + public float4* v; + + public void Init() + { + rng = new Random(1); + result = (uint4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new uint4(); + } + + v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextFloat4(-1.0f, 1.0f); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asuint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asuint_float4_mono() + { + asuint_float4.TestFunction testFunction = asuint_float4.MonoTestFunction; + var args = new asuint_float4.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asuint_float4_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asuint_float4.BurstTestFunction); + var args = new asuint_float4.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asint_float + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public int* result; + public float* v; + + public void Init() + { + rng = new Random(1); + result = (int*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new int(); + } + + v = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextFloat(-1.0f, 1.0f); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asint_float_mono() + { + asint_float.TestFunction testFunction = asint_float.MonoTestFunction; + var args = new asint_float.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asint_float_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asint_float.BurstTestFunction); + var args = new asint_float.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asint_float2 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public int2* result; + public float2* v; + + public void Init() + { + rng = new Random(1); + result = (int2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new int2(); + } + + v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextFloat2(-1.0f, 1.0f); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asint_float2_mono() + { + asint_float2.TestFunction testFunction = asint_float2.MonoTestFunction; + var args = new asint_float2.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asint_float2_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asint_float2.BurstTestFunction); + var args = new asint_float2.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asint_float3 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public int3* result; + public float3* v; + + public void Init() + { + rng = new Random(1); + result = (int3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new int3(); + } + + v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextFloat3(-1.0f, 1.0f); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asint_float3_mono() + { + asint_float3.TestFunction testFunction = asint_float3.MonoTestFunction; + var args = new asint_float3.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asint_float3_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asint_float3.BurstTestFunction); + var args = new asint_float3.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asint_float4 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public int4* result; + public float4* v; + + public void Init() + { + rng = new Random(1); + result = (int4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new int4(); + } + + v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextFloat4(-1.0f, 1.0f); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asint_float4_mono() + { + asint_float4.TestFunction testFunction = asint_float4.MonoTestFunction; + var args = new asint_float4.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asint_float4_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asint_float4.BurstTestFunction); + var args = new asint_float4.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asfloat_uint + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public float* result; + public uint* v; + + public void Init() + { + rng = new Random(1); + result = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new uint(); + } + + v = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextUInt(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asfloat(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asfloat_uint_mono() + { + asfloat_uint.TestFunction testFunction = asfloat_uint.MonoTestFunction; + var args = new asfloat_uint.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asfloat_uint_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asfloat_uint.BurstTestFunction); + var args = new asfloat_uint.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asfloat_uint2 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public float2* result; + public uint2* v; + + public void Init() + { + rng = new Random(1); + result = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new uint2(); + } + + v = (uint2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextUInt2(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asfloat(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asfloat_uint2_mono() + { + asfloat_uint2.TestFunction testFunction = asfloat_uint2.MonoTestFunction; + var args = new asfloat_uint2.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asfloat_uint2_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asfloat_uint2.BurstTestFunction); + var args = new asfloat_uint2.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asfloat_uint3 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public float3* result; + public uint3* v; + + public void Init() + { + rng = new Random(1); + result = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new uint3(); + } + + v = (uint3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextUInt3(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asfloat(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asfloat_uint3_mono() + { + asfloat_uint3.TestFunction testFunction = asfloat_uint3.MonoTestFunction; + var args = new asfloat_uint3.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asfloat_uint3_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asfloat_uint3.BurstTestFunction); + var args = new asfloat_uint3.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asfloat_uint4 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public float4* result; + public uint4* v; + + public void Init() + { + rng = new Random(1); + result = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new uint4(); + } + + v = (uint4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextUInt4(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asfloat(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asfloat_uint4_mono() + { + asfloat_uint4.TestFunction testFunction = asfloat_uint4.MonoTestFunction; + var args = new asfloat_uint4.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asfloat_uint4_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asfloat_uint4.BurstTestFunction); + var args = new asfloat_uint4.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asfloat_int + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public float* result; + public int* v; + + public void Init() + { + rng = new Random(1); + result = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new int(); + } + + v = (int*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextInt(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asfloat(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asfloat_int_mono() + { + asfloat_int.TestFunction testFunction = asfloat_int.MonoTestFunction; + var args = new asfloat_int.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asfloat_int_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asfloat_int.BurstTestFunction); + var args = new asfloat_int.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asfloat_int2 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public float2* result; + public int2* v; + + public void Init() + { + rng = new Random(1); + result = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new int2(); + } + + v = (int2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextInt2(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asfloat(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asfloat_int2_mono() + { + asfloat_int2.TestFunction testFunction = asfloat_int2.MonoTestFunction; + var args = new asfloat_int2.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asfloat_int2_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asfloat_int2.BurstTestFunction); + var args = new asfloat_int2.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asfloat_int3 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public float3* result; + public int3* v; + + public void Init() + { + rng = new Random(1); + result = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new int3(); + } + + v = (int3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextInt3(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asfloat(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asfloat_int3_mono() + { + asfloat_int3.TestFunction testFunction = asfloat_int3.MonoTestFunction; + var args = new asfloat_int3.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asfloat_int3_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asfloat_int3.BurstTestFunction); + var args = new asfloat_int3.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asfloat_int4 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public float4* result; + public int4* v; + + public void Init() + { + rng = new Random(1); + result = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new int4(); + } + + v = (int4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextInt4(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asfloat(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asfloat_int4_mono() + { + asfloat_int4.TestFunction testFunction = asfloat_int4.MonoTestFunction; + var args = new asfloat_int4.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asfloat_int4_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asfloat_int4.BurstTestFunction); + var args = new asfloat_int4.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asdouble_ulong + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public double* result; + public ulong* v; + + public void Init() + { + rng = new Random(1); + result = (double*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new double(); + } + + v = (ulong*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextUInt(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asdouble(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asdouble_ulong_mono() + { + asdouble_ulong.TestFunction testFunction = asdouble_ulong.MonoTestFunction; + var args = new asdouble_ulong.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asdouble_ulong_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asdouble_ulong.BurstTestFunction); + var args = new asdouble_ulong.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asdouble_long + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public double* result; + public long* v; + + public void Init() + { + rng = new Random(1); + result = (double*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new double(); + } + + v = (long*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextInt(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asdouble(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asdouble_long_mono() + { + asdouble_long.TestFunction testFunction = asdouble_long.MonoTestFunction; + var args = new asdouble_long.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asdouble_long_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asdouble_long.BurstTestFunction); + var args = new asdouble_long.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class aslong_double + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public long* result; + public double* v; + + public void Init() + { + rng = new Random(1); + result = (long*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new long(); + } + + v = (double*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextDouble(-1.0, 1.0); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.aslong(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void aslong_double_mono() + { + aslong_double.TestFunction testFunction = aslong_double.MonoTestFunction; + var args = new aslong_double.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void aslong_double_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(aslong_double.BurstTestFunction); + var args = new aslong_double.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asulong_double + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public ulong* result; + public double* v; + + public void Init() + { + rng = new Random(1); + result = (ulong*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new ulong(); + } + + v = (double*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextDouble(-1.0, 1.0); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asulong(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asulong_double_mono() + { + asulong_double.TestFunction testFunction = asulong_double.MonoTestFunction; + var args = new asulong_double.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asulong_double_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asulong_double.BurstTestFunction); + var args = new asulong_double.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asuint_int + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public uint* result; + public int* v; + + public void Init() + { + rng = new Random(1); + result = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new uint(); + } + + v = (int*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextInt(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asuint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asuint_int_mono() + { + asuint_int.TestFunction testFunction = asuint_int.MonoTestFunction; + var args = new asuint_int.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asuint_int_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asuint_int.BurstTestFunction); + var args = new asuint_int.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asuint_int2 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public uint2* result; + public int2* v; + + public void Init() + { + rng = new Random(1); + result = (uint2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new uint2(); + } + + v = (int2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextInt2(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asuint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asuint_int2_mono() + { + asuint_int2.TestFunction testFunction = asuint_int2.MonoTestFunction; + var args = new asuint_int2.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asuint_int2_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asuint_int2.BurstTestFunction); + var args = new asuint_int2.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asuint_int3 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public uint3* result; + public int3* v; + + public void Init() + { + rng = new Random(1); + result = (uint3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new uint3(); + } + + v = (int3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextInt3(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asuint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asuint_int3_mono() + { + asuint_int3.TestFunction testFunction = asuint_int3.MonoTestFunction; + var args = new asuint_int3.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asuint_int3_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asuint_int3.BurstTestFunction); + var args = new asuint_int3.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asuint_int4 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public uint4* result; + public int4* v; + + public void Init() + { + rng = new Random(1); + result = (uint4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new uint4(); + } + + v = (int4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextInt4(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asuint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asuint_int4_mono() + { + asuint_int4.TestFunction testFunction = asuint_int4.MonoTestFunction; + var args = new asuint_int4.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asuint_int4_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asuint_int4.BurstTestFunction); + var args = new asuint_int4.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asint_uint + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public int* result; + public uint* v; + + public void Init() + { + rng = new Random(1); + result = (int*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new int(); + } + + v = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextUInt(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asint_uint_mono() + { + asint_uint.TestFunction testFunction = asint_uint.MonoTestFunction; + var args = new asint_uint.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asint_uint_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asint_uint.BurstTestFunction); + var args = new asint_uint.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asint_uint2 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public int2* result; + public uint2* v; + + public void Init() + { + rng = new Random(1); + result = (int2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new int2(); + } + + v = (uint2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextUInt2(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asint_uint2_mono() + { + asint_uint2.TestFunction testFunction = asint_uint2.MonoTestFunction; + var args = new asint_uint2.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asint_uint2_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asint_uint2.BurstTestFunction); + var args = new asint_uint2.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asint_uint3 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public int3* result; + public uint3* v; + + public void Init() + { + rng = new Random(1); + result = (int3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new int3(); + } + + v = (uint3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextUInt3(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asint_uint3_mono() + { + asint_uint3.TestFunction testFunction = asint_uint3.MonoTestFunction; + var args = new asint_uint3.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asint_uint3_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asint_uint3.BurstTestFunction); + var args = new asint_uint3.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class asint_uint4 + { + public const int iterations = 400000; + + public struct Arguments : IDisposable + { + public Random rng; + public int4* result; + public uint4* v; + + public void Init() + { + rng = new Random(1); + result = (int4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new int4(); + } + + v = (uint4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + v[i] = rng.NextUInt4(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(result, Allocator.Persistent); + UnsafeUtility.Free(v, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.asint(args.v[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void asint_uint4_mono() + { + asint_uint4.TestFunction testFunction = asint_uint4.MonoTestFunction; + var args = new asint_uint4.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void asint_uint4_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(asint_uint4.BurstTestFunction); + var args = new asint_uint4.Arguments(); + args.Init(); + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); diff --git a/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs index b964fec4..ab4406c2 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestMinMaxAABB.gen.cs @@ -25,10 +25,12 @@ public unsafe class Transform_float4x4 public struct Arguments : IDisposable { + public Random rng; public Geometry.MinMaxAABB* a; public void Init() { + rng = new Random(1); a = (Geometry.MinMaxAABB*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -107,10 +109,12 @@ public unsafe class Transform_float3x3 public struct Arguments : IDisposable { + public Random rng; public Geometry.MinMaxAABB* a; public void Init() { + rng = new Random(1); a = (Geometry.MinMaxAABB*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { diff --git a/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs index 06c29893..2cd2c55a 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestMul.gen.cs @@ -25,11 +25,13 @@ public unsafe class float4x4_float4x4 public struct Arguments : IDisposable { + public Random rng; public float4x4* m1; public float4x4* m2; public void Init() { + rng = new Random(1); m1 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -115,11 +117,13 @@ public unsafe class float4x4_float4 public struct Arguments : IDisposable { + public Random rng; public float4x4* m1; public float4* m2; public void Init() { + rng = new Random(1); m1 = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -205,11 +209,13 @@ public unsafe class quaternion_quaternion public struct Arguments : IDisposable { + public Random rng; public quaternion* q1; public quaternion* q2; public void Init() { + rng = new Random(1); q1 = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -295,11 +301,13 @@ public unsafe class float3x3_float3x3 public struct Arguments : IDisposable { + public Random rng; public float3x3* m1; public float3x3* m2; public void Init() { + rng = new Random(1); m1 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -385,11 +393,13 @@ public unsafe class float2x2_float2x2 public struct Arguments : IDisposable { + public Random rng; public float2x2* m1; public float2x2* m2; public void Init() { + rng = new Random(1); m1 = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -475,11 +485,13 @@ public unsafe class float3x3_float3 public struct Arguments : IDisposable { + public Random rng; public float3x3* m1; public float3* m2; public void Init() { + rng = new Random(1); m1 = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -565,11 +577,13 @@ public unsafe class float2x2_float2 public struct Arguments : IDisposable { + public Random rng; public float2x2* m1; public float2* m2; public void Init() { + rng = new Random(1); m1 = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { diff --git a/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs index 988d06a6..d87c6612 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestNoise.gen.cs @@ -25,10 +25,12 @@ public unsafe class snoise2D public struct Arguments : IDisposable { + public Random rng; public float2* v; public void Init() { + rng = new Random(1); v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -107,10 +109,12 @@ public unsafe class snoise3D public struct Arguments : IDisposable { + public Random rng; public float3* v; public void Init() { + rng = new Random(1); v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -189,10 +193,12 @@ public unsafe class snoise4D public struct Arguments : IDisposable { + public Random rng; public float4* v; public void Init() { + rng = new Random(1); v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -271,11 +277,13 @@ public unsafe class snoise3Dgrad public struct Arguments : IDisposable { + public Random rng; public float3* v; public float3* gradient; public void Init() { + rng = new Random(1); v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -361,10 +369,12 @@ public unsafe class cnoise2D public struct Arguments : IDisposable { + public Random rng; public float2* v; public void Init() { + rng = new Random(1); v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -443,10 +453,12 @@ public unsafe class cnoise3D public struct Arguments : IDisposable { + public Random rng; public float3* v; public void Init() { + rng = new Random(1); v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -525,10 +537,12 @@ public unsafe class cnoise4D public struct Arguments : IDisposable { + public Random rng; public float4* v; public void Init() { + rng = new Random(1); v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -607,10 +621,12 @@ public unsafe class pnoise2D public struct Arguments : IDisposable { + public Random rng; public float2* v; public void Init() { + rng = new Random(1); v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -689,10 +705,12 @@ public unsafe class pnoise3D public struct Arguments : IDisposable { + public Random rng; public float3* v; public void Init() { + rng = new Random(1); v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -771,10 +789,12 @@ public unsafe class pnoise4D public struct Arguments : IDisposable { + public Random rng; public float4* v; public void Init() { + rng = new Random(1); v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -853,10 +873,12 @@ public unsafe class cellular2D public struct Arguments : IDisposable { + public Random rng; public float2* v; public void Init() { + rng = new Random(1); v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -935,10 +957,12 @@ public unsafe class cellular3D public struct Arguments : IDisposable { + public Random rng; public float3* v; public void Init() { + rng = new Random(1); v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -1017,10 +1041,12 @@ public unsafe class cellular2x2 public struct Arguments : IDisposable { + public Random rng; public float2* v; public void Init() { + rng = new Random(1); v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -1099,10 +1125,12 @@ public unsafe class cellular2x2x2 public struct Arguments : IDisposable { + public Random rng; public float3* v; public void Init() { + rng = new Random(1); v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -1181,10 +1209,12 @@ public unsafe class psrdnoise public struct Arguments : IDisposable { + public Random rng; public float2* v; public void Init() { + rng = new Random(1); v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -1263,10 +1293,12 @@ public unsafe class psrnoise public struct Arguments : IDisposable { + public Random rng; public float2* v; public void Init() { + rng = new Random(1); v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -1345,10 +1377,12 @@ public unsafe class srdnoise public struct Arguments : IDisposable { + public Random rng; public float2* v; public void Init() { + rng = new Random(1); v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -1427,10 +1461,12 @@ public unsafe class srnoise public struct Arguments : IDisposable { + public Random rng; public float2* v; public void Init() { + rng = new Random(1); v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { diff --git a/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs index b2915796..5f70e74d 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestNormalize.gen.cs @@ -25,10 +25,12 @@ public unsafe class float4_normalize public struct Arguments : IDisposable { + public Random rng; public float4* v; public void Init() { + rng = new Random(1); v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -107,10 +109,12 @@ public unsafe class float3_normalize public struct Arguments : IDisposable { + public Random rng; public float3* v; public void Init() { + rng = new Random(1); v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -189,10 +193,12 @@ public unsafe class float2_normalize public struct Arguments : IDisposable { + public Random rng; public float2* v; public void Init() { + rng = new Random(1); v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -271,10 +277,12 @@ public unsafe class double4_normalize public struct Arguments : IDisposable { + public Random rng; public double4* v; public void Init() { + rng = new Random(1); v = (double4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -353,10 +361,12 @@ public unsafe class double3_normalize public struct Arguments : IDisposable { + public Random rng; public double3* v; public void Init() { + rng = new Random(1); v = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -435,10 +445,12 @@ public unsafe class double2_normalize public struct Arguments : IDisposable { + public Random rng; public double2* v; public void Init() { + rng = new Random(1); v = (double2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -517,10 +529,12 @@ public unsafe class float4_normalizesafe public struct Arguments : IDisposable { + public Random rng; public float4* v; public void Init() { + rng = new Random(1); v = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -599,10 +613,12 @@ public unsafe class float3_normalizesafe public struct Arguments : IDisposable { + public Random rng; public float3* v; public void Init() { + rng = new Random(1); v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -681,10 +697,12 @@ public unsafe class float2_normalizesafe public struct Arguments : IDisposable { + public Random rng; public float2* v; public void Init() { + rng = new Random(1); v = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -763,10 +781,12 @@ public unsafe class double4_normalizesafe public struct Arguments : IDisposable { + public Random rng; public double4* v; public void Init() { + rng = new Random(1); v = (double4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -845,10 +865,12 @@ public unsafe class double3_normalizesafe public struct Arguments : IDisposable { + public Random rng; public double3* v; public void Init() { + rng = new Random(1); v = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -927,10 +949,12 @@ public unsafe class double2_normalizesafe public struct Arguments : IDisposable { + public Random rng; public double2* v; public void Init() { + rng = new Random(1); v = (double2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { diff --git a/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs index cb29c3b2..59b6949c 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestPlane.gen.cs @@ -25,10 +25,12 @@ public unsafe class Normalize_Plane public struct Arguments : IDisposable { + public Random rng; public Plane* p; public void Init() { + rng = new Random(1); p = (Plane*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { diff --git a/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs index ee29e432..c318f90f 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestRandom.gen.cs @@ -25,17 +25,12 @@ public unsafe class Random_NextUint public struct Arguments : IDisposable { - public Random* rng; + public Random rng; public uint* u; public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < iterations; ++i) - { - rng[i] = new Unity.Mathematics.Random(1); - } - + rng = new Random(1); u = (uint*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -46,7 +41,6 @@ public void Init() public void Dispose() { - UnsafeUtility.Free(rng, Allocator.Persistent); UnsafeUtility.Free(u, Allocator.Persistent); } } @@ -55,7 +49,7 @@ public static void CommonTestFunction(ref Arguments args) { for (int i = 0; i < iterations; ++i) { - args.u[i] = args.rng[i].NextUInt(); + args.u[i] = args.rng.NextUInt(); } } @@ -115,17 +109,12 @@ public unsafe class Random_NextUint2 public struct Arguments : IDisposable { - public Random* rng; + public Random rng; public uint2* u; public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < iterations; ++i) - { - rng[i] = new Unity.Mathematics.Random(1); - } - + rng = new Random(1); u = (uint2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -136,7 +125,6 @@ public void Init() public void Dispose() { - UnsafeUtility.Free(rng, Allocator.Persistent); UnsafeUtility.Free(u, Allocator.Persistent); } } @@ -145,7 +133,7 @@ public static void CommonTestFunction(ref Arguments args) { for (int i = 0; i < iterations; ++i) { - args.u[i] = args.rng[i].NextUInt2(); + args.u[i] = args.rng.NextUInt2(); } } @@ -205,17 +193,12 @@ public unsafe class Random_NextUint3 public struct Arguments : IDisposable { - public Random* rng; + public Random rng; public uint3* u; public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < iterations; ++i) - { - rng[i] = new Unity.Mathematics.Random(1); - } - + rng = new Random(1); u = (uint3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -226,7 +209,6 @@ public void Init() public void Dispose() { - UnsafeUtility.Free(rng, Allocator.Persistent); UnsafeUtility.Free(u, Allocator.Persistent); } } @@ -235,7 +217,7 @@ public static void CommonTestFunction(ref Arguments args) { for (int i = 0; i < iterations; ++i) { - args.u[i] = args.rng[i].NextUInt3(); + args.u[i] = args.rng.NextUInt3(); } } @@ -295,17 +277,12 @@ public unsafe class Random_NextUint4 public struct Arguments : IDisposable { - public Random* rng; + public Random rng; public uint4* u; public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < iterations; ++i) - { - rng[i] = new Unity.Mathematics.Random(1); - } - + rng = new Random(1); u = (uint4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -316,7 +293,6 @@ public void Init() public void Dispose() { - UnsafeUtility.Free(rng, Allocator.Persistent); UnsafeUtility.Free(u, Allocator.Persistent); } } @@ -325,7 +301,7 @@ public static void CommonTestFunction(ref Arguments args) { for (int i = 0; i < iterations; ++i) { - args.u[i] = args.rng[i].NextUInt4(); + args.u[i] = args.rng.NextUInt4(); } } @@ -385,17 +361,12 @@ public unsafe class Random_NextFloat public struct Arguments : IDisposable { - public Random* rng; + public Random rng; public float* f; public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < iterations; ++i) - { - rng[i] = new Unity.Mathematics.Random(1); - } - + rng = new Random(1); f = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -406,7 +377,6 @@ public void Init() public void Dispose() { - UnsafeUtility.Free(rng, Allocator.Persistent); UnsafeUtility.Free(f, Allocator.Persistent); } } @@ -415,7 +385,7 @@ public static void CommonTestFunction(ref Arguments args) { for (int i = 0; i < iterations; ++i) { - args.f[i] = args.rng[i].NextFloat(); + args.f[i] = args.rng.NextFloat(); } } @@ -475,17 +445,12 @@ public unsafe class Random_NextFloat2 public struct Arguments : IDisposable { - public Random* rng; + public Random rng; public float2* f; public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < iterations; ++i) - { - rng[i] = new Unity.Mathematics.Random(1); - } - + rng = new Random(1); f = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -496,7 +461,6 @@ public void Init() public void Dispose() { - UnsafeUtility.Free(rng, Allocator.Persistent); UnsafeUtility.Free(f, Allocator.Persistent); } } @@ -505,7 +469,7 @@ public static void CommonTestFunction(ref Arguments args) { for (int i = 0; i < iterations; ++i) { - args.f[i] = args.rng[i].NextFloat2(); + args.f[i] = args.rng.NextFloat2(); } } @@ -565,17 +529,12 @@ public unsafe class Random_NextFloat3 public struct Arguments : IDisposable { - public Random* rng; + public Random rng; public float3* f; public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < iterations; ++i) - { - rng[i] = new Unity.Mathematics.Random(1); - } - + rng = new Random(1); f = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -586,7 +545,6 @@ public void Init() public void Dispose() { - UnsafeUtility.Free(rng, Allocator.Persistent); UnsafeUtility.Free(f, Allocator.Persistent); } } @@ -595,7 +553,7 @@ public static void CommonTestFunction(ref Arguments args) { for (int i = 0; i < iterations; ++i) { - args.f[i] = args.rng[i].NextFloat3(); + args.f[i] = args.rng.NextFloat3(); } } @@ -655,17 +613,12 @@ public unsafe class Random_NextFloat4 public struct Arguments : IDisposable { - public Random* rng; + public Random rng; public float4* f; public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < iterations; ++i) - { - rng[i] = new Unity.Mathematics.Random(1); - } - + rng = new Random(1); f = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -676,7 +629,6 @@ public void Init() public void Dispose() { - UnsafeUtility.Free(rng, Allocator.Persistent); UnsafeUtility.Free(f, Allocator.Persistent); } } @@ -685,7 +637,7 @@ public static void CommonTestFunction(ref Arguments args) { for (int i = 0; i < iterations; ++i) { - args.f[i] = args.rng[i].NextFloat4(); + args.f[i] = args.rng.NextFloat4(); } } @@ -745,17 +697,12 @@ public unsafe class Random_NextDouble public struct Arguments : IDisposable { - public Random* rng; + public Random rng; public double* f; public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < iterations; ++i) - { - rng[i] = new Unity.Mathematics.Random(1); - } - + rng = new Random(1); f = (double*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -766,7 +713,6 @@ public void Init() public void Dispose() { - UnsafeUtility.Free(rng, Allocator.Persistent); UnsafeUtility.Free(f, Allocator.Persistent); } } @@ -775,7 +721,7 @@ public static void CommonTestFunction(ref Arguments args) { for (int i = 0; i < iterations; ++i) { - args.f[i] = args.rng[i].NextDouble(); + args.f[i] = args.rng.NextDouble(); } } @@ -835,17 +781,12 @@ public unsafe class Random_NextDouble2 public struct Arguments : IDisposable { - public Random* rng; + public Random rng; public double2* f; public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < iterations; ++i) - { - rng[i] = new Unity.Mathematics.Random(1); - } - + rng = new Random(1); f = (double2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -856,7 +797,6 @@ public void Init() public void Dispose() { - UnsafeUtility.Free(rng, Allocator.Persistent); UnsafeUtility.Free(f, Allocator.Persistent); } } @@ -865,7 +805,7 @@ public static void CommonTestFunction(ref Arguments args) { for (int i = 0; i < iterations; ++i) { - args.f[i] = args.rng[i].NextDouble2(); + args.f[i] = args.rng.NextDouble2(); } } @@ -925,17 +865,12 @@ public unsafe class Random_NextDouble3 public struct Arguments : IDisposable { - public Random* rng; + public Random rng; public double3* f; public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < iterations; ++i) - { - rng[i] = new Unity.Mathematics.Random(1); - } - + rng = new Random(1); f = (double3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -946,7 +881,6 @@ public void Init() public void Dispose() { - UnsafeUtility.Free(rng, Allocator.Persistent); UnsafeUtility.Free(f, Allocator.Persistent); } } @@ -955,7 +889,7 @@ public static void CommonTestFunction(ref Arguments args) { for (int i = 0; i < iterations; ++i) { - args.f[i] = args.rng[i].NextDouble3(); + args.f[i] = args.rng.NextDouble3(); } } @@ -1015,17 +949,12 @@ public unsafe class Random_NextDouble4 public struct Arguments : IDisposable { - public Random* rng; + public Random rng; public double4* f; public void Init() { - rng = (Random*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); - for (int i = 0; i < iterations; ++i) - { - rng[i] = new Unity.Mathematics.Random(1); - } - + rng = new Random(1); f = (double4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -1036,7 +965,6 @@ public void Init() public void Dispose() { - UnsafeUtility.Free(rng, Allocator.Persistent); UnsafeUtility.Free(f, Allocator.Persistent); } } @@ -1045,7 +973,7 @@ public static void CommonTestFunction(ref Arguments args) { for (int i = 0; i < iterations; ++i) { - args.f[i] = args.rng[i].NextDouble4(); + args.f[i] = args.rng.NextDouble4(); } } diff --git a/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs index e0324fce..81d0a164 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestRotation.gen.cs @@ -25,11 +25,13 @@ public unsafe class float4x4_EulerXYZ public struct Arguments : IDisposable { + public Random rng; public float3* v; public float4x4* m; public void Init() { + rng = new Random(1); v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -115,11 +117,13 @@ public unsafe class float3x3_EulerXYZ public struct Arguments : IDisposable { + public Random rng; public float3* v; public float3x3* m; public void Init() { + rng = new Random(1); v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -205,12 +209,14 @@ public unsafe class float4x4_AxisAngle public struct Arguments : IDisposable { + public Random rng; public float3* v; public float4x4* m; public float* angle; public void Init() { + rng = new Random(1); v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -303,12 +309,14 @@ public unsafe class float3x3_AxisAngle public struct Arguments : IDisposable { + public Random rng; public float3* v; public float3x3* m; public float* angle; public void Init() { + rng = new Random(1); v = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -401,12 +409,14 @@ public unsafe class float3x3_LookRotation public struct Arguments : IDisposable { + public Random rng; public float3* forward; public float3* up; public float3x3* m; public void Init() { + rng = new Random(1); forward = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -499,12 +509,14 @@ public unsafe class float3x3_LookRotationSafe public struct Arguments : IDisposable { + public Random rng; public float3* forward; public float3* up; public float3x3* m; public void Init() { + rng = new Random(1); forward = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -597,6 +609,7 @@ public unsafe class float4x4_LookAt public struct Arguments : IDisposable { + public Random rng; public float3* eye; public float3* target; public float3* up; @@ -604,6 +617,7 @@ public struct Arguments : IDisposable public void Init() { + rng = new Random(1); eye = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { diff --git a/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs index 2d0c0a55..03742fd4 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestShuffle.gen.cs @@ -25,12 +25,14 @@ public unsafe class float2_shuffle public struct Arguments : IDisposable { + public Random rng; public float2* v1; public float2* v2; public float2* result; public void Init() { + rng = new Random(1); v1 = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -123,12 +125,14 @@ public unsafe class float3_shuffle public struct Arguments : IDisposable { + public Random rng; public float3* v1; public float3* v2; public float3* result; public void Init() { + rng = new Random(1); v1 = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -221,12 +225,14 @@ public unsafe class float4_shuffle public struct Arguments : IDisposable { + public Random rng; public float4* v1; public float4* v2; public float4* result; public void Init() { + rng = new Random(1); v1 = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { diff --git a/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs index ff0d0c8a..53198cd8 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestTranspose.gen.cs @@ -25,10 +25,12 @@ public unsafe class transpose_float4x4 public struct Arguments : IDisposable { + public Random rng; public float4x4* m; public void Init() { + rng = new Random(1); m = (float4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -107,10 +109,12 @@ public unsafe class transpose_float3x3 public struct Arguments : IDisposable { + public Random rng; public float3x3* m; public void Init() { + rng = new Random(1); m = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -189,10 +193,12 @@ public unsafe class transpose_float2x2 public struct Arguments : IDisposable { + public Random rng; public float2x2* m; public void Init() { + rng = new Random(1); m = (float2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -271,10 +277,12 @@ public unsafe class transpose_double4x4 public struct Arguments : IDisposable { + public Random rng; public double4x4* m; public void Init() { + rng = new Random(1); m = (double4x4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -353,10 +361,12 @@ public unsafe class transpose_double3x3 public struct Arguments : IDisposable { + public Random rng; public double3x3* m; public void Init() { + rng = new Random(1); m = (double3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -435,10 +445,12 @@ public unsafe class transpose_double2x2 public struct Arguments : IDisposable { + public Random rng; public double2x2* m; public void Init() { + rng = new Random(1); m = (double2x2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { diff --git a/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs index 4f0ab126..ba2b8ab5 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestTrig.gen.cs @@ -25,11 +25,13 @@ public unsafe class float_sincos public struct Arguments : IDisposable { + public Random rng; public float* sin; public float* cos; public void Init() { + rng = new Random(1); sin = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -115,11 +117,13 @@ public unsafe class float2_sincos public struct Arguments : IDisposable { + public Random rng; public float2* sin; public float2* cos; public void Init() { + rng = new Random(1); sin = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -205,11 +209,13 @@ public unsafe class float3_sincos public struct Arguments : IDisposable { + public Random rng; public float3* sin; public float3* cos; public void Init() { + rng = new Random(1); sin = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { @@ -295,11 +301,13 @@ public unsafe class float4_sincos public struct Arguments : IDisposable { + public Random rng; public float4* sin; public float4* cos; public void Init() { + rng = new Random(1); sin = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); for (int i = 0; i < iterations; ++i) { diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index ad464d7d..6a165c0c 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -152,56 +152,97 @@ public enum ShuffleComponent : byte /// The uint bits to copy. /// The int with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int asint(uint x) { return (int)x; } + public static int asint(uint x) + { + unsafe + { + return *(int*)&x; + } + } /// Returns the bit pattern of a uint2 as an int2. /// The uint2 bits to copy. /// The int2 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 asint(uint2 x) { return int2((int)x.x, (int)x.y); } + public static int2 asint(uint2 x) + { + unsafe + { + return *(int2*)&x; + } + } /// Returns the bit pattern of a uint3 as an int3. /// The uint3 bits to copy. /// The int3 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 asint(uint3 x) { return int3((int)x.x, (int)x.y, (int)x.z); } + public static int3 asint(uint3 x) + { + unsafe + { + return *(int3*)&x; + } + } /// Returns the bit pattern of a uint4 as an int4. /// The uint4 bits to copy. /// The int4 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 asint(uint4 x) { return int4((int)x.x, (int)x.y, (int)x.z, (int)x.w); } - + public static int4 asint(uint4 x) + { + unsafe + { + return *(int4*)&x; + } + } /// Returns the bit pattern of a float as an int. /// The float bits to copy. /// The int with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int asint(float x) { - IntFloatUnion u; - u.intValue = 0; - u.floatValue = x; - return u.intValue; + public static int asint(float x) + { + unsafe + { + return *(int*)&x; + } } /// Returns the bit pattern of a float2 as an int2. /// The float2 bits to copy. /// The int2 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 asint(float2 x) { return int2(asint(x.x), asint(x.y)); } + public static int2 asint(float2 x) + { + unsafe + { + return *(int2*)&x; + } + } /// Returns the bit pattern of a float3 as an int3. /// The float3 bits to copy. /// The int3 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 asint(float3 x) { return int3(asint(x.x), asint(x.y), asint(x.z)); } + public static int3 asint(float3 x) + { + unsafe + { + return *(int3*)&x; + } + } /// Returns the bit pattern of a float4 as an int4. /// The float4 bits to copy. /// The int4 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 asint(float4 x) { return int4(asint(x.x), asint(x.y), asint(x.z), asint(x.w)); } - + public static int4 asint(float4 x) + { + unsafe + { + return *(int4*)&x; + } + } /// Returns the bit pattern of an int as a uint. /// The int bits to copy. @@ -213,45 +254,85 @@ public static int asint(float x) { /// The int2 bits to copy. /// The uint2 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 asuint(int2 x) { return uint2((uint)x.x, (uint)x.y); } + public static uint2 asuint(int2 x) + { + unsafe + { + return *(uint2*)&x; + } + } /// Returns the bit pattern of an int3 as a uint3. /// The int3 bits to copy. /// The uint3 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 asuint(int3 x) { return uint3((uint)x.x, (uint)x.y, (uint)x.z); } + public static uint3 asuint(int3 x) + { + unsafe + { + return *(uint3*)&x; + } + } /// Returns the bit pattern of an int4 as a uint4. /// The int4 bits to copy. /// The uint4 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 asuint(int4 x) { return uint4((uint)x.x, (uint)x.y, (uint)x.z, (uint)x.w); } - + public static uint4 asuint(int4 x) + { + unsafe + { + return *(uint4*)&x; + } + } /// Returns the bit pattern of a float as a uint. /// The float bits to copy. /// The uint with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint asuint(float x) { return (uint)asint(x); } + public static uint asuint(float x) + { + unsafe + { + return *(uint*)&x; + } + } /// Returns the bit pattern of a float2 as a uint2. /// The float2 bits to copy. /// The uint2 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 asuint(float2 x) { return uint2(asuint(x.x), asuint(x.y)); } + public static uint2 asuint(float2 x) + { + unsafe + { + return *(uint2*)&x; + } + } /// Returns the bit pattern of a float3 as a uint3. /// The float3 bits to copy. /// The uint3 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 asuint(float3 x) { return uint3(asuint(x.x), asuint(x.y), asuint(x.z)); } + public static uint3 asuint(float3 x) + { + unsafe + { + return *(uint3*)&x; + } + } /// Returns the bit pattern of a float4 as a uint4. /// The float4 bits to copy. /// The uint4 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 asuint(float4 x) { return uint4(asuint(x.x), asuint(x.y), asuint(x.z), asuint(x.w)); } - + public static uint4 asuint(float4 x) + { + unsafe + { + return *(uint4*)&x; + } + } /// Returns the bit pattern of a ulong as a long. /// The ulong bits to copy. @@ -265,13 +346,12 @@ public static int asint(float x) { [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long aslong(double x) { - LongDoubleUnion u; - u.longValue = 0; - u.doubleValue = x; - return u.longValue; + unsafe + { + return *(long*)&x; + } } - /// Returns the bit pattern of a long as a ulong. /// The long bits to copy. /// The ulong with the same bit pattern as the input. @@ -282,8 +362,13 @@ public static long aslong(double x) /// The double bits to copy. /// The ulong with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong asulong(double x) { return (ulong) aslong(x); } - + public static ulong asulong(double x) + { + unsafe + { + return *(ulong*)&x; + } + } /// Returns the bit pattern of an int as a float. /// The int bits to copy. @@ -291,55 +376,95 @@ public static long aslong(double x) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float asfloat(int x) { - IntFloatUnion u; - u.floatValue = 0; - u.intValue = x; - - return u.floatValue; + unsafe + { + return *(float*)&x; + } } /// Returns the bit pattern of an int2 as a float2. /// The int2 bits to copy. /// The float2 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 asfloat(int2 x) { return float2(asfloat(x.x), asfloat(x.y)); } + public static float2 asfloat(int2 x) + { + unsafe + { + return *(float2*)&x; + } + } /// Returns the bit pattern of an int3 as a float3. /// The int3 bits to copy. /// The float3 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 asfloat(int3 x) { return float3(asfloat(x.x), asfloat(x.y), asfloat(x.z)); } + public static float3 asfloat(int3 x) + { + unsafe + { + return *(float3*)&x; + } + } /// Returns the bit pattern of an int4 as a float4. /// The int4 bits to copy. /// The float4 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 asfloat(int4 x) { return float4(asfloat(x.x), asfloat(x.y), asfloat(x.z), asfloat(x.w)); } - + public static float4 asfloat(int4 x) + { + unsafe + { + return *(float4*)&x; + } + } /// Returns the bit pattern of a uint as a float. /// The uint bits to copy. /// The float with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float asfloat(uint x) { return asfloat((int)x); } + public static float asfloat(uint x) + { + unsafe + { + return *(float*)&x; + } + } /// Returns the bit pattern of a uint2 as a float2. /// The uint2 bits to copy. /// The float2 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 asfloat(uint2 x) { return float2(asfloat(x.x), asfloat(x.y)); } + public static float2 asfloat(uint2 x) + { + unsafe + { + return *(float2*)&x; + } + } /// Returns the bit pattern of a uint3 as a float3. /// The uint3 bits to copy. /// The float3 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 asfloat(uint3 x) { return float3(asfloat(x.x), asfloat(x.y), asfloat(x.z)); } + public static float3 asfloat(uint3 x) + { + unsafe + { + return *(float3*)&x; + } + } /// Returns the bit pattern of a uint4 as a float4. /// The uint4 bits to copy. /// The float4 with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 asfloat(uint4 x) { return float4(asfloat(x.x), asfloat(x.y), asfloat(x.z), asfloat(x.w)); } + public static float4 asfloat(uint4 x) + { + unsafe + { + return *(float4*)&x; + } + } /// /// Returns a bitmask representation of a bool4. Storing one 1 bit per component @@ -368,19 +493,23 @@ public static int bitmask(bool4 value) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double asdouble(long x) { - LongDoubleUnion u; - u.doubleValue = 0; - u.longValue = x; - return u.doubleValue; + unsafe + { + return *(double*)&x; + } } - /// Returns the bit pattern of a ulong as a double. /// The ulong bits to copy. /// The double with the same bit pattern as the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double asdouble(ulong x) { return asdouble((long)x); } - + public static double asdouble(ulong x) + { + unsafe + { + return *(double*)&x; + } + } /// Returns true if the input float is a finite floating point value, false otherwise. /// The float value to test. @@ -6647,15 +6776,6 @@ internal static double4 movehl(double4 a, double4 b) [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static uint4 fold_to_uint(double4 x) { return uint4(fold_to_uint(x.x), fold_to_uint(x.y), fold_to_uint(x.z), fold_to_uint(x.w)); } - [StructLayout(LayoutKind.Explicit)] - internal struct IntFloatUnion - { - [FieldOffset(0)] - public int intValue; - [FieldOffset(0)] - public float floatValue; - } - [StructLayout(LayoutKind.Explicit)] internal struct LongDoubleUnion { From 6ffb4b701ed991f6fe27aaf7d7ea3a5dafec14ab Mon Sep 17 00:00:00 2001 From: olivierd Date: Fri, 17 Dec 2021 17:53:25 -0500 Subject: [PATCH 355/437] Quaternion to Euler conversion functions (#201) DOTS-984, DOTS-2396 Co-authored-by: Dale Kim <3121968+unpacklo@users.noreply.github.com> Co-authored-by: Jo Petty <49957016+jo-unity@users.noreply.github.com> --- src/CHANGELOG.md | 10 +- src/Tests/Tests/Shared/TestMath.cs | 240 +++++++++ src/Tests/Tests/Shared/TestQuaternion.cs | 38 +- .../VectorGenerator.cs | 35 ++ .../TestMath.gen.cs | 500 ++++++++++++++++++ src/Unity.Mathematics/math.cs | 310 +++++++++++ src/Unity.Mathematics/quaternion.cs | 19 +- 7 files changed, 1141 insertions(+), 11 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index b86d2ff8..9ca6b8dd 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -2,11 +2,15 @@ ## [Unreleased] ### Added -* Added `math.square()` to compute the square (x * x). -* Added `math.orthonormal_basis()` to compute an orthonormal basis from a single unit length vector. -* Added `math.sign(x)` for int, int2, int3 and int4. +* Added `math.square` to compute the square (x * x). +* Added `math.orthonormal_basis` to compute an orthonormal basis from a single unit length vector. +* Added `math.sign` for int, int2, int3 and int4. +* Added `math.chgsign` for float, float2, float3, and float4. +* Added `math.Euler` to convert a quaternion to Euler angles. +* Added `math.angle` to compute the angle between two unit quaternions. ### Changed * `asfloat(uint)`, `asuint(float)`, `asint(float)` and other related methods are now faster in mono without Burst. Other methods which use these will see a performance improvement. +* Modified `quaternion.nlerp` to be branchless. ### Deprecated ### Removed ### Fixed diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index ffe458f6..ee655b8a 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -3838,5 +3838,245 @@ public static void orthonormal_basis_double() TestUtils.IsTrue(OrthonormalBasisSquaredError(v1, v2, v3) < kOrthonormalBasisSqErrorTolerance); } } + + [TestCompiler] + public static void chgsign_float() + { + float c = chgsign(1f, -1f); + TestUtils.AreEqual(-1f, c); + + c = chgsign(1f, 1f); + TestUtils.AreEqual(1f, c); + + c = chgsign(-1f, -1f); + TestUtils.AreEqual(1f, c); + + c = chgsign(-1f, 1f); + TestUtils.AreEqual(-1f, c); + + c = chgsign(-1f, 0f); + TestUtils.AreEqual(-1f, c); + + c = chgsign(-1f, -0f); + TestUtils.AreEqual(1f, c); + + c = chgsign(1f, TestUtils.SignedFloatQNaN()); + TestUtils.AreEqual(-1f, c); + + c = chgsign(-1f, TestUtils.SignedFloatQNaN()); + TestUtils.AreEqual(1f, c); + + c = chgsign(1f, TestUtils.UnsignedFloatQNaN()); + TestUtils.AreEqual(1f, c); + + c = chgsign(-1f, TestUtils.UnsignedFloatQNaN()); + TestUtils.AreEqual(-1f, c); + + c = chgsign(1f, INFINITY); + TestUtils.AreEqual(1f, c); + + c = chgsign(-1f, INFINITY); + TestUtils.AreEqual(-1f, c); + + c = chgsign(1f, -INFINITY); + TestUtils.AreEqual(-1f, c); + + c = chgsign(-1f, -INFINITY); + TestUtils.AreEqual(1f, c); + + c = chgsign(TestUtils.UnsignedFloatQNaN(), 1f); + TestUtils.IsTrue(isnan(c)); + TestUtils.AreEqual(asuint(TestUtils.UnsignedFloatQNaN()), asuint(c)); + + c = chgsign(TestUtils.UnsignedFloatQNaN(), -1f); + TestUtils.IsTrue(isnan(c)); + TestUtils.AreEqual(asuint(TestUtils.SignedFloatQNaN()), asuint(c)); + + c = chgsign(0f, 1f); + TestUtils.AreEqual(0f, c); + TestUtils.AreEqual(0u, asuint(c)); + + c = chgsign(0f, -1f); + TestUtils.AreEqual(0f, c); + TestUtils.AreEqual(asuint(TestUtils.SignedFloatZero()), asuint(c)); + } + + [TestCompiler] + public static void chgsign_float2() + { + float2 c = chgsign(float2(1f, -2f), float2(-1f, 23.548f)); + TestUtils.AreEqual(float2(-1f, -2f), c); + + c = chgsign(float2(-1f), float2(-1f, 1f)); + TestUtils.AreEqual(float2(1f, -1f), c); + + c = chgsign(float2(-1f), float2(1f, -1f)); + TestUtils.AreEqual(float2(-1f, 1f), c); + + c = chgsign(float2(-1f), float2(TestUtils.SignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())); + TestUtils.AreEqual(float2(1f, -1f), c); + + c = chgsign(float2(-1f), float2(TestUtils.UnsignedFloatQNaN(), TestUtils.SignedFloatQNaN())); + TestUtils.AreEqual(float2(-1f, 1f), c); + + c = chgsign(float2(TestUtils.SignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()), float2(-1f, 1f)); + TestUtils.IsTrue(all(isnan(c))); + TestUtils.AreEqual(asuint(float2(TestUtils.UnsignedFloatQNaN())), asuint(c)); + + c = chgsign(float2(TestUtils.SignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()), float2(1f, -1f)); + TestUtils.IsTrue(all(isnan(c))); + TestUtils.AreEqual(asuint(float2(TestUtils.SignedFloatQNaN())), asuint(c)); + + c = chgsign(float2(TestUtils.SignedFloatZero(), 0f), float2(TestUtils.SignedFloatZero(), 0f)); + TestUtils.AreEqual(float2.zero, c); + TestUtils.AreEqual(uint2.zero, asuint(c)); + + c = chgsign(float2(TestUtils.SignedFloatZero(), 0f), float2(0f, TestUtils.SignedFloatZero())); + TestUtils.AreEqual(float2.zero, c); + TestUtils.AreEqual(asuint(math.float2(TestUtils.SignedFloatZero())), asuint(c)); + } + + [TestCompiler] + public static void chgsign_float3() + { + float3 c = chgsign(float3(1f, -2f, 3f), float3(-1f, 23.548f, -0f)); + TestUtils.AreEqual(float3(-1f, -2f, -3f), c); + + c = chgsign(float3(-1f), float3(-1f, 1f, -1f)); + TestUtils.AreEqual(float3(1f, -1f, 1f), c); + + c = chgsign(float3(-1f), float3(1f, -1f, 1f)); + TestUtils.AreEqual(float3(-1f, 1f, -1f), c); + + c = chgsign(float3(-1f), float3(TestUtils.SignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.SignedFloatQNaN())); + TestUtils.AreEqual(float3(1f, -1f, 1f), c); + + c = chgsign(float3(-1f), float3(TestUtils.UnsignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())); + TestUtils.AreEqual(float3(-1f, 1f, -1f), c); + + c = chgsign(float3(TestUtils.SignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float3(-1f, 1f, -1f)); + TestUtils.IsTrue(all(isnan(c))); + TestUtils.AreEqual(asuint(float3(TestUtils.UnsignedFloatQNaN())), asuint(c)); + + c = chgsign(float3(TestUtils.SignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float3(1f, -1f, 1f)); + TestUtils.IsTrue(all(isnan(c))); + TestUtils.AreEqual(asuint(float3(TestUtils.SignedFloatQNaN())), asuint(c)); + + c = chgsign(float3(TestUtils.SignedFloatZero(), 0f, TestUtils.SignedFloatZero()), float3(TestUtils.SignedFloatZero(), 0f, TestUtils.SignedFloatZero())); + TestUtils.AreEqual(float3.zero, c); + TestUtils.AreEqual(uint3.zero, asuint(c)); + + c = chgsign(float3(TestUtils.SignedFloatZero(), 0f, TestUtils.SignedFloatZero()), float3(0f, TestUtils.SignedFloatZero(), 0f)); + TestUtils.AreEqual(float3.zero, c); + TestUtils.AreEqual(asuint(math.float3(TestUtils.SignedFloatZero())), asuint(c)); + } + + [TestCompiler] + public static void chgsign_float4() + { + float4 c = chgsign(float4(1f, 2f, 3f, -4f), float4(-1f, 0f, -0f, -23.56f)); + TestUtils.AreEqual(float4(-1f, 2f, -3f, 4f), c); + + c = chgsign(float4(-1f), float4(-1f, 1f, -1f, 1f)); + TestUtils.AreEqual(float4(1f, -1f, 1f, -1f), c); + + c = chgsign(float4(-1f), float4(1f, -1f, 1f, -1f)); + TestUtils.AreEqual(float4(-1f, 1f, -1f, 1f), c); + + c = chgsign(float4(-1f), float4(TestUtils.SignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())); + TestUtils.AreEqual(float4(1f, -1f, 1f, -1f), c); + + c = chgsign(float4(-1f), float4(TestUtils.UnsignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.SignedFloatQNaN())); + TestUtils.AreEqual(float4(-1f, 1f, -1f, 1f), c); + + c = chgsign(float4(TestUtils.SignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()), float4(-1f, 1f, -1f, 1f)); + TestUtils.IsTrue(all(isnan(c))); + TestUtils.AreEqual(asuint(float4(TestUtils.UnsignedFloatQNaN())), asuint(c)); + + c = chgsign(float4(TestUtils.SignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()), float4(1f, -1f, 1f, -1f)); + TestUtils.IsTrue(all(isnan(c))); + TestUtils.AreEqual(asuint(float4(TestUtils.SignedFloatQNaN())), asuint(c)); + + c = chgsign(float4(TestUtils.SignedFloatZero(), 0f, TestUtils.SignedFloatZero(), 0f), float4(TestUtils.SignedFloatZero(), 0f, TestUtils.SignedFloatZero(), 0f)); + TestUtils.AreEqual(float4.zero, c); + TestUtils.AreEqual(uint4.zero, asuint(c)); + + c = chgsign(float4(TestUtils.SignedFloatZero(), 0f, TestUtils.SignedFloatZero(), 0f), float4(0f, TestUtils.SignedFloatZero(), 0f, TestUtils.SignedFloatZero())); + TestUtils.AreEqual(float4.zero, c); + TestUtils.AreEqual(asuint(math.float4(TestUtils.SignedFloatZero())), asuint(c)); + } + + [TestCompiler] + public static unsafe void quaternion_to_euler() + { + const float epsilon = 0.0045f; + const float PI_div_6 = PI / 6f; + const int testAngleCount = 13 * 13 * 13 * 20; + + float3* testAngles = stackalloc float3[testAngleCount]; + + int idx = 0; + for (int i = 0; i < 13; ++i) + { + float x = -PI + i * PI; + for (int j = 0; j < 13; ++j) + { + float y = -PI + j * PI_div_6; + for (int k = 0; k < 13; ++k) + { + float z = -PI + k * PI_div_6; + for (int l = 0; l < 20; ++l) + { + testAngles[idx++] = float3(x, y, z) * (0.99f + l * 0.001f); + } + } + } + } + + for (int order = 0; order < 6; ++order) + { + for (int i = 0; i < testAngleCount; ++i) + { + // We cannot directly compare Euler angles, as different angles may represent the same rotation, + // so we have to transform them back to quats to test. + // We also need to create our initial test quaternion, as what we generated was euler angles. + quaternion expected = TestRefEulerToQuat(testAngles[i], math.RotationOrder.Default); + + float3 actualEulers = Euler(expected, (math.RotationOrder)order); + quaternion actualQuat = TestRefEulerToQuat(actualEulers, (math.RotationOrder)order); + + float error = angle(expected, actualQuat); + TestUtils.AreEqual(0f, error, epsilon); + } + } + } + + static quaternion TestRefEulerToQuat(float3 angle, math.RotationOrder order) + { + float3 halfRot = angle * 0.5f; + sincos(halfRot, out float3 s, out float3 c); + + quaternion qX = quaternion(s.x, 0f, 0f, c.x); + quaternion qY = quaternion(0f, s.y, 0f, c.y); + quaternion qZ = quaternion(0f, 0f, s.z, c.z); + + switch (order) + { + case math.RotationOrder.XYZ: + return mul(mul(qZ, qY), qX); + case math.RotationOrder.XZY: + return mul(mul(qY, qZ), qX); + case math.RotationOrder.YXZ: + return mul(mul(qZ, qX), qY); + case math.RotationOrder.YZX: + return mul(mul(qX, qZ), qY); + case math.RotationOrder.ZXY: + return mul(mul(qY, qX), qZ); + case math.RotationOrder.ZYX: + return mul(mul(qX, qY), qZ); + default: + return quaternion(float4(1f)); + } + } } } diff --git a/src/Tests/Tests/Shared/TestQuaternion.cs b/src/Tests/Tests/Shared/TestQuaternion.cs index 9bd5ebf6..5f531b0e 100644 --- a/src/Tests/Tests/Shared/TestQuaternion.cs +++ b/src/Tests/Tests/Shared/TestQuaternion.cs @@ -89,7 +89,7 @@ public static void quaternion_axis_angle_consistency() } [TestCompiler] - public static void quaternion_euler() + public static void euler_to_quaternion() { float3 test_angles = TestMatrix.test_angles; quaternion q0 = quaternion.Euler(test_angles); @@ -344,5 +344,41 @@ public static void quaternion_EqualsObjectOverride() TestUtils.IsFalse(new quaternion().Equals((object) new int())); TestUtils.IsTrue(new quaternion().Equals((object) new quaternion())); } + + [TestCase] + public static void quaternion_angle() + { + // Test variations of angles + for (int i = 0; i < 18; ++i) + { + for (int j = 0; j < 18; ++j) + { + float angle1 = radians(i * 10f); + float angle2 = radians(j * 10f); + + quaternion q1 = quaternion.Euler(0f, angle1, 0f); + quaternion q2 = quaternion.Euler(0f, angle2, 0f); + TestUtils.AreEqual(abs(angle2 - angle1), math.angle(q1, q2), 1e-5f); + } + } + + quaternion q = quaternion.identity; + float angle = math.angle(q, q); + TestUtils.AreEqual(0f, angle); + + quaternion nq = -q.value; + angle = math.angle(q, nq); + TestUtils.AreEqual(0f, angle); + + // Nearly normalized quaternion to self is zero + q = new quaternion(0.6244676f, -0.7761726f, -0.06790633f, -0.05463386f); // dot(q, q) = 0.999999816753 + angle = math.angle(q, q); + TestUtils.AreEqual(0f, angle); + + // Nearly normalized quaternion to negative self is zero + nq = -q.value; // dot(q, nq) = -0.999999816753 + angle = math.angle(q, nq); + TestUtils.AreEqual(0f, angle); + } } } diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index 1a696c16..87f7fbb0 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -3859,6 +3859,41 @@ public void GenerateMathPerformanceTests(StringBuilder str) new PerformanceTestArrayArgument { m_ElementType = "uint4", m_MemberName = "v", m_ElementInitializer = "rng.NextUInt4()" }, }, "args.result[i] = math.asint(args.v[i]);", 400000); + GeneratePerformanceTest(str, "chgsign_float", new PerformanceTestArrayArgument[] + { + new PerformanceTestArrayArgument { m_ElementType = "float", m_MemberName = "f", m_ElementInitializer = "1.0f" }, + new PerformanceTestArrayArgument { m_ElementType = "float", m_MemberName = "sign", m_ElementInitializer = "rng.NextFloat(-1.0f, 1.0f)" }, + new PerformanceTestArrayArgument { m_ElementType = "float", m_MemberName = "result", m_ElementInitializer = "0.0f" }, + }, "args.result[i] = math.chgsign(args.f[i], args.sign[i]);", 100000); + + GeneratePerformanceTest(str, "chgsign_float2", new PerformanceTestArrayArgument[] + { + new PerformanceTestArrayArgument { m_ElementType = "float2", m_MemberName = "f", m_ElementInitializer = "new float2(1.0f)" }, + new PerformanceTestArrayArgument { m_ElementType = "float2", m_MemberName = "sign", m_ElementInitializer = "rng.NextFloat2(-1.0f, 1.0f)" }, + new PerformanceTestArrayArgument { m_ElementType = "float2", m_MemberName = "result", m_ElementInitializer = "new float2()" }, + }, "args.result[i] = math.chgsign(args.f[i], args.sign[i]);", 100000); + + GeneratePerformanceTest(str, "chgsign_float3", new PerformanceTestArrayArgument[] + { + new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "f", m_ElementInitializer = "new float3(1.0f)" }, + new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "sign", m_ElementInitializer = "rng.NextFloat3(-1.0f, 1.0f)" }, + new PerformanceTestArrayArgument { m_ElementType = "float3", m_MemberName = "result", m_ElementInitializer = "new float3()" }, + }, "args.result[i] = math.chgsign(args.f[i], args.sign[i]);", 100000); + + GeneratePerformanceTest(str, "chgsign_float4", new PerformanceTestArrayArgument[] + { + new PerformanceTestArrayArgument { m_ElementType = "float4", m_MemberName = "f", m_ElementInitializer = "new float4(1.0f)" }, + new PerformanceTestArrayArgument { m_ElementType = "float4", m_MemberName = "sign", m_ElementInitializer = "rng.NextFloat4(-1.0f, 1.0f)" }, + new PerformanceTestArrayArgument { m_ElementType = "float4", m_MemberName = "result", m_ElementInitializer = "new float4()" }, + }, "args.result[i] = math.chgsign(args.f[i], args.sign[i]);", 100000); + + GeneratePerformanceTest(str, "angle_quaternion_quaternion", new PerformanceTestArrayArgument[] + { + new PerformanceTestArrayArgument { m_ElementType = "quaternion", m_MemberName = "q1", m_ElementInitializer = "rng.NextQuaternionRotation()" }, + new PerformanceTestArrayArgument { m_ElementType = "quaternion", m_MemberName = "q2", m_ElementInitializer = "rng.NextQuaternionRotation()" }, + new PerformanceTestArrayArgument { m_ElementType = "float", m_MemberName = "result", m_ElementInitializer = "new float()" }, + }, "args.result[i] = math.angle(args.q1[i], args.q2[i]);", 10000); + EndPerformanceTestCodeGen(str); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs index d6ad87f5..dfab18d9 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestMath.gen.cs @@ -2784,6 +2784,506 @@ public void asint_uint4_burst() var args = new asint_uint4.Arguments(); args.Init(); + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class chgsign_float + { + public const int iterations = 100000; + + public struct Arguments : IDisposable + { + public Random rng; + public float* f; + public float* sign; + public float* result; + + public void Init() + { + rng = new Random(1); + f = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + f[i] = 1.0f; + } + + sign = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + sign[i] = rng.NextFloat(-1.0f, 1.0f); + } + + result = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = 0.0f; + } + + } + + public void Dispose() + { + UnsafeUtility.Free(f, Allocator.Persistent); + UnsafeUtility.Free(sign, Allocator.Persistent); + UnsafeUtility.Free(result, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.chgsign(args.f[i], args.sign[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void chgsign_float_mono() + { + chgsign_float.TestFunction testFunction = chgsign_float.MonoTestFunction; + var args = new chgsign_float.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void chgsign_float_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(chgsign_float.BurstTestFunction); + var args = new chgsign_float.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class chgsign_float2 + { + public const int iterations = 100000; + + public struct Arguments : IDisposable + { + public Random rng; + public float2* f; + public float2* sign; + public float2* result; + + public void Init() + { + rng = new Random(1); + f = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + f[i] = new float2(1.0f); + } + + sign = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + sign[i] = rng.NextFloat2(-1.0f, 1.0f); + } + + result = (float2*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new float2(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(f, Allocator.Persistent); + UnsafeUtility.Free(sign, Allocator.Persistent); + UnsafeUtility.Free(result, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.chgsign(args.f[i], args.sign[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void chgsign_float2_mono() + { + chgsign_float2.TestFunction testFunction = chgsign_float2.MonoTestFunction; + var args = new chgsign_float2.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void chgsign_float2_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(chgsign_float2.BurstTestFunction); + var args = new chgsign_float2.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class chgsign_float3 + { + public const int iterations = 100000; + + public struct Arguments : IDisposable + { + public Random rng; + public float3* f; + public float3* sign; + public float3* result; + + public void Init() + { + rng = new Random(1); + f = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + f[i] = new float3(1.0f); + } + + sign = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + sign[i] = rng.NextFloat3(-1.0f, 1.0f); + } + + result = (float3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new float3(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(f, Allocator.Persistent); + UnsafeUtility.Free(sign, Allocator.Persistent); + UnsafeUtility.Free(result, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.chgsign(args.f[i], args.sign[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void chgsign_float3_mono() + { + chgsign_float3.TestFunction testFunction = chgsign_float3.MonoTestFunction; + var args = new chgsign_float3.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void chgsign_float3_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(chgsign_float3.BurstTestFunction); + var args = new chgsign_float3.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class chgsign_float4 + { + public const int iterations = 100000; + + public struct Arguments : IDisposable + { + public Random rng; + public float4* f; + public float4* sign; + public float4* result; + + public void Init() + { + rng = new Random(1); + f = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + f[i] = new float4(1.0f); + } + + sign = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + sign[i] = rng.NextFloat4(-1.0f, 1.0f); + } + + result = (float4*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new float4(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(f, Allocator.Persistent); + UnsafeUtility.Free(sign, Allocator.Persistent); + UnsafeUtility.Free(result, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.chgsign(args.f[i], args.sign[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void chgsign_float4_mono() + { + chgsign_float4.TestFunction testFunction = chgsign_float4.MonoTestFunction; + var args = new chgsign_float4.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void chgsign_float4_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(chgsign_float4.BurstTestFunction); + var args = new chgsign_float4.Arguments(); + args.Init(); + + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class angle_quaternion_quaternion + { + public const int iterations = 10000; + + public struct Arguments : IDisposable + { + public Random rng; + public quaternion* q1; + public quaternion* q2; + public float* result; + + public void Init() + { + rng = new Random(1); + q1 = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + q1[i] = rng.NextQuaternionRotation(); + } + + q2 = (quaternion*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + q2[i] = rng.NextQuaternionRotation(); + } + + result = (float*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + result[i] = new float(); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(q1, Allocator.Persistent); + UnsafeUtility.Free(q2, Allocator.Persistent); + UnsafeUtility.Free(result, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.result[i] = math.angle(args.q1[i], args.q2[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void angle_quaternion_quaternion_mono() + { + angle_quaternion_quaternion.TestFunction testFunction = angle_quaternion_quaternion.MonoTestFunction; + var args = new angle_quaternion_quaternion.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void angle_quaternion_quaternion_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(angle_quaternion_quaternion.BurstTestFunction); + var args = new angle_quaternion_quaternion.Arguments(); + args.Init(); + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 6a165c0c..016cc971 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -6600,6 +6600,46 @@ public static void orthonormal_basis(double3 normal, out double3 basis1, out dou basis2.z = -normal.y; } + /// Change the sign of x based on the most significant bit of y [msb(y) ? -x : x]. + /// The single precision float to change the sign. + /// The single precision float used to test the most significant bit. + /// Returns x with changed sign based on y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float chgsign(float x, float y) + { + return asfloat(asuint(x) ^ (asuint(y) & 0x80000000)); + } + + /// Change the sign of components of x based on the most significant bit of components of y [msb(y) ? -x : x]. + /// The single precision float vector to change the sign. + /// The single precision float vector used to test the most significant bit. + /// Returns vector x with changed sign based on vector y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float2 chgsign(float2 x, float2 y) + { + return asfloat(asuint(x) ^ (asuint(y) & 0x80000000)); + } + + /// Change the sign of components of x based on the most significant bit of components of y [msb(y) ? -x : x]. + /// The single precision float vector to change the sign. + /// The single precision float vector used to test the most significant bit. + /// Returns vector x with changed sign based on vector y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 chgsign(float3 x, float3 y) + { + return asfloat(asuint(x) ^ (asuint(y) & 0x80000000)); + } + + /// Change the sign of components of x based on the most significant bit of components of y [msb(y) ? -x : x]. + /// The single precision float vector to change the sign. + /// The single precision float vector used to test the most significant bit. + /// Returns vector x with changed sign based on vector y. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4 chgsign(float4 x, float4 y) + { + return asfloat(asuint(x) ^ (asuint(y) & 0x80000000)); + } + /// Returns a uint hash from a block of memory using the xxhash32 algorithm. Can only be used in an unsafe context. /// A pointer to the beginning of the data. /// Number of bytes to hash. @@ -6706,6 +6746,276 @@ public static unsafe uint hash(void* pBuffer, int numBytes, uint seed = 0) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 right() { return new float3(1.0f, 0.0f, 0.0f); } + /// + /// Returns the Euler angle representation of the quaternion following the XYZ rotation order. + /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. + /// + /// The quaternion to convert to Euler angles. + /// The Euler angle representation of the quaternion in XYZ order. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 EulerXYZ(quaternion q) + { + const float epsilon = 1e-6f; + const float cutoff = (1f - 2f * epsilon) * (1f - 2f * epsilon); + + // prepare the data + var qv = q.value; + var d1 = qv * qv.wwww * float4(2f); //xw, yw, zw, ww + var d2 = qv * qv.yzxw * float4(2f); //xy, yz, zx, ww + var d3 = qv * qv; + var euler = Unity.Mathematics.float3.zero; + + var y1 = d2.z - d1.y; + if (y1 * y1 < cutoff) + { + var x1 = d2.y + d1.x; + var x2 = d3.z + d3.w - d3.y - d3.x; + var z1 = d2.x + d1.z; + var z2 = d3.x + d3.w - d3.y - d3.z; + euler = float3(atan2(x1, x2), -asin(y1), atan2(z1, z2)); + } + else //xzx + { + y1 = clamp(y1, -1f, 1f); + var abcd = float4(d2.z, d1.y, d2.x, d1.z); + var x1 = 2f * (abcd.x * abcd.w + abcd.y * abcd.z); //2(ad+bc) + var x2 = csum(abcd * abcd * float4(-1f, 1f, -1f, 1f)); + euler = float3(atan2(x1, x2), -asin(y1), 0f); + } + + return euler; + } + + /// + /// Returns the Euler angle representation of the quaternion following the XZY rotation order. + /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. + /// + /// The quaternion to convert to Euler angles. + /// The Euler angle representation of the quaternion in XZY order. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 EulerXZY(quaternion q) + { + const float epsilon = 1e-6f; + const float cutoff = (1f - 2f * epsilon) * (1f - 2f * epsilon); + + // prepare the data + var qv = q.value; + var d1 = qv * qv.wwww * float4(2f); //xw, yw, zw, ww + var d2 = qv * qv.yzxw * float4(2f); //xy, yz, zx, ww + var d3 = qv * qv; + var euler = Unity.Mathematics.float3.zero; + + var y1 = d2.x + d1.z; + if (y1 * y1 < cutoff) + { + var x1 = -d2.y + d1.x; + var x2 = d3.y + d3.w - d3.z - d3.x; + var z1 = -d2.z + d1.y; + var z2 = d3.x + d3.w - d3.y - d3.z; + euler = float3(atan2(x1, x2), asin(y1), atan2(z1, z2)); + } + else //xyx + { + y1 = clamp(y1, -1f, 1f); + var abcd = float4(d2.x, d1.z, d2.z, d1.y); + var x1 = 2f * (abcd.x * abcd.w + abcd.y * abcd.z); //2(ad+bc) + var x2 = csum(abcd * abcd * float4(-1f, 1f, -1f, 1f)); + euler = float3(atan2(x1, x2), asin(y1), 0f); + } + + return euler.xzy; + } + + /// + /// Returns the Euler angle representation of the quaternion following the YXZ rotation order. + /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. + /// + /// The quaternion to convert to Euler angles. + /// The Euler angle representation of the quaternion in YXZ order. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 EulerYXZ(quaternion q) + { + const float epsilon = 1e-6f; + const float cutoff = (1f - 2f * epsilon) * (1f - 2f * epsilon); + + // prepare the data + var qv = q.value; + var d1 = qv * qv.wwww * float4(2f); //xw, yw, zw, ww + var d2 = qv * qv.yzxw * float4(2f); //xy, yz, zx, ww + var d3 = qv * qv; + var euler = Unity.Mathematics.float3.zero; + + var y1 = d2.y + d1.x; + if (y1 * y1 < cutoff) + { + var x1 = -d2.z + d1.y; + var x2 = d3.z + d3.w - d3.x - d3.y; + var z1 = -d2.x + d1.z; + var z2 = d3.y + d3.w - d3.z - d3.x; + euler = float3(atan2(x1, x2), asin(y1), atan2(z1, z2)); + } + else //yzy + { + y1 = clamp(y1, -1f, 1f); + var abcd = float4(d2.x, d1.z, d2.y, d1.x); + var x1 = 2f * (abcd.x * abcd.w + abcd.y * abcd.z); //2(ad+bc) + var x2 = csum(abcd * abcd * float4(-1f, 1f, -1f, 1f)); + euler = float3(atan2(x1, x2), asin(y1), 0f); + } + + return euler.yxz; + } + + /// + /// Returns the Euler angle representation of the quaternion following the YZX rotation order. + /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. + /// + /// The quaternion to convert to Euler angles. + /// The Euler angle representation of the quaternion in YZX order. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 EulerYZX(quaternion q) + { + const float epsilon = 1e-6f; + const float cutoff = (1f - 2f * epsilon) * (1f - 2f * epsilon); + + // prepare the data + var qv = q.value; + var d1 = qv * qv.wwww * float4(2f); //xw, yw, zw, ww + var d2 = qv * qv.yzxw * float4(2f); //xy, yz, zx, ww + var d3 = qv * qv; + var euler = Unity.Mathematics.float3.zero; + + var y1 = d2.x - d1.z; + if (y1 * y1 < cutoff) + { + var x1 = d2.z + d1.y; + var x2 = d3.x + d3.w - d3.z - d3.y; + var z1 = d2.y + d1.x; + var z2 = d3.y + d3.w - d3.x - d3.z; + euler = float3(atan2(x1, x2), -asin(y1), atan2(z1, z2)); + } + else //yxy + { + y1 = clamp(y1, -1f, 1f); + var abcd = float4(d2.x, d1.z, d2.y, d1.x); + var x1 = 2f * (abcd.x * abcd.w + abcd.y * abcd.z); //2(ad+bc) + var x2 = csum(abcd * abcd * float4(-1f, 1f, -1f, 1f)); + euler = float3(atan2(x1, x2), -asin(y1), 0f); + } + + return euler.zxy; + } + + /// + /// Returns the Euler angle representation of the quaternion following the ZXY rotation order. + /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. + /// + /// The quaternion to convert to Euler angles. + /// The Euler angle representation of the quaternion in ZXY order. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 EulerZXY(quaternion q) + { + const float epsilon = 1e-6f; + const float cutoff = (1f - 2f * epsilon) * (1f - 2f * epsilon); + + // prepare the data + var qv = q.value; + var d1 = qv * qv.wwww * float4(2f); //xw, yw, zw, ww + var d2 = qv * qv.yzxw * float4(2f); //xy, yz, zx, ww + var d3 = qv * qv; + var euler = Unity.Mathematics.float3.zero; + + var y1 = d2.y - d1.x; + if (y1 * y1 < cutoff) + { + var x1 = d2.x + d1.z; + var x2 = d3.y + d3.w - d3.x - d3.z; + var z1 = d2.z + d1.y; + var z2 = d3.z + d3.w - d3.x - d3.y; + euler = float3(atan2(x1, x2), -asin(y1), atan2(z1, z2)); + } + else //zxz + { + y1 = clamp(y1, -1f, 1f); + var abcd = float4(d2.z, d1.y, d2.y, d1.x); + var x1 = 2f * (abcd.x * abcd.w + abcd.y * abcd.z); //2(ad+bc) + var x2 = csum(abcd * abcd * float4(-1f, 1f, -1f, 1f)); + euler = float3(atan2(x1, x2), -asin(y1), 0f); + } + + return euler.yzx; + } + + /// + /// Returns the Euler angle representation of the quaternion following the ZYX rotation order. + /// All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. + /// + /// The quaternion to convert to Euler angles. + /// The Euler angle representation of the quaternion in ZYX order. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 EulerZYX(quaternion q) + { + const float epsilon = 1e-6f; + const float cutoff = (1f - 2f * epsilon) * (1f - 2f * epsilon); + + var qv = q.value; + var d1 = qv * qv.wwww * float4(2f); //xw, yw, zw, ww + var d2 = qv * qv.yzxw * float4(2f); //xy, yz, zx, ww + var d3 = qv * qv; + var euler = Unity.Mathematics.float3.zero; + + var y1 = d2.z + d1.y; + if (y1 * y1 < cutoff) + { + var x1 = -d2.x + d1.z; + var x2 = d3.x + d3.w - d3.y - d3.z; + var z1 = -d2.y + d1.x; + var z2 = d3.z + d3.w - d3.y - d3.x; + euler = float3(atan2(x1, x2), asin(y1), atan2(z1, z2)); + } + else //zxz + { + y1 = clamp(y1, -1f, 1f); + var abcd = float4(d2.z, d1.y, d2.y, d1.x); + var x1 = 2f * (abcd.x * abcd.w + abcd.y * abcd.z); //2(ad+bc) + var x2 = csum(abcd * abcd * float4(-1f, 1f, -1f, 1f)); + euler = float3(atan2(x1, x2), asin(y1), 0f); + } + + return euler.zyx; + } + + /// + /// Returns the Euler angle representation of the quaternion. The returned angles depend on the specified order to apply the + /// three rotations around the principal axes. All rotation angles are in radians and clockwise when looking along the + /// rotation axis towards the origin. + /// When the rotation order is known at compile time, to get the best performance you should use the specific + /// Euler rotation constructors such as EulerZXY(...). + /// + /// The quaternion to convert to Euler angles. + /// The order in which the rotations are applied. + /// The Euler angle representation of the quaternion in the specified order. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 Euler(quaternion q, math.RotationOrder order = math.RotationOrder.Default) + { + switch (order) + { + case math.RotationOrder.XYZ: + return EulerXYZ(q); + case math.RotationOrder.XZY: + return EulerXZY(q); + case math.RotationOrder.YXZ: + return EulerYXZ(q); + case math.RotationOrder.YZX: + return EulerYZX(q); + case math.RotationOrder.ZXY: + return EulerZXY(q); + case math.RotationOrder.ZYX: + return EulerZYX(q); + default: + return Unity.Mathematics.float3.zero; + } + } // Internal diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index ae7b0601..3c09d991 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -666,13 +666,7 @@ public static float3 rotate(quaternion q, float3 v) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion nlerp(quaternion q1, quaternion q2, float t) { - float dt = dot(q1, q2); - if(dt < 0.0f) - { - q2.value = -q2.value; - } - - return normalize(quaternion(lerp(q1.value, q2.value, t))); + return normalize(q1.value + t * (chgsign(q2.value, dot(q1, q2)) - q1.value)); } /// Returns the result of a spherical interpolation between two quaternions q1 and a2 using an interpolation parameter t. @@ -705,6 +699,17 @@ public static quaternion slerp(quaternion q1, quaternion q2, float t) } } + /// Returns the angle in radians between two unit quaternions. + /// The first quaternion. + /// The second quaternion. + /// The angle between two unit quaternions. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float angle(quaternion q1, quaternion q2) + { + float diff = asin(length(normalize(mul(conjugate(q1), q2)).value.xyz)); + return diff + diff; + } + /// Returns a uint hash code of a quaternion. /// The quaternion to hash. /// The hash code for the input quaternion. From 207633bee8306d2da1540ea81b6415f8f83bc0ed Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Thu, 6 Jan 2022 15:41:22 -0800 Subject: [PATCH 356/437] Copy over SVD implementation from Unity.Animation. Tests pass in Rider, but it's likely that it's broken for Burst. Must check. --- src/Tests/Tests/Shared/TestSvd.cs | 210 ++++++++++++++++++ src/Tests/Unity.Mathematics.Tests.csproj | 2 + .../Unity.Mathematics.csproj | 1 + src/Unity.Mathematics/svd.cs | 187 ++++++++++++++++ 4 files changed, 400 insertions(+) create mode 100644 src/Tests/Tests/Shared/TestSvd.cs create mode 100644 src/Unity.Mathematics/svd.cs diff --git a/src/Tests/Tests/Shared/TestSvd.cs b/src/Tests/Tests/Shared/TestSvd.cs new file mode 100644 index 00000000..d74bc26d --- /dev/null +++ b/src/Tests/Tests/Shared/TestSvd.cs @@ -0,0 +1,210 @@ +using System.Collections.Generic; +using NUnit.Framework; +using Burst.Compiler.IL.Tests; + +namespace Unity.Mathematics.Tests +{ + class FloatAbsoluteEqualityComparer : IEqualityComparer + { + readonly float m_AllowedError; + + public FloatAbsoluteEqualityComparer(float allowedError) => + m_AllowedError = allowedError; + + public bool Equals(float expected, float actual) => + math.abs(expected - actual) < m_AllowedError; + + public int GetHashCode(float value) => 0; + } + + class QuaternionAbsoluteEqualityComparer : IEqualityComparer + { + readonly float m_AllowedError; + + public QuaternionAbsoluteEqualityComparer(float allowedError) => + m_AllowedError = allowedError; + + public bool Equals(quaternion expected, quaternion actual) => + (math.lengthsq(expected) == 0f && math.lengthsq(actual) == 0f) || math.abs(math.dot(expected, actual)) > (1f - m_AllowedError); + + public int GetHashCode(quaternion value) => 0; + } + + [TestFixture] + public class TestSvd + { + const float k_SVDTolerance = 1e-4f; + static readonly FloatAbsoluteEqualityComparer k_FloatComparer = new FloatAbsoluteEqualityComparer(k_SVDTolerance); + static readonly QuaternionAbsoluteEqualityComparer k_QuaternionComparer = new QuaternionAbsoluteEqualityComparer(k_SVDTolerance); + + // Validate Penrose condition that [aba = a] + static void ValidatePenrose1(in float3x3 a, in float3x3 b) + { + var testA = math.mul(math.mul(a, b), a); + + Assert.That(testA.c0.x, Is.EqualTo(a.c0.x).Using(k_FloatComparer)); + Assert.That(testA.c0.y, Is.EqualTo(a.c0.y).Using(k_FloatComparer)); + Assert.That(testA.c0.z, Is.EqualTo(a.c0.z).Using(k_FloatComparer)); + Assert.That(testA.c1.x, Is.EqualTo(a.c1.x).Using(k_FloatComparer)); + Assert.That(testA.c1.y, Is.EqualTo(a.c1.y).Using(k_FloatComparer)); + Assert.That(testA.c1.z, Is.EqualTo(a.c1.z).Using(k_FloatComparer)); + Assert.That(testA.c2.x, Is.EqualTo(a.c2.x).Using(k_FloatComparer)); + Assert.That(testA.c2.y, Is.EqualTo(a.c2.y).Using(k_FloatComparer)); + Assert.That(testA.c2.z, Is.EqualTo(a.c2.z).Using(k_FloatComparer)); + } + + // Validate Penrose condition that [transpose(ab) = ab] + static void ValidatePenrose2(in float3x3 a, in float3x3 b) + { + var ab = math.mul(a, b); + var testAB = math.transpose(ab); + + Assert.That(testAB.c0.x, Is.EqualTo(ab.c0.x).Using(k_FloatComparer)); + Assert.That(testAB.c0.y, Is.EqualTo(ab.c0.y).Using(k_FloatComparer)); + Assert.That(testAB.c0.z, Is.EqualTo(ab.c0.z).Using(k_FloatComparer)); + Assert.That(testAB.c1.x, Is.EqualTo(ab.c1.x).Using(k_FloatComparer)); + Assert.That(testAB.c1.y, Is.EqualTo(ab.c1.y).Using(k_FloatComparer)); + Assert.That(testAB.c1.z, Is.EqualTo(ab.c1.z).Using(k_FloatComparer)); + Assert.That(testAB.c2.x, Is.EqualTo(ab.c2.x).Using(k_FloatComparer)); + Assert.That(testAB.c2.y, Is.EqualTo(ab.c2.y).Using(k_FloatComparer)); + Assert.That(testAB.c2.z, Is.EqualTo(ab.c2.z).Using(k_FloatComparer)); + } + + static void ValidateSingular(in float3x3 a) => + Assert.That(math.determinant(a), Is.EqualTo(0f).Using(k_FloatComparer)); + + [TestCompiler] + public void CanSVDInverseNonSingularFloat3x3() + { + var mat = math.float3x3( + math.float3(9f, 1f, 2f), + math.float3(3f, 8f, 4f), + math.float3(5f, 6f, 7f) + ); + + var inv = svd.svdInverse(mat); + var testIdentity = math.mul(mat, inv); + + Assert.That(testIdentity.c0.x, Is.EqualTo(1f).Using(k_FloatComparer)); + Assert.That(testIdentity.c0.y, Is.EqualTo(0f).Using(k_FloatComparer)); + Assert.That(testIdentity.c0.z, Is.EqualTo(0f).Using(k_FloatComparer)); + Assert.That(testIdentity.c1.x, Is.EqualTo(0f).Using(k_FloatComparer)); + Assert.That(testIdentity.c1.y, Is.EqualTo(1f).Using(k_FloatComparer)); + Assert.That(testIdentity.c1.z, Is.EqualTo(0f).Using(k_FloatComparer)); + Assert.That(testIdentity.c2.x, Is.EqualTo(0f).Using(k_FloatComparer)); + Assert.That(testIdentity.c2.y, Is.EqualTo(0f).Using(k_FloatComparer)); + Assert.That(testIdentity.c2.z, Is.EqualTo(1f).Using(k_FloatComparer)); + } + + [TestCompiler] + public void CanSVDInverseFloat3x3With_NullColumn() + { + var mat = math.float3x3( + math.float3(9f, 1f, 0f), + math.float3(3f, 8f, 0f), + math.float3(5f, 6f, 0f) + ); + + ValidateSingular(mat); + var inv = svd.svdInverse(mat); + + ValidatePenrose1(mat, inv); + ValidatePenrose1(inv, mat); + ValidatePenrose2(mat, inv); + ValidatePenrose2(inv, mat); + } + + [TestCompiler] + public void CanSVDInverseFloat3x3With_NullRow() + { + var mat = math.float3x3( + math.float3(9f, 1f, 2f), + math.float3(0f, 0f, 0f), + math.float3(5f, 6f, 7f) + ); + + ValidateSingular(mat); + var inv = svd.svdInverse(mat); + + ValidatePenrose1(mat, inv); + ValidatePenrose1(inv, mat); + ValidatePenrose2(mat, inv); + ValidatePenrose2(inv, mat); + } + + [TestCompiler] + public void CanSVDInverseFloat3x3With_LinearDependentColumn() + { + var mat = math.float3x3( + math.float3(9f, 4f, 2f), + math.float3(3f, 8f, 4f), + math.float3(5f, 14f, 7f) + ); + + ValidateSingular(mat); + var inv = svd.svdInverse(mat); + + ValidatePenrose1(mat, inv); + ValidatePenrose1(inv, mat); + ValidatePenrose2(mat, inv); + ValidatePenrose2(inv, mat); + } + + [TestCompiler] + public void CanSVDInverseFloat3x3With_LinearDependentRow() + { + var mat = math.float3x3( + math.float3(9f, 1f, 2f), + math.float3(10f, 12f, 14f), + math.float3(5f, 6f, 7f) + ); + + ValidateSingular(mat); + var inv = svd.svdInverse(mat); + + ValidatePenrose1(mat, inv); + ValidatePenrose1(inv, mat); + ValidatePenrose2(mat, inv); + ValidatePenrose2(inv, mat); + } + + [TestCompiler] + public void CanSVDInverseFloat3x3With_RotatedZeroScale() + { + var m102030 = math.float3x3(quaternion.Euler(math.radians(10f), math.radians(20f), math.radians(30f))); + var parent = svd.mulScale(m102030, math.float3(1f, 1f, 0f)); + var mat = math.mul(parent, m102030); + + ValidateSingular(mat); + var inv = svd.svdInverse(mat); + + ValidatePenrose1(mat, inv); + ValidatePenrose1(inv, mat); + ValidatePenrose2(mat, inv); + ValidatePenrose2(inv, mat); + } + + // Case 928598: The errors appear, when GameObject has a child with ParticleSystem which is rotated along the y-axis to -180 and is moved + [TestCompiler] + public void CanExtractSVDRotationFromFloat3x3With_X180_Y0_Z181() + { + var q = quaternion.Euler(math.radians(180f), math.radians(0f), math.radians(181f)); + var qSVD = svd.svdRotation(math.float3x3(q)); + + Assert.That(qSVD, Is.EqualTo(q).Using(k_QuaternionComparer)); + } + + // Case 938548: Assertion failed on expression: 'CompareApproximately(det, 1.0F, .005f)' when scaling system to 0 on at least 2 axes + [TestCompiler] + public void CanExtractSVDRotationFromFloat3x3With_ZeroScaleXY() + { + var q0 = quaternion.Euler(math.radians(10f), math.radians(20f), math.radians(30f)); + var m0 = math.float3x3(q0); + var m0Scaled = svd.mulScale(m0, math.float3(1f, 0f, 0f)); + var q1 = svd.svdRotation(m0Scaled); + var m1 = math.float3x3(q1); + + Assert.That(math.length(m0.c0 - m1.c0), Is.EqualTo(0f).Using(k_FloatComparer)); + } + } +} \ No newline at end of file diff --git a/src/Tests/Unity.Mathematics.Tests.csproj b/src/Tests/Unity.Mathematics.Tests.csproj index 4ca36bde..d6fe8748 100644 --- a/src/Tests/Unity.Mathematics.Tests.csproj +++ b/src/Tests/Unity.Mathematics.Tests.csproj @@ -12,6 +12,7 @@ v4.7.1 512 + latest true @@ -106,6 +107,7 @@ + diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 11383fbb..da1856ac 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -138,6 +138,7 @@ + diff --git a/src/Unity.Mathematics/svd.cs b/src/Unity.Mathematics/svd.cs new file mode 100644 index 00000000..f7aae2c8 --- /dev/null +++ b/src/Unity.Mathematics/svd.cs @@ -0,0 +1,187 @@ +using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; + +namespace Unity.Mathematics +{ + // SVD algorithm as decribed in: + // Computing the singular value decomposition of 3x3 matrices with minimal branching and elementary floating point operations, + // A.McAdams, A.Selle, R.Tamstorf, J.Teran and E.Sifakis, University of Wisconsin - Madison technical report TR1690, May 2011 + [Il2CppEagerStaticClassConstruction] + class svd + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static void condSwap(bool c, ref float x, ref float y) + { + var tmp = x; + x = math.select(x, y, c); + y = math.select(y, tmp, c); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static void condNegSwap(bool c, ref float3 x, ref float3 y) + { + var tmp = -x; + x = math.select(x, y, c); + y = math.select(y, tmp, c); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static quaternion condNegSwapQuat(bool c, quaternion q, float4 mask) + { + const float halfSqrt2 = 0.707106781186548f; + return math.mul(q, math.select(quaternion.identity.value, mask * halfSqrt2, c)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static void sortSingularValues(ref float3x3 b, ref quaternion v) + { + var l0 = math.lengthsq(b.c0); + var l1 = math.lengthsq(b.c1); + var l2 = math.lengthsq(b.c2); + + var c = l0 < l1; + condNegSwap(c, ref b.c0, ref b.c1); + v = condNegSwapQuat(c, v, math.float4(0f, 0f, 1f, 1f)); + condSwap(c, ref l0, ref l1); + + c = l0 < l2; + condNegSwap(c, ref b.c0, ref b.c2); + v = condNegSwapQuat(c, v, math.float4(0f, -1f, 0f, 1f)); + condSwap(c, ref l0, ref l2); + + c = l1 < l2; + condNegSwap(c, ref b.c1, ref b.c2); + v = condNegSwapQuat(c, v, math.float4(1f, 0f, 0f, 1f)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static quaternion approxGivensQuat(float3 pq, float4 mask) + { + const float c8 = 0.923879532511287f; // cos(pi/8) + const float s8 = 0.38268343236509f; // sin(pi/8) + const float g = 5.82842712474619f; // 3 + 2 * sqrt(2) + + var ch = 2f * (pq.x - pq.y); // approx cos(a/2) + var sh = pq.z; // approx sin(a/2) + var r = math.select(math.float4(s8, s8, s8, c8), math.float4(sh, sh, sh, ch), g * sh * sh < ch * ch) * mask; + return math.normalize(r); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static quaternion qrGivensQuat(float2 pq, float4 mask) + { + var l = math.sqrt(pq.x * pq.x + pq.y * pq.y); + var sh = math.select(0f, pq.y, l > k_EpsilonNormalSqrt); + var ch = math.abs(pq.x) + math.max(l, k_EpsilonNormalSqrt); + condSwap(pq.x < 0f, ref sh, ref ch); + + return math.normalize(math.float4(sh, sh, sh, ch) * mask); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static quaternion givensQRFactorization(float3x3 b, out float3x3 r) + { + var u = qrGivensQuat(math.float2(b.c0.x, b.c0.y), math.float4(0f, 0f, 1f, 1f)); + var qmt = math.float3x3(math.conjugate(u)); + r = math.mul(qmt, b); + + var q = qrGivensQuat(math.float2(r.c0.x, r.c0.z), math.float4(0f, -1f, 0f, 1f)); + u = math.mul(u, q); + qmt = math.float3x3(math.conjugate(q)); + r = math.mul(qmt, r); + + q = qrGivensQuat(math.float2(r.c1.y, r.c1.z), math.float4(1f, 0f, 0f, 1f)); + u = math.mul(u, q); + qmt = math.float3x3(math.conjugate(q)); + r = math.mul(qmt, r); + + return u; + } + + static quaternion jacobiIteration(ref float3x3 s, int iterations = 5) + { + float3x3 qm; + quaternion q; + quaternion v = quaternion.identity; + + for (int i = 0; i < iterations; ++i) + { + q = approxGivensQuat(math.float3(s.c0.x, s.c1.y, s.c0.y), math.float4(0f, 0f, 1f, 1f)); + v = math.mul(v, q); + qm = math.float3x3(q); + s = math.mul(math.mul(math.transpose(qm), s), qm); + + q = approxGivensQuat(math.float3(s.c1.y, s.c2.z, s.c1.z), math.float4(1f, 0f, 0f, 1f)); + v = math.mul(v, q); + qm = math.float3x3(q); + s = math.mul(math.mul(math.transpose(qm), s), qm); + + q = approxGivensQuat(math.float3(s.c2.z, s.c0.x, s.c2.x), math.float4(0f, 1f, 0f, 1f)); + v = math.mul(v, q); + qm = math.float3x3(q); + s = math.mul(math.mul(math.transpose(qm), s), qm); + } + + return v; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static float3 singularValuesDecomposition(float3x3 a, out quaternion u, out quaternion v) + { + u = quaternion.identity; + v = quaternion.identity; + + var s = math.mul(math.transpose(a), a); + v = jacobiIteration(ref s); + var b = math.float3x3(v); + b = math.mul(a, b); + sortSingularValues(ref b, ref v); + u = givensQRFactorization(b, out var e); + + return math.float3(e.c0.x, e.c1.y, e.c2.z); + } + + const float k_EpsilonDeterminant = 1e-6f; + const float k_EpsilonRCP = 1e-9f; + const float k_EpsilonNormalSqrt = 1e-15f; + + /// + /// Matrix columns multiplied by scale components + /// m.c0.x * s.x | m.c1.x * s.y | m.c2.x * s.z + /// m.c0.y * s.x | m.c1.y * s.y | m.c2.y * s.z + /// m.c0.z * s.x | m.c1.z * s.y | m.c2.z * s.z + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 mulScale(float3x3 m, float3 s) => new float3x3(m.c0 * s.x, m.c1 * s.y, m.c2 * s.z); + + /// + /// Matrix rows multiplied by scale components + /// m.c0.x * s.x | m.c1.x * s.x | m.c2.x * s.x + /// m.c0.y * s.y | m.c1.y * s.y | m.c2.y * s.y + /// m.c0.z * s.z | m.c1.z * s.z | m.c2.z * s.z + /// + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static float3x3 scaleMul(float3 s, float3x3 m) => new float3x3(m.c0 * s, m.c1 * s, m.c2 * s); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static float3 rcpsafe(float3 x, float epsilon = k_EpsilonRCP) => + math.select(math.rcp(x), float3.zero, math.abs(x) < epsilon); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static internal float3x3 svdInverse(float3x3 a) + { + var e = singularValuesDecomposition(a, out var u, out var v); + var um = math.float3x3(u); + var vm = math.float3x3(v); + + return math.mul(vm, scaleMul(rcpsafe(e, k_EpsilonDeterminant), math.transpose(um))); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static internal quaternion svdRotation(float3x3 a) + { + singularValuesDecomposition(a, out var u, out var v); + return math.mul(u, math.conjugate(v)); + } + } +} \ No newline at end of file From fe48b7a7847d7c88baab3c74b946f2882a15c41b Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Thu, 6 Jan 2022 18:07:39 -0800 Subject: [PATCH 357/437] Make test asserts burst compatible. --- src/Tests/Tests/Shared/TestSvd.cs | 107 ++++++++++++------------------ 1 file changed, 41 insertions(+), 66 deletions(-) diff --git a/src/Tests/Tests/Shared/TestSvd.cs b/src/Tests/Tests/Shared/TestSvd.cs index d74bc26d..a0191e31 100644 --- a/src/Tests/Tests/Shared/TestSvd.cs +++ b/src/Tests/Tests/Shared/TestSvd.cs @@ -4,53 +4,28 @@ namespace Unity.Mathematics.Tests { - class FloatAbsoluteEqualityComparer : IEqualityComparer - { - readonly float m_AllowedError; - - public FloatAbsoluteEqualityComparer(float allowedError) => - m_AllowedError = allowedError; - - public bool Equals(float expected, float actual) => - math.abs(expected - actual) < m_AllowedError; - - public int GetHashCode(float value) => 0; - } - - class QuaternionAbsoluteEqualityComparer : IEqualityComparer - { - readonly float m_AllowedError; - - public QuaternionAbsoluteEqualityComparer(float allowedError) => - m_AllowedError = allowedError; - - public bool Equals(quaternion expected, quaternion actual) => - (math.lengthsq(expected) == 0f && math.lengthsq(actual) == 0f) || math.abs(math.dot(expected, actual)) > (1f - m_AllowedError); - - public int GetHashCode(quaternion value) => 0; - } - [TestFixture] public class TestSvd { const float k_SVDTolerance = 1e-4f; - static readonly FloatAbsoluteEqualityComparer k_FloatComparer = new FloatAbsoluteEqualityComparer(k_SVDTolerance); - static readonly QuaternionAbsoluteEqualityComparer k_QuaternionComparer = new QuaternionAbsoluteEqualityComparer(k_SVDTolerance); + + static bool QuaternionEquals(quaternion expected, quaternion actual, float tolerance) => + (math.lengthsq(expected) == 0f && math.lengthsq(actual) == 0f) || math.abs(math.dot(expected, actual)) > (1f - tolerance); // Validate Penrose condition that [aba = a] static void ValidatePenrose1(in float3x3 a, in float3x3 b) { var testA = math.mul(math.mul(a, b), a); - Assert.That(testA.c0.x, Is.EqualTo(a.c0.x).Using(k_FloatComparer)); - Assert.That(testA.c0.y, Is.EqualTo(a.c0.y).Using(k_FloatComparer)); - Assert.That(testA.c0.z, Is.EqualTo(a.c0.z).Using(k_FloatComparer)); - Assert.That(testA.c1.x, Is.EqualTo(a.c1.x).Using(k_FloatComparer)); - Assert.That(testA.c1.y, Is.EqualTo(a.c1.y).Using(k_FloatComparer)); - Assert.That(testA.c1.z, Is.EqualTo(a.c1.z).Using(k_FloatComparer)); - Assert.That(testA.c2.x, Is.EqualTo(a.c2.x).Using(k_FloatComparer)); - Assert.That(testA.c2.y, Is.EqualTo(a.c2.y).Using(k_FloatComparer)); - Assert.That(testA.c2.z, Is.EqualTo(a.c2.z).Using(k_FloatComparer)); + TestUtils.AreEqual(a.c0.x, testA.c0.x, k_SVDTolerance); + TestUtils.AreEqual(a.c0.y, testA.c0.y, k_SVDTolerance); + TestUtils.AreEqual(a.c0.z, testA.c0.z, k_SVDTolerance); + TestUtils.AreEqual(a.c1.x, testA.c1.x, k_SVDTolerance); + TestUtils.AreEqual(a.c1.y, testA.c1.y, k_SVDTolerance); + TestUtils.AreEqual(a.c1.z, testA.c1.z, k_SVDTolerance); + TestUtils.AreEqual(a.c2.x, testA.c2.x, k_SVDTolerance); + TestUtils.AreEqual(a.c2.y, testA.c2.y, k_SVDTolerance); + TestUtils.AreEqual(a.c2.z, testA.c2.z, k_SVDTolerance); } // Validate Penrose condition that [transpose(ab) = ab] @@ -59,22 +34,22 @@ static void ValidatePenrose2(in float3x3 a, in float3x3 b) var ab = math.mul(a, b); var testAB = math.transpose(ab); - Assert.That(testAB.c0.x, Is.EqualTo(ab.c0.x).Using(k_FloatComparer)); - Assert.That(testAB.c0.y, Is.EqualTo(ab.c0.y).Using(k_FloatComparer)); - Assert.That(testAB.c0.z, Is.EqualTo(ab.c0.z).Using(k_FloatComparer)); - Assert.That(testAB.c1.x, Is.EqualTo(ab.c1.x).Using(k_FloatComparer)); - Assert.That(testAB.c1.y, Is.EqualTo(ab.c1.y).Using(k_FloatComparer)); - Assert.That(testAB.c1.z, Is.EqualTo(ab.c1.z).Using(k_FloatComparer)); - Assert.That(testAB.c2.x, Is.EqualTo(ab.c2.x).Using(k_FloatComparer)); - Assert.That(testAB.c2.y, Is.EqualTo(ab.c2.y).Using(k_FloatComparer)); - Assert.That(testAB.c2.z, Is.EqualTo(ab.c2.z).Using(k_FloatComparer)); + TestUtils.AreEqual(ab.c0.x, testAB.c0.x, k_SVDTolerance); + TestUtils.AreEqual(ab.c0.y, testAB.c0.y, k_SVDTolerance); + TestUtils.AreEqual(ab.c0.z, testAB.c0.z, k_SVDTolerance); + TestUtils.AreEqual(ab.c1.x, testAB.c1.x, k_SVDTolerance); + TestUtils.AreEqual(ab.c1.y, testAB.c1.y, k_SVDTolerance); + TestUtils.AreEqual(ab.c1.z, testAB.c1.z, k_SVDTolerance); + TestUtils.AreEqual(ab.c2.x, testAB.c2.x, k_SVDTolerance); + TestUtils.AreEqual(ab.c2.y, testAB.c2.y, k_SVDTolerance); + TestUtils.AreEqual(ab.c2.z, testAB.c2.z, k_SVDTolerance); } static void ValidateSingular(in float3x3 a) => - Assert.That(math.determinant(a), Is.EqualTo(0f).Using(k_FloatComparer)); + TestUtils.AreEqual(0.0f, math.determinant(a), k_SVDTolerance); [TestCompiler] - public void CanSVDInverseNonSingularFloat3x3() + public static void CanSVDInverseNonSingularFloat3x3() { var mat = math.float3x3( math.float3(9f, 1f, 2f), @@ -85,19 +60,19 @@ public void CanSVDInverseNonSingularFloat3x3() var inv = svd.svdInverse(mat); var testIdentity = math.mul(mat, inv); - Assert.That(testIdentity.c0.x, Is.EqualTo(1f).Using(k_FloatComparer)); - Assert.That(testIdentity.c0.y, Is.EqualTo(0f).Using(k_FloatComparer)); - Assert.That(testIdentity.c0.z, Is.EqualTo(0f).Using(k_FloatComparer)); - Assert.That(testIdentity.c1.x, Is.EqualTo(0f).Using(k_FloatComparer)); - Assert.That(testIdentity.c1.y, Is.EqualTo(1f).Using(k_FloatComparer)); - Assert.That(testIdentity.c1.z, Is.EqualTo(0f).Using(k_FloatComparer)); - Assert.That(testIdentity.c2.x, Is.EqualTo(0f).Using(k_FloatComparer)); - Assert.That(testIdentity.c2.y, Is.EqualTo(0f).Using(k_FloatComparer)); - Assert.That(testIdentity.c2.z, Is.EqualTo(1f).Using(k_FloatComparer)); + TestUtils.AreEqual(1f, testIdentity.c0.x, k_SVDTolerance); + TestUtils.AreEqual(0f, testIdentity.c0.y, k_SVDTolerance); + TestUtils.AreEqual(0f, testIdentity.c0.z, k_SVDTolerance); + TestUtils.AreEqual(0f, testIdentity.c1.x, k_SVDTolerance); + TestUtils.AreEqual(1f, testIdentity.c1.y, k_SVDTolerance); + TestUtils.AreEqual(0f, testIdentity.c1.z, k_SVDTolerance); + TestUtils.AreEqual(0f, testIdentity.c2.x, k_SVDTolerance); + TestUtils.AreEqual(0f, testIdentity.c2.y, k_SVDTolerance); + TestUtils.AreEqual(1f, testIdentity.c2.z, k_SVDTolerance); } [TestCompiler] - public void CanSVDInverseFloat3x3With_NullColumn() + public static void CanSVDInverseFloat3x3With_NullColumn() { var mat = math.float3x3( math.float3(9f, 1f, 0f), @@ -115,7 +90,7 @@ public void CanSVDInverseFloat3x3With_NullColumn() } [TestCompiler] - public void CanSVDInverseFloat3x3With_NullRow() + public static void CanSVDInverseFloat3x3With_NullRow() { var mat = math.float3x3( math.float3(9f, 1f, 2f), @@ -133,7 +108,7 @@ public void CanSVDInverseFloat3x3With_NullRow() } [TestCompiler] - public void CanSVDInverseFloat3x3With_LinearDependentColumn() + public static void CanSVDInverseFloat3x3With_LinearDependentColumn() { var mat = math.float3x3( math.float3(9f, 4f, 2f), @@ -151,7 +126,7 @@ public void CanSVDInverseFloat3x3With_LinearDependentColumn() } [TestCompiler] - public void CanSVDInverseFloat3x3With_LinearDependentRow() + public static void CanSVDInverseFloat3x3With_LinearDependentRow() { var mat = math.float3x3( math.float3(9f, 1f, 2f), @@ -169,7 +144,7 @@ public void CanSVDInverseFloat3x3With_LinearDependentRow() } [TestCompiler] - public void CanSVDInverseFloat3x3With_RotatedZeroScale() + public static void CanSVDInverseFloat3x3With_RotatedZeroScale() { var m102030 = math.float3x3(quaternion.Euler(math.radians(10f), math.radians(20f), math.radians(30f))); var parent = svd.mulScale(m102030, math.float3(1f, 1f, 0f)); @@ -186,17 +161,17 @@ public void CanSVDInverseFloat3x3With_RotatedZeroScale() // Case 928598: The errors appear, when GameObject has a child with ParticleSystem which is rotated along the y-axis to -180 and is moved [TestCompiler] - public void CanExtractSVDRotationFromFloat3x3With_X180_Y0_Z181() + public static void CanExtractSVDRotationFromFloat3x3With_X180_Y0_Z181() { var q = quaternion.Euler(math.radians(180f), math.radians(0f), math.radians(181f)); var qSVD = svd.svdRotation(math.float3x3(q)); - Assert.That(qSVD, Is.EqualTo(q).Using(k_QuaternionComparer)); + TestUtils.IsTrue(QuaternionEquals(q, qSVD, k_SVDTolerance)); } // Case 938548: Assertion failed on expression: 'CompareApproximately(det, 1.0F, .005f)' when scaling system to 0 on at least 2 axes [TestCompiler] - public void CanExtractSVDRotationFromFloat3x3With_ZeroScaleXY() + public static void CanExtractSVDRotationFromFloat3x3With_ZeroScaleXY() { var q0 = quaternion.Euler(math.radians(10f), math.radians(20f), math.radians(30f)); var m0 = math.float3x3(q0); @@ -204,7 +179,7 @@ public void CanExtractSVDRotationFromFloat3x3With_ZeroScaleXY() var q1 = svd.svdRotation(m0Scaled); var m1 = math.float3x3(q1); - Assert.That(math.length(m0.c0 - m1.c0), Is.EqualTo(0f).Using(k_FloatComparer)); + TestUtils.AreEqual(0.0f, math.length(m0.c0 - m1.c0), k_SVDTolerance); } } } \ No newline at end of file From a9fb50f8d970ebd526d8785f44c2e1f22d475cda Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Fri, 7 Jan 2022 15:34:13 -0800 Subject: [PATCH 358/437] Copy over pseudoinverse from Unity.Animation. --- src/Unity.Mathematics/quaternion.cs | 62 ++++++++++++++++++++++++++++- src/Unity.Mathematics/svd.cs | 9 +++-- 2 files changed, 66 insertions(+), 5 deletions(-) diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index 3c09d991..f6549d8a 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -710,6 +710,67 @@ public static float angle(quaternion q1, quaternion q2) return diff + diff; } + /// + /// Extracts the rotation from a matrix that potentially has scale. + /// + /// Matrix to extract rotation from + /// Extracted rotation + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion rotation(float3x3 m) + { + float det = math.determinant(m); + if (math.abs(1f - det) < svd.k_EpsilonDeterminant) + return math.quaternion(m); + + if (math.abs(det) > svd.k_EpsilonDeterminant) + { + float3x3 tmp = svd.mulScale(m, math.rsqrt(math.float3(math.lengthsq(m.c0), math.lengthsq(m.c1), math.lengthsq(m.c2)))); + if (math.abs(1f - math.determinant(tmp)) < svd.k_EpsilonDeterminant) + return math.quaternion(tmp); + } + + return svd.svdRotation(m); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static float3x3 adj(float3x3 m, out float det) + { + float3x3 adjT; + adjT.c0 = math.cross(m.c1, m.c2); + adjT.c1 = math.cross(m.c2, m.c0); + adjT.c2 = math.cross(m.c0, m.c1); + det = math.dot(m.c0, adjT.c0); + + return math.transpose(adjT); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static bool adjInverse(float3x3 m, out float3x3 i, float epsilon = svd.k_EpsilonNormal) + { + i = adj(m, out float det); + bool c = math.abs(det) > epsilon; + float3 detInv = math.select(math.float3(1f), math.rcp(det), c); + i = svd.scaleMul(detInv, i); + return c; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 pseudoinverse(float3x3 m) + { + float scaleSq = 0.333333f * (math.lengthsq(m.c0) + math.lengthsq(m.c1) + math.lengthsq(m.c2)); + if (scaleSq < svd.k_EpsilonNormal) + return Mathematics.float3x3.zero; + + float3 scaleInv = math.rsqrt(scaleSq); + float3x3 ms = svd.mulScale(m, scaleInv); + if (!adjInverse(ms, out float3x3 i, svd.k_EpsilonDeterminant)) + { + i = svd.svdInverse(ms); + } + + return svd.mulScale(i, scaleInv); + } + /// Returns a uint hash code of a quaternion. /// The quaternion to hash. /// The hash code for the input quaternion. @@ -732,7 +793,6 @@ public static uint4 hashwide(quaternion q) return hashwide(q.value); } - /// /// Transforms the forward vector by a quaternion. /// diff --git a/src/Unity.Mathematics/svd.cs b/src/Unity.Mathematics/svd.cs index f7aae2c8..f3adeec4 100644 --- a/src/Unity.Mathematics/svd.cs +++ b/src/Unity.Mathematics/svd.cs @@ -141,9 +141,10 @@ static float3 singularValuesDecomposition(float3x3 a, out quaternion u, out quat return math.float3(e.c0.x, e.c1.y, e.c2.z); } - const float k_EpsilonDeterminant = 1e-6f; - const float k_EpsilonRCP = 1e-9f; - const float k_EpsilonNormalSqrt = 1e-15f; + public const float k_EpsilonDeterminant = 1e-6f; + public const float k_EpsilonRCP = 1e-9f; + public const float k_EpsilonNormalSqrt = 1e-15f; + public const float k_EpsilonNormal = 1e-30f; /// /// Matrix columns multiplied by scale components @@ -161,7 +162,7 @@ static float3 singularValuesDecomposition(float3x3 a, out quaternion u, out quat /// m.c0.z * s.z | m.c1.z * s.z | m.c2.z * s.z /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - static float3x3 scaleMul(float3 s, float3x3 m) => new float3x3(m.c0 * s, m.c1 * s, m.c2 * s); + public static float3x3 scaleMul(float3 s, float3x3 m) => new float3x3(m.c0 * s, m.c1 * s, m.c2 * s); [MethodImpl(MethodImplOptions.AggressiveInlining)] static float3 rcpsafe(float3 x, float epsilon = k_EpsilonRCP) => From c8dea008610a1e9b0affb7db1737f2e3c8d593bc Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Fri, 7 Jan 2022 16:37:35 -0800 Subject: [PATCH 359/437] Move pseudoinverse to matrix.cs math class. --- src/Unity.Mathematics/matrix.cs | 17 +++++++++++++++++ src/Unity.Mathematics/quaternion.cs | 17 ----------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index fe4a679c..251aef65 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -1089,5 +1089,22 @@ public static float3x3 orthonormalize(float3x3 i) return o; } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 pseudoinverse(float3x3 m) + { + float scaleSq = 0.333333f * (math.lengthsq(m.c0) + math.lengthsq(m.c1) + math.lengthsq(m.c2)); + if (scaleSq < svd.k_EpsilonNormal) + return Mathematics.float3x3.zero; + + float3 scaleInv = math.rsqrt(scaleSq); + float3x3 ms = svd.mulScale(m, scaleInv); + if (!adjInverse(ms, out float3x3 i, svd.k_EpsilonDeterminant)) + { + i = svd.svdInverse(ms); + } + + return svd.mulScale(i, scaleInv); + } } } diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index f6549d8a..dba3996b 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -754,23 +754,6 @@ static bool adjInverse(float3x3 m, out float3x3 i, float epsilon = svd.k_Epsilon return c; } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 pseudoinverse(float3x3 m) - { - float scaleSq = 0.333333f * (math.lengthsq(m.c0) + math.lengthsq(m.c1) + math.lengthsq(m.c2)); - if (scaleSq < svd.k_EpsilonNormal) - return Mathematics.float3x3.zero; - - float3 scaleInv = math.rsqrt(scaleSq); - float3x3 ms = svd.mulScale(m, scaleInv); - if (!adjInverse(ms, out float3x3 i, svd.k_EpsilonDeterminant)) - { - i = svd.svdInverse(ms); - } - - return svd.mulScale(i, scaleInv); - } - /// Returns a uint hash code of a quaternion. /// The quaternion to hash. /// The hash code for the input quaternion. From 1865dbabb4bf79d6d89e6d8b5af10310e4368b1c Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Fri, 7 Jan 2022 17:23:01 -0800 Subject: [PATCH 360/437] Added two small tests for pseudoinverse. --- src/Tests/Tests/Shared/TestMatrix.cs | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/Tests/Tests/Shared/TestMatrix.cs b/src/Tests/Tests/Shared/TestMatrix.cs index 5bc45842..558ce482 100644 --- a/src/Tests/Tests/Shared/TestMatrix.cs +++ b/src/Tests/Tests/Shared/TestMatrix.cs @@ -1169,5 +1169,46 @@ public static void float3x3_from_float4x4_without_new() TestUtils.AreEqual(expected, float3x3(f4x4)); } + + [TestCompiler] + public static void float3x3_pseudoinverse_non_singular() + { + const float kTolerance = 1e-5f; + + // A random 3x3 matrix, non-singular, generated from octave. + var a = new float3x3( + 0.806710600852966308594f, 0.985506594181060791016f, 0.593669593334197998047f, + 0.0869068726897239685059f, 0.754145503044128417969f, 0.222692146897315979004f, + 0.917483031749725341797f, 0.443894535303115844727f, 0.138771042227745056152f); + + // The regular inverse of a, as computed by octave. + var expected = new float3x3( + -0.0299495235085487365723f, -0.654392063617706298828f, 1.17825806140899658203f, + -0.992458224296569824219f, 2.23384380340576171875f, 0.661037027835845947266f, + 3.37264156341552734375f, -2.81901407241821289063f, -2.69841933250427246094f); + + TestUtils.AreEqual(expected, pseudoinverse(a), kTolerance); + TestUtils.AreEqual(expected, inverse(a), kTolerance); + } + + [TestCompiler] + public static void float3x3_pseudoinverse_singular() + { + const float kTolerance = 1e-5f; + + // A singular matrix. + var a = new float3x3( + 0.0548239313066005706787f, 0.462397903203964233398f, 0.0501357726752758026123f, + 0.0548239313066005706787f, 0.462397903203964233398f, 0.0501357726752758026123f, + 0.938165545463562011719f, 0.542225778102874755859f, 0.10684439539909362793f); + + // The pseudoinverse computed by octave. + var expected = new float3x3( + -0.675357639789581298828f, -0.675357699394226074219f, 1.14166188240051269531f, + 1.15268361568450927734f, 1.15268361568450927734f, -0.140613287687301635742f, + 0.0803283303976058959961f, 0.0803283303976058959961f, 0.0484490357339382171631f); + + TestUtils.AreEqual(expected, pseudoinverse(a), kTolerance); + } } } From 43288c5e59a53b418934d59d2f2c5248ea305c4b Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 12 Jan 2022 16:47:38 -0800 Subject: [PATCH 361/437] rotation() tests. --- src/Tests/Tests/Shared/TestQuaternion.cs | 80 ++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/src/Tests/Tests/Shared/TestQuaternion.cs b/src/Tests/Tests/Shared/TestQuaternion.cs index 5f531b0e..301725ee 100644 --- a/src/Tests/Tests/Shared/TestQuaternion.cs +++ b/src/Tests/Tests/Shared/TestQuaternion.cs @@ -380,5 +380,85 @@ public static void quaternion_angle() angle = math.angle(q, nq); TestUtils.AreEqual(0f, angle); } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_identity() + { + const float tolerance = 1e-5f; + var q = rotation(float3x3.identity); + TestUtils.AreEqual(quaternion.identity, q, tolerance); + } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_with_uniform_scale() + { + const float tolerance = 1e-5f; + var random = new Random(6173u); + var expectedQuaternion = random.NextQuaternionRotation(); + var m = new float3x3(expectedQuaternion); + m = mul(m, float3x3.Scale(5.18f)); + var actualQuaternion = rotation(m); + TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); + } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_with_nonuniform_scale() + { + const float tolerance = 1e-5f; + var m = new float3x3( + 2.0f, 0.0f, 0.0f, + 0.0f, 1.5f, 0.0f, + 0.0f, 0.0f, 3.1f); + var q = rotation(m); + TestUtils.AreEqual(quaternion.identity, q, tolerance); + } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_with_negative_scale_x() + { + const float tolerance = 1e-5f; + var random = new Random(281u); + var expectedQuaternion = random.NextQuaternionRotation(); + var m = new float3x3(expectedQuaternion); + m = mul(m, float3x3.Scale(-1.5f, 0.2f, 51.281f)); + var actualQuaternion = rotation(m); + TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); + } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_with_negative_scale_y() + { + const float tolerance = 1e-5f; + var random = new Random(10000u); + var expectedQuaternion = random.NextQuaternionRotation(); + var m = new float3x3(expectedQuaternion); + m = mul(m, float3x3.Scale(1.5f, -0.2f, 51.281f)); + var actualQuaternion = rotation(m); + TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); + } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_with_negative_scale_z() + { + const float tolerance = 1e-5f; + var random = new Random(9891712u); + var expectedQuaternion = random.NextQuaternionRotation(); + var m = new float3x3(expectedQuaternion); + m = mul(m, float3x3.Scale(1.5f, 0.2f, -51.281f)); + var actualQuaternion = rotation(m); + TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); + } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_with_negative_nonuniform_scale() + { + const float tolerance = 1e-5f; + var random = new Random(912u); + var expectedQuaternion = random.NextQuaternionRotation(); + var m = new float3x3(expectedQuaternion); + m = mul(m, float3x3.Scale(-1.5f, -0.2f, -51.281f)); + var actualQuaternion = rotation(m); + TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); + } } } From 793f0e0aeafaf00e090b2fd63e2ef260047a823f Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 12 Jan 2022 17:04:27 -0800 Subject: [PATCH 362/437] Update doc parameter. --- src/Unity.Mathematics/quaternion.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index dba3996b..15007f7d 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -713,7 +713,7 @@ public static float angle(quaternion q1, quaternion q2) /// /// Extracts the rotation from a matrix that potentially has scale. /// - /// Matrix to extract rotation from + /// Matrix to extract rotation from /// Extracted rotation [MethodImpl(MethodImplOptions.AggressiveInlining)] public static quaternion rotation(float3x3 m) From 28d218a2c6aa629277ccfcca1075b6eb5362fdcc Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 12 Jan 2022 17:28:11 -0800 Subject: [PATCH 363/437] Documentation for pseudoinverse(). --- src/Unity.Mathematics/matrix.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index 251aef65..6589eb1b 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -1090,6 +1090,11 @@ public static float3x3 orthonormalize(float3x3 i) return o; } + /// + /// Computes the pseudoinverse of a matrix. + /// + /// Matrix to invert. + /// The pseudoinverse of m. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x3 pseudoinverse(float3x3 m) { From 66d79ec047e17a59fba8f7269919f58454f13019 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 12 Jan 2022 17:47:26 -0800 Subject: [PATCH 364/437] Adding meta files. --- src/Tests/Tests/Shared/TestSvd.cs.meta | 11 +++++++++++ src/Unity.Mathematics/svd.cs.meta | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/Tests/Tests/Shared/TestSvd.cs.meta create mode 100644 src/Unity.Mathematics/svd.cs.meta diff --git a/src/Tests/Tests/Shared/TestSvd.cs.meta b/src/Tests/Tests/Shared/TestSvd.cs.meta new file mode 100644 index 00000000..824a25f5 --- /dev/null +++ b/src/Tests/Tests/Shared/TestSvd.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8218cb7d87dac4432871cd5bd00fd333 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics/svd.cs.meta b/src/Unity.Mathematics/svd.cs.meta new file mode 100644 index 00000000..e7924355 --- /dev/null +++ b/src/Unity.Mathematics/svd.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bc4f01dc4f3d8489f85ca8dff8563871 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: From 93077524b55d23906061af2ea992b7a1fdb77436 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 12 Jan 2022 17:48:38 -0800 Subject: [PATCH 365/437] Spelling fix. --- src/Unity.Mathematics/svd.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Unity.Mathematics/svd.cs b/src/Unity.Mathematics/svd.cs index f3adeec4..87985b31 100644 --- a/src/Unity.Mathematics/svd.cs +++ b/src/Unity.Mathematics/svd.cs @@ -3,7 +3,7 @@ namespace Unity.Mathematics { - // SVD algorithm as decribed in: + // SVD algorithm as described in: // Computing the singular value decomposition of 3x3 matrices with minimal branching and elementary floating point operations, // A.McAdams, A.Selle, R.Tamstorf, J.Teran and E.Sifakis, University of Wisconsin - Madison technical report TR1690, May 2011 [Il2CppEagerStaticClassConstruction] From 894eb10f12bc4a9b8ca615ed178d02ded55a45c8 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 12 Jan 2022 17:54:47 -0800 Subject: [PATCH 366/437] Sort modifiers. --- src/Unity.Mathematics/svd.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Unity.Mathematics/svd.cs b/src/Unity.Mathematics/svd.cs index 87985b31..2ff93d38 100644 --- a/src/Unity.Mathematics/svd.cs +++ b/src/Unity.Mathematics/svd.cs @@ -169,7 +169,7 @@ static float3 rcpsafe(float3 x, float epsilon = k_EpsilonRCP) => math.select(math.rcp(x), float3.zero, math.abs(x) < epsilon); [MethodImpl(MethodImplOptions.AggressiveInlining)] - static internal float3x3 svdInverse(float3x3 a) + internal static float3x3 svdInverse(float3x3 a) { var e = singularValuesDecomposition(a, out var u, out var v); var um = math.float3x3(u); @@ -179,7 +179,7 @@ static internal float3x3 svdInverse(float3x3 a) } [MethodImpl(MethodImplOptions.AggressiveInlining)] - static internal quaternion svdRotation(float3x3 a) + internal static quaternion svdRotation(float3x3 a) { singularValuesDecomposition(a, out var u, out var v); return math.mul(u, math.conjugate(v)); From 2f043eedba14a5891a1254ee36ec0dd065674ec6 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Thu, 13 Jan 2022 11:00:15 -0800 Subject: [PATCH 367/437] License file update. (#209) --- LICENSE.md | 2 +- src/LICENSE.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 3ab46903..a95cdfbe 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -com.unity.mathematics copyright © 2019 Unity Technologies +com.unity.mathematics copyright © 2022 Unity Technologies ApS Licensed under the Unity Companion License for Unity-dependent projects (see https://unity3d.com/legal/licenses/unity_companion_license). Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions. \ No newline at end of file diff --git a/src/LICENSE.md b/src/LICENSE.md index 3ab46903..a95cdfbe 100755 --- a/src/LICENSE.md +++ b/src/LICENSE.md @@ -1,4 +1,4 @@ -com.unity.mathematics copyright © 2019 Unity Technologies +com.unity.mathematics copyright © 2022 Unity Technologies ApS Licensed under the Unity Companion License for Unity-dependent projects (see https://unity3d.com/legal/licenses/unity_companion_license). Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions. \ No newline at end of file From 5d9b83546659fc4aa603c296808d9f79df92d116 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Thu, 13 Jan 2022 17:07:06 -0800 Subject: [PATCH 368/437] Add pseudoinverse performance test. --- .../VectorGenerator.cs | 3 + .../TestInverse.gen.cs | 84 +++++++++++++++++++ 2 files changed, 87 insertions(+) diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index 87f7fbb0..a6c203b3 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -3224,6 +3224,9 @@ void GenerateInversePerformanceTests(StringBuilder str) GeneratePerformanceTest(str, "quaternion_inverse", new PerformanceTestArrayArgument[] { new PerformanceTestArrayArgument { m_ElementType = "quaternion", m_MemberName = "q", m_ElementInitializer = "quaternion.identity" }, }, "args.q[i] = math.inverse(args.q[i]);", 10000); + GeneratePerformanceTest(str, "pseudoinverse", new PerformanceTestArrayArgument[] { + new PerformanceTestArrayArgument { m_ElementType = "float3x3", m_MemberName = "m", m_ElementInitializer = "new float3x3(0.054824f, 0.462398f, 0.050136f, 0.054824f, 0.462398f, 0.050136f, 0.938166f, 0.542226f, 0.106844f)" }, + }, "args.m[i] = math.pseudoinverse(args.m[i]);", 1000); EndPerformanceTestCodeGen(str); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs index 1359b2a3..26bfc7da 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs @@ -596,6 +596,90 @@ public void quaternion_inverse_burst() var args = new quaternion_inverse.Arguments(); args.Init(); + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class pseudoinverse + { + public const int iterations = 1000; + + public struct Arguments : IDisposable + { + public Random rng; + public float3x3* m; + + public void Init() + { + rng = new Random(1); + m = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + m[i] = new float3x3(0.054824f, 0.462398f, 0.050136f, 0.054824f, 0.462398f, 0.050136f, 0.938166f, 0.542226f, 0.106844f); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(m, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.m[i] = math.pseudoinverse(args.m[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void pseudoinverse_mono() + { + pseudoinverse.TestFunction testFunction = pseudoinverse.MonoTestFunction; + var args = new pseudoinverse.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void pseudoinverse_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(pseudoinverse.BurstTestFunction); + var args = new pseudoinverse.Arguments(); + args.Init(); + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); From 6f60f46ac6ef0e15893ea1d420e1b787a4126d48 Mon Sep 17 00:00:00 2001 From: Olivier Dionne Date: Fri, 14 Jan 2022 09:02:32 -0500 Subject: [PATCH 369/437] Bring affine transform from Unity.Animation --- src/Unity.Mathematics/affine_transform.cs | 188 ++++++++++++++++++ .../affine_transform.cs.meta | 11 + 2 files changed, 199 insertions(+) create mode 100644 src/Unity.Mathematics/affine_transform.cs create mode 100644 src/Unity.Mathematics/affine_transform.cs.meta diff --git a/src/Unity.Mathematics/affine_transform.cs b/src/Unity.Mathematics/affine_transform.cs new file mode 100644 index 00000000..b1611141 --- /dev/null +++ b/src/Unity.Mathematics/affine_transform.cs @@ -0,0 +1,188 @@ +using System; +using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; +using static Unity.Mathematics.math; + +namespace Unity.Mathematics +{ + /// + /// An affine transformation type. + /// + [Il2CppEagerStaticClassConstruction] + [Serializable] + public struct AffineTransform : IEquatable, IFormattable + { + /// + /// The rotation and scale part of the affine transformation. + /// + public float3x3 rs; + + /// + /// The translation part of the affine transformation. + /// + public float3 t; + + /// An AffineTransform representing the identity transform. + public static readonly AffineTransform identity = new AffineTransform(float3.zero, float3x3.identity); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public AffineTransform(float3 t, float3x3 rs) + { + this.rs = rs; + this.t = t; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public AffineTransform(float3 t, quaternion r) + { + this.rs = math.float3x3(r); + this.t = t; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public AffineTransform(float3 t, quaternion r, float3 s) + { + this.rs = svd.mulScale(math.float3x3(r), s); + this.t = t; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public AffineTransform(RigidTransform rigid) + { + rs = math.float3x3(rigid.rot); + t = rigid.pos; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public AffineTransform(float3x3 m) + { + rs = m; + t = float3.zero; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public AffineTransform(float3x4 m) + { + rs = math.float3x3(m.c0, m.c1, m.c2); + t = m.c3; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public AffineTransform(float4x4 m) + { + rs = math.float3x3(m.c0.xyz, m.c1.xyz, m.c2.xyz); + t = m.c3.xyz; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static implicit operator float3x4(AffineTransform m) { return new float3x4(m.rs.c0, m.rs.c1, m.rs.c2, m.t); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static implicit operator float4x4(AffineTransform m) { return new float4x4(new float4(m.rs.c0, 0f), new float4(m.rs.c1, 0f), new float4(m.rs.c2, 0f), new float4(m.t, 1f)); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public bool Equals(AffineTransform x) { return rs.Equals(x.rs) && t.Equals(x.t); } + + public override bool Equals(object o) { return o is AffineTransform converted && Equals(converted); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public override int GetHashCode() { return (int)math.hash(this); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public override string ToString() + { + return string.Format("AffineTransform(({0}f, {1}f, {2}f, {3}f, {4}f, {5}f, {6}f, {7}f, {8}f), ({9}f, {10}f, {11}f))", + rs.c0.x, rs.c1.x, rs.c2.x, rs.c0.y, rs.c1.y, rs.c2.y, rs.c0.z, rs.c1.z, rs.c2.z, t.x, t.y, t.z + ); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public string ToString(string format, IFormatProvider formatProvider) + { + return string.Format("AffineTransform(({0}f, {1}f, {2}f, {3}f, {4}f, {5}f, {6}f, {7}f, {8}f), ({9}f, {10}f, {11}f))", + rs.c0.x.ToString(format, formatProvider), rs.c1.x.ToString(format, formatProvider), rs.c2.x.ToString(format, formatProvider), + rs.c0.y.ToString(format, formatProvider), rs.c1.y.ToString(format, formatProvider), rs.c2.y.ToString(format, formatProvider), + rs.c0.z.ToString(format, formatProvider), rs.c1.z.ToString(format, formatProvider), rs.c2.z.ToString(format, formatProvider), + t.x.ToString(format, formatProvider), t.y.ToString(format, formatProvider), t.z.ToString(format, formatProvider) + ); + } + } + + public static partial class math + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static AffineTransform AffineTransform(float3 translation, quaternion rotation) { return AffineTransform(translation, rotation); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static AffineTransform AffineTransform(float3 translation, float3x3 rs) { return new AffineTransform(translation, rs); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static AffineTransform AffineTransform(float4x4 m) { return new AffineTransform(m); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static AffineTransform AffineTransform(float3x4 m) { return new AffineTransform(m); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static AffineTransform AffineTransform(float3 translation, quaternion rotation, float3 scale) { return new AffineTransform(translation, rotation, scale); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float4x4 float4x4(AffineTransform transform) { return new float4x4(new float4(transform.rs.c0, 0f), new float4(transform.rs.c1, 0f), new float4(transform.rs.c2, 0f), new float4(transform.t, 1f)); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x4 float3x4(AffineTransform transform) { return new float3x4(transform.rs.c0, transform.rs.c1, transform.rs.c2, transform.t); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 mul(AffineTransform a, float3 v) + { + return a.t + mul(a.rs, v); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static AffineTransform mul(AffineTransform a, AffineTransform b) + { + return new AffineTransform(mul(a, b.t), mul(a.rs, b.rs)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static AffineTransform mul(float3x3 rs, AffineTransform b) + { + return new AffineTransform(mul(rs, b.t), mul(rs, b.rs)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static AffineTransform mul(AffineTransform a, float3x3 rs) + { + return new AffineTransform(a.t, mul(rs, a.rs)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static AffineTransform inverse(AffineTransform a) + { + AffineTransform inv; + inv.rs = pseudoinverse(a.rs); + inv.t = mul(inv.rs, -a.t); + return inv; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void decompose(AffineTransform a, out float3 translation, out quaternion rotation, out float3 scale) + { + translation = a.t; + rotation = math.rotation(a.rs); + var sm = mul(float3x3(conjugate(rotation)), a.rs); + scale = float3(sm.c0.x, sm.c1.y, sm.c2.z); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint hash(AffineTransform a) + { + return hash(a.rs) + 0xC5C5394Bu * hash(a.t); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static uint4 hashwide(AffineTransform a) + { + return hashwide(a.rs).xyzz + 0xC5C5394Bu * hashwide(a.t).xyzz; + } + } +} diff --git a/src/Unity.Mathematics/affine_transform.cs.meta b/src/Unity.Mathematics/affine_transform.cs.meta new file mode 100644 index 00000000..19d69b1d --- /dev/null +++ b/src/Unity.Mathematics/affine_transform.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 25c2cff1b9e35e648980b04c895d7332 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: From 0f2a599fdef73617362841b07f4a4fe9be54515e Mon Sep 17 00:00:00 2001 From: Olivier Dionne Date: Fri, 14 Jan 2022 12:02:39 -0500 Subject: [PATCH 370/437] clean up --- src/Unity.Mathematics/affine_transform.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Unity.Mathematics/affine_transform.cs b/src/Unity.Mathematics/affine_transform.cs index b1611141..cf5e9753 100644 --- a/src/Unity.Mathematics/affine_transform.cs +++ b/src/Unity.Mathematics/affine_transform.cs @@ -35,7 +35,7 @@ public AffineTransform(float3 t, float3x3 rs) [MethodImpl(MethodImplOptions.AggressiveInlining)] public AffineTransform(float3 t, quaternion r) { - this.rs = math.float3x3(r); + this.rs = float3x3(r); this.t = t; } @@ -75,10 +75,10 @@ public AffineTransform(float4x4 m) } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float3x4(AffineTransform m) { return new float3x4(m.rs.c0, m.rs.c1, m.rs.c2, m.t); } + public static implicit operator float3x4(AffineTransform m) { return float3x4(m.rs.c0, m.rs.c1, m.rs.c2, m.t); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static implicit operator float4x4(AffineTransform m) { return new float4x4(new float4(m.rs.c0, 0f), new float4(m.rs.c1, 0f), new float4(m.rs.c2, 0f), new float4(m.t, 1f)); } + public static implicit operator float4x4(AffineTransform m) { return float4x4(float4(m.rs.c0, 0f), float4(m.rs.c1, 0f), float4(m.rs.c2, 0f), float4(m.t, 1f)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool Equals(AffineTransform x) { return rs.Equals(x.rs) && t.Equals(x.t); } @@ -86,7 +86,7 @@ public AffineTransform(float4x4 m) public override bool Equals(object o) { return o is AffineTransform converted && Equals(converted); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override int GetHashCode() { return (int)math.hash(this); } + public override int GetHashCode() { return (int)hash(this); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() @@ -114,22 +114,22 @@ public static partial class math public static AffineTransform AffineTransform(float3 translation, quaternion rotation) { return AffineTransform(translation, rotation); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float3 translation, float3x3 rs) { return new AffineTransform(translation, rs); } + public static AffineTransform AffineTransform(float3 translation, float3x3 rs) { return AffineTransform(translation, rs); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float4x4 m) { return new AffineTransform(m); } + public static AffineTransform AffineTransform(float4x4 m) { return AffineTransform(m); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float3x4 m) { return new AffineTransform(m); } + public static AffineTransform AffineTransform(float3x4 m) { return AffineTransform(m); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float3 translation, quaternion rotation, float3 scale) { return new AffineTransform(translation, rotation, scale); } + public static AffineTransform AffineTransform(float3 translation, quaternion rotation, float3 scale) { return AffineTransform(translation, rotation, scale); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4x4 float4x4(AffineTransform transform) { return new float4x4(new float4(transform.rs.c0, 0f), new float4(transform.rs.c1, 0f), new float4(transform.rs.c2, 0f), new float4(transform.t, 1f)); } + public static float4x4 float4x4(AffineTransform transform) { return float4x4(float4(transform.rs.c0, 0f), float4(transform.rs.c1, 0f), float4(transform.rs.c2, 0f), float4(transform.t, 1f)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x4 float3x4(AffineTransform transform) { return new float3x4(transform.rs.c0, transform.rs.c1, transform.rs.c2, transform.t); } + public static float3x4 float3x4(AffineTransform transform) { return float3x4(transform.rs.c0, transform.rs.c1, transform.rs.c2, transform.t); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3 mul(AffineTransform a, float3 v) From f20390ffecd1723454daf199c97214c17eda141c Mon Sep 17 00:00:00 2001 From: Olivier Dionne Date: Fri, 14 Jan 2022 12:39:45 -0500 Subject: [PATCH 371/437] Add missing conversion methods --- src/Unity.Mathematics/affine_transform.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Unity.Mathematics/affine_transform.cs b/src/Unity.Mathematics/affine_transform.cs index cf5e9753..25d9d3d3 100644 --- a/src/Unity.Mathematics/affine_transform.cs +++ b/src/Unity.Mathematics/affine_transform.cs @@ -113,6 +113,9 @@ public static partial class math [MethodImpl(MethodImplOptions.AggressiveInlining)] public static AffineTransform AffineTransform(float3 translation, quaternion rotation) { return AffineTransform(translation, rotation); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static AffineTransform AffineTransform(float3 translation, quaternion rotation, float3 scale) { return AffineTransform(translation, rotation, scale); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static AffineTransform AffineTransform(float3 translation, float3x3 rs) { return AffineTransform(translation, rs); } @@ -123,7 +126,10 @@ public static partial class math public static AffineTransform AffineTransform(float3x4 m) { return AffineTransform(m); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float3 translation, quaternion rotation, float3 scale) { return AffineTransform(translation, rotation, scale); } + public static AffineTransform AffineTransform(float3x3 m) { return AffineTransform(m); } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static AffineTransform AffineTransform(RigidTransform m) { return AffineTransform(m); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(AffineTransform transform) { return float4x4(float4(transform.rs.c0, 0f), float4(transform.rs.c1, 0f), float4(transform.rs.c2, 0f), float4(transform.t, 1f)); } From c5f269ce26bbb8dcb3c130f2f62abfa758e2424d Mon Sep 17 00:00:00 2001 From: Olivier Dionne Date: Fri, 14 Jan 2022 13:01:44 -0500 Subject: [PATCH 372/437] adding tests --- src/Tests/Tests/Shared/TestAffineTransform.cs | 72 +++++++++++++++++++ .../Tests/Shared/TestAffineTransform.cs.meta | 11 +++ src/Unity.Mathematics/affine_transform.cs | 14 ++-- 3 files changed, 90 insertions(+), 7 deletions(-) create mode 100644 src/Tests/Tests/Shared/TestAffineTransform.cs create mode 100644 src/Tests/Tests/Shared/TestAffineTransform.cs.meta diff --git a/src/Tests/Tests/Shared/TestAffineTransform.cs b/src/Tests/Tests/Shared/TestAffineTransform.cs new file mode 100644 index 00000000..f3977e43 --- /dev/null +++ b/src/Tests/Tests/Shared/TestAffineTransform.cs @@ -0,0 +1,72 @@ +using NUnit.Framework; +using static Unity.Mathematics.math; +using Burst.Compiler.IL.Tests; + +namespace Unity.Mathematics.Tests +{ + [TestFixture] + class TestAffineTransform + { + [TestCompiler] + public static void affine_transform_inverse() + { + const float tolerance = 1e-6f; + + var tx = AffineTransform(float3(5, 6, 7), normalize(math.float4(1, 2, 3, 4)), float3(2, 3, 4)); + var invTx = inverse(tx); + + TestUtils.AreEqual(float4x4.identity, float4x4(mul(tx, invTx)), tolerance); + } + + [TestCompiler] + public static void affine_transform_inverse_zero_rs_returns_zero() + { + const float tolerance = 1e-30f; + + var tx = AffineTransform(float3(5, 6, 7), normalize(float4(1, 2, 3, 4)), float3.zero); + var invTx = inverse(tx); + + TestUtils.AreEqual(float4x4.zero, invTx, tolerance); + } + + [TestCompiler] + public static void affine_transform_inverse_pico_scale() + { + // slightly larger tolerance (vs 1e-6f) for PS4 + const float tolerance = 2e-6f; + + var tx = AffineTransform(float3(5, 6, 7), normalize(float4(1, 2, 3, 4)), float3(1e-12f, 1e-12f, 1e-12f)); + var invTx = inverse(tx); + + TestUtils.AreEqual(float4x4.identity, float4x4(mul(tx, invTx)), tolerance); + } + + [TestCompiler] + public static void affine_transform_inverse_singular() + { + // it needs a bit larger tolerance for singular + // since it uses the svd iterative solver + const float tolerance = 1e-1f; + + var tx = AffineTransform(float3(5, 6, 7), normalize(float4(1, 2, 3, 4)), float3(0, 3, 4)); + var invTx = inverse(tx); + + // pseudo inverse penrose #1 test + var testTx = mul(mul(tx, invTx), tx); + TestUtils.AreEqual(float4x4(tx), float4x4(testTx), tolerance); + } + + [TestCompiler] + public static void affine_transform_decompose() + { + const float tolerance = 1e-6f; + + var tx = AffineTransform(float3(5, 6, 7), normalize(float4(1, 2, 3, 4)), float3(2, 3, 4)); + decompose(tx, out var t, out var r, out var s); + + // Recompose matrix + var testTx = AffineTransform(t, r, s); + TestUtils.AreEqual(float4x4(tx), float4x4(testTx), tolerance); + } + } +} \ No newline at end of file diff --git a/src/Tests/Tests/Shared/TestAffineTransform.cs.meta b/src/Tests/Tests/Shared/TestAffineTransform.cs.meta new file mode 100644 index 00000000..01d27e82 --- /dev/null +++ b/src/Tests/Tests/Shared/TestAffineTransform.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 534e18de5e70ccf468bf46c917dfdac4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics/affine_transform.cs b/src/Unity.Mathematics/affine_transform.cs index 25d9d3d3..b4d740f8 100644 --- a/src/Unity.Mathematics/affine_transform.cs +++ b/src/Unity.Mathematics/affine_transform.cs @@ -111,25 +111,25 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float3 translation, quaternion rotation) { return AffineTransform(translation, rotation); } + public static AffineTransform AffineTransform(float3 translation, quaternion rotation) { return new AffineTransform(translation, rotation); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float3 translation, quaternion rotation, float3 scale) { return AffineTransform(translation, rotation, scale); } + public static AffineTransform AffineTransform(float3 translation, quaternion rotation, float3 scale) { return new AffineTransform(translation, rotation, scale); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float3 translation, float3x3 rs) { return AffineTransform(translation, rs); } + public static AffineTransform AffineTransform(float3 translation, float3x3 rs) { return new AffineTransform(translation, rs); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float4x4 m) { return AffineTransform(m); } + public static AffineTransform AffineTransform(float4x4 m) { return new AffineTransform(m); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float3x4 m) { return AffineTransform(m); } + public static AffineTransform AffineTransform(float3x4 m) { return new AffineTransform(m); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float3x3 m) { return AffineTransform(m); } + public static AffineTransform AffineTransform(float3x3 m) { return new AffineTransform(m); } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(RigidTransform m) { return AffineTransform(m); } + public static AffineTransform AffineTransform(RigidTransform m) { return new AffineTransform (m); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(AffineTransform transform) { return float4x4(float4(transform.rs.c0, 0f), float4(transform.rs.c1, 0f), float4(transform.rs.c2, 0f), float4(transform.t, 1f)); } From 886723f820aa28163aa0f962edee00fa33885428 Mon Sep 17 00:00:00 2001 From: Olivier Dionne Date: Fri, 14 Jan 2022 14:30:49 -0500 Subject: [PATCH 373/437] fix test --- src/Tests/Tests/Shared/TestAffineTransform.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tests/Tests/Shared/TestAffineTransform.cs b/src/Tests/Tests/Shared/TestAffineTransform.cs index f3977e43..0a2c9f5b 100644 --- a/src/Tests/Tests/Shared/TestAffineTransform.cs +++ b/src/Tests/Tests/Shared/TestAffineTransform.cs @@ -15,7 +15,7 @@ public static void affine_transform_inverse() var tx = AffineTransform(float3(5, 6, 7), normalize(math.float4(1, 2, 3, 4)), float3(2, 3, 4)); var invTx = inverse(tx); - TestUtils.AreEqual(float4x4.identity, float4x4(mul(tx, invTx)), tolerance); + TestUtils.AreEqual(float4x4.identity, mul(tx, invTx), tolerance); } [TestCompiler] @@ -26,7 +26,7 @@ public static void affine_transform_inverse_zero_rs_returns_zero() var tx = AffineTransform(float3(5, 6, 7), normalize(float4(1, 2, 3, 4)), float3.zero); var invTx = inverse(tx); - TestUtils.AreEqual(float4x4.zero, invTx, tolerance); + TestUtils.AreEqual(float3x4.zero, invTx, tolerance); } [TestCompiler] @@ -38,7 +38,7 @@ public static void affine_transform_inverse_pico_scale() var tx = AffineTransform(float3(5, 6, 7), normalize(float4(1, 2, 3, 4)), float3(1e-12f, 1e-12f, 1e-12f)); var invTx = inverse(tx); - TestUtils.AreEqual(float4x4.identity, float4x4(mul(tx, invTx)), tolerance); + TestUtils.AreEqual(float4x4.identity, mul(tx, invTx), tolerance); } [TestCompiler] From f86abb545cba4aace75afb1fce5f5fe06fa52ac1 Mon Sep 17 00:00:00 2001 From: Olivier Dionne Date: Fri, 14 Jan 2022 15:36:38 -0500 Subject: [PATCH 374/437] add docs --- src/Unity.Mathematics/affine_transform.cs | 179 ++++++++++++++++++---- 1 file changed, 150 insertions(+), 29 deletions(-) diff --git a/src/Unity.Mathematics/affine_transform.cs b/src/Unity.Mathematics/affine_transform.cs index b4d740f8..5b07fa7a 100644 --- a/src/Unity.Mathematics/affine_transform.cs +++ b/src/Unity.Mathematics/affine_transform.cs @@ -25,41 +25,57 @@ public struct AffineTransform : IEquatable, IFormattable /// An AffineTransform representing the identity transform. public static readonly AffineTransform identity = new AffineTransform(float3.zero, float3x3.identity); + /// Constructs an AffineTransform from a translation represented by a float3 vector and rotation represented by a unit quaternion. + /// The translation vector. + /// The rotation quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public AffineTransform(float3 t, float3x3 rs) + public AffineTransform(float3 translation, quaternion rotation) { - this.rs = rs; - this.t = t; + rs = float3x3(rotation); + t = translation; } + /// Constructs an AffineTransform from a translation represented by a float3 vector, rotation represented by a unit quaternion and scale represented by a float3 vector. + /// The translation vector. + /// The rotation quaternion. + /// The scale vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public AffineTransform(float3 t, quaternion r) + public AffineTransform(float3 translation, quaternion rotation, float3 scale) { - this.rs = float3x3(r); - this.t = t; + rs = svd.mulScale(math.float3x3(rotation), scale); + t = translation; } + /// Constructs an AffineTransform from a translation represented by float3 vector and a float3x3 matrix representing both rotation and scale. + /// The translation vector. + /// The rotation and scale matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public AffineTransform(float3 t, quaternion r, float3 s) + public AffineTransform(float3 translation, float3x3 rotationScale) { - this.rs = svd.mulScale(math.float3x3(r), s); - this.t = t; + rs = rotationScale; + t = translation; } + /// Constructs an AffineTransform from float3x3 matrix representating both rotation and scale. + /// The rotation and scale matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public AffineTransform(RigidTransform rigid) + public AffineTransform(float3x3 rotationScale) { - rs = math.float3x3(rigid.rot); - t = rigid.pos; + rs = rotationScale; + t = float3.zero; } + /// Constructs an AffineTransform from a RigidTransform. + /// The RigidTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public AffineTransform(float3x3 m) + public AffineTransform(RigidTransform rigid) { - rs = m; - t = float3.zero; + rs = math.float3x3(rigid.rot); + t = rigid.pos; } + /// Constructs an AffineTransform from a float3x4 matrix. + /// The float3x4 matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public AffineTransform(float3x4 m) { @@ -67,6 +83,8 @@ public AffineTransform(float3x4 m) t = m.c3; } + /// Constructs an AffineTransform from a float4x4 matrix. + /// The float4x4 matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] public AffineTransform(float4x4 m) { @@ -74,20 +92,34 @@ public AffineTransform(float4x4 m) t = m.c3.xyz; } + /// Implicit float3x4 cast operator. + /// The AffineTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x4(AffineTransform m) { return float3x4(m.rs.c0, m.rs.c1, m.rs.c2, m.t); } + /// Implicit float4x4 cast operator. + /// The AffineTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x4(AffineTransform m) { return float4x4(float4(m.rs.c0, 0f), float4(m.rs.c1, 0f), float4(m.rs.c2, 0f), float4(m.t, 1f)); } + /// Returns true if the AffineTransform is equal to a given AffineTransform, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public bool Equals(AffineTransform x) { return rs.Equals(x.rs) && t.Equals(x.t); } + public bool Equals(AffineTransform rhs) { return rs.Equals(rhs.rs) && t.Equals(rhs.t); } + /// Returns true if the AffineTransform is equal to a given AffineTransform, false otherwise. + /// Right hand side argument to compare equality with. + /// The result of the equality comparison. public override bool Equals(object o) { return o is AffineTransform converted && Equals(converted); } + /// Returns a hash code for the AffineTransform. + /// The computed hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override int GetHashCode() { return (int)hash(this); } + /// Returns a string representation of the AffineTransform. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public override string ToString() { @@ -96,6 +128,10 @@ public override string ToString() ); } + /// Returns a string representation of the AffineTransform using a specified format and culture-specific format information. + /// Format string to use during string formatting. + /// Format provider to use during string formatting. + /// String representation of the value. [MethodImpl(MethodImplOptions.AggressiveInlining)] public string ToString(string format, IFormatProvider formatProvider) { @@ -110,57 +146,127 @@ public string ToString(string format, IFormatProvider formatProvider) public static partial class math { + /// Returns an AffineTransform constructed from a translation represented by a float3 vector and rotation represented by a unit quaternion. + /// The AffineTransform translation. + /// The AffineTransform rotation. + /// The AffineTransform given the translation vector and rotation quaternion. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static AffineTransform AffineTransform(float3 translation, quaternion rotation) { return new AffineTransform(translation, rotation); } + /// Returns an AffineTransform constructed from a translation represented by a float3 vector, rotation represented by a unit quaternion and scale represented by a float3 vector. + /// The translation vector. + /// The rotation quaternion. + /// The scale vector. + /// The AffineTransform given the translation vector, rotation quaternion and scale vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static AffineTransform AffineTransform(float3 translation, quaternion rotation, float3 scale) { return new AffineTransform(translation, rotation, scale); } + /// Returns an AffineTransform constructed from a translation represented by float3 vector and a float3x3 matrix representing both rotation and scale. + /// The translation vector. + /// The rotation and scale matrix. + /// The AffineTransform given the translation vector and float3x3 matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float3 translation, float3x3 rs) { return new AffineTransform(translation, rs); } + public static AffineTransform AffineTransform(float3 translation, float3x3 rotationScale) { return new AffineTransform(translation, rotationScale); } + /// Returns an AffineTransform constructed from a float3x3 matrix representing both rotation and scale. + /// The rotation and scale matrix. + /// The AffineTransform given a float3x3 matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float4x4 m) { return new AffineTransform(m); } + public static AffineTransform AffineTransform(float3x3 rotationScale) { return new AffineTransform(rotationScale); } + /// Returns an AffineTransform constructed from a float4x4 matrix. + /// The float4x4 matrix. + /// The AffineTransform given a float4x4 matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float3x4 m) { return new AffineTransform(m); } + public static AffineTransform AffineTransform(float4x4 m) { return new AffineTransform(m); } + /// Returns an AffineTransform constructed from a float3x4 matrix. + /// The float3x4 matrix. + /// The AffineTransform given a float3x4 matrix. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(float3x3 m) { return new AffineTransform(m); } + public static AffineTransform AffineTransform(float3x4 m) { return new AffineTransform(m); } + /// Returns an AffineTransform constructed from a RigidTransform. + /// The RigidTransform. + /// The AffineTransform given a RigidTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform AffineTransform(RigidTransform m) { return new AffineTransform (m); } + public static AffineTransform AffineTransform(RigidTransform rigid) { return new AffineTransform (rigid); } + /// Returns a float4x4 matrix constructed from an AffineTransform. + /// The AffineTransform. + /// The float4x4 matrix given an AffineTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float4x4 float4x4(AffineTransform transform) { return float4x4(float4(transform.rs.c0, 0f), float4(transform.rs.c1, 0f), float4(transform.rs.c2, 0f), float4(transform.t, 1f)); } + /// Returns a float3x4 matrix constructed from an AffineTransform. + /// The AffineTransform. + /// The float3x4 matrix given an AffineTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float3x4 float3x4(AffineTransform transform) { return float3x4(transform.rs.c0, transform.rs.c1, transform.rs.c2, transform.t); } + /// Returns the result of transforming the AffineTransform b by the AffineTransform a. + /// The AffineTransform on the left. + /// The AffineTransform on the right. + /// The AffineTransform of a transforming b. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 mul(AffineTransform a, float3 v) + public static AffineTransform mul(AffineTransform a, AffineTransform b) { - return a.t + mul(a.rs, v); + return new AffineTransform(transform(a, b.t), mul(a.rs, b.rs)); } + /// Returns the result of transforming the AffineTransform b by a float3x3 matrix a. + /// The float3x3 matrix on the left. + /// The AffineTransform on the right. + /// The AffineTransform of a transforming b. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform mul(AffineTransform a, AffineTransform b) + public static AffineTransform mul(float3x3 a, AffineTransform b) + { + return new AffineTransform(mul(a, b.t), mul(a, b.rs)); + } + + /// Returns the result of transforming the float3x3 b by an AffineTransform a. + /// The AffineTransform on the left. + /// The float3x3 matrix on the right. + /// The AffineTransform of a transforming b. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static AffineTransform mul(AffineTransform a, float3x3 b) { - return new AffineTransform(mul(a, b.t), mul(a.rs, b.rs)); + return new AffineTransform(a.t, mul(b, a.rs)); } + /// Returns the result of transforming a float4 homogeneous coordinate by an AffineTransform. + /// The AffineTransform. + /// The position to be transformed. + /// The transformed position. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform mul(float3x3 rs, AffineTransform b) + public static float4 mul(AffineTransform a, float4 pos) { - return new AffineTransform(mul(rs, b.t), mul(rs, b.rs)); + return float4(mul(a.rs, pos.xyz) + a.t * pos.w, pos.w); } + /// Returns the result of rotating a float3 vector by an AffineTransform. + /// The AffineTransform. + /// The direction vector to rotate. + /// The rotated direction vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static AffineTransform mul(AffineTransform a, float3x3 rs) + public static float3 rotate(AffineTransform a, float3 dir) { - return new AffineTransform(a.t, mul(rs, a.rs)); + return mul(a.rs, dir); } + /// Returns the result of transforming a float3 point by an AffineTransform. + /// The AffineTransform. + /// The position to transform. + /// The transformed position. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3 transform(AffineTransform a, float3 pos) + { + return a.t + mul(a.rs, pos); + } + + /// Returns the inverse of an AffineTransform. + /// The AffineTransform to invert. + /// The inverse AffineTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static AffineTransform inverse(AffineTransform a) { @@ -170,6 +276,11 @@ public static AffineTransform inverse(AffineTransform a) return inv; } + /// Decomposes the AffineTransform in translation, rotation and scale. + /// The AffineTransform + /// The decomposed translation vector of the AffineTransform. + /// The decomposed rotation quaternion of the AffineTransform. + /// The decomposed scale of the AffineTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void decompose(AffineTransform a, out float3 translation, out quaternion rotation, out float3 scale) { @@ -179,12 +290,22 @@ public static void decompose(AffineTransform a, out float3 translation, out quat scale = float3(sm.c0.x, sm.c1.y, sm.c2.z); } + /// Returns a uint hash code of an AffineTransform. + /// The AffineTransform to hash. + /// The hash code of the input AffineTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint hash(AffineTransform a) { return hash(a.rs) + 0xC5C5394Bu * hash(a.t); } + /// + /// Returns a uint4 vector hash code of an AffineTransform. + /// When multiple elements are to be hashes together, it can more efficient to calculate and combine wide hash + /// that are only reduced to a narrow uint hash at the very end instead of at every step. + /// + /// The AffineTransform to hash. + /// The uint4 wide hash code. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint4 hashwide(AffineTransform a) { From 6c5d6934a234981bc590fa4a7b7cb2ecad83cd1c Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 19 Jan 2022 15:34:01 -0800 Subject: [PATCH 375/437] Add test to check rotation method with tiny scale. --- src/Tests/Tests/Shared/TestQuaternion.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Tests/Tests/Shared/TestQuaternion.cs b/src/Tests/Tests/Shared/TestQuaternion.cs index 301725ee..0aecebce 100644 --- a/src/Tests/Tests/Shared/TestQuaternion.cs +++ b/src/Tests/Tests/Shared/TestQuaternion.cs @@ -460,5 +460,17 @@ public static void quaternion_rotation_from_3x3_with_negative_nonuniform_scale() var actualQuaternion = rotation(m); TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_with_tiny_scale() + { + const float tolerance = 1e-5f; + var random = new Random(561887u); + var expectedQuaternion = random.NextQuaternionRotation(); + var m = new float3x3(expectedQuaternion); + m = mul(m, float3x3.Scale(1e-12f, 1e-12f, 1e-12f)); + var actualQuaternion = rotation(m); + TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); + } } } From 2ce73c7291a6b6bf9b49c049db222eace04ea5f6 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 19 Jan 2022 15:56:40 -0800 Subject: [PATCH 376/437] Add tests for mulScale and scaleMul. Also updated changelog. --- src/CHANGELOG.md | 3 +++ src/Tests/Tests/Shared/TestSvd.cs | 44 +++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 9ca6b8dd..2427dc67 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -8,6 +8,9 @@ * Added `math.chgsign` for float, float2, float3, and float4. * Added `math.Euler` to convert a quaternion to Euler angles. * Added `math.angle` to compute the angle between two unit quaternions. +* Added `math.rotation` to extract a quaternion rotation from a float3x3 (that may have scale). +* Added `svd.mulScale` to scale columns of a float3x3 with scaling coefficients in a float3. +* Added `svd.scaleMul` to scale rows of a float3x3 with scaling coefficients in a float3. ### Changed * `asfloat(uint)`, `asuint(float)`, `asint(float)` and other related methods are now faster in mono without Burst. Other methods which use these will see a performance improvement. * Modified `quaternion.nlerp` to be branchless. diff --git a/src/Tests/Tests/Shared/TestSvd.cs b/src/Tests/Tests/Shared/TestSvd.cs index a0191e31..d66c4968 100644 --- a/src/Tests/Tests/Shared/TestSvd.cs +++ b/src/Tests/Tests/Shared/TestSvd.cs @@ -181,5 +181,49 @@ public static void CanExtractSVDRotationFromFloat3x3With_ZeroScaleXY() TestUtils.AreEqual(0.0f, math.length(m0.c0 - m1.c0), k_SVDTolerance); } + + [TestCompiler] + public static void mulScale() + { + var tolerance = 1e-5f; + + // Random matrix. + var m = new float3x3( + 0.891724169254302978516f, 0.156217902898788452148f, 0.492261469364166259766f, + 0.562758803367614746094f, 0.00122839550022035837173f, 0.437942296266555786133f, + 0.2576503753662109375f, 0.200372591614723205566f, 0.515525519847869873047f); + + // Random scale. + var scale = new float3(0.235540181398391723633f, 0.215966641902923583984f, 0.533130943775177001953f); + var actual = svd.mulScale(m, scale); + var expected = new float3x3( + 0.210036873817443847656f, 0.0337378568947315216064f, 0.262439817190170288086f, + 0.132552310824394226074f, 0.000265292444964870810509f, 0.233480587601661682129f, + 0.0606870166957378387451f, 0.043273795396089553833f, 0.274842619895935058594f); + + TestUtils.AreEqual(expected, actual, 1e-5); + } + + [TestCompiler] + public static void scaleMul() + { + var tolerance = 1e-5f; + + // Random matrix, same as in mulScale test. + var m = new float3x3( + 0.891724169254302978516f, 0.156217902898788452148f, 0.492261469364166259766f, + 0.562758803367614746094f, 0.00122839550022035837173f, 0.437942296266555786133f, + 0.2576503753662109375f, 0.200372591614723205566f, 0.515525519847869873047f); + + // Random scale, same as in mulScale test. + var scale = new float3(0.235540181398391723633f, 0.215966641902923583984f, 0.533130943775177001953f); + var actual = svd.scaleMul(scale, m); + var expected = new float3x3( + 0.210036873817443847656f, 0.0367955937981605529785f, 0.115947358310222625732f, + 0.121537126600742340088f, 0.000265292444964870810509f, 0.0945809260010719299316f, + 0.137361392378807067871f, 0.106824830174446105957f, 0.274842619895935058594f); + + TestUtils.AreEqual(expected, actual, tolerance); + } } } \ No newline at end of file From aa34b549cd156877f2693941f434729cf6b97d4b Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 19 Jan 2022 16:15:24 -0800 Subject: [PATCH 377/437] Moved scaleMul and mulScale to math class. Also made svd class static. --- src/Tests/Tests/Shared/TestMath.cs | 44 ++++++++++++++++++++++++++ src/Tests/Tests/Shared/TestSvd.cs | 48 ++--------------------------- src/Unity.Mathematics/math.cs | 24 +++++++++++++++ src/Unity.Mathematics/matrix.cs | 4 +-- src/Unity.Mathematics/quaternion.cs | 4 +-- src/Unity.Mathematics/svd.cs | 22 ++----------- 6 files changed, 76 insertions(+), 70 deletions(-) diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index ee655b8a..6f5c03f9 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -4077,6 +4077,50 @@ static quaternion TestRefEulerToQuat(float3 angle, math.RotationOrder order) default: return quaternion(float4(1f)); } + } + + [TestCompiler] + public static void mulScale() + { + var tolerance = 1e-5f; + + // Random matrix. + var m = new float3x3( + 0.891724169254302978516f, 0.156217902898788452148f, 0.492261469364166259766f, + 0.562758803367614746094f, 0.00122839550022035837173f, 0.437942296266555786133f, + 0.2576503753662109375f, 0.200372591614723205566f, 0.515525519847869873047f); + + // Random scale. + var scale = new float3(0.235540181398391723633f, 0.215966641902923583984f, 0.533130943775177001953f); + var actual = math.mulScale(m, scale); + var expected = new float3x3( + 0.210036873817443847656f, 0.0337378568947315216064f, 0.262439817190170288086f, + 0.132552310824394226074f, 0.000265292444964870810509f, 0.233480587601661682129f, + 0.0606870166957378387451f, 0.043273795396089553833f, 0.274842619895935058594f); + + TestUtils.AreEqual(expected, actual, 1e-5); + } + + [TestCompiler] + public static void scaleMul() + { + var tolerance = 1e-5f; + + // Random matrix, same as in mulScale test. + var m = new float3x3( + 0.891724169254302978516f, 0.156217902898788452148f, 0.492261469364166259766f, + 0.562758803367614746094f, 0.00122839550022035837173f, 0.437942296266555786133f, + 0.2576503753662109375f, 0.200372591614723205566f, 0.515525519847869873047f); + + // Random scale, same as in mulScale test. + var scale = new float3(0.235540181398391723633f, 0.215966641902923583984f, 0.533130943775177001953f); + var actual = math.scaleMul(scale, m); + var expected = new float3x3( + 0.210036873817443847656f, 0.0367955937981605529785f, 0.115947358310222625732f, + 0.121537126600742340088f, 0.000265292444964870810509f, 0.0945809260010719299316f, + 0.137361392378807067871f, 0.106824830174446105957f, 0.274842619895935058594f); + + TestUtils.AreEqual(expected, actual, tolerance); } } } diff --git a/src/Tests/Tests/Shared/TestSvd.cs b/src/Tests/Tests/Shared/TestSvd.cs index d66c4968..f5ae195c 100644 --- a/src/Tests/Tests/Shared/TestSvd.cs +++ b/src/Tests/Tests/Shared/TestSvd.cs @@ -147,7 +147,7 @@ public static void CanSVDInverseFloat3x3With_LinearDependentRow() public static void CanSVDInverseFloat3x3With_RotatedZeroScale() { var m102030 = math.float3x3(quaternion.Euler(math.radians(10f), math.radians(20f), math.radians(30f))); - var parent = svd.mulScale(m102030, math.float3(1f, 1f, 0f)); + var parent = math.mulScale(m102030, math.float3(1f, 1f, 0f)); var mat = math.mul(parent, m102030); ValidateSingular(mat); @@ -175,55 +175,11 @@ public static void CanExtractSVDRotationFromFloat3x3With_ZeroScaleXY() { var q0 = quaternion.Euler(math.radians(10f), math.radians(20f), math.radians(30f)); var m0 = math.float3x3(q0); - var m0Scaled = svd.mulScale(m0, math.float3(1f, 0f, 0f)); + var m0Scaled = math.mulScale(m0, math.float3(1f, 0f, 0f)); var q1 = svd.svdRotation(m0Scaled); var m1 = math.float3x3(q1); TestUtils.AreEqual(0.0f, math.length(m0.c0 - m1.c0), k_SVDTolerance); } - - [TestCompiler] - public static void mulScale() - { - var tolerance = 1e-5f; - - // Random matrix. - var m = new float3x3( - 0.891724169254302978516f, 0.156217902898788452148f, 0.492261469364166259766f, - 0.562758803367614746094f, 0.00122839550022035837173f, 0.437942296266555786133f, - 0.2576503753662109375f, 0.200372591614723205566f, 0.515525519847869873047f); - - // Random scale. - var scale = new float3(0.235540181398391723633f, 0.215966641902923583984f, 0.533130943775177001953f); - var actual = svd.mulScale(m, scale); - var expected = new float3x3( - 0.210036873817443847656f, 0.0337378568947315216064f, 0.262439817190170288086f, - 0.132552310824394226074f, 0.000265292444964870810509f, 0.233480587601661682129f, - 0.0606870166957378387451f, 0.043273795396089553833f, 0.274842619895935058594f); - - TestUtils.AreEqual(expected, actual, 1e-5); - } - - [TestCompiler] - public static void scaleMul() - { - var tolerance = 1e-5f; - - // Random matrix, same as in mulScale test. - var m = new float3x3( - 0.891724169254302978516f, 0.156217902898788452148f, 0.492261469364166259766f, - 0.562758803367614746094f, 0.00122839550022035837173f, 0.437942296266555786133f, - 0.2576503753662109375f, 0.200372591614723205566f, 0.515525519847869873047f); - - // Random scale, same as in mulScale test. - var scale = new float3(0.235540181398391723633f, 0.215966641902923583984f, 0.533130943775177001953f); - var actual = svd.scaleMul(scale, m); - var expected = new float3x3( - 0.210036873817443847656f, 0.0367955937981605529785f, 0.115947358310222625732f, - 0.121537126600742340088f, 0.000265292444964870810509f, 0.0945809260010719299316f, - 0.137361392378807067871f, 0.106824830174446105957f, 0.274842619895935058594f); - - TestUtils.AreEqual(expected, actual, tolerance); - } } } \ No newline at end of file diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 016cc971..f2d1b285 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -7017,6 +7017,30 @@ public static float3 Euler(quaternion q, math.RotationOrder order = math.Rotatio } } + /// + /// Matrix columns multiplied by scale components + /// m.c0.x * s.x | m.c1.x * s.y | m.c2.x * s.z + /// m.c0.y * s.x | m.c1.y * s.y | m.c2.y * s.z + /// m.c0.z * s.x | m.c1.z * s.y | m.c2.z * s.z + /// + /// Matrix to scale. + /// Scaling coefficients for each column. + /// The scaled matrix. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 mulScale(float3x3 m, float3 s) => new float3x3(m.c0 * s.x, m.c1 * s.y, m.c2 * s.z); + + /// + /// Matrix rows multiplied by scale components + /// m.c0.x * s.x | m.c1.x * s.x | m.c2.x * s.x + /// m.c0.y * s.y | m.c1.y * s.y | m.c2.y * s.y + /// m.c0.z * s.z | m.c1.z * s.z | m.c2.z * s.z + /// + /// Scaling coefficients for each row. + /// Matrix to scale. + /// The scaled matrix. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 scaleMul(float3 s, float3x3 m) => new float3x3(m.c0 * s, m.c1 * s, m.c2 * s); + // Internal // SSE shuffles diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index 6589eb1b..449c7e36 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -1103,13 +1103,13 @@ public static float3x3 pseudoinverse(float3x3 m) return Mathematics.float3x3.zero; float3 scaleInv = math.rsqrt(scaleSq); - float3x3 ms = svd.mulScale(m, scaleInv); + float3x3 ms = mulScale(m, scaleInv); if (!adjInverse(ms, out float3x3 i, svd.k_EpsilonDeterminant)) { i = svd.svdInverse(ms); } - return svd.mulScale(i, scaleInv); + return mulScale(i, scaleInv); } } } diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index 15007f7d..8eee529d 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -724,7 +724,7 @@ public static quaternion rotation(float3x3 m) if (math.abs(det) > svd.k_EpsilonDeterminant) { - float3x3 tmp = svd.mulScale(m, math.rsqrt(math.float3(math.lengthsq(m.c0), math.lengthsq(m.c1), math.lengthsq(m.c2)))); + float3x3 tmp = mulScale(m, math.rsqrt(math.float3(math.lengthsq(m.c0), math.lengthsq(m.c1), math.lengthsq(m.c2)))); if (math.abs(1f - math.determinant(tmp)) < svd.k_EpsilonDeterminant) return math.quaternion(tmp); } @@ -750,7 +750,7 @@ static bool adjInverse(float3x3 m, out float3x3 i, float epsilon = svd.k_Epsilon i = adj(m, out float det); bool c = math.abs(det) > epsilon; float3 detInv = math.select(math.float3(1f), math.rcp(det), c); - i = svd.scaleMul(detInv, i); + i = scaleMul(detInv, i); return c; } diff --git a/src/Unity.Mathematics/svd.cs b/src/Unity.Mathematics/svd.cs index 2ff93d38..b0a32112 100644 --- a/src/Unity.Mathematics/svd.cs +++ b/src/Unity.Mathematics/svd.cs @@ -7,7 +7,7 @@ namespace Unity.Mathematics // Computing the singular value decomposition of 3x3 matrices with minimal branching and elementary floating point operations, // A.McAdams, A.Selle, R.Tamstorf, J.Teran and E.Sifakis, University of Wisconsin - Madison technical report TR1690, May 2011 [Il2CppEagerStaticClassConstruction] - class svd + static class svd { [MethodImpl(MethodImplOptions.AggressiveInlining)] static void condSwap(bool c, ref float x, ref float y) @@ -146,24 +146,6 @@ static float3 singularValuesDecomposition(float3x3 a, out quaternion u, out quat public const float k_EpsilonNormalSqrt = 1e-15f; public const float k_EpsilonNormal = 1e-30f; - /// - /// Matrix columns multiplied by scale components - /// m.c0.x * s.x | m.c1.x * s.y | m.c2.x * s.z - /// m.c0.y * s.x | m.c1.y * s.y | m.c2.y * s.z - /// m.c0.z * s.x | m.c1.z * s.y | m.c2.z * s.z - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 mulScale(float3x3 m, float3 s) => new float3x3(m.c0 * s.x, m.c1 * s.y, m.c2 * s.z); - - /// - /// Matrix rows multiplied by scale components - /// m.c0.x * s.x | m.c1.x * s.x | m.c2.x * s.x - /// m.c0.y * s.y | m.c1.y * s.y | m.c2.y * s.y - /// m.c0.z * s.z | m.c1.z * s.z | m.c2.z * s.z - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3x3 scaleMul(float3 s, float3x3 m) => new float3x3(m.c0 * s, m.c1 * s, m.c2 * s); - [MethodImpl(MethodImplOptions.AggressiveInlining)] static float3 rcpsafe(float3 x, float epsilon = k_EpsilonRCP) => math.select(math.rcp(x), float3.zero, math.abs(x) < epsilon); @@ -175,7 +157,7 @@ internal static float3x3 svdInverse(float3x3 a) var um = math.float3x3(u); var vm = math.float3x3(v); - return math.mul(vm, scaleMul(rcpsafe(e, k_EpsilonDeterminant), math.transpose(um))); + return math.mul(vm, math.scaleMul(rcpsafe(e, k_EpsilonDeterminant), math.transpose(um))); } [MethodImpl(MethodImplOptions.AggressiveInlining)] From 9073b5bd683e0f80951136ee19f30a1739461346 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 19 Jan 2022 16:17:39 -0800 Subject: [PATCH 378/437] Update changelog to reflect code movement. --- src/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 2427dc67..46c7a0e3 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -9,8 +9,8 @@ * Added `math.Euler` to convert a quaternion to Euler angles. * Added `math.angle` to compute the angle between two unit quaternions. * Added `math.rotation` to extract a quaternion rotation from a float3x3 (that may have scale). -* Added `svd.mulScale` to scale columns of a float3x3 with scaling coefficients in a float3. -* Added `svd.scaleMul` to scale rows of a float3x3 with scaling coefficients in a float3. +* Added `math.mulScale` to scale columns of a float3x3 with scaling coefficients in a float3. +* Added `math.scaleMul` to scale rows of a float3x3 with scaling coefficients in a float3. ### Changed * `asfloat(uint)`, `asuint(float)`, `asint(float)` and other related methods are now faster in mono without Burst. Other methods which use these will see a performance improvement. * Modified `quaternion.nlerp` to be branchless. From 9439a38b463fc3e8f1f6ec20ae6c6449fcaed462 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 19 Jan 2022 16:19:44 -0800 Subject: [PATCH 379/437] Whitespace fix. --- src/Tests/Tests/Shared/TestMath.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index 6f5c03f9..1c42283a 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -4079,7 +4079,7 @@ static quaternion TestRefEulerToQuat(float3 angle, math.RotationOrder order) } } - [TestCompiler] + [TestCompiler] public static void mulScale() { var tolerance = 1e-5f; From a4829f42138969e38b339e4bc4d78e06ae0a2ece Mon Sep 17 00:00:00 2001 From: Olivier Dionne Date: Thu, 20 Jan 2022 12:55:45 -0500 Subject: [PATCH 380/437] Fix merge conflict --- src/Unity.Mathematics/affine_transform.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Unity.Mathematics/affine_transform.cs b/src/Unity.Mathematics/affine_transform.cs index 5b07fa7a..33567b92 100644 --- a/src/Unity.Mathematics/affine_transform.cs +++ b/src/Unity.Mathematics/affine_transform.cs @@ -42,7 +42,7 @@ public AffineTransform(float3 translation, quaternion rotation) [MethodImpl(MethodImplOptions.AggressiveInlining)] public AffineTransform(float3 translation, quaternion rotation, float3 scale) { - rs = svd.mulScale(math.float3x3(rotation), scale); + rs = mulScale(math.float3x3(rotation), scale); t = translation; } From 8fd17c4cb61024f2263992d83be3d0cdfae47862 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Tue, 25 Jan 2022 15:47:14 -0800 Subject: [PATCH 381/437] Copy SVD implementation from Unity.Animation (#210) --- src/CHANGELOG.md | 3 + src/Tests/Tests/Shared/TestMath.cs | 44 +++++ src/Tests/Tests/Shared/TestMatrix.cs | 41 ++++ src/Tests/Tests/Shared/TestQuaternion.cs | 80 ++++++++ src/Tests/Tests/Shared/TestSvd.cs | 185 ++++++++++++++++++ src/Tests/Tests/Shared/TestSvd.cs.meta | 11 ++ src/Tests/Unity.Mathematics.Tests.csproj | 2 + .../VectorGenerator.cs | 3 + .../TestInverse.gen.cs | 84 ++++++++ .../Unity.Mathematics.csproj | 1 + src/Unity.Mathematics/math.cs | 24 +++ src/Unity.Mathematics/matrix.cs | 22 +++ src/Unity.Mathematics/quaternion.cs | 46 ++++- src/Unity.Mathematics/svd.cs | 170 ++++++++++++++++ src/Unity.Mathematics/svd.cs.meta | 11 ++ 15 files changed, 726 insertions(+), 1 deletion(-) create mode 100644 src/Tests/Tests/Shared/TestSvd.cs create mode 100644 src/Tests/Tests/Shared/TestSvd.cs.meta create mode 100644 src/Unity.Mathematics/svd.cs create mode 100644 src/Unity.Mathematics/svd.cs.meta diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 9ca6b8dd..46c7a0e3 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -8,6 +8,9 @@ * Added `math.chgsign` for float, float2, float3, and float4. * Added `math.Euler` to convert a quaternion to Euler angles. * Added `math.angle` to compute the angle between two unit quaternions. +* Added `math.rotation` to extract a quaternion rotation from a float3x3 (that may have scale). +* Added `math.mulScale` to scale columns of a float3x3 with scaling coefficients in a float3. +* Added `math.scaleMul` to scale rows of a float3x3 with scaling coefficients in a float3. ### Changed * `asfloat(uint)`, `asuint(float)`, `asint(float)` and other related methods are now faster in mono without Burst. Other methods which use these will see a performance improvement. * Modified `quaternion.nlerp` to be branchless. diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index ee655b8a..1c42283a 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -4078,5 +4078,49 @@ static quaternion TestRefEulerToQuat(float3 angle, math.RotationOrder order) return quaternion(float4(1f)); } } + + [TestCompiler] + public static void mulScale() + { + var tolerance = 1e-5f; + + // Random matrix. + var m = new float3x3( + 0.891724169254302978516f, 0.156217902898788452148f, 0.492261469364166259766f, + 0.562758803367614746094f, 0.00122839550022035837173f, 0.437942296266555786133f, + 0.2576503753662109375f, 0.200372591614723205566f, 0.515525519847869873047f); + + // Random scale. + var scale = new float3(0.235540181398391723633f, 0.215966641902923583984f, 0.533130943775177001953f); + var actual = math.mulScale(m, scale); + var expected = new float3x3( + 0.210036873817443847656f, 0.0337378568947315216064f, 0.262439817190170288086f, + 0.132552310824394226074f, 0.000265292444964870810509f, 0.233480587601661682129f, + 0.0606870166957378387451f, 0.043273795396089553833f, 0.274842619895935058594f); + + TestUtils.AreEqual(expected, actual, 1e-5); + } + + [TestCompiler] + public static void scaleMul() + { + var tolerance = 1e-5f; + + // Random matrix, same as in mulScale test. + var m = new float3x3( + 0.891724169254302978516f, 0.156217902898788452148f, 0.492261469364166259766f, + 0.562758803367614746094f, 0.00122839550022035837173f, 0.437942296266555786133f, + 0.2576503753662109375f, 0.200372591614723205566f, 0.515525519847869873047f); + + // Random scale, same as in mulScale test. + var scale = new float3(0.235540181398391723633f, 0.215966641902923583984f, 0.533130943775177001953f); + var actual = math.scaleMul(scale, m); + var expected = new float3x3( + 0.210036873817443847656f, 0.0367955937981605529785f, 0.115947358310222625732f, + 0.121537126600742340088f, 0.000265292444964870810509f, 0.0945809260010719299316f, + 0.137361392378807067871f, 0.106824830174446105957f, 0.274842619895935058594f); + + TestUtils.AreEqual(expected, actual, tolerance); + } } } diff --git a/src/Tests/Tests/Shared/TestMatrix.cs b/src/Tests/Tests/Shared/TestMatrix.cs index 5bc45842..558ce482 100644 --- a/src/Tests/Tests/Shared/TestMatrix.cs +++ b/src/Tests/Tests/Shared/TestMatrix.cs @@ -1169,5 +1169,46 @@ public static void float3x3_from_float4x4_without_new() TestUtils.AreEqual(expected, float3x3(f4x4)); } + + [TestCompiler] + public static void float3x3_pseudoinverse_non_singular() + { + const float kTolerance = 1e-5f; + + // A random 3x3 matrix, non-singular, generated from octave. + var a = new float3x3( + 0.806710600852966308594f, 0.985506594181060791016f, 0.593669593334197998047f, + 0.0869068726897239685059f, 0.754145503044128417969f, 0.222692146897315979004f, + 0.917483031749725341797f, 0.443894535303115844727f, 0.138771042227745056152f); + + // The regular inverse of a, as computed by octave. + var expected = new float3x3( + -0.0299495235085487365723f, -0.654392063617706298828f, 1.17825806140899658203f, + -0.992458224296569824219f, 2.23384380340576171875f, 0.661037027835845947266f, + 3.37264156341552734375f, -2.81901407241821289063f, -2.69841933250427246094f); + + TestUtils.AreEqual(expected, pseudoinverse(a), kTolerance); + TestUtils.AreEqual(expected, inverse(a), kTolerance); + } + + [TestCompiler] + public static void float3x3_pseudoinverse_singular() + { + const float kTolerance = 1e-5f; + + // A singular matrix. + var a = new float3x3( + 0.0548239313066005706787f, 0.462397903203964233398f, 0.0501357726752758026123f, + 0.0548239313066005706787f, 0.462397903203964233398f, 0.0501357726752758026123f, + 0.938165545463562011719f, 0.542225778102874755859f, 0.10684439539909362793f); + + // The pseudoinverse computed by octave. + var expected = new float3x3( + -0.675357639789581298828f, -0.675357699394226074219f, 1.14166188240051269531f, + 1.15268361568450927734f, 1.15268361568450927734f, -0.140613287687301635742f, + 0.0803283303976058959961f, 0.0803283303976058959961f, 0.0484490357339382171631f); + + TestUtils.AreEqual(expected, pseudoinverse(a), kTolerance); + } } } diff --git a/src/Tests/Tests/Shared/TestQuaternion.cs b/src/Tests/Tests/Shared/TestQuaternion.cs index 5f531b0e..301725ee 100644 --- a/src/Tests/Tests/Shared/TestQuaternion.cs +++ b/src/Tests/Tests/Shared/TestQuaternion.cs @@ -380,5 +380,85 @@ public static void quaternion_angle() angle = math.angle(q, nq); TestUtils.AreEqual(0f, angle); } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_identity() + { + const float tolerance = 1e-5f; + var q = rotation(float3x3.identity); + TestUtils.AreEqual(quaternion.identity, q, tolerance); + } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_with_uniform_scale() + { + const float tolerance = 1e-5f; + var random = new Random(6173u); + var expectedQuaternion = random.NextQuaternionRotation(); + var m = new float3x3(expectedQuaternion); + m = mul(m, float3x3.Scale(5.18f)); + var actualQuaternion = rotation(m); + TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); + } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_with_nonuniform_scale() + { + const float tolerance = 1e-5f; + var m = new float3x3( + 2.0f, 0.0f, 0.0f, + 0.0f, 1.5f, 0.0f, + 0.0f, 0.0f, 3.1f); + var q = rotation(m); + TestUtils.AreEqual(quaternion.identity, q, tolerance); + } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_with_negative_scale_x() + { + const float tolerance = 1e-5f; + var random = new Random(281u); + var expectedQuaternion = random.NextQuaternionRotation(); + var m = new float3x3(expectedQuaternion); + m = mul(m, float3x3.Scale(-1.5f, 0.2f, 51.281f)); + var actualQuaternion = rotation(m); + TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); + } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_with_negative_scale_y() + { + const float tolerance = 1e-5f; + var random = new Random(10000u); + var expectedQuaternion = random.NextQuaternionRotation(); + var m = new float3x3(expectedQuaternion); + m = mul(m, float3x3.Scale(1.5f, -0.2f, 51.281f)); + var actualQuaternion = rotation(m); + TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); + } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_with_negative_scale_z() + { + const float tolerance = 1e-5f; + var random = new Random(9891712u); + var expectedQuaternion = random.NextQuaternionRotation(); + var m = new float3x3(expectedQuaternion); + m = mul(m, float3x3.Scale(1.5f, 0.2f, -51.281f)); + var actualQuaternion = rotation(m); + TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); + } + + [TestCompiler] + public static void quaternion_rotation_from_3x3_with_negative_nonuniform_scale() + { + const float tolerance = 1e-5f; + var random = new Random(912u); + var expectedQuaternion = random.NextQuaternionRotation(); + var m = new float3x3(expectedQuaternion); + m = mul(m, float3x3.Scale(-1.5f, -0.2f, -51.281f)); + var actualQuaternion = rotation(m); + TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); + } } } diff --git a/src/Tests/Tests/Shared/TestSvd.cs b/src/Tests/Tests/Shared/TestSvd.cs new file mode 100644 index 00000000..f5ae195c --- /dev/null +++ b/src/Tests/Tests/Shared/TestSvd.cs @@ -0,0 +1,185 @@ +using System.Collections.Generic; +using NUnit.Framework; +using Burst.Compiler.IL.Tests; + +namespace Unity.Mathematics.Tests +{ + [TestFixture] + public class TestSvd + { + const float k_SVDTolerance = 1e-4f; + + static bool QuaternionEquals(quaternion expected, quaternion actual, float tolerance) => + (math.lengthsq(expected) == 0f && math.lengthsq(actual) == 0f) || math.abs(math.dot(expected, actual)) > (1f - tolerance); + + // Validate Penrose condition that [aba = a] + static void ValidatePenrose1(in float3x3 a, in float3x3 b) + { + var testA = math.mul(math.mul(a, b), a); + + TestUtils.AreEqual(a.c0.x, testA.c0.x, k_SVDTolerance); + TestUtils.AreEqual(a.c0.y, testA.c0.y, k_SVDTolerance); + TestUtils.AreEqual(a.c0.z, testA.c0.z, k_SVDTolerance); + TestUtils.AreEqual(a.c1.x, testA.c1.x, k_SVDTolerance); + TestUtils.AreEqual(a.c1.y, testA.c1.y, k_SVDTolerance); + TestUtils.AreEqual(a.c1.z, testA.c1.z, k_SVDTolerance); + TestUtils.AreEqual(a.c2.x, testA.c2.x, k_SVDTolerance); + TestUtils.AreEqual(a.c2.y, testA.c2.y, k_SVDTolerance); + TestUtils.AreEqual(a.c2.z, testA.c2.z, k_SVDTolerance); + } + + // Validate Penrose condition that [transpose(ab) = ab] + static void ValidatePenrose2(in float3x3 a, in float3x3 b) + { + var ab = math.mul(a, b); + var testAB = math.transpose(ab); + + TestUtils.AreEqual(ab.c0.x, testAB.c0.x, k_SVDTolerance); + TestUtils.AreEqual(ab.c0.y, testAB.c0.y, k_SVDTolerance); + TestUtils.AreEqual(ab.c0.z, testAB.c0.z, k_SVDTolerance); + TestUtils.AreEqual(ab.c1.x, testAB.c1.x, k_SVDTolerance); + TestUtils.AreEqual(ab.c1.y, testAB.c1.y, k_SVDTolerance); + TestUtils.AreEqual(ab.c1.z, testAB.c1.z, k_SVDTolerance); + TestUtils.AreEqual(ab.c2.x, testAB.c2.x, k_SVDTolerance); + TestUtils.AreEqual(ab.c2.y, testAB.c2.y, k_SVDTolerance); + TestUtils.AreEqual(ab.c2.z, testAB.c2.z, k_SVDTolerance); + } + + static void ValidateSingular(in float3x3 a) => + TestUtils.AreEqual(0.0f, math.determinant(a), k_SVDTolerance); + + [TestCompiler] + public static void CanSVDInverseNonSingularFloat3x3() + { + var mat = math.float3x3( + math.float3(9f, 1f, 2f), + math.float3(3f, 8f, 4f), + math.float3(5f, 6f, 7f) + ); + + var inv = svd.svdInverse(mat); + var testIdentity = math.mul(mat, inv); + + TestUtils.AreEqual(1f, testIdentity.c0.x, k_SVDTolerance); + TestUtils.AreEqual(0f, testIdentity.c0.y, k_SVDTolerance); + TestUtils.AreEqual(0f, testIdentity.c0.z, k_SVDTolerance); + TestUtils.AreEqual(0f, testIdentity.c1.x, k_SVDTolerance); + TestUtils.AreEqual(1f, testIdentity.c1.y, k_SVDTolerance); + TestUtils.AreEqual(0f, testIdentity.c1.z, k_SVDTolerance); + TestUtils.AreEqual(0f, testIdentity.c2.x, k_SVDTolerance); + TestUtils.AreEqual(0f, testIdentity.c2.y, k_SVDTolerance); + TestUtils.AreEqual(1f, testIdentity.c2.z, k_SVDTolerance); + } + + [TestCompiler] + public static void CanSVDInverseFloat3x3With_NullColumn() + { + var mat = math.float3x3( + math.float3(9f, 1f, 0f), + math.float3(3f, 8f, 0f), + math.float3(5f, 6f, 0f) + ); + + ValidateSingular(mat); + var inv = svd.svdInverse(mat); + + ValidatePenrose1(mat, inv); + ValidatePenrose1(inv, mat); + ValidatePenrose2(mat, inv); + ValidatePenrose2(inv, mat); + } + + [TestCompiler] + public static void CanSVDInverseFloat3x3With_NullRow() + { + var mat = math.float3x3( + math.float3(9f, 1f, 2f), + math.float3(0f, 0f, 0f), + math.float3(5f, 6f, 7f) + ); + + ValidateSingular(mat); + var inv = svd.svdInverse(mat); + + ValidatePenrose1(mat, inv); + ValidatePenrose1(inv, mat); + ValidatePenrose2(mat, inv); + ValidatePenrose2(inv, mat); + } + + [TestCompiler] + public static void CanSVDInverseFloat3x3With_LinearDependentColumn() + { + var mat = math.float3x3( + math.float3(9f, 4f, 2f), + math.float3(3f, 8f, 4f), + math.float3(5f, 14f, 7f) + ); + + ValidateSingular(mat); + var inv = svd.svdInverse(mat); + + ValidatePenrose1(mat, inv); + ValidatePenrose1(inv, mat); + ValidatePenrose2(mat, inv); + ValidatePenrose2(inv, mat); + } + + [TestCompiler] + public static void CanSVDInverseFloat3x3With_LinearDependentRow() + { + var mat = math.float3x3( + math.float3(9f, 1f, 2f), + math.float3(10f, 12f, 14f), + math.float3(5f, 6f, 7f) + ); + + ValidateSingular(mat); + var inv = svd.svdInverse(mat); + + ValidatePenrose1(mat, inv); + ValidatePenrose1(inv, mat); + ValidatePenrose2(mat, inv); + ValidatePenrose2(inv, mat); + } + + [TestCompiler] + public static void CanSVDInverseFloat3x3With_RotatedZeroScale() + { + var m102030 = math.float3x3(quaternion.Euler(math.radians(10f), math.radians(20f), math.radians(30f))); + var parent = math.mulScale(m102030, math.float3(1f, 1f, 0f)); + var mat = math.mul(parent, m102030); + + ValidateSingular(mat); + var inv = svd.svdInverse(mat); + + ValidatePenrose1(mat, inv); + ValidatePenrose1(inv, mat); + ValidatePenrose2(mat, inv); + ValidatePenrose2(inv, mat); + } + + // Case 928598: The errors appear, when GameObject has a child with ParticleSystem which is rotated along the y-axis to -180 and is moved + [TestCompiler] + public static void CanExtractSVDRotationFromFloat3x3With_X180_Y0_Z181() + { + var q = quaternion.Euler(math.radians(180f), math.radians(0f), math.radians(181f)); + var qSVD = svd.svdRotation(math.float3x3(q)); + + TestUtils.IsTrue(QuaternionEquals(q, qSVD, k_SVDTolerance)); + } + + // Case 938548: Assertion failed on expression: 'CompareApproximately(det, 1.0F, .005f)' when scaling system to 0 on at least 2 axes + [TestCompiler] + public static void CanExtractSVDRotationFromFloat3x3With_ZeroScaleXY() + { + var q0 = quaternion.Euler(math.radians(10f), math.radians(20f), math.radians(30f)); + var m0 = math.float3x3(q0); + var m0Scaled = math.mulScale(m0, math.float3(1f, 0f, 0f)); + var q1 = svd.svdRotation(m0Scaled); + var m1 = math.float3x3(q1); + + TestUtils.AreEqual(0.0f, math.length(m0.c0 - m1.c0), k_SVDTolerance); + } + } +} \ No newline at end of file diff --git a/src/Tests/Tests/Shared/TestSvd.cs.meta b/src/Tests/Tests/Shared/TestSvd.cs.meta new file mode 100644 index 00000000..824a25f5 --- /dev/null +++ b/src/Tests/Tests/Shared/TestSvd.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8218cb7d87dac4432871cd5bd00fd333 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Tests/Unity.Mathematics.Tests.csproj b/src/Tests/Unity.Mathematics.Tests.csproj index 4ca36bde..d6fe8748 100644 --- a/src/Tests/Unity.Mathematics.Tests.csproj +++ b/src/Tests/Unity.Mathematics.Tests.csproj @@ -12,6 +12,7 @@ v4.7.1 512 + latest true @@ -106,6 +107,7 @@ + diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs index 87f7fbb0..a6c203b3 100644 --- a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen/VectorGenerator.cs @@ -3224,6 +3224,9 @@ void GenerateInversePerformanceTests(StringBuilder str) GeneratePerformanceTest(str, "quaternion_inverse", new PerformanceTestArrayArgument[] { new PerformanceTestArrayArgument { m_ElementType = "quaternion", m_MemberName = "q", m_ElementInitializer = "quaternion.identity" }, }, "args.q[i] = math.inverse(args.q[i]);", 10000); + GeneratePerformanceTest(str, "pseudoinverse", new PerformanceTestArrayArgument[] { + new PerformanceTestArrayArgument { m_ElementType = "float3x3", m_MemberName = "m", m_ElementInitializer = "new float3x3(0.054824f, 0.462398f, 0.050136f, 0.054824f, 0.462398f, 0.050136f, 0.938166f, 0.542226f, 0.106844f)" }, + }, "args.m[i] = math.pseudoinverse(args.m[i]);", 1000); EndPerformanceTestCodeGen(str); } diff --git a/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs b/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs index 1359b2a3..26bfc7da 100644 --- a/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs +++ b/src/Unity.Mathematics.PerformanceTests/TestInverse.gen.cs @@ -596,6 +596,90 @@ public void quaternion_inverse_burst() var args = new quaternion_inverse.Arguments(); args.Init(); + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(burstSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + [BurstCompile(CompileSynchronously = true)] + public unsafe class pseudoinverse + { + public const int iterations = 1000; + + public struct Arguments : IDisposable + { + public Random rng; + public float3x3* m; + + public void Init() + { + rng = new Random(1); + m = (float3x3*)UnsafeUtility.Malloc(UnsafeUtility.SizeOf() * iterations, UnsafeUtility.AlignOf(), Allocator.Persistent); + for (int i = 0; i < iterations; ++i) + { + m[i] = new float3x3(0.054824f, 0.462398f, 0.050136f, 0.054824f, 0.462398f, 0.050136f, 0.938166f, 0.542226f, 0.106844f); + } + + } + + public void Dispose() + { + UnsafeUtility.Free(m, Allocator.Persistent); + } + } + + public static void CommonTestFunction(ref Arguments args) + { + for (int i = 0; i < iterations; ++i) + { + args.m[i] = math.pseudoinverse(args.m[i]); + } + } + + public static void MonoTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + [BurstCompile(CompileSynchronously = true)] + public static void BurstTestFunction(ref Arguments args) + { + CommonTestFunction(ref args); + } + + public delegate void TestFunction(ref Arguments args); + } + + [Test, Performance] + public void pseudoinverse_mono() + { + pseudoinverse.TestFunction testFunction = pseudoinverse.MonoTestFunction; + var args = new pseudoinverse.Arguments(); + args.Init(); + + var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => + { + testFunction.Invoke(ref args); + }) + .SampleGroup(monoSampleGroup) + .WarmupCount(1) + .MeasurementCount(10) + .Run(); + args.Dispose(); + } + + [Test, Performance] + public void pseudoinverse_burst() + { + FunctionPointer testFunction = BurstCompiler.CompileFunctionPointer(pseudoinverse.BurstTestFunction); + var args = new pseudoinverse.Arguments(); + args.Init(); + var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 11383fbb..da1856ac 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -138,6 +138,7 @@ + diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 016cc971..f2d1b285 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -7017,6 +7017,30 @@ public static float3 Euler(quaternion q, math.RotationOrder order = math.Rotatio } } + /// + /// Matrix columns multiplied by scale components + /// m.c0.x * s.x | m.c1.x * s.y | m.c2.x * s.z + /// m.c0.y * s.x | m.c1.y * s.y | m.c2.y * s.z + /// m.c0.z * s.x | m.c1.z * s.y | m.c2.z * s.z + /// + /// Matrix to scale. + /// Scaling coefficients for each column. + /// The scaled matrix. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 mulScale(float3x3 m, float3 s) => new float3x3(m.c0 * s.x, m.c1 * s.y, m.c2 * s.z); + + /// + /// Matrix rows multiplied by scale components + /// m.c0.x * s.x | m.c1.x * s.x | m.c2.x * s.x + /// m.c0.y * s.y | m.c1.y * s.y | m.c2.y * s.y + /// m.c0.z * s.z | m.c1.z * s.z | m.c2.z * s.z + /// + /// Scaling coefficients for each row. + /// Matrix to scale. + /// The scaled matrix. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 scaleMul(float3 s, float3x3 m) => new float3x3(m.c0 * s, m.c1 * s, m.c2 * s); + // Internal // SSE shuffles diff --git a/src/Unity.Mathematics/matrix.cs b/src/Unity.Mathematics/matrix.cs index fe4a679c..449c7e36 100644 --- a/src/Unity.Mathematics/matrix.cs +++ b/src/Unity.Mathematics/matrix.cs @@ -1089,5 +1089,27 @@ public static float3x3 orthonormalize(float3x3 i) return o; } + + /// + /// Computes the pseudoinverse of a matrix. + /// + /// Matrix to invert. + /// The pseudoinverse of m. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static float3x3 pseudoinverse(float3x3 m) + { + float scaleSq = 0.333333f * (math.lengthsq(m.c0) + math.lengthsq(m.c1) + math.lengthsq(m.c2)); + if (scaleSq < svd.k_EpsilonNormal) + return Mathematics.float3x3.zero; + + float3 scaleInv = math.rsqrt(scaleSq); + float3x3 ms = mulScale(m, scaleInv); + if (!adjInverse(ms, out float3x3 i, svd.k_EpsilonDeterminant)) + { + i = svd.svdInverse(ms); + } + + return mulScale(i, scaleInv); + } } } diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index 3c09d991..b013fd24 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -710,6 +710,51 @@ public static float angle(quaternion q1, quaternion q2) return diff + diff; } + /// + /// Extracts the rotation from a matrix. + /// + /// This method supports any type of rotation matrix: if the matrix has a non uniform scale you should use this method. + /// Matrix to extract rotation from + /// Extracted rotation + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static quaternion rotation(float3x3 m) + { + float det = math.determinant(m); + if (math.abs(1f - det) < svd.k_EpsilonDeterminant) + return math.quaternion(m); + + if (math.abs(det) > svd.k_EpsilonDeterminant) + { + float3x3 tmp = mulScale(m, math.rsqrt(math.float3(math.lengthsq(m.c0), math.lengthsq(m.c1), math.lengthsq(m.c2)))); + if (math.abs(1f - math.determinant(tmp)) < svd.k_EpsilonDeterminant) + return math.quaternion(tmp); + } + + return svd.svdRotation(m); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static float3x3 adj(float3x3 m, out float det) + { + float3x3 adjT; + adjT.c0 = math.cross(m.c1, m.c2); + adjT.c1 = math.cross(m.c2, m.c0); + adjT.c2 = math.cross(m.c0, m.c1); + det = math.dot(m.c0, adjT.c0); + + return math.transpose(adjT); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static bool adjInverse(float3x3 m, out float3x3 i, float epsilon = svd.k_EpsilonNormal) + { + i = adj(m, out float det); + bool c = math.abs(det) > epsilon; + float3 detInv = math.select(math.float3(1f), math.rcp(det), c); + i = scaleMul(detInv, i); + return c; + } + /// Returns a uint hash code of a quaternion. /// The quaternion to hash. /// The hash code for the input quaternion. @@ -732,7 +777,6 @@ public static uint4 hashwide(quaternion q) return hashwide(q.value); } - /// /// Transforms the forward vector by a quaternion. /// diff --git a/src/Unity.Mathematics/svd.cs b/src/Unity.Mathematics/svd.cs new file mode 100644 index 00000000..b0a32112 --- /dev/null +++ b/src/Unity.Mathematics/svd.cs @@ -0,0 +1,170 @@ +using System.Runtime.CompilerServices; +using Unity.IL2CPP.CompilerServices; + +namespace Unity.Mathematics +{ + // SVD algorithm as described in: + // Computing the singular value decomposition of 3x3 matrices with minimal branching and elementary floating point operations, + // A.McAdams, A.Selle, R.Tamstorf, J.Teran and E.Sifakis, University of Wisconsin - Madison technical report TR1690, May 2011 + [Il2CppEagerStaticClassConstruction] + static class svd + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static void condSwap(bool c, ref float x, ref float y) + { + var tmp = x; + x = math.select(x, y, c); + y = math.select(y, tmp, c); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static void condNegSwap(bool c, ref float3 x, ref float3 y) + { + var tmp = -x; + x = math.select(x, y, c); + y = math.select(y, tmp, c); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static quaternion condNegSwapQuat(bool c, quaternion q, float4 mask) + { + const float halfSqrt2 = 0.707106781186548f; + return math.mul(q, math.select(quaternion.identity.value, mask * halfSqrt2, c)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static void sortSingularValues(ref float3x3 b, ref quaternion v) + { + var l0 = math.lengthsq(b.c0); + var l1 = math.lengthsq(b.c1); + var l2 = math.lengthsq(b.c2); + + var c = l0 < l1; + condNegSwap(c, ref b.c0, ref b.c1); + v = condNegSwapQuat(c, v, math.float4(0f, 0f, 1f, 1f)); + condSwap(c, ref l0, ref l1); + + c = l0 < l2; + condNegSwap(c, ref b.c0, ref b.c2); + v = condNegSwapQuat(c, v, math.float4(0f, -1f, 0f, 1f)); + condSwap(c, ref l0, ref l2); + + c = l1 < l2; + condNegSwap(c, ref b.c1, ref b.c2); + v = condNegSwapQuat(c, v, math.float4(1f, 0f, 0f, 1f)); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static quaternion approxGivensQuat(float3 pq, float4 mask) + { + const float c8 = 0.923879532511287f; // cos(pi/8) + const float s8 = 0.38268343236509f; // sin(pi/8) + const float g = 5.82842712474619f; // 3 + 2 * sqrt(2) + + var ch = 2f * (pq.x - pq.y); // approx cos(a/2) + var sh = pq.z; // approx sin(a/2) + var r = math.select(math.float4(s8, s8, s8, c8), math.float4(sh, sh, sh, ch), g * sh * sh < ch * ch) * mask; + return math.normalize(r); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static quaternion qrGivensQuat(float2 pq, float4 mask) + { + var l = math.sqrt(pq.x * pq.x + pq.y * pq.y); + var sh = math.select(0f, pq.y, l > k_EpsilonNormalSqrt); + var ch = math.abs(pq.x) + math.max(l, k_EpsilonNormalSqrt); + condSwap(pq.x < 0f, ref sh, ref ch); + + return math.normalize(math.float4(sh, sh, sh, ch) * mask); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static quaternion givensQRFactorization(float3x3 b, out float3x3 r) + { + var u = qrGivensQuat(math.float2(b.c0.x, b.c0.y), math.float4(0f, 0f, 1f, 1f)); + var qmt = math.float3x3(math.conjugate(u)); + r = math.mul(qmt, b); + + var q = qrGivensQuat(math.float2(r.c0.x, r.c0.z), math.float4(0f, -1f, 0f, 1f)); + u = math.mul(u, q); + qmt = math.float3x3(math.conjugate(q)); + r = math.mul(qmt, r); + + q = qrGivensQuat(math.float2(r.c1.y, r.c1.z), math.float4(1f, 0f, 0f, 1f)); + u = math.mul(u, q); + qmt = math.float3x3(math.conjugate(q)); + r = math.mul(qmt, r); + + return u; + } + + static quaternion jacobiIteration(ref float3x3 s, int iterations = 5) + { + float3x3 qm; + quaternion q; + quaternion v = quaternion.identity; + + for (int i = 0; i < iterations; ++i) + { + q = approxGivensQuat(math.float3(s.c0.x, s.c1.y, s.c0.y), math.float4(0f, 0f, 1f, 1f)); + v = math.mul(v, q); + qm = math.float3x3(q); + s = math.mul(math.mul(math.transpose(qm), s), qm); + + q = approxGivensQuat(math.float3(s.c1.y, s.c2.z, s.c1.z), math.float4(1f, 0f, 0f, 1f)); + v = math.mul(v, q); + qm = math.float3x3(q); + s = math.mul(math.mul(math.transpose(qm), s), qm); + + q = approxGivensQuat(math.float3(s.c2.z, s.c0.x, s.c2.x), math.float4(0f, 1f, 0f, 1f)); + v = math.mul(v, q); + qm = math.float3x3(q); + s = math.mul(math.mul(math.transpose(qm), s), qm); + } + + return v; + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static float3 singularValuesDecomposition(float3x3 a, out quaternion u, out quaternion v) + { + u = quaternion.identity; + v = quaternion.identity; + + var s = math.mul(math.transpose(a), a); + v = jacobiIteration(ref s); + var b = math.float3x3(v); + b = math.mul(a, b); + sortSingularValues(ref b, ref v); + u = givensQRFactorization(b, out var e); + + return math.float3(e.c0.x, e.c1.y, e.c2.z); + } + + public const float k_EpsilonDeterminant = 1e-6f; + public const float k_EpsilonRCP = 1e-9f; + public const float k_EpsilonNormalSqrt = 1e-15f; + public const float k_EpsilonNormal = 1e-30f; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + static float3 rcpsafe(float3 x, float epsilon = k_EpsilonRCP) => + math.select(math.rcp(x), float3.zero, math.abs(x) < epsilon); + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static float3x3 svdInverse(float3x3 a) + { + var e = singularValuesDecomposition(a, out var u, out var v); + var um = math.float3x3(u); + var vm = math.float3x3(v); + + return math.mul(vm, math.scaleMul(rcpsafe(e, k_EpsilonDeterminant), math.transpose(um))); + } + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static quaternion svdRotation(float3x3 a) + { + singularValuesDecomposition(a, out var u, out var v); + return math.mul(u, math.conjugate(v)); + } + } +} \ No newline at end of file diff --git a/src/Unity.Mathematics/svd.cs.meta b/src/Unity.Mathematics/svd.cs.meta new file mode 100644 index 00000000..e7924355 --- /dev/null +++ b/src/Unity.Mathematics/svd.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bc4f01dc4f3d8489f85ca8dff8563871 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: From 022330820f465c464adab388847bbefb1ba41468 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 26 Jan 2022 14:10:16 -0800 Subject: [PATCH 382/437] Fix warning for unused variable. (#211) --- src/Tests/Tests/Shared/TestMath.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index 1c42283a..7691c5d3 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -4098,7 +4098,7 @@ public static void mulScale() 0.132552310824394226074f, 0.000265292444964870810509f, 0.233480587601661682129f, 0.0606870166957378387451f, 0.043273795396089553833f, 0.274842619895935058594f); - TestUtils.AreEqual(expected, actual, 1e-5); + TestUtils.AreEqual(expected, actual, tolerance); } [TestCompiler] From 05978bd760282fe449b807423e4e735d7f323505 Mon Sep 17 00:00:00 2001 From: Olivier Dionne Date: Thu, 27 Jan 2022 19:15:39 -0500 Subject: [PATCH 383/437] updated changelog --- src/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 46c7a0e3..33ffdf40 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -11,6 +11,7 @@ * Added `math.rotation` to extract a quaternion rotation from a float3x3 (that may have scale). * Added `math.mulScale` to scale columns of a float3x3 with scaling coefficients in a float3. * Added `math.scaleMul` to scale rows of a float3x3 with scaling coefficients in a float3. +* Added `AffineTransform` type. ### Changed * `asfloat(uint)`, `asuint(float)`, `asint(float)` and other related methods are now faster in mono without Burst. Other methods which use these will see a performance improvement. * Modified `quaternion.nlerp` to be branchless. From 1cc9d19a8e44edaa891102c61753bfbb316cdcf1 Mon Sep 17 00:00:00 2001 From: Olivier Dionne Date: Thu, 27 Jan 2022 19:25:43 -0500 Subject: [PATCH 384/437] Fix comment --- src/Unity.Mathematics/quaternion.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Unity.Mathematics/quaternion.cs b/src/Unity.Mathematics/quaternion.cs index 465fe58a..b013fd24 100644 --- a/src/Unity.Mathematics/quaternion.cs +++ b/src/Unity.Mathematics/quaternion.cs @@ -710,6 +710,7 @@ public static float angle(quaternion q1, quaternion q2) return diff + diff; } + /// /// Extracts the rotation from a matrix. /// /// This method supports any type of rotation matrix: if the matrix has a non uniform scale you should use this method. From 7b89c877dda5db1abf7d1f9d3d2842888228a383 Mon Sep 17 00:00:00 2001 From: Olivier Dionne Date: Thu, 27 Jan 2022 20:12:14 -0500 Subject: [PATCH 385/437] Adding more tests --- src/Tests/Tests/Shared/TestAffineTransform.cs | 104 +++++++++++++++++- 1 file changed, 99 insertions(+), 5 deletions(-) diff --git a/src/Tests/Tests/Shared/TestAffineTransform.cs b/src/Tests/Tests/Shared/TestAffineTransform.cs index 0a2c9f5b..460650cd 100644 --- a/src/Tests/Tests/Shared/TestAffineTransform.cs +++ b/src/Tests/Tests/Shared/TestAffineTransform.cs @@ -7,12 +7,63 @@ namespace Unity.Mathematics.Tests [TestFixture] class TestAffineTransform { + [TestCompiler] + public static void affine_transform_construct_from_float3x3() + { + const float tolerance = 1e-6f; + + float3x3 m3x3 = TestMatrix.test3x3_zyx; + AffineTransform tx = AffineTransform(m3x3); + + float3x3 testM3x3 = float3x3(tx); + + TestUtils.AreEqual(m3x3, testM3x3, tolerance); + } + + [TestCompiler] + public static void affine_transform_construct_from_float3x4() + { + const float tolerance = 1e-6f; + + float3x4 m3x4 = float3x4(TestMatrix.test3x3_zyx.c0, TestMatrix.test3x3_zyx.c1, TestMatrix.test3x3_zyx.c2, float3(1f, 2f, 3f)); + AffineTransform tx = AffineTransform(m3x4); + + float3x4 testM3x4 = float3x4(tx); + + TestUtils.AreEqual(m3x4, testM3x4, tolerance); + } + + [TestCompiler] + public static void affine_transform_construct_from_float4x4() + { + const float tolerance = 1e-6f; + + float4x4 m4x4 = TestMatrix.test4x4_zyx; + AffineTransform tx = AffineTransform(m4x4); + + float4x4 testM4x4 = float4x4(tx); + + TestUtils.AreEqual(m4x4, testM4x4, tolerance); + } + + [TestCompiler] + public static void affine_transform_construct_from_RigidTransform() + { + const float tolerance = 1e-6f; + + RigidTransform r = RigidTransform(TestMatrix.test4x4_xyz); + AffineTransform tx = AffineTransform(r); + + TestUtils.AreEqual(math.float3x3(r.rot), tx.rs, tolerance); + TestUtils.AreEqual(r.pos, tx.t, tolerance); + } + [TestCompiler] public static void affine_transform_inverse() { const float tolerance = 1e-6f; - var tx = AffineTransform(float3(5, 6, 7), normalize(math.float4(1, 2, 3, 4)), float3(2, 3, 4)); + var tx = AffineTransform(float3(5f, 6f, 7f), normalize(math.float4(1f, 2f, 3f, 4f)), float3(2f, 3f, 4f)); var invTx = inverse(tx); TestUtils.AreEqual(float4x4.identity, mul(tx, invTx), tolerance); @@ -23,7 +74,7 @@ public static void affine_transform_inverse_zero_rs_returns_zero() { const float tolerance = 1e-30f; - var tx = AffineTransform(float3(5, 6, 7), normalize(float4(1, 2, 3, 4)), float3.zero); + var tx = AffineTransform(float3(5f, 6f, 7f), normalize(float4(1f, 2f, 3f, 4f)), float3.zero); var invTx = inverse(tx); TestUtils.AreEqual(float3x4.zero, invTx, tolerance); @@ -35,7 +86,7 @@ public static void affine_transform_inverse_pico_scale() // slightly larger tolerance (vs 1e-6f) for PS4 const float tolerance = 2e-6f; - var tx = AffineTransform(float3(5, 6, 7), normalize(float4(1, 2, 3, 4)), float3(1e-12f, 1e-12f, 1e-12f)); + var tx = AffineTransform(float3(5f, 6f, 7f), normalize(float4(1f, 2f, 3f, 4f)), float3(1e-12f, 1e-12f, 1e-12f)); var invTx = inverse(tx); TestUtils.AreEqual(float4x4.identity, mul(tx, invTx), tolerance); @@ -48,7 +99,7 @@ public static void affine_transform_inverse_singular() // since it uses the svd iterative solver const float tolerance = 1e-1f; - var tx = AffineTransform(float3(5, 6, 7), normalize(float4(1, 2, 3, 4)), float3(0, 3, 4)); + var tx = AffineTransform(float3(5f, 6f, 7f), normalize(float4(1f, 2f, 3f, 4f)), float3(0f, 3f, 4f)); var invTx = inverse(tx); // pseudo inverse penrose #1 test @@ -61,12 +112,55 @@ public static void affine_transform_decompose() { const float tolerance = 1e-6f; - var tx = AffineTransform(float3(5, 6, 7), normalize(float4(1, 2, 3, 4)), float3(2, 3, 4)); + var tx = AffineTransform(float3(5f, 6f, 7f), normalize(float4(1f, 2f, 3f, 4f)), float3(2f, 3f, 4f)); decompose(tx, out var t, out var r, out var s); // Recompose matrix var testTx = AffineTransform(t, r, s); TestUtils.AreEqual(float4x4(tx), float4x4(testTx), tolerance); } + + [TestCompiler] + public static void affine_transform_mul_vector() + { + float4x4 m = TestMatrix.test4x4_xyz; + AffineTransform tx = AffineTransform(m); + + float3 vector = float3(1.1f, -2.2f, 3.5f); + + float4 mvector0 = mul(m, float4(vector, 0f)); + float4 txvector0 = mul(tx, float4(vector, 0f)); + TestUtils.AreEqual(mvector0, txvector0, 0.0001f); + + float4 mvector1 = mul(m, float4(vector, 1f)); + float4 txvector1 = mul(tx, float4(vector, 1f)); + TestUtils.AreEqual(mvector1, txvector1, 0.0001f); + } + + [TestCompiler] + public static void affine_transform_rotate_vector() + { + float3x3 m = TestMatrix.test3x3_xyz; + AffineTransform tx = AffineTransform(m); + + float3 vector = float3(1.1f, -2.2f, 3.5f); + + float3 mvector0 = mul(m, vector); + float3 txvector0 = rotate(tx, vector); + TestUtils.AreEqual(mvector0, txvector0, 0.0001f); + } + + [TestCompiler] + public static void affine_transform_transform_point() + { + float4x4 m = float4x4(TestMatrix.test3x3_zyx, float3(1f, 2f, 3f)); + AffineTransform tx = AffineTransform(m); + + float3 pt = float3(1.1f, -2.2f, 3.5f); + + float3 mPt0 = transform(m, pt); + float3 txPt0 = transform(tx, pt); + TestUtils.AreEqual(mPt0, txPt0, 0.0001f); + } } } \ No newline at end of file From 84a8c6aad160980dd26846ed42faa72722769f36 Mon Sep 17 00:00:00 2001 From: Olivier Dionne Date: Fri, 28 Jan 2022 15:44:16 -0500 Subject: [PATCH 386/437] add missing csproj files --- src/Tests/Unity.Mathematics.Tests.csproj | 1 + src/Unity.Mathematics/Unity.Mathematics.csproj | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Tests/Unity.Mathematics.Tests.csproj b/src/Tests/Unity.Mathematics.Tests.csproj index d6fe8748..89872c1c 100644 --- a/src/Tests/Unity.Mathematics.Tests.csproj +++ b/src/Tests/Unity.Mathematics.Tests.csproj @@ -50,6 +50,7 @@ + diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index da1856ac..906c6011 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -63,6 +63,7 @@ + From dfaeb8b7e1c1d73878edbdb677989a83a5ac7fa7 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 9 Feb 2022 15:08:01 -0800 Subject: [PATCH 387/437] More descriptive parameter names (#215) * Add descriptive parameter names for lerp. * Better names for unlerp. * Descriptive names for mad() and remap(). * Descriptive names for clamp. * Descriptive names for smoothstep. * Descriptive names for select. * Descriptive step. * Descriptive refract. * Descriptive project. * Changelog update. --- src/CHANGELOG.md | 1 + src/Unity.Mathematics/math.cs | 1318 ++++++++++++++++----------------- 2 files changed, 660 insertions(+), 659 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 33ffdf40..d744d474 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -15,6 +15,7 @@ ### Changed * `asfloat(uint)`, `asuint(float)`, `asint(float)` and other related methods are now faster in mono without Burst. Other methods which use these will see a performance improvement. * Modified `quaternion.nlerp` to be branchless. +* More descriptive parameter names for many methods in `math` class. ### Deprecated ### Removed ### Fixed diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index f2d1b285..73204610 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -1057,394 +1057,394 @@ public static bool4 ispow2(uint4 x) public static double4 max(double4 x, double4 y) { return new double4(max(x.x, y.x), max(x.y, y.y), max(x.z, y.z), max(x.w, y.w)); } - /// Returns the result of linearly interpolating from x to y using the interpolation parameter s. + /// Returns the result of linearly interpolating from start to end using the interpolation parameter t. /// /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. /// - /// The first endpoint, corresponding to the interpolation parameter value of 0. - /// The second endpoint, corresponding to the interpolation parameter value of 1. - /// The interpolation parameter. May be a value outside the interval [0, 1]. - /// The interpolation from x to y. + /// The start point, corresponding to the interpolation parameter value of 0. + /// The end point, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The interpolation from start to end. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float lerp(float x, float y, float s) { return x + s * (y - x); } + public static float lerp(float start, float end, float t) { return start + t * (end - start); } - /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. + /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter t. /// /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. /// - /// The first endpoint, corresponding to the interpolation parameter value of 0. - /// The second endpoint, corresponding to the interpolation parameter value of 1. - /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The start point, corresponding to the interpolation parameter value of 0. + /// The end point, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 lerp(float2 x, float2 y, float s) { return x + s * (y - x); } + public static float2 lerp(float2 start, float2 end, float t) { return start + t * (end - start); } - /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. + /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter t. /// /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. /// - /// The first endpoint, corresponding to the interpolation parameter value of 0. - /// The second endpoint, corresponding to the interpolation parameter value of 1. - /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The start point, corresponding to the interpolation parameter value of 0. + /// The end point, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 lerp(float3 x, float3 y, float s) { return x + s * (y - x); } + public static float3 lerp(float3 start, float3 end, float t) { return start + t * (end - start); } - /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. + /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter t. /// /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. /// - /// The first endpoint, corresponding to the interpolation parameter value of 0. - /// The second endpoint, corresponding to the interpolation parameter value of 1. - /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The start point, corresponding to the interpolation parameter value of 0. + /// The end point, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 lerp(float4 x, float4 y, float s) { return x + s * (y - x); } + public static float4 lerp(float4 start, float4 end, float t) { return start + t * (end - start); } - /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. + /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter t. /// /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. /// - /// The first endpoint, corresponding to the interpolation parameter value of 0. - /// The second endpoint, corresponding to the interpolation parameter value of 1. - /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The start point, corresponding to the interpolation parameter value of 0. + /// The end point, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 lerp(float2 x, float2 y, float2 s) { return x + s * (y - x); } + public static float2 lerp(float2 start, float2 end, float2 t) { return start + t * (end - start); } - /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. + /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter t. /// /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. /// - /// The first endpoint, corresponding to the interpolation parameter value of 0. - /// The second endpoint, corresponding to the interpolation parameter value of 1. - /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The start point, corresponding to the interpolation parameter value of 0. + /// The end point, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 lerp(float3 x, float3 y, float3 s) { return x + s * (y - x); } + public static float3 lerp(float3 start, float3 end, float3 t) { return start + t * (end - start); } - /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. + /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter t. /// /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. /// - /// The first endpoint, corresponding to the interpolation parameter value of 0. - /// The second endpoint, corresponding to the interpolation parameter value of 1. - /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The start point, corresponding to the interpolation parameter value of 0. + /// The end point, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 lerp(float4 x, float4 y, float4 s) { return x + s * (y - x); } + public static float4 lerp(float4 start, float4 end, float4 t) { return start + t * (end - start); } - /// Returns the result of linearly interpolating from x to y using the interpolation parameter s. + /// Returns the result of linearly interpolating from x to y using the interpolation parameter t. /// /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. /// - /// The first endpoint, corresponding to the interpolation parameter value of 0. - /// The second endpoint, corresponding to the interpolation parameter value of 1. - /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The start point, corresponding to the interpolation parameter value of 0. + /// The end point, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. /// The interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double lerp(double x, double y, double s) { return x + s * (y - x); } + public static double lerp(double start, double end, double t) { return start + t * (end - start); } - /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. + /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter t. /// /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. /// - /// The first endpoint, corresponding to the interpolation parameter value of 0. - /// The second endpoint, corresponding to the interpolation parameter value of 1. - /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The start point, corresponding to the interpolation parameter value of 0. + /// The end point, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 lerp(double2 x, double2 y, double s) { return x + s * (y - x); } + public static double2 lerp(double2 start, double2 end, double t) { return start + t * (end - start); } - /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. + /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter t. /// /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. /// - /// The first endpoint, corresponding to the interpolation parameter value of 0. - /// The second endpoint, corresponding to the interpolation parameter value of 1. - /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The start point, corresponding to the interpolation parameter value of 0. + /// The end point, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 lerp(double3 x, double3 y, double s) { return x + s * (y - x); } + public static double3 lerp(double3 start, double3 end, double t) { return start + t * (end - start); } - /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter s. + /// Returns the result of a componentwise linear interpolating from x to y using the interpolation parameter t. /// /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. /// - /// The first endpoint, corresponding to the interpolation parameter value of 0. - /// The second endpoint, corresponding to the interpolation parameter value of 1. - /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The start point, corresponding to the interpolation parameter value of 0. + /// The end point, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 lerp(double4 x, double4 y, double s) { return x + s * (y - x); } + public static double4 lerp(double4 start, double4 end, double t) { return start + t * (end - start); } - /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. + /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter t. /// /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. /// - /// The first endpoint, corresponding to the interpolation parameter value of 0. - /// The second endpoint, corresponding to the interpolation parameter value of 1. - /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The start point, corresponding to the interpolation parameter value of 0. + /// The end point, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 lerp(double2 x, double2 y, double2 s) { return x + s * (y - x); } + public static double2 lerp(double2 start, double2 end, double2 t) { return start + t * (end - start); } - /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. + /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter t. /// /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. /// - /// The first endpoint, corresponding to the interpolation parameter value of 0. - /// The second endpoint, corresponding to the interpolation parameter value of 1. - /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The start point, corresponding to the interpolation parameter value of 0. + /// The end point, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 lerp(double3 x, double3 y, double3 s) { return x + s * (y - x); } + public static double3 lerp(double3 start, double3 end, double3 t) { return start + t * (end - start); } - /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter s. + /// Returns the result of a componentwise linear interpolating from x to y using the corresponding components of the interpolation parameter t. /// /// If the interpolation parameter is not in the range [0, 1], then this function extrapolates. /// - /// The first endpoint, corresponding to the interpolation parameter value of 0. - /// The second endpoint, corresponding to the interpolation parameter value of 1. - /// The interpolation parameter. May be a value outside the interval [0, 1]. + /// The start point, corresponding to the interpolation parameter value of 0. + /// The end point, corresponding to the interpolation parameter value of 1. + /// The interpolation parameter. May be a value outside the interval [0, 1]. /// The componentwise interpolation from x to y. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 lerp(double4 x, double4 y, double4 s) { return x + s * (y - x); } + public static double4 lerp(double4 start, double4 end, double4 t) { return start + t * (end - start); } /// Returns the result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - /// The first endpoint of the range. - /// The second endpoint of the range. + /// The start point of the range. + /// The end point of the range. /// The value to normalize to the range. /// The interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float unlerp(float a, float b, float x) { return (x - a) / (b - a); } + public static float unlerp(float start, float end, float x) { return (x - start) / (end - start); } /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - /// The first endpoint of the range. - /// The second endpoint of the range. + /// The start point of the range. + /// The end point of the range. /// The value to normalize to the range. /// The componentwise interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 unlerp(float2 a, float2 b, float2 x) { return (x - a) / (b - a); } + public static float2 unlerp(float2 start, float2 end, float2 x) { return (x - start) / (end - start); } /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - /// The first endpoint of the range. - /// The second endpoint of the range. + /// The start point of the range. + /// The end point of the range. /// The value to normalize to the range. /// The componentwise interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 unlerp(float3 a, float3 b, float3 x) { return (x - a) / (b - a); } + public static float3 unlerp(float3 start, float3 end, float3 x) { return (x - start) / (end - start); } /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - /// The first endpoint of the range. - /// The second endpoint of the range. + /// The start point of the range. + /// The end point of the range. /// The value to normalize to the range. /// The componentwise interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 unlerp(float4 a, float4 b, float4 x) { return (x - a) / (b - a); } + public static float4 unlerp(float4 start, float4 end, float4 x) { return (x - start) / (end - start); } /// Returns the result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - /// The first endpoint of the range. - /// The second endpoint of the range. + /// The start point of the range. + /// The end point of the range. /// The value to normalize to the range. /// The interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double unlerp(double a, double b, double x) { return (x - a) / (b - a); } + public static double unlerp(double start, double end, double x) { return (x - start) / (end - start); } /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - /// The first endpoint of the range. - /// The second endpoint of the range. + /// The start point of the range. + /// The end point of the range. /// The value to normalize to the range. /// The componentwise interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 unlerp(double2 a, double2 b, double2 x) { return (x - a) / (b - a); } + public static double2 unlerp(double2 start, double2 end, double2 x) { return (x - start) / (end - start); } /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - /// The first endpoint of the range. - /// The second endpoint of the range. + /// The start point of the range. + /// The end point of the range. /// The value to normalize to the range. /// The componentwise interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 unlerp(double3 a, double3 b, double3 x) { return (x - a) / (b - a); } + public static double3 unlerp(double3 start, double3 end, double3 x) { return (x - start) / (end - start); } /// Returns the componentwise result of normalizing a floating point value x to a range [a, b]. The opposite of lerp. Equivalent to (x - a) / (b - a). - /// The first endpoint of the range. - /// The second endpoint of the range. + /// The start point of the range. + /// The end point of the range. /// The value to normalize to the range. /// The componentwise interpolation parameter of x with respect to the input range [a, b]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 unlerp(double4 a, double4 b, double4 x) { return (x - a) / (b - a); } + public static double4 unlerp(double4 start, double4 end, double4 x) { return (x - start) / (end - start); } - /// Returns the result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. - /// The first endpoint of the source range [a,b]. - /// The second endpoint of the source range [a, b]. - /// The first endpoint of the destination range [c, d]. - /// The second endpoint of the destination range [c, d]. + /// Returns the result of a non-clamping linear remapping of a value x from source range [srcStart, srcEnd] to the destination range [dstStart, dstEnd]. + /// The start point of the source range [srcStart, srcEnd]. + /// The end point of the source range [srcStart, srcEnd]. + /// The start point of the destination range [dstStart, dstEnd]. + /// The end point of the destination range [dstStart, dstEnd]. /// The value to remap from the source to destination range. /// The remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float remap(float a, float b, float c, float d, float x) { return lerp(c, d, unlerp(a, b, x)); } + public static float remap(float srcStart, float srcEnd, float dstStart, float dstEnd, float x) { return lerp(dstStart, dstEnd, unlerp(srcStart, srcEnd, x)); } - /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. - /// The first endpoint of the source range [a,b]. - /// The second endpoint of the source range [a, b]. - /// The first endpoint of the destination range [c, d]. - /// The second endpoint of the destination range [c, d]. + /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [srcStart, srcEnd] to the destination range [dstStart, dstEnd]. + /// The start point of the source range [srcStart, srcEnd]. + /// The end point of the source range [srcStart, srcEnd]. + /// The start point of the destination range [dstStart, dstEnd]. + /// The end point of the destination range [dstStart, dstEnd]. /// The value to remap from the source to destination range. /// The componentwise remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 remap(float2 a, float2 b, float2 c, float2 d, float2 x) { return lerp(c, d, unlerp(a, b, x)); } + public static float2 remap(float2 srcStart, float2 srcEnd, float2 dstStart, float2 dstEnd, float2 x) { return lerp(dstStart, dstEnd, unlerp(srcStart, srcEnd, x)); } - /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. - /// The first endpoint of the source range [a,b]. - /// The second endpoint of the source range [a, b]. - /// The first endpoint of the destination range [c, d]. - /// The second endpoint of the destination range [c, d]. + /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [srcStart, srcEnd] to the destination range [dstStart, dstEnd]. + /// The start point of the source range [srcStart, srcEnd]. + /// The end point of the source range [srcStart, srcEnd]. + /// The start point of the destination range [dstStart, dstEnd]. + /// The end point of the destination range [dstStart, dstEnd]. /// The value to remap from the source to destination range. /// The componentwise remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 remap(float3 a, float3 b, float3 c, float3 d, float3 x) { return lerp(c, d, unlerp(a, b, x)); } + public static float3 remap(float3 srcStart, float3 srcEnd, float3 dstStart, float3 dstEnd, float3 x) { return lerp(dstStart, dstEnd, unlerp(srcStart, srcEnd, x)); } - /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. - /// The first endpoint of the source range [a,b]. - /// The second endpoint of the source range [a, b]. - /// The first endpoint of the destination range [c, d]. - /// The second endpoint of the destination range [c, d]. + /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [srcStart, srcEnd] to the destination range [dstStart, dstEnd]. + /// The start point of the source range [srcStart, srcEnd]. + /// The end point of the source range [srcStart, srcEnd]. + /// The start point of the destination range [dstStart, dstEnd]. + /// The end point of the destination range [dstStart, dstEnd]. /// The value to remap from the source to destination range. /// The componentwise remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 remap(float4 a, float4 b, float4 c, float4 d, float4 x) { return lerp(c, d, unlerp(a, b, x)); } + public static float4 remap(float4 srcStart, float4 srcEnd, float4 dstStart, float4 dstEnd, float4 x) { return lerp(dstStart, dstEnd, unlerp(srcStart, srcEnd, x)); } - /// Returns the result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. - /// The first endpoint of the source range [a,b]. - /// The second endpoint of the source range [a, b]. - /// The first endpoint of the destination range [c, d]. - /// The second endpoint of the destination range [c, d]. + /// Returns the result of a non-clamping linear remapping of a value x from source range [srcStart, srcEnd] to the destination range [dstStart, dstEnd]. + /// The start point of the source range [srcStart, srcEnd]. + /// The end point of the source range [srcStart, srcEnd]. + /// The start point of the destination range [dstStart, dstEnd]. + /// The end point of the destination range [dstStart, dstEnd]. /// The value to remap from the source to destination range. /// The remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double remap(double a, double b, double c, double d, double x) { return lerp(c, d, unlerp(a, b, x)); } + public static double remap(double srcStart, double srcEnd, double dstStart, double dstEnd, double x) { return lerp(dstStart, dstEnd, unlerp(srcStart, srcEnd, x)); } - /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. - /// The first endpoint of the source range [a,b]. - /// The second endpoint of the source range [a, b]. - /// The first endpoint of the destination range [c, d]. - /// The second endpoint of the destination range [c, d]. + /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [srcStart, srcEnd] to the destination range [dstStart, dstEnd]. + /// The start point of the source range [srcStart, srcEnd]. + /// The end point of the source range [srcStart, srcEnd]. + /// The start point of the destination range [dstStart, dstEnd]. + /// The end point of the destination range [dstStart, dstEnd]. /// The value to remap from the source to destination range. /// The componentwise remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 remap(double2 a, double2 b, double2 c, double2 d, double2 x) { return lerp(c, d, unlerp(a, b, x)); } + public static double2 remap(double2 srcStart, double2 srcEnd, double2 dstStart, double2 dstEnd, double2 x) { return lerp(dstStart, dstEnd, unlerp(srcStart, srcEnd, x)); } - /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. - /// The first endpoint of the source range [a,b]. - /// The second endpoint of the source range [a, b]. - /// The first endpoint of the destination range [c, d]. - /// The second endpoint of the destination range [c, d]. + /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [srcStart, srcEnd] to the destination range [dstStart, dstEnd]. + /// The start point of the source range [srcStart, srcEnd]. + /// The end point of the source range [srcStart, srcEnd]. + /// The start point of the destination range [dstStart, dstEnd]. + /// The end point of the destination range [dstStart, dstEnd]. /// The value to remap from the source to destination range. /// The componentwise remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 remap(double3 a, double3 b, double3 c, double3 d, double3 x) { return lerp(c, d, unlerp(a, b, x)); } + public static double3 remap(double3 srcStart, double3 srcEnd, double3 dstStart, double3 dstEnd, double3 x) { return lerp(dstStart, dstEnd, unlerp(srcStart, srcEnd, x)); } - /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [a, b] to the destination range [c, d]. - /// The first endpoint of the source range [a,b]. - /// The second endpoint of the source range [a, b]. - /// The first endpoint of the destination range [c, d]. - /// The second endpoint of the destination range [c, d]. + /// Returns the componentwise result of a non-clamping linear remapping of a value x from source range [srcStart, srcEnd] to the destination range [dstStart, dstEnd]. + /// The start point of the source range [srcStart, srcEnd]. + /// The end point of the source range [srcStart, srcEnd]. + /// The start point of the destination range [dstStart, dstEnd]. + /// The end point of the destination range [dstStart, dstEnd]. /// The value to remap from the source to destination range. /// The componentwise remap of input x from the source range to the destination range. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 remap(double4 a, double4 b, double4 c, double4 d, double4 x) { return lerp(c, d, unlerp(a, b, x)); } + public static double4 remap(double4 srcStart, double4 srcEnd, double4 dstStart, double4 dstEnd, double4 x) { return lerp(dstStart, dstEnd, unlerp(srcStart, srcEnd, x)); } /// Returns the result of a multiply-add operation (a * b + c) on 3 int values. - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int mad(int a, int b, int c) { return a * b + c; } + public static int mad(int mulA, int mulB, int addC) { return mulA * mulB + addC; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 int2 vectors. - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 mad(int2 a, int2 b, int2 c) { return a * b + c; } + public static int2 mad(int2 mulA, int2 mulB, int2 addC) { return mulA * mulB + addC; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 int3 vectors. - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 mad(int3 a, int3 b, int3 c) { return a * b + c; } + public static int3 mad(int3 mulA, int3 mulB, int3 addC) { return mulA * mulB + addC; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 int4 vectors. - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 mad(int4 a, int4 b, int4 c) { return a * b + c; } + public static int4 mad(int4 mulA, int4 mulB, int4 addC) { return mulA * mulB + addC; } /// Returns the result of a multiply-add operation (a * b + c) on 3 uint values. - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint mad(uint a, uint b, uint c) { return a * b + c; } + public static uint mad(uint mulA, uint mulB, uint addC) { return mulA * mulB + addC; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 uint2 vectors. - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 mad(uint2 a, uint2 b, uint2 c) { return a * b + c; } + public static uint2 mad(uint2 mulA, uint2 mulB, uint2 addC) { return mulA * mulB + addC; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 uint3 vectors. - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 mad(uint3 a, uint3 b, uint3 c) { return a * b + c; } + public static uint3 mad(uint3 mulA, uint3 mulB, uint3 addC) { return mulA * mulB + addC; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 uint4 vectors. - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 mad(uint4 a, uint4 b, uint4 c) { return a * b + c; } + public static uint4 mad(uint4 mulA, uint4 mulB, uint4 addC) { return mulA * mulB + addC; } /// Returns the result of a multiply-add operation (a * b + c) on 3 long values. - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long mad(long a, long b, long c) { return a * b + c; } + public static long mad(long mulA, long mulB, long addC) { return mulA * mulB + addC; } /// Returns the result of a multiply-add operation (a * b + c) on 3 ulong values. - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong mad(ulong a, ulong b, ulong c) { return a * b + c; } + public static ulong mad(ulong mulA, ulong mulB, ulong addC) { return mulA * mulB + addC; } /// Returns the result of a multiply-add operation (a * b + c) on 3 float values. @@ -1453,12 +1453,12 @@ public static bool4 ispow2(uint4 x) /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when /// this computation is not fused. /// - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float mad(float a, float b, float c) { return a * b + c; } + public static float mad(float mulA, float mulB, float addC) { return mulA * mulB + addC; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 float2 vectors. /// @@ -1466,12 +1466,12 @@ public static bool4 ispow2(uint4 x) /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when /// this computation is not fused. /// - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 mad(float2 a, float2 b, float2 c) { return a * b + c; } + public static float2 mad(float2 mulA, float2 mulB, float2 addC) { return mulA * mulB + addC; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 float3 vectors. /// @@ -1479,12 +1479,12 @@ public static bool4 ispow2(uint4 x) /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when /// this computation is not fused. /// - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 mad(float3 a, float3 b, float3 c) { return a * b + c; } + public static float3 mad(float3 mulA, float3 mulB, float3 addC) { return mulA * mulB + addC; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 float4 vectors. /// @@ -1492,12 +1492,12 @@ public static bool4 ispow2(uint4 x) /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when /// this computation is not fused. /// - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 mad(float4 a, float4 b, float4 c) { return a * b + c; } + public static float4 mad(float4 mulA, float4 mulB, float4 addC) { return mulA * mulB + addC; } /// Returns the result of a multiply-add operation (a * b + c) on 3 double values. @@ -1506,12 +1506,12 @@ public static bool4 ispow2(uint4 x) /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when /// this computation is not fused. /// - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double mad(double a, double b, double c) { return a * b + c; } + public static double mad(double mulA, double mulB, double addC) { return mulA * mulB + addC; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 double2 vectors. /// @@ -1519,12 +1519,12 @@ public static bool4 ispow2(uint4 x) /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when /// this computation is not fused. /// - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 mad(double2 a, double2 b, double2 c) { return a * b + c; } + public static double2 mad(double2 mulA, double2 mulB, double2 addC) { return mulA * mulB + addC; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 double3 vectors. /// @@ -1532,12 +1532,12 @@ public static bool4 ispow2(uint4 x) /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when /// this computation is not fused. /// - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 mad(double3 a, double3 b, double3 c) { return a * b + c; } + public static double3 mad(double3 mulA, double3 mulB, double3 addC) { return mulA * mulB + addC; } /// Returns the result of a componentwise multiply-add operation (a * b + c) on 3 double4 vectors. /// @@ -1545,161 +1545,161 @@ public static bool4 ispow2(uint4 x) /// FMA is more accurate due to rounding once at the end of the computation rather than twice that is required when /// this computation is not fused. /// - /// First value to multiply. - /// Second value to multiply. - /// Third value to add to the product of a and b. + /// First value to multiply. + /// Second value to multiply. + /// Third value to add to the product of a and b. /// The componentwise multiply-add of the inputs. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 mad(double4 a, double4 b, double4 c) { return a * b + c; } + public static double4 mad(double4 mulA, double4 mulB, double4 addC) { return mulA * mulB + addC; } - /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are int values. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The clamping of the input x into the interval [a, b]. + /// Returns the result of clamping the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are int values. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int clamp(int x, int a, int b) { return max(a, min(b, x)); } + public static int clamp(int valueToClamp, int lowerBound, int upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } /// Returns the result of a componentwise clamping of the int2 x into the interval [a, b], where a and b are int2 vectors. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The componentwise clamping of the input x into the interval [a, b]. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 clamp(int2 x, int2 a, int2 b) { return max(a, min(b, x)); } + public static int2 clamp(int2 valueToClamp, int2 lowerBound, int2 upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } /// Returns the result of a componentwise clamping of the int3 x into the interval [a, b], where x, a and b are int3 vectors. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The componentwise clamping of the input x into the interval [a, b]. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 clamp(int3 x, int3 a, int3 b) { return max(a, min(b, x)); } + public static int3 clamp(int3 valueToClamp, int3 lowerBound, int3 upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are int4 vectors. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The componentwise clamping of the input x into the interval [a, b]. + /// Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are int4 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 clamp(int4 x, int4 a, int4 b) { return max(a, min(b, x)); } + public static int4 clamp(int4 valueToClamp, int4 lowerBound, int4 upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are uint values. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The clamping of the input x into the interval [a, b]. + /// Returns the result of clamping the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are uint values. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint clamp(uint x, uint a, uint b) { return max(a, min(b, x)); } + public static uint clamp(uint valueToClamp, uint lowerBound, uint upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are uint2 vectors. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The componentwise clamping of the input x into the interval [a, b]. + /// Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are uint2 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 clamp(uint2 x, uint2 a, uint2 b) { return max(a, min(b, x)); } + public static uint2 clamp(uint2 valueToClamp, uint2 lowerBound, uint2 upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are uint3 vectors. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The componentwise clamping of the input x into the interval [a, b]. + /// Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are uint3 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 clamp(uint3 x, uint3 a, uint3 b) { return max(a, min(b, x)); } + public static uint3 clamp(uint3 valueToClamp, uint3 lowerBound, uint3 upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are uint4 vectors. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The componentwise clamping of the input x into the interval [a, b]. + /// Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are uint4 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 clamp(uint4 x, uint4 a, uint4 b) { return max(a, min(b, x)); } + public static uint4 clamp(uint4 valueToClamp, uint4 lowerBound, uint4 upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are long values. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The clamping of the input x into the interval [a, b]. + /// Returns the result of clamping the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are long values. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long clamp(long x, long a, long b) { return max(a, min(b, x)); } + public static long clamp(long valueToClamp, long lowerBound, long upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are ulong values. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The clamping of the input x into the interval [a, b]. + /// Returns the result of clamping the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are ulong values. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong clamp(ulong x, ulong a, ulong b) { return max(a, min(b, x)); } + public static ulong clamp(ulong valueToClamp, ulong lowerBound, ulong upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are float values. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The clamping of the input x into the interval [a, b]. + /// Returns the result of clamping the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are float values. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float clamp(float x, float a, float b) { return max(a, min(b, x)); } + public static float clamp(float valueToClamp, float lowerBound, float upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are float2 vectors. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The componentwise clamping of the input x into the interval [a, b]. + /// Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are float2 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 clamp(float2 x, float2 a, float2 b) { return max(a, min(b, x)); } + public static float2 clamp(float2 valueToClamp, float2 lowerBound, float2 upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are float3 vectors. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The componentwise clamping of the input x into the interval [a, b]. + /// Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are float3 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 clamp(float3 x, float3 a, float3 b) { return max(a, min(b, x)); } + public static float3 clamp(float3 valueToClamp, float3 lowerBound, float3 upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are float4 vectors. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The componentwise clamping of the input x into the interval [a, b]. + /// Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are float4 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 clamp(float4 x, float4 a, float4 b) { return max(a, min(b, x)); } + public static float4 clamp(float4 valueToClamp, float4 lowerBound, float4 upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of clamping the value x into the interval [a, b], where x, a and b are double values. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The clamping of the input x into the interval [a, b]. + /// Returns the result of clamping the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are double values. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double clamp(double x, double a, double b) { return max(a, min(b, x)); } + public static double clamp(double valueToClamp, double lowerBound, double upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are double2 vectors. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The componentwise clamping of the input x into the interval [a, b]. + /// Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are double2 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 clamp(double2 x, double2 a, double2 b) { return max(a, min(b, x)); } + public static double2 clamp(double2 valueToClamp, double2 lowerBound, double2 upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are double3 vectors. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The componentwise clamping of the input x into the interval [a, b]. + /// Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are double3 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 clamp(double3 x, double3 a, double3 b) { return max(a, min(b, x)); } + public static double3 clamp(double3 valueToClamp, double3 lowerBound, double3 upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } - /// Returns the result of a componentwise clamping of the value x into the interval [a, b], where x, a and b are double4 vectors. - /// Input value to be clamped. - /// Lower bound of the interval. - /// Upper bound of the interval. - /// The componentwise clamping of the input x into the interval [a, b]. + /// Returns the result of a componentwise clamping of the value valueToClamp into the interval (inclusive) [lowerBound, upperBound], where valueToClamp, lowerBound and upperBound are double4 vectors. + /// Input value to be clamped. + /// Lower bound of the interval. + /// Upper bound of the interval. + /// The componentwise clamping of the input valueToClamp into the interval (inclusive) [lowerBound, upperBound]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 clamp(double4 x, double4 a, double4 b) { return max(a, min(b, x)); } + public static double4 clamp(double4 valueToClamp, double4 lowerBound, double4 upperBound) { return max(lowerBound, min(upperBound, valueToClamp)); } /// Returns the result of clamping the float value x into the interval [0, 1]. @@ -3776,100 +3776,100 @@ public static bool4 ispow2(uint4 x) public static double3 cross(double3 x, double3 y) { return (x * y.yzx - x.yzx * y).yzx; } - /// Returns a smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. - /// The minimum range of the x parameter. - /// The maximum range of the x parameter. + /// Returns a smooth Hermite interpolation between 0.0f and 1.0f when x is in the interval (inclusive) [xMin, xMax]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. /// The value to be interpolated. /// Returns a value camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float smoothstep(float a, float b, float x) + public static float smoothstep(float xMin, float xMax, float x) { - var t = saturate((x - a) / (b - a)); + var t = saturate((x - xMin) / (xMax - xMin)); return t * t * (3.0f - (2.0f * t)); } - /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. - /// The minimum range of the x parameter. - /// The maximum range of the x parameter. + /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in the interval (inclusive) [xMin, xMax]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. /// The value to be interpolated. /// Returns component values camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 smoothstep(float2 a, float2 b, float2 x) + public static float2 smoothstep(float2 xMin, float2 xMax, float2 x) { - var t = saturate((x - a) / (b - a)); + var t = saturate((x - xMin) / (xMax - xMin)); return t * t * (3.0f - (2.0f * t)); } - /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. - /// The minimum range of the x parameter. - /// The maximum range of the x parameter. + /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in the interval (inclusive) [xMin, xMax]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. /// The value to be interpolated. /// Returns component values camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 smoothstep(float3 a, float3 b, float3 x) + public static float3 smoothstep(float3 xMin, float3 xMax, float3 x) { - var t = saturate((x - a) / (b - a)); + var t = saturate((x - xMin) / (xMax - xMin)); return t * t * (3.0f - (2.0f * t)); } - /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in [a, b]. - /// The minimum range of the x parameter. - /// The maximum range of the x parameter. + /// Returns a componentwise smooth Hermite interpolation between 0.0f and 1.0f when x is in the interval (inclusive) [xMin, xMax]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. /// The value to be interpolated. /// Returns component values camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 smoothstep(float4 a, float4 b, float4 x) + public static float4 smoothstep(float4 xMin, float4 xMax, float4 x) { - var t = saturate((x - a) / (b - a)); + var t = saturate((x - xMin) / (xMax - xMin)); return t * t * (3.0f - (2.0f * t)); } - /// Returns a smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. - /// The minimum range of the x parameter. - /// The maximum range of the x parameter. + /// Returns a smooth Hermite interpolation between 0.0 and 1.0 when x is in the interval (inclusive) [xMin, xMax]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. /// The value to be interpolated. /// Returns a value camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double smoothstep(double a, double b, double x) + public static double smoothstep(double xMin, double xMax, double x) { - var t = saturate((x - a) / (b - a)); + var t = saturate((x - xMin) / (xMax - xMin)); return t * t * (3.0 - (2.0 * t)); } - /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. - /// The minimum range of the x parameter. - /// The maximum range of the x parameter. + /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in the interval (inclusive) [xMin, xMax]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. /// The value to be interpolated. /// Returns component values camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 smoothstep(double2 a, double2 b, double2 x) + public static double2 smoothstep(double2 xMin, double2 xMax, double2 x) { - var t = saturate((x - a) / (b - a)); + var t = saturate((x - xMin) / (xMax - xMin)); return t * t * (3.0 - (2.0 * t)); } - /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. - /// The minimum range of the x parameter. - /// The maximum range of the x parameter. + /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in the interval (inclusive) [xMin, xMax]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. /// The value to be interpolated. /// Returns component values camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 smoothstep(double3 a, double3 b, double3 x) + public static double3 smoothstep(double3 xMin, double3 xMax, double3 x) { - var t = saturate((x - a) / (b - a)); + var t = saturate((x - xMin) / (xMax - xMin)); return t * t * (3.0 - (2.0 * t)); } - /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in [a, b]. - /// The minimum range of the x parameter. - /// The maximum range of the x parameter. + /// Returns a componentwise smooth Hermite interpolation between 0.0 and 1.0 when x is in the interval (inclusive) [xMin, xMax]. + /// The minimum range of the x parameter. + /// The maximum range of the x parameter. /// The value to be interpolated. /// Returns component values camped to the range [0, 1]. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 smoothstep(double4 a, double4 b, double4 x) + public static double4 smoothstep(double4 xMin, double4 xMax, double4 x) { - var t = saturate((x - a) / (b - a)); + var t = saturate((x - xMin) / (xMax - xMin)); return t * t * (3.0 - (2.0 * t)); } @@ -4064,346 +4064,346 @@ public static double4 smoothstep(double4 a, double4 b, double4 x) public static bool all(double4 x) { return x.x != 0.0 && x.y != 0.0 && x.z != 0.0 && x.w != 0.0; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int select(int a, int b, bool c) { return c ? b : a; } + public static int select(int falseValue, int trueValue, bool test) { return test ? trueValue : falseValue; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 select(int2 a, int2 b, bool c) { return c ? b : a; } + public static int2 select(int2 falseValue, int2 trueValue, bool test) { return test ? trueValue : falseValue; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 select(int3 a, int3 b, bool c) { return c ? b : a; } + public static int3 select(int3 falseValue, int3 trueValue, bool test) { return test ? trueValue : falseValue; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 select(int4 a, int4 b, bool c) { return c ? b : a; } + public static int4 select(int4 falseValue, int4 trueValue, bool test) { return test ? trueValue : falseValue; } /// - /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. + /// Returns a componentwise selection between two double4 vectors falseValue and trueValue based on a bool4 selection mask test. + /// Per component, the component from trueValue is selected when test is true, otherwise the component from falseValue is selected. /// - /// Values to use if c is false. - /// Values to use if c is true. - /// Selection mask to choose between a and b. - /// The componentwise selection between a and b according to selection mask c. + /// Values to use if test is false. + /// Values to use if test is true. + /// Selection mask to choose between falseValue and trueValue. + /// The componentwise selection between falseValue and trueValue according to selection mask test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int2 select(int2 a, int2 b, bool2 c) { return new int2(c.x ? b.x : a.x, c.y ? b.y : a.y); } + public static int2 select(int2 falseValue, int2 trueValue, bool2 test) { return new int2(test.x ? trueValue.x : falseValue.x, test.y ? trueValue.y : falseValue.y); } /// - /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. + /// Returns a componentwise selection between two double4 vectors falseValue and trueValue based on a bool4 selection mask test. + /// Per component, the component from trueValue is selected when test is true, otherwise the component from falseValue is selected. /// - /// Values to use if c is false. - /// Values to use if c is true. - /// Selection mask to choose between a and b. - /// The componentwise selection between a and b according to selection mask c. + /// Values to use if test is false. + /// Values to use if test is true. + /// Selection mask to choose between falseValue and trueValue. + /// The componentwise selection between falseValue and trueValue according to selection mask test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int3 select(int3 a, int3 b, bool3 c) { return new int3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } + public static int3 select(int3 falseValue, int3 trueValue, bool3 test) { return new int3(test.x ? trueValue.x : falseValue.x, test.y ? trueValue.y : falseValue.y, test.z ? trueValue.z : falseValue.z); } /// - /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. + /// Returns a componentwise selection between two double4 vectors falseValue and trueValue based on a bool4 selection mask test. + /// Per component, the component from trueValue is selected when test is true, otherwise the component from falseValue is selected. /// - /// Values to use if c is false. - /// Values to use if c is true. - /// Selection mask to choose between a and b. - /// The componentwise selection between a and b according to selection mask c. + /// Values to use if test is false. + /// Values to use if test is true. + /// Selection mask to choose between falseValue and trueValue. + /// The componentwise selection between falseValue and trueValue according to selection mask test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int4 select(int4 a, int4 b, bool4 c) { return new int4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } + public static int4 select(int4 falseValue, int4 trueValue, bool4 test) { return new int4(test.x ? trueValue.x : falseValue.x, test.y ? trueValue.y : falseValue.y, test.z ? trueValue.z : falseValue.z, test.w ? trueValue.w : falseValue.w); } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint select(uint a, uint b, bool c) { return c ? b : a; } + public static uint select(uint falseValue, uint trueValue, bool test) { return test ? trueValue : falseValue; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 select(uint2 a, uint2 b, bool c) { return c ? b : a; } + public static uint2 select(uint2 falseValue, uint2 trueValue, bool test) { return test ? trueValue : falseValue; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 select(uint3 a, uint3 b, bool c) { return c ? b : a; } + public static uint3 select(uint3 falseValue, uint3 trueValue, bool test) { return test ? trueValue : falseValue; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 select(uint4 a, uint4 b, bool c) { return c ? b : a; } + public static uint4 select(uint4 falseValue, uint4 trueValue, bool test) { return test ? trueValue : falseValue; } /// - /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. + /// Returns a componentwise selection between two double4 vectors falseValue and trueValue based on a bool4 selection mask test. + /// Per component, the component from trueValue is selected when test is true, otherwise the component from falseValue is selected. /// - /// Values to use if c is false. - /// Values to use if c is true. - /// Selection mask to choose between a and b. - /// The componentwise selection between a and b according to selection mask c. + /// Values to use if test is false. + /// Values to use if test is true. + /// Selection mask to choose between falseValue and trueValue. + /// The componentwise selection between falseValue and trueValue according to selection mask test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint2 select(uint2 a, uint2 b, bool2 c) { return new uint2(c.x ? b.x : a.x, c.y ? b.y : a.y); } + public static uint2 select(uint2 falseValue, uint2 trueValue, bool2 test) { return new uint2(test.x ? trueValue.x : falseValue.x, test.y ? trueValue.y : falseValue.y); } /// - /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. + /// Returns a componentwise selection between two double4 vectors falseValue and trueValue based on a bool4 selection mask test. + /// Per component, the component from trueValue is selected when test is true, otherwise the component from falseValue is selected. /// - /// Values to use if c is false. - /// Values to use if c is true. - /// Selection mask to choose between a and b. - /// The componentwise selection between a and b according to selection mask c. + /// Values to use if test is false. + /// Values to use if test is true. + /// Selection mask to choose between falseValue and trueValue. + /// The componentwise selection between falseValue and trueValue according to selection mask test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint3 select(uint3 a, uint3 b, bool3 c) { return new uint3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } + public static uint3 select(uint3 falseValue, uint3 trueValue, bool3 test) { return new uint3(test.x ? trueValue.x : falseValue.x, test.y ? trueValue.y : falseValue.y, test.z ? trueValue.z : falseValue.z); } /// - /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. + /// Returns a componentwise selection between two double4 vectors falseValue and trueValue based on a bool4 selection mask test. + /// Per component, the component from trueValue is selected when test is true, otherwise the component from falseValue is selected. /// - /// Values to use if c is false. - /// Values to use if c is true. - /// Selection mask to choose between a and b. - /// The componentwise selection between a and b according to selection mask c. + /// Values to use if test is false. + /// Values to use if test is true. + /// Selection mask to choose between falseValue and trueValue. + /// The componentwise selection between falseValue and trueValue according to selection mask test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint4 select(uint4 a, uint4 b, bool4 c) { return new uint4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } + public static uint4 select(uint4 falseValue, uint4 trueValue, bool4 test) { return new uint4(test.x ? trueValue.x : falseValue.x, test.y ? trueValue.y : falseValue.y, test.z ? trueValue.z : falseValue.z, test.w ? trueValue.w : falseValue.w); } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static long select(long a, long b, bool c) { return c ? b : a; } + public static long select(long falseValue, long trueValue, bool test) { return test ? trueValue : falseValue; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ulong select(ulong a, ulong b, bool c) { return c ? b : a; } + public static ulong select(ulong falseValue, ulong trueValue, bool test) { return test ? trueValue : falseValue; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float select(float a, float b, bool c) { return c ? b : a; } + public static float select(float falseValue, float trueValue, bool test) { return test ? trueValue : falseValue; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 select(float2 a, float2 b, bool c) { return c ? b : a; } + public static float2 select(float2 falseValue, float2 trueValue, bool test) { return test ? trueValue : falseValue; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 select(float3 a, float3 b, bool c) { return c ? b : a; } + public static float3 select(float3 falseValue, float3 trueValue, bool test) { return test ? trueValue : falseValue; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 select(float4 a, float4 b, bool c) { return c ? b : a; } + public static float4 select(float4 falseValue, float4 trueValue, bool test) { return test ? trueValue : falseValue; } /// - /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. + /// Returns a componentwise selection between two double4 vectors falseValue and trueValue based on a bool4 selection mask test. + /// Per component, the component from trueValue is selected when test is true, otherwise the component from falseValue is selected. /// - /// Values to use if c is false. - /// Values to use if c is true. - /// Selection mask to choose between a and b. - /// The componentwise selection between a and b according to selection mask c. + /// Values to use if test is false. + /// Values to use if test is true. + /// Selection mask to choose between falseValue and trueValue. + /// The componentwise selection between falseValue and trueValue according to selection mask test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 select(float2 a, float2 b, bool2 c) { return new float2(c.x ? b.x : a.x, c.y ? b.y : a.y); } + public static float2 select(float2 falseValue, float2 trueValue, bool2 test) { return new float2(test.x ? trueValue.x : falseValue.x, test.y ? trueValue.y : falseValue.y); } /// - /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. + /// Returns a componentwise selection between two double4 vectors falseValue and trueValue based on a bool4 selection mask test. + /// Per component, the component from trueValue is selected when test is true, otherwise the component from falseValue is selected. /// - /// Values to use if c is false. - /// Values to use if c is true. - /// Selection mask to choose between a and b. - /// The componentwise selection between a and b according to selection mask c. + /// Values to use if test is false. + /// Values to use if test is true. + /// Selection mask to choose between falseValue and trueValue. + /// The componentwise selection between falseValue and trueValue according to selection mask test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 select(float3 a, float3 b, bool3 c) { return new float3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } + public static float3 select(float3 falseValue, float3 trueValue, bool3 test) { return new float3(test.x ? trueValue.x : falseValue.x, test.y ? trueValue.y : falseValue.y, test.z ? trueValue.z : falseValue.z); } /// - /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. + /// Returns a componentwise selection between two double4 vectors falseValue and trueValue based on a bool4 selection mask test. + /// Per component, the component from trueValue is selected when test is true, otherwise the component from falseValue is selected. /// - /// Values to use if c is false. - /// Values to use if c is true. - /// Selection mask to choose between a and b. - /// The componentwise selection between a and b according to selection mask c. + /// Values to use if test is false. + /// Values to use if test is true. + /// Selection mask to choose between falseValue and trueValue. + /// The componentwise selection between falseValue and trueValue according to selection mask test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 select(float4 a, float4 b, bool4 c) { return new float4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } + public static float4 select(float4 falseValue, float4 trueValue, bool4 test) { return new float4(test.x ? trueValue.x : falseValue.x, test.y ? trueValue.y : falseValue.y, test.z ? trueValue.z : falseValue.z, test.w ? trueValue.w : falseValue.w); } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double select(double a, double b, bool c) { return c ? b : a; } + public static double select(double falseValue, double trueValue, bool test) { return test ? trueValue : falseValue; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 select(double2 a, double2 b, bool c) { return c ? b : a; } + public static double2 select(double2 falseValue, double2 trueValue, bool test) { return test ? trueValue : falseValue; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 select(double3 a, double3 b, bool c) { return c ? b : a; } + public static double3 select(double3 falseValue, double3 trueValue, bool test) { return test ? trueValue : falseValue; } - /// Returns b if c is true, a otherwise. - /// Value to use if c is false. - /// Value to use if c is true. - /// Bool value to choose between a and b. - /// The selection between a and b according to bool c. + /// Returns trueValue if test is true, falseValue otherwise. + /// Value to use if test is false. + /// Value to use if test is true. + /// Bool value to choose between falseValue and trueValue. + /// The selection between falseValue and trueValue according to bool test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 select(double4 a, double4 b, bool c) { return c ? b : a; } + public static double4 select(double4 falseValue, double4 trueValue, bool test) { return test ? trueValue : falseValue; } /// - /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. + /// Returns a componentwise selection between two double4 vectors falseValue and trueValue based on a bool4 selection mask test. + /// Per component, the component from trueValue is selected when test is true, otherwise the component from falseValue is selected. /// - /// Values to use if c is false. - /// Values to use if c is true. - /// Selection mask to choose between a and b. - /// The componentwise selection between a and b according to selection mask c. + /// Values to use if test is false. + /// Values to use if test is true. + /// Selection mask to choose between falseValue and trueValue. + /// The componentwise selection between falseValue and trueValue according to selection mask test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 select(double2 a, double2 b, bool2 c) { return new double2(c.x ? b.x : a.x, c.y ? b.y : a.y); } + public static double2 select(double2 falseValue, double2 trueValue, bool2 test) { return new double2(test.x ? trueValue.x : falseValue.x, test.y ? trueValue.y : falseValue.y); } /// - /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. + /// Returns a componentwise selection between two double4 vectors falseValue and trueValue based on a bool4 selection mask test. + /// Per component, the component from trueValue is selected when test is true, otherwise the component from falseValue is selected. /// - /// Values to use if c is false. - /// Values to use if c is true. - /// Selection mask to choose between a and b. - /// The componentwise selection between a and b according to selection mask c. + /// Values to use if test is false. + /// Values to use if test is true. + /// Selection mask to choose between falseValue and trueValue. + /// The componentwise selection between falseValue and trueValue according to selection mask test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 select(double3 a, double3 b, bool3 c) { return new double3(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z); } + public static double3 select(double3 falseValue, double3 trueValue, bool3 test) { return new double3(test.x ? trueValue.x : falseValue.x, test.y ? trueValue.y : falseValue.y, test.z ? trueValue.z : falseValue.z); } /// - /// Returns a componentwise selection between two double4 vectors a and b based on a bool4 selection mask c. - /// Per component, the component from b is selected when c is true, otherwise the component from a is selected. + /// Returns a componentwise selection between two double4 vectors falseValue and trueValue based on a bool4 selection mask test. + /// Per component, the component from trueValue is selected when test is true, otherwise the component from falseValue is selected. /// - /// Values to use if c is false. - /// Values to use if c is true. - /// Selection mask to choose between a and b. - /// The componentwise selection between a and b according to selection mask c. + /// Values to use if test is false. + /// Values to use if test is true. + /// Selection mask to choose between falseValue and trueValue. + /// The componentwise selection between falseValue and trueValue according to selection mask test. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 select(double4 a, double4 b, bool4 c) { return new double4(c.x ? b.x : a.x, c.y ? b.y : a.y, c.z ? b.z : a.z, c.w ? b.w : a.w); } + public static double4 select(double4 falseValue, double4 trueValue, bool4 test) { return new double4(test.x ? trueValue.x : falseValue.x, test.y ? trueValue.y : falseValue.y, test.z ? trueValue.z : falseValue.z, test.w ? trueValue.w : falseValue.w); } - /// Returns the result of a step function where the result is 1.0f when x >= y and 0.0f otherwise. - /// Value to be used as a threshold for returning 1. - /// Value to compare against threshold y. - /// 1 if the comparison x >= y is true, otherwise 0. + /// Returns the result of a step function where the result is 1.0f when x >= threshold and 0.0f otherwise. + /// Value to be used as a threshold for returning 1. + /// Value to compare against threshold. + /// 1 if the comparison x >= threshold is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float step(float y, float x) { return select(0.0f, 1.0f, x >= y); } + public static float step(float threshold, float x) { return select(0.0f, 1.0f, x >= threshold); } - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. - /// Vector of values to be used as a threshold for returning 1. - /// Vector of values to compare against threshold y. - /// 1 if the componentwise comparison x >= y is true, otherwise 0. + /// Returns the result of a componentwise step function where each component is 1.0f when x >= threshold and 0.0f otherwise. + /// Vector of values to be used as a threshold for returning 1. + /// Vector of values to compare against threshold. + /// 1 if the componentwise comparison x >= threshold is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 step(float2 y, float2 x) { return select(float2(0.0f), float2(1.0f), x >= y); } + public static float2 step(float2 threshold, float2 x) { return select(float2(0.0f), float2(1.0f), x >= threshold); } - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. - /// Vector of values to be used as a threshold for returning 1. - /// Vector of values to compare against threshold y. - /// 1 if the componentwise comparison x >= y is true, otherwise 0. + /// Returns the result of a componentwise step function where each component is 1.0f when x >= threshold and 0.0f otherwise. + /// Vector of values to be used as a threshold for returning 1. + /// Vector of values to compare against threshold. + /// 1 if the componentwise comparison x >= threshold is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 step(float3 y, float3 x) { return select(float3(0.0f), float3(1.0f), x >= y); } + public static float3 step(float3 threshold, float3 x) { return select(float3(0.0f), float3(1.0f), x >= threshold); } - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. - /// Vector of values to be used as a threshold for returning 1. - /// Vector of values to compare against threshold y. - /// 1 if the componentwise comparison x >= y is true, otherwise 0. + /// Returns the result of a componentwise step function where each component is 1.0f when x >= threshold and 0.0f otherwise. + /// Vector of values to be used as a threshold for returning 1. + /// Vector of values to compare against threshold. + /// 1 if the componentwise comparison x >= threshold is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 step(float4 y, float4 x) { return select(float4(0.0f), float4(1.0f), x >= y); } + public static float4 step(float4 threshold, float4 x) { return select(float4(0.0f), float4(1.0f), x >= threshold); } - /// Returns the result of a step function where the result is 1.0f when x >= y and 0.0f otherwise. - /// Values to be used as a threshold for returning 1. - /// Values to compare against threshold y. - /// 1 if the comparison x >= y is true, otherwise 0. + /// Returns the result of a step function where the result is 1.0f when x >= threshold and 0.0f otherwise. + /// Values to be used as a threshold for returning 1. + /// Value to compare against threshold. + /// 1 if the comparison x >= threshold is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double step(double y, double x) { return select(0.0, 1.0, x >= y); } + public static double step(double threshold, double x) { return select(0.0, 1.0, x >= threshold); } - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. - /// Vector of values to be used as a threshold for returning 1. - /// Vector of values to compare against threshold y. - /// 1 if the componentwise comparison x >= y is true, otherwise 0. + /// Returns the result of a componentwise step function where each component is 1.0f when x >= threshold and 0.0f otherwise. + /// Vector of values to be used as a threshold for returning 1. + /// Vector of values to compare against threshold. + /// 1 if the componentwise comparison x >= threshold is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 step(double2 y, double2 x) { return select(double2(0.0), double2(1.0), x >= y); } + public static double2 step(double2 threshold, double2 x) { return select(double2(0.0), double2(1.0), x >= threshold); } - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. - /// Vector of values to be used as a threshold for returning 1. - /// Vector of values to compare against threshold y. - /// 1 if the componentwise comparison x >= y is true, otherwise 0. + /// Returns the result of a componentwise step function where each component is 1.0f when x >= threshold and 0.0f otherwise. + /// Vector of values to be used as a threshold for returning 1. + /// Vector of values to compare against threshold. + /// 1 if the componentwise comparison x >= threshold is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 step(double3 y, double3 x) { return select(double3(0.0), double3(1.0), x >= y); } + public static double3 step(double3 threshold, double3 x) { return select(double3(0.0), double3(1.0), x >= threshold); } - /// Returns the result of a componentwise step function where each component is 1.0f when x >= y and 0.0f otherwise. - /// Vector of values to be used as a threshold for returning 1. - /// Vector of values to compare against threshold y. - /// 1 if the componentwise comparison x >= y is true, otherwise 0. + /// Returns the result of a componentwise step function where each component is 1.0f when x >= threshold and 0.0f otherwise. + /// Vector of values to be used as a threshold for returning 1. + /// Vector of values to compare against threshold. + /// 1 if the componentwise comparison x >= threshold is true, otherwise 0. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 step(double4 y, double4 x) { return select(double4(0.0), double4(1.0), x >= y); } + public static double4 step(double4 threshold, double4 x) { return select(double4(0.0), double4(1.0), x >= threshold); } /// Given an incident vector i and a normal vector n, returns the reflection vector r = i - 2.0f * dot(i, n) * n. @@ -4450,83 +4450,83 @@ public static double4 smoothstep(double4 a, double4 b, double4 x) public static double4 reflect(double4 i, double4 n) { return i - 2 * n * dot(i, n); } - /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. + /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index. /// Incident vector. /// Normal vector. - /// Index of refraction. + /// Index of refraction. /// Refraction vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 refract(float2 i, float2 n, float eta) + public static float2 refract(float2 i, float2 n, float indexOfRefraction) { float ni = dot(n, i); - float k = 1.0f - eta * eta * (1.0f - ni * ni); - return select(0.0f, eta * i - (eta * ni + sqrt(k)) * n, k >= 0); + float k = 1.0f - indexOfRefraction * indexOfRefraction * (1.0f - ni * ni); + return select(0.0f, indexOfRefraction * i - (indexOfRefraction * ni + sqrt(k)) * n, k >= 0); } - /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. + /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index. /// Incident vector. /// Normal vector. - /// Index of refraction. + /// Index of refraction. /// Refraction vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 refract(float3 i, float3 n, float eta) + public static float3 refract(float3 i, float3 n, float indexOfRefraction) { float ni = dot(n, i); - float k = 1.0f - eta * eta * (1.0f - ni * ni); - return select(0.0f, eta * i - (eta * ni + sqrt(k)) * n, k >= 0); + float k = 1.0f - indexOfRefraction * indexOfRefraction * (1.0f - ni * ni); + return select(0.0f, indexOfRefraction * i - (indexOfRefraction * ni + sqrt(k)) * n, k >= 0); } - /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. + /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index. /// Incident vector. /// Normal vector. - /// Index of refraction. + /// Index of refraction. /// Refraction vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 refract(float4 i, float4 n, float eta) + public static float4 refract(float4 i, float4 n, float indexOfRefraction) { float ni = dot(n, i); - float k = 1.0f - eta * eta * (1.0f - ni * ni); - return select(0.0f, eta * i - (eta * ni + sqrt(k)) * n, k >= 0); + float k = 1.0f - indexOfRefraction * indexOfRefraction * (1.0f - ni * ni); + return select(0.0f, indexOfRefraction * i - (indexOfRefraction * ni + sqrt(k)) * n, k >= 0); } - /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. + /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index. /// Incident vector. /// Normal vector. - /// Index of refraction. + /// Index of refraction. /// Refraction vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 refract(double2 i, double2 n, double eta) + public static double2 refract(double2 i, double2 n, double indexOfRefraction) { double ni = dot(n, i); - double k = 1.0 - eta * eta * (1.0 - ni * ni); - return select(0.0f, eta * i - (eta * ni + sqrt(k)) * n, k >= 0); + double k = 1.0 - indexOfRefraction * indexOfRefraction * (1.0 - ni * ni); + return select(0.0f, indexOfRefraction * i - (indexOfRefraction * ni + sqrt(k)) * n, k >= 0); } - /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. + /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index. /// Incident vector. /// Normal vector. - /// Index of refraction. + /// Index of refraction. /// Refraction vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 refract(double3 i, double3 n, double eta) + public static double3 refract(double3 i, double3 n, double indexOfRefraction) { double ni = dot(n, i); - double k = 1.0 - eta * eta * (1.0 - ni * ni); - return select(0.0f, eta * i - (eta * ni + sqrt(k)) * n, k >= 0); + double k = 1.0 - indexOfRefraction * indexOfRefraction * (1.0 - ni * ni); + return select(0.0f, indexOfRefraction * i - (indexOfRefraction * ni + sqrt(k)) * n, k >= 0); } - /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index eta. + /// Returns the refraction vector given the incident vector i, the normal vector n and the refraction index. /// Incident vector. /// Normal vector. - /// Index of refraction. + /// Index of refraction. /// Refraction vector. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 refract(double4 i, double4 n, double eta) + public static double4 refract(double4 i, double4 n, double indexOfRefraction) { double ni = dot(n, i); - double k = 1.0 - eta * eta * (1.0 - ni * ni); - return select(0.0f, eta * i - (eta * ni + sqrt(k)) * n, k >= 0); + double k = 1.0 - indexOfRefraction * indexOfRefraction * (1.0 - ni * ni); + return select(0.0f, indexOfRefraction * i - (indexOfRefraction * ni + sqrt(k)) * n, k >= 0); } /// @@ -4539,12 +4539,12 @@ public static double4 refract(double4 i, double4 n, double eta) /// which will use a given default value if the result is not finite. /// /// Vector to project. - /// Non-zero vector to project onto. + /// Non-zero vector to project onto. /// Vector projection of a onto b. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 project(float2 a, float2 b) + public static float2 project(float2 a, float2 ontoB) { - return (dot(a, b) / dot(b, b)) * b; + return (dot(a, ontoB) / dot(ontoB, ontoB)) * ontoB; } /// @@ -4557,12 +4557,12 @@ public static float2 project(float2 a, float2 b) /// which will use a given default value if the result is not finite. /// /// Vector to project. - /// Non-zero vector to project onto. + /// Non-zero vector to project onto. /// Vector projection of a onto b. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 project(float3 a, float3 b) + public static float3 project(float3 a, float3 ontoB) { - return (dot(a, b) / dot(b, b)) * b; + return (dot(a, ontoB) / dot(ontoB, ontoB)) * ontoB; } /// @@ -4575,12 +4575,12 @@ public static float3 project(float3 a, float3 b) /// which will use a given default value if the result is not finite. /// /// Vector to project. - /// Non-zero vector to project onto. + /// Non-zero vector to project onto. /// Vector projection of a onto b. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 project(float4 a, float4 b) + public static float4 project(float4 a, float4 ontoB) { - return (dot(a, b) / dot(b, b)) * b; + return (dot(a, ontoB) / dot(ontoB, ontoB)) * ontoB; } /// @@ -4593,13 +4593,13 @@ public static float4 project(float4 a, float4 b) /// function. /// /// Vector to project. - /// Non-zero vector to project onto. + /// Non-zero vector to project onto. /// Default value to return if projection is not finite. /// Vector projection of a onto b or the default value. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 projectsafe(float2 a, float2 b, float2 defaultValue = new float2()) + public static float2 projectsafe(float2 a, float2 ontoB, float2 defaultValue = new float2()) { - var proj = project(a, b); + var proj = project(a, ontoB); return select(defaultValue, proj, all(isfinite(proj))); } @@ -4614,13 +4614,13 @@ public static float4 project(float4 a, float4 b) /// function. /// /// Vector to project. - /// Non-zero vector to project onto. + /// Non-zero vector to project onto. /// Default value to return if projection is not finite. /// Vector projection of a onto b or the default value. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 projectsafe(float3 a, float3 b, float3 defaultValue = new float3()) + public static float3 projectsafe(float3 a, float3 ontoB, float3 defaultValue = new float3()) { - var proj = project(a, b); + var proj = project(a, ontoB); return select(defaultValue, proj, all(isfinite(proj))); } @@ -4635,13 +4635,13 @@ public static float4 project(float4 a, float4 b) /// function. /// /// Vector to project. - /// Non-zero vector to project onto. + /// Non-zero vector to project onto. /// Default value to return if projection is not finite. /// Vector projection of a onto b or the default value. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 projectsafe(float4 a, float4 b, float4 defaultValue = new float4()) + public static float4 projectsafe(float4 a, float4 ontoB, float4 defaultValue = new float4()) { - var proj = project(a, b); + var proj = project(a, ontoB); return select(defaultValue, proj, all(isfinite(proj))); } @@ -4656,12 +4656,12 @@ public static float4 project(float4 a, float4 b) /// which will use a given default value if the result is not finite. /// /// Vector to project. - /// Non-zero vector to project onto. + /// Non-zero vector to project onto. /// Vector projection of a onto b. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 project(double2 a, double2 b) + public static double2 project(double2 a, double2 ontoB) { - return (dot(a, b) / dot(b, b)) * b; + return (dot(a, ontoB) / dot(ontoB, ontoB)) * ontoB; } /// @@ -4674,12 +4674,12 @@ public static double2 project(double2 a, double2 b) /// which will use a given default value if the result is not finite. /// /// Vector to project. - /// Non-zero vector to project onto. + /// Non-zero vector to project onto. /// Vector projection of a onto b. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 project(double3 a, double3 b) + public static double3 project(double3 a, double3 ontoB) { - return (dot(a, b) / dot(b, b)) * b; + return (dot(a, ontoB) / dot(ontoB, ontoB)) * ontoB; } /// @@ -4692,12 +4692,12 @@ public static double3 project(double3 a, double3 b) /// which will use a given default value if the result is not finite. /// /// Vector to project. - /// Non-zero vector to project onto. + /// Non-zero vector to project onto. /// Vector projection of a onto b. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 project(double4 a, double4 b) + public static double4 project(double4 a, double4 ontoB) { - return (dot(a, b) / dot(b, b)) * b; + return (dot(a, ontoB) / dot(ontoB, ontoB)) * ontoB; } /// @@ -4710,13 +4710,13 @@ public static double4 project(double4 a, double4 b) /// function. /// /// Vector to project. - /// Non-zero vector to project onto. + /// Non-zero vector to project onto. /// Default value to return if projection is not finite. /// Vector projection of a onto b or the default value. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 projectsafe(double2 a, double2 b, double2 defaultValue = new double2()) + public static double2 projectsafe(double2 a, double2 ontoB, double2 defaultValue = new double2()) { - var proj = project(a, b); + var proj = project(a, ontoB); return select(defaultValue, proj, all(isfinite(proj))); } @@ -4731,13 +4731,13 @@ public static double4 project(double4 a, double4 b) /// function. /// /// Vector to project. - /// Non-zero vector to project onto. + /// Non-zero vector to project onto. /// Default value to return if projection is not finite. /// Vector projection of a onto b or the default value. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 projectsafe(double3 a, double3 b, double3 defaultValue = new double3()) + public static double3 projectsafe(double3 a, double3 ontoB, double3 defaultValue = new double3()) { - var proj = project(a, b); + var proj = project(a, ontoB); return select(defaultValue, proj, all(isfinite(proj))); } @@ -4752,13 +4752,13 @@ public static double4 project(double4 a, double4 b) /// function. /// /// Vector to project. - /// Non-zero vector to project onto. + /// Non-zero vector to project onto. /// Default value to return if projection is not finite. /// Vector projection of a onto b or the default value. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 projectsafe(double4 a, double4 b, double4 defaultValue = new double4()) + public static double4 projectsafe(double4 a, double4 ontoB, double4 defaultValue = new double4()) { - var proj = project(a, b); + var proj = project(a, ontoB); return select(defaultValue, proj, all(isfinite(proj))); } From 835c605ad7cea3fd26472773989cbe962111ba0b Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Thu, 10 Feb 2022 11:45:37 -0800 Subject: [PATCH 388/437] Added more math constants such as PI2, PIHALF, TAU and others. (#217) * Added more math constants such as PI2, PIHALF, TAU and others. * Update changelog. * Make math.degrees and math.radians use new constants. --- src/CHANGELOG.md | 1 + src/Tests/Tests/Shared/TestMath.cs | 74 +++++++++++++++++++++++++ src/Unity.Mathematics/math.cs | 86 ++++++++++++++++++++++++------ 3 files changed, 145 insertions(+), 16 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index d744d474..8715ada6 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -12,6 +12,7 @@ * Added `math.mulScale` to scale columns of a float3x3 with scaling coefficients in a float3. * Added `math.scaleMul` to scale rows of a float3x3 with scaling coefficients in a float3. * Added `AffineTransform` type. +* Added `PI2`, `PIHALF`, `TAU`, `TODEGREES` and `TORADIANS` constants. ### Changed * `asfloat(uint)`, `asuint(float)`, `asint(float)` and other related methods are now faster in mono without Burst. Other methods which use these will see a performance improvement. * Modified `quaternion.nlerp` to be branchless. diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index 7691c5d3..d22d82a7 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -4122,5 +4122,79 @@ public static void scaleMul() TestUtils.AreEqual(expected, actual, tolerance); } + + [TestCompiler] + public static void piDoubleConstants() + { + var expectedPi = 3.141592653589793116; + TestUtils.AreEqual(expectedPi, PI_DBL); + TestUtils.AreEqual(expectedPi * 0.5, PIHALF_DBL); + TestUtils.AreEqual(expectedPi * 2.0, PI2_DBL); + TestUtils.AreEqual(expectedPi * 2.0, TAU_DBL); + } + + [TestCompiler] + public static void piSingleConstants() + { + var expectedPi = 3.141592653589793116f; + TestUtils.AreEqual(expectedPi, PI); + TestUtils.AreEqual(expectedPi * 0.5f, PIHALF); + TestUtils.AreEqual(expectedPi * 2.0f, PI2); + TestUtils.AreEqual(expectedPi * 2.0f, TAU); + } + + [TestCompiler] + public static void toDegreesConstants() + { + TestUtils.AreEqual(360.0, PI2_DBL * TODEGREES_DBL); + TestUtils.AreEqual(360.0, TAU_DBL * TODEGREES_DBL); + TestUtils.AreEqual(180.0, PI_DBL * TODEGREES_DBL); + TestUtils.AreEqual(90.0, PIHALF_DBL * TODEGREES_DBL); + + TestUtils.AreEqual(360.0f, PI2 * TODEGREES); + TestUtils.AreEqual(360.0f, TAU * TODEGREES); + TestUtils.AreEqual(180.0f, PI * TODEGREES); + TestUtils.AreEqual(90.0f, PIHALF * TODEGREES); + } + + [TestCompiler] + public static void toRadiansConstants() + { + TestUtils.AreEqual(PI2_DBL, 360.0 * TORADIANS_DBL); + TestUtils.AreEqual(TAU_DBL, 360.0 * TORADIANS_DBL); + TestUtils.AreEqual(PI_DBL, 180.0 * TORADIANS_DBL); + TestUtils.AreEqual(PIHALF_DBL, 90.0 * TORADIANS_DBL); + + TestUtils.AreEqual(PI2, 360.0f * TORADIANS); + TestUtils.AreEqual(TAU, 360.0f * TORADIANS); + TestUtils.AreEqual(PI, 180.0f * TORADIANS); + TestUtils.AreEqual(PIHALF, 90.0f * TORADIANS); + } + + [TestCompiler] + public static void degreesConversionGivesSameResult() + { + int n = 360; + + for (int i = 0; i <= n; ++i) + { + double radians = math.unlerp((double)0, (double)n, (double)i) * PI_DBL; + TestUtils.AreEqual(math.degrees(radians), radians * TODEGREES_DBL); + TestUtils.AreEqual(math.degrees((float)radians), (float)radians * TODEGREES); + } + } + + [TestCompiler] + public static void radiansConversionGivesSameResult() + { + int n = 360; + + for (int i = 0; i <= n; ++i) + { + double degrees = (double)i; + TestUtils.AreEqual(math.radians(degrees), degrees * TORADIANS_DBL); + TestUtils.AreEqual(math.radians((float)degrees), (float)degrees * TORADIANS); + } + } } } diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 73204610..f2ef33b7 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -70,6 +70,33 @@ public enum ShuffleComponent : byte /// The mathematical constant pi. Approximately 3.14. This is a f64/double precision constant. public const double PI_DBL = 3.14159265358979323846; + /// + /// The mathematical constant (2 * pi). Approximately 6.28. This is a f64/double precision constant. Also known as . + /// + public const double PI2_DBL = PI_DBL * 2.0; + + /// + /// The mathematical constant (pi / 2). Approximately 1.57. This is a f64/double precision constant. + /// + public const double PIHALF_DBL = PI_DBL * 0.5; + + /// + /// The mathematical constant tau. Approximately 6.28. This is a f64/double precision constant. Also known as . + /// + public const double TAU_DBL = PI2_DBL; + + /// + /// The conversion constant used to convert radians to degrees. Multiply the radian value by this constant to get degrees. + /// + /// Multiplying by this constant is equivalent to using . + public const double TODEGREES_DBL = 57.29577951308232; + + /// + /// The conversion constant used to convert degrees to radians. Multiply the degree value by this constant to get radians. + /// + /// Multiplying by this constant is equivalent to using . + public const double TORADIANS_DBL = 0.017453292519943296; + /// The square root 2. Approximately 1.41. This is a f64/double precision constant. public const double SQRT2_DBL = 1.41421356237309504880; @@ -121,6 +148,33 @@ public enum ShuffleComponent : byte /// The mathematical constant pi. Approximately 3.14. public const float PI = (float)PI_DBL; + /// + /// The mathematical constant (2 * pi). Approximately 6.28. Also known as . + /// + public const float PI2 = (float)PI2_DBL; + + /// + /// The mathematical constant (pi / 2). Approximately 1.57. + /// + public const float PIHALF = (float)PIHALF_DBL; + + /// + /// The mathematical constant tau. Approximately 6.28. Also known as . + /// + public const float TAU = (float)PI2_DBL; + + /// + /// The conversion constant used to convert radians to degrees. Multiply the radian value by this constant to get degrees. + /// + /// Multiplying by this constant is equivalent to using . + public const float TODEGREES = (float)TODEGREES_DBL; + + /// + /// The conversion constant used to convert degrees to radians. Multiply the degree value by this constant to get radians. + /// + /// Multiplying by this constant is equivalent to using . + public const float TORADIANS = (float)TORADIANS_DBL; + /// The square root 2. Approximately 1.41. public const float SQRT2 = (float)SQRT2_DBL; @@ -5826,100 +5880,100 @@ public static int4 floorlog2(uint4 x) /// Angle in degrees. /// Angle converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float radians(float x) { return x * 0.0174532925f; } + public static float radians(float x) { return x * TORADIANS; } /// Returns the result of a componentwise conversion of a float2 vector from degrees to radians. /// Vector containing angles in degrees. /// Vector containing angles converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 radians(float2 x) { return x * 0.0174532925f; } + public static float2 radians(float2 x) { return x * TORADIANS; } /// Returns the result of a componentwise conversion of a float3 vector from degrees to radians. /// Vector containing angles in degrees. /// Vector containing angles converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 radians(float3 x) { return x * 0.0174532925f; } + public static float3 radians(float3 x) { return x * TORADIANS; } /// Returns the result of a componentwise conversion of a float4 vector from degrees to radians. /// Vector containing angles in degrees. /// Vector containing angles converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 radians(float4 x) { return x * 0.0174532925f; } + public static float4 radians(float4 x) { return x * TORADIANS; } /// Returns the result of converting a float value from degrees to radians. /// Angle in degrees. /// Angle converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double radians(double x) { return x * 0.017453292519943296; } + public static double radians(double x) { return x * TORADIANS_DBL; } /// Returns the result of a componentwise conversion of a float2 vector from degrees to radians. /// Vector containing angles in degrees. /// Vector containing angles converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 radians(double2 x) { return x * 0.017453292519943296; } + public static double2 radians(double2 x) { return x * TORADIANS_DBL; } /// Returns the result of a componentwise conversion of a float3 vector from degrees to radians. /// Vector containing angles in degrees. /// Vector containing angles converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 radians(double3 x) { return x * 0.017453292519943296; } + public static double3 radians(double3 x) { return x * TORADIANS_DBL; } /// Returns the result of a componentwise conversion of a float4 vector from degrees to radians. /// Vector containing angles in degrees. /// Vector containing angles converted to radians. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 radians(double4 x) { return x * 0.017453292519943296; } + public static double4 radians(double4 x) { return x * TORADIANS_DBL; } /// Returns the result of converting a double value from radians to degrees. /// Angle in radians. /// Angle converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float degrees(float x) { return x * 57.295779513f; } + public static float degrees(float x) { return x * TODEGREES; } /// Returns the result of a componentwise conversion of a double2 vector from radians to degrees. /// Vector containing angles in radians. /// Vector containing angles converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float2 degrees(float2 x) { return x * 57.295779513f; } + public static float2 degrees(float2 x) { return x * TODEGREES; } /// Returns the result of a componentwise conversion of a double3 vector from radians to degrees. /// Vector containing angles in radians. /// Vector containing angles converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float3 degrees(float3 x) { return x * 57.295779513f; } + public static float3 degrees(float3 x) { return x * TODEGREES; } /// Returns the result of a componentwise conversion of a double4 vector from radians to degrees. /// Vector containing angles in radians. /// Vector containing angles converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static float4 degrees(float4 x) { return x * 57.295779513f; } + public static float4 degrees(float4 x) { return x * TODEGREES; } /// Returns the result of converting a double value from radians to degrees. /// Angle in radians. /// Angle converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double degrees(double x) { return x * 57.29577951308232; } + public static double degrees(double x) { return x * TODEGREES_DBL; } /// Returns the result of a componentwise conversion of a double2 vector from radians to degrees. /// Vector containing angles in radians. /// Vector containing angles converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double2 degrees(double2 x) { return x * 57.29577951308232; } + public static double2 degrees(double2 x) { return x * TODEGREES_DBL; } /// Returns the result of a componentwise conversion of a double3 vector from radians to degrees. /// Vector containing angles in radians. /// Vector containing values converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double3 degrees(double3 x) { return x * 57.29577951308232; } + public static double3 degrees(double3 x) { return x * TODEGREES_DBL; } /// Returns the result of a componentwise conversion of a double4 vector from radians to degrees. /// Vector containing angles in radians. /// Vector containing angles converted to degrees. [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static double4 degrees(double4 x) { return x * 57.29577951308232; } + public static double4 degrees(double4 x) { return x * TODEGREES_DBL; } /// Returns the minimum component of an int2 vector. From 4f7944a5f08ad1b8d0a879885c0e72acbd45226f Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Thu, 10 Feb 2022 17:43:59 -0800 Subject: [PATCH 389/437] Make Il2CppEagerStaticClassConstructionAttribute internal. (#214) Having this attribute public made it possible to conflict with defnitions made elsewhere. Hiding it as internal will avoid the possibility of our definition conflicting with another. --- src/CHANGELOG.md | 1 + .../Il2CppEagerStaticClassConstructionAttribute.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 8715ada6..7e856def 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -17,6 +17,7 @@ * `asfloat(uint)`, `asuint(float)`, `asint(float)` and other related methods are now faster in mono without Burst. Other methods which use these will see a performance improvement. * Modified `quaternion.nlerp` to be branchless. * More descriptive parameter names for many methods in `math` class. +* Made `Il2CppEagerStaticClassConstructionAttribute` internal to avoid conflicts with other definitions outside of the package. ### Deprecated ### Removed ### Fixed diff --git a/src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs b/src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs index 1588a77e..6f64b476 100644 --- a/src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs +++ b/src/Unity.Mathematics/Il2CppEagerStaticClassConstructionAttribute.cs @@ -7,7 +7,7 @@ namespace Unity.IL2CPP.CompilerServices /// rather than lazily at runtime. /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)] - public class Il2CppEagerStaticClassConstructionAttribute : Attribute + internal class Il2CppEagerStaticClassConstructionAttribute : Attribute { } } \ No newline at end of file From f476dc88954697f71e5615b5f57462495bc973a7 Mon Sep 17 00:00:00 2001 From: kevinmv <45053404+kevinmv@users.noreply.github.com> Date: Mon, 14 Feb 2022 16:59:49 -0500 Subject: [PATCH 390/437] Warning fix for Unity.Mathematics.CodeGen scripts (#218) * Move CodeGen dir to an editor ignored directory. The editor will warn that we won't load the scripts in the dir as there is no asmdef ro the files (nor do we want one) * Delete unused Assets/Tests dir and assembly. * Preemptively deleting shaders while I wait for RM confirmation. This file was not meaningfully implemented and has not been shipped with the package tarballs. Co-authored-by: Dale Kim <3121968+unpacklo@users.noreply.github.com> --- .gitignore | 1 + .../Assets/Tests.meta | 8 - .../Assets/Tests/Tests.asmdef | 6 - .../Assets/Tests/Tests.asmdef.meta | 7 - src/.npmignore | 1 - src/Unity.Mathematics.CodeGen.meta | 8 - .../Program.cs | 0 .../Program.cs.meta | 0 .../Properties.meta | 0 .../Properties/AssemblyInfo.cs | 0 .../Properties/AssemblyInfo.cs.meta | 0 .../Unity.Mathematics.CodeGen.csproj | 0 .../VectorGenerator.cs | 0 .../VectorGenerator.cs.meta | 0 src/Unity.Mathematics.Shaders.meta | 8 - src/Unity.Mathematics.Shaders/hlsl.cs | 142 ------------------ src/Unity.Mathematics.Shaders/hlsl.cs.meta | 11 -- 17 files changed, 1 insertion(+), 191 deletions(-) delete mode 100644 Unity.Mathematics.TestProject/Assets/Tests.meta delete mode 100644 Unity.Mathematics.TestProject/Assets/Tests/Tests.asmdef delete mode 100644 Unity.Mathematics.TestProject/Assets/Tests/Tests.asmdef.meta delete mode 100644 src/Unity.Mathematics.CodeGen.meta rename src/{Unity.Mathematics.CodeGen => Unity.Mathematics.CodeGen~}/Program.cs (100%) rename src/{Unity.Mathematics.CodeGen => Unity.Mathematics.CodeGen~}/Program.cs.meta (100%) rename src/{Unity.Mathematics.CodeGen => Unity.Mathematics.CodeGen~}/Properties.meta (100%) rename src/{Unity.Mathematics.CodeGen => Unity.Mathematics.CodeGen~}/Properties/AssemblyInfo.cs (100%) rename src/{Unity.Mathematics.CodeGen => Unity.Mathematics.CodeGen~}/Properties/AssemblyInfo.cs.meta (100%) rename src/{Unity.Mathematics.CodeGen => Unity.Mathematics.CodeGen~}/Unity.Mathematics.CodeGen.csproj (100%) rename src/{Unity.Mathematics.CodeGen => Unity.Mathematics.CodeGen~}/VectorGenerator.cs (100%) rename src/{Unity.Mathematics.CodeGen => Unity.Mathematics.CodeGen~}/VectorGenerator.cs.meta (100%) delete mode 100644 src/Unity.Mathematics.Shaders.meta delete mode 100644 src/Unity.Mathematics.Shaders/hlsl.cs delete mode 100644 src/Unity.Mathematics.Shaders/hlsl.cs.meta diff --git a/.gitignore b/.gitignore index 9efb5f82..f2d2f5bb 100644 --- a/.gitignore +++ b/.gitignore @@ -177,6 +177,7 @@ ClientBin/ [Ss]tyle[Cc]op.* ~$* *~ +!*CodeGen~ *.dbmdl *.dbproj.schemaview *.pfx diff --git a/Unity.Mathematics.TestProject/Assets/Tests.meta b/Unity.Mathematics.TestProject/Assets/Tests.meta deleted file mode 100644 index 9f5f1a30..00000000 --- a/Unity.Mathematics.TestProject/Assets/Tests.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 6ea92fda216cb44a1b5e2bf49e9ef2ad -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Unity.Mathematics.TestProject/Assets/Tests/Tests.asmdef b/Unity.Mathematics.TestProject/Assets/Tests/Tests.asmdef deleted file mode 100644 index 45bb135b..00000000 --- a/Unity.Mathematics.TestProject/Assets/Tests/Tests.asmdef +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Tests", - "optionalUnityReferences": [ - "TestAssemblies" - ] -} diff --git a/Unity.Mathematics.TestProject/Assets/Tests/Tests.asmdef.meta b/Unity.Mathematics.TestProject/Assets/Tests/Tests.asmdef.meta deleted file mode 100644 index cf7cb66a..00000000 --- a/Unity.Mathematics.TestProject/Assets/Tests/Tests.asmdef.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 5f5c2087bc52f4f7c8326e51ec5a628d -AssemblyDefinitionImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/src/.npmignore b/src/.npmignore index 72855d0d..e2e54865 100755 --- a/src/.npmignore +++ b/src/.npmignore @@ -10,7 +10,6 @@ QAReport.md QAReport.md.meta Unity.Mathematics.CodeGen* Unity.Mathematics.PerformanceTests* -Unity.Mathematics.Shaders* *.sln* *.db* **/*.csproj* diff --git a/src/Unity.Mathematics.CodeGen.meta b/src/Unity.Mathematics.CodeGen.meta deleted file mode 100644 index 192a75dc..00000000 --- a/src/Unity.Mathematics.CodeGen.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ba9313d729590a14dbcd58e38024613d -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/src/Unity.Mathematics.CodeGen/Program.cs b/src/Unity.Mathematics.CodeGen~/Program.cs similarity index 100% rename from src/Unity.Mathematics.CodeGen/Program.cs rename to src/Unity.Mathematics.CodeGen~/Program.cs diff --git a/src/Unity.Mathematics.CodeGen/Program.cs.meta b/src/Unity.Mathematics.CodeGen~/Program.cs.meta similarity index 100% rename from src/Unity.Mathematics.CodeGen/Program.cs.meta rename to src/Unity.Mathematics.CodeGen~/Program.cs.meta diff --git a/src/Unity.Mathematics.CodeGen/Properties.meta b/src/Unity.Mathematics.CodeGen~/Properties.meta similarity index 100% rename from src/Unity.Mathematics.CodeGen/Properties.meta rename to src/Unity.Mathematics.CodeGen~/Properties.meta diff --git a/src/Unity.Mathematics.CodeGen/Properties/AssemblyInfo.cs b/src/Unity.Mathematics.CodeGen~/Properties/AssemblyInfo.cs similarity index 100% rename from src/Unity.Mathematics.CodeGen/Properties/AssemblyInfo.cs rename to src/Unity.Mathematics.CodeGen~/Properties/AssemblyInfo.cs diff --git a/src/Unity.Mathematics.CodeGen/Properties/AssemblyInfo.cs.meta b/src/Unity.Mathematics.CodeGen~/Properties/AssemblyInfo.cs.meta similarity index 100% rename from src/Unity.Mathematics.CodeGen/Properties/AssemblyInfo.cs.meta rename to src/Unity.Mathematics.CodeGen~/Properties/AssemblyInfo.cs.meta diff --git a/src/Unity.Mathematics.CodeGen/Unity.Mathematics.CodeGen.csproj b/src/Unity.Mathematics.CodeGen~/Unity.Mathematics.CodeGen.csproj similarity index 100% rename from src/Unity.Mathematics.CodeGen/Unity.Mathematics.CodeGen.csproj rename to src/Unity.Mathematics.CodeGen~/Unity.Mathematics.CodeGen.csproj diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen~/VectorGenerator.cs similarity index 100% rename from src/Unity.Mathematics.CodeGen/VectorGenerator.cs rename to src/Unity.Mathematics.CodeGen~/VectorGenerator.cs diff --git a/src/Unity.Mathematics.CodeGen/VectorGenerator.cs.meta b/src/Unity.Mathematics.CodeGen~/VectorGenerator.cs.meta similarity index 100% rename from src/Unity.Mathematics.CodeGen/VectorGenerator.cs.meta rename to src/Unity.Mathematics.CodeGen~/VectorGenerator.cs.meta diff --git a/src/Unity.Mathematics.Shaders.meta b/src/Unity.Mathematics.Shaders.meta deleted file mode 100644 index 85226af8..00000000 --- a/src/Unity.Mathematics.Shaders.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 9b10a64aa490dfe46a4bdee58b85da27 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/src/Unity.Mathematics.Shaders/hlsl.cs b/src/Unity.Mathematics.Shaders/hlsl.cs deleted file mode 100644 index c49ad5e8..00000000 --- a/src/Unity.Mathematics.Shaders/hlsl.cs +++ /dev/null @@ -1,142 +0,0 @@ -using System.Runtime.CompilerServices; - -namespace Unity.Mathematics.Shaders -{ - public static class hlsl - { - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float ddx(float x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float2 ddx(float2 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float3 ddx(float3 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float4 ddx(float4 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float2x2 ddx(float2x2 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float3x3 ddx(float3x3 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float4x4 ddx(float4x4 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float ddx_fine(float x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float2 ddx_fine(float2 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float3 ddx_fine(float3 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float4 ddx_fine(float4 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float2x2 ddx_fine(float2x2 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float3x3 ddx_fine(float3x3 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float4x4 ddx_fine(float4x4 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float ddx_coarse(float x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float2 ddx_coarse(float2 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float3 ddx_coarse(float3 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float4 ddx_coarse(float4 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float2x2 ddx_coarse(float2x2 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float3x3 ddx_coarse(float3x3 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float4x4 ddx_coarse(float4x4 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float ddy(float x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float2 ddy(float2 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float3 ddy(float3 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float4 ddy(float4 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float2x2 ddy(float2x2 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float3x3 ddy(float3x3 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float4x4 ddy(float4x4 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float ddy_fine(float x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float2 ddy_fine(float2 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float3 ddy_fine(float3 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float4 ddy_fine(float4 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float2x2 ddy_fine(float2x2 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float3x3 ddy_fine(float3x3 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float4x4 ddy_fine(float4x4 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float ddy_coarse(float x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float2 ddy_coarse(float2 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float3 ddy_coarse(float3 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float4 ddy_coarse(float4 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float2x2 ddy_coarse(float2x2 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float3x3 ddy_coarse(float3x3 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float4x4 ddy_coarse(float4x4 x) { throw new System.NotImplementedException(); } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static void discard() { } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static void clip(float i) { } - - [MethodImpl((MethodImplOptions)0x100)] // agressive inline - public static float3 faceforward(float3 n, float3 i, float3 ng) { return math.cross(-n, math.sign(math.dot(i, ng))); } - } -} diff --git a/src/Unity.Mathematics.Shaders/hlsl.cs.meta b/src/Unity.Mathematics.Shaders/hlsl.cs.meta deleted file mode 100644 index 9b45b04e..00000000 --- a/src/Unity.Mathematics.Shaders/hlsl.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f1451d4ccf06c1c4aa11ee0097e37220 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: From d67d79f8616c8141e6b18b692c1d1ce952681fbd Mon Sep 17 00:00:00 2001 From: Jo Petty Date: Thu, 23 Jun 2022 11:23:39 +0100 Subject: [PATCH 391/437] Renamed mathematics.md --- src/Documentation~/{mathematics.md => index.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/Documentation~/{mathematics.md => index.md} (100%) diff --git a/src/Documentation~/mathematics.md b/src/Documentation~/index.md similarity index 100% rename from src/Documentation~/mathematics.md rename to src/Documentation~/index.md From 3f6123f3398e3bc020e21347eefbdfc4219a91ce Mon Sep 17 00:00:00 2001 From: Jo Petty Date: Thu, 23 Jun 2022 11:29:12 +0100 Subject: [PATCH 392/437] Added new docs --- src/Documentation~/4x4-matrices.md | 48 ++++++++++++++ src/Documentation~/TableOfContents.md | 4 ++ src/Documentation~/compatibility.md | 15 +++++ src/Documentation~/index.md | 86 +++++------------------- src/Documentation~/mathematics.md.meta | 7 -- src/Documentation~/using-mathematics.md | 87 +++++++++++++++++++++++++ 6 files changed, 171 insertions(+), 76 deletions(-) create mode 100644 src/Documentation~/4x4-matrices.md create mode 100644 src/Documentation~/TableOfContents.md create mode 100644 src/Documentation~/compatibility.md delete mode 100644 src/Documentation~/mathematics.md.meta create mode 100644 src/Documentation~/using-mathematics.md diff --git a/src/Documentation~/4x4-matrices.md b/src/Documentation~/4x4-matrices.md new file mode 100644 index 00000000..05f092b8 --- /dev/null +++ b/src/Documentation~/4x4-matrices.md @@ -0,0 +1,48 @@ +# 4×4 matrices + +To create a 4×4 transformation matrix, use the constructors in [`float4x4`](xref:Unity.Mathematics.float4x4) to assign one value to all elements of the matrix, or individually set all 16 elements directly: + + +```c# +// Unity Mathematics example +void Build4x4UnityMathematics() +{ + var c0 = new float4(1.0f, 0.0f, 0.0f, 0.0f); + var c1 = new float4(0.0f, 1.0f, 0.0f, 0.0f); + var c2 = new float4(0.0f, 0.0f, 1.0f, 0.0f); + var c3 = new float4(0.0f, 0.0f, 0.0f, 1.0f); + var m = new float4x4(c0, c1, c2, c3); +} +``` + +## Multiplying a 4×4 matrix + +Unity Mathematics defines the `*` operator differently to `UnityEngine`. The `*` operator for [`float4x4`](xref:Unity.Mathematics.float4x4) implements componentwise multiplication. If you multiply a `float4x4` of all 1s with 0.5 on the diagonal, you get back the half identity because the upper and lower triangles of the matrix are multiplied by the respective zero entries from `f4x4_HalfIdentity`: + +```c# +// Unity Mathematics example +void OperatorMultiply4x4UnityMathematics() +{ + float4x4 result = f4x4_Ones * f4x4_HalfIdentity; + // result: + // 0.5, 0.0, 0.0, 0.0, + // 0.0, 0.5, 0.0, 0.0, + // 0.0, 0.0, 0.5, 0.0, + // 0.0, 0.0, 0.0, 0.5 +} +``` + +## Multiplying a 4×4 matrix and a 4D vector + +Use the [`math.mul`](xref:Unity.Mathematics.math.mul*) method to multiply a 4×4 matrix and a 4D vector. If you supply a `float4x4` as the first parameter and a `float4` as the second, it performs a 4×4 matrix multiplication with a 4×1 column vector, which returns a 4×1 column vector as a `float4`. + +`math.mul` can also multiply a 1×4 row vector by a 4×4 matrix to produce a 1×4 row vector by taking a `float4` as the first parameter and a `float4×4` as the second. Unity Mathematics stores the row vector in a `float4` and it isn't treated as a separate type. + +```c# +// Unity Mathematics example +void Multiply4x4AndVector4UnityMathematics() +{ + float4 result1 = math.mul(f4x4, f4); // 4x4 * 4x1 = 4x1 + float4 result2 = math.mul(f4, f4x4); // 1x4 * 4x4 = 1x4 +} +``` \ No newline at end of file diff --git a/src/Documentation~/TableOfContents.md b/src/Documentation~/TableOfContents.md new file mode 100644 index 00000000..2907837f --- /dev/null +++ b/src/Documentation~/TableOfContents.md @@ -0,0 +1,4 @@ +* [Unity Mathematics](index.md) +* [Compatibility with Mathf](compatibility.md) +* [Using Unity Mathematics](using-mathematics.md) + * [4×4 matrices](4x4-matrices.md) diff --git a/src/Documentation~/compatibility.md b/src/Documentation~/compatibility.md new file mode 100644 index 00000000..94d6f17c --- /dev/null +++ b/src/Documentation~/compatibility.md @@ -0,0 +1,15 @@ +# Compatibility with `Mathf` + +Unity Mathematics isn't implemented in the same way as the [`UnityEngine.Mathf`](https://docs.unity3d.com/ScriptReference/Mathf.html) struct in the core Unity engine. Because of this, if your application relies on the specific behaviors of `Mathf`, it might not be possible to use Unity Mathematics in your project. Also, if your project uses `Mathf` functions that have no corresponding Unity Mathematics function, or your code uses external plug-ins that depend on Unity types such as `Vector3`, or `Matrix4x4`, then you shouldn't use Unity Mathematics. + +>[!IMPORTANT] +>For performance reasons, if your project uses the Mono compiler, you should continue to use the mathematical operations in `Mathf`, rather than Unity Mathematics. + +## Porting `Mathf` code to Unity Mathematics + +If you want to migrate code from `UnityEngine` to `Unity.Mathematics`, you need to make the following changes first: + +* `Vector4` to `float4` +* Multiplications on vector or matrix objects to component multiplication with the `*` operator. +* Degrees to radians +* How your code generates random numbers \ No newline at end of file diff --git a/src/Documentation~/index.md b/src/Documentation~/index.md index 992642fc..f158d0db 100644 --- a/src/Documentation~/index.md +++ b/src/Documentation~/index.md @@ -1,79 +1,27 @@ -# Unity.Mathematics +# Unity Mathematics -A C# math library providing vector types and math functions with a shader like -syntax. Used by the Burst compiler to compile C#/IL to highly efficient -native code. +Unity Mathematics is a C# math library that provides vector types and math functions that have a shader-like +syntax, similar to [SIMD](https://en.wikipedia.org/wiki/Single_instruction,_multiple_data) or [HLSL](https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl). The [Burst compiler](https://docs.unity3d.com/Packages/com.unity.burst@latest) uses Unity Mathematics to compile C#/IL code into highly efficient native code. -The main goal of this library is to provide a friendly Math API familiar to SIMD and graphic/shaders developers, using the well known `float4`, `float3` types...etc. with all intrinsics functions provided by a static class `math` that can be imported easily into your C# program with `using static Unity.Mathematics.math`. +It implements the following vector and matrix types: -In addition to this, the Burst compiler is able to recognize these types and provide the optimized SIMD type for the running CPU on all supported platforms (x64, ARMv7a...etc.) +* floatN, quaternion +* float3×3, float4×4 -NOTICE: The API is a work in progress and we may introduce breaking changes (API and underlying behavior) +Plus elementary functions: +* min, max, fabs, etc. +* sin, cos, sqrt, normalize, dot, cross, etc. -## Usage +## Installation -You can use this library in your Unity game by using the Package Manager and referencing the package `com.unity.mathematics`. See the forum [Welcome](https://forum.unity.com/threads/welcome.522627) page for more details. +You can install the Mathematics package through Unity's Package Manager. For more information, see the Unity User Manual documentation on [Adding and removing packages](https://docs.unity3d.com/Manual/upm-ui-actions.html). -```C# -using static Unity.Mathematics.math; -namespace MyNamespace -{ - using Unity.Mathematics; - - ... - var v1 = float3(1,2,3); - var v2 = float3(4,5,6); - v1 = normalize(v1); - v2 = normalize(v2); - var v3 = dot(v1, v2); - ... -} -``` +### Editor config -## Building +Unity Mathematics uses [editorconfig](http://editorconfig.org/) to keep files formatted for EOL and spaces. -Open the `src\Unity.Mathematics.sln` under Visual Studio 2015 or MonoDevelop and compile in Debug\Release. - -## Contributing - -We don't yet accept PR on this repository. See the FAQ below. - -The project is using [editorconfig](http://editorconfig.org/) to keep files correctly formatted for EOL and spaces. - -We assume that your IDE has support for `editorconfig`, you can download the following extensions if your IDE is listed: - -- [VS2015/VS2017 EditorConfig extension](https://marketplace.visualstudio.com/items?itemName=EditorConfigTeam.EditorConfig) -- [Visual Studio Code EditorConfig extension](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) -- [SublimeText EditorConfig extension](https://github.com/sindresorhus/editorconfig-sublime) - -## Frequently Asked Question - -### Why developing another Math library instead of using existing Unity Vector3...etc.? - -After years of feedback and experience with the previous API, we believe that providing an API that is closer to the way graphics developers have been using math libraries should better help its adoption and the ease of its usage. HLSL / GLSL math library is a very well designed, well understood math library leading to greater consistency. - -### Why not using `System.Numerics.Vectors`? - -Mainly for the reason mentioned above, `System.Numerics.Vectors` is in many ways similar to our previous Vector library (more object oriented than graphics programming oriented). -Also the fact that our Burst compiler is able to recognize a lot more patterns for SIMD types and math intrinsics makes it easier to work with a dedicated API that reflects this ability. - -### Naming convention - -In C# `int` and `float` are considered builtin types. Burst extends this set of bultin types to also include vectors, matrices and quaternions. These types are bultin in the sense that Burst knows about them and is be able to generate better code using these types than what would be possible with equivalent code using custom types. - -To signify that these types are bultin their type names are in all lower case. The operators on these bultin types found in `Unity.Mathematics.math` are considered intrinsics and are thus always in lower case. - -There are no plans to extend the set of intrinsic types beyond the current set of vectors (`typeN`), matrices (`typeNxN`) and quaternions (`quaternion`). - -This convention has the added benefit of making the library highly compatible with shader code and makes porting or sharing code between the two almost frictionless. - -### Why can't we send a PR yet? - -We are working on providing a Contributor License Agreement (CLA) with a sign-over functionality and our UCL License doesn't cover this yet. - -## Licensing - -Unity Companion License (“License”) Software Copyright © 2019 Unity Technologies ApS - -For licensing details see [LICENSE.md](LICENSE.md) +Your IDE should have support for `editorconfig`. If it doesn't, you can get the extension for it here: +* [VS2015/VS2017 EditorConfig extension](https://marketplace.visualstudio.com/items?itemName=EditorConfigTeam.EditorConfig) +* [Visual Studio Code EditorConfig extension](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) +* [SublimeText EditorConfig extension](https://github.com/sindresorhus/editorconfig-sublime) diff --git a/src/Documentation~/mathematics.md.meta b/src/Documentation~/mathematics.md.meta deleted file mode 100644 index 10f22f41..00000000 --- a/src/Documentation~/mathematics.md.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: d177df5c52517492b85d4191425323a9 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/src/Documentation~/using-mathematics.md b/src/Documentation~/using-mathematics.md new file mode 100644 index 00000000..9637b93b --- /dev/null +++ b/src/Documentation~/using-mathematics.md @@ -0,0 +1,87 @@ +# Using Unity Mathematics + +To use Unity Mathematics, add `using Unity.Mathematics` to your code: + +```C# +using static Unity.Mathematics.math; +namespace MyNamespace +{ + using Unity.Mathematics; + + ... + var v1 = float3(1,2,3); + var v2 = float3(4,5,6); + v1 = normalize(v1); + v2 = normalize(v2); + var v3 = dot(v1, v2); + ... +} +``` + +## Naming convention + +In C# `int` and `float` are built-in types. The Burst compiler extends this set of built-in types to also include vectors, matrices, and quaternions. These types are built-in because the Burst compiler already has implementations of these types, and so can use them to generate better code than for custom types. + +To signify that these types are built-in their type names are in all lower case. The operators on these built-in types in [`Unity.Mathematics.math`](xref:Unity.Mathematics.math) are intrinsics and are always in lower case. + +There are no plans to extend the set of intrinsic types beyond the current set of vectors (`typeN`), matrices (`typeNxN`) and quaternions (`quaternion`). + +This convention has the added benefit of making the library highly compatible with shader code and makes porting or sharing code between the two almost frictionless. + + +## Vector multiplication + +To multiply vectors, use the `*`: + +```c# +// Unity Mathematics example +void ComponentwiseVectorMultiplyUnityMathematics() +{ + var v0 = new float4(2.0f, 4.0f, 6.0f, 8.0f); + var v1 = new float4(1.0f, -1.0f, 1.0f, -1.0f); + var result = v0 * v1; + // result == new float4(2.0f, -4.0f, 6.0f, -8.0f). +} +``` + +This is a common way of writing [SIMD](https://en.wikipedia.org/wiki/Single_instruction,_multiple_data) code, which applies a single instruction to multiple data elements. Other operators such as addition, subtraction, and division work in the same way. + +## Quaternion multiplication + +To rotate a quaternion, use the [`AxisAngle`](xref:Unity.Mathematics.quaternion.AxisAngle*) method. You specify the axis of rotation and the rotation around that axis, but supply the axis first and the angle second. Also, all the angles are in radians rather than degrees. `math.mul` multiplies the quaternion, just as with [matrices](4x4-matrices.md) and vectors. + +```c# +// Unity Mathematics example +void QuaternionMultiplicationUnityMathematics() +{ + var axis = new float3(0.0f, 1.0f, 0.0f); + var q = quaternion.AxisAngle(axis,math.radians(45.0f)); + var orientation = quaternion.Euler( + math.radians(45.0f), + math.radians(90.0f), + math.radians(180.0f)); + var result = math.mul(q, orientation); +} +``` + +## Random numbers + +To generate random numbers, you must create and manage the random number generator state yourself. This means you can control the random number generator state explicitly, which is useful it you're using parallel code, or if you want to make sure that one source of random numbers is seeded differently than another source. + +Once you set up the state, use [`NextFloat`](xref:Unity.Mathematics.Random.NextFloat) to get random floats. By default it returns random numbers between `[0, 1]`, exclusive: + +```c# +// Unity Mathematics example +void RandomNumberUnityMathematics() +{ + // Choose some non-zero seed and set up the random number generator state. + uint seed = 1; + Unity.Mathematics.Random rng = new Unity.Mathematics.Random(seed); + + // [0, 1) exclusive + float randomFloat1 = rng.NextFloat(); + + // [-5, 5) exclusive + float randomFloat2 = rng.NextFloat(-5.0f, 5.0f); +} +``` \ No newline at end of file From 802648501b06efab816698a21a07fdee04b9d66b Mon Sep 17 00:00:00 2001 From: Jo Petty Date: Thu, 23 Jun 2022 12:33:07 +0100 Subject: [PATCH 393/437] Reorganised a few pgs --- src/Documentation~/TableOfContents.md | 6 +- src/Documentation~/getting-started.md | 29 +++++++ .../quaternion-multiplication.md | 17 ++++ src/Documentation~/random-numbers.md | 21 +++++ src/Documentation~/using-mathematics.md | 87 ------------------- src/Documentation~/vector-multiplication.md | 16 ++++ 6 files changed, 88 insertions(+), 88 deletions(-) create mode 100644 src/Documentation~/getting-started.md create mode 100644 src/Documentation~/quaternion-multiplication.md create mode 100644 src/Documentation~/random-numbers.md delete mode 100644 src/Documentation~/using-mathematics.md create mode 100644 src/Documentation~/vector-multiplication.md diff --git a/src/Documentation~/TableOfContents.md b/src/Documentation~/TableOfContents.md index 2907837f..1dc7d3b2 100644 --- a/src/Documentation~/TableOfContents.md +++ b/src/Documentation~/TableOfContents.md @@ -1,4 +1,8 @@ * [Unity Mathematics](index.md) * [Compatibility with Mathf](compatibility.md) -* [Using Unity Mathematics](using-mathematics.md) +* [Getting started](getting-started.md) +* Common operations * [4×4 matrices](4x4-matrices.md) + * [Vector multiplication](vector-multiplication.md) + * [Quaternion multiplication](quaternion-multiplication.md) + * [Random numbers](random-numbers.md) diff --git a/src/Documentation~/getting-started.md b/src/Documentation~/getting-started.md new file mode 100644 index 00000000..7ed246e5 --- /dev/null +++ b/src/Documentation~/getting-started.md @@ -0,0 +1,29 @@ +# Getting started + +To use Unity Mathematics, add `using Unity.Mathematics` to your code: + +```C# +using static Unity.Mathematics.math; +namespace MyNamespace +{ + using Unity.Mathematics; + + ... + var v1 = float3(1,2,3); + var v2 = float3(4,5,6); + v1 = normalize(v1); + v2 = normalize(v2); + var v3 = dot(v1, v2); + ... +} +``` + +## Naming convention + +In C# `int` and `float` are built-in types. The Burst compiler extends this set of built-in types to also include vectors, matrices, and quaternions. These types are built-in because the Burst compiler already has implementations of these types, and so can use them to generate better code than for custom types. + +To signify that these types are built-in their type names are in all lower case. The operators on these built-in types in [`Unity.Mathematics.math`](xref:Unity.Mathematics.math) are intrinsics and are always in lower case. + +There are no plans to extend the set of intrinsic types beyond the current set of vectors (`typeN`), matrices (`typeNxN`) and quaternions (`quaternion`). + +This convention has the added benefit of making the library highly compatible with shader code and makes porting or sharing code between the two almost frictionless. diff --git a/src/Documentation~/quaternion-multiplication.md b/src/Documentation~/quaternion-multiplication.md new file mode 100644 index 00000000..b9415b84 --- /dev/null +++ b/src/Documentation~/quaternion-multiplication.md @@ -0,0 +1,17 @@ +# Quaternion multiplication + +To rotate a quaternion, use the [`AxisAngle`](xref:Unity.Mathematics.quaternion.AxisAngle*) method. You specify the axis of rotation and the rotation around that axis, but supply the axis first and the angle second. Also, all the angles are in radians rather than degrees. `math.mul` multiplies the quaternion, just as with [matrices](4x4-matrices.md) and vectors. + +```c# +// Unity Mathematics example +void QuaternionMultiplicationUnityMathematics() +{ + var axis = new float3(0.0f, 1.0f, 0.0f); + var q = quaternion.AxisAngle(axis,math.radians(45.0f)); + var orientation = quaternion.Euler( + math.radians(45.0f), + math.radians(90.0f), + math.radians(180.0f)); + var result = math.mul(q, orientation); +} +``` diff --git a/src/Documentation~/random-numbers.md b/src/Documentation~/random-numbers.md new file mode 100644 index 00000000..753108e3 --- /dev/null +++ b/src/Documentation~/random-numbers.md @@ -0,0 +1,21 @@ +## Random numbers + +To generate random numbers, you must create and manage the random number generator state yourself. This means you can control the random number generator state explicitly, which is useful it you're using parallel code, or if you want to make sure that one source of random numbers is seeded differently than another source. + +Once you set up the state, use [`NextFloat`](xref:Unity.Mathematics.Random.NextFloat) to get random floats. By default it returns random numbers between `[0, 1]`, exclusive: + +```c# +// Unity Mathematics example +void RandomNumberUnityMathematics() +{ + // Choose some non-zero seed and set up the random number generator state. + uint seed = 1; + Unity.Mathematics.Random rng = new Unity.Mathematics.Random(seed); + + // [0, 1) exclusive + float randomFloat1 = rng.NextFloat(); + + // [-5, 5) exclusive + float randomFloat2 = rng.NextFloat(-5.0f, 5.0f); +} +``` \ No newline at end of file diff --git a/src/Documentation~/using-mathematics.md b/src/Documentation~/using-mathematics.md deleted file mode 100644 index 9637b93b..00000000 --- a/src/Documentation~/using-mathematics.md +++ /dev/null @@ -1,87 +0,0 @@ -# Using Unity Mathematics - -To use Unity Mathematics, add `using Unity.Mathematics` to your code: - -```C# -using static Unity.Mathematics.math; -namespace MyNamespace -{ - using Unity.Mathematics; - - ... - var v1 = float3(1,2,3); - var v2 = float3(4,5,6); - v1 = normalize(v1); - v2 = normalize(v2); - var v3 = dot(v1, v2); - ... -} -``` - -## Naming convention - -In C# `int` and `float` are built-in types. The Burst compiler extends this set of built-in types to also include vectors, matrices, and quaternions. These types are built-in because the Burst compiler already has implementations of these types, and so can use them to generate better code than for custom types. - -To signify that these types are built-in their type names are in all lower case. The operators on these built-in types in [`Unity.Mathematics.math`](xref:Unity.Mathematics.math) are intrinsics and are always in lower case. - -There are no plans to extend the set of intrinsic types beyond the current set of vectors (`typeN`), matrices (`typeNxN`) and quaternions (`quaternion`). - -This convention has the added benefit of making the library highly compatible with shader code and makes porting or sharing code between the two almost frictionless. - - -## Vector multiplication - -To multiply vectors, use the `*`: - -```c# -// Unity Mathematics example -void ComponentwiseVectorMultiplyUnityMathematics() -{ - var v0 = new float4(2.0f, 4.0f, 6.0f, 8.0f); - var v1 = new float4(1.0f, -1.0f, 1.0f, -1.0f); - var result = v0 * v1; - // result == new float4(2.0f, -4.0f, 6.0f, -8.0f). -} -``` - -This is a common way of writing [SIMD](https://en.wikipedia.org/wiki/Single_instruction,_multiple_data) code, which applies a single instruction to multiple data elements. Other operators such as addition, subtraction, and division work in the same way. - -## Quaternion multiplication - -To rotate a quaternion, use the [`AxisAngle`](xref:Unity.Mathematics.quaternion.AxisAngle*) method. You specify the axis of rotation and the rotation around that axis, but supply the axis first and the angle second. Also, all the angles are in radians rather than degrees. `math.mul` multiplies the quaternion, just as with [matrices](4x4-matrices.md) and vectors. - -```c# -// Unity Mathematics example -void QuaternionMultiplicationUnityMathematics() -{ - var axis = new float3(0.0f, 1.0f, 0.0f); - var q = quaternion.AxisAngle(axis,math.radians(45.0f)); - var orientation = quaternion.Euler( - math.radians(45.0f), - math.radians(90.0f), - math.radians(180.0f)); - var result = math.mul(q, orientation); -} -``` - -## Random numbers - -To generate random numbers, you must create and manage the random number generator state yourself. This means you can control the random number generator state explicitly, which is useful it you're using parallel code, or if you want to make sure that one source of random numbers is seeded differently than another source. - -Once you set up the state, use [`NextFloat`](xref:Unity.Mathematics.Random.NextFloat) to get random floats. By default it returns random numbers between `[0, 1]`, exclusive: - -```c# -// Unity Mathematics example -void RandomNumberUnityMathematics() -{ - // Choose some non-zero seed and set up the random number generator state. - uint seed = 1; - Unity.Mathematics.Random rng = new Unity.Mathematics.Random(seed); - - // [0, 1) exclusive - float randomFloat1 = rng.NextFloat(); - - // [-5, 5) exclusive - float randomFloat2 = rng.NextFloat(-5.0f, 5.0f); -} -``` \ No newline at end of file diff --git a/src/Documentation~/vector-multiplication.md b/src/Documentation~/vector-multiplication.md new file mode 100644 index 00000000..123fe6bb --- /dev/null +++ b/src/Documentation~/vector-multiplication.md @@ -0,0 +1,16 @@ +# Vector multiplication + +To multiply vectors, use the `*`: + +```c# +// Unity Mathematics example +void ComponentwiseVectorMultiplyUnityMathematics() +{ + var v0 = new float4(2.0f, 4.0f, 6.0f, 8.0f); + var v1 = new float4(1.0f, -1.0f, 1.0f, -1.0f); + var result = v0 * v1; + // result == new float4(2.0f, -4.0f, 6.0f, -8.0f). +} +``` + +This is a common way of writing [SIMD](https://en.wikipedia.org/wiki/Single_instruction,_multiple_data) code, which applies a single instruction to multiple data elements. Other operators such as addition, subtraction, and division work in the same way. \ No newline at end of file From 7844450f9a08f160a9133f1d594fee8c32b1c7ec Mon Sep 17 00:00:00 2001 From: Jo Petty <49957016+jo-unity@users.noreply.github.com> Date: Mon, 4 Jul 2022 13:56:58 +0100 Subject: [PATCH 394/437] Update src/Documentation~/random-numbers.md Co-authored-by: Dale Kim <3121968+unpacklo@users.noreply.github.com> --- src/Documentation~/random-numbers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Documentation~/random-numbers.md b/src/Documentation~/random-numbers.md index 753108e3..7cd30394 100644 --- a/src/Documentation~/random-numbers.md +++ b/src/Documentation~/random-numbers.md @@ -2,7 +2,7 @@ To generate random numbers, you must create and manage the random number generator state yourself. This means you can control the random number generator state explicitly, which is useful it you're using parallel code, or if you want to make sure that one source of random numbers is seeded differently than another source. -Once you set up the state, use [`NextFloat`](xref:Unity.Mathematics.Random.NextFloat) to get random floats. By default it returns random numbers between `[0, 1]`, exclusive: +Once you set up the state, use [`NextFloat`](xref:Unity.Mathematics.Random.NextFloat) to get random floats. By default it returns random numbers between `[0, 1)`, exclusive: ```c# // Unity Mathematics example From d41383b7335376333fb4b1ed91437b48601c7fc6 Mon Sep 17 00:00:00 2001 From: Jo Dawes Date: Mon, 4 Jul 2022 16:06:15 +0100 Subject: [PATCH 395/437] Updated docs based on feedback Changed compatibility page, and the random numbers page --- src/Documentation~/compatibility.md | 14 ++++++++------ src/Documentation~/random-numbers.md | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/Documentation~/compatibility.md b/src/Documentation~/compatibility.md index 94d6f17c..5de185d1 100644 --- a/src/Documentation~/compatibility.md +++ b/src/Documentation~/compatibility.md @@ -1,15 +1,17 @@ -# Compatibility with `Mathf` +# Compatibility with `UnityEngine` mathematics -Unity Mathematics isn't implemented in the same way as the [`UnityEngine.Mathf`](https://docs.unity3d.com/ScriptReference/Mathf.html) struct in the core Unity engine. Because of this, if your application relies on the specific behaviors of `Mathf`, it might not be possible to use Unity Mathematics in your project. Also, if your project uses `Mathf` functions that have no corresponding Unity Mathematics function, or your code uses external plug-ins that depend on Unity types such as `Vector3`, or `Matrix4x4`, then you shouldn't use Unity Mathematics. +If you want to Burst-compile your project, it's best practice to use the Unity Mathematics package by default and only use `Mathf` when necessary. Unity Mathematics isn't implemented in the same way as the [`UnityEngine.Mathf`](https://docs.unity3d.com/ScriptReference/Mathf.html) struct in the core Unity engine. Because of this, if your application relies on the specific behaviors of `Mathf`, you'll have to reimplement them to get similar behavior in Unity Mathematics. >[!IMPORTANT] >For performance reasons, if your project uses the Mono compiler, you should continue to use the mathematical operations in `Mathf`, rather than Unity Mathematics. -## Porting `Mathf` code to Unity Mathematics +You can use both `Mathf` and Unity Mathematics methods in your project, but it might impact on the performance of your project because the conversions between the `UnityEngine` and `Unity.Mathematics` types such as `Vector3` to `float3` and vice-versa are performance-intensive. + +## Porting `UnityEngine` code to `Unity.Mathematics` If you want to migrate code from `UnityEngine` to `Unity.Mathematics`, you need to make the following changes first: -* `Vector4` to `float4` -* Multiplications on vector or matrix objects to component multiplication with the `*` operator. +* Update `UnityEngine` types to `Unity.Mathematics` types. For example, [`Vector4`](https://docs.unity3d.com/ScriptReference/Vector4.html) to [`float4`](xref:Unity.Mathematics.float4), and [`Quaternion`](https://docs.unity3d.com/ScriptReference/Quaternion.html) to [`quaternion`](xref:Unity.Mathematics.quaternion). These examples aren't exhaustive: see the [Scripting API reference](https://docs.unity3d.com/Packages/com.unity.mathematics@latest/index.html?subfolder=/api/index.html) for the full list of Unity Mathematics types available. +* Update any operators involved in matrices or vectors. For example, the `Matrix4x4` multiplication operator implements matrix multiplication, but the `float4x4` multiplication operator implements componentwise multiplication. * Degrees to radians -* How your code generates random numbers \ No newline at end of file +* How your code generates random numbers. `Random` in `Unity.Mathematics` works differently to [`Random`](https://docs.unity3d.com/ScriptReference/Random.html) in `UnityEngine`. You can completely control random number generation with `Random` in `Unity.Mathematics`, and it's instanced, rather than static. It's also exclusive with its upper bound, which is important to bear in mind if you want to convert `UnityEngine` code which is sensitive to the bounds. For more information, see the documentation on [Random numbers](random-numbers.md). diff --git a/src/Documentation~/random-numbers.md b/src/Documentation~/random-numbers.md index 7cd30394..5a09e9d9 100644 --- a/src/Documentation~/random-numbers.md +++ b/src/Documentation~/random-numbers.md @@ -1,6 +1,6 @@ ## Random numbers -To generate random numbers, you must create and manage the random number generator state yourself. This means you can control the random number generator state explicitly, which is useful it you're using parallel code, or if you want to make sure that one source of random numbers is seeded differently than another source. +To generate random numbers, you must create and manage the random number generator state yourself with the [`Random`](xref:Unity.Mathematics.Random) struct. You can control the random number generator state explicitly, which is useful if you're using parallel code, or if you want to make sure that one source of random numbers is seeded differently than another source. You can also have as many `Random` instances as you like. Once you set up the state, use [`NextFloat`](xref:Unity.Mathematics.Random.NextFloat) to get random floats. By default it returns random numbers between `[0, 1)`, exclusive: @@ -18,4 +18,4 @@ void RandomNumberUnityMathematics() // [-5, 5) exclusive float randomFloat2 = rng.NextFloat(-5.0f, 5.0f); } -``` \ No newline at end of file +``` From 27792767df03f4fc7b3d17a309079070c29696a7 Mon Sep 17 00:00:00 2001 From: Jo Dawes <49957016+jo-unity@users.noreply.github.com> Date: Mon, 4 Jul 2022 16:53:06 +0100 Subject: [PATCH 396/437] Update src/Documentation~/4x4-matrices.md Co-authored-by: James-Burr-Unity <61244495+James-Burr-Unity@users.noreply.github.com> --- src/Documentation~/4x4-matrices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Documentation~/4x4-matrices.md b/src/Documentation~/4x4-matrices.md index 05f092b8..22c705e9 100644 --- a/src/Documentation~/4x4-matrices.md +++ b/src/Documentation~/4x4-matrices.md @@ -17,7 +17,7 @@ void Build4x4UnityMathematics() ## Multiplying a 4×4 matrix -Unity Mathematics defines the `*` operator differently to `UnityEngine`. The `*` operator for [`float4x4`](xref:Unity.Mathematics.float4x4) implements componentwise multiplication. If you multiply a `float4x4` of all 1s with 0.5 on the diagonal, you get back the half identity because the upper and lower triangles of the matrix are multiplied by the respective zero entries from `f4x4_HalfIdentity`: +Unity Mathematics and `UnityEngine` define the `*` operator differently. The `*` operator for [`float4x4`](xref:Unity.Mathematics.float4x4) implements componentwise multiplication. If you multiply a `float4x4` of all 1s with 0.5 on the diagonal, you get back the half identity because the upper and lower triangles of the matrix are multiplied by the respective zero entries from `f4x4_HalfIdentity`: ```c# // Unity Mathematics example From 75d8f4899319188323af729801712b274c2011c5 Mon Sep 17 00:00:00 2001 From: Jo Dawes <49957016+jo-unity@users.noreply.github.com> Date: Mon, 4 Jul 2022 16:53:34 +0100 Subject: [PATCH 397/437] Update src/Documentation~/4x4-matrices.md Co-authored-by: James-Burr-Unity <61244495+James-Burr-Unity@users.noreply.github.com> --- src/Documentation~/4x4-matrices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Documentation~/4x4-matrices.md b/src/Documentation~/4x4-matrices.md index 22c705e9..266ec670 100644 --- a/src/Documentation~/4x4-matrices.md +++ b/src/Documentation~/4x4-matrices.md @@ -36,7 +36,7 @@ void OperatorMultiply4x4UnityMathematics() Use the [`math.mul`](xref:Unity.Mathematics.math.mul*) method to multiply a 4×4 matrix and a 4D vector. If you supply a `float4x4` as the first parameter and a `float4` as the second, it performs a 4×4 matrix multiplication with a 4×1 column vector, which returns a 4×1 column vector as a `float4`. -`math.mul` can also multiply a 1×4 row vector by a 4×4 matrix to produce a 1×4 row vector by taking a `float4` as the first parameter and a `float4×4` as the second. Unity Mathematics stores the row vector in a `float4` and it isn't treated as a separate type. +`math.mul` can also multiply a 1×4 row vector by a 4×4 matrix to produce a 1×4 row vector by taking a `float4` as the first parameter and a `float4×4` as the second. Unity Mathematics stores the row vector in a `float4` and it isn't treated as a separate type. ```c# // Unity Mathematics example From 0856b4fa49774557e8d99b181bbb643cca913f98 Mon Sep 17 00:00:00 2001 From: Jo Dawes <49957016+jo-unity@users.noreply.github.com> Date: Mon, 4 Jul 2022 16:59:49 +0100 Subject: [PATCH 398/437] Update src/Documentation~/compatibility.md Co-authored-by: James-Burr-Unity <61244495+James-Burr-Unity@users.noreply.github.com> --- src/Documentation~/compatibility.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Documentation~/compatibility.md b/src/Documentation~/compatibility.md index 5de185d1..9113e0a4 100644 --- a/src/Documentation~/compatibility.md +++ b/src/Documentation~/compatibility.md @@ -5,7 +5,7 @@ If you want to Burst-compile your project, it's best practice to use the Unity M >[!IMPORTANT] >For performance reasons, if your project uses the Mono compiler, you should continue to use the mathematical operations in `Mathf`, rather than Unity Mathematics. -You can use both `Mathf` and Unity Mathematics methods in your project, but it might impact on the performance of your project because the conversions between the `UnityEngine` and `Unity.Mathematics` types such as `Vector3` to `float3` and vice-versa are performance-intensive. +You can use both `Mathf` and Unity Mathematics methods in your project, but it might impact on the performance of your application because the conversions between the `UnityEngine` and `Unity.Mathematics` types such as `Vector3` to `float3` and vice-versa are performance-intensive. ## Porting `UnityEngine` code to `Unity.Mathematics` From 04fb13d15549a8e5b3db5ea6b788624e5a963f35 Mon Sep 17 00:00:00 2001 From: Jo Dawes <49957016+jo-unity@users.noreply.github.com> Date: Mon, 4 Jul 2022 17:02:11 +0100 Subject: [PATCH 399/437] Update src/Documentation~/quaternion-multiplication.md Co-authored-by: James-Burr-Unity <61244495+James-Burr-Unity@users.noreply.github.com> --- src/Documentation~/quaternion-multiplication.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Documentation~/quaternion-multiplication.md b/src/Documentation~/quaternion-multiplication.md index b9415b84..d6f70f4d 100644 --- a/src/Documentation~/quaternion-multiplication.md +++ b/src/Documentation~/quaternion-multiplication.md @@ -1,6 +1,6 @@ # Quaternion multiplication -To rotate a quaternion, use the [`AxisAngle`](xref:Unity.Mathematics.quaternion.AxisAngle*) method. You specify the axis of rotation and the rotation around that axis, but supply the axis first and the angle second. Also, all the angles are in radians rather than degrees. `math.mul` multiplies the quaternion, just as with [matrices](4x4-matrices.md) and vectors. +To rotate a quaternion, use the [`AxisAngle`](xref:Unity.Mathematics.quaternion.AxisAngle*) method. You need to specify the axis of rotation and the angle of rotation, in that order. All are in radians rather than degrees. `math.mul` multiplies the quaternion, just as with [matrices](4x4-matrices.md) and vectors. ```c# // Unity Mathematics example From 80b9daee9826ac1d46a39c4fe19af67d3ef2f891 Mon Sep 17 00:00:00 2001 From: Bryan McNett Date: Tue, 16 Aug 2022 10:38:41 -0700 Subject: [PATCH 400/437] including .csproj.meta files in the git repo (#226) * including .csproj.meta files in the git repo * Remove repository property to make upm-ci happy. Co-authored-by: Dale Kim <3121968+unpacklo@users.noreply.github.com> --- .gitignore | 1 - src/Tests/Unity.Mathematics.Tests.csproj.meta | 7 +++++++ .../Unity.Mathematics.PerformanceTests.csproj.meta | 7 +++++++ src/Unity.Mathematics/Unity.Mathematics.csproj.meta | 7 +++++++ src/package.json | 5 ----- 5 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 src/Tests/Unity.Mathematics.Tests.csproj.meta create mode 100644 src/Unity.Mathematics.PerformanceTests/Unity.Mathematics.PerformanceTests.csproj.meta create mode 100644 src/Unity.Mathematics/Unity.Mathematics.csproj.meta diff --git a/.gitignore b/.gitignore index f2d2f5bb..8b75980d 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,6 @@ Library obj obj.meta # User-specific files -*.csproj.meta *.csproj.user *.suo *.user diff --git a/src/Tests/Unity.Mathematics.Tests.csproj.meta b/src/Tests/Unity.Mathematics.Tests.csproj.meta new file mode 100644 index 00000000..24e5c128 --- /dev/null +++ b/src/Tests/Unity.Mathematics.Tests.csproj.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: e393530e16da0c6498af8f6417806c74 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics.PerformanceTests/Unity.Mathematics.PerformanceTests.csproj.meta b/src/Unity.Mathematics.PerformanceTests/Unity.Mathematics.PerformanceTests.csproj.meta new file mode 100644 index 00000000..178e830f --- /dev/null +++ b/src/Unity.Mathematics.PerformanceTests/Unity.Mathematics.PerformanceTests.csproj.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 83a70727fa33a914d9c1049386e82be7 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj.meta b/src/Unity.Mathematics/Unity.Mathematics.csproj.meta new file mode 100644 index 00000000..ebf3a017 --- /dev/null +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: adc57cbbc95b9e449ba89e2bd869e8d9 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/package.json b/src/package.json index 21c041d3..f99d7f78 100755 --- a/src/package.json +++ b/src/package.json @@ -8,10 +8,5 @@ "unity" ], "dependencies": { - }, - "repository": { - "type": "git", - "url": "https://github.com/Unity-Technologies/Unity.Mathematics", - "revision":"" } } From 71e938fa6b9d05fce90ecac985786598f0efb65d Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 21 Sep 2022 17:16:25 -0700 Subject: [PATCH 401/437] Fix some doc errors. (#228) * Fix some doc errors. * Add nextpow2 to ceilpow2 documentation for searchability. * Add AffineTransform.zero. --- src/Tests/Tests/Shared/TestAffineTransform.cs | 7 +++++++ src/Unity.Mathematics/affine_transform.cs | 9 ++++++++- src/Unity.Mathematics/math.cs | 10 ++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/src/Tests/Tests/Shared/TestAffineTransform.cs b/src/Tests/Tests/Shared/TestAffineTransform.cs index 460650cd..a5b31efe 100644 --- a/src/Tests/Tests/Shared/TestAffineTransform.cs +++ b/src/Tests/Tests/Shared/TestAffineTransform.cs @@ -162,5 +162,12 @@ public static void affine_transform_transform_point() float3 txPt0 = transform(tx, pt); TestUtils.AreEqual(mPt0, txPt0, 0.0001f); } + + [TestCompiler] + public static void affine_transform_zero() + { + TestUtils.AreEqual(float3x3.zero, AffineTransform.zero.rs); + TestUtils.AreEqual(float3.zero, AffineTransform.zero.t); + } } } \ No newline at end of file diff --git a/src/Unity.Mathematics/affine_transform.cs b/src/Unity.Mathematics/affine_transform.cs index 33567b92..6ba30887 100644 --- a/src/Unity.Mathematics/affine_transform.cs +++ b/src/Unity.Mathematics/affine_transform.cs @@ -25,6 +25,11 @@ public struct AffineTransform : IEquatable, IFormattable /// An AffineTransform representing the identity transform. public static readonly AffineTransform identity = new AffineTransform(float3.zero, float3x3.identity); + /// + /// An AffineTransform zero value. + /// + public static readonly AffineTransform zero; + /// Constructs an AffineTransform from a translation represented by a float3 vector and rotation represented by a unit quaternion. /// The translation vector. /// The rotation quaternion. @@ -94,11 +99,13 @@ public AffineTransform(float4x4 m) /// Implicit float3x4 cast operator. /// The AffineTransform. + /// The converted AffineTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float3x4(AffineTransform m) { return float3x4(m.rs.c0, m.rs.c1, m.rs.c2, m.t); } /// Implicit float4x4 cast operator. /// The AffineTransform. + /// The converted AffineTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator float4x4(AffineTransform m) { return float4x4(float4(m.rs.c0, 0f), float4(m.rs.c1, 0f), float4(m.rs.c2, 0f), float4(m.t, 1f)); } @@ -265,7 +272,7 @@ public static float3 transform(AffineTransform a, float3 pos) } /// Returns the inverse of an AffineTransform. - /// The AffineTransform to invert. + /// The AffineTransform to invert. /// The inverse AffineTransform. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static AffineTransform inverse(AffineTransform a) diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index f2ef33b7..26b0d378 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -5514,6 +5514,7 @@ public static ulong reversebits(ulong x) /// Returns the smallest power of two greater than or equal to the input. + /// Also known as nextpow2. /// Input value. /// The smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -5529,6 +5530,7 @@ public static int ceilpow2(int x) } /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. + /// Also known as nextpow2. /// Input value. /// The componentwise smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -5544,6 +5546,7 @@ public static int2 ceilpow2(int2 x) } /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. + /// Also known as nextpow2. /// Input value. /// The componentwise smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -5559,6 +5562,7 @@ public static int3 ceilpow2(int3 x) } /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. + /// Also known as nextpow2. /// Input value. /// The componentwise smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -5575,6 +5579,7 @@ public static int4 ceilpow2(int4 x) /// Returns the smallest power of two greater than or equal to the input. + /// Also known as nextpow2. /// Input value. /// The smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -5590,6 +5595,7 @@ public static uint ceilpow2(uint x) } /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. + /// Also known as nextpow2. /// Input value. /// The componentwise smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -5605,6 +5611,7 @@ public static uint2 ceilpow2(uint2 x) } /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. + /// Also known as nextpow2. /// Input value. /// The componentwise smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -5620,6 +5627,7 @@ public static uint3 ceilpow2(uint3 x) } /// Returns the result of a componentwise calculation of the smallest power of two greater than or equal to the input. + /// Also known as nextpow2. /// Input value. /// The componentwise smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -5636,6 +5644,7 @@ public static uint4 ceilpow2(uint4 x) /// Returns the smallest power of two greater than or equal to the input. + /// Also known as nextpow2. /// Input value. /// The smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -5653,6 +5662,7 @@ public static long ceilpow2(long x) /// Returns the smallest power of two greater than or equal to the input. + /// Also known as nextpow2. /// Input value. /// The smallest power of two greater than or equal to the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] From df595bb0736b1b767984f8510214821a49fa54ca Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Mon, 26 Sep 2022 18:27:50 -0700 Subject: [PATCH 402/437] Fix solution to refer to renamed code gen project. (#227) --- src/Unity.Mathematics.sln | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/Unity.Mathematics.sln b/src/Unity.Mathematics.sln index 19d5c88a..7651ca6e 100644 --- a/src/Unity.Mathematics.sln +++ b/src/Unity.Mathematics.sln @@ -5,8 +5,6 @@ VisualStudioVersion = 16.0.29806.167 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Mathematics", "Unity.Mathematics\Unity.Mathematics.csproj", "{19810344-7387-4155-935F-BDD5CC61F0BF}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Mathematics.CodeGen", "Unity.Mathematics.CodeGen\Unity.Mathematics.CodeGen.csproj", "{293EBCD6-CACD-4DA8-A518-FBC629268C0F}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "General", "General", "{B11ECCE1-1A78-40B2-956F-CBE615FF5DF9}" ProjectSection(SolutionItems) = preProject CHANGELOG.md = CHANGELOG.md @@ -16,6 +14,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "General", "General", "{B11E EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Mathematics.Tests", "Tests\Unity.Mathematics.Tests.csproj", "{2E7C74D3-42F1-482F-8BB7-E199D9E3B412}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Mathematics.CodeGen", "Unity.Mathematics.CodeGen~\Unity.Mathematics.CodeGen.csproj", "{293EBCD6-CACD-4DA8-A518-FBC629268C0F}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -38,18 +38,6 @@ Global {19810344-7387-4155-935F-BDD5CC61F0BF}.Release|x64.Build.0 = Release|x64 {19810344-7387-4155-935F-BDD5CC61F0BF}.Release|x86.ActiveCfg = Release|Any CPU {19810344-7387-4155-935F-BDD5CC61F0BF}.Release|x86.Build.0 = Release|Any CPU - {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|x64.ActiveCfg = Debug|Any CPU - {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|x64.Build.0 = Debug|Any CPU - {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|x86.ActiveCfg = Debug|Any CPU - {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|x86.Build.0 = Debug|Any CPU - {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Release|Any CPU.Build.0 = Release|Any CPU - {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Release|x64.ActiveCfg = Release|Any CPU - {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Release|x64.Build.0 = Release|Any CPU - {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Release|x86.ActiveCfg = Release|Any CPU - {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Release|x86.Build.0 = Release|Any CPU {2E7C74D3-42F1-482F-8BB7-E199D9E3B412}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {2E7C74D3-42F1-482F-8BB7-E199D9E3B412}.Debug|Any CPU.Build.0 = Debug|Any CPU {2E7C74D3-42F1-482F-8BB7-E199D9E3B412}.Debug|x64.ActiveCfg = Debug|Any CPU From 91445d8576f9313bc4b74e86b4e6adb0b62edca9 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Wed, 28 Sep 2022 14:11:38 -0700 Subject: [PATCH 403/437] Add configurations to build. (#230) --- src/Unity.Mathematics.sln | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Unity.Mathematics.sln b/src/Unity.Mathematics.sln index 7651ca6e..a0ea6974 100644 --- a/src/Unity.Mathematics.sln +++ b/src/Unity.Mathematics.sln @@ -50,6 +50,10 @@ Global {2E7C74D3-42F1-482F-8BB7-E199D9E3B412}.Release|x64.Build.0 = Release|Any CPU {2E7C74D3-42F1-482F-8BB7-E199D9E3B412}.Release|x86.ActiveCfg = Release|Any CPU {2E7C74D3-42F1-482F-8BB7-E199D9E3B412}.Release|x86.Build.0 = Release|Any CPU + {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From f1a296b9ed3021b980abb69d2a66d20fe1453d5e Mon Sep 17 00:00:00 2001 From: kevinmv <45053404+kevinmv@users.noreply.github.com> Date: Thu, 27 Apr 2023 19:37:14 -0400 Subject: [PATCH 404/437] Update License to 2023 --- LICENSE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index a95cdfbe..0c7f3fac 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -com.unity.mathematics copyright © 2022 Unity Technologies ApS +com.unity.mathematics copyright © 2023 Unity Technologies ApS Licensed under the Unity Companion License for Unity-dependent projects (see https://unity3d.com/legal/licenses/unity_companion_license). -Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions. \ No newline at end of file +Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions. From c8d9473ead179d0d49d72147825256e5f7cf5228 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Thu, 27 Apr 2023 17:02:09 -0700 Subject: [PATCH 405/437] Update package copy of license file. Probably should figure out which one of these is the authoritative one... --- src/LICENSE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LICENSE.md b/src/LICENSE.md index a95cdfbe..1f5c0f44 100755 --- a/src/LICENSE.md +++ b/src/LICENSE.md @@ -1,4 +1,4 @@ -com.unity.mathematics copyright © 2022 Unity Technologies ApS +com.unity.mathematics copyright © 2023 Unity Technologies ApS Licensed under the Unity Companion License for Unity-dependent projects (see https://unity3d.com/legal/licenses/unity_companion_license). Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions. \ No newline at end of file From 29a4f3fb3c0f2fc5f3920aebb69e27b277847c3d Mon Sep 17 00:00:00 2001 From: Peter Lu Date: Mon, 5 Jun 2023 15:07:38 -0400 Subject: [PATCH 406/437] -Updated upm-ci.yml by removing the 2020.3/partner/staging branch -Added LTS branches for 2021 and 2022 -Added 2023.1 version --- .yamato/upm-ci.yml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index 7abddb97..cbde2bd8 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -33,14 +33,12 @@ validate_editor_versions: display_name: "2019.4" - version: "2020.3" display_name: "2020.3" - - version: "2021.1" - display_name: "2021.1" - - version: "2021.2" - display_name: "2021.2" - - version: "2022.1" - display_name: "2022.1" - - version: "2020.3/partner/staging" - display_name: "2020.3_partner_staging" + - version: "2021.3" + display_name: "2021.3" + - version: "2022.3" + display_name: "2022.3" + - version: "2023.1" + display_name: "2023.1" - version: "trunk" display_name: "trunk" @@ -56,14 +54,12 @@ package_tests_editor_versions: display_name: "2019.4" - version: "2020.3" display_name: "2020.3" - - version: "2021.1" - display_name: "2021.1" - - version: "2021.2" - display_name: "2021.2" - - version: "2022.1" - display_name: "2022.1" - - version: "2020.3/partner/staging" - display_name: "2020.3_partner_staging" + - version: "2021.3" + display_name: "2021.3" + - version: "2022.3" + display_name: "2022.3" + - version: "2023.1" + display_name: "2023.1" - version: "trunk" display_name: "trunk" --- From 76466c7fbbdcad835c25cd31c7c20a5faccd6db5 Mon Sep 17 00:00:00 2001 From: Jonathan Mankin Date: Wed, 12 Jul 2023 13:24:23 -0700 Subject: [PATCH 407/437] update changelog and version --- src/CHANGELOG.md | 35 +++++++++++++++++++---------------- src/package.json | 2 +- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 7e856def..4a2f3065 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,6 +1,15 @@ # Changelog ## [Unreleased] +### Added +### Changed +### Deprecated +### Removed +### Fixed + + +## [1.3.0] 2023-07-12 + ### Added * Added `math.square` to compute the square (x * x). * Added `math.orthonormal_basis` to compute an orthonormal basis from a single unit length vector. @@ -13,31 +22,32 @@ * Added `math.scaleMul` to scale rows of a float3x3 with scaling coefficients in a float3. * Added `AffineTransform` type. * Added `PI2`, `PIHALF`, `TAU`, `TODEGREES` and `TORADIANS` constants. + ### Changed * `asfloat(uint)`, `asuint(float)`, `asint(float)` and other related methods are now faster in mono without Burst. Other methods which use these will see a performance improvement. * Modified `quaternion.nlerp` to be branchless. * More descriptive parameter names for many methods in `math` class. * Made `Il2CppEagerStaticClassConstructionAttribute` internal to avoid conflicts with other definitions outside of the package. -### Deprecated -### Removed -### Fixed -## [1.2.5] - 2021-11-01 -### Added +## [1.2.6] - 2022-02-11 + ### Changed -### Deprecated -### Removed +* Made Il2CppEagerStaticClassConstructionAttribute internal to avoid conflicts with other definitions outside of the package. + +## [1.2.5] - 2021-11-01 + ### Fixed * Fixed property drawing when manually drawing a property that was hidden with [HideInInspector]. ## [1.2.4] - 2021-09-22 + ### Added * Added `[Il2CppEagerStaticClassConstruction]` to Unity.Mathematics types to run static constructors at startup. This improves IL2CPP performance slightly for types that have static constructors. + ### Changed * License file updated to satisfy Unity's package validation tests. * Changed noise documentation in comments to xmldoc comments. -### Deprecated -### Removed + ### Fixed * Fixed Equals(object) override which did not check type before casting. This could cause exceptions to be thrown when the object did not match the expected type. * Fixed incorrect `math.tzcnt` documentation which mentioned leading zero counts instead of trailing zero counts. @@ -46,10 +56,6 @@ ## [1.2.1] - 2020-08-06 -### Added -### Changed -### Deprecated -### Removed ### Fixed * Fixed warnings for meta files existing even though the files they represent did not exist. @@ -73,9 +79,6 @@ * Added some performance tests which can be run from the Unity test project. * Added `Random.CreateFromIndex()` to assist in creating Random instances from loop indices. -### Changed -### Deprecated -### Removed ### Fixed * Fixed documentation bug where `quaternion.RotateX/Y/Z` referred to a `float4x4` instead of quaternion. * Fixed code generation bugs which could cause Windows and Mac to generate different test code. diff --git a/src/package.json b/src/package.json index f99d7f78..65b75fc8 100755 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.mathematics", "displayName": "Mathematics", - "version": "1.2.5", + "version": "1.3.0", "unity": "2018.3", "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax.", "keywords": [ From 97c192a7ae15d3b01b48b4c8104339b57a8c8578 Mon Sep 17 00:00:00 2001 From: Jonathan Mankin Date: Thu, 27 Jul 2023 14:32:15 -0700 Subject: [PATCH 408/437] minor changelog fix Sorry. --- src/CHANGELOG.md | 2 +- src/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 4a2f3065..0ee687ff 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -8,7 +8,7 @@ ### Fixed -## [1.3.0] 2023-07-12 +## [1.3.1] - 2023-07-12 ### Added * Added `math.square` to compute the square (x * x). diff --git a/src/package.json b/src/package.json index 65b75fc8..5e0509b2 100755 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.mathematics", "displayName": "Mathematics", - "version": "1.3.0", + "version": "1.3.1", "unity": "2018.3", "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax.", "keywords": [ From 8a6d6fc400f396fc7be22fcf5bcae4721cb6fb4a Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Mon, 21 Aug 2023 19:03:04 -0700 Subject: [PATCH 409/437] ECSB-529 ECSB-506 Fix arm hash crash (#241) Fix `math.hash` crash with arm 32 bit il2cpp builds. --- .yamato/upm-ci.yml | 21 +- .../Assets/Scenes/SampleScene.unity | 133 ++- .../Scenes/SampleSceneSettings.lighting | 66 ++ .../Scenes/SampleSceneSettings.lighting.meta | 8 + .../Packages/manifest.json | 12 +- .../ProjectSettings/EditorBuildSettings.asset | 5 +- .../ProjectSettings/GraphicsSettings.asset | 4 + .../ProjectSettings/ProjectSettings.asset | 303 +++++-- .../ProjectSettings/ProjectVersion.txt | 4 +- .../UnityConnectSettings.asset | 2 + src/CHANGELOG.md | 2 +- src/Tests/Tests/Shared/TestAffineTransform.cs | 26 +- src/Tests/Tests/Shared/TestBitmanipulation.cs | 122 +-- src/Tests/Tests/Shared/TestBool2.gen.cs | 42 +- src/Tests/Tests/Shared/TestBool2x2.gen.cs | 34 +- src/Tests/Tests/Shared/TestBool2x3.gen.cs | 34 +- src/Tests/Tests/Shared/TestBool2x4.gen.cs | 34 +- src/Tests/Tests/Shared/TestBool3.gen.cs | 42 +- src/Tests/Tests/Shared/TestBool3x2.gen.cs | 34 +- src/Tests/Tests/Shared/TestBool3x3.gen.cs | 34 +- src/Tests/Tests/Shared/TestBool3x4.gen.cs | 34 +- src/Tests/Tests/Shared/TestBool4.gen.cs | 42 +- src/Tests/Tests/Shared/TestBool4x2.gen.cs | 34 +- src/Tests/Tests/Shared/TestBool4x3.gen.cs | 34 +- src/Tests/Tests/Shared/TestBool4x4.gen.cs | 34 +- src/Tests/Tests/Shared/TestDouble2.gen.cs | 98 +-- src/Tests/Tests/Shared/TestDouble2x2.gen.cs | 84 +- src/Tests/Tests/Shared/TestDouble2x3.gen.cs | 82 +- src/Tests/Tests/Shared/TestDouble2x4.gen.cs | 82 +- src/Tests/Tests/Shared/TestDouble3.gen.cs | 98 +-- src/Tests/Tests/Shared/TestDouble3x2.gen.cs | 82 +- src/Tests/Tests/Shared/TestDouble3x3.gen.cs | 84 +- src/Tests/Tests/Shared/TestDouble3x4.gen.cs | 82 +- src/Tests/Tests/Shared/TestDouble4.gen.cs | 98 +-- src/Tests/Tests/Shared/TestDouble4x2.gen.cs | 82 +- src/Tests/Tests/Shared/TestDouble4x3.gen.cs | 82 +- src/Tests/Tests/Shared/TestDouble4x4.gen.cs | 84 +- src/Tests/Tests/Shared/TestFloat2.gen.cs | 98 +-- src/Tests/Tests/Shared/TestFloat2x2.gen.cs | 84 +- src/Tests/Tests/Shared/TestFloat2x3.gen.cs | 82 +- src/Tests/Tests/Shared/TestFloat2x4.gen.cs | 82 +- src/Tests/Tests/Shared/TestFloat3.gen.cs | 98 +-- src/Tests/Tests/Shared/TestFloat3x2.gen.cs | 82 +- src/Tests/Tests/Shared/TestFloat3x3.gen.cs | 84 +- src/Tests/Tests/Shared/TestFloat3x4.gen.cs | 82 +- src/Tests/Tests/Shared/TestFloat4.gen.cs | 98 +-- src/Tests/Tests/Shared/TestFloat4x2.gen.cs | 82 +- src/Tests/Tests/Shared/TestFloat4x3.gen.cs | 82 +- src/Tests/Tests/Shared/TestFloat4x4.gen.cs | 84 +- src/Tests/Tests/Shared/TestHalf.cs | 90 +- src/Tests/Tests/Shared/TestInt2.gen.cs | 122 +-- src/Tests/Tests/Shared/TestInt2x2.gen.cs | 108 +-- src/Tests/Tests/Shared/TestInt2x3.gen.cs | 106 +-- src/Tests/Tests/Shared/TestInt2x4.gen.cs | 106 +-- src/Tests/Tests/Shared/TestInt3.gen.cs | 122 +-- src/Tests/Tests/Shared/TestInt3x2.gen.cs | 106 +-- src/Tests/Tests/Shared/TestInt3x3.gen.cs | 108 +-- src/Tests/Tests/Shared/TestInt3x4.gen.cs | 106 +-- src/Tests/Tests/Shared/TestInt4.gen.cs | 122 +-- src/Tests/Tests/Shared/TestInt4x2.gen.cs | 106 +-- src/Tests/Tests/Shared/TestInt4x3.gen.cs | 106 +-- src/Tests/Tests/Shared/TestInt4x4.gen.cs | 108 +-- src/Tests/Tests/Shared/TestMath.cs | 568 ++++++------ src/Tests/Tests/Shared/TestMath.gen.cs | 820 +++++++++--------- src/Tests/Tests/Shared/TestMatrix.cs | 122 +-- src/Tests/Tests/Shared/TestMinMaxAABB.cs | 90 +- src/Tests/Tests/Shared/TestPlane.cs | 44 +- src/Tests/Tests/Shared/TestQuaternion.cs | 56 +- src/Tests/Tests/Shared/TestRigidTransform.cs | 16 +- src/Tests/Tests/Shared/TestSvd.cs | 16 +- src/Tests/Tests/Shared/TestUint2.gen.cs | 122 +-- src/Tests/Tests/Shared/TestUint2x2.gen.cs | 108 +-- src/Tests/Tests/Shared/TestUint2x3.gen.cs | 106 +-- src/Tests/Tests/Shared/TestUint2x4.gen.cs | 106 +-- src/Tests/Tests/Shared/TestUint3.gen.cs | 122 +-- src/Tests/Tests/Shared/TestUint3x2.gen.cs | 106 +-- src/Tests/Tests/Shared/TestUint3x3.gen.cs | 108 +-- src/Tests/Tests/Shared/TestUint3x4.gen.cs | 106 +-- src/Tests/Tests/Shared/TestUint4.gen.cs | 122 +-- src/Tests/Tests/Shared/TestUint4x2.gen.cs | 106 +-- src/Tests/Tests/Shared/TestUint4x3.gen.cs | 106 +-- src/Tests/Tests/Shared/TestUint4x4.gen.cs | 108 +-- src/Tests/Tests/TestMath2.cs | 69 +- src/Tests/Tests/TestRandom.cs | 232 ++--- src/Tests/Unity.Mathematics.Tests.asmdef | 24 +- .../VectorGenerator.cs | 4 +- .../TestHash.cs | 58 ++ .../TestHash.cs.meta | 11 + src/Unity.Mathematics.sln | 8 + src/Unity.Mathematics/math.cs | 87 +- 90 files changed, 4366 insertions(+), 3817 deletions(-) create mode 100644 Unity.Mathematics.TestProject/Assets/Scenes/SampleSceneSettings.lighting create mode 100644 Unity.Mathematics.TestProject/Assets/Scenes/SampleSceneSettings.lighting.meta create mode 100644 src/Unity.Mathematics.PerformanceTests/TestHash.cs create mode 100644 src/Unity.Mathematics.PerformanceTests/TestHash.cs.meta diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index cbde2bd8..2a554b38 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -27,12 +27,6 @@ upmci_platforms: flavor: b1.large validate_editor_versions: - - version: "2018.4" - display_name: "2018.4" - - version: "2019.4" - display_name: "2019.4" - - version: "2020.3" - display_name: "2020.3" - version: "2021.3" display_name: "2021.3" - version: "2022.3" @@ -43,17 +37,6 @@ validate_editor_versions: display_name: "trunk" package_tests_editor_versions: - # 2018.3 shows up here but not under validate_editor_versions because package validation is no longer - # supported on 2018.3 but Mathematics still supports it so we need to be able to test it. CI jobs - # from this list will run package tests only instead of the full validation suite. - - version: "2018.3" - display_name: "2018.3" - - version: "2018.4" - display_name: "2018.4" - - version: "2019.4" - display_name: "2019.4" - - version: "2020.3" - display_name: "2020.3" - version: "2021.3" display_name: "2021.3" - version: "2022.3" @@ -96,7 +79,7 @@ package_tests_minimal: name: Package tests minimal dependencies: {% for platform in upmci_platforms %} - - .yamato/upm-ci.yml#package_tests_{{platform.name}}_2018.3 + - .yamato/upm-ci.yml#package_tests_{{platform.name}}_2021.3 {% endfor %} validate_package_minimal: @@ -108,7 +91,7 @@ validate_package_minimal: commands: - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version 2019.4 + - upm-ci package test --package-path src/ --unity-version 2021.3 artifacts: packages: paths: diff --git a/Unity.Mathematics.TestProject/Assets/Scenes/SampleScene.unity b/Unity.Mathematics.TestProject/Assets/Scenes/SampleScene.unity index 7cdec2a0..b819a102 100644 --- a/Unity.Mathematics.TestProject/Assets/Scenes/SampleScene.unity +++ b/Unity.Mathematics.TestProject/Assets/Scenes/SampleScene.unity @@ -38,24 +38,23 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 705507994} - m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} + m_IndirectSpecularColor: {r: 0.44402242, g: 0.49316543, b: 0.5722324, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: m_ObjectHideFlags: 0 - serializedVersion: 11 + serializedVersion: 12 m_GIWorkflowMode: 0 m_GISettings: serializedVersion: 2 m_BounceScale: 1 m_IndirectOutputScale: 1 m_AlbedoBoost: 1 - m_TemporalCoherenceThreshold: 1 m_EnvironmentLightingMode: 0 m_EnableBakedLightmaps: 1 m_EnableRealtimeLightmaps: 1 m_LightmapEditorSettings: - serializedVersion: 10 + serializedVersion: 12 m_Resolution: 2 m_BakeResolution: 40 m_AtlasSize: 1024 @@ -63,6 +62,7 @@ LightmapSettings: m_AOMaxDistance: 1 m_CompAOExponent: 1 m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 m_Padding: 2 m_LightmapParameters: {fileID: 0} m_LightmapsBakeMode: 1 @@ -77,10 +77,16 @@ LightmapSettings: m_PVRDirectSampleCount: 32 m_PVRSampleCount: 500 m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 m_PVRFilterTypeDirect: 0 m_PVRFilterTypeIndirect: 0 m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 + m_PVREnvironmentMIS: 0 m_PVRCulling: 1 m_PVRFilteringGaussRadiusDirect: 1 m_PVRFilteringGaussRadiusIndirect: 5 @@ -88,15 +94,18 @@ LightmapSettings: m_PVRFilteringAtrousPositionSigmaDirect: 0.5 m_PVRFilteringAtrousPositionSigmaIndirect: 2 m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 + m_LightingSettings: {fileID: 4890085278179872738, guid: 20c8488ac153b4f45944c2d7c85a094e, + type: 2} --- !u!196 &4 NavMeshSettings: serializedVersion: 2 m_ObjectHideFlags: 0 m_BuildSettings: - serializedVersion: 2 + serializedVersion: 3 agentTypeID: 0 agentRadius: 0.5 agentHeight: 2 @@ -109,15 +118,49 @@ NavMeshSettings: cellSize: 0.16666667 manualTileSize: 0 tileSize: 256 - accuratePlacement: 0 + buildHeightMesh: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 debug: m_Flags: 0 m_NavMeshData: {fileID: 0} +--- !u!1 &206998647 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 206998649} + m_Layer: 0 + m_Name: GameObject + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &206998649 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 206998647} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &705507993 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 705507995} @@ -133,15 +176,18 @@ GameObject: Light: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 705507993} m_Enabled: 1 - serializedVersion: 8 + serializedVersion: 10 m_Type: 1 + m_Shape: 0 m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} m_Intensity: 1 m_Range: 10 m_SpotAngle: 30 + m_InnerSpotAngle: 21.80208 m_CookieSize: 10 m_Shadows: m_Type: 2 @@ -151,6 +197,24 @@ Light: m_Bias: 0.05 m_NormalBias: 0.4 m_NearPlane: 0.2 + m_CullingMatrixOverride: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 + m_UseCullingMatrixOverride: 0 m_Cookie: {fileID: 0} m_DrawHalo: 0 m_Flare: {fileID: 0} @@ -158,32 +222,39 @@ Light: m_CullingMask: serializedVersion: 2 m_Bits: 4294967295 + m_RenderingLayerMask: 1 m_Lightmapping: 1 m_LightShadowCasterMode: 0 m_AreaSize: {x: 1, y: 1} m_BounceIntensity: 1 m_ColorTemperature: 6570 m_UseColorTemperature: 0 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} + m_UseBoundingSphereOverride: 0 + m_UseViewFrustumForShadowCasterCull: 1 m_ShadowRadius: 0 m_ShadowAngle: 0 --- !u!4 &705507995 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 705507993} + serializedVersion: 2 m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} m_LocalPosition: {x: 0, y: 3, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} --- !u!1 &963194225 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 963194228} @@ -200,24 +271,35 @@ GameObject: AudioListener: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 963194225} m_Enabled: 1 --- !u!20 &963194227 Camera: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 963194225} m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 1 m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_Iso: 200 + m_ShutterSpeed: 0.005 + m_Aperture: 16 + m_FocusDistance: 10 m_FocalLength: 50 + m_BladeCount: 5 + m_Curvature: {x: 2, y: 11} + m_BarrelClipping: 0.25 + m_Anamorphism: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} m_NormalizedViewPortRect: serializedVersion: 2 x: 0 @@ -248,12 +330,21 @@ Camera: Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInternal: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 963194225} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 1, z: -10} m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1660057539 &9223372036854775807 +SceneRoots: + m_ObjectHideFlags: 0 + m_Roots: + - {fileID: 963194228} + - {fileID: 705507995} + - {fileID: 206998649} diff --git a/Unity.Mathematics.TestProject/Assets/Scenes/SampleSceneSettings.lighting b/Unity.Mathematics.TestProject/Assets/Scenes/SampleSceneSettings.lighting new file mode 100644 index 00000000..e595ed65 --- /dev/null +++ b/Unity.Mathematics.TestProject/Assets/Scenes/SampleSceneSettings.lighting @@ -0,0 +1,66 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!850595691 &4890085278179872738 +LightingSettings: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: SampleSceneSettings + serializedVersion: 6 + m_GIWorkflowMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_RealtimeEnvironmentLighting: 1 + m_BounceScale: 1 + m_AlbedoBoost: 1 + m_IndirectOutputScale: 1 + m_UsingShadowmask: 1 + m_BakeBackend: 1 + m_LightmapMaxSize: 1024 + m_BakeResolution: 40 + m_Padding: 2 + m_LightmapCompression: 3 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAO: 0 + m_MixedBakeMode: 2 + m_LightmapsBakeMode: 1 + m_FilterMode: 1 + m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_RealtimeResolution: 2 + m_ForceWhiteAlbedo: 0 + m_ForceUpdates: 0 + m_FinalGather: 0 + m_FinalGatherRayCount: 256 + m_FinalGatherFiltering: 1 + m_PVRCulling: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVREnvironmentSampleCount: 512 + m_PVREnvironmentReferencePointCount: 2048 + m_LightProbeSampleCountMultiplier: 4 + m_PVRBounces: 2 + m_PVRMinBounces: 2 + m_PVREnvironmentImportanceSampling: 0 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_PVRTiledBaking: 0 + m_NumRaysToShootPerTexel: -1 + m_RespectSceneVisibilityWhenBakingGI: 0 diff --git a/Unity.Mathematics.TestProject/Assets/Scenes/SampleSceneSettings.lighting.meta b/Unity.Mathematics.TestProject/Assets/Scenes/SampleSceneSettings.lighting.meta new file mode 100644 index 00000000..daa2a351 --- /dev/null +++ b/Unity.Mathematics.TestProject/Assets/Scenes/SampleSceneSettings.lighting.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 20c8488ac153b4f45944c2d7c85a094e +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 4890085278179872738 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity.Mathematics.TestProject/Packages/manifest.json b/Unity.Mathematics.TestProject/Packages/manifest.json index 5b27463f..e40c4a4b 100644 --- a/Unity.Mathematics.TestProject/Packages/manifest.json +++ b/Unity.Mathematics.TestProject/Packages/manifest.json @@ -1,12 +1,14 @@ { "dependencies": { - "com.unity.burst": "1.2.3", - "com.unity.ide.rider": "1.1.4", - "com.unity.ide.vscode": "1.1.4", + "com.unity.ai.navigation": "1.1.4", + "com.unity.burst": "1.8.7", + "com.unity.ide.rider": "3.0.24", + "com.unity.ide.visualstudio": "2.0.18", + "com.unity.ide.vscode": "1.2.5", "com.unity.mathematics": "file:../../src", "com.unity.package-validation-suite": "0.8.1-preview", - "com.unity.properties": "0.10.4-preview", - "com.unity.test-framework": "1.1.11", + "com.unity.properties": "2.1.0-exp.3", + "com.unity.test-framework": "1.1.33", "com.unity.test-framework.performance": "2.8.0-preview" }, "testables": [ diff --git a/Unity.Mathematics.TestProject/ProjectSettings/EditorBuildSettings.asset b/Unity.Mathematics.TestProject/ProjectSettings/EditorBuildSettings.asset index 0147887e..40917b05 100644 --- a/Unity.Mathematics.TestProject/ProjectSettings/EditorBuildSettings.asset +++ b/Unity.Mathematics.TestProject/ProjectSettings/EditorBuildSettings.asset @@ -4,5 +4,8 @@ EditorBuildSettings: m_ObjectHideFlags: 0 serializedVersion: 2 - m_Scenes: [] + m_Scenes: + - enabled: 1 + path: Assets/Scenes/SampleScene.unity + guid: 9fc0d4010bbf28b4594072e72b8655ab m_configObjects: {} diff --git a/Unity.Mathematics.TestProject/ProjectSettings/GraphicsSettings.asset b/Unity.Mathematics.TestProject/ProjectSettings/GraphicsSettings.asset index 35a0fa7f..bea55798 100644 --- a/Unity.Mathematics.TestProject/ProjectSettings/GraphicsSettings.asset +++ b/Unity.Mathematics.TestProject/ProjectSettings/GraphicsSettings.asset @@ -36,6 +36,10 @@ GraphicsSettings: - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 16003, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} m_PreloadedShaders: [] m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} diff --git a/Unity.Mathematics.TestProject/ProjectSettings/ProjectSettings.asset b/Unity.Mathematics.TestProject/ProjectSettings/ProjectSettings.asset index f8345c9f..9eb3e0b5 100644 --- a/Unity.Mathematics.TestProject/ProjectSettings/ProjectSettings.asset +++ b/Unity.Mathematics.TestProject/ProjectSettings/ProjectSettings.asset @@ -3,7 +3,7 @@ --- !u!129 &1 PlayerSettings: m_ObjectHideFlags: 0 - serializedVersion: 20 + serializedVersion: 26 productGUID: 50c0163089a174a7ab9f46f0020a809f AndroidProfiler: 0 AndroidFilterTouchesWhenObscured: 0 @@ -48,12 +48,15 @@ PlayerSettings: defaultScreenHeightWeb: 600 m_StereoRenderingPath: 0 m_ActiveColorSpace: 0 + m_SpriteBatchVertexThreshold: 300 m_MTRendering: 1 + mipStripping: 0 + numberOfMipsStripped: 0 + numberOfMipsStrippedPerMipmapLimitGroup: {} m_StackTraceTypes: 010000000100000001000000010000000100000001000000 iosShowActivityIndicatorOnLoading: -1 androidShowActivityIndicatorOnLoading: -1 iosUseCustomAppBackgroundBehavior: 0 - iosAllowHTTPDownload: 1 allowedAutorotateToPortrait: 1 allowedAutorotateToPortraitUpsideDown: 1 allowedAutorotateToLandscapeRight: 1 @@ -66,6 +69,12 @@ PlayerSettings: androidRenderOutsideSafeArea: 1 androidUseSwappy: 0 androidBlitType: 0 + androidResizableWindow: 0 + androidDefaultWindowWidth: 1920 + androidDefaultWindowHeight: 1080 + androidMinimumWindowWidth: 400 + androidMinimumWindowHeight: 300 + androidFullscreenMode: 1 defaultIsNativeResolution: 1 macRetinaSupport: 1 runInBackground: 1 @@ -103,6 +112,7 @@ PlayerSettings: xboxOneMonoLoggingLevel: 0 xboxOneLoggingLevel: 1 xboxOneDisableEsram: 0 + xboxOneEnableTypeOptimization: 0 xboxOnePresentImmediateThreshold: 0 switchQueueCommandMemory: 0 switchQueueControlMemory: 16384 @@ -110,14 +120,19 @@ PlayerSettings: switchNVNShaderPoolsGranularity: 33554432 switchNVNDefaultPoolsGranularity: 16777216 switchNVNOtherPoolsGranularity: 16777216 + switchGpuScratchPoolGranularity: 2097152 + switchAllowGpuScratchShrinking: 0 + switchNVNMaxPublicTextureIDCount: 0 + switchNVNMaxPublicSamplerIDCount: 0 + switchNVNGraphicsFirmwareMemory: 32 + stadiaPresentMode: 0 + stadiaTargetFramerate: 0 vulkanNumSwapchainBuffers: 3 vulkanEnableSetSRGBWrite: 0 - m_SupportedAspectRatios: - 4:3: 1 - 5:4: 1 - 16:10: 1 - 16:9: 1 - Others: 1 + vulkanEnablePreTransform: 0 + vulkanEnableLateAcquireNextImage: 0 + vulkanEnableCommandBufferRecycling: 1 + loadStoreDebugModeEnabled: 0 bundleVersion: 0.1 preloadedAssets: [] metroInputSource: 0 @@ -126,45 +141,28 @@ PlayerSettings: xboxOneDisableKinectGpuReservation: 0 xboxOneEnable7thCore: 0 vrSettings: - cardboard: - depthFormat: 0 - enableTransitionView: 0 - daydream: - depthFormat: 0 - useSustainedPerformanceMode: 0 - enableVideoLayer: 0 - useProtectedVideoMemory: 0 - minimumSupportedHeadTracking: 0 - maximumSupportedHeadTracking: 1 - hololens: - depthFormat: 1 - depthBufferSharingEnabled: 0 - lumin: - depthFormat: 0 - frameTiming: 2 - enableGLCache: 0 - glCacheMaxBlobSize: 524288 - glCacheMaxFileSize: 8388608 - oculus: - sharedDepthBuffer: 1 - dashSupport: 1 - lowOverheadMode: 0 - protectedContext: 0 - v2Signing: 1 enable360StereoCapture: 0 isWsaHolographicRemotingEnabled: 0 enableFrameTimingStats: 0 + enableOpenGLProfilerGPURecorders: 1 useHDRDisplay: 0 - D3DHDRBitDepth: 0 + hdrBitDepth: 0 m_ColorGamuts: 00000000 targetPixelDensity: 30 resolutionScalingMode: 0 + resetResolutionOnWindowResize: 0 androidSupportedAspectRatio: 1 androidMaxAspectRatio: 2.1 - applicationIdentifier: {} - buildNumber: {} + applicationIdentifier: + Android: com.UnityTestRunner.UnityTestRunner + buildNumber: + Standalone: 0 + VisionOS: 0 + iPhone: 0 + tvOS: 0 + overrideDefaultApplicationIdentifier: 1 AndroidBundleVersionCode: 1 - AndroidMinSdkVersion: 19 + AndroidMinSdkVersion: 22 AndroidTargetSdkVersion: 0 AndroidPreferredInstallLocation: 1 aotOptions: @@ -177,34 +175,21 @@ PlayerSettings: APKExpansionFiles: 0 keepLoadedShadersAlive: 0 StripUnusedMeshComponents: 1 + strictShaderVariantMatching: 0 VertexChannelCompressionMask: 4054 iPhoneSdkVersion: 988 - iOSTargetOSVersionString: 10.0 + iOSTargetOSVersionString: 12.0 tvOSSdkVersion: 0 tvOSRequireExtendedGameController: 0 - tvOSTargetOSVersionString: 10.0 + tvOSTargetOSVersionString: 12.0 + VisionOSSdkVersion: 0 + VisionOSTargetOSVersionString: 1.0 uIPrerenderedIcon: 0 uIRequiresPersistentWiFi: 0 uIRequiresFullScreen: 1 uIStatusBarHidden: 1 uIExitOnSuspend: 0 uIStatusBarStyle: 0 - iPhoneSplashScreen: {fileID: 0} - iPhoneHighResSplashScreen: {fileID: 0} - iPhoneTallHighResSplashScreen: {fileID: 0} - iPhone47inSplashScreen: {fileID: 0} - iPhone55inPortraitSplashScreen: {fileID: 0} - iPhone55inLandscapeSplashScreen: {fileID: 0} - iPhone58inPortraitSplashScreen: {fileID: 0} - iPhone58inLandscapeSplashScreen: {fileID: 0} - iPadPortraitSplashScreen: {fileID: 0} - iPadHighResPortraitSplashScreen: {fileID: 0} - iPadLandscapeSplashScreen: {fileID: 0} - iPadHighResLandscapeSplashScreen: {fileID: 0} - iPhone65inPortraitSplashScreen: {fileID: 0} - iPhone65inLandscapeSplashScreen: {fileID: 0} - iPhone61inPortraitSplashScreen: {fileID: 0} - iPhone61inLandscapeSplashScreen: {fileID: 0} appleTVSplashScreen: {fileID: 0} appleTVSplashScreen2x: {fileID: 0} tvOSSmallIconLayers: [] @@ -232,32 +217,47 @@ PlayerSettings: iOSLaunchScreeniPadFillPct: 100 iOSLaunchScreeniPadSize: 100 iOSLaunchScreeniPadCustomXibPath: - iOSUseLaunchScreenStoryboard: 0 iOSLaunchScreenCustomStoryboardPath: + iOSLaunchScreeniPadCustomStoryboardPath: iOSDeviceRequirements: [] iOSURLSchemes: [] + macOSURLSchemes: [] iOSBackgroundModes: 0 iOSMetalForceHardShadows: 0 metalEditorSupport: 1 metalAPIValidation: 1 iOSRenderExtraFrameOnPause: 0 + iosCopyPluginsCodeInsteadOfSymlink: 0 appleDeveloperTeamID: iOSManualSigningProvisioningProfileID: tvOSManualSigningProvisioningProfileID: + VisionOSManualSigningProvisioningProfileID: iOSManualSigningProvisioningProfileType: 0 tvOSManualSigningProvisioningProfileType: 0 + VisionOSManualSigningProvisioningProfileType: 0 appleEnableAutomaticSigning: 0 iOSRequireARKit: 0 iOSAutomaticallyDetectAndAddCapabilities: 1 appleEnableProMotion: 0 + shaderPrecisionModel: 0 clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea templatePackageId: com.unity.template.3d@1.0.11 templateDefaultScene: Assets/Scenes/SampleScene.unity + useCustomMainManifest: 0 + useCustomLauncherManifest: 0 + useCustomMainGradleTemplate: 0 + useCustomLauncherGradleManifest: 0 + useCustomBaseGradleTemplate: 0 + useCustomGradlePropertiesTemplate: 0 + useCustomGradleSettingsTemplate: 0 + useCustomProguardFile: 0 AndroidTargetArchitectures: 1 + AndroidTargetDevices: 0 AndroidSplashScreenScale: 0 androidSplashScreen: {fileID: 0} AndroidKeystoreName: '{inproject}: ' AndroidKeyaliasName: + AndroidEnableArmv9SecurityFeatures: 0 AndroidBuildApkPerCpuArchitecture: 0 AndroidTVCompatibility: 0 AndroidIsGame: 1 @@ -270,10 +270,105 @@ PlayerSettings: height: 180 banner: {fileID: 0} androidGamepadSupportLevel: 0 + chromeosInputEmulation: 1 + AndroidMinifyRelease: 0 + AndroidMinifyDebug: 0 AndroidValidateAppBundleSize: 1 AndroidAppBundleSizeToValidate: 100 m_BuildTargetIcons: [] - m_BuildTargetPlatformIcons: [] + m_BuildTargetPlatformIcons: + - m_BuildTarget: Android + m_Icons: + - m_Textures: [] + m_Width: 432 + m_Height: 432 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 324 + m_Height: 324 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 216 + m_Height: 216 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 162 + m_Height: 162 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 108 + m_Height: 108 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 81 + m_Height: 81 + m_Kind: 2 + m_SubKind: + - m_Textures: [] + m_Width: 192 + m_Height: 192 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 144 + m_Height: 144 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 96 + m_Height: 96 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 72 + m_Height: 72 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 48 + m_Height: 48 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 36 + m_Height: 36 + m_Kind: 0 + m_SubKind: + - m_Textures: [] + m_Width: 192 + m_Height: 192 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 144 + m_Height: 144 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 96 + m_Height: 96 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 72 + m_Height: 72 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 48 + m_Height: 48 + m_Kind: 1 + m_SubKind: + - m_Textures: [] + m_Width: 36 + m_Height: 36 + m_Kind: 1 + m_SubKind: m_BuildTargetBatching: - m_BuildTarget: Standalone m_StaticBatching: 1 @@ -290,6 +385,7 @@ PlayerSettings: - m_BuildTarget: WebGL m_StaticBatching: 0 m_DynamicBatching: 0 + m_BuildTargetShaderSettings: [] m_BuildTargetGraphicsJobs: - m_BuildTarget: MacStandaloneSupport m_GraphicsJobs: 0 @@ -325,13 +421,13 @@ PlayerSettings: m_BuildTargetGraphicsAPIs: - m_BuildTarget: AndroidPlayer m_APIs: 150000000b000000 - m_Automatic: 0 + m_Automatic: 1 - m_BuildTarget: iOSSupport m_APIs: 10000000 m_Automatic: 1 - m_BuildTarget: AppleTVSupport m_APIs: 10000000 - m_Automatic: 0 + m_Automatic: 1 - m_BuildTarget: WebGLSupport m_APIs: 0b000000 m_Automatic: 1 @@ -341,6 +437,8 @@ PlayerSettings: m_Devices: - Oculus - OpenVR + m_DefaultShaderChunkSizeInMB: 16 + m_DefaultShaderChunkCount: 0 openGLRequireES31: 0 openGLRequireES31AEP: 0 openGLRequireES32: 0 @@ -350,7 +448,11 @@ PlayerSettings: iPhone: 1 tvOS: 1 m_BuildTargetGroupLightmapEncodingQuality: [] + m_BuildTargetGroupHDRCubemapEncodingQuality: [] m_BuildTargetGroupLightmapSettings: [] + m_BuildTargetGroupLoadStoreDebugModeSettings: [] + m_BuildTargetNormalMapEncoding: [] + m_BuildTargetDefaultTextureCompressionFormat: [] playModeTestRunnerEnabled: 0 runPlayModeTestAsEditModeTest: 0 actionOnDotNetUnhandledException: 1 @@ -360,14 +462,20 @@ PlayerSettings: cameraUsageDescription: locationUsageDescription: microphoneUsageDescription: + bluetoothUsageDescription: + macOSTargetOSVersion: 10.13.0 + switchNMETAOverride: switchNetLibKey: switchSocketMemoryPoolSize: 6144 switchSocketAllocatorPoolSize: 128 switchSocketConcurrencyLimit: 14 switchScreenResolutionBehavior: 2 switchUseCPUProfiler: 0 + switchUseGOLDLinker: 0 + switchLTOSetting: 0 switchApplicationID: 0x01004b9000490000 switchNSODependencies: + switchCompilerFlags: switchTitleNames_0: switchTitleNames_1: switchTitleNames_2: @@ -383,6 +491,7 @@ PlayerSettings: switchTitleNames_12: switchTitleNames_13: switchTitleNames_14: + switchTitleNames_15: switchPublisherNames_0: switchPublisherNames_1: switchPublisherNames_2: @@ -398,6 +507,7 @@ PlayerSettings: switchPublisherNames_12: switchPublisherNames_13: switchPublisherNames_14: + switchPublisherNames_15: switchIcons_0: {fileID: 0} switchIcons_1: {fileID: 0} switchIcons_2: {fileID: 0} @@ -413,6 +523,7 @@ PlayerSettings: switchIcons_12: {fileID: 0} switchIcons_13: {fileID: 0} switchIcons_14: {fileID: 0} + switchIcons_15: {fileID: 0} switchSmallIcons_0: {fileID: 0} switchSmallIcons_1: {fileID: 0} switchSmallIcons_2: {fileID: 0} @@ -428,6 +539,7 @@ PlayerSettings: switchSmallIcons_12: {fileID: 0} switchSmallIcons_13: {fileID: 0} switchSmallIcons_14: {fileID: 0} + switchSmallIcons_15: {fileID: 0} switchManualHTML: switchAccessibleURLs: switchLegalInformation: @@ -437,7 +549,6 @@ PlayerSettings: switchReleaseVersion: 0 switchDisplayVersion: 1.0.0 switchStartupUserAccount: 0 - switchTouchScreenUsage: 0 switchSupportedLanguagesMask: 0 switchLogoType: 0 switchApplicationErrorCodeCategory: @@ -479,6 +590,7 @@ PlayerSettings: switchNativeFsCacheSize: 32 switchIsHoldTypeHorizontal: 0 switchSupportedNpadCount: 8 + switchEnableTouchScreen: 1 switchSocketConfigEnabled: 0 switchTcpInitialSendBufferSize: 32 switchTcpInitialReceiveBufferSize: 64 @@ -490,6 +602,12 @@ PlayerSettings: switchSocketInitializeEnabled: 1 switchNetworkInterfaceManagerInitializeEnabled: 1 switchPlayerConnectionEnabled: 1 + switchUseNewStyleFilepaths: 1 + switchUseLegacyFmodPriorities: 0 + switchUseMicroSleepForYield: 1 + switchEnableRamDiskSupport: 0 + switchMicroSleepForYieldTime: 25 + switchRamDiskSpaceSize: 12 ps4NPAgeRating: 12 ps4NPTitleSecret: ps4NPTrophyPackPath: @@ -516,6 +634,7 @@ PlayerSettings: ps4ShareFilePath: ps4ShareOverlayImagePath: ps4PrivacyGuardImagePath: + ps4ExtraSceSysFile: ps4NPtitleDatPath: ps4RemotePlayKeyAssignment: -1 ps4RemotePlayKeyMappingDir: @@ -541,6 +660,7 @@ PlayerSettings: ps4UseResolutionFallback: 0 ps4ReprojectionSupport: 0 ps4UseAudio3dBackend: 0 + ps4UseLowGarlicFragmentationMode: 1 ps4SocialScreenEnabled: 0 ps4ScriptOptimizationLevel: 0 ps4Audio3dVirtualSpeakerCount: 14 @@ -557,6 +677,9 @@ PlayerSettings: ps4disableAutoHideSplash: 0 ps4videoRecordingFeaturesUsed: 0 ps4contentSearchFeaturesUsed: 0 + ps4CompatibilityPS5: 0 + ps4AllowPS5Detection: 0 + ps4GPU800MHz: 1 ps4attribEyeToEyeDistanceSettingVR: 0 ps4IncludedModules: [] ps4attribVROutputEnabled: 0 @@ -568,6 +691,7 @@ PlayerSettings: webGLMemorySize: 16 webGLExceptionSupport: 1 webGLNameFilesAsHashes: 0 + webGLShowDiagnostics: 0 webGLDataCaching: 1 webGLDebugSymbols: 0 webGLEmscriptenArgs: @@ -576,16 +700,45 @@ PlayerSettings: webGLAnalyzeBuildSize: 0 webGLUseEmbeddedResources: 0 webGLCompressionFormat: 1 + webGLWasmArithmeticExceptions: 0 webGLLinkerTarget: 1 webGLThreadsSupport: 0 - webGLWasmStreaming: 0 + webGLDecompressionFallback: 0 + webGLInitialMemorySize: 32 + webGLMaximumMemorySize: 2048 + webGLMemoryGrowthMode: 2 + webGLMemoryLinearGrowthStep: 16 + webGLMemoryGeometricGrowthStep: 0.2 + webGLMemoryGeometricGrowthCap: 96 + webGLPowerPreference: 2 scriptingDefineSymbols: {} + additionalCompilerArguments: {} platformArchitecture: {} - scriptingBackend: {} + scriptingBackend: + Android: 1 + Standalone: 1 il2cppCompilerConfiguration: {} - managedStrippingLevel: {} + il2cppCodeGeneration: {} + managedStrippingLevel: + Android: 1 + EmbeddedLinux: 1 + GameCoreScarlett: 1 + GameCoreXboxOne: 1 + Nintendo Switch: 1 + PS4: 1 + PS5: 1 + QNX: 1 + Stadia: 1 + VisionOS: 1 + WebGL: 1 + Windows Store Apps: 1 + XboxOne: 1 + iPhone: 1 + tvOS: 1 incrementalIl2cppBuild: {} - allowUnsafeCode: 0 + suppressCommonWarnings: 1 + allowUnsafeCode: 1 + useDeterministicCompilation: 1 additionalIl2CppArgs: scriptingRuntimeVersion: 1 gcIncremental: 0 @@ -620,6 +773,7 @@ PlayerSettings: metroFTAName: metroFTAFileTypes: [] metroProtocolName: + vcxProjDefaultLanguage: XboxOneProductId: XboxOneUpdateKey: XboxOneSandboxId: @@ -638,6 +792,7 @@ PlayerSettings: XboxOneCapability: [] XboxOneGameRating: {} XboxOneIsContentPackage: 0 + XboxOneEnhancedXboxCompatibilityMode: 0 XboxOneEnableGPUVariability: 0 XboxOneSockets: {} XboxOneSplashScreen: {fileID: 0} @@ -645,10 +800,8 @@ PlayerSettings: XboxOnePersistentLocalStorageSize: 0 XboxOneXTitleMemory: 8 XboxOneOverrideIdentityName: - vrEditorSettings: - daydream: - daydreamIconForeground: {fileID: 0} - daydreamIconBackground: {fileID: 0} + XboxOneOverrideIdentityPublisher: + vrEditorSettings: {} cloudServicesEnabled: UNet: 1 luminIcon: @@ -662,12 +815,22 @@ PlayerSettings: luminVersion: m_VersionCode: 1 m_VersionName: + hmiPlayerDataPath: + hmiForceSRGBBlit: 1 + embeddedLinuxEnableGamepadInput: 1 + hmiLogStartupTiming: 0 + hmiCpuConfiguration: apiCompatibilityLevel: 6 + activeInputHandler: 0 + windowsGamepadBackendHint: 0 cloudProjectId: framebufferDepthMemorylessMode: 0 + qualitySettingsNames: [] projectName: organizationId: cloudEnabled: 0 - enableNativePlatformBackendsForNewInputSystem: 0 - disableOldInputManagerSupport: 0 legacyClampBlendShapeWeights: 1 + hmiLoadingImage: {fileID: 0} + platformRequiresReadableAssets: 0 + virtualTexturingSupportEnabled: 0 + insecureHttpOption: 0 diff --git a/Unity.Mathematics.TestProject/ProjectSettings/ProjectVersion.txt b/Unity.Mathematics.TestProject/ProjectSettings/ProjectVersion.txt index 798259ba..78a77889 100644 --- a/Unity.Mathematics.TestProject/ProjectSettings/ProjectVersion.txt +++ b/Unity.Mathematics.TestProject/ProjectSettings/ProjectVersion.txt @@ -1,2 +1,2 @@ -m_EditorVersion: 2019.3.0f6 -m_EditorVersionWithRevision: 2019.3.0f6 (27ab2135bccf) +m_EditorVersion: 2022.3.7f1 +m_EditorVersionWithRevision: 2022.3.7f1 (b16b3b16c7a0) diff --git a/Unity.Mathematics.TestProject/ProjectSettings/UnityConnectSettings.asset b/Unity.Mathematics.TestProject/ProjectSettings/UnityConnectSettings.asset index fa0b1465..a88bee0f 100644 --- a/Unity.Mathematics.TestProject/ProjectSettings/UnityConnectSettings.asset +++ b/Unity.Mathematics.TestProject/ProjectSettings/UnityConnectSettings.asset @@ -9,6 +9,7 @@ UnityConnectSettings: m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events m_EventUrl: https://cdp.cloud.unity3d.com/v1/events m_ConfigUrl: https://config.uca.cloud.unity3d.com + m_DashboardUrl: https://dashboard.unity3d.com m_TestInitMode: 0 CrashReportingSettings: m_EventUrl: https://perf-events.cloud.unity3d.com @@ -22,6 +23,7 @@ UnityConnectSettings: m_Enabled: 0 m_TestMode: 0 m_InitializeOnStartup: 1 + m_PackageRequiringCoreStatsPresent: 0 UnityAdsSettings: m_Enabled: 0 m_InitializeOnStartup: 1 diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 4a2f3065..8367c2b0 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -6,7 +6,7 @@ ### Deprecated ### Removed ### Fixed - +* Fixed `math.hash` crash when using IL2CPP builds on Arm 32 bit devices. ## [1.3.0] 2023-07-12 diff --git a/src/Tests/Tests/Shared/TestAffineTransform.cs b/src/Tests/Tests/Shared/TestAffineTransform.cs index a5b31efe..77af61f8 100644 --- a/src/Tests/Tests/Shared/TestAffineTransform.cs +++ b/src/Tests/Tests/Shared/TestAffineTransform.cs @@ -7,7 +7,7 @@ namespace Unity.Mathematics.Tests [TestFixture] class TestAffineTransform { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void affine_transform_construct_from_float3x3() { const float tolerance = 1e-6f; @@ -20,7 +20,7 @@ public static void affine_transform_construct_from_float3x3() TestUtils.AreEqual(m3x3, testM3x3, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void affine_transform_construct_from_float3x4() { const float tolerance = 1e-6f; @@ -33,7 +33,7 @@ public static void affine_transform_construct_from_float3x4() TestUtils.AreEqual(m3x4, testM3x4, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void affine_transform_construct_from_float4x4() { const float tolerance = 1e-6f; @@ -46,7 +46,7 @@ public static void affine_transform_construct_from_float4x4() TestUtils.AreEqual(m4x4, testM4x4, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void affine_transform_construct_from_RigidTransform() { const float tolerance = 1e-6f; @@ -58,7 +58,7 @@ public static void affine_transform_construct_from_RigidTransform() TestUtils.AreEqual(r.pos, tx.t, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void affine_transform_inverse() { const float tolerance = 1e-6f; @@ -69,7 +69,7 @@ public static void affine_transform_inverse() TestUtils.AreEqual(float4x4.identity, mul(tx, invTx), tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void affine_transform_inverse_zero_rs_returns_zero() { const float tolerance = 1e-30f; @@ -80,7 +80,7 @@ public static void affine_transform_inverse_zero_rs_returns_zero() TestUtils.AreEqual(float3x4.zero, invTx, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void affine_transform_inverse_pico_scale() { // slightly larger tolerance (vs 1e-6f) for PS4 @@ -92,7 +92,7 @@ public static void affine_transform_inverse_pico_scale() TestUtils.AreEqual(float4x4.identity, mul(tx, invTx), tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void affine_transform_inverse_singular() { // it needs a bit larger tolerance for singular @@ -107,7 +107,7 @@ public static void affine_transform_inverse_singular() TestUtils.AreEqual(float4x4(tx), float4x4(testTx), tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void affine_transform_decompose() { const float tolerance = 1e-6f; @@ -120,7 +120,7 @@ public static void affine_transform_decompose() TestUtils.AreEqual(float4x4(tx), float4x4(testTx), tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void affine_transform_mul_vector() { float4x4 m = TestMatrix.test4x4_xyz; @@ -137,7 +137,7 @@ public static void affine_transform_mul_vector() TestUtils.AreEqual(mvector1, txvector1, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void affine_transform_rotate_vector() { float3x3 m = TestMatrix.test3x3_xyz; @@ -150,7 +150,7 @@ public static void affine_transform_rotate_vector() TestUtils.AreEqual(mvector0, txvector0, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void affine_transform_transform_point() { float4x4 m = float4x4(TestMatrix.test3x3_zyx, float3(1f, 2f, 3f)); @@ -163,7 +163,7 @@ public static void affine_transform_transform_point() TestUtils.AreEqual(mPt0, txPt0, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void affine_transform_zero() { TestUtils.AreEqual(float3x3.zero, AffineTransform.zero.rs); diff --git a/src/Tests/Tests/Shared/TestBitmanipulation.cs b/src/Tests/Tests/Shared/TestBitmanipulation.cs index 517d8d67..e3c91791 100644 --- a/src/Tests/Tests/Shared/TestBitmanipulation.cs +++ b/src/Tests/Tests/Shared/TestBitmanipulation.cs @@ -7,7 +7,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBitmanipulation { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bitmask_bool4() { TestUtils.AreEqual(bitmask(new bool4(false, false, false, false)), 0b0000); @@ -23,7 +23,7 @@ public static void bitmask_bool4() TestUtils.AreEqual(bitmask(new bool4(true, true, true, false)), 0b0111); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void countbits_int1() { TestUtils.AreEqual(12, countbits( 0x01234567)); @@ -33,7 +33,7 @@ public static void countbits_int1() TestUtils.AreEqual(32, countbits(-1)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void countbits_int2() { TestUtils.AreEqual(int2(0, 12), countbits(int2(0, 0x01234567))); @@ -41,21 +41,21 @@ public static void countbits_int2() TestUtils.AreEqual(int2(17, 32), countbits(int2(-0x456789AB, -1))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void countbits_int3() { TestUtils.AreEqual(int3(0, 12, 16), countbits(int3(0, 0x01234567, 0x456789AB))); TestUtils.AreEqual(int3(21, 17, 32), countbits(int3(-0x01234567, -0x456789AB, -1))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void countbits_int4() { TestUtils.AreEqual(int4(0, 12, 16, 21), countbits(int4(0, 0x01234567, 0x456789AB, -0x01234567))); TestUtils.AreEqual(int4(17, 32, 30, 29), countbits(int4(-0x456789AB, -1, -7, -15))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void countbits_uint() { TestUtils.AreEqual(0, countbits(0u)); @@ -66,7 +66,7 @@ public static void countbits_uint() TestUtils.AreEqual(32, countbits(0xFFFFFFFFu)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void countbits_uint2() { TestUtils.AreEqual(int2(0, 12), countbits(uint2(0, 0x01234567))); @@ -74,21 +74,21 @@ public static void countbits_uint2() TestUtils.AreEqual(int2(16, 32), countbits(uint2(0xCDEF0123u, 0xFFFFFFFFu))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void countbits_uint3() { TestUtils.AreEqual(int3(0, 12, 16), countbits(uint3(0, 0x01234567, 0x456789AB))); TestUtils.AreEqual(int3(20, 16, 32), countbits(uint3(0x89ABCDEFu, 0xCDEF0123u, 0xFFFFFFFFu))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void countbits_uint4() { TestUtils.AreEqual(int4(0, 12, 16, 20), countbits(uint4(0, 0x01234567, 0x456789AB, 0x89ABCDEFu))); TestUtils.AreEqual(int4(16, 32, 30, 29), countbits(uint4(0xCDEF0123u, 0xFFFFFFFFu, 0xFFFFFFF5u, 0xFFFFFFF1u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void countbits_long() { TestUtils.AreEqual(0, countbits(0L)); @@ -97,7 +97,7 @@ public static void countbits_long() TestUtils.AreEqual(64, countbits(-1L)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void countbits_ulong() { TestUtils.AreEqual(0, countbits(0UL)); @@ -106,7 +106,7 @@ public static void countbits_ulong() TestUtils.AreEqual(64, countbits(0xFFFFFFFFFFFFFFFFUL)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lzcnt_int() { TestUtils.AreEqual(32, lzcnt(0)); @@ -119,7 +119,7 @@ public static void lzcnt_int() TestUtils.AreEqual(0, lzcnt(-2147483648)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lzcnt_int2() { TestUtils.AreEqual(int2(32, 31), lzcnt(int2(0, 1))); @@ -128,7 +128,7 @@ public static void lzcnt_int2() TestUtils.AreEqual(int2(0, 0), lzcnt(int2(-1, -2147483648))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lzcnt_int3() { TestUtils.AreEqual(int3(32, 31, 30), lzcnt(int3(0, 1, 2))); @@ -136,14 +136,14 @@ public static void lzcnt_int3() TestUtils.AreEqual(int3(0, 0, 27), lzcnt(int3(-1, -2147483648, 17))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lzcnt_int4() { TestUtils.AreEqual(int4(32, 31, 30, 30), lzcnt(int4(0, 1, 2, 3))); TestUtils.AreEqual(int4(17, 5, 0, 0), lzcnt(int4(0x5321, 0x04435321, -1, -2147483648))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lzcnt_uint() { TestUtils.AreEqual(32, lzcnt(0u)); @@ -156,7 +156,7 @@ public static void lzcnt_uint() TestUtils.AreEqual(0, lzcnt(0xFFFFFFFFu)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lzcnt_uint2() { TestUtils.AreEqual(int2(32, 31), lzcnt(uint2(0u, 1u))); @@ -165,7 +165,7 @@ public static void lzcnt_uint2() TestUtils.AreEqual(int2(0, 0), lzcnt(uint2(0x84435320u, 0xFFFFFFFFu))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lzcnt_uint3() { TestUtils.AreEqual(int3(32, 31, 30), lzcnt(uint3(0u, 1u, 2u))); @@ -173,7 +173,7 @@ public static void lzcnt_uint3() TestUtils.AreEqual(int3(0, 0, 27), lzcnt(uint3(0x84435320u, 0xFFFFFFFFu, 17))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lzcnt_uint4() { TestUtils.AreEqual(int2(32, 31), lzcnt(uint2(0u, 1u))); @@ -182,7 +182,7 @@ public static void lzcnt_uint4() TestUtils.AreEqual(int2(0, 0), lzcnt(uint2(0x84435320u, 0xFFFFFFFFu))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lzcnt_long() { TestUtils.AreEqual(64, lzcnt(0L)); @@ -194,7 +194,7 @@ public static void lzcnt_long() TestUtils.AreEqual(0, lzcnt(-9223372036854775808L)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lzcnt_ulong() { TestUtils.AreEqual(64, lzcnt(0UL)); @@ -206,7 +206,7 @@ public static void lzcnt_ulong() TestUtils.AreEqual(0, lzcnt(0x8000000000000000UL)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tzcnt_int() { TestUtils.AreEqual(32, tzcnt(0)); @@ -220,7 +220,7 @@ public static void tzcnt_int() TestUtils.AreEqual(31, tzcnt(-2147483648)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tzcnt_int2() { TestUtils.AreEqual(int2(32, 0), tzcnt(int2(0, 1))); @@ -230,7 +230,7 @@ public static void tzcnt_int2() TestUtils.AreEqual(int2(31, 2), tzcnt(int2(-2147483648, 20))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tzcnt_int3() { TestUtils.AreEqual(int3(32, 0, 1), tzcnt(int3(0, 1, 2))); @@ -238,7 +238,7 @@ public static void tzcnt_int3() TestUtils.AreEqual(int3(1, 0, 31), tzcnt(int3(-2, -2147483647, -2147483648))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tzcnt_int4() { TestUtils.AreEqual(int4(32, 0, 1, 0), tzcnt(int4(0, 1, 2, 3))); @@ -246,7 +246,7 @@ public static void tzcnt_int4() TestUtils.AreEqual(int4(31, 2, 2, 3), tzcnt(int4(-2147483648, 20, 4132, -8))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tzcnt_uint() { TestUtils.AreEqual(32, tzcnt(0u)); @@ -260,7 +260,7 @@ public static void tzcnt_uint() TestUtils.AreEqual(31, tzcnt(0x80000000u)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tzcnt_uint2() { TestUtils.AreEqual(int2(32, 0), tzcnt(uint2(0u, 1u))); @@ -270,7 +270,7 @@ public static void tzcnt_uint2() TestUtils.AreEqual(int2(31, 2), tzcnt(uint2(0x80000000u, 20u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tzcnt_uint3() { TestUtils.AreEqual(int3(32, 0, 1), tzcnt(uint3(0u, 1u, 2u))); @@ -278,7 +278,7 @@ public static void tzcnt_uint3() TestUtils.AreEqual(int3(1, 0, 31), tzcnt(uint3(0xFFFFFFFEu, 0x80000001u, 0x80000000u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tzcnt_uint4() { TestUtils.AreEqual(int4(32, 0, 1, 0), tzcnt(uint4(0u, 1u, 2u, 3u))); @@ -286,7 +286,7 @@ public static void tzcnt_uint4() TestUtils.AreEqual(int4(31, 2, 2, 3), tzcnt(uint4(0x80000000u, 20u, 4132u, 0xFFFFFFF8u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tzcnt_long() { TestUtils.AreEqual(64, tzcnt(0L)); @@ -298,7 +298,7 @@ public static void tzcnt_long() TestUtils.AreEqual(0, tzcnt(-9223372036854775807L)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tzcnt_ulong() { TestUtils.AreEqual(64, tzcnt(0UL)); @@ -310,7 +310,7 @@ public static void tzcnt_ulong() TestUtils.AreEqual(0, tzcnt(0x8000000000000001UL)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reversebits_int() { TestUtils.AreEqual(0x03521609, reversebits(-1872213312)); @@ -319,27 +319,27 @@ public static void reversebits_int() TestUtils.AreEqual(0x48d9c42e, reversebits(0x74239b12)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reversebits_int2() { TestUtils.AreEqual(int2(0x03521609, 0x5f5b0648), reversebits(int2(-1872213312, 0x1260dafa))); TestUtils.AreEqual(int2(0x4bbafd8d, 0x48d9c42e), reversebits(int2(-1312858670, 0x74239b12))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reversebits_int3() { TestUtils.AreEqual(int3(0x03521609, 0x5f5b0648, 0x4bbafd8d), reversebits(int3(-1872213312, 0x1260dafa, -1312858670))); TestUtils.AreEqual(int3(0x48d9c42e, 0, -1), reversebits(int3(0x74239b12, 0, -1))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reversebits_int4() { TestUtils.AreEqual(int4(0x03521609, 0x5f5b0648, 0x4bbafd8d, 0x48d9c42e), reversebits(int4(-1872213312, 0x1260dafa, -1312858670, 0x74239b12))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reversebits_uint() { TestUtils.AreEqual(0x03521609u, reversebits(0x90684ac0u)); @@ -348,39 +348,39 @@ public static void reversebits_uint() TestUtils.AreEqual(0x48d9c42eu, reversebits(0x74239b12u)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reversebits_uint2() { TestUtils.AreEqual(uint2(0x03521609u, 0x5f5b0648u), reversebits(uint2(0x90684ac0u, 0x1260dafau))); TestUtils.AreEqual(uint2(0x4bbafd8du, 0x48d9c42eu), reversebits(uint2(0xb1bf5dd2u, 0x74239b12u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reversebits_uint3() { TestUtils.AreEqual(uint3(0x03521609u, 0x5f5b0648u, 0x4bbafd8du), reversebits(uint3(0x90684ac0u, 0x1260dafau, 0xb1bf5dd2u))); TestUtils.AreEqual(uint3(0x48d9c42eu, 0u, 0xFFFFFFFF), reversebits(uint3(0x74239b12u, 0u, 0xFFFFFFFF))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reversebits_uint4() { TestUtils.AreEqual(uint4(0x03521609u, 0x5f5b0648u, 0x4bbafd8du, 0x48d9c42eu), reversebits(uint4(0x90684ac0u, 0x1260dafau, 0xb1bf5dd2u, 0x74239b12u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reversebits_long() { TestUtils.AreEqual(0x4bbafd8d5f5b0648L, reversebits(0x1260dafab1bf5dd2L)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reversebits_ulong() { TestUtils.AreEqual(0x4bbafd8d5f5b0648ul, reversebits(0x1260dafab1bf5dd2ul)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rol_int() { TestUtils.AreEqual(-1933184920, rol(219257022, 11)); @@ -389,27 +389,27 @@ public static void rol_int() TestUtils.AreEqual(661621977, rol(-1692078607, 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rol_int2() { TestUtils.AreEqual(int2(-1933184920, -2048170741), rol(int2(219257022, -1586446996), 11)); TestUtils.AreEqual(int2(-1152739462, 661621977), rol(int2(-279484078, -1692078607), 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rol_int3() { TestUtils.AreEqual(int3(-1933184920, -2048170741, -1152739462), rol(int3(219257022, -1586446996, -279484078), 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rol_int4() { TestUtils.AreEqual(int4(-1933184920, -2048170741, -1152739462, 661621977), rol(int4(219257022, -1586446996, -279484078, -1692078607), 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rol_uint() { TestUtils.AreEqual(2361782376u, rol(219257022u, 11)); @@ -418,27 +418,27 @@ public static void rol_uint() TestUtils.AreEqual(661621977u, rol(2602888689u, 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rol_uint2() { TestUtils.AreEqual(uint2(2361782376u, 2246796555u), rol(uint2(219257022u, 2708520300u), 11)); TestUtils.AreEqual(uint2(3142227834u, 661621977u), rol(uint2(4015483218u, 2602888689u), 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rol_uint3() { TestUtils.AreEqual(uint3(2361782376u, 2246796555u, 3142227834u), rol(uint3(219257022u, 2708520300u, 4015483218u), 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rol_uint4() { TestUtils.AreEqual(uint4(2361782376u, 2246796555u, 3142227834u, 661621977u), rol(uint4(219257022u, 2708520300u, 4015483218u, 2602888689u), 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rol_long() { TestUtils.AreEqual(4769317691753349395L, rol(6894885722123239465L, 37)); @@ -447,7 +447,7 @@ public static void rol_long() TestUtils.AreEqual(-5493728106787075631L, rol(2788577329702376155L, 37)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rol_ulong() { TestUtils.AreEqual(4769317691753349395UL, rol(6894885722123239465UL, 37)); @@ -457,7 +457,7 @@ public static void rol_ulong() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ror_int() { TestUtils.AreEqual(87245360, ror(-1710129111, 11)); @@ -466,27 +466,27 @@ public static void ror_int() TestUtils.AreEqual(-232831845, ror(-98246768, 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ror_int2() { TestUtils.AreEqual(int2(87245360, -259445220), ror(int2(-1710129111, 1232136068), 11)); TestUtils.AreEqual(int2(-1697813787, -232831845), ror(int2(1800875222, -98246768), 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ror_int3() { TestUtils.AreEqual(int3(87245360, -259445220, -1697813787), ror(int3(-1710129111, 1232136068, 1800875222), 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ror_int4() { TestUtils.AreEqual(int4(87245360, -259445220, -1697813787, -232831845), ror(int4(-1710129111, 1232136068, 1800875222, -98246768), 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ror_uint() { TestUtils.AreEqual(87245360u, ror(2584838185u, 11)); @@ -495,26 +495,26 @@ public static void ror_uint() TestUtils.AreEqual(4062135451u, ror(4196720528u, 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ror_uint2() { TestUtils.AreEqual(uint2(87245360u, 4035522076u), ror(uint2(2584838185u, 1232136068u), 11)); TestUtils.AreEqual(uint2(2597153509u, 4062135451u), ror(uint2(1800875222u, 4196720528u), 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ror_uint3() { TestUtils.AreEqual(uint3(87245360u, 4035522076u, 2597153509u), ror(uint3(2584838185u, 1232136068u, 1800875222u), 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ror_uint4() { TestUtils.AreEqual(uint4(87245360u, 4035522076u, 2597153509u, 4062135451u), ror(uint4(2584838185u, 1232136068u, 1800875222u, 4196720528u), 11)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ror_long() { TestUtils.AreEqual(4958617126915898480L, ror(6894885722123239465L, 37)); @@ -523,7 +523,7 @@ public static void ror_long() TestUtils.AreEqual(8389344736564320290L, ror(2788577329702376155L, 37)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ror_ulong() { TestUtils.AreEqual(4958617126915898480UL, ror(6894885722123239465UL, 37)); diff --git a/src/Tests/Tests/Shared/TestBool2.gen.cs b/src/Tests/Tests/Shared/TestBool2.gen.cs index 3546ddd3..fe9ee45c 100644 --- a/src/Tests/Tests/Shared/TestBool2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_constructor() { bool2 a = new bool2(false, true); @@ -23,7 +23,7 @@ public static void bool2_constructor() TestUtils.AreEqual(true, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_scalar_constructor() { bool2 a = new bool2(true); @@ -31,7 +31,7 @@ public static void bool2_scalar_constructor() TestUtils.AreEqual(true, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_static_constructor() { bool2 a = bool2(false, true); @@ -39,7 +39,7 @@ public static void bool2_static_constructor() TestUtils.AreEqual(true, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_static_scalar_constructor() { bool2 a = bool2(true); @@ -47,7 +47,7 @@ public static void bool2_static_scalar_constructor() TestUtils.AreEqual(true, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_equal_wide_wide() { bool2 a0 = bool2(true, false); @@ -71,7 +71,7 @@ public static void bool2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_equal_wide_scalar() { bool2 a0 = bool2(false, true); @@ -95,7 +95,7 @@ public static void bool2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_equal_scalar_wide() { bool a0 = (false); @@ -119,7 +119,7 @@ public static void bool2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_not_equal_wide_wide() { bool2 a0 = bool2(true, true); @@ -143,7 +143,7 @@ public static void bool2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_not_equal_wide_scalar() { bool2 a0 = bool2(false, true); @@ -167,7 +167,7 @@ public static void bool2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -191,7 +191,7 @@ public static void bool2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_bitwise_and_wide_wide() { bool2 a0 = bool2(false, false); @@ -215,7 +215,7 @@ public static void bool2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_bitwise_and_wide_scalar() { bool2 a0 = bool2(true, false); @@ -239,7 +239,7 @@ public static void bool2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -263,7 +263,7 @@ public static void bool2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_bitwise_or_wide_wide() { bool2 a0 = bool2(true, true); @@ -287,7 +287,7 @@ public static void bool2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_bitwise_or_wide_scalar() { bool2 a0 = bool2(true, true); @@ -311,7 +311,7 @@ public static void bool2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -335,7 +335,7 @@ public static void bool2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_bitwise_xor_wide_wide() { bool2 a0 = bool2(true, false); @@ -359,7 +359,7 @@ public static void bool2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_bitwise_xor_wide_scalar() { bool2 a0 = bool2(false, false); @@ -383,7 +383,7 @@ public static void bool2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -407,7 +407,7 @@ public static void bool2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_operator_logical_not() { bool2 a0 = bool2(true, true); @@ -427,7 +427,7 @@ public static void bool2_operator_logical_not() TestUtils.AreEqual(r3, !a3); } - [TestCase] + [TestCase /* For player builds */] public static void bool2_EqualsObjectOverride() { TestUtils.IsFalse(new bool2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestBool2x2.gen.cs b/src/Tests/Tests/Shared/TestBool2x2.gen.cs index dbfd2fa1..af2bb68c 100644 --- a/src/Tests/Tests/Shared/TestBool2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool2x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_equal_wide_wide() { bool2x2 a0 = bool2x2(true, false, true, false); @@ -39,7 +39,7 @@ public static void bool2x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_equal_wide_scalar() { bool2x2 a0 = bool2x2(false, true, false, false); @@ -63,7 +63,7 @@ public static void bool2x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool2x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_not_equal_wide_wide() { bool2x2 a0 = bool2x2(true, true, true, false); @@ -111,7 +111,7 @@ public static void bool2x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_not_equal_wide_scalar() { bool2x2 a0 = bool2x2(false, true, false, true); @@ -135,7 +135,7 @@ public static void bool2x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool2x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_bitwise_and_wide_wide() { bool2x2 a0 = bool2x2(false, false, true, true); @@ -183,7 +183,7 @@ public static void bool2x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_bitwise_and_wide_scalar() { bool2x2 a0 = bool2x2(true, false, false, true); @@ -207,7 +207,7 @@ public static void bool2x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool2x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_bitwise_or_wide_wide() { bool2x2 a0 = bool2x2(true, true, true, false); @@ -255,7 +255,7 @@ public static void bool2x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_bitwise_or_wide_scalar() { bool2x2 a0 = bool2x2(true, true, false, true); @@ -279,7 +279,7 @@ public static void bool2x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool2x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_bitwise_xor_wide_wide() { bool2x2 a0 = bool2x2(true, false, false, true); @@ -327,7 +327,7 @@ public static void bool2x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_bitwise_xor_wide_scalar() { bool2x2 a0 = bool2x2(false, false, true, true); @@ -351,7 +351,7 @@ public static void bool2x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool2x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x2_operator_logical_not() { bool2x2 a0 = bool2x2(true, true, false, false); @@ -395,7 +395,7 @@ public static void bool2x2_operator_logical_not() TestUtils.AreEqual(r3, !a3); } - [TestCase] + [TestCase /* For player builds */] public static void bool2x2_EqualsObjectOverride() { TestUtils.IsFalse(new bool2x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestBool2x3.gen.cs b/src/Tests/Tests/Shared/TestBool2x3.gen.cs index e0f8f2d3..bf0f34d2 100644 --- a/src/Tests/Tests/Shared/TestBool2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool2x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_equal_wide_wide() { bool2x3 a0 = bool2x3(true, false, true, false, false, true); @@ -39,7 +39,7 @@ public static void bool2x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_equal_wide_scalar() { bool2x3 a0 = bool2x3(false, true, false, false, false, false); @@ -63,7 +63,7 @@ public static void bool2x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool2x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_not_equal_wide_wide() { bool2x3 a0 = bool2x3(true, true, true, false, false, true); @@ -111,7 +111,7 @@ public static void bool2x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_not_equal_wide_scalar() { bool2x3 a0 = bool2x3(false, true, false, true, true, false); @@ -135,7 +135,7 @@ public static void bool2x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool2x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_bitwise_and_wide_wide() { bool2x3 a0 = bool2x3(false, false, true, true, false, false); @@ -183,7 +183,7 @@ public static void bool2x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_bitwise_and_wide_scalar() { bool2x3 a0 = bool2x3(true, false, false, true, true, false); @@ -207,7 +207,7 @@ public static void bool2x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool2x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_bitwise_or_wide_wide() { bool2x3 a0 = bool2x3(true, true, true, false, true, false); @@ -255,7 +255,7 @@ public static void bool2x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_bitwise_or_wide_scalar() { bool2x3 a0 = bool2x3(true, true, false, true, true, true); @@ -279,7 +279,7 @@ public static void bool2x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool2x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_bitwise_xor_wide_wide() { bool2x3 a0 = bool2x3(true, false, false, true, false, false); @@ -327,7 +327,7 @@ public static void bool2x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_bitwise_xor_wide_scalar() { bool2x3 a0 = bool2x3(false, false, true, true, false, false); @@ -351,7 +351,7 @@ public static void bool2x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool2x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x3_operator_logical_not() { bool2x3 a0 = bool2x3(true, true, false, false, true, false); @@ -395,7 +395,7 @@ public static void bool2x3_operator_logical_not() TestUtils.AreEqual(r3, !a3); } - [TestCase] + [TestCase /* For player builds */] public static void bool2x3_EqualsObjectOverride() { TestUtils.IsFalse(new bool2x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestBool2x4.gen.cs b/src/Tests/Tests/Shared/TestBool2x4.gen.cs index 4200e9ee..3310b755 100644 --- a/src/Tests/Tests/Shared/TestBool2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool2x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_equal_wide_wide() { bool2x4 a0 = bool2x4(true, false, true, false, false, true, false, false); @@ -39,7 +39,7 @@ public static void bool2x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_equal_wide_scalar() { bool2x4 a0 = bool2x4(false, true, false, false, false, false, true, false); @@ -63,7 +63,7 @@ public static void bool2x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool2x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_not_equal_wide_wide() { bool2x4 a0 = bool2x4(true, true, true, false, false, true, false, false); @@ -111,7 +111,7 @@ public static void bool2x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_not_equal_wide_scalar() { bool2x4 a0 = bool2x4(false, true, false, true, true, false, false, false); @@ -135,7 +135,7 @@ public static void bool2x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool2x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_bitwise_and_wide_wide() { bool2x4 a0 = bool2x4(false, false, true, true, false, false, true, true); @@ -183,7 +183,7 @@ public static void bool2x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_bitwise_and_wide_scalar() { bool2x4 a0 = bool2x4(true, false, false, true, true, false, false, false); @@ -207,7 +207,7 @@ public static void bool2x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool2x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_bitwise_or_wide_wide() { bool2x4 a0 = bool2x4(true, true, true, false, true, false, true, true); @@ -255,7 +255,7 @@ public static void bool2x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_bitwise_or_wide_scalar() { bool2x4 a0 = bool2x4(true, true, false, true, true, true, true, false); @@ -279,7 +279,7 @@ public static void bool2x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool2x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_bitwise_xor_wide_wide() { bool2x4 a0 = bool2x4(true, false, false, true, false, false, false, true); @@ -327,7 +327,7 @@ public static void bool2x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_bitwise_xor_wide_scalar() { bool2x4 a0 = bool2x4(false, false, true, true, false, false, false, false); @@ -351,7 +351,7 @@ public static void bool2x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool2x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2x4_operator_logical_not() { bool2x4 a0 = bool2x4(true, true, false, false, true, false, true, false); @@ -395,7 +395,7 @@ public static void bool2x4_operator_logical_not() TestUtils.AreEqual(r3, !a3); } - [TestCase] + [TestCase /* For player builds */] public static void bool2x4_EqualsObjectOverride() { TestUtils.IsFalse(new bool2x4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestBool3.gen.cs b/src/Tests/Tests/Shared/TestBool3.gen.cs index e6b69c43..d66353aa 100644 --- a/src/Tests/Tests/Shared/TestBool3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_constructor() { bool3 a = new bool3(false, true, false); @@ -24,7 +24,7 @@ public static void bool3_constructor() TestUtils.AreEqual(false, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_scalar_constructor() { bool3 a = new bool3(true); @@ -33,7 +33,7 @@ public static void bool3_scalar_constructor() TestUtils.AreEqual(true, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_static_constructor() { bool3 a = bool3(false, true, false); @@ -42,7 +42,7 @@ public static void bool3_static_constructor() TestUtils.AreEqual(false, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_static_scalar_constructor() { bool3 a = bool3(true); @@ -51,7 +51,7 @@ public static void bool3_static_scalar_constructor() TestUtils.AreEqual(true, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_equal_wide_wide() { bool3 a0 = bool3(true, false, true); @@ -75,7 +75,7 @@ public static void bool3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_equal_wide_scalar() { bool3 a0 = bool3(false, true, false); @@ -99,7 +99,7 @@ public static void bool3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_equal_scalar_wide() { bool a0 = (false); @@ -123,7 +123,7 @@ public static void bool3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_not_equal_wide_wide() { bool3 a0 = bool3(true, true, true); @@ -147,7 +147,7 @@ public static void bool3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_not_equal_wide_scalar() { bool3 a0 = bool3(false, true, false); @@ -171,7 +171,7 @@ public static void bool3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -195,7 +195,7 @@ public static void bool3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_bitwise_and_wide_wide() { bool3 a0 = bool3(false, false, true); @@ -219,7 +219,7 @@ public static void bool3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_bitwise_and_wide_scalar() { bool3 a0 = bool3(true, false, false); @@ -243,7 +243,7 @@ public static void bool3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -267,7 +267,7 @@ public static void bool3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_bitwise_or_wide_wide() { bool3 a0 = bool3(true, true, true); @@ -291,7 +291,7 @@ public static void bool3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_bitwise_or_wide_scalar() { bool3 a0 = bool3(true, true, false); @@ -315,7 +315,7 @@ public static void bool3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -339,7 +339,7 @@ public static void bool3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_bitwise_xor_wide_wide() { bool3 a0 = bool3(true, false, false); @@ -363,7 +363,7 @@ public static void bool3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_bitwise_xor_wide_scalar() { bool3 a0 = bool3(false, false, true); @@ -387,7 +387,7 @@ public static void bool3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -411,7 +411,7 @@ public static void bool3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_operator_logical_not() { bool3 a0 = bool3(true, true, false); @@ -431,7 +431,7 @@ public static void bool3_operator_logical_not() TestUtils.AreEqual(r3, !a3); } - [TestCase] + [TestCase /* For player builds */] public static void bool3_EqualsObjectOverride() { TestUtils.IsFalse(new bool3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestBool3x2.gen.cs b/src/Tests/Tests/Shared/TestBool3x2.gen.cs index d41f918c..5be3fb7b 100644 --- a/src/Tests/Tests/Shared/TestBool3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool3x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_equal_wide_wide() { bool3x2 a0 = bool3x2(true, false, true, false, false, true); @@ -39,7 +39,7 @@ public static void bool3x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_equal_wide_scalar() { bool3x2 a0 = bool3x2(false, true, false, false, false, false); @@ -63,7 +63,7 @@ public static void bool3x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool3x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_not_equal_wide_wide() { bool3x2 a0 = bool3x2(true, true, true, false, false, true); @@ -111,7 +111,7 @@ public static void bool3x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_not_equal_wide_scalar() { bool3x2 a0 = bool3x2(false, true, false, true, true, false); @@ -135,7 +135,7 @@ public static void bool3x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool3x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_bitwise_and_wide_wide() { bool3x2 a0 = bool3x2(false, false, true, true, false, false); @@ -183,7 +183,7 @@ public static void bool3x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_bitwise_and_wide_scalar() { bool3x2 a0 = bool3x2(true, false, false, true, true, false); @@ -207,7 +207,7 @@ public static void bool3x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool3x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_bitwise_or_wide_wide() { bool3x2 a0 = bool3x2(true, true, true, false, true, false); @@ -255,7 +255,7 @@ public static void bool3x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_bitwise_or_wide_scalar() { bool3x2 a0 = bool3x2(true, true, false, true, true, true); @@ -279,7 +279,7 @@ public static void bool3x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool3x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_bitwise_xor_wide_wide() { bool3x2 a0 = bool3x2(true, false, false, true, false, false); @@ -327,7 +327,7 @@ public static void bool3x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_bitwise_xor_wide_scalar() { bool3x2 a0 = bool3x2(false, false, true, true, false, false); @@ -351,7 +351,7 @@ public static void bool3x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool3x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x2_operator_logical_not() { bool3x2 a0 = bool3x2(true, true, false, false, true, false); @@ -395,7 +395,7 @@ public static void bool3x2_operator_logical_not() TestUtils.AreEqual(r3, !a3); } - [TestCase] + [TestCase /* For player builds */] public static void bool3x2_EqualsObjectOverride() { TestUtils.IsFalse(new bool3x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestBool3x3.gen.cs b/src/Tests/Tests/Shared/TestBool3x3.gen.cs index 4a2301d9..4541a352 100644 --- a/src/Tests/Tests/Shared/TestBool3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool3x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_equal_wide_wide() { bool3x3 a0 = bool3x3(true, false, true, false, false, true, false, false, true); @@ -39,7 +39,7 @@ public static void bool3x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_equal_wide_scalar() { bool3x3 a0 = bool3x3(false, true, false, false, false, false, true, false, false); @@ -63,7 +63,7 @@ public static void bool3x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool3x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_not_equal_wide_wide() { bool3x3 a0 = bool3x3(true, true, true, false, false, true, false, false, false); @@ -111,7 +111,7 @@ public static void bool3x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_not_equal_wide_scalar() { bool3x3 a0 = bool3x3(false, true, false, true, true, false, false, false, false); @@ -135,7 +135,7 @@ public static void bool3x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool3x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_bitwise_and_wide_wide() { bool3x3 a0 = bool3x3(false, false, true, true, false, false, true, true, true); @@ -183,7 +183,7 @@ public static void bool3x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_bitwise_and_wide_scalar() { bool3x3 a0 = bool3x3(true, false, false, true, true, false, false, false, false); @@ -207,7 +207,7 @@ public static void bool3x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool3x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_bitwise_or_wide_wide() { bool3x3 a0 = bool3x3(true, true, true, false, true, false, true, true, false); @@ -255,7 +255,7 @@ public static void bool3x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_bitwise_or_wide_scalar() { bool3x3 a0 = bool3x3(true, true, false, true, true, true, true, false, true); @@ -279,7 +279,7 @@ public static void bool3x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool3x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_bitwise_xor_wide_wide() { bool3x3 a0 = bool3x3(true, false, false, true, false, false, false, true, false); @@ -327,7 +327,7 @@ public static void bool3x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_bitwise_xor_wide_scalar() { bool3x3 a0 = bool3x3(false, false, true, true, false, false, false, false, false); @@ -351,7 +351,7 @@ public static void bool3x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool3x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x3_operator_logical_not() { bool3x3 a0 = bool3x3(true, true, false, false, true, false, true, false, true); @@ -395,7 +395,7 @@ public static void bool3x3_operator_logical_not() TestUtils.AreEqual(r3, !a3); } - [TestCase] + [TestCase /* For player builds */] public static void bool3x3_EqualsObjectOverride() { TestUtils.IsFalse(new bool3x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestBool3x4.gen.cs b/src/Tests/Tests/Shared/TestBool3x4.gen.cs index c0981361..02565c51 100644 --- a/src/Tests/Tests/Shared/TestBool3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool3x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_equal_wide_wide() { bool3x4 a0 = bool3x4(true, false, true, false, false, true, false, false, true, false, true, false); @@ -39,7 +39,7 @@ public static void bool3x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_equal_wide_scalar() { bool3x4 a0 = bool3x4(false, true, false, false, false, false, true, false, false, false, true, true); @@ -63,7 +63,7 @@ public static void bool3x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool3x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_not_equal_wide_wide() { bool3x4 a0 = bool3x4(true, true, true, false, false, true, false, false, false, false, true, true); @@ -111,7 +111,7 @@ public static void bool3x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_not_equal_wide_scalar() { bool3x4 a0 = bool3x4(false, true, false, true, true, false, false, false, false, false, false, false); @@ -135,7 +135,7 @@ public static void bool3x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool3x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_bitwise_and_wide_wide() { bool3x4 a0 = bool3x4(false, false, true, true, false, false, true, true, true, false, true, true); @@ -183,7 +183,7 @@ public static void bool3x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_bitwise_and_wide_scalar() { bool3x4 a0 = bool3x4(true, false, false, true, true, false, false, false, false, false, true, true); @@ -207,7 +207,7 @@ public static void bool3x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool3x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_bitwise_or_wide_wide() { bool3x4 a0 = bool3x4(true, true, true, false, true, false, true, true, false, true, true, true); @@ -255,7 +255,7 @@ public static void bool3x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_bitwise_or_wide_scalar() { bool3x4 a0 = bool3x4(true, true, false, true, true, true, true, false, true, false, false, true); @@ -279,7 +279,7 @@ public static void bool3x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool3x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_bitwise_xor_wide_wide() { bool3x4 a0 = bool3x4(true, false, false, true, false, false, false, true, false, false, true, true); @@ -327,7 +327,7 @@ public static void bool3x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_bitwise_xor_wide_scalar() { bool3x4 a0 = bool3x4(false, false, true, true, false, false, false, false, false, false, false, true); @@ -351,7 +351,7 @@ public static void bool3x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool3x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3x4_operator_logical_not() { bool3x4 a0 = bool3x4(true, true, false, false, true, false, true, false, true, false, false, false); @@ -395,7 +395,7 @@ public static void bool3x4_operator_logical_not() TestUtils.AreEqual(r3, !a3); } - [TestCase] + [TestCase /* For player builds */] public static void bool3x4_EqualsObjectOverride() { TestUtils.IsFalse(new bool3x4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestBool4.gen.cs b/src/Tests/Tests/Shared/TestBool4.gen.cs index 69e823ab..4faf4e36 100644 --- a/src/Tests/Tests/Shared/TestBool4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_constructor() { bool4 a = new bool4(false, true, false, true); @@ -25,7 +25,7 @@ public static void bool4_constructor() TestUtils.AreEqual(true, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_scalar_constructor() { bool4 a = new bool4(true); @@ -35,7 +35,7 @@ public static void bool4_scalar_constructor() TestUtils.AreEqual(true, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_static_constructor() { bool4 a = bool4(false, true, false, true); @@ -45,7 +45,7 @@ public static void bool4_static_constructor() TestUtils.AreEqual(true, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_static_scalar_constructor() { bool4 a = bool4(true); @@ -55,7 +55,7 @@ public static void bool4_static_scalar_constructor() TestUtils.AreEqual(true, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_equal_wide_wide() { bool4 a0 = bool4(true, false, true, false); @@ -79,7 +79,7 @@ public static void bool4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_equal_wide_scalar() { bool4 a0 = bool4(false, true, false, false); @@ -103,7 +103,7 @@ public static void bool4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_equal_scalar_wide() { bool a0 = (false); @@ -127,7 +127,7 @@ public static void bool4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_not_equal_wide_wide() { bool4 a0 = bool4(true, true, true, false); @@ -151,7 +151,7 @@ public static void bool4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_not_equal_wide_scalar() { bool4 a0 = bool4(false, true, false, true); @@ -175,7 +175,7 @@ public static void bool4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -199,7 +199,7 @@ public static void bool4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_bitwise_and_wide_wide() { bool4 a0 = bool4(false, false, true, true); @@ -223,7 +223,7 @@ public static void bool4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_bitwise_and_wide_scalar() { bool4 a0 = bool4(true, false, false, true); @@ -247,7 +247,7 @@ public static void bool4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -271,7 +271,7 @@ public static void bool4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_bitwise_or_wide_wide() { bool4 a0 = bool4(true, true, true, false); @@ -295,7 +295,7 @@ public static void bool4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_bitwise_or_wide_scalar() { bool4 a0 = bool4(true, true, false, true); @@ -319,7 +319,7 @@ public static void bool4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -343,7 +343,7 @@ public static void bool4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_bitwise_xor_wide_wide() { bool4 a0 = bool4(true, false, false, true); @@ -367,7 +367,7 @@ public static void bool4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_bitwise_xor_wide_scalar() { bool4 a0 = bool4(false, false, true, true); @@ -391,7 +391,7 @@ public static void bool4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -415,7 +415,7 @@ public static void bool4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_operator_logical_not() { bool4 a0 = bool4(true, true, false, false); @@ -435,7 +435,7 @@ public static void bool4_operator_logical_not() TestUtils.AreEqual(r3, !a3); } - [TestCase] + [TestCase /* For player builds */] public static void bool4_EqualsObjectOverride() { TestUtils.IsFalse(new bool4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestBool4x2.gen.cs b/src/Tests/Tests/Shared/TestBool4x2.gen.cs index 0a2a54ca..b7585d45 100644 --- a/src/Tests/Tests/Shared/TestBool4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool4x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_equal_wide_wide() { bool4x2 a0 = bool4x2(true, false, true, false, false, true, false, false); @@ -39,7 +39,7 @@ public static void bool4x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_equal_wide_scalar() { bool4x2 a0 = bool4x2(false, true, false, false, false, false, true, false); @@ -63,7 +63,7 @@ public static void bool4x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool4x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_not_equal_wide_wide() { bool4x2 a0 = bool4x2(true, true, true, false, false, true, false, false); @@ -111,7 +111,7 @@ public static void bool4x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_not_equal_wide_scalar() { bool4x2 a0 = bool4x2(false, true, false, true, true, false, false, false); @@ -135,7 +135,7 @@ public static void bool4x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool4x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_bitwise_and_wide_wide() { bool4x2 a0 = bool4x2(false, false, true, true, false, false, true, true); @@ -183,7 +183,7 @@ public static void bool4x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_bitwise_and_wide_scalar() { bool4x2 a0 = bool4x2(true, false, false, true, true, false, false, false); @@ -207,7 +207,7 @@ public static void bool4x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool4x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_bitwise_or_wide_wide() { bool4x2 a0 = bool4x2(true, true, true, false, true, false, true, true); @@ -255,7 +255,7 @@ public static void bool4x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_bitwise_or_wide_scalar() { bool4x2 a0 = bool4x2(true, true, false, true, true, true, true, false); @@ -279,7 +279,7 @@ public static void bool4x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool4x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_bitwise_xor_wide_wide() { bool4x2 a0 = bool4x2(true, false, false, true, false, false, false, true); @@ -327,7 +327,7 @@ public static void bool4x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_bitwise_xor_wide_scalar() { bool4x2 a0 = bool4x2(false, false, true, true, false, false, false, false); @@ -351,7 +351,7 @@ public static void bool4x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool4x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x2_operator_logical_not() { bool4x2 a0 = bool4x2(true, true, false, false, true, false, true, false); @@ -395,7 +395,7 @@ public static void bool4x2_operator_logical_not() TestUtils.AreEqual(r3, !a3); } - [TestCase] + [TestCase /* For player builds */] public static void bool4x2_EqualsObjectOverride() { TestUtils.IsFalse(new bool4x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestBool4x3.gen.cs b/src/Tests/Tests/Shared/TestBool4x3.gen.cs index 8be23641..012ad7e5 100644 --- a/src/Tests/Tests/Shared/TestBool4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool4x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_equal_wide_wide() { bool4x3 a0 = bool4x3(true, false, true, false, false, true, false, false, true, false, true, false); @@ -39,7 +39,7 @@ public static void bool4x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_equal_wide_scalar() { bool4x3 a0 = bool4x3(false, true, false, false, false, false, true, false, false, false, true, true); @@ -63,7 +63,7 @@ public static void bool4x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool4x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_not_equal_wide_wide() { bool4x3 a0 = bool4x3(true, true, true, false, false, true, false, false, false, false, true, true); @@ -111,7 +111,7 @@ public static void bool4x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_not_equal_wide_scalar() { bool4x3 a0 = bool4x3(false, true, false, true, true, false, false, false, false, false, false, false); @@ -135,7 +135,7 @@ public static void bool4x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool4x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_bitwise_and_wide_wide() { bool4x3 a0 = bool4x3(false, false, true, true, false, false, true, true, true, false, true, true); @@ -183,7 +183,7 @@ public static void bool4x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_bitwise_and_wide_scalar() { bool4x3 a0 = bool4x3(true, false, false, true, true, false, false, false, false, false, true, true); @@ -207,7 +207,7 @@ public static void bool4x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool4x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_bitwise_or_wide_wide() { bool4x3 a0 = bool4x3(true, true, true, false, true, false, true, true, false, true, true, true); @@ -255,7 +255,7 @@ public static void bool4x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_bitwise_or_wide_scalar() { bool4x3 a0 = bool4x3(true, true, false, true, true, true, true, false, true, false, false, true); @@ -279,7 +279,7 @@ public static void bool4x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool4x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_bitwise_xor_wide_wide() { bool4x3 a0 = bool4x3(true, false, false, true, false, false, false, true, false, false, true, true); @@ -327,7 +327,7 @@ public static void bool4x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_bitwise_xor_wide_scalar() { bool4x3 a0 = bool4x3(false, false, true, true, false, false, false, false, false, false, false, true); @@ -351,7 +351,7 @@ public static void bool4x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool4x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x3_operator_logical_not() { bool4x3 a0 = bool4x3(true, true, false, false, true, false, true, false, true, false, false, false); @@ -395,7 +395,7 @@ public static void bool4x3_operator_logical_not() TestUtils.AreEqual(r3, !a3); } - [TestCase] + [TestCase /* For player builds */] public static void bool4x3_EqualsObjectOverride() { TestUtils.IsFalse(new bool4x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestBool4x4.gen.cs b/src/Tests/Tests/Shared/TestBool4x4.gen.cs index c83c5d8d..9cb7e412 100644 --- a/src/Tests/Tests/Shared/TestBool4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool4x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_equal_wide_wide() { bool4x4 a0 = bool4x4(true, false, true, false, false, true, false, false, true, false, true, false, true, true, false, true); @@ -39,7 +39,7 @@ public static void bool4x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_equal_wide_scalar() { bool4x4 a0 = bool4x4(false, true, false, false, false, false, true, false, false, false, true, true, false, true, false, true); @@ -63,7 +63,7 @@ public static void bool4x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool4x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_not_equal_wide_wide() { bool4x4 a0 = bool4x4(true, true, true, false, false, true, false, false, false, false, true, true, true, true, true, true); @@ -111,7 +111,7 @@ public static void bool4x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_not_equal_wide_scalar() { bool4x4 a0 = bool4x4(false, true, false, true, true, false, false, false, false, false, false, false, false, true, false, false); @@ -135,7 +135,7 @@ public static void bool4x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool4x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_bitwise_and_wide_wide() { bool4x4 a0 = bool4x4(false, false, true, true, false, false, true, true, true, false, true, true, true, true, false, false); @@ -183,7 +183,7 @@ public static void bool4x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_bitwise_and_wide_scalar() { bool4x4 a0 = bool4x4(true, false, false, true, true, false, false, false, false, false, true, true, true, false, false, true); @@ -207,7 +207,7 @@ public static void bool4x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool4x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_bitwise_or_wide_wide() { bool4x4 a0 = bool4x4(true, true, true, false, true, false, true, true, false, true, true, true, true, true, true, false); @@ -255,7 +255,7 @@ public static void bool4x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_bitwise_or_wide_scalar() { bool4x4 a0 = bool4x4(true, true, false, true, true, true, true, false, true, false, false, true, false, false, true, false); @@ -279,7 +279,7 @@ public static void bool4x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool4x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_bitwise_xor_wide_wide() { bool4x4 a0 = bool4x4(true, false, false, true, false, false, false, true, false, false, true, true, false, false, true, false); @@ -327,7 +327,7 @@ public static void bool4x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_bitwise_xor_wide_scalar() { bool4x4 a0 = bool4x4(false, false, true, true, false, false, false, false, false, false, false, true, false, true, true, true); @@ -351,7 +351,7 @@ public static void bool4x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool4x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4x4_operator_logical_not() { bool4x4 a0 = bool4x4(true, true, false, false, true, false, true, false, true, false, false, false, false, true, true, false); @@ -395,7 +395,7 @@ public static void bool4x4_operator_logical_not() TestUtils.AreEqual(r3, !a3); } - [TestCase] + [TestCase /* For player builds */] public static void bool4x4_EqualsObjectOverride() { TestUtils.IsFalse(new bool4x4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestDouble2.gen.cs b/src/Tests/Tests/Shared/TestDouble2.gen.cs index cd44e120..30a3f849 100644 --- a/src/Tests/Tests/Shared/TestDouble2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2.gen.cs @@ -15,14 +15,14 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_zero() { TestUtils.AreEqual(0.0, double2.zero.x); TestUtils.AreEqual(0.0, double2.zero.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_constructor() { double2 a = new double2(1, 2); @@ -30,7 +30,7 @@ public static void double2_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_scalar_constructor() { double2 a = new double2(17.0); @@ -38,7 +38,7 @@ public static void double2_scalar_constructor() TestUtils.AreEqual(17.0, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_static_constructor() { double2 a = double2(1, 2); @@ -46,7 +46,7 @@ public static void double2_static_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_static_scalar_constructor() { double2 a = double2(17.0); @@ -54,7 +54,7 @@ public static void double2_static_scalar_constructor() TestUtils.AreEqual(17.0, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_equal_wide_wide() { double2 a0 = double2(492.15758275061728, -495.20632027797694); @@ -78,7 +78,7 @@ public static void double2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_equal_wide_scalar() { double2 a0 = double2(-303.2300766926399, 451.52631327674089); @@ -102,7 +102,7 @@ public static void double2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -126,7 +126,7 @@ public static void double2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_not_equal_wide_wide() { double2 a0 = double2(430.8425316432689, 104.69001798736394); @@ -150,7 +150,7 @@ public static void double2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_not_equal_wide_scalar() { double2 a0 = double2(-16.914588697680529, 168.83411486858233); @@ -174,7 +174,7 @@ public static void double2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -198,7 +198,7 @@ public static void double2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_less_wide_wide() { double2 a0 = double2(196.84256825076534, 336.40979997087732); @@ -222,7 +222,7 @@ public static void double2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_less_wide_scalar() { double2 a0 = double2(-132.05731708000292, -192.46500477216438); @@ -246,7 +246,7 @@ public static void double2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -270,7 +270,7 @@ public static void double2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_greater_wide_wide() { double2 a0 = double2(483.50140141113729, 310.81563415695712); @@ -294,7 +294,7 @@ public static void double2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_greater_wide_scalar() { double2 a0 = double2(64.317918092160426, -397.70346445483318); @@ -318,7 +318,7 @@ public static void double2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -342,7 +342,7 @@ public static void double2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_less_equal_wide_wide() { double2 a0 = double2(-438.52313753521219, 210.48942837980087); @@ -366,7 +366,7 @@ public static void double2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_less_equal_wide_scalar() { double2 a0 = double2(193.4958237118534, 168.91555197952107); @@ -390,7 +390,7 @@ public static void double2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -414,7 +414,7 @@ public static void double2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_greater_equal_wide_wide() { double2 a0 = double2(-507.92858409692, 504.49748181947393); @@ -438,7 +438,7 @@ public static void double2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_greater_equal_wide_scalar() { double2 a0 = double2(465.15218732559686, -424.8860745024337); @@ -462,7 +462,7 @@ public static void double2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -486,7 +486,7 @@ public static void double2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_add_wide_wide() { double2 a0 = double2(506.12905263627374, -501.77980803967444); @@ -510,7 +510,7 @@ public static void double2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_add_wide_scalar() { double2 a0 = double2(-194.51420387742769, 338.54838696985894); @@ -534,7 +534,7 @@ public static void double2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -558,7 +558,7 @@ public static void double2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_sub_wide_wide() { double2 a0 = double2(160.4922617229131, 11.223957305412682); @@ -582,7 +582,7 @@ public static void double2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_sub_wide_scalar() { double2 a0 = double2(207.38960108877609, 248.45773684627272); @@ -606,7 +606,7 @@ public static void double2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -630,7 +630,7 @@ public static void double2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_mul_wide_wide() { double2 a0 = double2(-482.71381710596097, -407.29348559272171); @@ -654,7 +654,7 @@ public static void double2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_mul_wide_scalar() { double2 a0 = double2(-96.318821236639678, -277.14229239017811); @@ -678,7 +678,7 @@ public static void double2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -702,7 +702,7 @@ public static void double2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_div_wide_wide() { double2 a0 = double2(-353.13144390337703, -102.79985456485292); @@ -726,7 +726,7 @@ public static void double2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_div_wide_scalar() { double2 a0 = double2(171.34242184988341, 0.10338377957384637); @@ -750,7 +750,7 @@ public static void double2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -774,7 +774,7 @@ public static void double2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_mod_wide_wide() { double2 a0 = double2(-388.81249422059045, 181.68118842955732); @@ -798,7 +798,7 @@ public static void double2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_mod_wide_scalar() { double2 a0 = double2(-244.49962889612635, -211.81931958525411); @@ -822,7 +822,7 @@ public static void double2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -846,7 +846,7 @@ public static void double2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_plus() { double2 a0 = double2(-418.82956357432045, -405.79894823851015); @@ -866,7 +866,7 @@ public static void double2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_neg() { double2 a0 = double2(148.46174890755753, -467.12267873581624); @@ -886,7 +886,7 @@ public static void double2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_prefix_inc() { double2 a0 = double2(-139.84208137348389, -56.743654039103376); @@ -906,7 +906,7 @@ public static void double2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_postfix_inc() { double2 a0 = double2(-396.6697396695007, 511.20749378167443); @@ -926,7 +926,7 @@ public static void double2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_prefix_dec() { double2 a0 = double2(123.12869626056806, 256.8437465433235); @@ -946,7 +946,7 @@ public static void double2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_operator_postfix_dec() { double2 a0 = double2(379.68831723727669, 302.69287814884115); @@ -966,7 +966,7 @@ public static void double2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_shuffle_result_1() { double2 a = double2(0, 1); @@ -978,7 +978,7 @@ public static void double2_shuffle_result_1() TestUtils.AreEqual((3), shuffle(a, b, ShuffleComponent.RightY)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_shuffle_result_2() { double2 a = double2(0, 1); @@ -1002,7 +1002,7 @@ public static void double2_shuffle_result_2() TestUtils.AreEqual(double2(3, 3), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.RightY)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_shuffle_result_3() { double2 a = double2(0, 1); @@ -1026,7 +1026,7 @@ public static void double2_shuffle_result_3() TestUtils.AreEqual(double3(3, 1, 1), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.LeftY)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_shuffle_result_4() { double2 a = double2(0, 1); @@ -1050,7 +1050,7 @@ public static void double2_shuffle_result_4() TestUtils.AreEqual(double4(2, 0, 0, 0), shuffle(a, b, ShuffleComponent.RightX, ShuffleComponent.LeftX, ShuffleComponent.LeftX, ShuffleComponent.LeftX)); } - [TestCase] + [TestCase /* For player builds */] public static void double2_EqualsObjectOverride() { TestUtils.IsFalse(new double2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestDouble2x2.gen.cs b/src/Tests/Tests/Shared/TestDouble2x2.gen.cs index c7fc90d5..5531de5f 100644 --- a/src/Tests/Tests/Shared/TestDouble2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble2x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_zero() { TestUtils.AreEqual(0.0, double2x2.zero.c0.x); @@ -24,7 +24,7 @@ public static void double2x2_zero() TestUtils.AreEqual(0.0, double2x2.zero.c1.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_identity() { TestUtils.AreEqual(1.0, double2x2.identity.c0.x); @@ -33,7 +33,7 @@ public static void double2x2_identity() TestUtils.AreEqual(1.0, double2x2.identity.c1.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_equal_wide_wide() { double2x2 a0 = double2x2(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182); @@ -57,7 +57,7 @@ public static void double2x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_equal_wide_scalar() { double2x2 a0 = double2x2(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995); @@ -81,7 +81,7 @@ public static void double2x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -105,7 +105,7 @@ public static void double2x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_not_equal_wide_wide() { double2x2 a0 = double2x2(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048); @@ -129,7 +129,7 @@ public static void double2x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_not_equal_wide_scalar() { double2x2 a0 = double2x2(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137); @@ -153,7 +153,7 @@ public static void double2x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -177,7 +177,7 @@ public static void double2x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_less_wide_wide() { double2x2 a0 = double2x2(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963); @@ -201,7 +201,7 @@ public static void double2x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_less_wide_scalar() { double2x2 a0 = double2x2(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561); @@ -225,7 +225,7 @@ public static void double2x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -249,7 +249,7 @@ public static void double2x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_greater_wide_wide() { double2x2 a0 = double2x2(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671); @@ -273,7 +273,7 @@ public static void double2x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_greater_wide_scalar() { double2x2 a0 = double2x2(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157); @@ -297,7 +297,7 @@ public static void double2x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -321,7 +321,7 @@ public static void double2x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_less_equal_wide_wide() { double2x2 a0 = double2x2(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857); @@ -345,7 +345,7 @@ public static void double2x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_less_equal_wide_scalar() { double2x2 a0 = double2x2(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292); @@ -369,7 +369,7 @@ public static void double2x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -393,7 +393,7 @@ public static void double2x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_greater_equal_wide_wide() { double2x2 a0 = double2x2(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784); @@ -417,7 +417,7 @@ public static void double2x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_greater_equal_wide_scalar() { double2x2 a0 = double2x2(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356); @@ -441,7 +441,7 @@ public static void double2x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -465,7 +465,7 @@ public static void double2x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_add_wide_wide() { double2x2 a0 = double2x2(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274); @@ -489,7 +489,7 @@ public static void double2x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_add_wide_scalar() { double2x2 a0 = double2x2(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752); @@ -513,7 +513,7 @@ public static void double2x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -537,7 +537,7 @@ public static void double2x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_sub_wide_wide() { double2x2 a0 = double2x2(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311); @@ -561,7 +561,7 @@ public static void double2x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_sub_wide_scalar() { double2x2 a0 = double2x2(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506); @@ -585,7 +585,7 @@ public static void double2x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -609,7 +609,7 @@ public static void double2x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_mul_wide_wide() { double2x2 a0 = double2x2(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182); @@ -633,7 +633,7 @@ public static void double2x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_mul_wide_scalar() { double2x2 a0 = double2x2(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409); @@ -657,7 +657,7 @@ public static void double2x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -681,7 +681,7 @@ public static void double2x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_div_wide_wide() { double2x2 a0 = double2x2(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176); @@ -705,7 +705,7 @@ public static void double2x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_div_wide_scalar() { double2x2 a0 = double2x2(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078); @@ -729,7 +729,7 @@ public static void double2x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -753,7 +753,7 @@ public static void double2x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_mod_wide_wide() { double2x2 a0 = double2x2(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813); @@ -777,7 +777,7 @@ public static void double2x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_mod_wide_scalar() { double2x2 a0 = double2x2(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672); @@ -801,7 +801,7 @@ public static void double2x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -825,7 +825,7 @@ public static void double2x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_plus() { double2x2 a0 = double2x2(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421); @@ -845,7 +845,7 @@ public static void double2x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_neg() { double2x2 a0 = double2x2(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463); @@ -865,7 +865,7 @@ public static void double2x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_prefix_inc() { double2x2 a0 = double2x2(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962); @@ -885,7 +885,7 @@ public static void double2x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_postfix_inc() { double2x2 a0 = double2x2(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153); @@ -905,7 +905,7 @@ public static void double2x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_prefix_dec() { double2x2 a0 = double2x2(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563); @@ -925,7 +925,7 @@ public static void double2x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x2_operator_postfix_dec() { double2x2 a0 = double2x2(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962); @@ -945,7 +945,7 @@ public static void double2x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void double2x2_EqualsObjectOverride() { TestUtils.IsFalse(new double2x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestDouble2x3.gen.cs b/src/Tests/Tests/Shared/TestDouble2x3.gen.cs index d95bba8d..20df3853 100644 --- a/src/Tests/Tests/Shared/TestDouble2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble2x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_zero() { TestUtils.AreEqual(0.0, double2x3.zero.c0.x); @@ -26,7 +26,7 @@ public static void double2x3_zero() TestUtils.AreEqual(0.0, double2x3.zero.c2.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_equal_wide_wide() { double2x3 a0 = double2x3(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749); @@ -50,7 +50,7 @@ public static void double2x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_equal_wide_scalar() { double2x3 a0 = double2x3(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315); @@ -74,7 +74,7 @@ public static void double2x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -98,7 +98,7 @@ public static void double2x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_not_equal_wide_wide() { double2x3 a0 = double2x3(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379); @@ -122,7 +122,7 @@ public static void double2x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_not_equal_wide_scalar() { double2x3 a0 = double2x3(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959); @@ -146,7 +146,7 @@ public static void double2x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -170,7 +170,7 @@ public static void double2x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_less_wide_wide() { double2x3 a0 = double2x3(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774); @@ -194,7 +194,7 @@ public static void double2x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_less_wide_scalar() { double2x3 a0 = double2x3(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879); @@ -218,7 +218,7 @@ public static void double2x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -242,7 +242,7 @@ public static void double2x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_greater_wide_wide() { double2x3 a0 = double2x3(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479); @@ -266,7 +266,7 @@ public static void double2x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_greater_wide_scalar() { double2x3 a0 = double2x3(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809); @@ -290,7 +290,7 @@ public static void double2x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -314,7 +314,7 @@ public static void double2x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_less_equal_wide_wide() { double2x3 a0 = double2x3(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475); @@ -338,7 +338,7 @@ public static void double2x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_less_equal_wide_scalar() { double2x3 a0 = double2x3(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136); @@ -362,7 +362,7 @@ public static void double2x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -386,7 +386,7 @@ public static void double2x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_greater_equal_wide_wide() { double2x3 a0 = double2x3(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193); @@ -410,7 +410,7 @@ public static void double2x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_greater_equal_wide_scalar() { double2x3 a0 = double2x3(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976); @@ -434,7 +434,7 @@ public static void double2x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -458,7 +458,7 @@ public static void double2x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_add_wide_wide() { double2x3 a0 = double2x3(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056); @@ -482,7 +482,7 @@ public static void double2x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_add_wide_scalar() { double2x3 a0 = double2x3(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166); @@ -506,7 +506,7 @@ public static void double2x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -530,7 +530,7 @@ public static void double2x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_sub_wide_wide() { double2x3 a0 = double2x3(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053); @@ -554,7 +554,7 @@ public static void double2x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_sub_wide_scalar() { double2x3 a0 = double2x3(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896); @@ -578,7 +578,7 @@ public static void double2x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -602,7 +602,7 @@ public static void double2x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_mul_wide_wide() { double2x3 a0 = double2x3(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747); @@ -626,7 +626,7 @@ public static void double2x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_mul_wide_scalar() { double2x3 a0 = double2x3(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229); @@ -650,7 +650,7 @@ public static void double2x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -674,7 +674,7 @@ public static void double2x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_div_wide_wide() { double2x3 a0 = double2x3(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758); @@ -698,7 +698,7 @@ public static void double2x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_div_wide_scalar() { double2x3 a0 = double2x3(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509); @@ -722,7 +722,7 @@ public static void double2x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -746,7 +746,7 @@ public static void double2x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_mod_wide_wide() { double2x3 a0 = double2x3(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406); @@ -770,7 +770,7 @@ public static void double2x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_mod_wide_scalar() { double2x3 a0 = double2x3(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221); @@ -794,7 +794,7 @@ public static void double2x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -818,7 +818,7 @@ public static void double2x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_plus() { double2x3 a0 = double2x3(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287); @@ -838,7 +838,7 @@ public static void double2x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_neg() { double2x3 a0 = double2x3(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605); @@ -858,7 +858,7 @@ public static void double2x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_prefix_inc() { double2x3 a0 = double2x3(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198); @@ -878,7 +878,7 @@ public static void double2x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_postfix_inc() { double2x3 a0 = double2x3(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219); @@ -898,7 +898,7 @@ public static void double2x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_prefix_dec() { double2x3 a0 = double2x3(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339); @@ -918,7 +918,7 @@ public static void double2x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x3_operator_postfix_dec() { double2x3 a0 = double2x3(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231); @@ -938,7 +938,7 @@ public static void double2x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void double2x3_EqualsObjectOverride() { TestUtils.IsFalse(new double2x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestDouble2x4.gen.cs b/src/Tests/Tests/Shared/TestDouble2x4.gen.cs index aac05afe..822a43bb 100644 --- a/src/Tests/Tests/Shared/TestDouble2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble2x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_zero() { TestUtils.AreEqual(0.0, double2x4.zero.c0.x); @@ -28,7 +28,7 @@ public static void double2x4_zero() TestUtils.AreEqual(0.0, double2x4.zero.c3.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_equal_wide_wide() { double2x4 a0 = double2x4(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749, -23.890404473939157, -16.8197190839889); @@ -52,7 +52,7 @@ public static void double2x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_equal_wide_scalar() { double2x4 a0 = double2x4(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315, 159.87609656149334, -59.558379439431405); @@ -76,7 +76,7 @@ public static void double2x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -100,7 +100,7 @@ public static void double2x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_not_equal_wide_wide() { double2x4 a0 = double2x4(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379, -509.32682561749908, -160.53807719076895); @@ -124,7 +124,7 @@ public static void double2x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_not_equal_wide_scalar() { double2x4 a0 = double2x4(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959, -197.12796053529155, -169.09985860115842); @@ -148,7 +148,7 @@ public static void double2x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -172,7 +172,7 @@ public static void double2x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_less_wide_wide() { double2x4 a0 = double2x4(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774, 8.8392293494376872, -333.81671563434259); @@ -196,7 +196,7 @@ public static void double2x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_less_wide_scalar() { double2x4 a0 = double2x4(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879, -158.24074537970159, 437.34587522845061); @@ -220,7 +220,7 @@ public static void double2x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -244,7 +244,7 @@ public static void double2x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_greater_wide_wide() { double2x4 a0 = double2x4(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479, -14.897393471979228, -33.817441717636484); @@ -268,7 +268,7 @@ public static void double2x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_greater_wide_scalar() { double2x4 a0 = double2x4(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809, 286.1994608781298, 280.81334818564972); @@ -292,7 +292,7 @@ public static void double2x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -316,7 +316,7 @@ public static void double2x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_less_equal_wide_wide() { double2x4 a0 = double2x4(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475, -97.948485181642923, 437.29539009430232); @@ -340,7 +340,7 @@ public static void double2x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_less_equal_wide_scalar() { double2x4 a0 = double2x4(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136, 241.36115776810846, -463.81641242644582); @@ -364,7 +364,7 @@ public static void double2x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -388,7 +388,7 @@ public static void double2x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_greater_equal_wide_wide() { double2x4 a0 = double2x4(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193, -463.70202157632542, 387.44885772627265); @@ -412,7 +412,7 @@ public static void double2x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_greater_equal_wide_scalar() { double2x4 a0 = double2x4(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976, 16.353385694489475, -344.55997316192838); @@ -436,7 +436,7 @@ public static void double2x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -460,7 +460,7 @@ public static void double2x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_add_wide_wide() { double2x4 a0 = double2x4(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056, 424.34407659263536, 87.791079800478656); @@ -484,7 +484,7 @@ public static void double2x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_add_wide_scalar() { double2x4 a0 = double2x4(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166, 30.916145577522116, 60.37435224483454); @@ -508,7 +508,7 @@ public static void double2x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -532,7 +532,7 @@ public static void double2x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_sub_wide_wide() { double2x4 a0 = double2x4(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053, -410.46404786150163, -401.38464398001537); @@ -556,7 +556,7 @@ public static void double2x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_sub_wide_scalar() { double2x4 a0 = double2x4(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896, 18.856238135535364, -44.96160151667965); @@ -580,7 +580,7 @@ public static void double2x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -604,7 +604,7 @@ public static void double2x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_mul_wide_wide() { double2x4 a0 = double2x4(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747, 183.98730739578014, -241.33547770294149); @@ -628,7 +628,7 @@ public static void double2x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_mul_wide_scalar() { double2x4 a0 = double2x4(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229, -455.50827500573746, -389.24327367788334); @@ -652,7 +652,7 @@ public static void double2x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -676,7 +676,7 @@ public static void double2x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_div_wide_wide() { double2x4 a0 = double2x4(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758, -136.05959779399427, -370.4710053738537); @@ -700,7 +700,7 @@ public static void double2x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_div_wide_scalar() { double2x4 a0 = double2x4(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509, -127.44869118903239, -79.7448890580539); @@ -724,7 +724,7 @@ public static void double2x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -748,7 +748,7 @@ public static void double2x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_mod_wide_wide() { double2x4 a0 = double2x4(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406, 283.318293464984, 122.71651297561664); @@ -772,7 +772,7 @@ public static void double2x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_mod_wide_scalar() { double2x4 a0 = double2x4(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221, 281.30965412841624, -226.53575311719243); @@ -796,7 +796,7 @@ public static void double2x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -820,7 +820,7 @@ public static void double2x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_plus() { double2x4 a0 = double2x4(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287, 293.74197902052754, -373.015422279488); @@ -840,7 +840,7 @@ public static void double2x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_neg() { double2x4 a0 = double2x4(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605, -54.958759571872065, -382.98981803608581); @@ -860,7 +860,7 @@ public static void double2x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_prefix_inc() { double2x4 a0 = double2x4(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198, -392.73151058365193, -300.19410218866267); @@ -880,7 +880,7 @@ public static void double2x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_postfix_inc() { double2x4 a0 = double2x4(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219, -81.393423356764686, 66.719732554033271); @@ -900,7 +900,7 @@ public static void double2x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_prefix_dec() { double2x4 a0 = double2x4(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339, 187.87412580655609, -236.2252043393558); @@ -920,7 +920,7 @@ public static void double2x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2x4_operator_postfix_dec() { double2x4 a0 = double2x4(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231, -63.655158787805192, 355.26110069605568); @@ -940,7 +940,7 @@ public static void double2x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void double2x4_EqualsObjectOverride() { TestUtils.IsFalse(new double2x4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestDouble3.gen.cs b/src/Tests/Tests/Shared/TestDouble3.gen.cs index cc53ddbf..2bd08a5d 100644 --- a/src/Tests/Tests/Shared/TestDouble3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_zero() { TestUtils.AreEqual(0.0, double3.zero.x); @@ -23,7 +23,7 @@ public static void double3_zero() TestUtils.AreEqual(0.0, double3.zero.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_constructor() { double3 a = new double3(1, 2, 3); @@ -32,7 +32,7 @@ public static void double3_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_scalar_constructor() { double3 a = new double3(17.0); @@ -41,7 +41,7 @@ public static void double3_scalar_constructor() TestUtils.AreEqual(17.0, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_static_constructor() { double3 a = double3(1, 2, 3); @@ -50,7 +50,7 @@ public static void double3_static_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_static_scalar_constructor() { double3 a = double3(17.0); @@ -59,7 +59,7 @@ public static void double3_static_scalar_constructor() TestUtils.AreEqual(17.0, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_equal_wide_wide() { double3 a0 = double3(492.15758275061728, -495.20632027797694, 227.45765195947968); @@ -83,7 +83,7 @@ public static void double3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_equal_wide_scalar() { double3 a0 = double3(-303.2300766926399, 451.52631327674089, -253.65587413201848); @@ -107,7 +107,7 @@ public static void double3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -131,7 +131,7 @@ public static void double3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_not_equal_wide_wide() { double3 a0 = double3(430.8425316432689, 104.69001798736394, 225.80243478799355); @@ -155,7 +155,7 @@ public static void double3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_not_equal_wide_scalar() { double3 a0 = double3(-16.914588697680529, 168.83411486858233, -462.71352145760949); @@ -179,7 +179,7 @@ public static void double3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -203,7 +203,7 @@ public static void double3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_less_wide_wide() { double3 a0 = double3(196.84256825076534, 336.40979997087732, 251.96372115424072); @@ -227,7 +227,7 @@ public static void double3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_less_wide_scalar() { double3 a0 = double3(-132.05731708000292, -192.46500477216438, -66.834607870706634); @@ -251,7 +251,7 @@ public static void double3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -275,7 +275,7 @@ public static void double3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_greater_wide_wide() { double3 a0 = double3(483.50140141113729, 310.81563415695712, 106.9661896726891); @@ -299,7 +299,7 @@ public static void double3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_greater_wide_scalar() { double3 a0 = double3(64.317918092160426, -397.70346445483318, 431.87690826499693); @@ -323,7 +323,7 @@ public static void double3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -347,7 +347,7 @@ public static void double3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_less_equal_wide_wide() { double3 a0 = double3(-438.52313753521219, 210.48942837980087, 4.8773329280677444); @@ -371,7 +371,7 @@ public static void double3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_less_equal_wide_scalar() { double3 a0 = double3(193.4958237118534, 168.91555197952107, -313.9930695565385); @@ -395,7 +395,7 @@ public static void double3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -419,7 +419,7 @@ public static void double3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_greater_equal_wide_wide() { double3 a0 = double3(-507.92858409692, 504.49748181947393, -385.43449205226938); @@ -443,7 +443,7 @@ public static void double3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_greater_equal_wide_scalar() { double3 a0 = double3(465.15218732559686, -424.8860745024337, -209.22109685150025); @@ -467,7 +467,7 @@ public static void double3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -491,7 +491,7 @@ public static void double3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_add_wide_wide() { double3 a0 = double3(506.12905263627374, -501.77980803967444, 420.08479638587903); @@ -515,7 +515,7 @@ public static void double3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_add_wide_scalar() { double3 a0 = double3(-194.51420387742769, 338.54838696985894, 246.97140252169754); @@ -539,7 +539,7 @@ public static void double3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -563,7 +563,7 @@ public static void double3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_sub_wide_wide() { double3 a0 = double3(160.4922617229131, 11.223957305412682, 359.20010607279846); @@ -587,7 +587,7 @@ public static void double3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_sub_wide_scalar() { double3 a0 = double3(207.38960108877609, 248.45773684627272, -384.82393211164697); @@ -611,7 +611,7 @@ public static void double3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -635,7 +635,7 @@ public static void double3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_mul_wide_wide() { double3 a0 = double3(-482.71381710596097, -407.29348559272171, 137.70058995937029); @@ -659,7 +659,7 @@ public static void double3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_mul_wide_scalar() { double3 a0 = double3(-96.318821236639678, -277.14229239017811, -239.93690191951436); @@ -683,7 +683,7 @@ public static void double3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -707,7 +707,7 @@ public static void double3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_div_wide_wide() { double3 a0 = double3(-353.13144390337703, -102.79985456485292, 51.319128298814917); @@ -731,7 +731,7 @@ public static void double3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_div_wide_scalar() { double3 a0 = double3(171.34242184988341, 0.10338377957384637, 57.888263967767443); @@ -755,7 +755,7 @@ public static void double3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -779,7 +779,7 @@ public static void double3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_mod_wide_wide() { double3 a0 = double3(-388.81249422059045, 181.68118842955732, -167.07872470052854); @@ -803,7 +803,7 @@ public static void double3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_mod_wide_scalar() { double3 a0 = double3(-244.49962889612635, -211.81931958525411, -145.92677576184587); @@ -827,7 +827,7 @@ public static void double3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -851,7 +851,7 @@ public static void double3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_plus() { double3 a0 = double3(-418.82956357432045, -405.79894823851015, -34.041791216489742); @@ -871,7 +871,7 @@ public static void double3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_neg() { double3 a0 = double3(148.46174890755753, -467.12267873581624, 132.04719954917539); @@ -891,7 +891,7 @@ public static void double3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_prefix_inc() { double3 a0 = double3(-139.84208137348389, -56.743654039103376, -381.955324589254); @@ -911,7 +911,7 @@ public static void double3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_postfix_inc() { double3 a0 = double3(-396.6697396695007, 511.20749378167443, 249.11127030528678); @@ -931,7 +931,7 @@ public static void double3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_prefix_dec() { double3 a0 = double3(123.12869626056806, 256.8437465433235, 156.33078844674435); @@ -951,7 +951,7 @@ public static void double3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_operator_postfix_dec() { double3 a0 = double3(379.68831723727669, 302.69287814884115, -176.07134040448409); @@ -971,7 +971,7 @@ public static void double3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_shuffle_result_1() { double3 a = double3(0, 1, 2); @@ -985,7 +985,7 @@ public static void double3_shuffle_result_1() TestUtils.AreEqual((5), shuffle(a, b, ShuffleComponent.RightZ)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_shuffle_result_2() { double3 a = double3(0, 1, 2); @@ -1009,7 +1009,7 @@ public static void double3_shuffle_result_2() TestUtils.AreEqual(double2(1, 2), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftZ)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_shuffle_result_3() { double3 a = double3(0, 1, 2); @@ -1033,7 +1033,7 @@ public static void double3_shuffle_result_3() TestUtils.AreEqual(double3(4, 0, 5), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftX, ShuffleComponent.RightZ)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_shuffle_result_4() { double3 a = double3(0, 1, 2); @@ -1057,7 +1057,7 @@ public static void double3_shuffle_result_4() TestUtils.AreEqual(double4(2, 5, 0, 4), shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftX, ShuffleComponent.RightY)); } - [TestCase] + [TestCase /* For player builds */] public static void double3_EqualsObjectOverride() { TestUtils.IsFalse(new double3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestDouble3x2.gen.cs b/src/Tests/Tests/Shared/TestDouble3x2.gen.cs index 382e68b6..bbfffa3a 100644 --- a/src/Tests/Tests/Shared/TestDouble3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble3x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_zero() { TestUtils.AreEqual(0.0, double3x2.zero.c0.x); @@ -26,7 +26,7 @@ public static void double3x2_zero() TestUtils.AreEqual(0.0, double3x2.zero.c1.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_equal_wide_wide() { double3x2 a0 = double3x2(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749); @@ -50,7 +50,7 @@ public static void double3x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_equal_wide_scalar() { double3x2 a0 = double3x2(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315); @@ -74,7 +74,7 @@ public static void double3x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -98,7 +98,7 @@ public static void double3x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_not_equal_wide_wide() { double3x2 a0 = double3x2(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379); @@ -122,7 +122,7 @@ public static void double3x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_not_equal_wide_scalar() { double3x2 a0 = double3x2(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959); @@ -146,7 +146,7 @@ public static void double3x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -170,7 +170,7 @@ public static void double3x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_less_wide_wide() { double3x2 a0 = double3x2(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774); @@ -194,7 +194,7 @@ public static void double3x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_less_wide_scalar() { double3x2 a0 = double3x2(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879); @@ -218,7 +218,7 @@ public static void double3x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -242,7 +242,7 @@ public static void double3x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_greater_wide_wide() { double3x2 a0 = double3x2(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479); @@ -266,7 +266,7 @@ public static void double3x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_greater_wide_scalar() { double3x2 a0 = double3x2(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809); @@ -290,7 +290,7 @@ public static void double3x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -314,7 +314,7 @@ public static void double3x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_less_equal_wide_wide() { double3x2 a0 = double3x2(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475); @@ -338,7 +338,7 @@ public static void double3x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_less_equal_wide_scalar() { double3x2 a0 = double3x2(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136); @@ -362,7 +362,7 @@ public static void double3x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -386,7 +386,7 @@ public static void double3x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_greater_equal_wide_wide() { double3x2 a0 = double3x2(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193); @@ -410,7 +410,7 @@ public static void double3x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_greater_equal_wide_scalar() { double3x2 a0 = double3x2(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976); @@ -434,7 +434,7 @@ public static void double3x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -458,7 +458,7 @@ public static void double3x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_add_wide_wide() { double3x2 a0 = double3x2(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056); @@ -482,7 +482,7 @@ public static void double3x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_add_wide_scalar() { double3x2 a0 = double3x2(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166); @@ -506,7 +506,7 @@ public static void double3x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -530,7 +530,7 @@ public static void double3x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_sub_wide_wide() { double3x2 a0 = double3x2(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053); @@ -554,7 +554,7 @@ public static void double3x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_sub_wide_scalar() { double3x2 a0 = double3x2(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896); @@ -578,7 +578,7 @@ public static void double3x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -602,7 +602,7 @@ public static void double3x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_mul_wide_wide() { double3x2 a0 = double3x2(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747); @@ -626,7 +626,7 @@ public static void double3x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_mul_wide_scalar() { double3x2 a0 = double3x2(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229); @@ -650,7 +650,7 @@ public static void double3x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -674,7 +674,7 @@ public static void double3x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_div_wide_wide() { double3x2 a0 = double3x2(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758); @@ -698,7 +698,7 @@ public static void double3x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_div_wide_scalar() { double3x2 a0 = double3x2(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509); @@ -722,7 +722,7 @@ public static void double3x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -746,7 +746,7 @@ public static void double3x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_mod_wide_wide() { double3x2 a0 = double3x2(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406); @@ -770,7 +770,7 @@ public static void double3x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_mod_wide_scalar() { double3x2 a0 = double3x2(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221); @@ -794,7 +794,7 @@ public static void double3x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -818,7 +818,7 @@ public static void double3x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_plus() { double3x2 a0 = double3x2(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287); @@ -838,7 +838,7 @@ public static void double3x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_neg() { double3x2 a0 = double3x2(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605); @@ -858,7 +858,7 @@ public static void double3x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_prefix_inc() { double3x2 a0 = double3x2(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198); @@ -878,7 +878,7 @@ public static void double3x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_postfix_inc() { double3x2 a0 = double3x2(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219); @@ -898,7 +898,7 @@ public static void double3x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_prefix_dec() { double3x2 a0 = double3x2(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339); @@ -918,7 +918,7 @@ public static void double3x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x2_operator_postfix_dec() { double3x2 a0 = double3x2(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231); @@ -938,7 +938,7 @@ public static void double3x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void double3x2_EqualsObjectOverride() { TestUtils.IsFalse(new double3x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestDouble3x3.gen.cs b/src/Tests/Tests/Shared/TestDouble3x3.gen.cs index 56364618..aca1ba86 100644 --- a/src/Tests/Tests/Shared/TestDouble3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble3x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_zero() { TestUtils.AreEqual(0.0, double3x3.zero.c0.x); @@ -29,7 +29,7 @@ public static void double3x3_zero() TestUtils.AreEqual(0.0, double3x3.zero.c2.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_identity() { TestUtils.AreEqual(1.0, double3x3.identity.c0.x); @@ -43,7 +43,7 @@ public static void double3x3_identity() TestUtils.AreEqual(1.0, double3x3.identity.c2.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_equal_wide_wide() { double3x3 a0 = double3x3(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749, -23.890404473939157, -16.8197190839889, 163.23210890741655); @@ -67,7 +67,7 @@ public static void double3x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_equal_wide_scalar() { double3x3 a0 = double3x3(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315, 159.87609656149334, -59.558379439431405, -57.477391031327386); @@ -91,7 +91,7 @@ public static void double3x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -115,7 +115,7 @@ public static void double3x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_not_equal_wide_wide() { double3x3 a0 = double3x3(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379, -509.32682561749908, -160.53807719076895, -203.30197606016975); @@ -139,7 +139,7 @@ public static void double3x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_not_equal_wide_scalar() { double3x3 a0 = double3x3(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959, -197.12796053529155, -169.09985860115842, -386.61117595555783); @@ -163,7 +163,7 @@ public static void double3x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -187,7 +187,7 @@ public static void double3x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_less_wide_wide() { double3x3 a0 = double3x3(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774, 8.8392293494376872, -333.81671563434259, 164.67880662003472); @@ -211,7 +211,7 @@ public static void double3x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_less_wide_scalar() { double3x3 a0 = double3x3(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879, -158.24074537970159, 437.34587522845061, -20.452607402788772); @@ -235,7 +235,7 @@ public static void double3x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -259,7 +259,7 @@ public static void double3x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_greater_wide_wide() { double3x3 a0 = double3x3(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479, -14.897393471979228, -33.817441717636484, -24.740548383789417); @@ -283,7 +283,7 @@ public static void double3x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_greater_wide_scalar() { double3x3 a0 = double3x3(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809, 286.1994608781298, 280.81334818564972, -405.78459210218148); @@ -307,7 +307,7 @@ public static void double3x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -331,7 +331,7 @@ public static void double3x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_less_equal_wide_wide() { double3x3 a0 = double3x3(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475, -97.948485181642923, 437.29539009430232, 458.53029153241323); @@ -355,7 +355,7 @@ public static void double3x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_less_equal_wide_scalar() { double3x3 a0 = double3x3(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136, 241.36115776810846, -463.81641242644582, -1.3577692515020203); @@ -379,7 +379,7 @@ public static void double3x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -403,7 +403,7 @@ public static void double3x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_greater_equal_wide_wide() { double3x3 a0 = double3x3(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193, -463.70202157632542, 387.44885772627265, 456.96878573716094); @@ -427,7 +427,7 @@ public static void double3x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_greater_equal_wide_scalar() { double3x3 a0 = double3x3(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976, 16.353385694489475, -344.55997316192838, 393.27804846003562); @@ -451,7 +451,7 @@ public static void double3x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -475,7 +475,7 @@ public static void double3x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_add_wide_wide() { double3x3 a0 = double3x3(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056, 424.34407659263536, 87.791079800478656, 462.41368148402012); @@ -499,7 +499,7 @@ public static void double3x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_add_wide_scalar() { double3x3 a0 = double3x3(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166, 30.916145577522116, 60.37435224483454, -242.1187475855084); @@ -523,7 +523,7 @@ public static void double3x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -547,7 +547,7 @@ public static void double3x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_sub_wide_wide() { double3x3 a0 = double3x3(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053, -410.46404786150163, -401.38464398001537, 317.70681944382693); @@ -571,7 +571,7 @@ public static void double3x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_sub_wide_scalar() { double3x3 a0 = double3x3(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896, 18.856238135535364, -44.96160151667965, 480.85798738936796); @@ -595,7 +595,7 @@ public static void double3x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -619,7 +619,7 @@ public static void double3x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_mul_wide_wide() { double3x3 a0 = double3x3(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747, 183.98730739578014, -241.33547770294149, 45.868758938214114); @@ -643,7 +643,7 @@ public static void double3x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_mul_wide_scalar() { double3x3 a0 = double3x3(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229, -455.50827500573746, -389.24327367788334, -338.29248658674419); @@ -667,7 +667,7 @@ public static void double3x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -691,7 +691,7 @@ public static void double3x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_div_wide_wide() { double3x3 a0 = double3x3(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758, -136.05959779399427, -370.4710053738537, -237.69456326109105); @@ -715,7 +715,7 @@ public static void double3x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_div_wide_scalar() { double3x3 a0 = double3x3(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509, -127.44869118903239, -79.7448890580539, 146.46688110496234); @@ -739,7 +739,7 @@ public static void double3x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -763,7 +763,7 @@ public static void double3x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_mod_wide_wide() { double3x3 a0 = double3x3(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406, 283.318293464984, 122.71651297561664, 335.27101413126616); @@ -787,7 +787,7 @@ public static void double3x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_mod_wide_scalar() { double3x3 a0 = double3x3(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221, 281.30965412841624, -226.53575311719243, 335.16613046041039); @@ -811,7 +811,7 @@ public static void double3x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -835,7 +835,7 @@ public static void double3x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_plus() { double3x3 a0 = double3x3(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287, 293.74197902052754, -373.015422279488, -386.059833944803); @@ -855,7 +855,7 @@ public static void double3x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_neg() { double3x3 a0 = double3x3(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605, -54.958759571872065, -382.98981803608581, -299.09338893512887); @@ -875,7 +875,7 @@ public static void double3x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_prefix_inc() { double3x3 a0 = double3x3(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198, -392.73151058365193, -300.19410218866267, 362.21273939787068); @@ -895,7 +895,7 @@ public static void double3x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_postfix_inc() { double3x3 a0 = double3x3(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219, -81.393423356764686, 66.719732554033271, 167.85212691493894); @@ -915,7 +915,7 @@ public static void double3x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_prefix_dec() { double3x3 a0 = double3x3(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339, 187.87412580655609, -236.2252043393558, 125.10963517292851); @@ -935,7 +935,7 @@ public static void double3x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x3_operator_postfix_dec() { double3x3 a0 = double3x3(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231, -63.655158787805192, 355.26110069605568, -27.889220489137415); @@ -955,7 +955,7 @@ public static void double3x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void double3x3_EqualsObjectOverride() { TestUtils.IsFalse(new double3x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestDouble3x4.gen.cs b/src/Tests/Tests/Shared/TestDouble3x4.gen.cs index c54ef5be..48170ecf 100644 --- a/src/Tests/Tests/Shared/TestDouble3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble3x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_zero() { TestUtils.AreEqual(0.0, double3x4.zero.c0.x); @@ -32,7 +32,7 @@ public static void double3x4_zero() TestUtils.AreEqual(0.0, double3x4.zero.c3.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_equal_wide_wide() { double3x4 a0 = double3x4(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749, -23.890404473939157, -16.8197190839889, 163.23210890741655, -165.27101071424363, 470.87767980568003, -423.94255967808078); @@ -56,7 +56,7 @@ public static void double3x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_equal_wide_scalar() { double3x4 a0 = double3x4(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315, 159.87609656149334, -59.558379439431405, -57.477391031327386, -182.04973968400139, 406.51375861024189, 370.88599866017978); @@ -80,7 +80,7 @@ public static void double3x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -104,7 +104,7 @@ public static void double3x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_not_equal_wide_wide() { double3x4 a0 = double3x4(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379, -509.32682561749908, -160.53807719076895, -203.30197606016975, -505.76325368590807, 162.17220623892365, 1.1561973100324394); @@ -128,7 +128,7 @@ public static void double3x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_not_equal_wide_scalar() { double3x4 a0 = double3x4(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959, -197.12796053529155, -169.09985860115842, -386.61117595555783, -281.02101362916687, -270.26885593601912, -403.96372313236992); @@ -152,7 +152,7 @@ public static void double3x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -176,7 +176,7 @@ public static void double3x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_less_wide_wide() { double3x4 a0 = double3x4(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774, 8.8392293494376872, -333.81671563434259, 164.67880662003472, -350.94487516532877, 3.84143662631584, 125.40972024081725); @@ -200,7 +200,7 @@ public static void double3x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_less_wide_scalar() { double3x4 a0 = double3x4(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879, -158.24074537970159, 437.34587522845061, -20.452607402788772, 225.29148517609178, 307.48418607725023, 274.01523292903562); @@ -224,7 +224,7 @@ public static void double3x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -248,7 +248,7 @@ public static void double3x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_greater_wide_wide() { double3x4 a0 = double3x4(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479, -14.897393471979228, -33.817441717636484, -24.740548383789417, 319.78262701620474, -120.15856581561201, -289.00857962714906); @@ -272,7 +272,7 @@ public static void double3x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_greater_wide_scalar() { double3x4 a0 = double3x4(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809, 286.1994608781298, 280.81334818564972, -405.78459210218148, 171.56538661362856, -241.80727326209063, 333.57817498481745); @@ -296,7 +296,7 @@ public static void double3x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -320,7 +320,7 @@ public static void double3x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_less_equal_wide_wide() { double3x4 a0 = double3x4(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475, -97.948485181642923, 437.29539009430232, 458.53029153241323, -294.06474675520542, 23.622613679441884, -34.284056441059363); @@ -344,7 +344,7 @@ public static void double3x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_less_equal_wide_scalar() { double3x4 a0 = double3x4(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136, 241.36115776810846, -463.81641242644582, -1.3577692515020203, -268.89945591096739, 398.9919504593089, -471.253072242836); @@ -368,7 +368,7 @@ public static void double3x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -392,7 +392,7 @@ public static void double3x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_greater_equal_wide_wide() { double3x4 a0 = double3x4(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193, -463.70202157632542, 387.44885772627265, 456.96878573716094, -211.01015506079892, 182.41135391146474, -53.596053863687473); @@ -416,7 +416,7 @@ public static void double3x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_greater_equal_wide_scalar() { double3x4 a0 = double3x4(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976, 16.353385694489475, -344.55997316192838, 393.27804846003562, -315.70155086913218, 441.0115565923096, -509.78156757251435); @@ -440,7 +440,7 @@ public static void double3x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -464,7 +464,7 @@ public static void double3x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_add_wide_wide() { double3x4 a0 = double3x4(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056, 424.34407659263536, 87.791079800478656, 462.41368148402012, -46.178705952213477, 401.17006296718966, -454.12414643453627); @@ -488,7 +488,7 @@ public static void double3x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_add_wide_scalar() { double3x4 a0 = double3x4(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166, 30.916145577522116, 60.37435224483454, -242.1187475855084, 82.50134495762245, 6.7993848355483806, -484.69981287638649); @@ -512,7 +512,7 @@ public static void double3x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -536,7 +536,7 @@ public static void double3x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_sub_wide_wide() { double3x4 a0 = double3x4(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053, -410.46404786150163, -401.38464398001537, 317.70681944382693, 447.0604133303558, -489.07414482956477, -230.00838218909149); @@ -560,7 +560,7 @@ public static void double3x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_sub_wide_scalar() { double3x4 a0 = double3x4(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896, 18.856238135535364, -44.96160151667965, 480.85798738936796, 16.338193185784917, -366.86545269883493, -35.523088233323335); @@ -584,7 +584,7 @@ public static void double3x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -608,7 +608,7 @@ public static void double3x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_mul_wide_wide() { double3x4 a0 = double3x4(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747, 183.98730739578014, -241.33547770294149, 45.868758938214114, 363.32610266438041, -328.11893692990714, -471.02307413100408); @@ -632,7 +632,7 @@ public static void double3x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_mul_wide_scalar() { double3x4 a0 = double3x4(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229, -455.50827500573746, -389.24327367788334, -338.29248658674419, 53.796284939067618, 243.75734459783757, 135.35469991311186); @@ -656,7 +656,7 @@ public static void double3x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -680,7 +680,7 @@ public static void double3x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_div_wide_wide() { double3x4 a0 = double3x4(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758, -136.05959779399427, -370.4710053738537, -237.69456326109105, -432.54687496300176, 200.26549181727012, 361.44157068871039); @@ -704,7 +704,7 @@ public static void double3x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_div_wide_scalar() { double3x4 a0 = double3x4(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509, -127.44869118903239, -79.7448890580539, 146.46688110496234, -499.84355687529012, 58.686315802245531, -453.20579859856787); @@ -728,7 +728,7 @@ public static void double3x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -752,7 +752,7 @@ public static void double3x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_mod_wide_wide() { double3x4 a0 = double3x4(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406, 283.318293464984, 122.71651297561664, 335.27101413126616, -503.60851668920765, 191.02251848532933, 289.74269379756538); @@ -776,7 +776,7 @@ public static void double3x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_mod_wide_scalar() { double3x4 a0 = double3x4(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221, 281.30965412841624, -226.53575311719243, 335.16613046041039, 101.70649032560482, 319.47152033423606, -285.40231646476423); @@ -800,7 +800,7 @@ public static void double3x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -824,7 +824,7 @@ public static void double3x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_plus() { double3x4 a0 = double3x4(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287, 293.74197902052754, -373.015422279488, -386.059833944803, 4.9544198536101476, -418.64524932328857, 504.47483062393724); @@ -844,7 +844,7 @@ public static void double3x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_neg() { double3x4 a0 = double3x4(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605, -54.958759571872065, -382.98981803608581, -299.09338893512887, -383.01406377508027, 407.70980305583669, 168.73550351370852); @@ -864,7 +864,7 @@ public static void double3x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_prefix_inc() { double3x4 a0 = double3x4(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198, -392.73151058365193, -300.19410218866267, 362.21273939787068, 401.614830919362, 130.90919429199266, -450.23016402229212); @@ -884,7 +884,7 @@ public static void double3x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_postfix_inc() { double3x4 a0 = double3x4(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219, -81.393423356764686, 66.719732554033271, 167.85212691493894, 147.94395048354932, -326.10758486674524, 41.033564825092185); @@ -904,7 +904,7 @@ public static void double3x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_prefix_dec() { double3x4 a0 = double3x4(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339, 187.87412580655609, -236.2252043393558, 125.10963517292851, 469.8447313112415, 45.536655685648611, 376.04684680329956); @@ -924,7 +924,7 @@ public static void double3x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3x4_operator_postfix_dec() { double3x4 a0 = double3x4(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231, -63.655158787805192, 355.26110069605568, -27.889220489137415, -100.76183824462902, 156.14034969924967, 479.94519613680677); @@ -944,7 +944,7 @@ public static void double3x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void double3x4_EqualsObjectOverride() { TestUtils.IsFalse(new double3x4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestDouble4.gen.cs b/src/Tests/Tests/Shared/TestDouble4.gen.cs index 2d907e2a..6dec9e23 100644 --- a/src/Tests/Tests/Shared/TestDouble4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_zero() { TestUtils.AreEqual(0.0, double4.zero.x); @@ -24,7 +24,7 @@ public static void double4_zero() TestUtils.AreEqual(0.0, double4.zero.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_constructor() { double4 a = new double4(1, 2, 3, 4); @@ -34,7 +34,7 @@ public static void double4_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_scalar_constructor() { double4 a = new double4(17.0); @@ -44,7 +44,7 @@ public static void double4_scalar_constructor() TestUtils.AreEqual(17.0, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_static_constructor() { double4 a = double4(1, 2, 3, 4); @@ -54,7 +54,7 @@ public static void double4_static_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_static_scalar_constructor() { double4 a = double4(17.0); @@ -64,7 +64,7 @@ public static void double4_static_scalar_constructor() TestUtils.AreEqual(17.0, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_equal_wide_wide() { double4 a0 = double4(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182); @@ -88,7 +88,7 @@ public static void double4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_equal_wide_scalar() { double4 a0 = double4(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995); @@ -112,7 +112,7 @@ public static void double4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -136,7 +136,7 @@ public static void double4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_not_equal_wide_wide() { double4 a0 = double4(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048); @@ -160,7 +160,7 @@ public static void double4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_not_equal_wide_scalar() { double4 a0 = double4(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137); @@ -184,7 +184,7 @@ public static void double4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -208,7 +208,7 @@ public static void double4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_less_wide_wide() { double4 a0 = double4(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963); @@ -232,7 +232,7 @@ public static void double4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_less_wide_scalar() { double4 a0 = double4(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561); @@ -256,7 +256,7 @@ public static void double4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -280,7 +280,7 @@ public static void double4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_greater_wide_wide() { double4 a0 = double4(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671); @@ -304,7 +304,7 @@ public static void double4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_greater_wide_scalar() { double4 a0 = double4(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157); @@ -328,7 +328,7 @@ public static void double4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -352,7 +352,7 @@ public static void double4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_less_equal_wide_wide() { double4 a0 = double4(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857); @@ -376,7 +376,7 @@ public static void double4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_less_equal_wide_scalar() { double4 a0 = double4(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292); @@ -400,7 +400,7 @@ public static void double4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -424,7 +424,7 @@ public static void double4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_greater_equal_wide_wide() { double4 a0 = double4(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784); @@ -448,7 +448,7 @@ public static void double4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_greater_equal_wide_scalar() { double4 a0 = double4(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356); @@ -472,7 +472,7 @@ public static void double4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -496,7 +496,7 @@ public static void double4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_add_wide_wide() { double4 a0 = double4(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274); @@ -520,7 +520,7 @@ public static void double4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_add_wide_scalar() { double4 a0 = double4(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752); @@ -544,7 +544,7 @@ public static void double4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -568,7 +568,7 @@ public static void double4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_sub_wide_wide() { double4 a0 = double4(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311); @@ -592,7 +592,7 @@ public static void double4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_sub_wide_scalar() { double4 a0 = double4(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506); @@ -616,7 +616,7 @@ public static void double4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -640,7 +640,7 @@ public static void double4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_mul_wide_wide() { double4 a0 = double4(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182); @@ -664,7 +664,7 @@ public static void double4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_mul_wide_scalar() { double4 a0 = double4(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409); @@ -688,7 +688,7 @@ public static void double4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -712,7 +712,7 @@ public static void double4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_div_wide_wide() { double4 a0 = double4(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176); @@ -736,7 +736,7 @@ public static void double4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_div_wide_scalar() { double4 a0 = double4(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078); @@ -760,7 +760,7 @@ public static void double4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -784,7 +784,7 @@ public static void double4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_mod_wide_wide() { double4 a0 = double4(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813); @@ -808,7 +808,7 @@ public static void double4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_mod_wide_scalar() { double4 a0 = double4(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672); @@ -832,7 +832,7 @@ public static void double4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -856,7 +856,7 @@ public static void double4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_plus() { double4 a0 = double4(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421); @@ -876,7 +876,7 @@ public static void double4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_neg() { double4 a0 = double4(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463); @@ -896,7 +896,7 @@ public static void double4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_prefix_inc() { double4 a0 = double4(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962); @@ -916,7 +916,7 @@ public static void double4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_postfix_inc() { double4 a0 = double4(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153); @@ -936,7 +936,7 @@ public static void double4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_prefix_dec() { double4 a0 = double4(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563); @@ -956,7 +956,7 @@ public static void double4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_operator_postfix_dec() { double4 a0 = double4(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962); @@ -976,7 +976,7 @@ public static void double4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_shuffle_result_1() { double4 a = double4(0, 1, 2, 3); @@ -992,7 +992,7 @@ public static void double4_shuffle_result_1() TestUtils.AreEqual((7), shuffle(a, b, ShuffleComponent.RightW)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_shuffle_result_2() { double4 a = double4(0, 1, 2, 3); @@ -1016,7 +1016,7 @@ public static void double4_shuffle_result_2() TestUtils.AreEqual(double2(1, 3), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftW)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_shuffle_result_3() { double4 a = double4(0, 1, 2, 3); @@ -1040,7 +1040,7 @@ public static void double4_shuffle_result_3() TestUtils.AreEqual(double3(5, 1, 7), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.RightW)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_shuffle_result_4() { double4 a = double4(0, 1, 2, 3); @@ -1064,7 +1064,7 @@ public static void double4_shuffle_result_4() TestUtils.AreEqual(double4(3, 7, 1, 5), shuffle(a, b, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.LeftY, ShuffleComponent.RightY)); } - [TestCase] + [TestCase /* For player builds */] public static void double4_EqualsObjectOverride() { TestUtils.IsFalse(new double4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestDouble4x2.gen.cs b/src/Tests/Tests/Shared/TestDouble4x2.gen.cs index 0e02dc29..112a10df 100644 --- a/src/Tests/Tests/Shared/TestDouble4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble4x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_zero() { TestUtils.AreEqual(0.0, double4x2.zero.c0.x); @@ -28,7 +28,7 @@ public static void double4x2_zero() TestUtils.AreEqual(0.0, double4x2.zero.c1.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_equal_wide_wide() { double4x2 a0 = double4x2(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749, -23.890404473939157, -16.8197190839889); @@ -52,7 +52,7 @@ public static void double4x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_equal_wide_scalar() { double4x2 a0 = double4x2(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315, 159.87609656149334, -59.558379439431405); @@ -76,7 +76,7 @@ public static void double4x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -100,7 +100,7 @@ public static void double4x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_not_equal_wide_wide() { double4x2 a0 = double4x2(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379, -509.32682561749908, -160.53807719076895); @@ -124,7 +124,7 @@ public static void double4x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_not_equal_wide_scalar() { double4x2 a0 = double4x2(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959, -197.12796053529155, -169.09985860115842); @@ -148,7 +148,7 @@ public static void double4x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -172,7 +172,7 @@ public static void double4x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_less_wide_wide() { double4x2 a0 = double4x2(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774, 8.8392293494376872, -333.81671563434259); @@ -196,7 +196,7 @@ public static void double4x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_less_wide_scalar() { double4x2 a0 = double4x2(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879, -158.24074537970159, 437.34587522845061); @@ -220,7 +220,7 @@ public static void double4x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -244,7 +244,7 @@ public static void double4x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_greater_wide_wide() { double4x2 a0 = double4x2(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479, -14.897393471979228, -33.817441717636484); @@ -268,7 +268,7 @@ public static void double4x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_greater_wide_scalar() { double4x2 a0 = double4x2(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809, 286.1994608781298, 280.81334818564972); @@ -292,7 +292,7 @@ public static void double4x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -316,7 +316,7 @@ public static void double4x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_less_equal_wide_wide() { double4x2 a0 = double4x2(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475, -97.948485181642923, 437.29539009430232); @@ -340,7 +340,7 @@ public static void double4x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_less_equal_wide_scalar() { double4x2 a0 = double4x2(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136, 241.36115776810846, -463.81641242644582); @@ -364,7 +364,7 @@ public static void double4x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -388,7 +388,7 @@ public static void double4x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_greater_equal_wide_wide() { double4x2 a0 = double4x2(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193, -463.70202157632542, 387.44885772627265); @@ -412,7 +412,7 @@ public static void double4x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_greater_equal_wide_scalar() { double4x2 a0 = double4x2(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976, 16.353385694489475, -344.55997316192838); @@ -436,7 +436,7 @@ public static void double4x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -460,7 +460,7 @@ public static void double4x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_add_wide_wide() { double4x2 a0 = double4x2(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056, 424.34407659263536, 87.791079800478656); @@ -484,7 +484,7 @@ public static void double4x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_add_wide_scalar() { double4x2 a0 = double4x2(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166, 30.916145577522116, 60.37435224483454); @@ -508,7 +508,7 @@ public static void double4x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -532,7 +532,7 @@ public static void double4x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_sub_wide_wide() { double4x2 a0 = double4x2(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053, -410.46404786150163, -401.38464398001537); @@ -556,7 +556,7 @@ public static void double4x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_sub_wide_scalar() { double4x2 a0 = double4x2(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896, 18.856238135535364, -44.96160151667965); @@ -580,7 +580,7 @@ public static void double4x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -604,7 +604,7 @@ public static void double4x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_mul_wide_wide() { double4x2 a0 = double4x2(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747, 183.98730739578014, -241.33547770294149); @@ -628,7 +628,7 @@ public static void double4x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_mul_wide_scalar() { double4x2 a0 = double4x2(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229, -455.50827500573746, -389.24327367788334); @@ -652,7 +652,7 @@ public static void double4x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -676,7 +676,7 @@ public static void double4x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_div_wide_wide() { double4x2 a0 = double4x2(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758, -136.05959779399427, -370.4710053738537); @@ -700,7 +700,7 @@ public static void double4x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_div_wide_scalar() { double4x2 a0 = double4x2(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509, -127.44869118903239, -79.7448890580539); @@ -724,7 +724,7 @@ public static void double4x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -748,7 +748,7 @@ public static void double4x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_mod_wide_wide() { double4x2 a0 = double4x2(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406, 283.318293464984, 122.71651297561664); @@ -772,7 +772,7 @@ public static void double4x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_mod_wide_scalar() { double4x2 a0 = double4x2(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221, 281.30965412841624, -226.53575311719243); @@ -796,7 +796,7 @@ public static void double4x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -820,7 +820,7 @@ public static void double4x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_plus() { double4x2 a0 = double4x2(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287, 293.74197902052754, -373.015422279488); @@ -840,7 +840,7 @@ public static void double4x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_neg() { double4x2 a0 = double4x2(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605, -54.958759571872065, -382.98981803608581); @@ -860,7 +860,7 @@ public static void double4x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_prefix_inc() { double4x2 a0 = double4x2(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198, -392.73151058365193, -300.19410218866267); @@ -880,7 +880,7 @@ public static void double4x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_postfix_inc() { double4x2 a0 = double4x2(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219, -81.393423356764686, 66.719732554033271); @@ -900,7 +900,7 @@ public static void double4x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_prefix_dec() { double4x2 a0 = double4x2(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339, 187.87412580655609, -236.2252043393558); @@ -920,7 +920,7 @@ public static void double4x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x2_operator_postfix_dec() { double4x2 a0 = double4x2(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231, -63.655158787805192, 355.26110069605568); @@ -940,7 +940,7 @@ public static void double4x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void double4x2_EqualsObjectOverride() { TestUtils.IsFalse(new double4x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestDouble4x3.gen.cs b/src/Tests/Tests/Shared/TestDouble4x3.gen.cs index 66d6e952..90982950 100644 --- a/src/Tests/Tests/Shared/TestDouble4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble4x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_zero() { TestUtils.AreEqual(0.0, double4x3.zero.c0.x); @@ -32,7 +32,7 @@ public static void double4x3_zero() TestUtils.AreEqual(0.0, double4x3.zero.c2.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_equal_wide_wide() { double4x3 a0 = double4x3(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749, -23.890404473939157, -16.8197190839889, 163.23210890741655, -165.27101071424363, 470.87767980568003, -423.94255967808078); @@ -56,7 +56,7 @@ public static void double4x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_equal_wide_scalar() { double4x3 a0 = double4x3(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315, 159.87609656149334, -59.558379439431405, -57.477391031327386, -182.04973968400139, 406.51375861024189, 370.88599866017978); @@ -80,7 +80,7 @@ public static void double4x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -104,7 +104,7 @@ public static void double4x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_not_equal_wide_wide() { double4x3 a0 = double4x3(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379, -509.32682561749908, -160.53807719076895, -203.30197606016975, -505.76325368590807, 162.17220623892365, 1.1561973100324394); @@ -128,7 +128,7 @@ public static void double4x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_not_equal_wide_scalar() { double4x3 a0 = double4x3(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959, -197.12796053529155, -169.09985860115842, -386.61117595555783, -281.02101362916687, -270.26885593601912, -403.96372313236992); @@ -152,7 +152,7 @@ public static void double4x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -176,7 +176,7 @@ public static void double4x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_less_wide_wide() { double4x3 a0 = double4x3(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774, 8.8392293494376872, -333.81671563434259, 164.67880662003472, -350.94487516532877, 3.84143662631584, 125.40972024081725); @@ -200,7 +200,7 @@ public static void double4x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_less_wide_scalar() { double4x3 a0 = double4x3(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879, -158.24074537970159, 437.34587522845061, -20.452607402788772, 225.29148517609178, 307.48418607725023, 274.01523292903562); @@ -224,7 +224,7 @@ public static void double4x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -248,7 +248,7 @@ public static void double4x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_greater_wide_wide() { double4x3 a0 = double4x3(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479, -14.897393471979228, -33.817441717636484, -24.740548383789417, 319.78262701620474, -120.15856581561201, -289.00857962714906); @@ -272,7 +272,7 @@ public static void double4x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_greater_wide_scalar() { double4x3 a0 = double4x3(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809, 286.1994608781298, 280.81334818564972, -405.78459210218148, 171.56538661362856, -241.80727326209063, 333.57817498481745); @@ -296,7 +296,7 @@ public static void double4x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -320,7 +320,7 @@ public static void double4x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_less_equal_wide_wide() { double4x3 a0 = double4x3(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475, -97.948485181642923, 437.29539009430232, 458.53029153241323, -294.06474675520542, 23.622613679441884, -34.284056441059363); @@ -344,7 +344,7 @@ public static void double4x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_less_equal_wide_scalar() { double4x3 a0 = double4x3(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136, 241.36115776810846, -463.81641242644582, -1.3577692515020203, -268.89945591096739, 398.9919504593089, -471.253072242836); @@ -368,7 +368,7 @@ public static void double4x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -392,7 +392,7 @@ public static void double4x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_greater_equal_wide_wide() { double4x3 a0 = double4x3(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193, -463.70202157632542, 387.44885772627265, 456.96878573716094, -211.01015506079892, 182.41135391146474, -53.596053863687473); @@ -416,7 +416,7 @@ public static void double4x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_greater_equal_wide_scalar() { double4x3 a0 = double4x3(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976, 16.353385694489475, -344.55997316192838, 393.27804846003562, -315.70155086913218, 441.0115565923096, -509.78156757251435); @@ -440,7 +440,7 @@ public static void double4x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -464,7 +464,7 @@ public static void double4x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_add_wide_wide() { double4x3 a0 = double4x3(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056, 424.34407659263536, 87.791079800478656, 462.41368148402012, -46.178705952213477, 401.17006296718966, -454.12414643453627); @@ -488,7 +488,7 @@ public static void double4x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_add_wide_scalar() { double4x3 a0 = double4x3(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166, 30.916145577522116, 60.37435224483454, -242.1187475855084, 82.50134495762245, 6.7993848355483806, -484.69981287638649); @@ -512,7 +512,7 @@ public static void double4x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -536,7 +536,7 @@ public static void double4x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_sub_wide_wide() { double4x3 a0 = double4x3(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053, -410.46404786150163, -401.38464398001537, 317.70681944382693, 447.0604133303558, -489.07414482956477, -230.00838218909149); @@ -560,7 +560,7 @@ public static void double4x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_sub_wide_scalar() { double4x3 a0 = double4x3(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896, 18.856238135535364, -44.96160151667965, 480.85798738936796, 16.338193185784917, -366.86545269883493, -35.523088233323335); @@ -584,7 +584,7 @@ public static void double4x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -608,7 +608,7 @@ public static void double4x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_mul_wide_wide() { double4x3 a0 = double4x3(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747, 183.98730739578014, -241.33547770294149, 45.868758938214114, 363.32610266438041, -328.11893692990714, -471.02307413100408); @@ -632,7 +632,7 @@ public static void double4x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_mul_wide_scalar() { double4x3 a0 = double4x3(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229, -455.50827500573746, -389.24327367788334, -338.29248658674419, 53.796284939067618, 243.75734459783757, 135.35469991311186); @@ -656,7 +656,7 @@ public static void double4x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -680,7 +680,7 @@ public static void double4x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_div_wide_wide() { double4x3 a0 = double4x3(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758, -136.05959779399427, -370.4710053738537, -237.69456326109105, -432.54687496300176, 200.26549181727012, 361.44157068871039); @@ -704,7 +704,7 @@ public static void double4x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_div_wide_scalar() { double4x3 a0 = double4x3(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509, -127.44869118903239, -79.7448890580539, 146.46688110496234, -499.84355687529012, 58.686315802245531, -453.20579859856787); @@ -728,7 +728,7 @@ public static void double4x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -752,7 +752,7 @@ public static void double4x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_mod_wide_wide() { double4x3 a0 = double4x3(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406, 283.318293464984, 122.71651297561664, 335.27101413126616, -503.60851668920765, 191.02251848532933, 289.74269379756538); @@ -776,7 +776,7 @@ public static void double4x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_mod_wide_scalar() { double4x3 a0 = double4x3(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221, 281.30965412841624, -226.53575311719243, 335.16613046041039, 101.70649032560482, 319.47152033423606, -285.40231646476423); @@ -800,7 +800,7 @@ public static void double4x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -824,7 +824,7 @@ public static void double4x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_plus() { double4x3 a0 = double4x3(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287, 293.74197902052754, -373.015422279488, -386.059833944803, 4.9544198536101476, -418.64524932328857, 504.47483062393724); @@ -844,7 +844,7 @@ public static void double4x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_neg() { double4x3 a0 = double4x3(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605, -54.958759571872065, -382.98981803608581, -299.09338893512887, -383.01406377508027, 407.70980305583669, 168.73550351370852); @@ -864,7 +864,7 @@ public static void double4x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_prefix_inc() { double4x3 a0 = double4x3(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198, -392.73151058365193, -300.19410218866267, 362.21273939787068, 401.614830919362, 130.90919429199266, -450.23016402229212); @@ -884,7 +884,7 @@ public static void double4x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_postfix_inc() { double4x3 a0 = double4x3(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219, -81.393423356764686, 66.719732554033271, 167.85212691493894, 147.94395048354932, -326.10758486674524, 41.033564825092185); @@ -904,7 +904,7 @@ public static void double4x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_prefix_dec() { double4x3 a0 = double4x3(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339, 187.87412580655609, -236.2252043393558, 125.10963517292851, 469.8447313112415, 45.536655685648611, 376.04684680329956); @@ -924,7 +924,7 @@ public static void double4x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x3_operator_postfix_dec() { double4x3 a0 = double4x3(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231, -63.655158787805192, 355.26110069605568, -27.889220489137415, -100.76183824462902, 156.14034969924967, 479.94519613680677); @@ -944,7 +944,7 @@ public static void double4x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void double4x3_EqualsObjectOverride() { TestUtils.IsFalse(new double4x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestDouble4x4.gen.cs b/src/Tests/Tests/Shared/TestDouble4x4.gen.cs index bd638617..8c982bb3 100644 --- a/src/Tests/Tests/Shared/TestDouble4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble4x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_zero() { TestUtils.AreEqual(0.0, double4x4.zero.c0.x); @@ -36,7 +36,7 @@ public static void double4x4_zero() TestUtils.AreEqual(0.0, double4x4.zero.c3.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_identity() { TestUtils.AreEqual(1.0, double4x4.identity.c0.x); @@ -57,7 +57,7 @@ public static void double4x4_identity() TestUtils.AreEqual(1.0, double4x4.identity.c3.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_equal_wide_wide() { double4x4 a0 = double4x4(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749, -23.890404473939157, -16.8197190839889, 163.23210890741655, -165.27101071424363, 470.87767980568003, -423.94255967808078, 109.63436918595539, 462.69031283943468, -335.38147727371262, 357.23446934168896); @@ -81,7 +81,7 @@ public static void double4x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_equal_wide_scalar() { double4x4 a0 = double4x4(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315, 159.87609656149334, -59.558379439431405, -57.477391031327386, -182.04973968400139, 406.51375861024189, 370.88599866017978, -172.03530629539642, 455.40001198993991, -11.338988547836891, 363.93823044557973); @@ -105,7 +105,7 @@ public static void double4x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -129,7 +129,7 @@ public static void double4x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_not_equal_wide_wide() { double4x4 a0 = double4x4(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379, -509.32682561749908, -160.53807719076895, -203.30197606016975, -505.76325368590807, 162.17220623892365, 1.1561973100324394, 65.662074358045174, 102.78780250567377, 172.93008120960098, 26.621009123800832); @@ -153,7 +153,7 @@ public static void double4x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_not_equal_wide_scalar() { double4x4 a0 = double4x4(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959, -197.12796053529155, -169.09985860115842, -386.61117595555783, -281.02101362916687, -270.26885593601912, -403.96372313236992, -269.80570877241234, 299.65422763473089, -71.750904831919286, -432.75573917513515); @@ -177,7 +177,7 @@ public static void double4x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -201,7 +201,7 @@ public static void double4x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_less_wide_wide() { double4x4 a0 = double4x4(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774, 8.8392293494376872, -333.81671563434259, 164.67880662003472, -350.94487516532877, 3.84143662631584, 125.40972024081725, -111.12994127680076, 70.005523475820951, 448.19828173527412, -419.98711200244122); @@ -225,7 +225,7 @@ public static void double4x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_less_wide_scalar() { double4x4 a0 = double4x4(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879, -158.24074537970159, 437.34587522845061, -20.452607402788772, 225.29148517609178, 307.48418607725023, 274.01523292903562, 373.54965584983563, 398.52368301829495, 105.0301654827922, -58.010895994496934); @@ -249,7 +249,7 @@ public static void double4x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -273,7 +273,7 @@ public static void double4x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_greater_wide_wide() { double4x4 a0 = double4x4(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479, -14.897393471979228, -33.817441717636484, -24.740548383789417, 319.78262701620474, -120.15856581561201, -289.00857962714906, 455.85146662958505, 144.70691139283917, 63.931990891663304, -285.68304099034663); @@ -297,7 +297,7 @@ public static void double4x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_greater_wide_scalar() { double4x4 a0 = double4x4(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809, 286.1994608781298, 280.81334818564972, -405.78459210218148, 171.56538661362856, -241.80727326209063, 333.57817498481745, 370.27919524269146, -413.70138116073861, -356.5923551789449, -353.03129522550444); @@ -321,7 +321,7 @@ public static void double4x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -345,7 +345,7 @@ public static void double4x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_less_equal_wide_wide() { double4x4 a0 = double4x4(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475, -97.948485181642923, 437.29539009430232, 458.53029153241323, -294.06474675520542, 23.622613679441884, -34.284056441059363, 149.736484835733, -418.8866781754823, -197.50252899783783, -88.2055118494693); @@ -369,7 +369,7 @@ public static void double4x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_less_equal_wide_scalar() { double4x4 a0 = double4x4(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136, 241.36115776810846, -463.81641242644582, -1.3577692515020203, -268.89945591096739, 398.9919504593089, -471.253072242836, -264.93778264938749, 82.258299150624453, 11.246050124636895, 424.7040156911612); @@ -393,7 +393,7 @@ public static void double4x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -417,7 +417,7 @@ public static void double4x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_greater_equal_wide_wide() { double4x4 a0 = double4x4(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193, -463.70202157632542, 387.44885772627265, 456.96878573716094, -211.01015506079892, 182.41135391146474, -53.596053863687473, -309.57021608463032, -136.02249127999994, 280.73629082401112, -96.9958942388165); @@ -441,7 +441,7 @@ public static void double4x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_greater_equal_wide_scalar() { double4x4 a0 = double4x4(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976, 16.353385694489475, -344.55997316192838, 393.27804846003562, -315.70155086913218, 441.0115565923096, -509.78156757251435, -36.994287269652943, 494.82028865014217, -164.97393830352183, -466.12009046325466); @@ -465,7 +465,7 @@ public static void double4x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -489,7 +489,7 @@ public static void double4x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_add_wide_wide() { double4x4 a0 = double4x4(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056, 424.34407659263536, 87.791079800478656, 462.41368148402012, -46.178705952213477, 401.17006296718966, -454.12414643453627, 69.195687564646732, -177.95734485329939, 299.60415544156183, 340.7048587001417); @@ -513,7 +513,7 @@ public static void double4x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_add_wide_scalar() { double4x4 a0 = double4x4(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166, 30.916145577522116, 60.37435224483454, -242.1187475855084, 82.50134495762245, 6.7993848355483806, -484.69981287638649, -188.26501068298938, -213.52673087526426, -267.78430688929944, 189.25996669999324); @@ -537,7 +537,7 @@ public static void double4x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -561,7 +561,7 @@ public static void double4x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_sub_wide_wide() { double4x4 a0 = double4x4(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053, -410.46404786150163, -401.38464398001537, 317.70681944382693, 447.0604133303558, -489.07414482956477, -230.00838218909149, 24.875419389864192, 366.61447136784648, -107.3741567634857, -219.0081404275299); @@ -585,7 +585,7 @@ public static void double4x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_sub_wide_scalar() { double4x4 a0 = double4x4(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896, 18.856238135535364, -44.96160151667965, 480.85798738936796, 16.338193185784917, -366.86545269883493, -35.523088233323335, 349.39776460705218, 439.07729336203886, 490.2222661870635, 195.02405104181923); @@ -609,7 +609,7 @@ public static void double4x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -633,7 +633,7 @@ public static void double4x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_mul_wide_wide() { double4x4 a0 = double4x4(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747, 183.98730739578014, -241.33547770294149, 45.868758938214114, 363.32610266438041, -328.11893692990714, -471.02307413100408, -262.68257415605831, -379.26274674910246, -374.09058182970182, 481.44738720424812); @@ -657,7 +657,7 @@ public static void double4x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_mul_wide_scalar() { double4x4 a0 = double4x4(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229, -455.50827500573746, -389.24327367788334, -338.29248658674419, 53.796284939067618, 243.75734459783757, 135.35469991311186, -207.35010275959507, -383.93960946795517, -31.425238862366086, 42.676120539510634); @@ -681,7 +681,7 @@ public static void double4x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -705,7 +705,7 @@ public static void double4x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_div_wide_wide() { double4x4 a0 = double4x4(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758, -136.05959779399427, -370.4710053738537, -237.69456326109105, -432.54687496300176, 200.26549181727012, 361.44157068871039, -416.22613234828509, -450.01919362042992, -273.49744594911925, -286.90817011841955); @@ -729,7 +729,7 @@ public static void double4x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_div_wide_scalar() { double4x4 a0 = double4x4(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509, -127.44869118903239, -79.7448890580539, 146.46688110496234, -499.84355687529012, 58.686315802245531, -453.20579859856787, -205.03382143985192, 481.73814247629514, 464.47907159499778, -293.46349753693841); @@ -753,7 +753,7 @@ public static void double4x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -777,7 +777,7 @@ public static void double4x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_mod_wide_wide() { double4x4 a0 = double4x4(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406, 283.318293464984, 122.71651297561664, 335.27101413126616, -503.60851668920765, 191.02251848532933, 289.74269379756538, -124.03371745163281, 259.27395761165485, -274.35845030208975, -140.03080398404541); @@ -801,7 +801,7 @@ public static void double4x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_mod_wide_scalar() { double4x4 a0 = double4x4(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221, 281.30965412841624, -226.53575311719243, 335.16613046041039, 101.70649032560482, 319.47152033423606, -285.40231646476423, -355.84685985923136, 259.37800061860025, -330.87193957477433, -284.34358109363518); @@ -825,7 +825,7 @@ public static void double4x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -849,7 +849,7 @@ public static void double4x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_plus() { double4x4 a0 = double4x4(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287, 293.74197902052754, -373.015422279488, -386.059833944803, 4.9544198536101476, -418.64524932328857, 504.47483062393724, -170.74650843941907, 439.55937572920664, -478.74939916969714, 116.40075665172219); @@ -869,7 +869,7 @@ public static void double4x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_neg() { double4x4 a0 = double4x4(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605, -54.958759571872065, -382.98981803608581, -299.09338893512887, -383.01406377508027, 407.70980305583669, 168.73550351370852, 466.44152829909763, 171.90249474900895, -280.55831564616335, -78.85761622286293); @@ -889,7 +889,7 @@ public static void double4x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_prefix_inc() { double4x4 a0 = double4x4(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198, -392.73151058365193, -300.19410218866267, 362.21273939787068, 401.614830919362, 130.90919429199266, -450.23016402229212, 243.54693114177644, 46.19202735190845, -41.497298975241051, 299.18547000511808); @@ -909,7 +909,7 @@ public static void double4x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_postfix_inc() { double4x4 a0 = double4x4(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219, -81.393423356764686, 66.719732554033271, 167.85212691493894, 147.94395048354932, -326.10758486674524, 41.033564825092185, 128.5304239394751, 73.155582223625629, -60.132380275117384, -446.22976490772783); @@ -929,7 +929,7 @@ public static void double4x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_prefix_dec() { double4x4 a0 = double4x4(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339, 187.87412580655609, -236.2252043393558, 125.10963517292851, 469.8447313112415, 45.536655685648611, 376.04684680329956, -363.07547991493504, -22.028951416736902, 248.79012667797042, 168.0950144120003); @@ -949,7 +949,7 @@ public static void double4x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4x4_operator_postfix_dec() { double4x4 a0 = double4x4(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231, -63.655158787805192, 355.26110069605568, -27.889220489137415, -100.76183824462902, 156.14034969924967, 479.94519613680677, -200.30429491787419, -445.0269393609031, 407.42034907239508, 327.67032519340069); @@ -969,7 +969,7 @@ public static void double4x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void double4x4_EqualsObjectOverride() { TestUtils.IsFalse(new double4x4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestFloat2.gen.cs b/src/Tests/Tests/Shared/TestFloat2.gen.cs index b14288cc..acacdb83 100644 --- a/src/Tests/Tests/Shared/TestFloat2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2.gen.cs @@ -15,14 +15,14 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_zero() { TestUtils.AreEqual(0.0f, float2.zero.x); TestUtils.AreEqual(0.0f, float2.zero.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_constructor() { float2 a = new float2(1, 2); @@ -30,7 +30,7 @@ public static void float2_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_scalar_constructor() { float2 a = new float2(17.0f); @@ -38,7 +38,7 @@ public static void float2_scalar_constructor() TestUtils.AreEqual(17.0f, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_static_constructor() { float2 a = float2(1, 2); @@ -46,7 +46,7 @@ public static void float2_static_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_static_scalar_constructor() { float2 a = float2(17.0f); @@ -54,7 +54,7 @@ public static void float2_static_scalar_constructor() TestUtils.AreEqual(17.0f, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_equal_wide_wide() { float2 a0 = float2(492.1576f, -495.206329f); @@ -78,7 +78,7 @@ public static void float2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_equal_wide_scalar() { float2 a0 = float2(-303.230072f, 451.5263f); @@ -102,7 +102,7 @@ public static void float2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -126,7 +126,7 @@ public static void float2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_not_equal_wide_wide() { float2 a0 = float2(430.842529f, 104.69f); @@ -150,7 +150,7 @@ public static void float2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_not_equal_wide_scalar() { float2 a0 = float2(-16.9145813f, 168.8341f); @@ -174,7 +174,7 @@ public static void float2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -198,7 +198,7 @@ public static void float2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_less_wide_wide() { float2 a0 = float2(196.84259f, 336.4098f); @@ -222,7 +222,7 @@ public static void float2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_less_wide_scalar() { float2 a0 = float2(-132.057312f, -192.465f); @@ -246,7 +246,7 @@ public static void float2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -270,7 +270,7 @@ public static void float2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_greater_wide_wide() { float2 a0 = float2(483.5014f, 310.8156f); @@ -294,7 +294,7 @@ public static void float2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_greater_wide_scalar() { float2 a0 = float2(64.31793f, -397.703461f); @@ -318,7 +318,7 @@ public static void float2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -342,7 +342,7 @@ public static void float2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_less_equal_wide_wide() { float2 a0 = float2(-438.523132f, 210.489441f); @@ -366,7 +366,7 @@ public static void float2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_less_equal_wide_scalar() { float2 a0 = float2(193.49585f, 168.915527f); @@ -390,7 +390,7 @@ public static void float2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -414,7 +414,7 @@ public static void float2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_greater_equal_wide_wide() { float2 a0 = float2(-507.9286f, 504.4975f); @@ -438,7 +438,7 @@ public static void float2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_greater_equal_wide_scalar() { float2 a0 = float2(465.152161f, -424.886078f); @@ -462,7 +462,7 @@ public static void float2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -486,7 +486,7 @@ public static void float2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_add_wide_wide() { float2 a0 = float2(506.129028f, -501.779816f); @@ -510,7 +510,7 @@ public static void float2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_add_wide_scalar() { float2 a0 = float2(-194.514191f, 338.5484f); @@ -534,7 +534,7 @@ public static void float2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -558,7 +558,7 @@ public static void float2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_sub_wide_wide() { float2 a0 = float2(160.492249f, 11.223938f); @@ -582,7 +582,7 @@ public static void float2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_sub_wide_scalar() { float2 a0 = float2(207.389587f, 248.457764f); @@ -606,7 +606,7 @@ public static void float2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -630,7 +630,7 @@ public static void float2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_mul_wide_wide() { float2 a0 = float2(-482.7138f, -407.2935f); @@ -654,7 +654,7 @@ public static void float2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_mul_wide_scalar() { float2 a0 = float2(-96.31882f, -277.142273f); @@ -678,7 +678,7 @@ public static void float2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -702,7 +702,7 @@ public static void float2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_div_wide_wide() { float2 a0 = float2(-353.131439f, -102.799866f); @@ -726,7 +726,7 @@ public static void float2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_div_wide_scalar() { float2 a0 = float2(171.3424f, 0.103393555f); @@ -750,7 +750,7 @@ public static void float2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -774,7 +774,7 @@ public static void float2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_mod_wide_wide() { float2 a0 = float2(-388.8125f, 181.681213f); @@ -798,7 +798,7 @@ public static void float2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_mod_wide_scalar() { float2 a0 = float2(-244.499634f, -211.8193f); @@ -822,7 +822,7 @@ public static void float2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -846,7 +846,7 @@ public static void float2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_plus() { float2 a0 = float2(-418.829559f, -405.79895f); @@ -866,7 +866,7 @@ public static void float2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_neg() { float2 a0 = float2(148.461731f, -467.122681f); @@ -886,7 +886,7 @@ public static void float2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_prefix_inc() { float2 a0 = float2(-139.842072f, -56.7436523f); @@ -906,7 +906,7 @@ public static void float2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_postfix_inc() { float2 a0 = float2(-396.669739f, 511.20752f); @@ -926,7 +926,7 @@ public static void float2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_prefix_dec() { float2 a0 = float2(123.128723f, 256.84375f); @@ -946,7 +946,7 @@ public static void float2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_operator_postfix_dec() { float2 a0 = float2(379.6883f, 302.692871f); @@ -966,7 +966,7 @@ public static void float2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_shuffle_result_1() { float2 a = float2(0, 1); @@ -978,7 +978,7 @@ public static void float2_shuffle_result_1() TestUtils.AreEqual((3), shuffle(a, b, ShuffleComponent.RightY)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_shuffle_result_2() { float2 a = float2(0, 1); @@ -1002,7 +1002,7 @@ public static void float2_shuffle_result_2() TestUtils.AreEqual(float2(3, 3), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.RightY)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_shuffle_result_3() { float2 a = float2(0, 1); @@ -1026,7 +1026,7 @@ public static void float2_shuffle_result_3() TestUtils.AreEqual(float3(3, 1, 1), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.LeftY)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_shuffle_result_4() { float2 a = float2(0, 1); @@ -1050,7 +1050,7 @@ public static void float2_shuffle_result_4() TestUtils.AreEqual(float4(2, 0, 0, 0), shuffle(a, b, ShuffleComponent.RightX, ShuffleComponent.LeftX, ShuffleComponent.LeftX, ShuffleComponent.LeftX)); } - [TestCase] + [TestCase /* For player builds */] public static void float2_EqualsObjectOverride() { TestUtils.IsFalse(new float2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestFloat2x2.gen.cs b/src/Tests/Tests/Shared/TestFloat2x2.gen.cs index 5b818da7..c5594164 100644 --- a/src/Tests/Tests/Shared/TestFloat2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat2x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_zero() { TestUtils.AreEqual(0.0f, float2x2.zero.c0.x); @@ -24,7 +24,7 @@ public static void float2x2_zero() TestUtils.AreEqual(0.0f, float2x2.zero.c1.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_identity() { TestUtils.AreEqual(1.0f, float2x2.identity.c0.x); @@ -33,7 +33,7 @@ public static void float2x2_identity() TestUtils.AreEqual(1.0f, float2x2.identity.c1.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_equal_wide_wide() { float2x2 a0 = float2x2(492.1576f, -495.206329f, 227.457642f, -147.374054f); @@ -57,7 +57,7 @@ public static void float2x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_equal_wide_scalar() { float2x2 a0 = float2x2(-303.230072f, 451.5263f, -253.655884f, -105.203644f); @@ -81,7 +81,7 @@ public static void float2x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -105,7 +105,7 @@ public static void float2x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_not_equal_wide_wide() { float2x2 a0 = float2x2(430.842529f, 104.69f, 225.802429f, -310.5702f); @@ -129,7 +129,7 @@ public static void float2x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_not_equal_wide_scalar() { float2x2 a0 = float2x2(-16.9145813f, 168.8341f, -462.713531f, 130.307739f); @@ -153,7 +153,7 @@ public static void float2x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -177,7 +177,7 @@ public static void float2x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_less_wide_wide() { float2x2 a0 = float2x2(196.84259f, 336.4098f, 251.963745f, 257.655945f); @@ -201,7 +201,7 @@ public static void float2x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_less_wide_scalar() { float2x2 a0 = float2x2(-132.057312f, -192.465f, -66.8345947f, -379.017517f); @@ -225,7 +225,7 @@ public static void float2x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -249,7 +249,7 @@ public static void float2x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_greater_wide_wide() { float2x2 a0 = float2x2(483.5014f, 310.8156f, 106.966187f, 295.7353f); @@ -273,7 +273,7 @@ public static void float2x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_greater_wide_scalar() { float2x2 a0 = float2x2(64.31793f, -397.703461f, 431.8769f, 85.703f); @@ -297,7 +297,7 @@ public static void float2x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -321,7 +321,7 @@ public static void float2x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_less_equal_wide_wide() { float2x2 a0 = float2x2(-438.523132f, 210.489441f, 4.87731934f, -137.297943f); @@ -345,7 +345,7 @@ public static void float2x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_less_equal_wide_scalar() { float2x2 a0 = float2x2(193.49585f, 168.915527f, -313.993073f, 81.8269653f); @@ -369,7 +369,7 @@ public static void float2x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -393,7 +393,7 @@ public static void float2x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_greater_equal_wide_wide() { float2x2 a0 = float2x2(-507.9286f, 504.4975f, -385.4345f, -262.323425f); @@ -417,7 +417,7 @@ public static void float2x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_greater_equal_wide_scalar() { float2x2 a0 = float2x2(465.152161f, -424.886078f, -209.2211f, 58.7798462f); @@ -441,7 +441,7 @@ public static void float2x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -465,7 +465,7 @@ public static void float2x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_add_wide_wide() { float2x2 a0 = float2x2(506.129028f, -501.779816f, 420.084778f, -186.032074f); @@ -489,7 +489,7 @@ public static void float2x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_add_wide_scalar() { float2x2 a0 = float2x2(-194.514191f, 338.5484f, 246.971375f, 100.510925f); @@ -513,7 +513,7 @@ public static void float2x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -537,7 +537,7 @@ public static void float2x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_sub_wide_wide() { float2x2 a0 = float2x2(160.492249f, 11.223938f, 359.200134f, -498.2283f); @@ -561,7 +561,7 @@ public static void float2x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_sub_wide_scalar() { float2x2 a0 = float2x2(207.389587f, 248.457764f, -384.8239f, -205.344757f); @@ -585,7 +585,7 @@ public static void float2x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -609,7 +609,7 @@ public static void float2x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_mul_wide_wide() { float2x2 a0 = float2x2(-482.7138f, -407.2935f, 137.700562f, 208.541138f); @@ -633,7 +633,7 @@ public static void float2x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_mul_wide_scalar() { float2x2 a0 = float2x2(-96.31882f, -277.142273f, -239.93689f, 509.531433f); @@ -657,7 +657,7 @@ public static void float2x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -681,7 +681,7 @@ public static void float2x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_div_wide_wide() { float2x2 a0 = float2x2(-353.131439f, -102.799866f, 51.3191528f, -191.871674f); @@ -705,7 +705,7 @@ public static void float2x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_div_wide_scalar() { float2x2 a0 = float2x2(171.3424f, 0.103393555f, 57.8882446f, -256.130737f); @@ -729,7 +729,7 @@ public static void float2x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -753,7 +753,7 @@ public static void float2x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_mod_wide_wide() { float2x2 a0 = float2x2(-388.8125f, 181.681213f, -167.078735f, 432.820129f); @@ -777,7 +777,7 @@ public static void float2x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_mod_wide_scalar() { float2x2 a0 = float2x2(-244.499634f, -211.8193f, -145.926788f, -304.9182f); @@ -801,7 +801,7 @@ public static void float2x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -825,7 +825,7 @@ public static void float2x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_plus() { float2x2 a0 = float2x2(-418.829559f, -405.79895f, -34.04178f, 236.999268f); @@ -845,7 +845,7 @@ public static void float2x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_neg() { float2x2 a0 = float2x2(148.461731f, -467.122681f, 132.04718f, 183.522644f); @@ -865,7 +865,7 @@ public static void float2x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_prefix_inc() { float2x2 a0 = float2x2(-139.842072f, -56.7436523f, -381.955322f, 509.796326f); @@ -885,7 +885,7 @@ public static void float2x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_postfix_inc() { float2x2 a0 = float2x2(-396.669739f, 511.20752f, 249.111267f, -128.817322f); @@ -905,7 +905,7 @@ public static void float2x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_prefix_dec() { float2x2 a0 = float2x2(123.128723f, 256.84375f, 156.330811f, 461.737427f); @@ -925,7 +925,7 @@ public static void float2x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_operator_postfix_dec() { float2x2 a0 = float2x2(379.6883f, 302.692871f, -176.07135f, -291.2527f); @@ -945,7 +945,7 @@ public static void float2x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void float2x2_EqualsObjectOverride() { TestUtils.IsFalse(new float2x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestFloat2x3.gen.cs b/src/Tests/Tests/Shared/TestFloat2x3.gen.cs index 8a93998c..e619dc0d 100644 --- a/src/Tests/Tests/Shared/TestFloat2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat2x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_zero() { TestUtils.AreEqual(0.0f, float2x3.zero.c0.x); @@ -26,7 +26,7 @@ public static void float2x3_zero() TestUtils.AreEqual(0.0f, float2x3.zero.c2.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_equal_wide_wide() { float2x3 a0 = float2x3(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f); @@ -50,7 +50,7 @@ public static void float2x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_equal_wide_scalar() { float2x3 a0 = float2x3(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f); @@ -74,7 +74,7 @@ public static void float2x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -98,7 +98,7 @@ public static void float2x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_not_equal_wide_wide() { float2x3 a0 = float2x3(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f); @@ -122,7 +122,7 @@ public static void float2x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_not_equal_wide_scalar() { float2x3 a0 = float2x3(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f); @@ -146,7 +146,7 @@ public static void float2x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -170,7 +170,7 @@ public static void float2x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_less_wide_wide() { float2x3 a0 = float2x3(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f); @@ -194,7 +194,7 @@ public static void float2x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_less_wide_scalar() { float2x3 a0 = float2x3(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f); @@ -218,7 +218,7 @@ public static void float2x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -242,7 +242,7 @@ public static void float2x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_greater_wide_wide() { float2x3 a0 = float2x3(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f); @@ -266,7 +266,7 @@ public static void float2x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_greater_wide_scalar() { float2x3 a0 = float2x3(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f); @@ -290,7 +290,7 @@ public static void float2x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -314,7 +314,7 @@ public static void float2x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_less_equal_wide_wide() { float2x3 a0 = float2x3(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f); @@ -338,7 +338,7 @@ public static void float2x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_less_equal_wide_scalar() { float2x3 a0 = float2x3(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f); @@ -362,7 +362,7 @@ public static void float2x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -386,7 +386,7 @@ public static void float2x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_greater_equal_wide_wide() { float2x3 a0 = float2x3(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f); @@ -410,7 +410,7 @@ public static void float2x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_greater_equal_wide_scalar() { float2x3 a0 = float2x3(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f); @@ -434,7 +434,7 @@ public static void float2x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -458,7 +458,7 @@ public static void float2x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_add_wide_wide() { float2x3 a0 = float2x3(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f); @@ -482,7 +482,7 @@ public static void float2x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_add_wide_scalar() { float2x3 a0 = float2x3(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f); @@ -506,7 +506,7 @@ public static void float2x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -530,7 +530,7 @@ public static void float2x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_sub_wide_wide() { float2x3 a0 = float2x3(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f); @@ -554,7 +554,7 @@ public static void float2x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_sub_wide_scalar() { float2x3 a0 = float2x3(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f); @@ -578,7 +578,7 @@ public static void float2x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -602,7 +602,7 @@ public static void float2x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_mul_wide_wide() { float2x3 a0 = float2x3(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f); @@ -626,7 +626,7 @@ public static void float2x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_mul_wide_scalar() { float2x3 a0 = float2x3(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f); @@ -650,7 +650,7 @@ public static void float2x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -674,7 +674,7 @@ public static void float2x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_div_wide_wide() { float2x3 a0 = float2x3(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f); @@ -698,7 +698,7 @@ public static void float2x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_div_wide_scalar() { float2x3 a0 = float2x3(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f); @@ -722,7 +722,7 @@ public static void float2x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -746,7 +746,7 @@ public static void float2x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_mod_wide_wide() { float2x3 a0 = float2x3(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f); @@ -770,7 +770,7 @@ public static void float2x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_mod_wide_scalar() { float2x3 a0 = float2x3(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f); @@ -794,7 +794,7 @@ public static void float2x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -818,7 +818,7 @@ public static void float2x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_plus() { float2x3 a0 = float2x3(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f); @@ -838,7 +838,7 @@ public static void float2x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_neg() { float2x3 a0 = float2x3(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f); @@ -858,7 +858,7 @@ public static void float2x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_prefix_inc() { float2x3 a0 = float2x3(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f); @@ -878,7 +878,7 @@ public static void float2x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_postfix_inc() { float2x3 a0 = float2x3(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f); @@ -898,7 +898,7 @@ public static void float2x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_prefix_dec() { float2x3 a0 = float2x3(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f); @@ -918,7 +918,7 @@ public static void float2x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x3_operator_postfix_dec() { float2x3 a0 = float2x3(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f); @@ -938,7 +938,7 @@ public static void float2x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void float2x3_EqualsObjectOverride() { TestUtils.IsFalse(new float2x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestFloat2x4.gen.cs b/src/Tests/Tests/Shared/TestFloat2x4.gen.cs index d959a802..19447921 100644 --- a/src/Tests/Tests/Shared/TestFloat2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat2x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_zero() { TestUtils.AreEqual(0.0f, float2x4.zero.c0.x); @@ -28,7 +28,7 @@ public static void float2x4_zero() TestUtils.AreEqual(0.0f, float2x4.zero.c3.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_equal_wide_wide() { float2x4 a0 = float2x4(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f, -23.8904114f, -16.8197327f); @@ -52,7 +52,7 @@ public static void float2x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_equal_wide_scalar() { float2x4 a0 = float2x4(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f, 159.8761f, -59.55838f); @@ -76,7 +76,7 @@ public static void float2x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -100,7 +100,7 @@ public static void float2x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_not_equal_wide_wide() { float2x4 a0 = float2x4(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f, -509.3268f, -160.538086f); @@ -124,7 +124,7 @@ public static void float2x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_not_equal_wide_scalar() { float2x4 a0 = float2x4(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f, -197.12796f, -169.099854f); @@ -148,7 +148,7 @@ public static void float2x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -172,7 +172,7 @@ public static void float2x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_less_wide_wide() { float2x4 a0 = float2x4(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f, 8.839233f, -333.8167f); @@ -196,7 +196,7 @@ public static void float2x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_less_wide_scalar() { float2x4 a0 = float2x4(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f, -158.240753f, 437.3459f); @@ -220,7 +220,7 @@ public static void float2x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -244,7 +244,7 @@ public static void float2x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_greater_wide_wide() { float2x4 a0 = float2x4(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f, -14.8974f, -33.8174438f); @@ -268,7 +268,7 @@ public static void float2x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_greater_wide_scalar() { float2x4 a0 = float2x4(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f, 286.199463f, 280.813354f); @@ -292,7 +292,7 @@ public static void float2x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -316,7 +316,7 @@ public static void float2x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_less_equal_wide_wide() { float2x4 a0 = float2x4(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f, -97.94849f, 437.2954f); @@ -340,7 +340,7 @@ public static void float2x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_less_equal_wide_scalar() { float2x4 a0 = float2x4(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f, 241.361145f, -463.8164f); @@ -364,7 +364,7 @@ public static void float2x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -388,7 +388,7 @@ public static void float2x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_greater_equal_wide_wide() { float2x4 a0 = float2x4(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f, -463.702026f, 387.448853f); @@ -412,7 +412,7 @@ public static void float2x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_greater_equal_wide_scalar() { float2x4 a0 = float2x4(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f, 16.3533936f, -344.559967f); @@ -436,7 +436,7 @@ public static void float2x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -460,7 +460,7 @@ public static void float2x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_add_wide_wide() { float2x4 a0 = float2x4(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f, 424.344055f, 87.79108f); @@ -484,7 +484,7 @@ public static void float2x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_add_wide_scalar() { float2x4 a0 = float2x4(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f, 30.9161377f, 60.37433f); @@ -508,7 +508,7 @@ public static void float2x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -532,7 +532,7 @@ public static void float2x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_sub_wide_wide() { float2x4 a0 = float2x4(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f, -410.46405f, -401.384644f); @@ -556,7 +556,7 @@ public static void float2x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_sub_wide_scalar() { float2x4 a0 = float2x4(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f, 18.8562622f, -44.96161f); @@ -580,7 +580,7 @@ public static void float2x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -604,7 +604,7 @@ public static void float2x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_mul_wide_wide() { float2x4 a0 = float2x4(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f, 183.9873f, -241.33548f); @@ -628,7 +628,7 @@ public static void float2x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_mul_wide_scalar() { float2x4 a0 = float2x4(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f, -455.50827f, -389.2433f); @@ -652,7 +652,7 @@ public static void float2x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -676,7 +676,7 @@ public static void float2x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_div_wide_wide() { float2x4 a0 = float2x4(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f, -136.0596f, -370.471f); @@ -700,7 +700,7 @@ public static void float2x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_div_wide_scalar() { float2x4 a0 = float2x4(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f, -127.4487f, -79.7449f); @@ -724,7 +724,7 @@ public static void float2x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -748,7 +748,7 @@ public static void float2x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_mod_wide_wide() { float2x4 a0 = float2x4(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f, 283.3183f, 122.716492f); @@ -772,7 +772,7 @@ public static void float2x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_mod_wide_scalar() { float2x4 a0 = float2x4(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f, 281.309631f, -226.535767f); @@ -796,7 +796,7 @@ public static void float2x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -820,7 +820,7 @@ public static void float2x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_plus() { float2x4 a0 = float2x4(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f, 293.742f, -373.015442f); @@ -840,7 +840,7 @@ public static void float2x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_neg() { float2x4 a0 = float2x4(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f, -54.95877f, -382.9898f); @@ -860,7 +860,7 @@ public static void float2x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_prefix_inc() { float2x4 a0 = float2x4(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f, -392.7315f, -300.1941f); @@ -880,7 +880,7 @@ public static void float2x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_postfix_inc() { float2x4 a0 = float2x4(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f, -81.39343f, 66.71973f); @@ -900,7 +900,7 @@ public static void float2x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_prefix_dec() { float2x4 a0 = float2x4(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f, 187.874146f, -236.225189f); @@ -920,7 +920,7 @@ public static void float2x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x4_operator_postfix_dec() { float2x4 a0 = float2x4(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f, -63.65515f, 355.2611f); @@ -940,7 +940,7 @@ public static void float2x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void float2x4_EqualsObjectOverride() { TestUtils.IsFalse(new float2x4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestFloat3.gen.cs b/src/Tests/Tests/Shared/TestFloat3.gen.cs index 48c5b1a4..40a4db85 100644 --- a/src/Tests/Tests/Shared/TestFloat3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_zero() { TestUtils.AreEqual(0.0f, float3.zero.x); @@ -23,7 +23,7 @@ public static void float3_zero() TestUtils.AreEqual(0.0f, float3.zero.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_constructor() { float3 a = new float3(1, 2, 3); @@ -32,7 +32,7 @@ public static void float3_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_scalar_constructor() { float3 a = new float3(17.0f); @@ -41,7 +41,7 @@ public static void float3_scalar_constructor() TestUtils.AreEqual(17.0f, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_static_constructor() { float3 a = float3(1, 2, 3); @@ -50,7 +50,7 @@ public static void float3_static_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_static_scalar_constructor() { float3 a = float3(17.0f); @@ -59,7 +59,7 @@ public static void float3_static_scalar_constructor() TestUtils.AreEqual(17.0f, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_equal_wide_wide() { float3 a0 = float3(492.1576f, -495.206329f, 227.457642f); @@ -83,7 +83,7 @@ public static void float3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_equal_wide_scalar() { float3 a0 = float3(-303.230072f, 451.5263f, -253.655884f); @@ -107,7 +107,7 @@ public static void float3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -131,7 +131,7 @@ public static void float3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_not_equal_wide_wide() { float3 a0 = float3(430.842529f, 104.69f, 225.802429f); @@ -155,7 +155,7 @@ public static void float3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_not_equal_wide_scalar() { float3 a0 = float3(-16.9145813f, 168.8341f, -462.713531f); @@ -179,7 +179,7 @@ public static void float3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -203,7 +203,7 @@ public static void float3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_less_wide_wide() { float3 a0 = float3(196.84259f, 336.4098f, 251.963745f); @@ -227,7 +227,7 @@ public static void float3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_less_wide_scalar() { float3 a0 = float3(-132.057312f, -192.465f, -66.8345947f); @@ -251,7 +251,7 @@ public static void float3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -275,7 +275,7 @@ public static void float3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_greater_wide_wide() { float3 a0 = float3(483.5014f, 310.8156f, 106.966187f); @@ -299,7 +299,7 @@ public static void float3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_greater_wide_scalar() { float3 a0 = float3(64.31793f, -397.703461f, 431.8769f); @@ -323,7 +323,7 @@ public static void float3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -347,7 +347,7 @@ public static void float3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_less_equal_wide_wide() { float3 a0 = float3(-438.523132f, 210.489441f, 4.87731934f); @@ -371,7 +371,7 @@ public static void float3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_less_equal_wide_scalar() { float3 a0 = float3(193.49585f, 168.915527f, -313.993073f); @@ -395,7 +395,7 @@ public static void float3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -419,7 +419,7 @@ public static void float3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_greater_equal_wide_wide() { float3 a0 = float3(-507.9286f, 504.4975f, -385.4345f); @@ -443,7 +443,7 @@ public static void float3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_greater_equal_wide_scalar() { float3 a0 = float3(465.152161f, -424.886078f, -209.2211f); @@ -467,7 +467,7 @@ public static void float3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -491,7 +491,7 @@ public static void float3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_add_wide_wide() { float3 a0 = float3(506.129028f, -501.779816f, 420.084778f); @@ -515,7 +515,7 @@ public static void float3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_add_wide_scalar() { float3 a0 = float3(-194.514191f, 338.5484f, 246.971375f); @@ -539,7 +539,7 @@ public static void float3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -563,7 +563,7 @@ public static void float3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_sub_wide_wide() { float3 a0 = float3(160.492249f, 11.223938f, 359.200134f); @@ -587,7 +587,7 @@ public static void float3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_sub_wide_scalar() { float3 a0 = float3(207.389587f, 248.457764f, -384.8239f); @@ -611,7 +611,7 @@ public static void float3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -635,7 +635,7 @@ public static void float3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_mul_wide_wide() { float3 a0 = float3(-482.7138f, -407.2935f, 137.700562f); @@ -659,7 +659,7 @@ public static void float3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_mul_wide_scalar() { float3 a0 = float3(-96.31882f, -277.142273f, -239.93689f); @@ -683,7 +683,7 @@ public static void float3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -707,7 +707,7 @@ public static void float3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_div_wide_wide() { float3 a0 = float3(-353.131439f, -102.799866f, 51.3191528f); @@ -731,7 +731,7 @@ public static void float3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_div_wide_scalar() { float3 a0 = float3(171.3424f, 0.103393555f, 57.8882446f); @@ -755,7 +755,7 @@ public static void float3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -779,7 +779,7 @@ public static void float3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_mod_wide_wide() { float3 a0 = float3(-388.8125f, 181.681213f, -167.078735f); @@ -803,7 +803,7 @@ public static void float3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_mod_wide_scalar() { float3 a0 = float3(-244.499634f, -211.8193f, -145.926788f); @@ -827,7 +827,7 @@ public static void float3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -851,7 +851,7 @@ public static void float3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_plus() { float3 a0 = float3(-418.829559f, -405.79895f, -34.04178f); @@ -871,7 +871,7 @@ public static void float3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_neg() { float3 a0 = float3(148.461731f, -467.122681f, 132.04718f); @@ -891,7 +891,7 @@ public static void float3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_prefix_inc() { float3 a0 = float3(-139.842072f, -56.7436523f, -381.955322f); @@ -911,7 +911,7 @@ public static void float3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_postfix_inc() { float3 a0 = float3(-396.669739f, 511.20752f, 249.111267f); @@ -931,7 +931,7 @@ public static void float3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_prefix_dec() { float3 a0 = float3(123.128723f, 256.84375f, 156.330811f); @@ -951,7 +951,7 @@ public static void float3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_operator_postfix_dec() { float3 a0 = float3(379.6883f, 302.692871f, -176.07135f); @@ -971,7 +971,7 @@ public static void float3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_shuffle_result_1() { float3 a = float3(0, 1, 2); @@ -985,7 +985,7 @@ public static void float3_shuffle_result_1() TestUtils.AreEqual((5), shuffle(a, b, ShuffleComponent.RightZ)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_shuffle_result_2() { float3 a = float3(0, 1, 2); @@ -1009,7 +1009,7 @@ public static void float3_shuffle_result_2() TestUtils.AreEqual(float2(1, 2), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftZ)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_shuffle_result_3() { float3 a = float3(0, 1, 2); @@ -1033,7 +1033,7 @@ public static void float3_shuffle_result_3() TestUtils.AreEqual(float3(4, 0, 5), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftX, ShuffleComponent.RightZ)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_shuffle_result_4() { float3 a = float3(0, 1, 2); @@ -1057,7 +1057,7 @@ public static void float3_shuffle_result_4() TestUtils.AreEqual(float4(2, 5, 0, 4), shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftX, ShuffleComponent.RightY)); } - [TestCase] + [TestCase /* For player builds */] public static void float3_EqualsObjectOverride() { TestUtils.IsFalse(new float3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestFloat3x2.gen.cs b/src/Tests/Tests/Shared/TestFloat3x2.gen.cs index a497e7be..dabe0e58 100644 --- a/src/Tests/Tests/Shared/TestFloat3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat3x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_zero() { TestUtils.AreEqual(0.0f, float3x2.zero.c0.x); @@ -26,7 +26,7 @@ public static void float3x2_zero() TestUtils.AreEqual(0.0f, float3x2.zero.c1.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_equal_wide_wide() { float3x2 a0 = float3x2(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f); @@ -50,7 +50,7 @@ public static void float3x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_equal_wide_scalar() { float3x2 a0 = float3x2(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f); @@ -74,7 +74,7 @@ public static void float3x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -98,7 +98,7 @@ public static void float3x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_not_equal_wide_wide() { float3x2 a0 = float3x2(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f); @@ -122,7 +122,7 @@ public static void float3x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_not_equal_wide_scalar() { float3x2 a0 = float3x2(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f); @@ -146,7 +146,7 @@ public static void float3x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -170,7 +170,7 @@ public static void float3x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_less_wide_wide() { float3x2 a0 = float3x2(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f); @@ -194,7 +194,7 @@ public static void float3x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_less_wide_scalar() { float3x2 a0 = float3x2(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f); @@ -218,7 +218,7 @@ public static void float3x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -242,7 +242,7 @@ public static void float3x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_greater_wide_wide() { float3x2 a0 = float3x2(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f); @@ -266,7 +266,7 @@ public static void float3x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_greater_wide_scalar() { float3x2 a0 = float3x2(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f); @@ -290,7 +290,7 @@ public static void float3x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -314,7 +314,7 @@ public static void float3x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_less_equal_wide_wide() { float3x2 a0 = float3x2(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f); @@ -338,7 +338,7 @@ public static void float3x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_less_equal_wide_scalar() { float3x2 a0 = float3x2(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f); @@ -362,7 +362,7 @@ public static void float3x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -386,7 +386,7 @@ public static void float3x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_greater_equal_wide_wide() { float3x2 a0 = float3x2(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f); @@ -410,7 +410,7 @@ public static void float3x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_greater_equal_wide_scalar() { float3x2 a0 = float3x2(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f); @@ -434,7 +434,7 @@ public static void float3x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -458,7 +458,7 @@ public static void float3x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_add_wide_wide() { float3x2 a0 = float3x2(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f); @@ -482,7 +482,7 @@ public static void float3x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_add_wide_scalar() { float3x2 a0 = float3x2(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f); @@ -506,7 +506,7 @@ public static void float3x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -530,7 +530,7 @@ public static void float3x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_sub_wide_wide() { float3x2 a0 = float3x2(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f); @@ -554,7 +554,7 @@ public static void float3x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_sub_wide_scalar() { float3x2 a0 = float3x2(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f); @@ -578,7 +578,7 @@ public static void float3x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -602,7 +602,7 @@ public static void float3x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_mul_wide_wide() { float3x2 a0 = float3x2(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f); @@ -626,7 +626,7 @@ public static void float3x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_mul_wide_scalar() { float3x2 a0 = float3x2(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f); @@ -650,7 +650,7 @@ public static void float3x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -674,7 +674,7 @@ public static void float3x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_div_wide_wide() { float3x2 a0 = float3x2(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f); @@ -698,7 +698,7 @@ public static void float3x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_div_wide_scalar() { float3x2 a0 = float3x2(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f); @@ -722,7 +722,7 @@ public static void float3x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -746,7 +746,7 @@ public static void float3x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_mod_wide_wide() { float3x2 a0 = float3x2(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f); @@ -770,7 +770,7 @@ public static void float3x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_mod_wide_scalar() { float3x2 a0 = float3x2(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f); @@ -794,7 +794,7 @@ public static void float3x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -818,7 +818,7 @@ public static void float3x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_plus() { float3x2 a0 = float3x2(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f); @@ -838,7 +838,7 @@ public static void float3x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_neg() { float3x2 a0 = float3x2(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f); @@ -858,7 +858,7 @@ public static void float3x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_prefix_inc() { float3x2 a0 = float3x2(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f); @@ -878,7 +878,7 @@ public static void float3x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_postfix_inc() { float3x2 a0 = float3x2(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f); @@ -898,7 +898,7 @@ public static void float3x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_prefix_dec() { float3x2 a0 = float3x2(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f); @@ -918,7 +918,7 @@ public static void float3x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x2_operator_postfix_dec() { float3x2 a0 = float3x2(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f); @@ -938,7 +938,7 @@ public static void float3x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void float3x2_EqualsObjectOverride() { TestUtils.IsFalse(new float3x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestFloat3x3.gen.cs b/src/Tests/Tests/Shared/TestFloat3x3.gen.cs index 37e72288..6326f34f 100644 --- a/src/Tests/Tests/Shared/TestFloat3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat3x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_zero() { TestUtils.AreEqual(0.0f, float3x3.zero.c0.x); @@ -29,7 +29,7 @@ public static void float3x3_zero() TestUtils.AreEqual(0.0f, float3x3.zero.c2.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_identity() { TestUtils.AreEqual(1.0f, float3x3.identity.c0.x); @@ -43,7 +43,7 @@ public static void float3x3_identity() TestUtils.AreEqual(1.0f, float3x3.identity.c2.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_equal_wide_wide() { float3x3 a0 = float3x3(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f, -23.8904114f, -16.8197327f, 163.232117f); @@ -67,7 +67,7 @@ public static void float3x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_equal_wide_scalar() { float3x3 a0 = float3x3(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f, 159.8761f, -59.55838f, -57.4773865f); @@ -91,7 +91,7 @@ public static void float3x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -115,7 +115,7 @@ public static void float3x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_not_equal_wide_wide() { float3x3 a0 = float3x3(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f, -509.3268f, -160.538086f, -203.301971f); @@ -139,7 +139,7 @@ public static void float3x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_not_equal_wide_scalar() { float3x3 a0 = float3x3(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f, -197.12796f, -169.099854f, -386.611176f); @@ -163,7 +163,7 @@ public static void float3x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -187,7 +187,7 @@ public static void float3x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_less_wide_wide() { float3x3 a0 = float3x3(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f, 8.839233f, -333.8167f, 164.678833f); @@ -211,7 +211,7 @@ public static void float3x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_less_wide_scalar() { float3x3 a0 = float3x3(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f, -158.240753f, 437.3459f, -20.4526062f); @@ -235,7 +235,7 @@ public static void float3x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -259,7 +259,7 @@ public static void float3x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_greater_wide_wide() { float3x3 a0 = float3x3(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f, -14.8974f, -33.8174438f, -24.74054f); @@ -283,7 +283,7 @@ public static void float3x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_greater_wide_scalar() { float3x3 a0 = float3x3(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f, 286.199463f, 280.813354f, -405.7846f); @@ -307,7 +307,7 @@ public static void float3x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -331,7 +331,7 @@ public static void float3x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_less_equal_wide_wide() { float3x3 a0 = float3x3(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f, -97.94849f, 437.2954f, 458.530273f); @@ -355,7 +355,7 @@ public static void float3x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_less_equal_wide_scalar() { float3x3 a0 = float3x3(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f, 241.361145f, -463.8164f, -1.35775757f); @@ -379,7 +379,7 @@ public static void float3x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -403,7 +403,7 @@ public static void float3x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_greater_equal_wide_wide() { float3x3 a0 = float3x3(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f, -463.702026f, 387.448853f, 456.9688f); @@ -427,7 +427,7 @@ public static void float3x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_greater_equal_wide_scalar() { float3x3 a0 = float3x3(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f, 16.3533936f, -344.559967f, 393.278076f); @@ -451,7 +451,7 @@ public static void float3x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -475,7 +475,7 @@ public static void float3x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_add_wide_wide() { float3x3 a0 = float3x3(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f, 424.344055f, 87.79108f, 462.4137f); @@ -499,7 +499,7 @@ public static void float3x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_add_wide_scalar() { float3x3 a0 = float3x3(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f, 30.9161377f, 60.37433f, -242.118744f); @@ -523,7 +523,7 @@ public static void float3x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -547,7 +547,7 @@ public static void float3x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_sub_wide_wide() { float3x3 a0 = float3x3(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f, -410.46405f, -401.384644f, 317.706848f); @@ -571,7 +571,7 @@ public static void float3x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_sub_wide_scalar() { float3x3 a0 = float3x3(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f, 18.8562622f, -44.96161f, 480.857971f); @@ -595,7 +595,7 @@ public static void float3x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -619,7 +619,7 @@ public static void float3x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_mul_wide_wide() { float3x3 a0 = float3x3(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f, 183.9873f, -241.33548f, 45.8687744f); @@ -643,7 +643,7 @@ public static void float3x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_mul_wide_scalar() { float3x3 a0 = float3x3(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f, -455.50827f, -389.2433f, -338.29248f); @@ -667,7 +667,7 @@ public static void float3x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -691,7 +691,7 @@ public static void float3x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_div_wide_wide() { float3x3 a0 = float3x3(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f, -136.0596f, -370.471f, -237.69455f); @@ -715,7 +715,7 @@ public static void float3x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_div_wide_scalar() { float3x3 a0 = float3x3(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f, -127.4487f, -79.7449f, 146.466858f); @@ -739,7 +739,7 @@ public static void float3x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -763,7 +763,7 @@ public static void float3x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_mod_wide_wide() { float3x3 a0 = float3x3(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f, 283.3183f, 122.716492f, 335.271f); @@ -787,7 +787,7 @@ public static void float3x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_mod_wide_scalar() { float3x3 a0 = float3x3(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f, 281.309631f, -226.535767f, 335.166138f); @@ -811,7 +811,7 @@ public static void float3x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -835,7 +835,7 @@ public static void float3x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_plus() { float3x3 a0 = float3x3(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f, 293.742f, -373.015442f, -386.059845f); @@ -855,7 +855,7 @@ public static void float3x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_neg() { float3x3 a0 = float3x3(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f, -54.95877f, -382.9898f, -299.093384f); @@ -875,7 +875,7 @@ public static void float3x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_prefix_inc() { float3x3 a0 = float3x3(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f, -392.7315f, -300.1941f, 362.212769f); @@ -895,7 +895,7 @@ public static void float3x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_postfix_inc() { float3x3 a0 = float3x3(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f, -81.39343f, 66.71973f, 167.852112f); @@ -915,7 +915,7 @@ public static void float3x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_prefix_dec() { float3x3 a0 = float3x3(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f, 187.874146f, -236.225189f, 125.109619f); @@ -935,7 +935,7 @@ public static void float3x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_operator_postfix_dec() { float3x3 a0 = float3x3(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f, -63.65515f, 355.2611f, -27.8892212f); @@ -955,7 +955,7 @@ public static void float3x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void float3x3_EqualsObjectOverride() { TestUtils.IsFalse(new float3x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestFloat3x4.gen.cs b/src/Tests/Tests/Shared/TestFloat3x4.gen.cs index 57e75392..78522532 100644 --- a/src/Tests/Tests/Shared/TestFloat3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat3x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_zero() { TestUtils.AreEqual(0.0f, float3x4.zero.c0.x); @@ -32,7 +32,7 @@ public static void float3x4_zero() TestUtils.AreEqual(0.0f, float3x4.zero.c3.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_equal_wide_wide() { float3x4 a0 = float3x4(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f, -23.8904114f, -16.8197327f, 163.232117f, -165.271f, 470.8777f, -423.942566f); @@ -56,7 +56,7 @@ public static void float3x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_equal_wide_scalar() { float3x4 a0 = float3x4(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f, 159.8761f, -59.55838f, -57.4773865f, -182.049744f, 406.513733f, 370.886f); @@ -80,7 +80,7 @@ public static void float3x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -104,7 +104,7 @@ public static void float3x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_not_equal_wide_wide() { float3x4 a0 = float3x4(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f, -509.3268f, -160.538086f, -203.301971f, -505.763245f, 162.17218f, 1.156189f); @@ -128,7 +128,7 @@ public static void float3x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_not_equal_wide_scalar() { float3x4 a0 = float3x4(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f, -197.12796f, -169.099854f, -386.611176f, -281.021f, -270.26886f, -403.9637f); @@ -152,7 +152,7 @@ public static void float3x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -176,7 +176,7 @@ public static void float3x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_less_wide_wide() { float3x4 a0 = float3x4(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f, 8.839233f, -333.8167f, 164.678833f, -350.9449f, 3.84143066f, 125.409729f); @@ -200,7 +200,7 @@ public static void float3x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_less_wide_scalar() { float3x4 a0 = float3x4(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f, -158.240753f, 437.3459f, -20.4526062f, 225.2915f, 307.4842f, 274.015259f); @@ -224,7 +224,7 @@ public static void float3x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -248,7 +248,7 @@ public static void float3x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_greater_wide_wide() { float3x4 a0 = float3x4(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f, -14.8974f, -33.8174438f, -24.74054f, 319.782654f, -120.158569f, -289.008575f); @@ -272,7 +272,7 @@ public static void float3x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_greater_wide_scalar() { float3x4 a0 = float3x4(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f, 286.199463f, 280.813354f, -405.7846f, 171.565369f, -241.807281f, 333.5782f); @@ -296,7 +296,7 @@ public static void float3x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -320,7 +320,7 @@ public static void float3x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_less_equal_wide_wide() { float3x4 a0 = float3x4(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f, -97.94849f, 437.2954f, 458.530273f, -294.064758f, 23.62262f, -34.2840576f); @@ -344,7 +344,7 @@ public static void float3x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_less_equal_wide_scalar() { float3x4 a0 = float3x4(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f, 241.361145f, -463.8164f, -1.35775757f, -268.899475f, 398.991943f, -471.253082f); @@ -368,7 +368,7 @@ public static void float3x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -392,7 +392,7 @@ public static void float3x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_greater_equal_wide_wide() { float3x4 a0 = float3x4(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f, -463.702026f, 387.448853f, 456.9688f, -211.010162f, 182.411377f, -53.59604f); @@ -416,7 +416,7 @@ public static void float3x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_greater_equal_wide_scalar() { float3x4 a0 = float3x4(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f, 16.3533936f, -344.559967f, 393.278076f, -315.701538f, 441.011536f, -509.781555f); @@ -440,7 +440,7 @@ public static void float3x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -464,7 +464,7 @@ public static void float3x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_add_wide_wide() { float3x4 a0 = float3x4(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f, 424.344055f, 87.79108f, 462.4137f, -46.17871f, 401.170044f, -454.124146f); @@ -488,7 +488,7 @@ public static void float3x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_add_wide_scalar() { float3x4 a0 = float3x4(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f, 30.9161377f, 60.37433f, -242.118744f, 82.50134f, 6.79937744f, -484.6998f); @@ -512,7 +512,7 @@ public static void float3x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -536,7 +536,7 @@ public static void float3x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_sub_wide_wide() { float3x4 a0 = float3x4(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f, -410.46405f, -401.384644f, 317.706848f, 447.060425f, -489.074158f, -230.008392f); @@ -560,7 +560,7 @@ public static void float3x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_sub_wide_scalar() { float3x4 a0 = float3x4(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f, 18.8562622f, -44.96161f, 480.857971f, 16.3381958f, -366.865448f, -35.5231f); @@ -584,7 +584,7 @@ public static void float3x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -608,7 +608,7 @@ public static void float3x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_mul_wide_wide() { float3x4 a0 = float3x4(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f, 183.9873f, -241.33548f, 45.8687744f, 363.3261f, -328.118958f, -471.023071f); @@ -632,7 +632,7 @@ public static void float3x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_mul_wide_scalar() { float3x4 a0 = float3x4(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f, -455.50827f, -389.2433f, -338.29248f, 53.7962646f, 243.757324f, 135.354675f); @@ -656,7 +656,7 @@ public static void float3x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -680,7 +680,7 @@ public static void float3x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_div_wide_wide() { float3x4 a0 = float3x4(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f, -136.0596f, -370.471f, -237.69455f, -432.546875f, 200.2655f, 361.4416f); @@ -704,7 +704,7 @@ public static void float3x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_div_wide_scalar() { float3x4 a0 = float3x4(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f, -127.4487f, -79.7449f, 146.466858f, -499.843567f, 58.68634f, -453.2058f); @@ -728,7 +728,7 @@ public static void float3x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -752,7 +752,7 @@ public static void float3x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_mod_wide_wide() { float3x4 a0 = float3x4(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f, 283.3183f, 122.716492f, 335.271f, -503.608521f, 191.022522f, 289.742676f); @@ -776,7 +776,7 @@ public static void float3x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_mod_wide_scalar() { float3x4 a0 = float3x4(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f, 281.309631f, -226.535767f, 335.166138f, 101.706482f, 319.4715f, -285.4023f); @@ -800,7 +800,7 @@ public static void float3x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -824,7 +824,7 @@ public static void float3x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_plus() { float3x4 a0 = float3x4(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f, 293.742f, -373.015442f, -386.059845f, 4.95440674f, -418.645264f, 504.474854f); @@ -844,7 +844,7 @@ public static void float3x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_neg() { float3x4 a0 = float3x4(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f, -54.95877f, -382.9898f, -299.093384f, -383.014069f, 407.709778f, 168.735474f); @@ -864,7 +864,7 @@ public static void float3x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_prefix_inc() { float3x4 a0 = float3x4(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f, -392.7315f, -300.1941f, 362.212769f, 401.6148f, 130.90918f, -450.230164f); @@ -884,7 +884,7 @@ public static void float3x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_postfix_inc() { float3x4 a0 = float3x4(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f, -81.39343f, 66.71973f, 167.852112f, 147.94397f, -326.1076f, 41.03357f); @@ -904,7 +904,7 @@ public static void float3x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_prefix_dec() { float3x4 a0 = float3x4(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f, 187.874146f, -236.225189f, 125.109619f, 469.844727f, 45.5366821f, 376.046875f); @@ -924,7 +924,7 @@ public static void float3x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_operator_postfix_dec() { float3x4 a0 = float3x4(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f, -63.65515f, 355.2611f, -27.8892212f, -100.761841f, 156.14032f, 479.9452f); @@ -944,7 +944,7 @@ public static void float3x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void float3x4_EqualsObjectOverride() { TestUtils.IsFalse(new float3x4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestFloat4.gen.cs b/src/Tests/Tests/Shared/TestFloat4.gen.cs index eec3bd88..9ac6757c 100644 --- a/src/Tests/Tests/Shared/TestFloat4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_zero() { TestUtils.AreEqual(0.0f, float4.zero.x); @@ -24,7 +24,7 @@ public static void float4_zero() TestUtils.AreEqual(0.0f, float4.zero.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_constructor() { float4 a = new float4(1, 2, 3, 4); @@ -34,7 +34,7 @@ public static void float4_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_scalar_constructor() { float4 a = new float4(17.0f); @@ -44,7 +44,7 @@ public static void float4_scalar_constructor() TestUtils.AreEqual(17.0f, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_static_constructor() { float4 a = float4(1, 2, 3, 4); @@ -54,7 +54,7 @@ public static void float4_static_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_static_scalar_constructor() { float4 a = float4(17.0f); @@ -64,7 +64,7 @@ public static void float4_static_scalar_constructor() TestUtils.AreEqual(17.0f, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_equal_wide_wide() { float4 a0 = float4(492.1576f, -495.206329f, 227.457642f, -147.374054f); @@ -88,7 +88,7 @@ public static void float4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_equal_wide_scalar() { float4 a0 = float4(-303.230072f, 451.5263f, -253.655884f, -105.203644f); @@ -112,7 +112,7 @@ public static void float4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -136,7 +136,7 @@ public static void float4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_not_equal_wide_wide() { float4 a0 = float4(430.842529f, 104.69f, 225.802429f, -310.5702f); @@ -160,7 +160,7 @@ public static void float4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_not_equal_wide_scalar() { float4 a0 = float4(-16.9145813f, 168.8341f, -462.713531f, 130.307739f); @@ -184,7 +184,7 @@ public static void float4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -208,7 +208,7 @@ public static void float4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_less_wide_wide() { float4 a0 = float4(196.84259f, 336.4098f, 251.963745f, 257.655945f); @@ -232,7 +232,7 @@ public static void float4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_less_wide_scalar() { float4 a0 = float4(-132.057312f, -192.465f, -66.8345947f, -379.017517f); @@ -256,7 +256,7 @@ public static void float4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -280,7 +280,7 @@ public static void float4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_greater_wide_wide() { float4 a0 = float4(483.5014f, 310.8156f, 106.966187f, 295.7353f); @@ -304,7 +304,7 @@ public static void float4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_greater_wide_scalar() { float4 a0 = float4(64.31793f, -397.703461f, 431.8769f, 85.703f); @@ -328,7 +328,7 @@ public static void float4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -352,7 +352,7 @@ public static void float4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_less_equal_wide_wide() { float4 a0 = float4(-438.523132f, 210.489441f, 4.87731934f, -137.297943f); @@ -376,7 +376,7 @@ public static void float4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_less_equal_wide_scalar() { float4 a0 = float4(193.49585f, 168.915527f, -313.993073f, 81.8269653f); @@ -400,7 +400,7 @@ public static void float4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -424,7 +424,7 @@ public static void float4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_greater_equal_wide_wide() { float4 a0 = float4(-507.9286f, 504.4975f, -385.4345f, -262.323425f); @@ -448,7 +448,7 @@ public static void float4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_greater_equal_wide_scalar() { float4 a0 = float4(465.152161f, -424.886078f, -209.2211f, 58.7798462f); @@ -472,7 +472,7 @@ public static void float4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -496,7 +496,7 @@ public static void float4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_add_wide_wide() { float4 a0 = float4(506.129028f, -501.779816f, 420.084778f, -186.032074f); @@ -520,7 +520,7 @@ public static void float4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_add_wide_scalar() { float4 a0 = float4(-194.514191f, 338.5484f, 246.971375f, 100.510925f); @@ -544,7 +544,7 @@ public static void float4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -568,7 +568,7 @@ public static void float4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_sub_wide_wide() { float4 a0 = float4(160.492249f, 11.223938f, 359.200134f, -498.2283f); @@ -592,7 +592,7 @@ public static void float4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_sub_wide_scalar() { float4 a0 = float4(207.389587f, 248.457764f, -384.8239f, -205.344757f); @@ -616,7 +616,7 @@ public static void float4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -640,7 +640,7 @@ public static void float4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_mul_wide_wide() { float4 a0 = float4(-482.7138f, -407.2935f, 137.700562f, 208.541138f); @@ -664,7 +664,7 @@ public static void float4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_mul_wide_scalar() { float4 a0 = float4(-96.31882f, -277.142273f, -239.93689f, 509.531433f); @@ -688,7 +688,7 @@ public static void float4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -712,7 +712,7 @@ public static void float4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_div_wide_wide() { float4 a0 = float4(-353.131439f, -102.799866f, 51.3191528f, -191.871674f); @@ -736,7 +736,7 @@ public static void float4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_div_wide_scalar() { float4 a0 = float4(171.3424f, 0.103393555f, 57.8882446f, -256.130737f); @@ -760,7 +760,7 @@ public static void float4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -784,7 +784,7 @@ public static void float4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_mod_wide_wide() { float4 a0 = float4(-388.8125f, 181.681213f, -167.078735f, 432.820129f); @@ -808,7 +808,7 @@ public static void float4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_mod_wide_scalar() { float4 a0 = float4(-244.499634f, -211.8193f, -145.926788f, -304.9182f); @@ -832,7 +832,7 @@ public static void float4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -856,7 +856,7 @@ public static void float4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_plus() { float4 a0 = float4(-418.829559f, -405.79895f, -34.04178f, 236.999268f); @@ -876,7 +876,7 @@ public static void float4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_neg() { float4 a0 = float4(148.461731f, -467.122681f, 132.04718f, 183.522644f); @@ -896,7 +896,7 @@ public static void float4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_prefix_inc() { float4 a0 = float4(-139.842072f, -56.7436523f, -381.955322f, 509.796326f); @@ -916,7 +916,7 @@ public static void float4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_postfix_inc() { float4 a0 = float4(-396.669739f, 511.20752f, 249.111267f, -128.817322f); @@ -936,7 +936,7 @@ public static void float4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_prefix_dec() { float4 a0 = float4(123.128723f, 256.84375f, 156.330811f, 461.737427f); @@ -956,7 +956,7 @@ public static void float4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_operator_postfix_dec() { float4 a0 = float4(379.6883f, 302.692871f, -176.07135f, -291.2527f); @@ -976,7 +976,7 @@ public static void float4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_shuffle_result_1() { float4 a = float4(0, 1, 2, 3); @@ -992,7 +992,7 @@ public static void float4_shuffle_result_1() TestUtils.AreEqual((7), shuffle(a, b, ShuffleComponent.RightW)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_shuffle_result_2() { float4 a = float4(0, 1, 2, 3); @@ -1016,7 +1016,7 @@ public static void float4_shuffle_result_2() TestUtils.AreEqual(float2(1, 3), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftW)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_shuffle_result_3() { float4 a = float4(0, 1, 2, 3); @@ -1040,7 +1040,7 @@ public static void float4_shuffle_result_3() TestUtils.AreEqual(float3(5, 1, 7), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.RightW)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_shuffle_result_4() { float4 a = float4(0, 1, 2, 3); @@ -1064,7 +1064,7 @@ public static void float4_shuffle_result_4() TestUtils.AreEqual(float4(3, 7, 1, 5), shuffle(a, b, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.LeftY, ShuffleComponent.RightY)); } - [TestCase] + [TestCase /* For player builds */] public static void float4_EqualsObjectOverride() { TestUtils.IsFalse(new float4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestFloat4x2.gen.cs b/src/Tests/Tests/Shared/TestFloat4x2.gen.cs index ef36f471..492a62f9 100644 --- a/src/Tests/Tests/Shared/TestFloat4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat4x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_zero() { TestUtils.AreEqual(0.0f, float4x2.zero.c0.x); @@ -28,7 +28,7 @@ public static void float4x2_zero() TestUtils.AreEqual(0.0f, float4x2.zero.c1.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_equal_wide_wide() { float4x2 a0 = float4x2(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f, -23.8904114f, -16.8197327f); @@ -52,7 +52,7 @@ public static void float4x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_equal_wide_scalar() { float4x2 a0 = float4x2(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f, 159.8761f, -59.55838f); @@ -76,7 +76,7 @@ public static void float4x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -100,7 +100,7 @@ public static void float4x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_not_equal_wide_wide() { float4x2 a0 = float4x2(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f, -509.3268f, -160.538086f); @@ -124,7 +124,7 @@ public static void float4x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_not_equal_wide_scalar() { float4x2 a0 = float4x2(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f, -197.12796f, -169.099854f); @@ -148,7 +148,7 @@ public static void float4x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -172,7 +172,7 @@ public static void float4x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_less_wide_wide() { float4x2 a0 = float4x2(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f, 8.839233f, -333.8167f); @@ -196,7 +196,7 @@ public static void float4x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_less_wide_scalar() { float4x2 a0 = float4x2(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f, -158.240753f, 437.3459f); @@ -220,7 +220,7 @@ public static void float4x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -244,7 +244,7 @@ public static void float4x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_greater_wide_wide() { float4x2 a0 = float4x2(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f, -14.8974f, -33.8174438f); @@ -268,7 +268,7 @@ public static void float4x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_greater_wide_scalar() { float4x2 a0 = float4x2(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f, 286.199463f, 280.813354f); @@ -292,7 +292,7 @@ public static void float4x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -316,7 +316,7 @@ public static void float4x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_less_equal_wide_wide() { float4x2 a0 = float4x2(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f, -97.94849f, 437.2954f); @@ -340,7 +340,7 @@ public static void float4x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_less_equal_wide_scalar() { float4x2 a0 = float4x2(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f, 241.361145f, -463.8164f); @@ -364,7 +364,7 @@ public static void float4x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -388,7 +388,7 @@ public static void float4x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_greater_equal_wide_wide() { float4x2 a0 = float4x2(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f, -463.702026f, 387.448853f); @@ -412,7 +412,7 @@ public static void float4x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_greater_equal_wide_scalar() { float4x2 a0 = float4x2(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f, 16.3533936f, -344.559967f); @@ -436,7 +436,7 @@ public static void float4x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -460,7 +460,7 @@ public static void float4x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_add_wide_wide() { float4x2 a0 = float4x2(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f, 424.344055f, 87.79108f); @@ -484,7 +484,7 @@ public static void float4x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_add_wide_scalar() { float4x2 a0 = float4x2(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f, 30.9161377f, 60.37433f); @@ -508,7 +508,7 @@ public static void float4x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -532,7 +532,7 @@ public static void float4x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_sub_wide_wide() { float4x2 a0 = float4x2(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f, -410.46405f, -401.384644f); @@ -556,7 +556,7 @@ public static void float4x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_sub_wide_scalar() { float4x2 a0 = float4x2(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f, 18.8562622f, -44.96161f); @@ -580,7 +580,7 @@ public static void float4x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -604,7 +604,7 @@ public static void float4x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_mul_wide_wide() { float4x2 a0 = float4x2(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f, 183.9873f, -241.33548f); @@ -628,7 +628,7 @@ public static void float4x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_mul_wide_scalar() { float4x2 a0 = float4x2(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f, -455.50827f, -389.2433f); @@ -652,7 +652,7 @@ public static void float4x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -676,7 +676,7 @@ public static void float4x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_div_wide_wide() { float4x2 a0 = float4x2(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f, -136.0596f, -370.471f); @@ -700,7 +700,7 @@ public static void float4x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_div_wide_scalar() { float4x2 a0 = float4x2(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f, -127.4487f, -79.7449f); @@ -724,7 +724,7 @@ public static void float4x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -748,7 +748,7 @@ public static void float4x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_mod_wide_wide() { float4x2 a0 = float4x2(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f, 283.3183f, 122.716492f); @@ -772,7 +772,7 @@ public static void float4x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_mod_wide_scalar() { float4x2 a0 = float4x2(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f, 281.309631f, -226.535767f); @@ -796,7 +796,7 @@ public static void float4x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -820,7 +820,7 @@ public static void float4x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_plus() { float4x2 a0 = float4x2(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f, 293.742f, -373.015442f); @@ -840,7 +840,7 @@ public static void float4x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_neg() { float4x2 a0 = float4x2(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f, -54.95877f, -382.9898f); @@ -860,7 +860,7 @@ public static void float4x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_prefix_inc() { float4x2 a0 = float4x2(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f, -392.7315f, -300.1941f); @@ -880,7 +880,7 @@ public static void float4x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_postfix_inc() { float4x2 a0 = float4x2(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f, -81.39343f, 66.71973f); @@ -900,7 +900,7 @@ public static void float4x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_prefix_dec() { float4x2 a0 = float4x2(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f, 187.874146f, -236.225189f); @@ -920,7 +920,7 @@ public static void float4x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x2_operator_postfix_dec() { float4x2 a0 = float4x2(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f, -63.65515f, 355.2611f); @@ -940,7 +940,7 @@ public static void float4x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void float4x2_EqualsObjectOverride() { TestUtils.IsFalse(new float4x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestFloat4x3.gen.cs b/src/Tests/Tests/Shared/TestFloat4x3.gen.cs index f14618d1..06fb08a0 100644 --- a/src/Tests/Tests/Shared/TestFloat4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat4x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_zero() { TestUtils.AreEqual(0.0f, float4x3.zero.c0.x); @@ -32,7 +32,7 @@ public static void float4x3_zero() TestUtils.AreEqual(0.0f, float4x3.zero.c2.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_equal_wide_wide() { float4x3 a0 = float4x3(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f, -23.8904114f, -16.8197327f, 163.232117f, -165.271f, 470.8777f, -423.942566f); @@ -56,7 +56,7 @@ public static void float4x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_equal_wide_scalar() { float4x3 a0 = float4x3(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f, 159.8761f, -59.55838f, -57.4773865f, -182.049744f, 406.513733f, 370.886f); @@ -80,7 +80,7 @@ public static void float4x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -104,7 +104,7 @@ public static void float4x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_not_equal_wide_wide() { float4x3 a0 = float4x3(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f, -509.3268f, -160.538086f, -203.301971f, -505.763245f, 162.17218f, 1.156189f); @@ -128,7 +128,7 @@ public static void float4x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_not_equal_wide_scalar() { float4x3 a0 = float4x3(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f, -197.12796f, -169.099854f, -386.611176f, -281.021f, -270.26886f, -403.9637f); @@ -152,7 +152,7 @@ public static void float4x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -176,7 +176,7 @@ public static void float4x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_less_wide_wide() { float4x3 a0 = float4x3(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f, 8.839233f, -333.8167f, 164.678833f, -350.9449f, 3.84143066f, 125.409729f); @@ -200,7 +200,7 @@ public static void float4x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_less_wide_scalar() { float4x3 a0 = float4x3(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f, -158.240753f, 437.3459f, -20.4526062f, 225.2915f, 307.4842f, 274.015259f); @@ -224,7 +224,7 @@ public static void float4x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -248,7 +248,7 @@ public static void float4x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_greater_wide_wide() { float4x3 a0 = float4x3(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f, -14.8974f, -33.8174438f, -24.74054f, 319.782654f, -120.158569f, -289.008575f); @@ -272,7 +272,7 @@ public static void float4x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_greater_wide_scalar() { float4x3 a0 = float4x3(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f, 286.199463f, 280.813354f, -405.7846f, 171.565369f, -241.807281f, 333.5782f); @@ -296,7 +296,7 @@ public static void float4x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -320,7 +320,7 @@ public static void float4x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_less_equal_wide_wide() { float4x3 a0 = float4x3(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f, -97.94849f, 437.2954f, 458.530273f, -294.064758f, 23.62262f, -34.2840576f); @@ -344,7 +344,7 @@ public static void float4x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_less_equal_wide_scalar() { float4x3 a0 = float4x3(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f, 241.361145f, -463.8164f, -1.35775757f, -268.899475f, 398.991943f, -471.253082f); @@ -368,7 +368,7 @@ public static void float4x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -392,7 +392,7 @@ public static void float4x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_greater_equal_wide_wide() { float4x3 a0 = float4x3(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f, -463.702026f, 387.448853f, 456.9688f, -211.010162f, 182.411377f, -53.59604f); @@ -416,7 +416,7 @@ public static void float4x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_greater_equal_wide_scalar() { float4x3 a0 = float4x3(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f, 16.3533936f, -344.559967f, 393.278076f, -315.701538f, 441.011536f, -509.781555f); @@ -440,7 +440,7 @@ public static void float4x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -464,7 +464,7 @@ public static void float4x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_add_wide_wide() { float4x3 a0 = float4x3(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f, 424.344055f, 87.79108f, 462.4137f, -46.17871f, 401.170044f, -454.124146f); @@ -488,7 +488,7 @@ public static void float4x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_add_wide_scalar() { float4x3 a0 = float4x3(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f, 30.9161377f, 60.37433f, -242.118744f, 82.50134f, 6.79937744f, -484.6998f); @@ -512,7 +512,7 @@ public static void float4x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -536,7 +536,7 @@ public static void float4x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_sub_wide_wide() { float4x3 a0 = float4x3(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f, -410.46405f, -401.384644f, 317.706848f, 447.060425f, -489.074158f, -230.008392f); @@ -560,7 +560,7 @@ public static void float4x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_sub_wide_scalar() { float4x3 a0 = float4x3(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f, 18.8562622f, -44.96161f, 480.857971f, 16.3381958f, -366.865448f, -35.5231f); @@ -584,7 +584,7 @@ public static void float4x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -608,7 +608,7 @@ public static void float4x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_mul_wide_wide() { float4x3 a0 = float4x3(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f, 183.9873f, -241.33548f, 45.8687744f, 363.3261f, -328.118958f, -471.023071f); @@ -632,7 +632,7 @@ public static void float4x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_mul_wide_scalar() { float4x3 a0 = float4x3(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f, -455.50827f, -389.2433f, -338.29248f, 53.7962646f, 243.757324f, 135.354675f); @@ -656,7 +656,7 @@ public static void float4x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -680,7 +680,7 @@ public static void float4x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_div_wide_wide() { float4x3 a0 = float4x3(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f, -136.0596f, -370.471f, -237.69455f, -432.546875f, 200.2655f, 361.4416f); @@ -704,7 +704,7 @@ public static void float4x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_div_wide_scalar() { float4x3 a0 = float4x3(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f, -127.4487f, -79.7449f, 146.466858f, -499.843567f, 58.68634f, -453.2058f); @@ -728,7 +728,7 @@ public static void float4x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -752,7 +752,7 @@ public static void float4x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_mod_wide_wide() { float4x3 a0 = float4x3(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f, 283.3183f, 122.716492f, 335.271f, -503.608521f, 191.022522f, 289.742676f); @@ -776,7 +776,7 @@ public static void float4x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_mod_wide_scalar() { float4x3 a0 = float4x3(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f, 281.309631f, -226.535767f, 335.166138f, 101.706482f, 319.4715f, -285.4023f); @@ -800,7 +800,7 @@ public static void float4x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -824,7 +824,7 @@ public static void float4x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_plus() { float4x3 a0 = float4x3(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f, 293.742f, -373.015442f, -386.059845f, 4.95440674f, -418.645264f, 504.474854f); @@ -844,7 +844,7 @@ public static void float4x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_neg() { float4x3 a0 = float4x3(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f, -54.95877f, -382.9898f, -299.093384f, -383.014069f, 407.709778f, 168.735474f); @@ -864,7 +864,7 @@ public static void float4x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_prefix_inc() { float4x3 a0 = float4x3(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f, -392.7315f, -300.1941f, 362.212769f, 401.6148f, 130.90918f, -450.230164f); @@ -884,7 +884,7 @@ public static void float4x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_postfix_inc() { float4x3 a0 = float4x3(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f, -81.39343f, 66.71973f, 167.852112f, 147.94397f, -326.1076f, 41.03357f); @@ -904,7 +904,7 @@ public static void float4x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_prefix_dec() { float4x3 a0 = float4x3(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f, 187.874146f, -236.225189f, 125.109619f, 469.844727f, 45.5366821f, 376.046875f); @@ -924,7 +924,7 @@ public static void float4x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x3_operator_postfix_dec() { float4x3 a0 = float4x3(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f, -63.65515f, 355.2611f, -27.8892212f, -100.761841f, 156.14032f, 479.9452f); @@ -944,7 +944,7 @@ public static void float4x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void float4x3_EqualsObjectOverride() { TestUtils.IsFalse(new float4x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestFloat4x4.gen.cs b/src/Tests/Tests/Shared/TestFloat4x4.gen.cs index cc444939..d7c82665 100644 --- a/src/Tests/Tests/Shared/TestFloat4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat4x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_zero() { TestUtils.AreEqual(0.0f, float4x4.zero.c0.x); @@ -36,7 +36,7 @@ public static void float4x4_zero() TestUtils.AreEqual(0.0f, float4x4.zero.c3.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_identity() { TestUtils.AreEqual(1.0f, float4x4.identity.c0.x); @@ -57,7 +57,7 @@ public static void float4x4_identity() TestUtils.AreEqual(1.0f, float4x4.identity.c3.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_equal_wide_wide() { float4x4 a0 = float4x4(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f, -23.8904114f, -16.8197327f, 163.232117f, -165.271f, 470.8777f, -423.942566f, 109.6344f, 462.6903f, -335.38147f, 357.2345f); @@ -81,7 +81,7 @@ public static void float4x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_equal_wide_scalar() { float4x4 a0 = float4x4(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f, 159.8761f, -59.55838f, -57.4773865f, -182.049744f, 406.513733f, 370.886f, -172.035309f, 455.400024f, -11.3389893f, 363.938232f); @@ -105,7 +105,7 @@ public static void float4x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -129,7 +129,7 @@ public static void float4x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_not_equal_wide_wide() { float4x4 a0 = float4x4(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f, -509.3268f, -160.538086f, -203.301971f, -505.763245f, 162.17218f, 1.156189f, 65.66205f, 102.787781f, 172.930054f, 26.6210327f); @@ -153,7 +153,7 @@ public static void float4x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_not_equal_wide_scalar() { float4x4 a0 = float4x4(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f, -197.12796f, -169.099854f, -386.611176f, -281.021f, -270.26886f, -403.9637f, -269.805725f, 299.654236f, -71.7509155f, -432.755737f); @@ -177,7 +177,7 @@ public static void float4x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -201,7 +201,7 @@ public static void float4x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_less_wide_wide() { float4x4 a0 = float4x4(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f, 8.839233f, -333.8167f, 164.678833f, -350.9449f, 3.84143066f, 125.409729f, -111.129944f, 70.00549f, 448.1983f, -419.987122f); @@ -225,7 +225,7 @@ public static void float4x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_less_wide_scalar() { float4x4 a0 = float4x4(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f, -158.240753f, 437.3459f, -20.4526062f, 225.2915f, 307.4842f, 274.015259f, 373.549683f, 398.523682f, 105.030151f, -58.0108948f); @@ -249,7 +249,7 @@ public static void float4x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -273,7 +273,7 @@ public static void float4x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_greater_wide_wide() { float4x4 a0 = float4x4(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f, -14.8974f, -33.8174438f, -24.74054f, 319.782654f, -120.158569f, -289.008575f, 455.85144f, 144.706909f, 63.9320068f, -285.683044f); @@ -297,7 +297,7 @@ public static void float4x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_greater_wide_scalar() { float4x4 a0 = float4x4(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f, 286.199463f, 280.813354f, -405.7846f, 171.565369f, -241.807281f, 333.5782f, 370.279175f, -413.7014f, -356.592346f, -353.0313f); @@ -321,7 +321,7 @@ public static void float4x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -345,7 +345,7 @@ public static void float4x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_less_equal_wide_wide() { float4x4 a0 = float4x4(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f, -97.94849f, 437.2954f, 458.530273f, -294.064758f, 23.62262f, -34.2840576f, 149.736511f, -418.8867f, -197.502533f, -88.2055054f); @@ -369,7 +369,7 @@ public static void float4x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_less_equal_wide_scalar() { float4x4 a0 = float4x4(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f, 241.361145f, -463.8164f, -1.35775757f, -268.899475f, 398.991943f, -471.253082f, -264.9378f, 82.2583f, 11.2460327f, 424.704041f); @@ -393,7 +393,7 @@ public static void float4x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -417,7 +417,7 @@ public static void float4x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_greater_equal_wide_wide() { float4x4 a0 = float4x4(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f, -463.702026f, 387.448853f, 456.9688f, -211.010162f, 182.411377f, -53.59604f, -309.570221f, -136.022491f, 280.736267f, -96.99588f); @@ -441,7 +441,7 @@ public static void float4x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_greater_equal_wide_scalar() { float4x4 a0 = float4x4(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f, 16.3533936f, -344.559967f, 393.278076f, -315.701538f, 441.011536f, -509.781555f, -36.9942932f, 494.8203f, -164.973938f, -466.1201f); @@ -465,7 +465,7 @@ public static void float4x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -489,7 +489,7 @@ public static void float4x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_add_wide_wide() { float4x4 a0 = float4x4(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f, 424.344055f, 87.79108f, 462.4137f, -46.17871f, 401.170044f, -454.124146f, 69.19568f, -177.957336f, 299.604126f, 340.704834f); @@ -513,7 +513,7 @@ public static void float4x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_add_wide_scalar() { float4x4 a0 = float4x4(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f, 30.9161377f, 60.37433f, -242.118744f, 82.50134f, 6.79937744f, -484.6998f, -188.265015f, -213.526733f, -267.7843f, 189.259949f); @@ -537,7 +537,7 @@ public static void float4x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -561,7 +561,7 @@ public static void float4x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_sub_wide_wide() { float4x4 a0 = float4x4(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f, -410.46405f, -401.384644f, 317.706848f, 447.060425f, -489.074158f, -230.008392f, 24.8754272f, 366.614441f, -107.374146f, -219.008148f); @@ -585,7 +585,7 @@ public static void float4x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_sub_wide_scalar() { float4x4 a0 = float4x4(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f, 18.8562622f, -44.96161f, 480.857971f, 16.3381958f, -366.865448f, -35.5231f, 349.397766f, 439.077271f, 490.2223f, 195.024048f); @@ -609,7 +609,7 @@ public static void float4x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -633,7 +633,7 @@ public static void float4x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_mul_wide_wide() { float4x4 a0 = float4x4(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f, 183.9873f, -241.33548f, 45.8687744f, 363.3261f, -328.118958f, -471.023071f, -262.682556f, -379.262756f, -374.090576f, 481.4474f); @@ -657,7 +657,7 @@ public static void float4x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_mul_wide_scalar() { float4x4 a0 = float4x4(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f, -455.50827f, -389.2433f, -338.29248f, 53.7962646f, 243.757324f, 135.354675f, -207.3501f, -383.9396f, -31.4252319f, 42.6761475f); @@ -681,7 +681,7 @@ public static void float4x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -705,7 +705,7 @@ public static void float4x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_div_wide_wide() { float4x4 a0 = float4x4(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f, -136.0596f, -370.471f, -237.69455f, -432.546875f, 200.2655f, 361.4416f, -416.226135f, -450.0192f, -273.497437f, -286.908173f); @@ -729,7 +729,7 @@ public static void float4x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_div_wide_scalar() { float4x4 a0 = float4x4(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f, -127.4487f, -79.7449f, 146.466858f, -499.843567f, 58.68634f, -453.2058f, -205.033813f, 481.738159f, 464.479065f, -293.4635f); @@ -753,7 +753,7 @@ public static void float4x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -777,7 +777,7 @@ public static void float4x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_mod_wide_wide() { float4x4 a0 = float4x4(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f, 283.3183f, 122.716492f, 335.271f, -503.608521f, 191.022522f, 289.742676f, -124.033722f, 259.274f, -274.358459f, -140.030792f); @@ -801,7 +801,7 @@ public static void float4x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_mod_wide_scalar() { float4x4 a0 = float4x4(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f, 281.309631f, -226.535767f, 335.166138f, 101.706482f, 319.4715f, -285.4023f, -355.846863f, 259.378f, -330.871948f, -284.343567f); @@ -825,7 +825,7 @@ public static void float4x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -849,7 +849,7 @@ public static void float4x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_plus() { float4x4 a0 = float4x4(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f, 293.742f, -373.015442f, -386.059845f, 4.95440674f, -418.645264f, 504.474854f, -170.746521f, 439.5594f, -478.7494f, 116.400757f); @@ -869,7 +869,7 @@ public static void float4x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_neg() { float4x4 a0 = float4x4(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f, -54.95877f, -382.9898f, -299.093384f, -383.014069f, 407.709778f, 168.735474f, 466.441528f, 171.902466f, -280.558319f, -78.857605f); @@ -889,7 +889,7 @@ public static void float4x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_prefix_inc() { float4x4 a0 = float4x4(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f, -392.7315f, -300.1941f, 362.212769f, 401.6148f, 130.90918f, -450.230164f, 243.546936f, 46.1920166f, -41.4972839f, 299.1855f); @@ -909,7 +909,7 @@ public static void float4x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_postfix_inc() { float4x4 a0 = float4x4(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f, -81.39343f, 66.71973f, 167.852112f, 147.94397f, -326.1076f, 41.03357f, 128.5304f, 73.15558f, -60.1323853f, -446.229767f); @@ -929,7 +929,7 @@ public static void float4x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_prefix_dec() { float4x4 a0 = float4x4(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f, 187.874146f, -236.225189f, 125.109619f, 469.844727f, 45.5366821f, 376.046875f, -363.0755f, -22.0289612f, 248.7901f, 168.095032f); @@ -949,7 +949,7 @@ public static void float4x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_operator_postfix_dec() { float4x4 a0 = float4x4(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f, -63.65515f, 355.2611f, -27.8892212f, -100.761841f, 156.14032f, 479.9452f, -200.304291f, -445.026947f, 407.420349f, 327.670349f); @@ -969,7 +969,7 @@ public static void float4x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCase] + [TestCase /* For player builds */] public static void float4x4_EqualsObjectOverride() { TestUtils.IsFalse(new float4x4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestHalf.cs b/src/Tests/Tests/Shared/TestHalf.cs index 7cd3e330..301e06d2 100644 --- a/src/Tests/Tests/Shared/TestHalf.cs +++ b/src/Tests/Tests/Shared/TestHalf.cs @@ -8,20 +8,20 @@ namespace Unity.Mathematics.Tests [TestFixture] public partial class TestHalf { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half_zero() { TestUtils.AreEqual(0x0000, half.zero.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half2_zero() { TestUtils.AreEqual(0x0000, half2.zero.x.value); TestUtils.AreEqual(0x0000, half2.zero.y.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half3_zero() { TestUtils.AreEqual(0x0000, half3.zero.x.value); @@ -29,7 +29,7 @@ public static void half3_zero() TestUtils.AreEqual(0x0000, half3.zero.z.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half4_zero() { TestUtils.AreEqual(0x0000, half4.zero.x.value); @@ -38,7 +38,7 @@ public static void half4_zero() TestUtils.AreEqual(0x0000, half4.zero.w.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half_from_float_construction() { TestUtils.AreEqual(0x0000, half(0.0f).value); @@ -58,14 +58,14 @@ public static void half_from_float_construction() TestUtils.AreEqual(0xFC00, half(float.NegativeInfinity).value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half_from_float_construction_signed_zero() { TestUtils.AreEqual(0x8000, half(TestUtils.SignedFloatZero()).value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half2_from_float2_construction() { half2 h0 = half2(float2(0.0f, 2.98e-08f)); @@ -89,7 +89,7 @@ public static void half2_from_float2_construction() TestUtils.AreEqual(uint2(0xFC00, 0x0000), uint2(h7.x.value, h7.y.value)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half2_from_float2_construction_signed_zero() { @@ -97,7 +97,7 @@ public static void half2_from_float2_construction_signed_zero() TestUtils.AreEqual(uint2(0x8000, 0x8000), uint2(h0.x.value, h0.y.value)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half3_from_float3_construction() { half3 h0 = half3(float3(0.0f, 2.98e-08f, 5.96046448e-08f)); @@ -114,7 +114,7 @@ public static void half3_from_float3_construction() TestUtils.AreEqual(uint3(0xFC00, 0xFC00, 0x0000), uint3(h4.x.value, h4.y.value, h4.z.value)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half3_from_float3_construction_signed_zero() { @@ -122,7 +122,7 @@ public static void half3_from_float3_construction_signed_zero() TestUtils.AreEqual(uint3(0x8000, 0x8000, 0x8000), uint3(h0.x.value, h0.y.value, h0.z.value)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half4_from_float4_construction() { half4 h0 = half4(float4(0.0f, 2.98e-08f, 5.96046448e-08f, 123.4f)); @@ -136,7 +136,7 @@ public static void half4_from_float4_construction() TestUtils.AreEqual(uint4(0xFC00, 0xFC00, 0xFC00, 0x0000), uint4(h3.x.value, h3.y.value, h3.z.value, h3.w.value)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half4_from_float4_construction_signed_zero() { @@ -145,7 +145,7 @@ public static void half4_from_float4_construction_signed_zero() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half_from_double_construction() { TestUtils.AreEqual(0x0000, half(0.0).value); @@ -165,14 +165,14 @@ public static void half_from_double_construction() TestUtils.AreEqual(0xFC00, half(double.NegativeInfinity).value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half_from_double_construction_signed_zero() { TestUtils.AreEqual(0x8000, half(TestUtils.SignedDoubleZero()).value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half2_from_double2_construction() { half2 h0 = half2(double2(0.0, 2.98e-08)); @@ -196,7 +196,7 @@ public static void half2_from_double2_construction() TestUtils.AreEqual(uint2(0xFC00, 0x0000), uint2(h7.x.value, h7.y.value)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half2_from_double2_construction_signed_zero() { @@ -204,7 +204,7 @@ public static void half2_from_double2_construction_signed_zero() TestUtils.AreEqual(uint2(0x8000, 0x8000), uint2(h0.x.value, h0.y.value)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half3_from_double3_construction() { half3 h0 = half3(double3(0.0, 2.98e-08, 5.96046448e-08)); @@ -221,7 +221,7 @@ public static void half3_from_double3_construction() TestUtils.AreEqual(uint3(0xFC00, 0xFC00, 0x0000), uint3(h4.x.value, h4.y.value, h4.z.value)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half3_from_double3_construction_signed_zero() { @@ -229,7 +229,7 @@ public static void half3_from_double3_construction_signed_zero() TestUtils.AreEqual(uint3(0x8000, 0x8000, 0x8000), uint3(h0.x.value, h0.y.value, h0.z.value)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half4_from_double4_construction() { half4 h0 = half4(double4(0.0, 2.98e-08, 5.96046448e-08, 123.4)); @@ -243,7 +243,7 @@ public static void half4_from_double4_construction() TestUtils.AreEqual(uint4(0xFC00, 0xFC00, 0xFC00, 0x0000), uint4(h3.x.value, h3.y.value, h3.z.value, h3.w.value)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half4_from_double4_construction_signed_zero() { @@ -251,7 +251,7 @@ public static void half4_from_double4_construction_signed_zero() TestUtils.AreEqual(uint4(0x8000, 0x8000, 0x8000, 0x8000), uint4(h0.x.value, h0.y.value, h0.z.value, h0.w.value)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half_to_float() { TestUtils.AreEqual(0x00000000, asuint(new half { value = 0x0000 })); @@ -269,7 +269,7 @@ public static void half_to_float() TestUtils.AreEqual(true, isnan(new half { value = 0xFC01 })); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half2_to_float2() { half2 h0; h0.x.value = 0x0000; h0.y.value = 0x0203; @@ -293,7 +293,7 @@ public static void half2_to_float2() TestUtils.AreEqual(true, all(isnan(h7))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half3_to_float3() { half3 h0; h0.x.value = 0x0000; h0.y.value = 0x0203; h0.z.value = 0x4321; @@ -313,7 +313,7 @@ public static void half3_to_float3() TestUtils.AreEqual(true, all(isnan(h5))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half4_to_float4() { half4 h0; h0.x.value = 0x0000; h0.y.value = 0x0203; h0.z.value = 0x4321; h0.w.value = 0x7BFF; @@ -334,7 +334,7 @@ public static void half4_to_float4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half_to_double() { TestUtils.AreEqual(0x0000000000000000u, asulong((double)new half { value = 0x0000 })); @@ -353,14 +353,14 @@ public static void half_to_double() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half_from_float_explicit_conversion() { half h = (half)123.4f; TestUtils.AreEqual(0x57B6, h.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half2_from_float2_explicit_conversion() { half2 h = (half2)float2(123.4f, 5.96046448e-08f); @@ -368,7 +368,7 @@ public static void half2_from_float2_explicit_conversion() TestUtils.AreEqual(0x0001, h.y.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half3_from_float3_explicit_conversion() { half3 h = (half3)float3(123.4f, 5.96046448e-08f, -65504.0f); @@ -377,7 +377,7 @@ public static void half3_from_float3_explicit_conversion() TestUtils.AreEqual(0xFBFF, h.z.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half4_from_float4_explicit_conversion() { half4 h = (half4)float4(123.4f, 5.96046448e-08f, -65504.0f, float.PositiveInfinity); @@ -387,7 +387,7 @@ public static void half4_from_float4_explicit_conversion() TestUtils.AreEqual(0x7C00, h.w.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half_from_double_explicit_conversion() { half h = (half)123.4; @@ -395,7 +395,7 @@ public static void half_from_double_explicit_conversion() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half_to_float_implicit_conversion() { half h; h.value = 0x0203; @@ -403,7 +403,7 @@ public static void half_to_float_implicit_conversion() TestUtils.AreEqual(0x3800C000, asuint(f)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half2_to_float2_implicit_conversion() { half2 h; h.x.value = 0x0203; h.y.value = 0x8203; @@ -412,7 +412,7 @@ public static void half2_to_float2_implicit_conversion() TestUtils.AreEqual(0xB800C000, asuint(f.y)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half3_to_float3_implicit_conversion() { half3 h; h.x.value = 0x0203; h.y.value = 0x8203; h.z.value = 0x7BFF; @@ -422,7 +422,7 @@ public static void half3_to_float3_implicit_conversion() TestUtils.AreEqual(0x477FE000, asuint(f.z)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half4_to_float4_implicit_conversion() { half4 h; h.x.value = 0x0203; h.y.value = 0x8203; h.z.value = 0x7BFF; h.w.value = 0x7C00; @@ -433,7 +433,7 @@ public static void half4_to_float4_implicit_conversion() TestUtils.AreEqual(0x7F800000, asuint(f.w)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half_to_double_implicit_conversion() { half h; h.value = 0x0203; @@ -442,33 +442,33 @@ public static void half_to_double_implicit_conversion() TestUtils.AreEqual(0x3F00180000000000u, asulong(f)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half_minvalue() { half min = new half(half.MinValue); TestUtils.AreEqual(0xfbff, min.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half_maxvalue() { half max = new half(half.MaxValue); TestUtils.AreEqual(0x7bff, max.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half_minvalueashalf() { TestUtils.AreEqual(0xfbff, half.MinValueAsHalf.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half_maxvalueashalf() { TestUtils.AreEqual(0x7bff, half.MaxValueAsHalf.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half2_minvalue() { half2 min = half.MinValueAsHalf; @@ -476,7 +476,7 @@ public static void half2_minvalue() TestUtils.AreEqual(0xfbff, min.y.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half2_maxvalue() { half2 max = half.MaxValueAsHalf; @@ -484,7 +484,7 @@ public static void half2_maxvalue() TestUtils.AreEqual(0x7bff, max.y.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half3_minvalue() { half3 min = half.MinValueAsHalf; @@ -493,7 +493,7 @@ public static void half3_minvalue() TestUtils.AreEqual(0xfbff, min.z.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half3_maxvalue() { half3 max = half.MaxValueAsHalf; @@ -502,7 +502,7 @@ public static void half3_maxvalue() TestUtils.AreEqual(0x7bff, max.z.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half4_minvalue() { half4 min = half.MinValueAsHalf; @@ -512,7 +512,7 @@ public static void half4_minvalue() TestUtils.AreEqual(0xfbff, min.w.value); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void half4_maxvalue() { half4 max = half.MaxValueAsHalf; diff --git a/src/Tests/Tests/Shared/TestInt2.gen.cs b/src/Tests/Tests/Shared/TestInt2.gen.cs index 78c07923..6196c993 100644 --- a/src/Tests/Tests/Shared/TestInt2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2.gen.cs @@ -15,14 +15,14 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_zero() { TestUtils.AreEqual(0, int2.zero.x); TestUtils.AreEqual(0, int2.zero.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_constructor() { int2 a = new int2(1, 2); @@ -30,7 +30,7 @@ public static void int2_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_scalar_constructor() { int2 a = new int2(17); @@ -38,7 +38,7 @@ public static void int2_scalar_constructor() TestUtils.AreEqual(17, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_static_constructor() { int2 a = int2(1, 2); @@ -46,7 +46,7 @@ public static void int2_static_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_static_scalar_constructor() { int2 a = int2(17); @@ -54,7 +54,7 @@ public static void int2_static_scalar_constructor() TestUtils.AreEqual(17, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_equal_wide_wide() { int2 a0 = int2(2105871082, 35218899); @@ -78,7 +78,7 @@ public static void int2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_equal_wide_scalar() { int2 a0 = int2(437822262, 2020661134); @@ -102,7 +102,7 @@ public static void int2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_equal_scalar_wide() { int a0 = (542329200); @@ -126,7 +126,7 @@ public static void int2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_not_equal_wide_wide() { int2 a0 = int2(1977284100, 1293292704); @@ -150,7 +150,7 @@ public static void int2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_not_equal_wide_scalar() { int2 a0 = int2(1038269360, 1427812625); @@ -174,7 +174,7 @@ public static void int2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -198,7 +198,7 @@ public static void int2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_less_wide_wide() { int2 a0 = int2(1486550609, 1779244308); @@ -222,7 +222,7 @@ public static void int2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_less_wide_scalar() { int2 a0 = int2(796797557, 670113454); @@ -246,7 +246,7 @@ public static void int2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_less_scalar_wide() { int a0 = (186400299); @@ -270,7 +270,7 @@ public static void int2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_greater_wide_wide() { int2 a0 = int2(2087717754, 1725569452); @@ -294,7 +294,7 @@ public static void int2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_greater_wide_scalar() { int2 a0 = int2(1208626274, 239697208); @@ -318,7 +318,7 @@ public static void int2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_greater_scalar_wide() { int a0 = (480938827); @@ -342,7 +342,7 @@ public static void int2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_less_equal_wide_wide() { int2 a0 = int2(154092149, 1515170149); @@ -366,7 +366,7 @@ public static void int2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_less_equal_wide_scalar() { int2 a0 = int2(1479531977, 1427983411); @@ -390,7 +390,7 @@ public static void int2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -414,7 +414,7 @@ public static void int2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_greater_equal_wide_wide() { int2 a0 = int2(8538378, 2131749726); @@ -438,7 +438,7 @@ public static void int2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_greater_equal_wide_scalar() { int2 a0 = int2(2049236663, 182691143); @@ -462,7 +462,7 @@ public static void int2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -486,7 +486,7 @@ public static void int2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_add_wide_wide() { int2 a0 = int2(2135171378, 21433296); @@ -510,7 +510,7 @@ public static void int2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_add_wide_scalar() { int2 a0 = int2(665815972, 1783729250); @@ -534,7 +534,7 @@ public static void int2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_add_scalar_wide() { int a0 = (359966320); @@ -558,7 +558,7 @@ public static void int2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_sub_wide_wide() { int2 a0 = int2(1410318491, 1097280168); @@ -582,7 +582,7 @@ public static void int2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_sub_wide_scalar() { int2 a0 = int2(1508669340, 1594795463); @@ -606,7 +606,7 @@ public static void int2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_sub_scalar_wide() { int a0 = (893369501); @@ -630,7 +630,7 @@ public static void int2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_mul_wide_wide() { int2 a0 = int2(61417577, 219585476); @@ -654,7 +654,7 @@ public static void int2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_mul_wide_scalar() { int2 a0 = int2(871746615, 492532311); @@ -678,7 +678,7 @@ public static void int2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -702,7 +702,7 @@ public static void int2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_div_wide_wide() { int2 a0 = int2(333171510, 858154903); @@ -726,7 +726,7 @@ public static void int2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_div_wide_scalar() { int2 a0 = int2(1433072926, 1073958635); @@ -750,7 +750,7 @@ public static void int2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_div_scalar_wide() { int a0 = (519165704); @@ -774,7 +774,7 @@ public static void int2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_mod_wide_wide() { int2 a0 = int2(258342924, 1454754891); @@ -798,7 +798,7 @@ public static void int2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_mod_wide_scalar() { int2 a0 = int2(560988938, 629524514); @@ -822,7 +822,7 @@ public static void int2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_mod_scalar_wide() { int a0 = (933347930); @@ -846,7 +846,7 @@ public static void int2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_plus() { int2 a0 = int2(195392567, 222719748); @@ -866,7 +866,7 @@ public static void int2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_neg() { int2 a0 = int2(1385088677, 94114564); @@ -886,7 +886,7 @@ public static void int2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_prefix_inc() { int2 a0 = int2(780471723, 954741756); @@ -906,7 +906,7 @@ public static void int2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_postfix_inc() { int2 a0 = int2(241865086, 2145821641); @@ -926,7 +926,7 @@ public static void int2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_prefix_dec() { int2 a0 = int2(1331961415, 1612382200); @@ -946,7 +946,7 @@ public static void int2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_postfix_dec() { int2 a0 = int2(1870005937, 1708534798); @@ -966,7 +966,7 @@ public static void int2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_bitwise_and_wide_wide() { int2 a0 = int2(1055241304, 859321394); @@ -990,7 +990,7 @@ public static void int2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_bitwise_and_wide_scalar() { int2 a0 = int2(1513158868, 284695609); @@ -1014,7 +1014,7 @@ public static void int2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1038,7 +1038,7 @@ public static void int2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_bitwise_or_wide_wide() { int2 a0 = int2(1920951869, 1750772852); @@ -1062,7 +1062,7 @@ public static void int2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_bitwise_or_wide_scalar() { int2 a0 = int2(1295304853, 1307252624); @@ -1086,7 +1086,7 @@ public static void int2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1110,7 +1110,7 @@ public static void int2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_bitwise_xor_wide_wide() { int2 a0 = int2(1843655608, 362425681); @@ -1134,7 +1134,7 @@ public static void int2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_bitwise_xor_wide_scalar() { int2 a0 = int2(169345668, 176087064); @@ -1158,7 +1158,7 @@ public static void int2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1182,7 +1182,7 @@ public static void int2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_left_shift() { int2 a0 = int2(1129100049, 829482269); @@ -1206,7 +1206,7 @@ public static void int2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_right_shift() { int2 a0 = int2(809126085, 908563670); @@ -1230,7 +1230,7 @@ public static void int2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_operator_bitwise_not() { int2 a0 = int2(111796841, 603562399); @@ -1250,7 +1250,7 @@ public static void int2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_shuffle_result_1() { int2 a = int2(0, 1); @@ -1262,7 +1262,7 @@ public static void int2_shuffle_result_1() TestUtils.AreEqual((3), shuffle(a, b, ShuffleComponent.RightY)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_shuffle_result_2() { int2 a = int2(0, 1); @@ -1286,7 +1286,7 @@ public static void int2_shuffle_result_2() TestUtils.AreEqual(int2(3, 3), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.RightY)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_shuffle_result_3() { int2 a = int2(0, 1); @@ -1310,7 +1310,7 @@ public static void int2_shuffle_result_3() TestUtils.AreEqual(int3(3, 1, 1), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.LeftY)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_shuffle_result_4() { int2 a = int2(0, 1); @@ -1334,7 +1334,7 @@ public static void int2_shuffle_result_4() TestUtils.AreEqual(int4(2, 0, 0, 0), shuffle(a, b, ShuffleComponent.RightX, ShuffleComponent.LeftX, ShuffleComponent.LeftX, ShuffleComponent.LeftX)); } - [TestCase] + [TestCase /* For player builds */] public static void int2_EqualsObjectOverride() { TestUtils.IsFalse(new int2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestInt2x2.gen.cs b/src/Tests/Tests/Shared/TestInt2x2.gen.cs index 517c4586..a99dd57e 100644 --- a/src/Tests/Tests/Shared/TestInt2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt2x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_zero() { TestUtils.AreEqual(0, int2x2.zero.c0.x); @@ -24,7 +24,7 @@ public static void int2x2_zero() TestUtils.AreEqual(0, int2x2.zero.c1.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_identity() { TestUtils.AreEqual(1, int2x2.identity.c0.x); @@ -33,7 +33,7 @@ public static void int2x2_identity() TestUtils.AreEqual(1, int2x2.identity.c1.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_equal_wide_wide() { int2x2 a0 = int2x2(2105871082, 35218899, 1550755093, 764676020); @@ -57,7 +57,7 @@ public static void int2x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_equal_wide_scalar() { int2x2 a0 = int2x2(437822262, 2020661134, 541786900, 853113810); @@ -81,7 +81,7 @@ public static void int2x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_equal_scalar_wide() { int a0 = (542329200); @@ -105,7 +105,7 @@ public static void int2x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_not_equal_wide_wide() { int2x2 a0 = int2x2(1977284100, 1293292704, 1547283851, 422428953); @@ -129,7 +129,7 @@ public static void int2x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_not_equal_wide_scalar() { int2x2 a0 = int2x2(1038269360, 1427812625, 103361237, 1347017023); @@ -153,7 +153,7 @@ public static void int2x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -177,7 +177,7 @@ public static void int2x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_less_wide_wide() { int2x2 a0 = int2x2(1486550609, 1779244308, 1602148045, 1614085440); @@ -201,7 +201,7 @@ public static void int2x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_less_wide_scalar() { int2x2 a0 = int2x2(796797557, 670113454, 933579492, 278884514); @@ -225,7 +225,7 @@ public static void int2x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_less_scalar_wide() { int a0 = (186400299); @@ -249,7 +249,7 @@ public static void int2x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_greater_wide_wide() { int2x2 a0 = int2x2(2087717754, 1725569452, 1298066182, 1693943616); @@ -273,7 +273,7 @@ public static void int2x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_greater_wide_scalar() { int2x2 a0 = int2x2(1208626274, 239697208, 1979453345, 1253474001); @@ -297,7 +297,7 @@ public static void int2x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_greater_scalar_wide() { int a0 = (480938827); @@ -321,7 +321,7 @@ public static void int2x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_less_equal_wide_wide() { int2x2 a0 = int2x2(154092149, 1515170149, 1083970332, 785807178); @@ -345,7 +345,7 @@ public static void int2x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_less_equal_wide_scalar() { int2x2 a0 = int2x2(1479531977, 1427983411, 415250630, 1245345407); @@ -369,7 +369,7 @@ public static void int2x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -393,7 +393,7 @@ public static void int2x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_greater_equal_wide_wide() { int2x2 a0 = int2x2(8538378, 2131749726, 265427108, 523609761); @@ -417,7 +417,7 @@ public static void int2x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_greater_equal_wide_scalar() { int2x2 a0 = int2x2(2049236663, 182691143, 634973382, 1197012109); @@ -441,7 +441,7 @@ public static void int2x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -465,7 +465,7 @@ public static void int2x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_add_wide_wide() { int2x2 a0 = int2x2(2135171378, 21433296, 1954723494, 683604307); @@ -489,7 +489,7 @@ public static void int2x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_add_wide_scalar() { int2x2 a0 = int2x2(665815972, 1783729250, 1591678394, 1284528538); @@ -513,7 +513,7 @@ public static void int2x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_add_scalar_wide() { int a0 = (359966320); @@ -537,7 +537,7 @@ public static void int2x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_sub_wide_wide() { int2x2 a0 = int2x2(1410318491, 1097280168, 1827039044, 28881338); @@ -561,7 +561,7 @@ public static void int2x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_sub_wide_scalar() { int2x2 a0 = int2x2(1508669340, 1594795463, 266707545, 643102647); @@ -585,7 +585,7 @@ public static void int2x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_sub_scalar_wide() { int a0 = (893369501); @@ -609,7 +609,7 @@ public static void int2x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_mul_wide_wide() { int2x2 a0 = int2x2(61417577, 219585476, 1362520891, 1511084277); @@ -633,7 +633,7 @@ public static void int2x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_mul_wide_scalar() { int2x2 a0 = int2x2(871746615, 492532311, 570557670, 2142306629); @@ -657,7 +657,7 @@ public static void int2x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -681,7 +681,7 @@ public static void int2x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_div_wide_wide() { int2x2 a0 = int2x2(333171510, 858154903, 1181365836, 671357749); @@ -705,7 +705,7 @@ public static void int2x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_div_wide_scalar() { int2x2 a0 = int2x2(1433072926, 1073958635, 1195142312, 536596719); @@ -729,7 +729,7 @@ public static void int2x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_div_scalar_wide() { int a0 = (519165704); @@ -753,7 +753,7 @@ public static void int2x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_mod_wide_wide() { int2x2 a0 = int2x2(258342924, 1454754891, 723352342, 1981431473); @@ -777,7 +777,7 @@ public static void int2x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_mod_wide_scalar() { int2x2 a0 = int2x2(560988938, 629524514, 767711194, 434281967); @@ -801,7 +801,7 @@ public static void int2x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_mod_scalar_wide() { int a0 = (933347930); @@ -825,7 +825,7 @@ public static void int2x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_plus() { int2x2 a0 = int2x2(195392567, 222719748, 1002351013, 1570765263); @@ -845,7 +845,7 @@ public static void int2x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_neg() { int2x2 a0 = int2x2(1385088677, 94114564, 1350664872, 1458616659); @@ -865,7 +865,7 @@ public static void int2x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_prefix_inc() { int2x2 a0 = int2x2(780471723, 954741756, 272723451, 2142862245); @@ -885,7 +885,7 @@ public static void int2x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_postfix_inc() { int2x2 a0 = int2x2(241865086, 2145821641, 1596166022, 803592338); @@ -905,7 +905,7 @@ public static void int2x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_prefix_dec() { int2x2 a0 = int2x2(1331961415, 1612382200, 1401591249, 2042075388); @@ -925,7 +925,7 @@ public static void int2x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_postfix_dec() { int2x2 a0 = int2x2(1870005937, 1708534798, 704493460, 462940703); @@ -945,7 +945,7 @@ public static void int2x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_bitwise_and_wide_wide() { int2x2 a0 = int2x2(1055241304, 859321394, 1088358961, 2090949513); @@ -969,7 +969,7 @@ public static void int2x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_bitwise_and_wide_scalar() { int2x2 a0 = int2x2(1513158868, 284695609, 734595037, 1566510707); @@ -993,7 +993,7 @@ public static void int2x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1017,7 +1017,7 @@ public static void int2x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_bitwise_or_wide_wide() { int2x2 a0 = int2x2(1920951869, 1750772852, 1420019191, 732977093); @@ -1041,7 +1041,7 @@ public static void int2x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_bitwise_or_wide_scalar() { int2x2 a0 = int2x2(1295304853, 1307252624, 350194630, 1128063578); @@ -1065,7 +1065,7 @@ public static void int2x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1089,7 +1089,7 @@ public static void int2x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_bitwise_xor_wide_wide() { int2x2 a0 = int2x2(1843655608, 362425681, 640805534, 1342040268); @@ -1113,7 +1113,7 @@ public static void int2x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_bitwise_xor_wide_scalar() { int2x2 a0 = int2x2(169345668, 176087064, 2084362901, 1663924004); @@ -1137,7 +1137,7 @@ public static void int2x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1161,7 +1161,7 @@ public static void int2x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_left_shift() { int2x2 a0 = int2x2(1129100049, 829482269, 1571297368, 443753193); @@ -1185,7 +1185,7 @@ public static void int2x2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_right_shift() { int2x2 a0 = int2x2(809126085, 908563670, 763568837, 1986717290); @@ -1209,7 +1209,7 @@ public static void int2x2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x2_operator_bitwise_not() { int2x2 a0 = int2x2(111796841, 603562399, 745091931, 853183268); @@ -1229,7 +1229,7 @@ public static void int2x2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void int2x2_EqualsObjectOverride() { TestUtils.IsFalse(new int2x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestInt2x3.gen.cs b/src/Tests/Tests/Shared/TestInt2x3.gen.cs index e6b88941..95b713de 100644 --- a/src/Tests/Tests/Shared/TestInt2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt2x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_zero() { TestUtils.AreEqual(0, int2x3.zero.c0.x); @@ -26,7 +26,7 @@ public static void int2x3_zero() TestUtils.AreEqual(0, int2x3.zero.c2.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_equal_wide_wide() { int2x3 a0 = int2x3(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098); @@ -50,7 +50,7 @@ public static void int2x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_equal_wide_scalar() { int2x3 a0 = int2x3(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405); @@ -74,7 +74,7 @@ public static void int2x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_equal_scalar_wide() { int a0 = (542329200); @@ -98,7 +98,7 @@ public static void int2x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_not_equal_wide_wide() { int2x3 a0 = int2x3(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892); @@ -122,7 +122,7 @@ public static void int2x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_not_equal_wide_scalar() { int2x3 a0 = int2x3(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802); @@ -146,7 +146,7 @@ public static void int2x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -170,7 +170,7 @@ public static void int2x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_less_wide_wide() { int2x3 a0 = int2x3(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342); @@ -194,7 +194,7 @@ public static void int2x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_less_wide_scalar() { int2x3 a0 = int2x3(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673); @@ -218,7 +218,7 @@ public static void int2x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_less_scalar_wide() { int a0 = (186400299); @@ -242,7 +242,7 @@ public static void int2x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_greater_wide_wide() { int2x3 a0 = int2x3(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491); @@ -266,7 +266,7 @@ public static void int2x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_greater_wide_scalar() { int2x3 a0 = int2x3(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635); @@ -290,7 +290,7 @@ public static void int2x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_greater_scalar_wide() { int a0 = (480938827); @@ -314,7 +314,7 @@ public static void int2x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_less_equal_wide_wide() { int2x3 a0 = int2x3(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627); @@ -338,7 +338,7 @@ public static void int2x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_less_equal_wide_scalar() { int2x3 a0 = int2x3(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632); @@ -362,7 +362,7 @@ public static void int2x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -386,7 +386,7 @@ public static void int2x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_greater_equal_wide_wide() { int2x3 a0 = int2x3(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564); @@ -410,7 +410,7 @@ public static void int2x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_greater_equal_wide_scalar() { int2x3 a0 = int2x3(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469); @@ -434,7 +434,7 @@ public static void int2x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -458,7 +458,7 @@ public static void int2x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_add_wide_wide() { int2x3 a0 = int2x3(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995); @@ -482,7 +482,7 @@ public static void int2x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_add_wide_scalar() { int2x3 a0 = int2x3(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732); @@ -506,7 +506,7 @@ public static void int2x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_add_scalar_wide() { int a0 = (359966320); @@ -530,7 +530,7 @@ public static void int2x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_sub_wide_wide() { int2x3 a0 = int2x3(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868); @@ -554,7 +554,7 @@ public static void int2x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_sub_wide_scalar() { int2x3 a0 = int2x3(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328); @@ -578,7 +578,7 @@ public static void int2x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_sub_scalar_wide() { int a0 = (893369501); @@ -602,7 +602,7 @@ public static void int2x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_mul_wide_wide() { int2x3 a0 = int2x3(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871); @@ -626,7 +626,7 @@ public static void int2x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_mul_wide_scalar() { int2x3 a0 = int2x3(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563); @@ -650,7 +650,7 @@ public static void int2x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -674,7 +674,7 @@ public static void int2x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_div_wide_wide() { int2x3 a0 = int2x3(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420); @@ -698,7 +698,7 @@ public static void int2x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_div_wide_scalar() { int2x3 a0 = int2x3(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346); @@ -722,7 +722,7 @@ public static void int2x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_div_scalar_wide() { int a0 = (519165704); @@ -746,7 +746,7 @@ public static void int2x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_mod_wide_wide() { int2x3 a0 = int2x3(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627); @@ -770,7 +770,7 @@ public static void int2x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_mod_wide_scalar() { int2x3 a0 = int2x3(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846); @@ -794,7 +794,7 @@ public static void int2x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_mod_scalar_wide() { int a0 = (933347930); @@ -818,7 +818,7 @@ public static void int2x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_plus() { int2x3 a0 = int2x3(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277); @@ -838,7 +838,7 @@ public static void int2x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_neg() { int2x3 a0 = int2x3(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493); @@ -858,7 +858,7 @@ public static void int2x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_prefix_inc() { int2x3 a0 = int2x3(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550); @@ -878,7 +878,7 @@ public static void int2x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_postfix_inc() { int2x3 a0 = int2x3(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229); @@ -898,7 +898,7 @@ public static void int2x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_prefix_dec() { int2x3 a0 = int2x3(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159); @@ -918,7 +918,7 @@ public static void int2x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_postfix_dec() { int2x3 a0 = int2x3(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869); @@ -938,7 +938,7 @@ public static void int2x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_bitwise_and_wide_wide() { int2x3 a0 = int2x3(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515); @@ -962,7 +962,7 @@ public static void int2x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_bitwise_and_wide_scalar() { int2x3 a0 = int2x3(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838); @@ -986,7 +986,7 @@ public static void int2x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1010,7 +1010,7 @@ public static void int2x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_bitwise_or_wide_wide() { int2x3 a0 = int2x3(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930); @@ -1034,7 +1034,7 @@ public static void int2x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_bitwise_or_wide_scalar() { int2x3 a0 = int2x3(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467); @@ -1058,7 +1058,7 @@ public static void int2x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1082,7 +1082,7 @@ public static void int2x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_bitwise_xor_wide_wide() { int2x3 a0 = int2x3(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850); @@ -1106,7 +1106,7 @@ public static void int2x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_bitwise_xor_wide_scalar() { int2x3 a0 = int2x3(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661); @@ -1130,7 +1130,7 @@ public static void int2x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1154,7 +1154,7 @@ public static void int2x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_left_shift() { int2x3 a0 = int2x3(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593); @@ -1178,7 +1178,7 @@ public static void int2x3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_right_shift() { int2x3 a0 = int2x3(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842); @@ -1202,7 +1202,7 @@ public static void int2x3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x3_operator_bitwise_not() { int2x3 a0 = int2x3(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399); @@ -1222,7 +1222,7 @@ public static void int2x3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void int2x3_EqualsObjectOverride() { TestUtils.IsFalse(new int2x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestInt2x4.gen.cs b/src/Tests/Tests/Shared/TestInt2x4.gen.cs index f9650035..8700456f 100644 --- a/src/Tests/Tests/Shared/TestInt2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt2x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_zero() { TestUtils.AreEqual(0, int2x4.zero.c0.x); @@ -28,7 +28,7 @@ public static void int2x4_zero() TestUtils.AreEqual(0, int2x4.zero.c3.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_equal_wide_wide() { int2x4 a0 = int2x4(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316); @@ -52,7 +52,7 @@ public static void int2x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_equal_wide_scalar() { int2x4 a0 = int2x4(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849); @@ -76,7 +76,7 @@ public static void int2x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_equal_scalar_wide() { int a0 = (542329200); @@ -100,7 +100,7 @@ public static void int2x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_not_equal_wide_wide() { int2x4 a0 = int2x4(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074); @@ -124,7 +124,7 @@ public static void int2x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_not_equal_wide_scalar() { int2x4 a0 = int2x4(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717); @@ -148,7 +148,7 @@ public static void int2x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -172,7 +172,7 @@ public static void int2x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_less_wide_wide() { int2x4 a0 = int2x4(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431); @@ -196,7 +196,7 @@ public static void int2x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_less_wide_scalar() { int2x4 a0 = int2x4(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600); @@ -220,7 +220,7 @@ public static void int2x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_less_scalar_wide() { int a0 = (186400299); @@ -244,7 +244,7 @@ public static void int2x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_greater_wide_wide() { int2x4 a0 = int2x4(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508); @@ -268,7 +268,7 @@ public static void int2x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_greater_wide_scalar() { int2x4 a0 = int2x4(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098); @@ -292,7 +292,7 @@ public static void int2x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_greater_scalar_wide() { int a0 = (480938827); @@ -316,7 +316,7 @@ public static void int2x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_less_equal_wide_wide() { int2x4 a0 = int2x4(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725); @@ -340,7 +340,7 @@ public static void int2x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_less_equal_wide_scalar() { int2x4 a0 = int2x4(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307); @@ -364,7 +364,7 @@ public static void int2x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -388,7 +388,7 @@ public static void int2x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_greater_equal_wide_wide() { int2x4 a0 = int2x4(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970); @@ -412,7 +412,7 @@ public static void int2x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_greater_equal_wide_scalar() { int2x4 a0 = int2x4(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187); @@ -436,7 +436,7 @@ public static void int2x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -460,7 +460,7 @@ public static void int2x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_add_wide_wide() { int2x4 a0 = int2x4(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062); @@ -484,7 +484,7 @@ public static void int2x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_add_wide_scalar() { int2x4 a0 = int2x4(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017); @@ -508,7 +508,7 @@ public static void int2x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_add_scalar_wide() { int a0 = (359966320); @@ -532,7 +532,7 @@ public static void int2x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_sub_wide_wide() { int2x4 a0 = int2x4(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215); @@ -556,7 +556,7 @@ public static void int2x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_sub_wide_scalar() { int2x4 a0 = int2x4(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511); @@ -580,7 +580,7 @@ public static void int2x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_sub_scalar_wide() { int a0 = (893369501); @@ -604,7 +604,7 @@ public static void int2x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_mul_wide_wide() { int2x4 a0 = int2x4(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644); @@ -628,7 +628,7 @@ public static void int2x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_mul_wide_scalar() { int2x4 a0 = int2x4(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514); @@ -652,7 +652,7 @@ public static void int2x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -676,7 +676,7 @@ public static void int2x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_div_wide_wide() { int2x4 a0 = int2x4(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814); @@ -700,7 +700,7 @@ public static void int2x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_div_wide_scalar() { int2x4 a0 = int2x4(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670); @@ -724,7 +724,7 @@ public static void int2x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_div_scalar_wide() { int a0 = (519165704); @@ -748,7 +748,7 @@ public static void int2x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_mod_wide_wide() { int2x4 a0 = int2x4(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004); @@ -772,7 +772,7 @@ public static void int2x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_mod_wide_scalar() { int2x4 a0 = int2x4(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916); @@ -796,7 +796,7 @@ public static void int2x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_mod_scalar_wide() { int a0 = (933347930); @@ -820,7 +820,7 @@ public static void int2x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_plus() { int2x4 a0 = int2x4(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785); @@ -840,7 +840,7 @@ public static void int2x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_neg() { int2x4 a0 = int2x4(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961); @@ -860,7 +860,7 @@ public static void int2x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_prefix_inc() { int2x4 a0 = int2x4(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162); @@ -880,7 +880,7 @@ public static void int2x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_postfix_inc() { int2x4 a0 = int2x4(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244); @@ -900,7 +900,7 @@ public static void int2x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_prefix_dec() { int2x4 a0 = int2x4(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664); @@ -920,7 +920,7 @@ public static void int2x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_postfix_dec() { int2x4 a0 = int2x4(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351); @@ -940,7 +940,7 @@ public static void int2x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_bitwise_and_wide_wide() { int2x4 a0 = int2x4(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753); @@ -964,7 +964,7 @@ public static void int2x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_bitwise_and_wide_scalar() { int2x4 a0 = int2x4(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908); @@ -988,7 +988,7 @@ public static void int2x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1012,7 +1012,7 @@ public static void int2x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_bitwise_or_wide_wide() { int2x4 a0 = int2x4(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323); @@ -1036,7 +1036,7 @@ public static void int2x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_bitwise_or_wide_scalar() { int2x4 a0 = int2x4(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350); @@ -1060,7 +1060,7 @@ public static void int2x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1084,7 +1084,7 @@ public static void int2x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_bitwise_xor_wide_wide() { int2x4 a0 = int2x4(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658); @@ -1108,7 +1108,7 @@ public static void int2x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_bitwise_xor_wide_scalar() { int2x4 a0 = int2x4(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783); @@ -1132,7 +1132,7 @@ public static void int2x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1156,7 +1156,7 @@ public static void int2x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_left_shift() { int2x4 a0 = int2x4(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862); @@ -1180,7 +1180,7 @@ public static void int2x4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_right_shift() { int2x4 a0 = int2x4(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632); @@ -1204,7 +1204,7 @@ public static void int2x4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2x4_operator_bitwise_not() { int2x4 a0 = int2x4(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135); @@ -1224,7 +1224,7 @@ public static void int2x4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void int2x4_EqualsObjectOverride() { TestUtils.IsFalse(new int2x4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestInt3.gen.cs b/src/Tests/Tests/Shared/TestInt3.gen.cs index 29f8ec66..92b93317 100644 --- a/src/Tests/Tests/Shared/TestInt3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_zero() { TestUtils.AreEqual(0, int3.zero.x); @@ -23,7 +23,7 @@ public static void int3_zero() TestUtils.AreEqual(0, int3.zero.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_constructor() { int3 a = new int3(1, 2, 3); @@ -32,7 +32,7 @@ public static void int3_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_scalar_constructor() { int3 a = new int3(17); @@ -41,7 +41,7 @@ public static void int3_scalar_constructor() TestUtils.AreEqual(17, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_static_constructor() { int3 a = int3(1, 2, 3); @@ -50,7 +50,7 @@ public static void int3_static_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_static_scalar_constructor() { int3 a = int3(17); @@ -59,7 +59,7 @@ public static void int3_static_scalar_constructor() TestUtils.AreEqual(17, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_equal_wide_wide() { int3 a0 = int3(2105871082, 35218899, 1550755093); @@ -83,7 +83,7 @@ public static void int3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_equal_wide_scalar() { int3 a0 = int3(437822262, 2020661134, 541786900); @@ -107,7 +107,7 @@ public static void int3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_equal_scalar_wide() { int a0 = (542329200); @@ -131,7 +131,7 @@ public static void int3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_not_equal_wide_wide() { int3 a0 = int3(1977284100, 1293292704, 1547283851); @@ -155,7 +155,7 @@ public static void int3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_not_equal_wide_scalar() { int3 a0 = int3(1038269360, 1427812625, 103361237); @@ -179,7 +179,7 @@ public static void int3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -203,7 +203,7 @@ public static void int3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_less_wide_wide() { int3 a0 = int3(1486550609, 1779244308, 1602148045); @@ -227,7 +227,7 @@ public static void int3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_less_wide_scalar() { int3 a0 = int3(796797557, 670113454, 933579492); @@ -251,7 +251,7 @@ public static void int3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_less_scalar_wide() { int a0 = (186400299); @@ -275,7 +275,7 @@ public static void int3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_greater_wide_wide() { int3 a0 = int3(2087717754, 1725569452, 1298066182); @@ -299,7 +299,7 @@ public static void int3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_greater_wide_scalar() { int3 a0 = int3(1208626274, 239697208, 1979453345); @@ -323,7 +323,7 @@ public static void int3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_greater_scalar_wide() { int a0 = (480938827); @@ -347,7 +347,7 @@ public static void int3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_less_equal_wide_wide() { int3 a0 = int3(154092149, 1515170149, 1083970332); @@ -371,7 +371,7 @@ public static void int3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_less_equal_wide_scalar() { int3 a0 = int3(1479531977, 1427983411, 415250630); @@ -395,7 +395,7 @@ public static void int3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -419,7 +419,7 @@ public static void int3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_greater_equal_wide_wide() { int3 a0 = int3(8538378, 2131749726, 265427108); @@ -443,7 +443,7 @@ public static void int3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_greater_equal_wide_scalar() { int3 a0 = int3(2049236663, 182691143, 634973382); @@ -467,7 +467,7 @@ public static void int3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -491,7 +491,7 @@ public static void int3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_add_wide_wide() { int3 a0 = int3(2135171378, 21433296, 1954723494); @@ -515,7 +515,7 @@ public static void int3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_add_wide_scalar() { int3 a0 = int3(665815972, 1783729250, 1591678394); @@ -539,7 +539,7 @@ public static void int3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_add_scalar_wide() { int a0 = (359966320); @@ -563,7 +563,7 @@ public static void int3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_sub_wide_wide() { int3 a0 = int3(1410318491, 1097280168, 1827039044); @@ -587,7 +587,7 @@ public static void int3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_sub_wide_scalar() { int3 a0 = int3(1508669340, 1594795463, 266707545); @@ -611,7 +611,7 @@ public static void int3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_sub_scalar_wide() { int a0 = (893369501); @@ -635,7 +635,7 @@ public static void int3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_mul_wide_wide() { int3 a0 = int3(61417577, 219585476, 1362520891); @@ -659,7 +659,7 @@ public static void int3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_mul_wide_scalar() { int3 a0 = int3(871746615, 492532311, 570557670); @@ -683,7 +683,7 @@ public static void int3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -707,7 +707,7 @@ public static void int3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_div_wide_wide() { int3 a0 = int3(333171510, 858154903, 1181365836); @@ -731,7 +731,7 @@ public static void int3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_div_wide_scalar() { int3 a0 = int3(1433072926, 1073958635, 1195142312); @@ -755,7 +755,7 @@ public static void int3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_div_scalar_wide() { int a0 = (519165704); @@ -779,7 +779,7 @@ public static void int3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_mod_wide_wide() { int3 a0 = int3(258342924, 1454754891, 723352342); @@ -803,7 +803,7 @@ public static void int3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_mod_wide_scalar() { int3 a0 = int3(560988938, 629524514, 767711194); @@ -827,7 +827,7 @@ public static void int3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_mod_scalar_wide() { int a0 = (933347930); @@ -851,7 +851,7 @@ public static void int3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_plus() { int3 a0 = int3(195392567, 222719748, 1002351013); @@ -871,7 +871,7 @@ public static void int3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_neg() { int3 a0 = int3(1385088677, 94114564, 1350664872); @@ -891,7 +891,7 @@ public static void int3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_prefix_inc() { int3 a0 = int3(780471723, 954741756, 272723451); @@ -911,7 +911,7 @@ public static void int3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_postfix_inc() { int3 a0 = int3(241865086, 2145821641, 1596166022); @@ -931,7 +931,7 @@ public static void int3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_prefix_dec() { int3 a0 = int3(1331961415, 1612382200, 1401591249); @@ -951,7 +951,7 @@ public static void int3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_postfix_dec() { int3 a0 = int3(1870005937, 1708534798, 704493460); @@ -971,7 +971,7 @@ public static void int3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_bitwise_and_wide_wide() { int3 a0 = int3(1055241304, 859321394, 1088358961); @@ -995,7 +995,7 @@ public static void int3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_bitwise_and_wide_scalar() { int3 a0 = int3(1513158868, 284695609, 734595037); @@ -1019,7 +1019,7 @@ public static void int3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1043,7 +1043,7 @@ public static void int3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_bitwise_or_wide_wide() { int3 a0 = int3(1920951869, 1750772852, 1420019191); @@ -1067,7 +1067,7 @@ public static void int3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_bitwise_or_wide_scalar() { int3 a0 = int3(1295304853, 1307252624, 350194630); @@ -1091,7 +1091,7 @@ public static void int3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1115,7 +1115,7 @@ public static void int3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_bitwise_xor_wide_wide() { int3 a0 = int3(1843655608, 362425681, 640805534); @@ -1139,7 +1139,7 @@ public static void int3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_bitwise_xor_wide_scalar() { int3 a0 = int3(169345668, 176087064, 2084362901); @@ -1163,7 +1163,7 @@ public static void int3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1187,7 +1187,7 @@ public static void int3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_left_shift() { int3 a0 = int3(1129100049, 829482269, 1571297368); @@ -1211,7 +1211,7 @@ public static void int3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_right_shift() { int3 a0 = int3(809126085, 908563670, 763568837); @@ -1235,7 +1235,7 @@ public static void int3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_operator_bitwise_not() { int3 a0 = int3(111796841, 603562399, 745091931); @@ -1255,7 +1255,7 @@ public static void int3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_shuffle_result_1() { int3 a = int3(0, 1, 2); @@ -1269,7 +1269,7 @@ public static void int3_shuffle_result_1() TestUtils.AreEqual((5), shuffle(a, b, ShuffleComponent.RightZ)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_shuffle_result_2() { int3 a = int3(0, 1, 2); @@ -1293,7 +1293,7 @@ public static void int3_shuffle_result_2() TestUtils.AreEqual(int2(1, 2), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftZ)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_shuffle_result_3() { int3 a = int3(0, 1, 2); @@ -1317,7 +1317,7 @@ public static void int3_shuffle_result_3() TestUtils.AreEqual(int3(4, 0, 5), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftX, ShuffleComponent.RightZ)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_shuffle_result_4() { int3 a = int3(0, 1, 2); @@ -1341,7 +1341,7 @@ public static void int3_shuffle_result_4() TestUtils.AreEqual(int4(2, 5, 0, 4), shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftX, ShuffleComponent.RightY)); } - [TestCase] + [TestCase /* For player builds */] public static void int3_EqualsObjectOverride() { TestUtils.IsFalse(new int3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestInt3x2.gen.cs b/src/Tests/Tests/Shared/TestInt3x2.gen.cs index 11b9edb4..769f2d00 100644 --- a/src/Tests/Tests/Shared/TestInt3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt3x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_zero() { TestUtils.AreEqual(0, int3x2.zero.c0.x); @@ -26,7 +26,7 @@ public static void int3x2_zero() TestUtils.AreEqual(0, int3x2.zero.c1.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_equal_wide_wide() { int3x2 a0 = int3x2(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098); @@ -50,7 +50,7 @@ public static void int3x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_equal_wide_scalar() { int3x2 a0 = int3x2(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405); @@ -74,7 +74,7 @@ public static void int3x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_equal_scalar_wide() { int a0 = (542329200); @@ -98,7 +98,7 @@ public static void int3x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_not_equal_wide_wide() { int3x2 a0 = int3x2(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892); @@ -122,7 +122,7 @@ public static void int3x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_not_equal_wide_scalar() { int3x2 a0 = int3x2(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802); @@ -146,7 +146,7 @@ public static void int3x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -170,7 +170,7 @@ public static void int3x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_less_wide_wide() { int3x2 a0 = int3x2(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342); @@ -194,7 +194,7 @@ public static void int3x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_less_wide_scalar() { int3x2 a0 = int3x2(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673); @@ -218,7 +218,7 @@ public static void int3x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_less_scalar_wide() { int a0 = (186400299); @@ -242,7 +242,7 @@ public static void int3x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_greater_wide_wide() { int3x2 a0 = int3x2(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491); @@ -266,7 +266,7 @@ public static void int3x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_greater_wide_scalar() { int3x2 a0 = int3x2(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635); @@ -290,7 +290,7 @@ public static void int3x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_greater_scalar_wide() { int a0 = (480938827); @@ -314,7 +314,7 @@ public static void int3x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_less_equal_wide_wide() { int3x2 a0 = int3x2(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627); @@ -338,7 +338,7 @@ public static void int3x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_less_equal_wide_scalar() { int3x2 a0 = int3x2(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632); @@ -362,7 +362,7 @@ public static void int3x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -386,7 +386,7 @@ public static void int3x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_greater_equal_wide_wide() { int3x2 a0 = int3x2(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564); @@ -410,7 +410,7 @@ public static void int3x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_greater_equal_wide_scalar() { int3x2 a0 = int3x2(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469); @@ -434,7 +434,7 @@ public static void int3x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -458,7 +458,7 @@ public static void int3x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_add_wide_wide() { int3x2 a0 = int3x2(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995); @@ -482,7 +482,7 @@ public static void int3x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_add_wide_scalar() { int3x2 a0 = int3x2(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732); @@ -506,7 +506,7 @@ public static void int3x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_add_scalar_wide() { int a0 = (359966320); @@ -530,7 +530,7 @@ public static void int3x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_sub_wide_wide() { int3x2 a0 = int3x2(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868); @@ -554,7 +554,7 @@ public static void int3x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_sub_wide_scalar() { int3x2 a0 = int3x2(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328); @@ -578,7 +578,7 @@ public static void int3x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_sub_scalar_wide() { int a0 = (893369501); @@ -602,7 +602,7 @@ public static void int3x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_mul_wide_wide() { int3x2 a0 = int3x2(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871); @@ -626,7 +626,7 @@ public static void int3x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_mul_wide_scalar() { int3x2 a0 = int3x2(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563); @@ -650,7 +650,7 @@ public static void int3x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -674,7 +674,7 @@ public static void int3x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_div_wide_wide() { int3x2 a0 = int3x2(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420); @@ -698,7 +698,7 @@ public static void int3x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_div_wide_scalar() { int3x2 a0 = int3x2(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346); @@ -722,7 +722,7 @@ public static void int3x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_div_scalar_wide() { int a0 = (519165704); @@ -746,7 +746,7 @@ public static void int3x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_mod_wide_wide() { int3x2 a0 = int3x2(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627); @@ -770,7 +770,7 @@ public static void int3x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_mod_wide_scalar() { int3x2 a0 = int3x2(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846); @@ -794,7 +794,7 @@ public static void int3x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_mod_scalar_wide() { int a0 = (933347930); @@ -818,7 +818,7 @@ public static void int3x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_plus() { int3x2 a0 = int3x2(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277); @@ -838,7 +838,7 @@ public static void int3x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_neg() { int3x2 a0 = int3x2(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493); @@ -858,7 +858,7 @@ public static void int3x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_prefix_inc() { int3x2 a0 = int3x2(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550); @@ -878,7 +878,7 @@ public static void int3x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_postfix_inc() { int3x2 a0 = int3x2(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229); @@ -898,7 +898,7 @@ public static void int3x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_prefix_dec() { int3x2 a0 = int3x2(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159); @@ -918,7 +918,7 @@ public static void int3x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_postfix_dec() { int3x2 a0 = int3x2(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869); @@ -938,7 +938,7 @@ public static void int3x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_bitwise_and_wide_wide() { int3x2 a0 = int3x2(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515); @@ -962,7 +962,7 @@ public static void int3x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_bitwise_and_wide_scalar() { int3x2 a0 = int3x2(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838); @@ -986,7 +986,7 @@ public static void int3x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1010,7 +1010,7 @@ public static void int3x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_bitwise_or_wide_wide() { int3x2 a0 = int3x2(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930); @@ -1034,7 +1034,7 @@ public static void int3x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_bitwise_or_wide_scalar() { int3x2 a0 = int3x2(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467); @@ -1058,7 +1058,7 @@ public static void int3x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1082,7 +1082,7 @@ public static void int3x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_bitwise_xor_wide_wide() { int3x2 a0 = int3x2(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850); @@ -1106,7 +1106,7 @@ public static void int3x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_bitwise_xor_wide_scalar() { int3x2 a0 = int3x2(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661); @@ -1130,7 +1130,7 @@ public static void int3x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1154,7 +1154,7 @@ public static void int3x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_left_shift() { int3x2 a0 = int3x2(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593); @@ -1178,7 +1178,7 @@ public static void int3x2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_right_shift() { int3x2 a0 = int3x2(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842); @@ -1202,7 +1202,7 @@ public static void int3x2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x2_operator_bitwise_not() { int3x2 a0 = int3x2(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399); @@ -1222,7 +1222,7 @@ public static void int3x2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void int3x2_EqualsObjectOverride() { TestUtils.IsFalse(new int3x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestInt3x3.gen.cs b/src/Tests/Tests/Shared/TestInt3x3.gen.cs index e5b804e0..c2a99c4f 100644 --- a/src/Tests/Tests/Shared/TestInt3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt3x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_zero() { TestUtils.AreEqual(0, int3x3.zero.c0.x); @@ -29,7 +29,7 @@ public static void int3x3_zero() TestUtils.AreEqual(0, int3x3.zero.c2.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_identity() { TestUtils.AreEqual(1, int3x3.identity.c0.x); @@ -43,7 +43,7 @@ public static void int3x3_identity() TestUtils.AreEqual(1, int3x3.identity.c2.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_equal_wide_wide() { int3x3 a0 = int3x3(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367); @@ -67,7 +67,7 @@ public static void int3x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_equal_wide_scalar() { int3x3 a0 = int3x3(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998); @@ -91,7 +91,7 @@ public static void int3x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_equal_scalar_wide() { int a0 = (542329200); @@ -115,7 +115,7 @@ public static void int3x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_not_equal_wide_wide() { int3x3 a0 = int3x3(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678); @@ -139,7 +139,7 @@ public static void int3x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_not_equal_wide_scalar() { int3x3 a0 = int3x3(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423); @@ -163,7 +163,7 @@ public static void int3x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -187,7 +187,7 @@ public static void int3x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_less_wide_wide() { int3x3 a0 = int3x3(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312); @@ -211,7 +211,7 @@ public static void int3x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_less_wide_scalar() { int3x3 a0 = int3x3(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597); @@ -235,7 +235,7 @@ public static void int3x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_less_scalar_wide() { int a0 = (186400299); @@ -259,7 +259,7 @@ public static void int3x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_greater_wide_wide() { int3x3 a0 = int3x3(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133); @@ -283,7 +283,7 @@ public static void int3x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_greater_wide_scalar() { int3x3 a0 = int3x3(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855); @@ -307,7 +307,7 @@ public static void int3x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_greater_scalar_wide() { int a0 = (480938827); @@ -331,7 +331,7 @@ public static void int3x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_less_equal_wide_wide() { int3x3 a0 = int3x3(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541); @@ -355,7 +355,7 @@ public static void int3x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_less_equal_wide_scalar() { int3x3 a0 = int3x3(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375); @@ -379,7 +379,7 @@ public static void int3x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -403,7 +403,7 @@ public static void int3x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_greater_equal_wide_wide() { int3x3 a0 = int3x3(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826); @@ -427,7 +427,7 @@ public static void int3x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_greater_equal_wide_scalar() { int3x3 a0 = int3x3(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669); @@ -451,7 +451,7 @@ public static void int3x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -475,7 +475,7 @@ public static void int3x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_add_wide_wide() { int3x3 a0 = int3x3(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600); @@ -499,7 +499,7 @@ public static void int3x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_add_wide_scalar() { int3x3 a0 = int3x3(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008); @@ -523,7 +523,7 @@ public static void int3x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_add_scalar_wide() { int a0 = (359966320); @@ -547,7 +547,7 @@ public static void int3x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_sub_wide_wide() { int3x3 a0 = int3x3(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315); @@ -571,7 +571,7 @@ public static void int3x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_sub_wide_scalar() { int3x3 a0 = int3x3(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113); @@ -595,7 +595,7 @@ public static void int3x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_sub_scalar_wide() { int a0 = (893369501); @@ -619,7 +619,7 @@ public static void int3x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_mul_wide_wide() { int3x3 a0 = int3x3(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583); @@ -643,7 +643,7 @@ public static void int3x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_mul_wide_scalar() { int3x3 a0 = int3x3(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059); @@ -667,7 +667,7 @@ public static void int3x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -691,7 +691,7 @@ public static void int3x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_div_wide_wide() { int3x3 a0 = int3x3(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195); @@ -715,7 +715,7 @@ public static void int3x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_div_wide_scalar() { int3x3 a0 = int3x3(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136); @@ -739,7 +739,7 @@ public static void int3x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_div_scalar_wide() { int a0 = (519165704); @@ -763,7 +763,7 @@ public static void int3x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_mod_wide_wide() { int3x3 a0 = int3x3(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101); @@ -787,7 +787,7 @@ public static void int3x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_mod_wide_scalar() { int3x3 a0 = int3x3(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144); @@ -811,7 +811,7 @@ public static void int3x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_mod_scalar_wide() { int a0 = (933347930); @@ -835,7 +835,7 @@ public static void int3x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_plus() { int3x3 a0 = int3x3(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671); @@ -855,7 +855,7 @@ public static void int3x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_neg() { int3x3 a0 = int3x3(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525); @@ -875,7 +875,7 @@ public static void int3x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_prefix_inc() { int3x3 a0 = int3x3(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994); @@ -895,7 +895,7 @@ public static void int3x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_postfix_inc() { int3x3 a0 = int3x3(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247); @@ -915,7 +915,7 @@ public static void int3x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_prefix_dec() { int3x3 a0 = int3x3(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745); @@ -935,7 +935,7 @@ public static void int3x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_postfix_dec() { int3x3 a0 = int3x3(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889); @@ -955,7 +955,7 @@ public static void int3x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_bitwise_and_wide_wide() { int3x3 a0 = int3x3(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656); @@ -979,7 +979,7 @@ public static void int3x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_bitwise_and_wide_scalar() { int3x3 a0 = int3x3(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263); @@ -1003,7 +1003,7 @@ public static void int3x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1027,7 +1027,7 @@ public static void int3x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_bitwise_or_wide_wide() { int3x3 a0 = int3x3(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869); @@ -1051,7 +1051,7 @@ public static void int3x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_bitwise_or_wide_scalar() { int3x3 a0 = int3x3(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307); @@ -1075,7 +1075,7 @@ public static void int3x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1099,7 +1099,7 @@ public static void int3x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_bitwise_xor_wide_wide() { int3x3 a0 = int3x3(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251); @@ -1123,7 +1123,7 @@ public static void int3x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_bitwise_xor_wide_scalar() { int3x3 a0 = int3x3(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873); @@ -1147,7 +1147,7 @@ public static void int3x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1171,7 +1171,7 @@ public static void int3x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_left_shift() { int3x3 a0 = int3x3(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727); @@ -1195,7 +1195,7 @@ public static void int3x3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_right_shift() { int3x3 a0 = int3x3(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393); @@ -1219,7 +1219,7 @@ public static void int3x3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x3_operator_bitwise_not() { int3x3 a0 = int3x3(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628); @@ -1239,7 +1239,7 @@ public static void int3x3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void int3x3_EqualsObjectOverride() { TestUtils.IsFalse(new int3x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestInt3x4.gen.cs b/src/Tests/Tests/Shared/TestInt3x4.gen.cs index 254a797c..449377a8 100644 --- a/src/Tests/Tests/Shared/TestInt3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt3x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_zero() { TestUtils.AreEqual(0, int3x4.zero.c0.x); @@ -32,7 +32,7 @@ public static void int3x4_zero() TestUtils.AreEqual(0, int3x4.zero.c3.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_equal_wide_wide() { int3x4 a0 = int3x4(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367, 727143393, 2061243891, 184669837); @@ -56,7 +56,7 @@ public static void int3x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_equal_wide_scalar() { int3x4 a0 = int3x4(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998, 691955848, 1926262965, 1851546137); @@ -80,7 +80,7 @@ public static void int3x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_equal_scalar_wide() { int a0 = (542329200); @@ -104,7 +104,7 @@ public static void int3x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_not_equal_wide_wide() { int3x4 a0 = int3x4(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678, 13079405, 1413841590, 1076166545); @@ -128,7 +128,7 @@ public static void int3x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_not_equal_wide_scalar() { int3x4 a0 = int3x4(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423, 484398043, 506946952, 226568494); @@ -152,7 +152,7 @@ public static void int3x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -176,7 +176,7 @@ public static void int3x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_less_wide_wide() { int3x4 a0 = int3x4(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312, 337757077, 1081797900, 1336745069); @@ -200,7 +200,7 @@ public static void int3x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_less_wide_scalar() { int3x4 a0 = int3x4(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597, 1546212312, 1718582899, 1648393417); @@ -224,7 +224,7 @@ public static void int3x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_less_scalar_wide() { int a0 = (186400299); @@ -248,7 +248,7 @@ public static void int3x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_greater_wide_wide() { int3x4 a0 = int3x4(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133, 1744374599, 821751047, 467646903); @@ -272,7 +272,7 @@ public static void int3x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_greater_wide_scalar() { int3x4 a0 = int3x4(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855, 1433540517, 566635217, 1773305960); @@ -296,7 +296,7 @@ public static void int3x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_greater_scalar_wide() { int a0 = (480938827); @@ -320,7 +320,7 @@ public static void int3x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_less_equal_wide_wide() { int3x4 a0 = int3x4(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541, 457043352, 1123282035, 1001842946); @@ -344,7 +344,7 @@ public static void int3x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_less_equal_wide_scalar() { int3x4 a0 = int3x4(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375, 509818792, 1910488590, 85452501); @@ -368,7 +368,7 @@ public static void int3x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -392,7 +392,7 @@ public static void int3x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_greater_equal_wide_wide() { int3x4 a0 = int3x4(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826, 631221455, 1456286159, 961342752); @@ -416,7 +416,7 @@ public static void int3x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_greater_equal_wide_scalar() { int3x4 a0 = int3x4(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669, 411667685, 1998610091, 4652390); @@ -440,7 +440,7 @@ public static void int3x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -464,7 +464,7 @@ public static void int3x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_add_wide_wide() { int3x4 a0 = int3x4(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600, 976898058, 1915056423, 121374462); @@ -488,7 +488,7 @@ public static void int3x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_add_wide_scalar() { int3x4 a0 = int3x4(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008, 1246759684, 1088001167, 57252642); @@ -512,7 +512,7 @@ public static void int3x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_add_scalar_wide() { int a0 = (359966320); @@ -536,7 +536,7 @@ public static void int3x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_sub_wide_wide() { int3x4 a0 = int3x4(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315, 2011295463, 48079003, 591379285); @@ -560,7 +560,7 @@ public static void int3x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_sub_wide_scalar() { int3x4 a0 = int3x4(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113, 1108005498, 304369206, 999244508); @@ -584,7 +584,7 @@ public static void int3x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_sub_scalar_wide() { int a0 = (893369501); @@ -608,7 +608,7 @@ public static void int3x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_mul_wide_wide() { int3x4 a0 = int3x4(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583, 1835691886, 385626539, 85934842); @@ -632,7 +632,7 @@ public static void int3x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_mul_wide_scalar() { int3x4 a0 = int3x4(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059, 1186560810, 1584938026, 1357601203); @@ -656,7 +656,7 @@ public static void int3x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -680,7 +680,7 @@ public static void int3x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_div_wide_wide() { int3x4 a0 = int3x4(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195, 166625280, 1493729000, 1831739736); @@ -704,7 +704,7 @@ public static void int3x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_div_wide_scalar() { int3x4 a0 = int3x4(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136, 25493909, 1196815948, 123300377); @@ -728,7 +728,7 @@ public static void int3x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_div_scalar_wide() { int a0 = (519165704); @@ -752,7 +752,7 @@ public static void int3x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_mod_wide_wide() { int3x4 a0 = int3x4(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101, 17598216, 1474345080, 1681376293); @@ -776,7 +776,7 @@ public static void int3x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_mod_wide_scalar() { int3x4 a0 = int3x4(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144, 1287035793, 1743722161, 475209785); @@ -800,7 +800,7 @@ public static void int3x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_mod_scalar_wide() { int a0 = (933347930); @@ -824,7 +824,7 @@ public static void int3x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_plus() { int3x4 a0 = int3x4(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671, 1084131995, 195779102, 2131702223); @@ -844,7 +844,7 @@ public static void int3x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_neg() { int3x4 a0 = int3x4(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525, 270503114, 1928771252, 1427605822); @@ -864,7 +864,7 @@ public static void int3x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_prefix_inc() { int3x4 a0 = int3x4(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994, 1915989169, 1348278302, 129540735); @@ -884,7 +884,7 @@ public static void int3x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_postfix_inc() { int3x4 a0 = int3x4(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247, 1384002775, 389844650, 1159795446); @@ -904,7 +904,7 @@ public static void int3x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_prefix_dec() { int3x4 a0 = int3x4(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745, 2059077641, 1169239112, 1862369220); @@ -924,7 +924,7 @@ public static void int3x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_postfix_dec() { int3x4 a0 = int3x4(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889, 862428933, 1401191870, 2080259851); @@ -944,7 +944,7 @@ public static void int3x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_bitwise_and_wide_wide() { int3x4 a0 = int3x4(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656, 53199569, 1752363533, 1303061302); @@ -968,7 +968,7 @@ public static void int3x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_bitwise_and_wide_scalar() { int3x4 a0 = int3x4(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263, 327392481, 1619794917, 2143619546); @@ -992,7 +992,7 @@ public static void int3x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1016,7 +1016,7 @@ public static void int3x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_bitwise_or_wide_wide() { int3x4 a0 = int3x4(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869, 1912038362, 1569990624, 1490718227); @@ -1040,7 +1040,7 @@ public static void int3x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_bitwise_or_wide_scalar() { int3x4 a0 = int3x4(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307, 1050875188, 341855232, 1317039676); @@ -1064,7 +1064,7 @@ public static void int3x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1088,7 +1088,7 @@ public static void int3x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_bitwise_xor_wide_wide() { int3x4 a0 = int3x4(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251, 230477768, 1103646442, 1503102919); @@ -1112,7 +1112,7 @@ public static void int3x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_bitwise_xor_wide_scalar() { int3x4 a0 = int3x4(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873, 835837496, 954341348, 1464576786); @@ -1136,7 +1136,7 @@ public static void int3x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1160,7 +1160,7 @@ public static void int3x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_left_shift() { int3x4 a0 = int3x4(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727, 849916599, 1271350845, 108441902); @@ -1184,7 +1184,7 @@ public static void int3x4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_right_shift() { int3x4 a0 = int3x4(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393, 1923166649, 102096936, 400863878); @@ -1208,7 +1208,7 @@ public static void int3x4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3x4_operator_bitwise_not() { int3x4 a0 = int3x4(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628, 787710759, 875964607, 96456785); @@ -1228,7 +1228,7 @@ public static void int3x4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void int3x4_EqualsObjectOverride() { TestUtils.IsFalse(new int3x4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestInt4.gen.cs b/src/Tests/Tests/Shared/TestInt4.gen.cs index 065bb609..5aaff365 100644 --- a/src/Tests/Tests/Shared/TestInt4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_zero() { TestUtils.AreEqual(0, int4.zero.x); @@ -24,7 +24,7 @@ public static void int4_zero() TestUtils.AreEqual(0, int4.zero.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_constructor() { int4 a = new int4(1, 2, 3, 4); @@ -34,7 +34,7 @@ public static void int4_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_scalar_constructor() { int4 a = new int4(17); @@ -44,7 +44,7 @@ public static void int4_scalar_constructor() TestUtils.AreEqual(17, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_static_constructor() { int4 a = int4(1, 2, 3, 4); @@ -54,7 +54,7 @@ public static void int4_static_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_static_scalar_constructor() { int4 a = int4(17); @@ -64,7 +64,7 @@ public static void int4_static_scalar_constructor() TestUtils.AreEqual(17, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_equal_wide_wide() { int4 a0 = int4(2105871082, 35218899, 1550755093, 764676020); @@ -88,7 +88,7 @@ public static void int4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_equal_wide_scalar() { int4 a0 = int4(437822262, 2020661134, 541786900, 853113810); @@ -112,7 +112,7 @@ public static void int4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_equal_scalar_wide() { int a0 = (542329200); @@ -136,7 +136,7 @@ public static void int4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_not_equal_wide_wide() { int4 a0 = int4(1977284100, 1293292704, 1547283851, 422428953); @@ -160,7 +160,7 @@ public static void int4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_not_equal_wide_scalar() { int4 a0 = int4(1038269360, 1427812625, 103361237, 1347017023); @@ -184,7 +184,7 @@ public static void int4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -208,7 +208,7 @@ public static void int4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_less_wide_wide() { int4 a0 = int4(1486550609, 1779244308, 1602148045, 1614085440); @@ -232,7 +232,7 @@ public static void int4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_less_wide_scalar() { int4 a0 = int4(796797557, 670113454, 933579492, 278884514); @@ -256,7 +256,7 @@ public static void int4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_less_scalar_wide() { int a0 = (186400299); @@ -280,7 +280,7 @@ public static void int4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_greater_wide_wide() { int4 a0 = int4(2087717754, 1725569452, 1298066182, 1693943616); @@ -304,7 +304,7 @@ public static void int4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_greater_wide_scalar() { int4 a0 = int4(1208626274, 239697208, 1979453345, 1253474001); @@ -328,7 +328,7 @@ public static void int4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_greater_scalar_wide() { int a0 = (480938827); @@ -352,7 +352,7 @@ public static void int4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_less_equal_wide_wide() { int4 a0 = int4(154092149, 1515170149, 1083970332, 785807178); @@ -376,7 +376,7 @@ public static void int4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_less_equal_wide_scalar() { int4 a0 = int4(1479531977, 1427983411, 415250630, 1245345407); @@ -400,7 +400,7 @@ public static void int4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -424,7 +424,7 @@ public static void int4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_greater_equal_wide_wide() { int4 a0 = int4(8538378, 2131749726, 265427108, 523609761); @@ -448,7 +448,7 @@ public static void int4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_greater_equal_wide_scalar() { int4 a0 = int4(2049236663, 182691143, 634973382, 1197012109); @@ -472,7 +472,7 @@ public static void int4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -496,7 +496,7 @@ public static void int4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_add_wide_wide() { int4 a0 = int4(2135171378, 21433296, 1954723494, 683604307); @@ -520,7 +520,7 @@ public static void int4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_add_wide_scalar() { int4 a0 = int4(665815972, 1783729250, 1591678394, 1284528538); @@ -544,7 +544,7 @@ public static void int4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_add_scalar_wide() { int a0 = (359966320); @@ -568,7 +568,7 @@ public static void int4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_sub_wide_wide() { int4 a0 = int4(1410318491, 1097280168, 1827039044, 28881338); @@ -592,7 +592,7 @@ public static void int4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_sub_wide_scalar() { int4 a0 = int4(1508669340, 1594795463, 266707545, 643102647); @@ -616,7 +616,7 @@ public static void int4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_sub_scalar_wide() { int a0 = (893369501); @@ -640,7 +640,7 @@ public static void int4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_mul_wide_wide() { int4 a0 = int4(61417577, 219585476, 1362520891, 1511084277); @@ -664,7 +664,7 @@ public static void int4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_mul_wide_scalar() { int4 a0 = int4(871746615, 492532311, 570557670, 2142306629); @@ -688,7 +688,7 @@ public static void int4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -712,7 +712,7 @@ public static void int4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_div_wide_wide() { int4 a0 = int4(333171510, 858154903, 1181365836, 671357749); @@ -736,7 +736,7 @@ public static void int4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_div_wide_scalar() { int4 a0 = int4(1433072926, 1073958635, 1195142312, 536596719); @@ -760,7 +760,7 @@ public static void int4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_div_scalar_wide() { int a0 = (519165704); @@ -784,7 +784,7 @@ public static void int4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_mod_wide_wide() { int4 a0 = int4(258342924, 1454754891, 723352342, 1981431473); @@ -808,7 +808,7 @@ public static void int4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_mod_wide_scalar() { int4 a0 = int4(560988938, 629524514, 767711194, 434281967); @@ -832,7 +832,7 @@ public static void int4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_mod_scalar_wide() { int a0 = (933347930); @@ -856,7 +856,7 @@ public static void int4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_plus() { int4 a0 = int4(195392567, 222719748, 1002351013, 1570765263); @@ -876,7 +876,7 @@ public static void int4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_neg() { int4 a0 = int4(1385088677, 94114564, 1350664872, 1458616659); @@ -896,7 +896,7 @@ public static void int4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_prefix_inc() { int4 a0 = int4(780471723, 954741756, 272723451, 2142862245); @@ -916,7 +916,7 @@ public static void int4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_postfix_inc() { int4 a0 = int4(241865086, 2145821641, 1596166022, 803592338); @@ -936,7 +936,7 @@ public static void int4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_prefix_dec() { int4 a0 = int4(1331961415, 1612382200, 1401591249, 2042075388); @@ -956,7 +956,7 @@ public static void int4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_postfix_dec() { int4 a0 = int4(1870005937, 1708534798, 704493460, 462940703); @@ -976,7 +976,7 @@ public static void int4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_bitwise_and_wide_wide() { int4 a0 = int4(1055241304, 859321394, 1088358961, 2090949513); @@ -1000,7 +1000,7 @@ public static void int4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_bitwise_and_wide_scalar() { int4 a0 = int4(1513158868, 284695609, 734595037, 1566510707); @@ -1024,7 +1024,7 @@ public static void int4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1048,7 +1048,7 @@ public static void int4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_bitwise_or_wide_wide() { int4 a0 = int4(1920951869, 1750772852, 1420019191, 732977093); @@ -1072,7 +1072,7 @@ public static void int4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_bitwise_or_wide_scalar() { int4 a0 = int4(1295304853, 1307252624, 350194630, 1128063578); @@ -1096,7 +1096,7 @@ public static void int4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1120,7 +1120,7 @@ public static void int4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_bitwise_xor_wide_wide() { int4 a0 = int4(1843655608, 362425681, 640805534, 1342040268); @@ -1144,7 +1144,7 @@ public static void int4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_bitwise_xor_wide_scalar() { int4 a0 = int4(169345668, 176087064, 2084362901, 1663924004); @@ -1168,7 +1168,7 @@ public static void int4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1192,7 +1192,7 @@ public static void int4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_left_shift() { int4 a0 = int4(1129100049, 829482269, 1571297368, 443753193); @@ -1216,7 +1216,7 @@ public static void int4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_right_shift() { int4 a0 = int4(809126085, 908563670, 763568837, 1986717290); @@ -1240,7 +1240,7 @@ public static void int4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_operator_bitwise_not() { int4 a0 = int4(111796841, 603562399, 745091931, 853183268); @@ -1260,7 +1260,7 @@ public static void int4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_shuffle_result_1() { int4 a = int4(0, 1, 2, 3); @@ -1276,7 +1276,7 @@ public static void int4_shuffle_result_1() TestUtils.AreEqual((7), shuffle(a, b, ShuffleComponent.RightW)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_shuffle_result_2() { int4 a = int4(0, 1, 2, 3); @@ -1300,7 +1300,7 @@ public static void int4_shuffle_result_2() TestUtils.AreEqual(int2(1, 3), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftW)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_shuffle_result_3() { int4 a = int4(0, 1, 2, 3); @@ -1324,7 +1324,7 @@ public static void int4_shuffle_result_3() TestUtils.AreEqual(int3(5, 1, 7), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.RightW)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_shuffle_result_4() { int4 a = int4(0, 1, 2, 3); @@ -1348,7 +1348,7 @@ public static void int4_shuffle_result_4() TestUtils.AreEqual(int4(3, 7, 1, 5), shuffle(a, b, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.LeftY, ShuffleComponent.RightY)); } - [TestCase] + [TestCase /* For player builds */] public static void int4_EqualsObjectOverride() { TestUtils.IsFalse(new int4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestInt4x2.gen.cs b/src/Tests/Tests/Shared/TestInt4x2.gen.cs index 564c7aa7..c4528cd7 100644 --- a/src/Tests/Tests/Shared/TestInt4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt4x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_zero() { TestUtils.AreEqual(0, int4x2.zero.c0.x); @@ -28,7 +28,7 @@ public static void int4x2_zero() TestUtils.AreEqual(0, int4x2.zero.c1.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_equal_wide_wide() { int4x2 a0 = int4x2(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316); @@ -52,7 +52,7 @@ public static void int4x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_equal_wide_scalar() { int4x2 a0 = int4x2(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849); @@ -76,7 +76,7 @@ public static void int4x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_equal_scalar_wide() { int a0 = (542329200); @@ -100,7 +100,7 @@ public static void int4x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_not_equal_wide_wide() { int4x2 a0 = int4x2(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074); @@ -124,7 +124,7 @@ public static void int4x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_not_equal_wide_scalar() { int4x2 a0 = int4x2(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717); @@ -148,7 +148,7 @@ public static void int4x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -172,7 +172,7 @@ public static void int4x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_less_wide_wide() { int4x2 a0 = int4x2(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431); @@ -196,7 +196,7 @@ public static void int4x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_less_wide_scalar() { int4x2 a0 = int4x2(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600); @@ -220,7 +220,7 @@ public static void int4x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_less_scalar_wide() { int a0 = (186400299); @@ -244,7 +244,7 @@ public static void int4x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_greater_wide_wide() { int4x2 a0 = int4x2(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508); @@ -268,7 +268,7 @@ public static void int4x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_greater_wide_scalar() { int4x2 a0 = int4x2(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098); @@ -292,7 +292,7 @@ public static void int4x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_greater_scalar_wide() { int a0 = (480938827); @@ -316,7 +316,7 @@ public static void int4x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_less_equal_wide_wide() { int4x2 a0 = int4x2(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725); @@ -340,7 +340,7 @@ public static void int4x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_less_equal_wide_scalar() { int4x2 a0 = int4x2(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307); @@ -364,7 +364,7 @@ public static void int4x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -388,7 +388,7 @@ public static void int4x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_greater_equal_wide_wide() { int4x2 a0 = int4x2(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970); @@ -412,7 +412,7 @@ public static void int4x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_greater_equal_wide_scalar() { int4x2 a0 = int4x2(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187); @@ -436,7 +436,7 @@ public static void int4x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -460,7 +460,7 @@ public static void int4x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_add_wide_wide() { int4x2 a0 = int4x2(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062); @@ -484,7 +484,7 @@ public static void int4x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_add_wide_scalar() { int4x2 a0 = int4x2(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017); @@ -508,7 +508,7 @@ public static void int4x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_add_scalar_wide() { int a0 = (359966320); @@ -532,7 +532,7 @@ public static void int4x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_sub_wide_wide() { int4x2 a0 = int4x2(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215); @@ -556,7 +556,7 @@ public static void int4x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_sub_wide_scalar() { int4x2 a0 = int4x2(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511); @@ -580,7 +580,7 @@ public static void int4x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_sub_scalar_wide() { int a0 = (893369501); @@ -604,7 +604,7 @@ public static void int4x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_mul_wide_wide() { int4x2 a0 = int4x2(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644); @@ -628,7 +628,7 @@ public static void int4x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_mul_wide_scalar() { int4x2 a0 = int4x2(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514); @@ -652,7 +652,7 @@ public static void int4x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -676,7 +676,7 @@ public static void int4x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_div_wide_wide() { int4x2 a0 = int4x2(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814); @@ -700,7 +700,7 @@ public static void int4x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_div_wide_scalar() { int4x2 a0 = int4x2(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670); @@ -724,7 +724,7 @@ public static void int4x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_div_scalar_wide() { int a0 = (519165704); @@ -748,7 +748,7 @@ public static void int4x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_mod_wide_wide() { int4x2 a0 = int4x2(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004); @@ -772,7 +772,7 @@ public static void int4x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_mod_wide_scalar() { int4x2 a0 = int4x2(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916); @@ -796,7 +796,7 @@ public static void int4x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_mod_scalar_wide() { int a0 = (933347930); @@ -820,7 +820,7 @@ public static void int4x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_plus() { int4x2 a0 = int4x2(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785); @@ -840,7 +840,7 @@ public static void int4x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_neg() { int4x2 a0 = int4x2(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961); @@ -860,7 +860,7 @@ public static void int4x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_prefix_inc() { int4x2 a0 = int4x2(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162); @@ -880,7 +880,7 @@ public static void int4x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_postfix_inc() { int4x2 a0 = int4x2(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244); @@ -900,7 +900,7 @@ public static void int4x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_prefix_dec() { int4x2 a0 = int4x2(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664); @@ -920,7 +920,7 @@ public static void int4x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_postfix_dec() { int4x2 a0 = int4x2(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351); @@ -940,7 +940,7 @@ public static void int4x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_bitwise_and_wide_wide() { int4x2 a0 = int4x2(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753); @@ -964,7 +964,7 @@ public static void int4x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_bitwise_and_wide_scalar() { int4x2 a0 = int4x2(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908); @@ -988,7 +988,7 @@ public static void int4x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1012,7 +1012,7 @@ public static void int4x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_bitwise_or_wide_wide() { int4x2 a0 = int4x2(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323); @@ -1036,7 +1036,7 @@ public static void int4x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_bitwise_or_wide_scalar() { int4x2 a0 = int4x2(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350); @@ -1060,7 +1060,7 @@ public static void int4x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1084,7 +1084,7 @@ public static void int4x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_bitwise_xor_wide_wide() { int4x2 a0 = int4x2(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658); @@ -1108,7 +1108,7 @@ public static void int4x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_bitwise_xor_wide_scalar() { int4x2 a0 = int4x2(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783); @@ -1132,7 +1132,7 @@ public static void int4x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1156,7 +1156,7 @@ public static void int4x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_left_shift() { int4x2 a0 = int4x2(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862); @@ -1180,7 +1180,7 @@ public static void int4x2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_right_shift() { int4x2 a0 = int4x2(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632); @@ -1204,7 +1204,7 @@ public static void int4x2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x2_operator_bitwise_not() { int4x2 a0 = int4x2(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135); @@ -1224,7 +1224,7 @@ public static void int4x2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void int4x2_EqualsObjectOverride() { TestUtils.IsFalse(new int4x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestInt4x3.gen.cs b/src/Tests/Tests/Shared/TestInt4x3.gen.cs index 6fdd2f07..fec49565 100644 --- a/src/Tests/Tests/Shared/TestInt4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt4x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_zero() { TestUtils.AreEqual(0, int4x3.zero.c0.x); @@ -32,7 +32,7 @@ public static void int4x3_zero() TestUtils.AreEqual(0, int4x3.zero.c2.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_equal_wide_wide() { int4x3 a0 = int4x3(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367, 727143393, 2061243891, 184669837); @@ -56,7 +56,7 @@ public static void int4x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_equal_wide_scalar() { int4x3 a0 = int4x3(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998, 691955848, 1926262965, 1851546137); @@ -80,7 +80,7 @@ public static void int4x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_equal_scalar_wide() { int a0 = (542329200); @@ -104,7 +104,7 @@ public static void int4x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_not_equal_wide_wide() { int4x3 a0 = int4x3(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678, 13079405, 1413841590, 1076166545); @@ -128,7 +128,7 @@ public static void int4x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_not_equal_wide_scalar() { int4x3 a0 = int4x3(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423, 484398043, 506946952, 226568494); @@ -152,7 +152,7 @@ public static void int4x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -176,7 +176,7 @@ public static void int4x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_less_wide_wide() { int4x3 a0 = int4x3(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312, 337757077, 1081797900, 1336745069); @@ -200,7 +200,7 @@ public static void int4x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_less_wide_scalar() { int4x3 a0 = int4x3(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597, 1546212312, 1718582899, 1648393417); @@ -224,7 +224,7 @@ public static void int4x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_less_scalar_wide() { int a0 = (186400299); @@ -248,7 +248,7 @@ public static void int4x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_greater_wide_wide() { int4x3 a0 = int4x3(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133, 1744374599, 821751047, 467646903); @@ -272,7 +272,7 @@ public static void int4x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_greater_wide_scalar() { int4x3 a0 = int4x3(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855, 1433540517, 566635217, 1773305960); @@ -296,7 +296,7 @@ public static void int4x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_greater_scalar_wide() { int a0 = (480938827); @@ -320,7 +320,7 @@ public static void int4x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_less_equal_wide_wide() { int4x3 a0 = int4x3(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541, 457043352, 1123282035, 1001842946); @@ -344,7 +344,7 @@ public static void int4x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_less_equal_wide_scalar() { int4x3 a0 = int4x3(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375, 509818792, 1910488590, 85452501); @@ -368,7 +368,7 @@ public static void int4x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -392,7 +392,7 @@ public static void int4x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_greater_equal_wide_wide() { int4x3 a0 = int4x3(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826, 631221455, 1456286159, 961342752); @@ -416,7 +416,7 @@ public static void int4x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_greater_equal_wide_scalar() { int4x3 a0 = int4x3(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669, 411667685, 1998610091, 4652390); @@ -440,7 +440,7 @@ public static void int4x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -464,7 +464,7 @@ public static void int4x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_add_wide_wide() { int4x3 a0 = int4x3(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600, 976898058, 1915056423, 121374462); @@ -488,7 +488,7 @@ public static void int4x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_add_wide_scalar() { int4x3 a0 = int4x3(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008, 1246759684, 1088001167, 57252642); @@ -512,7 +512,7 @@ public static void int4x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_add_scalar_wide() { int a0 = (359966320); @@ -536,7 +536,7 @@ public static void int4x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_sub_wide_wide() { int4x3 a0 = int4x3(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315, 2011295463, 48079003, 591379285); @@ -560,7 +560,7 @@ public static void int4x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_sub_wide_scalar() { int4x3 a0 = int4x3(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113, 1108005498, 304369206, 999244508); @@ -584,7 +584,7 @@ public static void int4x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_sub_scalar_wide() { int a0 = (893369501); @@ -608,7 +608,7 @@ public static void int4x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_mul_wide_wide() { int4x3 a0 = int4x3(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583, 1835691886, 385626539, 85934842); @@ -632,7 +632,7 @@ public static void int4x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_mul_wide_scalar() { int4x3 a0 = int4x3(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059, 1186560810, 1584938026, 1357601203); @@ -656,7 +656,7 @@ public static void int4x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -680,7 +680,7 @@ public static void int4x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_div_wide_wide() { int4x3 a0 = int4x3(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195, 166625280, 1493729000, 1831739736); @@ -704,7 +704,7 @@ public static void int4x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_div_wide_scalar() { int4x3 a0 = int4x3(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136, 25493909, 1196815948, 123300377); @@ -728,7 +728,7 @@ public static void int4x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_div_scalar_wide() { int a0 = (519165704); @@ -752,7 +752,7 @@ public static void int4x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_mod_wide_wide() { int4x3 a0 = int4x3(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101, 17598216, 1474345080, 1681376293); @@ -776,7 +776,7 @@ public static void int4x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_mod_wide_scalar() { int4x3 a0 = int4x3(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144, 1287035793, 1743722161, 475209785); @@ -800,7 +800,7 @@ public static void int4x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_mod_scalar_wide() { int a0 = (933347930); @@ -824,7 +824,7 @@ public static void int4x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_plus() { int4x3 a0 = int4x3(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671, 1084131995, 195779102, 2131702223); @@ -844,7 +844,7 @@ public static void int4x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_neg() { int4x3 a0 = int4x3(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525, 270503114, 1928771252, 1427605822); @@ -864,7 +864,7 @@ public static void int4x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_prefix_inc() { int4x3 a0 = int4x3(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994, 1915989169, 1348278302, 129540735); @@ -884,7 +884,7 @@ public static void int4x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_postfix_inc() { int4x3 a0 = int4x3(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247, 1384002775, 389844650, 1159795446); @@ -904,7 +904,7 @@ public static void int4x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_prefix_dec() { int4x3 a0 = int4x3(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745, 2059077641, 1169239112, 1862369220); @@ -924,7 +924,7 @@ public static void int4x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_postfix_dec() { int4x3 a0 = int4x3(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889, 862428933, 1401191870, 2080259851); @@ -944,7 +944,7 @@ public static void int4x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_bitwise_and_wide_wide() { int4x3 a0 = int4x3(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656, 53199569, 1752363533, 1303061302); @@ -968,7 +968,7 @@ public static void int4x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_bitwise_and_wide_scalar() { int4x3 a0 = int4x3(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263, 327392481, 1619794917, 2143619546); @@ -992,7 +992,7 @@ public static void int4x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1016,7 +1016,7 @@ public static void int4x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_bitwise_or_wide_wide() { int4x3 a0 = int4x3(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869, 1912038362, 1569990624, 1490718227); @@ -1040,7 +1040,7 @@ public static void int4x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_bitwise_or_wide_scalar() { int4x3 a0 = int4x3(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307, 1050875188, 341855232, 1317039676); @@ -1064,7 +1064,7 @@ public static void int4x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1088,7 +1088,7 @@ public static void int4x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_bitwise_xor_wide_wide() { int4x3 a0 = int4x3(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251, 230477768, 1103646442, 1503102919); @@ -1112,7 +1112,7 @@ public static void int4x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_bitwise_xor_wide_scalar() { int4x3 a0 = int4x3(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873, 835837496, 954341348, 1464576786); @@ -1136,7 +1136,7 @@ public static void int4x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1160,7 +1160,7 @@ public static void int4x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_left_shift() { int4x3 a0 = int4x3(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727, 849916599, 1271350845, 108441902); @@ -1184,7 +1184,7 @@ public static void int4x3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_right_shift() { int4x3 a0 = int4x3(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393, 1923166649, 102096936, 400863878); @@ -1208,7 +1208,7 @@ public static void int4x3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x3_operator_bitwise_not() { int4x3 a0 = int4x3(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628, 787710759, 875964607, 96456785); @@ -1228,7 +1228,7 @@ public static void int4x3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void int4x3_EqualsObjectOverride() { TestUtils.IsFalse(new int4x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestInt4x4.gen.cs b/src/Tests/Tests/Shared/TestInt4x4.gen.cs index 87f3887b..81786fb7 100644 --- a/src/Tests/Tests/Shared/TestInt4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt4x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_zero() { TestUtils.AreEqual(0, int4x4.zero.c0.x); @@ -36,7 +36,7 @@ public static void int4x4_zero() TestUtils.AreEqual(0, int4x4.zero.c3.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_identity() { TestUtils.AreEqual(1, int4x4.identity.c0.x); @@ -57,7 +57,7 @@ public static void int4x4_identity() TestUtils.AreEqual(1, int4x4.identity.c3.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_equal_wide_wide() { int4x4 a0 = int4x4(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367, 727143393, 2061243891, 184669837, 1303661760, 2044073738, 370395888, 1822916805); @@ -81,7 +81,7 @@ public static void int4x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_equal_wide_scalar() { int4x4 a0 = int4x4(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998, 691955848, 1926262965, 1851546137, 712957637, 2028784869, 1049962241, 1836975611); @@ -105,7 +105,7 @@ public static void int4x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_equal_scalar_wide() { int a0 = (542329200); @@ -129,7 +129,7 @@ public static void int4x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_not_equal_wide_wide() { int4x4 a0 = int4x4(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678, 13079405, 1413841590, 1076166545, 1211445174, 1289303469, 1436402489, 1129570126); @@ -153,7 +153,7 @@ public static void int4x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_not_equal_wide_scalar() { int4x4 a0 = int4x4(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423, 484398043, 506946952, 226568494, 507918242, 1702162286, 923269270, 166187260); @@ -177,7 +177,7 @@ public static void int4x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -201,7 +201,7 @@ public static void int4x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_less_wide_wide() { int4x4 a0 = int4x4(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312, 337757077, 1081797900, 1336745069, 840685445, 1220554047, 2013681746, 192965012); @@ -225,7 +225,7 @@ public static void int4x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_less_wide_scalar() { int4x4 a0 = int4x4(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597, 1546212312, 1718582899, 1648393417, 1857132231, 1909506562, 1294006045, 952084157); @@ -249,7 +249,7 @@ public static void int4x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_less_scalar_wide() { int a0 = (186400299); @@ -273,7 +273,7 @@ public static void int4x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_greater_wide_wide() { int4x4 a0 = int4x4(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133, 1744374599, 821751047, 467646903, 2029731638, 1377214212, 1207816926, 474621063); @@ -297,7 +297,7 @@ public static void int4x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_greater_wide_scalar() { int4x4 a0 = int4x4(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855, 1433540517, 566635217, 1773305960, 1850273578, 206147145, 325913453, 333381537); @@ -321,7 +321,7 @@ public static void int4x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_greater_scalar_wide() { int a0 = (480938827); @@ -345,7 +345,7 @@ public static void int4x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_less_equal_wide_wide() { int4x4 a0 = int4x4(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541, 457043352, 1123282035, 1001842946, 1387761992, 195272789, 659549000, 888761458); @@ -369,7 +369,7 @@ public static void int4x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_less_equal_wide_scalar() { int4x4 a0 = int4x4(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375, 509818792, 1910488590, 85452501, 518127023, 1246249980, 1097326500, 1964410699); @@ -393,7 +393,7 @@ public static void int4x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -417,7 +417,7 @@ public static void int4x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_greater_equal_wide_wide() { int4x4 a0 = int4x4(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826, 631221455, 1456286159, 961342752, 424526026, 788481984, 1662488497, 870326690); @@ -441,7 +441,7 @@ public static void int4x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_greater_equal_wide_scalar() { int4x4 a0 = int4x4(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669, 411667685, 1998610091, 4652390, 996159180, 2111455181, 727766399, 96217144); @@ -465,7 +465,7 @@ public static void int4x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -489,7 +489,7 @@ public static void int4x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_add_wide_wide() { int4x4 a0 = int4x4(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600, 976898058, 1915056423, 121374462, 1218855698, 700538222, 1702057277, 1788251699); @@ -513,7 +513,7 @@ public static void int4x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_add_wide_scalar() { int4x4 a0 = int4x4(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008, 1246759684, 1088001167, 57252642, 678921480, 625943813, 512157429, 1470648741); @@ -537,7 +537,7 @@ public static void int4x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_add_scalar_wide() { int a0 = (359966320); @@ -561,7 +561,7 @@ public static void int4x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_sub_wide_wide() { int4x4 a0 = int4x4(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315, 2011295463, 48079003, 591379285, 1125909359, 1842588095, 848561896, 614448464); @@ -585,7 +585,7 @@ public static void int4x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_sub_wide_scalar() { int4x4 a0 = int4x4(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113, 1108005498, 304369206, 999244508, 1806482044, 1994553647, 2101812429, 1482736902); @@ -609,7 +609,7 @@ public static void int4x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_sub_scalar_wide() { int a0 = (893369501); @@ -633,7 +633,7 @@ public static void int4x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_mul_wide_wide() { int4x4 a0 = int4x4(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583, 1835691886, 385626539, 85934842, 522856538, 278370196, 289217012, 2083410174); @@ -657,7 +657,7 @@ public static void int4x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_mul_wide_scalar() { int4x4 a0 = int4x4(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059, 1186560810, 1584938026, 1357601203, 638897141, 268562104, 1007838321, 1163240135); @@ -681,7 +681,7 @@ public static void int4x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -705,7 +705,7 @@ public static void int4x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_div_wide_wide() { int4x4 a0 = int4x4(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195, 166625280, 1493729000, 1831739736, 200852358, 129983172, 500176108, 472051781); @@ -729,7 +729,7 @@ public static void int4x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_div_wide_scalar() { int4x4 a0 = int4x4(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136, 25493909, 1196815948, 123300377, 643754735, 2084019932, 2047825037, 458304263); @@ -753,7 +753,7 @@ public static void int4x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_div_scalar_wide() { int a0 = (519165704); @@ -777,7 +777,7 @@ public static void int4x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_mod_wide_wide() { int4x4 a0 = int4x4(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101, 17598216, 1474345080, 1681376293, 813624265, 1617478722, 498370451, 780075943); @@ -801,7 +801,7 @@ public static void int4x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_mod_wide_scalar() { int4x4 a0 = int4x4(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144, 1287035793, 1743722161, 475209785, 327476870, 1617696916, 379853074, 477430114); @@ -825,7 +825,7 @@ public static void int4x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_mod_scalar_wide() { int a0 = (933347930); @@ -849,7 +849,7 @@ public static void int4x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_plus() { int4x4 a0 = int4x4(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671, 1084131995, 195779102, 2131702223, 715660442, 1995564647, 69731564, 1317851903); @@ -869,7 +869,7 @@ public static void int4x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_neg() { int4x4 a0 = int4x4(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525, 270503114, 1928771252, 1427605822, 2051940607, 1434247484, 485368391, 908365416); @@ -889,7 +889,7 @@ public static void int4x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_prefix_inc() { int4x4 a0 = int4x4(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994, 1915989169, 1348278302, 129540735, 1584496757, 1170613526, 986715680, 1701179230); @@ -909,7 +909,7 @@ public static void int4x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_postfix_inc() { int4x4 a0 = int4x4(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247, 1384002775, 389844650, 1159795446, 1343289659, 1227160199, 947635082, 137930180); @@ -929,7 +929,7 @@ public static void int4x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_prefix_dec() { int4x4 a0 = int4x4(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745, 2059077641, 1169239112, 1862369220, 312317355, 1027543764, 1595492535, 1426262619); @@ -949,7 +949,7 @@ public static void int4x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_postfix_dec() { int4x4 a0 = int4x4(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889, 862428933, 1401191870, 2080259851, 653673271, 140452688, 1928164223, 1760916301); @@ -969,7 +969,7 @@ public static void int4x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_bitwise_and_wide_wide() { int4x4 a0 = int4x4(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656, 53199569, 1752363533, 1303061302, 1929998247, 1504941434, 470682792, 713577376); @@ -993,7 +993,7 @@ public static void int4x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_bitwise_and_wide_scalar() { int4x4 a0 = int4x4(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263, 327392481, 1619794917, 2143619546, 1873208293, 126982769, 651482651, 1383096952); @@ -1017,7 +1017,7 @@ public static void int4x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1041,7 +1041,7 @@ public static void int4x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_bitwise_or_wide_wide() { int4x4 a0 = int4x4(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869, 1912038362, 1569990624, 1490718227, 1686257697, 2137727522, 1569900650, 856504729); @@ -1065,7 +1065,7 @@ public static void int4x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_bitwise_or_wide_scalar() { int4x4 a0 = int4x4(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307, 1050875188, 341855232, 1317039676, 228656898, 41280811, 1536908787, 606786773); @@ -1089,7 +1089,7 @@ public static void int4x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1113,7 +1113,7 @@ public static void int4x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_bitwise_xor_wide_wide() { int4x4 a0 = int4x4(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251, 230477768, 1103646442, 1503102919, 26631152, 1016475570, 1862440929, 379588576); @@ -1137,7 +1137,7 @@ public static void int4x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_bitwise_xor_wide_scalar() { int4x4 a0 = int4x4(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873, 835837496, 954341348, 1464576786, 625604047, 1700827127, 2003392824, 1481813598); @@ -1161,7 +1161,7 @@ public static void int4x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1185,7 +1185,7 @@ public static void int4x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_left_shift() { int4x4 a0 = int4x4(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727, 849916599, 1271350845, 108441902, 1959056531, 1779118882, 1451674188, 2082026915); @@ -1209,7 +1209,7 @@ public static void int4x4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_right_shift() { int4x4 a0 = int4x4(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393, 1923166649, 102096936, 400863878, 667378673, 1611921244, 307750782, 479442287); @@ -1233,7 +1233,7 @@ public static void int4x4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4x4_operator_bitwise_not() { int4x4 a0 = int4x4(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628, 787710759, 875964607, 96456785, 916013379, 203444882, 1172294211, 1020232736); @@ -1253,7 +1253,7 @@ public static void int4x4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void int4x4_EqualsObjectOverride() { TestUtils.IsFalse(new int4x4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index d22d82a7..4ba1c895 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -8,7 +8,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public partial class TestMath { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asint_uint() { TestUtils.AreEqual(0, asint(0u)); @@ -19,7 +19,7 @@ public static void asint_uint() TestUtils.AreEqual(-1, asint(0xFFFFFFFFu)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asint_uint2() { TestUtils.AreEqual(int2(0, 0x12345678), asint(uint2(0u, 0x12345678u))); @@ -27,21 +27,21 @@ public static void asint_uint2() TestUtils.AreEqual(int2(-2023406815, -1), asint(uint2(0x87654321u, 0xFFFFFFFFu))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asint_uint3() { TestUtils.AreEqual(int3(0, 0x12345678, 0x7FFFFFFF), asint(uint3(0u, 0x12345678u, 0x7FFFFFFFu))); TestUtils.AreEqual(int3(-2147483648, -2023406815, -1), asint(uint3(0x80000000u, 0x87654321u, 0xFFFFFFFFu))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asint_uint4() { TestUtils.AreEqual(int4(0, 0x12345678, 0x7FFFFFFF, -2147483648), asint(uint4(0u, 0x12345678u, 0x7FFFFFFFu, 0x80000000u))); TestUtils.AreEqual(int4(-2023406815, -1, 0, 0), asint(uint4(0x87654321u, 0xFFFFFFFFu, 0u, 0u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asint_float() { TestUtils.AreEqual(0, asint(0.0f)); @@ -56,14 +56,14 @@ public static void asint_float() TestUtils.AreEqual(unchecked((int)0xFF800000), asint(float.NegativeInfinity)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asint_float_signed_zero() { TestUtils.AreEqual(unchecked((int)0x80000000), asint(TestUtils.SignedFloatZero())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asint_float2() { TestUtils.AreEqual(int2(0, 0x3F800000), asint(float2(0.0f, 1.0f))); @@ -75,14 +75,14 @@ public static void asint_float2() TestUtils.AreEqual(int2(0, 0), asint(float2(0.0f, 0.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asint_float2_signed_zero() { TestUtils.AreEqual(int2(unchecked((int)0x80000000), unchecked((int)0x80000000)), asint(float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asint_float3() { TestUtils.AreEqual(int3(0, 0x3F800000, 0x449A51EC), asint(float3(0.0f, 1.0f, 1234.56f))); @@ -91,14 +91,14 @@ public static void asint_float3() TestUtils.AreEqual(int3(unchecked((int)0xC49A51EC), unchecked((int)0xFF800000), 0), asint(float3(-1234.56f, float.NegativeInfinity, 0.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asint_float3_signed_zero() { TestUtils.AreEqual(int3(unchecked((int)0x80000000), unchecked((int)0x80000000), unchecked((int)0x80000000)), asint(float3(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asint_float4() { TestUtils.AreEqual(int4(0, 0x3F800000, 0x449A51EC, 0x7F800000), asint(float4(0.0f, 1.0f, 1234.56f, float.PositiveInfinity))); @@ -106,14 +106,14 @@ public static void asint_float4() TestUtils.AreEqual(int4(unchecked((int)0x7FC00000), unchecked((int)0xBF800000), unchecked((int)0xC49A51EC), unchecked((int)0xFF800000)), asint(float4(TestUtils.UnsignedFloatQNaN(), -1.0f, -1234.56f, float.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asint_float4_signed_zero() { TestUtils.AreEqual(int4(unchecked((int)0x80000000), unchecked((int)0x80000000), unchecked((int)0x80000000), unchecked((int)0x80000000)), asint(float4(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asuint_int() { TestUtils.AreEqual(0u, asuint(0)); @@ -124,7 +124,7 @@ public static void asuint_int() TestUtils.AreEqual(0xFFFFFFFFu, asuint(-1)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asuint_int2() { TestUtils.AreEqual(uint2(0u, 0x12345678u), asuint(int2(0, 0x12345678))); @@ -132,21 +132,21 @@ public static void asuint_int2() TestUtils.AreEqual(uint2(0x87654321u, 0xFFFFFFFFu), asuint(int2(-2023406815, -1))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asuint_int3() { TestUtils.AreEqual(uint3(0u, 0x12345678u, 0x7FFFFFFFu), asuint(int3(0, 0x12345678, 0x7FFFFFFF))); TestUtils.AreEqual(uint3(0x80000000u, 0x87654321u, 0xFFFFFFFFu), asuint(int3(-2147483648, -2023406815, -1))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asuint_int4() { TestUtils.AreEqual(uint4(0u, 0x12345678u, 0x7FFFFFFFu, 0x80000000u), asuint(int4(0, 0x12345678, 0x7FFFFFFF, -2147483648))); TestUtils.AreEqual(uint4(0x87654321u, 0xFFFFFFFFu, 0u, 0u), asuint(int4(-2023406815, -1, 0, 0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asuint_float() { TestUtils.AreEqual(0u, asuint(0.0f)); @@ -161,14 +161,14 @@ public static void asuint_float() TestUtils.AreEqual(0xFF800000u, asuint(float.NegativeInfinity)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asuint_float_signed_zero() { TestUtils.AreEqual(0x80000000u, asuint(TestUtils.SignedFloatZero())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asuint_float2() { TestUtils.AreEqual(uint2(0u, 0x3F800000u), asuint(float2(0.0f, 1.0f))); @@ -179,14 +179,14 @@ public static void asuint_float2() TestUtils.AreEqual(uint2(0xC49A51ECu, 0xFF800000u), asuint(float2(-1234.56f, float.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asuint_float2_signed_zero() { TestUtils.AreEqual(uint2(0x80000000u, 0x80000000u), asuint(float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asuint_float3() { TestUtils.AreEqual(uint3(0u, 0x3F800000u, 0x449A51ECu), asuint(float3(0.0f, 1.0f, 1234.56f))); @@ -195,14 +195,14 @@ public static void asuint_float3() TestUtils.AreEqual(uint3(0xC49A51ECu, 0xff800000u, 0u), asuint(float3(-1234.56f, float.NegativeInfinity, 0.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asuint_float3_signed_zero() { TestUtils.AreEqual(uint3(0x80000000u, 0x80000000u, 0x80000000u), asuint(float3(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asuint_float4() { TestUtils.AreEqual(uint4(0u, 0x3F800000u, 0x449A51ECu, 0x7F800000u), asuint(float4(0.0f, 1.0f, 1234.56f, float.PositiveInfinity))); @@ -210,14 +210,14 @@ public static void asuint_float4() TestUtils.AreEqual(uint4(0x7FC00000u, 0xBF800000u, 0xC49A51ECu, 0xFF800000u), asuint(float4(TestUtils.UnsignedFloatQNaN(), -1.0f, -1234.56f, float.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asuint_float4_singed_zero() { TestUtils.AreEqual(uint4(0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u), asuint(float4(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void aslong_ulong() { TestUtils.AreEqual(0L, aslong(0ul)); @@ -228,7 +228,7 @@ public static void aslong_ulong() TestUtils.AreEqual(-1L, aslong(0xFFFFFFFFFFFFFFFFul)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void aslong_double() { TestUtils.AreEqual(0L, aslong(0.0)); @@ -242,14 +242,14 @@ public static void aslong_double() TestUtils.AreEqual(unchecked((long)0xFFF0000000000000UL), aslong(double.NegativeInfinity)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void aslong_double_signed_zero() { TestUtils.AreEqual(unchecked((long)0x8000000000000000UL), aslong(TestUtils.SignedDoubleZero())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asulong_long() { TestUtils.AreEqual(0ul, asulong(0L)); @@ -260,7 +260,7 @@ public static void asulong_long() TestUtils.AreEqual(0xFFFFFFFFFFFFFFFFul, asulong(-1L)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asulong_double() { TestUtils.AreEqual(0UL, asulong(0.0)); @@ -274,14 +274,14 @@ public static void asulong_double() TestUtils.AreEqual(0xFFF0000000000000UL, asulong(double.NegativeInfinity)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asulong_double_signed_zero() { TestUtils.AreEqual(0x8000000000000000UL, asulong(TestUtils.SignedDoubleZero())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asfloat_int() { TestUtils.AreEqual(0.0f, asfloat(0)); @@ -297,7 +297,7 @@ public static void asfloat_int() TestUtils.AreEqual(asuint(TestUtils.UnsignedFloatQNaN()), asuint(asfloat(unchecked((int)0x7FC00000)))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asfloat_int2() { TestUtils.AreEqual(float2(0.0f, 1.0f), asfloat(int2(0, 0x3F800000))); @@ -309,7 +309,7 @@ public static void asfloat_int2() TestUtils.AreEqual(asuint(float2(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(int2(unchecked((int)0x7FC00000), unchecked((int)0x7FC00000))))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asfloat_int3() { TestUtils.AreEqual(float3(0.0f, 1.0f, 1234.56f), asfloat(int3(0, 0x3F800000, 0x449A51EC))); @@ -320,7 +320,7 @@ public static void asfloat_int3() TestUtils.AreEqual(asuint(float3(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(int3(unchecked((int)0x7FC00000), unchecked((int)0x7FC00000), unchecked((int)0x7FC00000))))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asfloat_int4() { TestUtils.AreEqual(float4(0.0f, 1.0f, 1234.56f, float.PositiveInfinity), asfloat(int4(0, 0x3F800000, 0x449A51EC, 0x7F800000))); @@ -330,7 +330,7 @@ public static void asfloat_int4() TestUtils.AreEqual(asuint(float4(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(int4(unchecked((int)0x7FC00000), unchecked((int)0x7FC00000), unchecked((int)0x7FC00000), unchecked((int)0x7FC00000))))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asfloat_uint() { TestUtils.AreEqual(0.0f, asfloat(0u)); @@ -346,7 +346,7 @@ public static void asfloat_uint() TestUtils.AreEqual(asuint(TestUtils.UnsignedFloatQNaN()), asuint(asfloat(0x7FC00000u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asfloat_uint2() { TestUtils.AreEqual(float2(0.0f, 1.0f), asfloat(uint2(0u, 0x3F800000u))); @@ -358,7 +358,7 @@ public static void asfloat_uint2() TestUtils.AreEqual(asuint(float2(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(uint2(0x7FC00000u, 0x7FC00000u)))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asfloat_uint3() { TestUtils.AreEqual(float3(0.0f, 1.0f, 1234.56f), asfloat(uint3(0u, 0x3F800000u, 0x449A51ECu))); @@ -369,7 +369,7 @@ public static void asfloat_uint3() TestUtils.AreEqual(asuint(float3(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(uint3(0x7FC00000u, 0x7FC00000u, 0x7FC00000u)))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asfloat_uint4() { TestUtils.AreEqual(float4(0.0f, 1.0f, 1234.56f, float.PositiveInfinity), asfloat(uint4(0u, 0x3F800000u, 0x449A51ECu, 0x7F800000u))); @@ -379,7 +379,7 @@ public static void asfloat_uint4() TestUtils.AreEqual(asuint(float4(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(uint4(0x7FC00000u, 0x7FC00000u, 0x7FC00000u, 0x7FC00000u)))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asdouble_long() { TestUtils.AreEqual(0.0, asdouble(0L)); @@ -394,7 +394,7 @@ public static void asdouble_long() TestUtils.AreEqual(double.NegativeInfinity, asdouble(unchecked((long)0xFFF0000000000000UL))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void asdouble_ulong() { TestUtils.AreEqual(0.0, asdouble(0UL)); @@ -409,7 +409,7 @@ public static void asdouble_ulong() TestUtils.AreEqual(double.NegativeInfinity, asdouble(0xFFF0000000000000UL)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void faceforward_float2() { TestUtils.AreEqual(float2(-3.5f, 4.5f), faceforward(float2(3.5f, -4.5f), float2(1.0f, -2.0f), float2(3.0f, -4.0f))); @@ -417,7 +417,7 @@ public static void faceforward_float2() TestUtils.AreEqual(float2(-3.5f, 4.5f), faceforward(float2(3.5f, -4.5f), float2(1.0f, -2.0f), float2(0.0f, 0.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void faceforward_float3() { TestUtils.AreEqual(float3(-3.5f, 4.5f, -5.5f), faceforward(float3(3.5f, -4.5f, 5.5f), float3(1.0f, -2.0f, 3.0f), float3(3.0f, -4.0f, 5.0f))); @@ -425,7 +425,7 @@ public static void faceforward_float3() TestUtils.AreEqual(float3(-3.5f, 4.5f, -5.5f), faceforward(float3(3.5f, -4.5f, 5.5f), float3(1.0f, -2.0f, 3.0f), float3(0.0f, 0.0f, 0.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void faceforward_float4() { TestUtils.AreEqual(float4(-3.5f, 4.5f, -5.5f, 6.5f), faceforward(float4(3.5f, -4.5f, 5.5f, -6.5f), float4(1.0f, -2.0f, 3.0f, -4.0f), float4(3.0f, -4.0f, 5.0f, -6.0f))); @@ -433,7 +433,7 @@ public static void faceforward_float4() TestUtils.AreEqual(float4(-3.5f, 4.5f, -5.5f, 6.5f), faceforward(float4(3.5f, -4.5f, 5.5f, -6.5f), float4(1.0f, -2.0f, 3.0f, -4.0f), float4(0.0f, 0.0f, 0.0f, 0.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void faceforward_double2() { TestUtils.AreEqual(double2(-3.5, 4.5), faceforward(double2(3.5, -4.5), double2(1.0, -2.0), double2(3.0, -4.0))); @@ -441,7 +441,7 @@ public static void faceforward_double2() TestUtils.AreEqual(double2(-3.5, 4.5), faceforward(double2(3.5, -4.5), double2(1.0, -2.0), double2(0.0, 0.0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void faceforward_double3() { TestUtils.AreEqual(double3(-3.5, 4.5, -5.5), faceforward(double3(3.5, -4.5, 5.5), double3(1.0, -2.0, 3.0), double3(3.0, -4.0, 5.0))); @@ -449,7 +449,7 @@ public static void faceforward_double3() TestUtils.AreEqual(double3(-3.5, 4.5, -5.5), faceforward(double3(3.5, -4.5, 5.5), double3(1.0, -2.0, 3.0), double3(0.0, 0.0, 0.0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void faceforward_double4() { TestUtils.AreEqual(double4(-3.5, 4.5, -5.5, 6.5), faceforward(double4(3.5, -4.5, 5.5, -6.5), double4(1.0, -2.0, 3.0, -4.0), double4(3.0, -4.0, 5.0, -6.0))); @@ -457,7 +457,7 @@ public static void faceforward_double4() TestUtils.AreEqual(double4(-3.5, 4.5, -5.5, 6.5), faceforward(double4(3.5, -4.5, 5.5, -6.5), double4(1.0, -2.0, 3.0, -4.0), double4(0.0, 0.0, 0.0, 0.0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void modf_float() { float f, i; @@ -474,7 +474,7 @@ public static void modf_float() TestUtils.AreEqual(0.0f, f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void modf_float2() { float2 f, i; @@ -487,7 +487,7 @@ public static void modf_float2() TestUtils.AreEqual(float2(0.0f, 0.5f), f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void modf_float3() { float3 f, i; @@ -496,7 +496,7 @@ public static void modf_float3() TestUtils.AreEqual(float3(0.75f, -0.25f, 0.0f), f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void modf_float4() { float4 f, i; @@ -505,7 +505,7 @@ public static void modf_float4() TestUtils.AreEqual(float4(0.75f, -0.25f, 0.0f, 0.5f), f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void modf_double() { double f, i; @@ -522,7 +522,7 @@ public static void modf_double() TestUtils.AreEqual(0.0, f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void modf_double2() { double2 f, i; @@ -535,7 +535,7 @@ public static void modf_double2() TestUtils.AreEqual(double2(0.0, 0.5), f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void modf_double3() { double3 f, i; @@ -544,7 +544,7 @@ public static void modf_double3() TestUtils.AreEqual(double3(0.75, -0.25, 0.0), f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void modf_double4() { double4 f, i; @@ -553,21 +553,21 @@ public static void modf_double4() TestUtils.AreEqual(double4(0.75, -0.25, 0.0, 0.5f), f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void normalize_float2() { TestUtils.AreEqual(float2(0.504883f, -0.863188f), normalize(float2(3.1f, -5.3f)), 0.0001f); TestUtils.AreEqual(true, all(isnan(normalize(float2(0.0f, 0.0f))))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void normalize_float3() { TestUtils.AreEqual(float3(0.464916f, -0.794861f, 0.389932f), normalizesafe(float3(3.1f, -5.3f, 2.6f)), 0.0001f); TestUtils.AreEqual(true, all(isnan(normalize(float3(0.0f, 0.0f, 0.0f))))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void normalize_float4() { TestUtils.AreEqual(float4(0.234727f, -0.401308f, 0.196868f, 0.863191f), normalizesafe(float4(3.1f, -5.3f, 2.6f, 11.4f)), 0.0001f); @@ -575,28 +575,28 @@ public static void normalize_float4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void normalize_double2() { TestUtils.AreEqual(double2(0.504883, -0.863188), normalize(double2(3.1, -5.3)), 0.0001); TestUtils.AreEqual(true, all(isnan(normalize(double2(0.0, 0.0))))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void normalize_double3() { TestUtils.AreEqual(double3(0.464916, -0.794861, 0.389932), normalizesafe(double3(3.1, -5.3, 2.6)), 0.0001); TestUtils.AreEqual(true, all(isnan(normalize(double3(0.0, 0.0, 0.0))))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void normalize_double4() { TestUtils.AreEqual(double4(0.234727, -0.401308, 0.196868, 0.863191), normalizesafe(double4(3.1, -5.3, 2.6, 11.4)), 0.0001); TestUtils.AreEqual(true, all(isnan(normalize(double4(0.0, 0.0, 0.0, 0.0f))))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void normalize_quaternion() { TestUtils.AreEqual(quaternion(0.234727f, -0.401308f, 0.196868f, 0.863191f), normalizesafe(quaternion(3.1f, -5.3f, 2.6f, 11.4f)), 0.0001f); @@ -604,7 +604,7 @@ public static void normalize_quaternion() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void normalizesafe_float2() { TestUtils.AreEqual(float2(0.504883f, -0.863188f), normalizesafe(float2(3.1f, -5.3f)), 0.0001f); @@ -614,7 +614,7 @@ public static void normalizesafe_float2() TestUtils.AreEqual(float2(1.0f, 2.0f), normalizesafe(float2(7.66e-20f, 7.66e-20f), float2(1.0f, 2.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void normalizesafe_float3() { TestUtils.AreEqual(float3(0.464916f, -0.794861f, 0.389932f), normalizesafe(float3(3.1f, -5.3f, 2.6f)), 0.0001f); @@ -624,7 +624,7 @@ public static void normalizesafe_float3() TestUtils.AreEqual(float3(1.0f, 2.0f, 3.0f), normalizesafe(float3(6.25e-20f, 6.25e-20f, 6.25e-20f), float3(1.0f, 2.0f, 3.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void normalizesafe_float4() { TestUtils.AreEqual(float4(0.234727f, -0.401308f, 0.196868f, 0.863191f), normalizesafe(float4(3.1f, -5.3f, 2.6f, 11.4f)), 0.0001f); @@ -635,7 +635,7 @@ public static void normalizesafe_float4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void normalizesafe_double2() { TestUtils.AreEqual(double2(0.504883, -0.863188), normalizesafe(double2(3.1, -5.3)), 0.0001); @@ -645,7 +645,7 @@ public static void normalizesafe_double2() TestUtils.AreEqual(double2(1.0, 2.0), normalizesafe(double2(1.05e-154, 1.05e-154), double2(1.0, 2.0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void normalizesafe_double3() { TestUtils.AreEqual(double3(0.464916, -0.794861, 0.389932), normalizesafe(double3(3.1, -5.3, 2.6)), 0.0001); @@ -655,7 +655,7 @@ public static void normalizesafe_double3() TestUtils.AreEqual(double3(1.0, 2.0, 3.0), normalizesafe(double3(8.61e-155, 8.61e-155, 8.61e-155), double3(1.0, 2.0, 3.0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void normalizesafe_double4() { TestUtils.AreEqual(double4(0.234727, -0.401308, 0.196868, 0.863191), normalizesafe(double4(3.1, -5.3, 2.6, 11.4)), 0.0001); @@ -665,7 +665,7 @@ public static void normalizesafe_double4() TestUtils.AreEqual(double4(1.0, 2.0, 3.0, 4.0), normalizesafe(double4(7.45e-155, 7.45e-155, 7.45e-155, 7.45e-155), double4(1.0, 2.0, 3.0, 4.0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void normalizesafe_quaternion() { TestUtils.AreEqual(quaternion(0.234727f, -0.401308f, 0.196868f, 0.863191f), normalizesafe(quaternion(3.1f, -5.3f, 2.6f, 11.4f)), 0.0001f); @@ -675,7 +675,7 @@ public static void normalizesafe_quaternion() TestUtils.AreEqual(quaternion(1.0f, 2.0f, 3.0f, 4.0f), normalizesafe(quaternion(5.42e-20f, 5.42e-20f, 5.42e-20f, 5.42e-20f), quaternion(1.0f, 2.0f, 3.0f, 4.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void f16tof32_float() { TestUtils.AreEqual(0x00000000, asuint(f16tof32(0x0000))); @@ -693,7 +693,7 @@ public static void f16tof32_float() TestUtils.AreEqual(true, isnan(f16tof32(0xFC01))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void f16tof32_float2() { TestUtils.AreEqual(uint2(0x00000000, 0x3800C000), asuint(f16tof32(uint2(0x0000, 0x0203)))); @@ -707,7 +707,7 @@ public static void f16tof32_float2() TestUtils.AreEqual(true, all(isnan(f16tof32(uint2(0xFC01, 0xFC01))))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void f16tof32_float3() { TestUtils.AreEqual(uint3(0x00000000, 0x3800C000, 0x40642000), asuint(f16tof32(uint3(0x0000, 0x0203, 0x4321)))); @@ -719,7 +719,7 @@ public static void f16tof32_float3() TestUtils.AreEqual(true, all(isnan(f16tof32(uint3(0xFC01, 0xFC01, 0xFC01))))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void f16tof32_float4() { TestUtils.AreEqual(uint4(0x00000000, 0x3800C000, 0x40642000, 0x477FE000), asuint(f16tof32(uint4(0x0000, 0x0203, 0x4321, 0x7BFF)))); @@ -731,7 +731,7 @@ public static void f16tof32_float4() TestUtils.AreEqual(true, all(isnan(f16tof32(uint4(0xFC01, 0xFC01, 0xFC01, 0xFC01))))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void f32tof16_float() { TestUtils.AreEqual(0x0000, f32tof16(0.0f)); @@ -751,14 +751,14 @@ public static void f32tof16_float() TestUtils.AreEqual(0xFC00, f32tof16(float.NegativeInfinity)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void f32tof16_float_signed_zero() { TestUtils.AreEqual(0x8000, f32tof16(TestUtils.SignedFloatZero())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void f32tof16_float2() { TestUtils.AreEqual(uint2(0x0000, 0x0000), f32tof16(float2(0.0f, 2.98e-08f))); @@ -772,14 +772,14 @@ public static void f32tof16_float2() TestUtils.AreEqual(uint2(0xFC00, 0x0000), f32tof16(float2(float.NegativeInfinity, 0.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void f32tof16_float2_signed_zero() { TestUtils.AreEqual(uint2(0x8000, 0x8000), f32tof16(float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void f32tof16_float3() { TestUtils.AreEqual(uint3(0x0000, 0x0000, 0x0001), f32tof16(float3(0.0f, 2.98e-08f, 5.96046448e-08f))); @@ -790,14 +790,14 @@ public static void f32tof16_float3() TestUtils.AreEqual(uint3(0xFC00, 0xFC00, 0x0000), f32tof16(float3(-65520.0f, float.NegativeInfinity, 0.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void f32tof16_float3_signed_zero() { TestUtils.AreEqual(uint3(0x8000, 0x8000, 0x8000), f32tof16(float3(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void f32tof16_float4() { TestUtils.AreEqual(uint4(0x0000, 0x0000, 0x0001, 0x57B6), f32tof16(float4(0.0f, 2.98e-08f, 5.96046448e-08f, 123.4f))); @@ -806,14 +806,14 @@ public static void f32tof16_float4() TestUtils.AreEqual(uint4(0xFC00, 0xFC00, 0xFC00, 0x0000), f32tof16(float4(-65520.0f, float.NegativeInfinity, float.NegativeInfinity, 0.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void f32tof16_float4_signed_zero() { TestUtils.AreEqual(uint4(0x8000, 0x8000, 0x8000, 0x8000), f32tof16(float4(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reflect_float2() { TestUtils.AreEqual(float2(9.84f, -3.888f), reflect(float2(1.2f, 3.6f), float2(1.5f, -1.3f)), 8, false); @@ -822,7 +822,7 @@ public static void reflect_float2() TestUtils.AreEqual(float2(0.0f, 0.0f), reflect(float2(0.0f, 0.0f), float2(-1.5f, -1.3f)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reflect_float3() { TestUtils.AreEqual(float3(35.88f, -26.456f, 68.872f), reflect(float3(1.2f, 3.6f, -2.8f), float3(1.5f, -1.3f, 3.1f)), 8, false); @@ -831,7 +831,7 @@ public static void reflect_float3() TestUtils.AreEqual(float3(0.0f, 0.0f, 0.0f), reflect(float3(0.0f, 0.0f, 0.0f), float3(-1.5f, -1.3f, 3.1f)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reflect_float4() { TestUtils.AreEqual(float4(36.51f, -27.002f, 70.174f, -16.178f), reflect(float4(1.2f, 3.6f, -2.8f, 0.3f), float4(1.5f, -1.3f, 3.1f, -0.7f)), 8, false); @@ -841,7 +841,7 @@ public static void reflect_float4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reflect_double2() { TestUtils.AreEqual(double2(9.84, -3.888), reflect(double2(1.2, 3.6), double2(1.5, -1.3)), 8, false); @@ -850,7 +850,7 @@ public static void reflect_double2() TestUtils.AreEqual(double2(0.0, 0.0), reflect(double2(0.0, 0.0), double2(-1.5, -1.3)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reflect_double3() { TestUtils.AreEqual(double3(35.88, -26.456, 68.872), reflect(double3(1.2, 3.6, -2.8), double3(1.5, -1.3, 3.1)), 8, false); @@ -859,7 +859,7 @@ public static void reflect_double3() TestUtils.AreEqual(double3(0.0, 0.0, 0.0), reflect(double3(0.0, 0.0, 0.0), double3(-1.5f, -1.3, 3.1)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void reflect_double4() { TestUtils.AreEqual(double4(36.51, -27.002, 70.174, -16.178), reflect(double4(1.2, 3.6, -2.8, 0.3), double4(1.5, -1.3, 3.1, -0.7)), 8, false); @@ -869,7 +869,7 @@ public static void reflect_double4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void refract_float2() { TestUtils.AreEqual(float2(-0.3676186f, 0.9299768f), refract(float2(0.316228f, 0.948683f), float2(0.755689f, -0.654931f), 0.5f), 8, false); @@ -877,7 +877,7 @@ public static void refract_float2() TestUtils.AreEqual(float2(0.0f, 0.0f), refract(float2(0.316228f, 0.948683f), float2(0.755689f, -0.654931f), 1.5f)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void refract_float3() { TestUtils.AreEqual(float3(-0.2863437f, 0.8056898f, -0.5185286f), refract(float3(0.288375f, 0.865125f, -0.410365f), float3(0.662147f, -0.573861f, 0.481919f), 0.5f), 8, false); @@ -885,7 +885,7 @@ public static void refract_float3() TestUtils.AreEqual(float3(0.0f, 0.0f, 0.0f), refract(float3(0.288375f, 0.865125f, -0.410365f), float3(0.662147f, -0.573861f, 0.481919f), 1.5f)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void refract_float4() { TestUtils.AreEqual(float4(-0.302029191645545f, 0.799522577847971f, -0.518952508802814f, -0.015196476378571f), refract(float4(0.278154f, 0.834461f, -0.39582f, -0.26388f), float4(0.652208f, -0.565247f, 0.474685f, -0.1726139f), 0.5f), 16, false); @@ -894,7 +894,7 @@ public static void refract_float4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void refract_double2() { TestUtils.AreEqual(double2(-0.367618540673032, 0.929976739623085), refract(double2(0.316228, 0.948683), double2(0.755689, -0.654931), 0.5), 8, false); @@ -902,7 +902,7 @@ public static void refract_double2() TestUtils.AreEqual(double2(0.0, 0.0), refract(double2(0.316228, 0.948683), double2(0.755689, -0.654931), 1.5)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void refract_double3() { TestUtils.AreEqual(double3(-0.286343746291412, 0.805689753507206, -0.518528611485079), refract(double3(0.288375, 0.865125, -0.410365), double3(0.662147, -0.573861, 0.481919), 0.5), 8, false); @@ -910,7 +910,7 @@ public static void refract_double3() TestUtils.AreEqual(double3(0.0, 0.0, 0.0), refract(double3(0.288375, 0.865125, -0.410365), double3(0.662147, -0.573861, 0.481919), 1.5)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void refract_double4() { TestUtils.AreEqual(double4(-0.302029191645545, 0.799522577847971, -0.518952508802814, -0.015196476378571), refract(double4(0.278154, 0.834461, -0.39582, -0.26388), double4(0.652208, -0.565247, 0.474685, -0.1726139), 0.5), 16, false); @@ -918,7 +918,7 @@ public static void refract_double4() TestUtils.AreEqual(double4(0.0, 0.0, 0.0, 0.0), refract(double4(0.278154, 0.834461, -0.39582, -0.26388), double4(0.652208, -0.565247, 0.474685, -0.172613), 1.5)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void project_float2() { var a = float2(-0.161021441221237182617f, 0.429202795028686523438f); @@ -927,7 +927,7 @@ public static void project_float2() TestUtils.AreEqual(float2(1.0f, 0.0f), project(float2(1.0f), float2(1.0f, 0.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void project_float3() { var a = float3(0.394884318113327026367f, 0.148208647966384887695f, -0.264224529266357421875f); @@ -936,7 +936,7 @@ public static void project_float3() TestUtils.AreEqual(float3(1.0f, 0.0f, 0.0f), project(float3(1.0f), float3(1.0f, 0.0f, 0.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void project_float4() { var a = float4(0.122686818242073059082f, 0.465182095766067504883f, -0.388583064079284667969f, -0.15201015770435333252f); @@ -945,7 +945,7 @@ public static void project_float4() TestUtils.AreEqual(float4(1.0f, 0.0f, 0.0f, 0.0f), project(float4(1.0f), float4(1.0f, 0.0f, 0.0f, 0.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void projectsafe_float2() { var a = float2(-0.161021441221237182617f, 0.429202795028686523438f); @@ -957,7 +957,7 @@ public static void projectsafe_float2() TestUtils.AreEqual(float2(4.0f), projectsafe(float2(NAN), float2(0.0f), float2(4.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void projectsafe_float3() { var a = float3(0.394884318113327026367f, 0.148208647966384887695f, -0.264224529266357421875f); @@ -969,7 +969,7 @@ public static void projectsafe_float3() TestUtils.AreEqual(float3(4.0f), projectsafe(float3(NAN), float3(0.0f), float3(4.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void projectsafe_float4() { var a = float4(0.122686818242073059082f, 0.465182095766067504883f, -0.388583064079284667969f, -0.15201015770435333252f); @@ -981,7 +981,7 @@ public static void projectsafe_float4() TestUtils.AreEqual(float4(4.0f), projectsafe(float4(NAN), float4(0.0f), float4(4.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void project_double2() { var a = double2(-0.435219509355847911092, -0.359623376546357509387); @@ -991,7 +991,7 @@ public static void project_double2() TestUtils.AreEqual(double2.zero, projectsafe(a, double2(DBL_MIN_NORMAL))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void project_double3() { var a = double3(-0.3102470377532390855, -0.255432695780735075086, -0.180834679740036918805); @@ -1001,7 +1001,7 @@ public static void project_double3() TestUtils.AreEqual(double3.zero, projectsafe(a, double3(DBL_MIN_NORMAL))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void project_double4() { var a = double4(0.452051837682779789063, -0.0365627422588526429514, 0.236716008642456676725, 0.397823192622046239997); @@ -1011,7 +1011,7 @@ public static void project_double4() TestUtils.AreEqual(double4.zero, projectsafe(a, double4(DBL_MIN_NORMAL))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void projectsafe_double2() { var a = double2(-0.435219509355847911092, -0.359623376546357509387); @@ -1023,7 +1023,7 @@ public static void projectsafe_double2() TestUtils.AreEqual(double2(4.0), projectsafe(double2(NAN_DBL), double2(0.0), double2(4.0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void projectsafe_double3() { var a = double3(-0.3102470377532390855, -0.255432695780735075086, -0.180834679740036918805); @@ -1035,7 +1035,7 @@ public static void projectsafe_double3() TestUtils.AreEqual(double3(4.0), projectsafe(double3(NAN_DBL), double3(0.0), double3(4.0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void projectsafe_double4() { var a = double4(0.452051837682779789063, -0.0365627422588526429514, 0.236716008642456676725, 0.397823192622046239997); @@ -1047,7 +1047,7 @@ public static void projectsafe_double4() TestUtils.AreEqual(double4(4.0), projectsafe(double4(NAN_DBL), double4(0.0), double4(4.0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sincos_float() { float s, c; @@ -1086,7 +1086,7 @@ public static void sincos_float() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sincos_float2() { float2 s, c; @@ -1108,7 +1108,7 @@ public static void sincos_float2() TestUtils.AreEqual(float2(float.NaN, float.NaN), c, 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sincos_float3() { float3 s, c; @@ -1126,7 +1126,7 @@ public static void sincos_float3() TestUtils.AreEqual(float3(float.NaN, float.NaN, float.NaN), c, 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sincos_float4() { float4 s, c; @@ -1140,7 +1140,7 @@ public static void sincos_float4() TestUtils.AreEqual(float4(0.936752141f, float.NaN, float.NaN, float.NaN), c, 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sincos_double() { double s, c; @@ -1177,7 +1177,7 @@ public static void sincos_double() TestUtils.AreEqual(double.NaN, c, 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sincos_double2() { double2 s, c; @@ -1198,7 +1198,7 @@ public static void sincos_double2() TestUtils.AreEqual(double2(double.NaN, double.NaN), c, 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sincos_double3() { double3 s, c; @@ -1216,7 +1216,7 @@ public static void sincos_double3() TestUtils.AreEqual(double3(double.NaN, double.NaN, double.NaN), c, 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sincos_double4() { double4 s, c; @@ -1230,14 +1230,14 @@ public static void sincos_double4() TestUtils.AreEqual(double4(0.93675212753314474, double.NaN, double.NaN, double.NaN), c, 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_int() { TestUtils.AreEqual(-123456789, select(-123456789, 987654321, false)); TestUtils.AreEqual(987654321, select(-123456789, 987654321, true)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_int2() { TestUtils.AreEqual(int2(-123456789, -123456790), select(int2(-123456789, -123456790), int2(987654321, 987654322), false)); @@ -1249,7 +1249,7 @@ public static void select_int2() TestUtils.AreEqual(int2(987654321, 987654322), select(int2(-123456789, -123456790), int2(987654321, 987654322), bool2(true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_int3() { TestUtils.AreEqual(int3(-123456789, -123456790, -123456791), select(int3(-123456789, -123456790, -123456791), int3(987654321, 987654322, 987654323), false)); @@ -1266,7 +1266,7 @@ public static void select_int3() TestUtils.AreEqual(int3(987654321, 987654322, 987654323), select(int3(-123456789, -123456790, -123456791), int3(987654321, 987654322, 987654323), bool3(true, true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_int4() { TestUtils.AreEqual(int4(-123456789, -123456790, -123456791, -123456792), select(int4(-123456789, -123456790, -123456791, -123456792), int4(987654321, 987654322, 987654323, 987654324), false)); @@ -1293,14 +1293,14 @@ public static void select_int4() TestUtils.AreEqual(int4(987654321, 987654322, 987654323, 987654324), select(int4(-123456789, -123456790, -123456791, -123456792), int4(987654321, 987654322, 987654323, 987654324), bool4(true, true, true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_uint() { TestUtils.AreEqual(123456789u, select(123456789u, 987654321u, false)); TestUtils.AreEqual(987654321u, select(123456789u, 987654321u, true)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_uint2() { TestUtils.AreEqual(uint2(123456789u, 123456790u), select(uint2(123456789u, 123456790u), uint2(987654321u, 987654322u), false)); @@ -1312,7 +1312,7 @@ public static void select_uint2() TestUtils.AreEqual(uint2(987654321u, 987654322u), select(uint2(123456789u, 123456790u), uint2(987654321u, 987654322u), bool2(true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_uint3() { TestUtils.AreEqual(uint3(123456789u, 123456790u, 123456791u), select(uint3(123456789u, 123456790u, 123456791u), uint3(987654321u, 987654322u, 987654323u), false)); @@ -1329,7 +1329,7 @@ public static void select_uint3() TestUtils.AreEqual(uint3(987654321u, 987654322u, 987654323u), select(uint3(123456789u, 123456790u, 123456791u), uint3(987654321u, 987654322u, 987654323u), bool3(true, true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_uint4() { TestUtils.AreEqual(uint4(123456789u, 123456790u, 123456791u, 123456792u), select(uint4(123456789u, 123456790u, 123456791u, 123456792u), uint4(987654321u, 987654322u, 987654323u, 987654324u), false)); @@ -1356,14 +1356,14 @@ public static void select_uint4() TestUtils.AreEqual(uint4(987654321u, 987654322u, 987654323u, 987654324u), select(uint4(123456789u, 123456790u, 123456791u, 123456792u), uint4(987654321u, 987654322u, 987654323u, 987654324u), bool4(true, true, true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_long() { TestUtils.AreEqual(-12345678910111314L, select(-12345678910111314L, 987654321011121314L, false)); TestUtils.AreEqual(987654321011121314L, select(-12345678910111314L, 987654321011121314L, true)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_ulong() { TestUtils.AreEqual(12345678910111314UL, select(12345678910111314UL, 987654321011121314UL, false)); @@ -1371,14 +1371,14 @@ public static void select_ulong() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_float() { TestUtils.AreEqual(-1234.5f, select(-1234.5f, 9876.25f, false)); TestUtils.AreEqual(9876.25f, select(-1234.5f, 9876.25f, true)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_float2() { TestUtils.AreEqual(float2(-1234.5f, -1235.5f), select(float2(-1234.5f, -1235.5f), float2(9876.25f, 9877.25f), false)); @@ -1390,7 +1390,7 @@ public static void select_float2() TestUtils.AreEqual(float2(9876.25f, 9877.25f), select(float2(-1234.5f, -1235.5f), float2(9876.25f, 9877.25f), bool2(true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_float3() { TestUtils.AreEqual(float3(-1234.5f, -1235.5f, -1236.5f), select(float3(-1234.5f, -1235.5f, -1236.5f), float3(9876.25f, 9877.25f, 9878.25f), false)); @@ -1407,7 +1407,7 @@ public static void select_float3() TestUtils.AreEqual(float3(9876.25f, 9877.25f, 9878.25f), select(float3(-1234.5f, -1235.5f, -1236.5f), float3(9876.25f, 9877.25f, 9878.25f), bool3(true, true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_float4() { TestUtils.AreEqual(float4(-1234.5f, -1235.5f, -1236.5f, -1237.5f), select(float4(-1234.5f, -1235.5f, -1236.5f, -1237.5f), float4(9876.25f, 9877.25f, 9878.25f, 9879.25f), false)); @@ -1435,14 +1435,14 @@ public static void select_float4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_double() { TestUtils.AreEqual(-1234.5, select(-1234.5, 9876.25, false)); TestUtils.AreEqual(9876.25, select(-1234.5, 9876.25, true)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_double2() { TestUtils.AreEqual(double2(-1234.5, -1235.5), select(double2(-1234.5, -1235.5), double2(9876.25, 9877.25), false)); @@ -1454,7 +1454,7 @@ public static void select_double2() TestUtils.AreEqual(double2(9876.25, 9877.25), select(double2(-1234.5, -1235.5), double2(9876.25, 9877.25), bool2(true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_double3() { TestUtils.AreEqual(double3(-1234.5, -1235.5, -1236.5), select(double3(-1234.5, -1235.5, -1236.5), double3(9876.25, 9877.25, 9878.25), false)); @@ -1471,7 +1471,7 @@ public static void select_double3() TestUtils.AreEqual(double3(9876.25, 9877.25, 9878.25), select(double3(-1234.5, -1235.5, -1236.5), double3(9876.25, 9877.25, 9878.25), bool3(true, true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void select_double4() { TestUtils.AreEqual(double4(-1234.5, -1235.5, -1236.5, -1237.5), select(double4(-1234.5, -1235.5, -1236.5, -1237.5), double4(9876.25, 9877.25, 9878.25, 9879.25), false)); @@ -1499,7 +1499,7 @@ public static void select_double4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_int() { TestUtils.AreEqual(133, dot(7, 19)); @@ -1508,7 +1508,7 @@ public static void dot_int() TestUtils.AreEqual(667585376, dot(61031, 81312)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_int2() { TestUtils.AreEqual(322, dot(int2(7, 9), int2(19, 21))); @@ -1517,7 +1517,7 @@ public static void dot_int2() TestUtils.AreEqual(1840235232, dot(int2(61031, -12534), int2(-41312, -5312))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_int3() { TestUtils.AreEqual(582, dot(int3(7, 9, 13), int3(19, 21, 20))); @@ -1526,7 +1526,7 @@ public static void dot_int3() TestUtils.AreEqual(1636460279, dot(int3(61031, -12534, 9211), int3(-41312, -5312, -22123))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_int4() { TestUtils.AreEqual(990, dot(int4(7, 9, 13, 17), int4(19, 21, 20, 24))); @@ -1536,28 +1536,28 @@ public static void dot_int4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_uint() { TestUtils.AreEqual(133u, dot(7u, 19u)); TestUtils.AreEqual(667585376u, dot(61031u, 81312u)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_uint2() { TestUtils.AreEqual(322, dot(uint2(7u, 9u), uint2(19u, 21u))); TestUtils.AreEqual(734165984u, dot(uint2(61031u, 12534u), uint2(81312u, 5312u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_uint3() { TestUtils.AreEqual(582u, dot(uint3(7u, 9u, 13u), uint3(19u, 21u, 20u))); TestUtils.AreEqual(937940937u, dot(uint3(61031u, 12534u, 9211u), uint3(81312u, 5312u, 22123u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_uint4() { TestUtils.AreEqual(990u, dot(uint4(7u, 9u, 13u, 17u), uint4(19u, 21u, 20u, 24u))); @@ -1565,7 +1565,7 @@ public static void dot_uint4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_float() { TestUtils.AreEqual(7.32f, dot(1.2f, 6.1f), 1, false); @@ -1576,7 +1576,7 @@ public static void dot_float() TestUtils.AreEqual(float.NegativeInfinity, dot(1.2e19f, -6.1e19f), 0, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_float2() { TestUtils.AreEqual(57.92f, dot(float2(1.2f, 5.5f), float2(6.1f, 9.2f)), 1, false); @@ -1587,7 +1587,7 @@ public static void dot_float2() TestUtils.AreEqual(float.NegativeInfinity, dot(float2(-1.2e18f, 5.5e18f), float2(6.1e19f, -9.2e19f)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_float3() { TestUtils.AreEqual(67.1f, dot(float3(1.2f, 5.5f, 3.4f), float3(6.1f, 9.2f, 2.7f)), 8, false); @@ -1598,7 +1598,7 @@ public static void dot_float3() TestUtils.AreEqual(float.NegativeInfinity, dot(float3(-1.2e18f, 5.5e18f, 3.4e18f), float3(6.1e19f, -9.2e19f, -2.7e19f)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_float4() { TestUtils.AreEqual(68.57f, dot(float4(1.2f, 5.5f, 3.4f, 4.9f), float4(6.1f, 9.2f, 2.7f, 0.3f)), 8, false); @@ -1620,7 +1620,7 @@ public static void dot_double() TestUtils.AreEqual(double.NegativeInfinity, dot(1.2e19, -6.1e19), 0, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_double2() { TestUtils.AreEqual(57.92, dot(double2(1.2, 5.5), double2(6.1, 9.2)), 1, false); @@ -1631,7 +1631,7 @@ public static void dot_double2() TestUtils.AreEqual(double.NegativeInfinity, dot(double2(-1.2e153, 5.5e153), double2(6.1e154, -9.2e154)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_double3() { TestUtils.AreEqual(67.1, dot(double3(1.2, 5.5, 3.4), double3(6.1, 9.2, 2.7)), 8, false); @@ -1642,7 +1642,7 @@ public static void dot_double3() TestUtils.AreEqual(double.NegativeInfinity, dot(double3(-1.2e153, 5.5e153, 3.4e153), double3(6.1e154, -9.2e154, -2.7e154)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void dot_double4() { TestUtils.AreEqual(68.57, dot(double4(1.2, 5.5, 3.4, 4.9), double4(6.1, 9.2, 2.7, 0.3)), 8, false); @@ -1653,7 +1653,7 @@ public static void dot_double4() TestUtils.AreEqual(double.NegativeInfinity, dot(double4(-1.2e153, 5.5e153, 3.4e153, -4.9e153), double4(6.1e154, -9.2e154, -2.7e154, 3e153)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmin_int2() { TestUtils.AreEqual(100, cmin(int2(100, 200))); @@ -1664,7 +1664,7 @@ public static void cmin_int2() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmin_int3() { TestUtils.AreEqual(100, cmin(int3(100, 200, 300))); @@ -1675,7 +1675,7 @@ public static void cmin_int3() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmin_int4() { TestUtils.AreEqual(100, cmin(int4(100, 200, 300, 400))); @@ -1685,7 +1685,7 @@ public static void cmin_int4() TestUtils.AreEqual(int.MinValue, cmin(int4(int.MaxValue, int.MinValue, 0, 19))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmin_uint2() { TestUtils.AreEqual(100u, cmin(uint2(100u, 200u))); @@ -1694,7 +1694,7 @@ public static void cmin_uint2() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmin_uint3() { TestUtils.AreEqual(100u, cmin(uint3(100u, 200u, 300u))); @@ -1703,7 +1703,7 @@ public static void cmin_uint3() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmin_uint4() { TestUtils.AreEqual(100u, cmin(uint4(100u, 200u, 300u, 400u))); @@ -1711,7 +1711,7 @@ public static void cmin_uint4() TestUtils.AreEqual(uint.MinValue, cmin(uint4(19u, uint.MinValue, uint.MaxValue, 7u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmin_float2() { TestUtils.AreEqual(-0.5f, cmin(float2(5.2f, -0.5f))); @@ -1730,7 +1730,7 @@ public static void cmin_float2() TestUtils.AreEqual(float.NegativeInfinity, cmin(float2(float.NaN, float.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmin_float3() { TestUtils.AreEqual(-1.2f, cmin(float3(5.2f, -0.5f, -1.2f))); @@ -1750,7 +1750,7 @@ public static void cmin_float3() TestUtils.AreEqual(float.NegativeInfinity, cmin(float3(float.NaN, float.NaN, float.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmin_float4() { TestUtils.AreEqual(-1.2f, cmin(float4(5.2f, -0.5f, -1.2f, 2.3f))); @@ -1773,7 +1773,7 @@ public static void cmin_float4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmin_double2() { TestUtils.AreEqual(-0.5, cmin(double2(5.2, -0.5))); @@ -1793,7 +1793,7 @@ public static void cmin_double2() TestUtils.AreEqual(double.NegativeInfinity, cmin(double2(double.NaN, double.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmin_double3() { TestUtils.AreEqual(-1.2, cmin(double3(5.2, -0.5, -1.2))); @@ -1814,7 +1814,7 @@ public static void cmin_double3() TestUtils.AreEqual(double.NegativeInfinity, cmin(double3(double.NaN, double.NaN, double.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmin_double4() { TestUtils.AreEqual(-1.2, cmin(double4(5.2, -0.5, -1.2, 2.3))); @@ -1839,7 +1839,7 @@ public static void cmin_double4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmax_int2() { TestUtils.AreEqual(200, cmax(int2(100, 200))); @@ -1850,7 +1850,7 @@ public static void cmax_int2() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmax_int3() { TestUtils.AreEqual(300, cmax(int3(100, 200, 300))); @@ -1861,7 +1861,7 @@ public static void cmax_int3() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmax_int4() { TestUtils.AreEqual(400, cmax(int4(100, 200, 300, 400))); @@ -1871,7 +1871,7 @@ public static void cmax_int4() TestUtils.AreEqual(int.MaxValue, cmax(int4(int.MaxValue, int.MinValue, 0, 19))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmax_uint2() { TestUtils.AreEqual(200u, cmax(uint2(100u, 200u))); @@ -1880,7 +1880,7 @@ public static void cmax_uint2() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmax_uint3() { TestUtils.AreEqual(300u, cmax(uint3(100u, 200u, 300u))); @@ -1889,7 +1889,7 @@ public static void cmax_uint3() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmax_uint4() { TestUtils.AreEqual(400u, cmax(uint4(100u, 200u, 300u, 400u))); @@ -1897,7 +1897,7 @@ public static void cmax_uint4() TestUtils.AreEqual(uint.MaxValue, cmax(uint4(19u, uint.MinValue, uint.MaxValue, 7u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmax_float2() { TestUtils.AreEqual(5.2f, cmax(float2(5.2f, -0.5f))); @@ -1916,7 +1916,7 @@ public static void cmax_float2() TestUtils.AreEqual(float.NegativeInfinity, cmax(float2(float.NaN, float.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmax_float3() { TestUtils.AreEqual(5.2f, cmax(float3(5.2f, -0.5f, -1.2f))); @@ -1936,7 +1936,7 @@ public static void cmax_float3() TestUtils.AreEqual(float.NegativeInfinity, cmax(float3(float.NaN, float.NaN, float.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmax_float4() { TestUtils.AreEqual(5.2f, cmax(float4(5.2f, -0.5f, -1.2f, 2.3f))); @@ -1959,7 +1959,7 @@ public static void cmax_float4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmax_double2() { TestUtils.AreEqual(5.2, cmax(double2(5.2, -0.5))); @@ -1979,7 +1979,7 @@ public static void cmax_double2() TestUtils.AreEqual(double.NegativeInfinity, cmax(double2(double.NaN, double.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmax_double3() { TestUtils.AreEqual(5.2, cmax(double3(5.2, -0.5, -1.2))); @@ -2000,7 +2000,7 @@ public static void cmax_double3() TestUtils.AreEqual(double.NegativeInfinity, cmax(double3(double.NaN, double.NaN, double.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cmax_double4() { TestUtils.AreEqual(5.2, cmax(double4(5.2, -0.5, -1.2, 2.3))); @@ -2024,7 +2024,7 @@ public static void cmax_double4() TestUtils.AreEqual(double.NegativeInfinity, cmax(double4(double.NaN, double.NaN, double.NaN, double.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void csum_int2() { TestUtils.AreEqual(300, csum(int2(100, 200))); @@ -2035,7 +2035,7 @@ public static void csum_int2() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void csum_int3() { TestUtils.AreEqual(600, csum(int3(100, 200, 300))); @@ -2046,7 +2046,7 @@ public static void csum_int3() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void csum_int4() { TestUtils.AreEqual(1000, csum(int4(100, 200, 300, 400))); @@ -2056,7 +2056,7 @@ public static void csum_int4() TestUtils.AreEqual(-1, csum(int4(int.MaxValue, int.MinValue, 0, 0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void csum_uint2() { TestUtils.AreEqual(300u, csum(uint2(100u, 200u))); @@ -2064,7 +2064,7 @@ public static void csum_uint2() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void csum_uint3() { TestUtils.AreEqual(600u, csum(uint3(100u, 200u, 300u))); @@ -2072,14 +2072,14 @@ public static void csum_uint3() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void csum_uint4() { TestUtils.AreEqual(1000u, csum(uint4(100u, 200u, 300u, 400u))); TestUtils.AreEqual(36u, csum(uint4(uint.MaxValue, 7u, 11u, 19u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void csum_float2() { TestUtils.AreEqual(0.7f, csum(float2(2.2f, -1.5f)), 4, false); @@ -2102,7 +2102,7 @@ public static void csum_float2() TestUtils.AreEqual(float.NegativeInfinity, csum(float2(-1.0f, float.NegativeInfinity)), 0, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void csum_float3() { TestUtils.AreEqual(1.9f, csum(float3(2.2f, -1.5f, 1.2f)), 4, false); @@ -2126,7 +2126,7 @@ public static void csum_float3() TestUtils.AreEqual(float.NegativeInfinity, csum(float3(-2.0f, 1.0f, float.NegativeInfinity)), 0, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void csum_float4() { TestUtils.AreEqual(1.2f, csum(float4(2.2f, -1.5f, 1.2f, -0.7f)), 4, false); @@ -2153,7 +2153,7 @@ public static void csum_float4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void csum_double2() { TestUtils.AreEqual(0.7, csum(double2(2.2, -1.5)), 4, false); @@ -2176,7 +2176,7 @@ public static void csum_double2() TestUtils.AreEqual(double.NegativeInfinity, csum(double2(-1.0, double.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void csum_double3() { TestUtils.AreEqual(1.9, csum(double3(2.2, -1.5, 1.2)), 4, false); @@ -2200,7 +2200,7 @@ public static void csum_double3() TestUtils.AreEqual(double.NegativeInfinity, csum(double3(-2.0, 1.0, double.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void csum_double4() { TestUtils.AreEqual(1.2, csum(double4(2.2, -1.5, 1.2, -0.7)), 4, false); @@ -2227,7 +2227,7 @@ public static void csum_double4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_bool2() { TestUtils.AreEqual(false, any(bool2(false, false))); @@ -2236,7 +2236,7 @@ public static void any_bool2() TestUtils.AreEqual(true, any(bool2(true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_bool3() { TestUtils.AreEqual(false, any(bool3(false, false, false))); @@ -2250,7 +2250,7 @@ public static void any_bool3() TestUtils.AreEqual(true, any(bool3(true, true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_bool4() { TestUtils.AreEqual(false, any(bool4(false, false, false, false))); @@ -2274,7 +2274,7 @@ public static void any_bool4() TestUtils.AreEqual(true, any(bool4(true, true, true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_int2() { TestUtils.AreEqual(false, any(int2(0, 0))); @@ -2284,7 +2284,7 @@ public static void any_int2() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_int3() { TestUtils.AreEqual(false, any(int3(0, 0, 0))); @@ -2298,7 +2298,7 @@ public static void any_int3() TestUtils.AreEqual(true, any(int3(-121, 100, 322))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_int4() { TestUtils.AreEqual(false, any(int4(0, 0, 0, 0))); @@ -2323,7 +2323,7 @@ public static void any_int4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_uint2() { TestUtils.AreEqual(false, any(uint2(0u, 0u))); @@ -2333,7 +2333,7 @@ public static void any_uint2() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_uint3() { TestUtils.AreEqual(false, any(uint3(0u, 0u, 0u))); @@ -2347,7 +2347,7 @@ public static void any_uint3() TestUtils.AreEqual(true, any(uint3(121u, 100u, 322u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_uint4() { TestUtils.AreEqual(false, any(uint4(0u, 0u, 0u, 0u))); @@ -2372,7 +2372,7 @@ public static void any_uint4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_float2() { //TestUtils.AreEqual(true, any(float2(0, float.NaN))); // TODO: doesn't work with burst @@ -2384,7 +2384,7 @@ public static void any_float2() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_float3() { //TestUtils.AreEqual(true, any(float3(0.0f, float.NaN, 0.0f))); // TODO: doesn't work with burst @@ -2400,7 +2400,7 @@ public static void any_float3() TestUtils.AreEqual(true, any(float3(121.2f, 100.0f, -32.2f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_float4() { TestUtils.AreEqual(false, any(float4(0.0f, 0.0f, 0.0f, 0.0f))); @@ -2424,7 +2424,7 @@ public static void any_float4() TestUtils.AreEqual(true, any(float4(55.0f, 66.0f, 5000.0f, 10000.2f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_double2() { //TestUtils.AreEqual(true, any(double2(0, double.NaN))); // TODO: doesn't work with burst. @@ -2436,7 +2436,7 @@ public static void any_double2() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_double3() { //TestUtils.AreEqual(true, any(double3(0.0, double.NaN, 0.0))); // TODO: doesn't work with burst @@ -2452,7 +2452,7 @@ public static void any_double3() TestUtils.AreEqual(true, any(double3(121.2, 100.0, -32.2))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void any_double4() { TestUtils.AreEqual(false, any(double4(0.0, 0.0, 0.0, 0.0))); @@ -2477,7 +2477,7 @@ public static void any_double4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_bool2() { TestUtils.AreEqual(false, all(bool2(false, false))); @@ -2486,7 +2486,7 @@ public static void all_bool2() TestUtils.AreEqual(true, all(bool2(true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_bool3() { TestUtils.AreEqual(false, all(bool3(false, false, false))); @@ -2500,7 +2500,7 @@ public static void all_bool3() TestUtils.AreEqual(true, all(bool3(true, true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_bool4() { TestUtils.AreEqual(false, all(bool4(false, false, false, false))); @@ -2524,7 +2524,7 @@ public static void all_bool4() TestUtils.AreEqual(true, all(bool4(true, true, true, true))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_int2() { TestUtils.AreEqual(false, all(int2(0, 0))); @@ -2533,7 +2533,7 @@ public static void all_int2() TestUtils.AreEqual(true, all(int2(2, int.MinValue))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_int3() { TestUtils.AreEqual(false, all(int3(0, 0, 0))); @@ -2547,7 +2547,7 @@ public static void all_int3() TestUtils.AreEqual(true, all(int3(-121, 100, 322))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_int4() { TestUtils.AreEqual(false, all(int4(0, 0, 0, 0))); @@ -2572,7 +2572,7 @@ public static void all_int4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_uint2() { TestUtils.AreEqual(false, all(uint2(0u, 0u))); @@ -2582,7 +2582,7 @@ public static void all_uint2() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_uint3() { TestUtils.AreEqual(false, all(uint3(0u, 0u, 0u))); @@ -2596,7 +2596,7 @@ public static void all_uint3() TestUtils.AreEqual(true, all(uint3(121u, 100u, 322u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_uint4() { TestUtils.AreEqual(false, all(uint4(0u, 0u, 0u, 0u))); @@ -2621,7 +2621,7 @@ public static void all_uint4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_float2() { TestUtils.AreEqual(true, all(float2(float.NaN, float.NaN))); @@ -2633,7 +2633,7 @@ public static void all_float2() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_float3() { TestUtils.AreEqual(true, all(float3(float.NaN, float.NaN, float.NaN))); @@ -2649,7 +2649,7 @@ public static void all_float3() TestUtils.AreEqual(true, all(float3(121.2f, 100.0f, -32.2f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_float4() { TestUtils.AreEqual(true, all(float4(float.NaN, float.NaN, float.NaN, float.NaN))); @@ -2675,7 +2675,7 @@ public static void all_float4() TestUtils.AreEqual(true, all(float4(55.0f, 66.0f, 5000.0f, 10000.2f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_double2() { TestUtils.AreEqual(true, all(double2(double.NaN, double.NaN))); @@ -2687,7 +2687,7 @@ public static void all_double2() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_double3() { TestUtils.AreEqual(true, all(double3(double.NaN, double.NaN, double.NaN))); @@ -2703,7 +2703,7 @@ public static void all_double3() TestUtils.AreEqual(true, all(double3(121.2, 100.0, -32.2))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void all_double4() { TestUtils.AreEqual(true, all(double4(double.NaN, double.NaN, double.NaN, double.NaN))); @@ -2730,7 +2730,7 @@ public static void all_double4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void length_float2() { TestUtils.AreEqual(0.0f, length(float2(0.0f, 0.0f)), 0, false); @@ -2743,7 +2743,7 @@ public static void length_float2() TestUtils.AreEqual(double.PositiveInfinity, length(float2(-1.2e19f, -2.6e19f)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void length_float3() { TestUtils.AreEqual(0.0f, length(float3(0.0f, 0.0f, 0.0f)), 0, false); @@ -2756,7 +2756,7 @@ public static void length_float3() TestUtils.AreEqual(float.PositiveInfinity, length(float3(-1.2e19f, -2.6e19f, 2.2e19f)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void length_float4() { TestUtils.AreEqual(0.0f, length(float4(0.0f, 0.0f, 0.0f, 0.0f)), 0, false); @@ -2770,7 +2770,7 @@ public static void length_float4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void length_double2() { TestUtils.AreEqual(0.0, length(double2(0.0, 0.0)), 0, false); @@ -2782,7 +2782,7 @@ public static void length_double2() TestUtils.AreEqual(2.86356421265527063e153, length(double2(-1.2e153, 2.6e153)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void length_double3() { TestUtils.AreEqual(0.0, length(double3(0.0, 0.0, 0.0)), 0, false); @@ -2794,7 +2794,7 @@ public static void length_double3() TestUtils.AreEqual(3.6110940170535577e153, length(double3(-1.2e153, 2.6e153, 2.2e153)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void length_double4() { TestUtils.AreEqual(0.0, length(double4(0.0, 0.0, 0.0, 0.0)), 0, false); @@ -2807,7 +2807,7 @@ public static void length_double4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lengthsq_float2() { TestUtils.AreEqual(0.0f, lengthsq(float2(0.0f, 0.0f)), 0, false); @@ -2819,7 +2819,7 @@ public static void lengthsq_float2() TestUtils.AreEqual(8.2e36f, lengthsq(float2(-1.2e18f, 2.6e18f)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lengthsq_float3() { TestUtils.AreEqual(0.0f, lengthsq(float3(0.0f, 0.0f, 0.0f)), 0, false); @@ -2832,7 +2832,7 @@ public static void lengthsq_float3() TestUtils.AreEqual(float.PositiveInfinity, lengthsq(float3(-1.2e19f, -2.6e19f, 2.2e19f)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lengthsq_float4() { TestUtils.AreEqual(0.0f, lengthsq(float4(0.0f, 0.0f, 0.0f, 0.0f)), 0, false); @@ -2846,7 +2846,7 @@ public static void lengthsq_float4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lengthsq_double2() { TestUtils.AreEqual(0.0, lengthsq(double2(0.0, 0.0)), 0, false); @@ -2859,7 +2859,7 @@ public static void lengthsq_double2() TestUtils.AreEqual(double.PositiveInfinity, lengthsq(double2(-1.2e154, -2.6e154)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lengthsq_double3() { TestUtils.AreEqual(0.0, lengthsq(double3(0.0, 0.0, 0.0)), 0, false); @@ -2872,7 +2872,7 @@ public static void lengthsq_double3() TestUtils.AreEqual(double.PositiveInfinity, lengthsq(double3(-1.2e154, -2.6e154, 2.2e154)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lengthsq_double4() { TestUtils.AreEqual(0.0, lengthsq(double4(0.0, 0.0, 0.0, 0.0)), 0, false); @@ -2888,7 +2888,7 @@ public static void lengthsq_double4() - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void distance_float2() { TestUtils.AreEqual(0.0f, distance(float2(1.3f, -2.4f), float2(1.3f, -2.4f)), 0, false); @@ -2902,7 +2902,7 @@ public static void distance_float2() TestUtils.AreEqual(float.PositiveInfinity, distance(float2(1.3f, float.NegativeInfinity), float2(-5.3f, 4.3f)), 0, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void distance_float3() { TestUtils.AreEqual(0.0f, distance(float2(1.3f, -2.4f), float2(1.3f, -2.4f)), 0, false); @@ -2916,7 +2916,7 @@ public static void distance_float3() TestUtils.AreEqual(float.PositiveInfinity, distance(float2(1.3f, float.NegativeInfinity), float2(-5.3f, 4.3f)), 0, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void distance_float4() { TestUtils.AreEqual(0.0, distance(float4(1.3f, -2.4f, 5.7f, 3.1f), float4(1.3f, -2.4f, 5.7f, 3.1f)), 0, false); @@ -2931,7 +2931,7 @@ public static void distance_float4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void distance_double2() { TestUtils.AreEqual(0.0, distance(double2(1.3, -2.4), double2(1.3, -2.4)), 0, false); @@ -2944,7 +2944,7 @@ public static void distance_double2() TestUtils.AreEqual(double.PositiveInfinity, distance(double2(1.3, -2.4), double2(-5.3, double.PositiveInfinity)), 0, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void distance_double3() { TestUtils.AreEqual(0.0, distance(double2(1.3, -2.4), double2(1.3, -2.4)), 0, false); @@ -2957,7 +2957,7 @@ public static void distance_double3() TestUtils.AreEqual(double.PositiveInfinity, distance(double2(1.3, -2.4), double2(-5.3, double.PositiveInfinity)), 0, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void distance_double4() { TestUtils.AreEqual(0.0, distance(double4(1.3, -2.4, 5.7, 3.1), double4(1.3, -2.4, 5.7, 3.1)), 0, false); @@ -2970,7 +2970,7 @@ public static void distance_double4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void distancesq_float2() { TestUtils.AreEqual(0.0f, distancesq(float2(1.3f, -2.4f), float2(1.3f, -2.4f)), 0, false); @@ -2982,7 +2982,7 @@ public static void distancesq_float2() TestUtils.AreEqual(float.PositiveInfinity, distancesq(float2(1.3f, -2.4f), float2(-5.3f, float.PositiveInfinity)), 0, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void distancesq_float3() { TestUtils.AreEqual(0.0f, distancesq(float3(1.3f, -2.4f, 5.7f), float3(1.3f, -2.4f, 5.7f)), 0, false); @@ -2995,7 +2995,7 @@ public static void distancesq_float3() TestUtils.AreEqual(float.PositiveInfinity, distancesq(float3(1.3f, -2.4f, 5.7f), float3(-5.3f, float.PositiveInfinity, 4.7f)), 0, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void distancesq_float4() { TestUtils.AreEqual(0.0f, distancesq(float4(1.3f, -2.4f, 5.7f, 3.1f), float4(1.3f, -2.4f, 5.7f, 3.1f)), 0, false); @@ -3008,7 +3008,7 @@ public static void distancesq_float4() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void distancesq_double2() { TestUtils.AreEqual(0.0, distancesq(double2(1.3, -2.4), double2(1.3, -2.4)), 0, false); @@ -3022,7 +3022,7 @@ public static void distancesq_double2() TestUtils.AreEqual(double.PositiveInfinity, distancesq(double2(1.3, double.NegativeInfinity), double2(-5.3, 4.3)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void distancesq_double3() { TestUtils.AreEqual(0.0, distancesq(double3(1.3, -2.4, 5.7), double3(1.3, -2.4, 5.7)), 0, false); @@ -3036,7 +3036,7 @@ public static void distancesq_double3() TestUtils.AreEqual(double.PositiveInfinity, distancesq(double3(1.3, double.NegativeInfinity, 5.7), double3(-5.3, 4.3, 4.7)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void distancesq_double4() { TestUtils.AreEqual(0.0, distancesq(double4(1.3, -2.4, 5.7, 3.1), double4(1.3, -2.4, 5.7, 3.1)), 0, false); @@ -3050,7 +3050,7 @@ public static void distancesq_double4() TestUtils.AreEqual(double.PositiveInfinity, distancesq(double4(1.3, double.NegativeInfinity, 5.7, 3.1), double4(-5.3, 4.3, 4.7, 0.3)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void epsilon_float() { float next = asfloat(asuint(1.0f) + 1); @@ -3059,7 +3059,7 @@ public static void epsilon_float() TestUtils.IsTrue(Single.Epsilon != EPSILON); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void epsilon_double() { double next = asdouble(aslong(1.0) + 1); @@ -3068,7 +3068,7 @@ public static void epsilon_double() TestUtils.IsTrue(Double.Epsilon != EPSILON_DBL); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void nan_float() { TestUtils.IsFalse(0.0f == NAN); @@ -3093,7 +3093,7 @@ public static void nan_float() TestUtils.IsTrue(nan1 != nan2); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void nan_double() { TestUtils.IsFalse(0.0 == NAN_DBL); @@ -3118,7 +3118,7 @@ public static void nan_double() TestUtils.IsTrue(nan1 != nan2); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void infinity_float() { TestUtils.IsTrue(-INFINITY != INFINITY); @@ -3126,7 +3126,7 @@ public static void infinity_float() TestUtils.IsFalse(isfinite(INFINITY)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void infinity_double() { TestUtils.IsTrue(-INFINITY_DBL != INFINITY_DBL); @@ -3134,7 +3134,7 @@ public static void infinity_double() TestUtils.IsFalse(isfinite(INFINITY_DBL)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void helper_axes() { TestUtils.AreEqual(float3(1.0f, 0.0f, 0.0f), right()); @@ -3145,7 +3145,7 @@ public static void helper_axes() TestUtils.AreEqual(float3(0.0f, 0.0f, -1.0f), back()); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_float_signed_zero() { @@ -3153,21 +3153,21 @@ public static void rcp_float_signed_zero() TestUtils.AreEqual(TestUtils.SignedFloatZero(), rcp(float.NegativeInfinity)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_float2_signed_zero() { TestUtils.AreEqual(float2(float.NegativeInfinity, TestUtils.SignedFloatZero()), rcp(float2(TestUtils.SignedFloatZero(), float.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_float3_signed_zero() { TestUtils.AreEqual(float3(float.NegativeInfinity, TestUtils.SignedFloatZero(), float.NegativeInfinity), rcp(float3(TestUtils.SignedFloatZero(), float.NegativeInfinity, TestUtils.SignedFloatZero()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_float4_signed_zero() { @@ -3175,7 +3175,7 @@ public static void rcp_float4_signed_zero() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_double_signed_zero() { @@ -3183,28 +3183,28 @@ public static void rcp_double_signed_zero() TestUtils.AreEqual(TestUtils.SignedDoubleZero(), rcp(double.NegativeInfinity)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_double2_signed_zero() { TestUtils.AreEqual(double2(double.NegativeInfinity, TestUtils.SignedDoubleZero()), rcp(double2(TestUtils.SignedDoubleZero(), double.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_double3_signed_zero() { TestUtils.AreEqual(double3(double.NegativeInfinity, TestUtils.SignedDoubleZero(), double.NegativeInfinity), rcp(double3(TestUtils.SignedDoubleZero(), double.NegativeInfinity, TestUtils.SignedDoubleZero()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_double4_signed_zero() { TestUtils.AreEqual(double4(double.NegativeInfinity, TestUtils.SignedDoubleZero(), double.NegativeInfinity, TestUtils.SignedDoubleZero()), rcp(double4(TestUtils.SignedDoubleZero(), double.NegativeInfinity, TestUtils.SignedDoubleZero(), double.NegativeInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] unsafe public static void compress_test() { int4 value = int4(0x12345678, 0x2468ACE0, 0x369BE147, 0x48C059D1); @@ -3250,7 +3250,7 @@ unsafe public static void compress_test() } } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] unsafe public static void compress_uint4_test() { uint4 value = uint4(0x12345678u, 0x2468ACE0u, 0x369BE147u, 0x48C059D1u); @@ -3296,7 +3296,7 @@ unsafe public static void compress_uint4_test() } } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] unsafe public static void compress_float4_test() { float4 value = float4(float.PositiveInfinity, EPSILON, PI, -0.25f); @@ -3342,7 +3342,7 @@ unsafe public static void compress_float4_test() } } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_float() { TestUtils.AreEqual(0.0f, math.square(0.0f)); @@ -3370,7 +3370,7 @@ public static void square_float() TestUtils.AreEqual(float.PositiveInfinity, math.square(-18446744073709551616.0f)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_float2() { TestUtils.AreEqual(new float2(0.0f), math.square(new float2(0.0f))); @@ -3401,7 +3401,7 @@ public static void square_float2() TestUtils.AreEqual(new float2(0.272176146507263183594f, 96307.6015625f), math.square(new float2(0.521705031394958496094f, -310.33465576171875f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_float3() { TestUtils.AreEqual(new float3(0.0f), math.square(new float3(0.0f))); @@ -3432,7 +3432,7 @@ public static void square_float3() TestUtils.AreEqual(new float3(0.272176146507263183594f, 96307.6015625f, 5591.6337890625f), math.square(new float3(0.521705031394958496094f, -310.33465576171875f, -74.77722930908203125f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_float4() { TestUtils.AreEqual(new float4(0.0f), math.square(new float4(0.0f))); @@ -3463,7 +3463,7 @@ public static void square_float4() TestUtils.AreEqual(new float4(0.272176146507263183594f, 96307.6015625f, 5591.6337890625f, 152764.28125f), math.square(new float4(0.521705031394958496094f, -310.33465576171875f, -74.77722930908203125f, 390.8507080078125f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_double() { TestUtils.AreEqual(0.0, math.square(0.0)); @@ -3491,7 +3491,7 @@ public static void square_double() TestUtils.AreEqual(double.PositiveInfinity, math.square(-1.34078079299425970996e+154)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_double2() { TestUtils.AreEqual(new double2(0.0), math.square(new double2(0.0))); @@ -3522,7 +3522,7 @@ public static void square_double2() TestUtils.AreEqual(new double2(0.272176139782814630053, 96307.5985667444765568), math.square(new double2(0.521705031394958496094, -310.33465576171875))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_double3() { TestUtils.AreEqual(new double3(0.0), math.square(new double3(0.0))); @@ -3553,7 +3553,7 @@ public static void square_double3() TestUtils.AreEqual(new double3(0.272176139782814630053, 96307.5985667444765568, 5591.63402314303675666), math.square(new double3(0.521705031394958496094, -310.33465576171875, -74.77722930908203125))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_double4() { TestUtils.AreEqual(new double4(0.0), math.square(new double4(0.0))); @@ -3584,7 +3584,7 @@ public static void square_double4() TestUtils.AreEqual(new double4(0.272176139782814630053, 96307.5985667444765568 /*96307.5985667444765568*/, 5591.63402314303675666 /*5591.6337890625*/, 152764.275950208306313 /*152764.28125*/), math.square(new double4(0.521705031394958496094, -310.33465576171875, -74.77722930908203125, 390.8507080078125))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_int() { TestUtils.AreEqual(0, math.square(0)); @@ -3612,7 +3612,7 @@ public static void square_int() TestUtils.AreEqual(0, math.square(-2147483648)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_int2() { TestUtils.AreEqual(new int2(0), math.square(new int2(0))); @@ -3643,7 +3643,7 @@ public static void square_int2() TestUtils.AreEqual(new int2(2121580241, -685235535), math.square(new int2(-831443639, 1415191751))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_int3() { TestUtils.AreEqual(new int3(0), math.square(new int3(0))); @@ -3674,7 +3674,7 @@ public static void square_int3() TestUtils.AreEqual(new int3(2121580241, -685235535, 468048505), math.square(new int3(-831443639, 1415191751, -178100469))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_int4() { TestUtils.AreEqual(new int4(0), math.square(new int4(0))); @@ -3705,7 +3705,7 @@ public static void square_int4() TestUtils.AreEqual(new int4(2121580241, -685235535, 468048505, -1902728316), math.square(new int4(-831443639, 1415191751, -178100469, 1331775970))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_uint() { TestUtils.AreEqual(0u, math.square(0u)); @@ -3723,7 +3723,7 @@ public static void square_uint() TestUtils.AreEqual(2356482048u, math.square(123456u)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_uint2() { TestUtils.AreEqual(new uint2(0u), math.square(new uint2(0u))); @@ -3744,7 +3744,7 @@ public static void square_uint2() TestUtils.AreEqual(new uint2(3982663844u, 503153673u), math.square(new uint2(779359642u, 2488899075u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_uint3() { TestUtils.AreEqual(new uint3(0u), math.square(new uint3(0u))); @@ -3765,7 +3765,7 @@ public static void square_uint3() TestUtils.AreEqual(new uint3(3982663844u, 503153673u, 4101817232u), math.square(new uint3(779359642u, 2488899075u, 407772844u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void square_uint4() { TestUtils.AreEqual(new uint4(0u), math.square(new uint4(0u))); @@ -3809,7 +3809,7 @@ static double OrthonormalBasisSquaredError(double3 v1, double3 v2, double3 v3) // "Building an Orthonormal Basis, Revisited" table 1. private const double kOrthonormalBasisSqErrorTolerance = 1.04e-7d; - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void orthonormal_basis_float() { var random = new Random(8189782u); @@ -3824,7 +3824,7 @@ public static void orthonormal_basis_float() } } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void orthonormal_basis_double() { var random = new Random(99917872u); @@ -3839,7 +3839,7 @@ public static void orthonormal_basis_double() } } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void chgsign_float() { float c = chgsign(1f, -1f); @@ -3901,7 +3901,7 @@ public static void chgsign_float() TestUtils.AreEqual(asuint(TestUtils.SignedFloatZero()), asuint(c)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void chgsign_float2() { float2 c = chgsign(float2(1f, -2f), float2(-1f, 23.548f)); @@ -3936,7 +3936,7 @@ public static void chgsign_float2() TestUtils.AreEqual(asuint(math.float2(TestUtils.SignedFloatZero())), asuint(c)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void chgsign_float3() { float3 c = chgsign(float3(1f, -2f, 3f), float3(-1f, 23.548f, -0f)); @@ -3971,7 +3971,7 @@ public static void chgsign_float3() TestUtils.AreEqual(asuint(math.float3(TestUtils.SignedFloatZero())), asuint(c)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void chgsign_float4() { float4 c = chgsign(float4(1f, 2f, 3f, -4f), float4(-1f, 0f, -0f, -23.56f)); @@ -4006,7 +4006,7 @@ public static void chgsign_float4() TestUtils.AreEqual(asuint(math.float4(TestUtils.SignedFloatZero())), asuint(c)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static unsafe void quaternion_to_euler() { const float epsilon = 0.0045f; @@ -4079,7 +4079,7 @@ static quaternion TestRefEulerToQuat(float3 angle, math.RotationOrder order) } } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mulScale() { var tolerance = 1e-5f; @@ -4101,7 +4101,7 @@ public static void mulScale() TestUtils.AreEqual(expected, actual, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void scaleMul() { var tolerance = 1e-5f; @@ -4123,7 +4123,7 @@ public static void scaleMul() TestUtils.AreEqual(expected, actual, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void piDoubleConstants() { var expectedPi = 3.141592653589793116; @@ -4133,7 +4133,7 @@ public static void piDoubleConstants() TestUtils.AreEqual(expectedPi * 2.0, TAU_DBL); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void piSingleConstants() { var expectedPi = 3.141592653589793116f; @@ -4143,7 +4143,7 @@ public static void piSingleConstants() TestUtils.AreEqual(expectedPi * 2.0f, TAU); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void toDegreesConstants() { TestUtils.AreEqual(360.0, PI2_DBL * TODEGREES_DBL); @@ -4157,7 +4157,7 @@ public static void toDegreesConstants() TestUtils.AreEqual(90.0f, PIHALF * TODEGREES); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void toRadiansConstants() { TestUtils.AreEqual(PI2_DBL, 360.0 * TORADIANS_DBL); @@ -4171,7 +4171,7 @@ public static void toRadiansConstants() TestUtils.AreEqual(PIHALF, 90.0f * TORADIANS); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void degreesConversionGivesSameResult() { int n = 360; @@ -4184,7 +4184,7 @@ public static void degreesConversionGivesSameResult() } } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void radiansConversionGivesSameResult() { int n = 360; diff --git a/src/Tests/Tests/Shared/TestMath.gen.cs b/src/Tests/Tests/Shared/TestMath.gen.cs index 3a803b97..1a8e3253 100644 --- a/src/Tests/Tests/Shared/TestMath.gen.cs +++ b/src/Tests/Tests/Shared/TestMath.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public partial class TestMath { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void abs_int() { TestUtils.AreEqual(0, abs(0)); @@ -25,7 +25,7 @@ public static void abs_int() TestUtils.AreEqual(-2147483648, abs(-2147483648)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void abs_int2() { TestUtils.AreEqual(int2(0, 7), abs(int2(0, -7))); @@ -33,21 +33,21 @@ public static void abs_int2() TestUtils.AreEqual(int2(-2147483648, -2147483648), abs(int2(-2147483648, -2147483648))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void abs_int3() { TestUtils.AreEqual(int3(0, 7, 11), abs(int3(0, -7, 11))); TestUtils.AreEqual(int3(2147483647, -2147483648, -2147483648), abs(int3(-2147483647, -2147483648, -2147483648))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void abs_int4() { TestUtils.AreEqual(int4(0, 7, 11, 2147483647), abs(int4(0, -7, 11, -2147483647))); TestUtils.AreEqual(int4(-2147483648, -2147483648, -2147483648, -2147483648), abs(int4(-2147483648, -2147483648, -2147483648, -2147483648))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void abs_float() { TestUtils.AreEqual(0f, abs(0f)); @@ -57,7 +57,7 @@ public static void abs_float() TestUtils.AreEqual(float.PositiveInfinity, abs(float.PositiveInfinity)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void abs_float2() { TestUtils.AreEqual(float2(0f, 1.1f), abs(float2(0f, -1.1f))); @@ -65,21 +65,21 @@ public static void abs_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), abs(float2(float.PositiveInfinity, float.PositiveInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void abs_float3() { TestUtils.AreEqual(float3(0f, 1.1f, 2.2f), abs(float3(0f, -1.1f, 2.2f))); TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), abs(float3(float.NegativeInfinity, float.PositiveInfinity, float.PositiveInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void abs_float4() { TestUtils.AreEqual(float4(0f, 1.1f, 2.2f, float.PositiveInfinity), abs(float4(0f, -1.1f, 2.2f, float.NegativeInfinity))); TestUtils.AreEqual(float4(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), abs(float4(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void abs_double() { TestUtils.AreEqual(0.0, abs(0.0)); @@ -89,7 +89,7 @@ public static void abs_double() TestUtils.AreEqual(double.PositiveInfinity, abs(double.PositiveInfinity)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void abs_double2() { TestUtils.AreEqual(double2(0.0, 1.1), abs(double2(0.0, -1.1))); @@ -97,21 +97,21 @@ public static void abs_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), abs(double2(double.PositiveInfinity, double.PositiveInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void abs_double3() { TestUtils.AreEqual(double3(0.0, 1.1, 2.2), abs(double3(0.0, -1.1, 2.2))); TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), abs(double3(double.NegativeInfinity, double.PositiveInfinity, double.PositiveInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void abs_double4() { TestUtils.AreEqual(double4(0.0, 1.1, 2.2, double.PositiveInfinity), abs(double4(0.0, -1.1, 2.2, double.NegativeInfinity))); TestUtils.AreEqual(double4(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), abs(double4(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isfinite_float() { TestUtils.AreEqual(false, isfinite(TestUtils.SignedFloatQNaN())); @@ -125,7 +125,7 @@ public static void isfinite_float() TestUtils.AreEqual(false, isfinite(TestUtils.UnsignedFloatQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isfinite_float2() { TestUtils.AreEqual(bool2(false, false), isfinite(float2(TestUtils.SignedFloatQNaN(), float.NegativeInfinity))); @@ -135,7 +135,7 @@ public static void isfinite_float2() TestUtils.AreEqual(bool2(false, false), isfinite(float2(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isfinite_float3() { TestUtils.AreEqual(bool3(false, false, true), isfinite(float3(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, float.MinValue))); @@ -143,7 +143,7 @@ public static void isfinite_float3() TestUtils.AreEqual(bool3(true, false, false), isfinite(float3(float.MaxValue, float.PositiveInfinity, TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isfinite_float4() { TestUtils.AreEqual(bool4(false, false, true, true), isfinite(float4(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, float.MinValue, -1f))); @@ -151,7 +151,7 @@ public static void isfinite_float4() TestUtils.AreEqual(bool4(false, false, false, false), isfinite(float4(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isfinite_double() { TestUtils.AreEqual(false, isfinite(TestUtils.SignedDoubleQNaN())); @@ -165,7 +165,7 @@ public static void isfinite_double() TestUtils.AreEqual(false, isfinite(TestUtils.UnsignedDoubleQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isfinite_double2() { TestUtils.AreEqual(bool2(false, false), isfinite(double2(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity))); @@ -175,7 +175,7 @@ public static void isfinite_double2() TestUtils.AreEqual(bool2(false, false), isfinite(double2(TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isfinite_double3() { TestUtils.AreEqual(bool3(false, false, true), isfinite(double3(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, double.MinValue))); @@ -183,7 +183,7 @@ public static void isfinite_double3() TestUtils.AreEqual(bool3(true, false, false), isfinite(double3(double.MaxValue, double.PositiveInfinity, TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isfinite_double4() { TestUtils.AreEqual(bool4(false, false, true, true), isfinite(double4(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, double.MinValue, -1.0))); @@ -191,7 +191,7 @@ public static void isfinite_double4() TestUtils.AreEqual(bool4(false, false, false, false), isfinite(double4(TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isinf_float() { TestUtils.AreEqual(false, isinf(TestUtils.SignedFloatQNaN())); @@ -205,7 +205,7 @@ public static void isinf_float() TestUtils.AreEqual(false, isinf(TestUtils.UnsignedFloatQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isinf_float2() { TestUtils.AreEqual(bool2(false, true), isinf(float2(TestUtils.SignedFloatQNaN(), float.NegativeInfinity))); @@ -215,7 +215,7 @@ public static void isinf_float2() TestUtils.AreEqual(bool2(false, false), isinf(float2(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isinf_float3() { TestUtils.AreEqual(bool3(false, true, false), isinf(float3(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, float.MinValue))); @@ -223,7 +223,7 @@ public static void isinf_float3() TestUtils.AreEqual(bool3(false, true, false), isinf(float3(float.MaxValue, float.PositiveInfinity, TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isinf_float4() { TestUtils.AreEqual(bool4(false, true, false, false), isinf(float4(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, float.MinValue, -1f))); @@ -231,7 +231,7 @@ public static void isinf_float4() TestUtils.AreEqual(bool4(false, false, false, false), isinf(float4(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isinf_double() { TestUtils.AreEqual(false, isinf(TestUtils.SignedDoubleQNaN())); @@ -245,7 +245,7 @@ public static void isinf_double() TestUtils.AreEqual(false, isinf(TestUtils.UnsignedDoubleQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isinf_double2() { TestUtils.AreEqual(bool2(false, true), isinf(double2(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity))); @@ -255,7 +255,7 @@ public static void isinf_double2() TestUtils.AreEqual(bool2(false, false), isinf(double2(TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isinf_double3() { TestUtils.AreEqual(bool3(false, true, false), isinf(double3(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, double.MinValue))); @@ -263,7 +263,7 @@ public static void isinf_double3() TestUtils.AreEqual(bool3(false, true, false), isinf(double3(double.MaxValue, double.PositiveInfinity, TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isinf_double4() { TestUtils.AreEqual(bool4(false, true, false, false), isinf(double4(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, double.MinValue, -1.0))); @@ -271,7 +271,7 @@ public static void isinf_double4() TestUtils.AreEqual(bool4(false, false, false, false), isinf(double4(TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isnan_float() { TestUtils.AreEqual(true, isnan(TestUtils.SignedFloatQNaN())); @@ -285,7 +285,7 @@ public static void isnan_float() TestUtils.AreEqual(true, isnan(TestUtils.UnsignedFloatQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isnan_float2() { TestUtils.AreEqual(bool2(true, false), isnan(float2(TestUtils.SignedFloatQNaN(), float.NegativeInfinity))); @@ -295,7 +295,7 @@ public static void isnan_float2() TestUtils.AreEqual(bool2(true, true), isnan(float2(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isnan_float3() { TestUtils.AreEqual(bool3(true, false, false), isnan(float3(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, float.MinValue))); @@ -303,7 +303,7 @@ public static void isnan_float3() TestUtils.AreEqual(bool3(false, false, true), isnan(float3(float.MaxValue, float.PositiveInfinity, TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isnan_float4() { TestUtils.AreEqual(bool4(true, false, false, false), isnan(float4(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, float.MinValue, -1f))); @@ -311,7 +311,7 @@ public static void isnan_float4() TestUtils.AreEqual(bool4(true, true, true, true), isnan(float4(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isnan_double() { TestUtils.AreEqual(true, isnan(TestUtils.SignedDoubleQNaN())); @@ -325,7 +325,7 @@ public static void isnan_double() TestUtils.AreEqual(true, isnan(TestUtils.UnsignedDoubleQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isnan_double2() { TestUtils.AreEqual(bool2(true, false), isnan(double2(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity))); @@ -335,7 +335,7 @@ public static void isnan_double2() TestUtils.AreEqual(bool2(true, true), isnan(double2(TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isnan_double3() { TestUtils.AreEqual(bool3(true, false, false), isnan(double3(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, double.MinValue))); @@ -343,7 +343,7 @@ public static void isnan_double3() TestUtils.AreEqual(bool3(false, false, true), isnan(double3(double.MaxValue, double.PositiveInfinity, TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void isnan_double4() { TestUtils.AreEqual(bool4(true, false, false, false), isnan(double4(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, double.MinValue, -1.0))); @@ -351,7 +351,7 @@ public static void isnan_double4() TestUtils.AreEqual(bool4(true, true, true, true), isnan(double4(TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sin_float() { TestUtils.AreEqual(0.3499935f, sin(-1000000f), 1, false); @@ -364,7 +364,7 @@ public static void sin_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), sin(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sin_float2() { TestUtils.AreEqual(float2(0.3499935f, -0.9320391f), sin(float2(-1000000f, -1.2f)), 1, false); @@ -373,7 +373,7 @@ public static void sin_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), sin(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sin_float3() { TestUtils.AreEqual(float3(0.3499935f, -0.9320391f, 0f), sin(float3(-1000000f, -1.2f, 0f)), 1, false); @@ -381,14 +381,14 @@ public static void sin_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), sin(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sin_float4() { TestUtils.AreEqual(float4(0.3499935f, -0.9320391f, 0f, 0.9320391f), sin(float4(-1000000f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(-0.3499935f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), sin(float4(1000000f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sin_double() { TestUtils.AreEqual(0.34999350217129294, sin(-1000000.0), 32, false); @@ -401,7 +401,7 @@ public static void sin_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), sin(double.PositiveInfinity), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sin_double2() { TestUtils.AreEqual(double2(0.34999350217129294, -0.9320390859672264), sin(double2(-1000000.0, -1.2)), 32, false); @@ -410,7 +410,7 @@ public static void sin_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), sin(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sin_double3() { TestUtils.AreEqual(double3(0.34999350217129294, -0.9320390859672264, 0.0), sin(double3(-1000000.0, -1.2, 0.0)), 32, false); @@ -418,14 +418,14 @@ public static void sin_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), sin(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sin_double4() { TestUtils.AreEqual(double4(0.34999350217129294, -0.9320390859672264, 0.0, 0.9320390859672264), sin(double4(-1000000.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(-0.34999350217129294, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), sin(double4(1000000.0, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cos_float() { TestUtils.AreEqual(0.936752141f, cos(-1000000f), 8, false); @@ -438,7 +438,7 @@ public static void cos_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), cos(float.PositiveInfinity), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cos_float2() { TestUtils.AreEqual(float2(0.936752141f, 0.362357765f), cos(float2(-1000000f, -1.2f)), 8, false); @@ -447,7 +447,7 @@ public static void cos_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), cos(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cos_float3() { TestUtils.AreEqual(float3(0.936752141f, 0.362357765f, 1f), cos(float3(-1000000f, -1.2f, 0f)), 8, false); @@ -455,14 +455,14 @@ public static void cos_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), cos(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cos_float4() { TestUtils.AreEqual(float4(0.936752141f, 0.362357765f, 1f, 0.362357765f), cos(float4(-1000000f, -1.2f, 0f, 1.2f)), 8, false); TestUtils.AreEqual(float4(0.936752141f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), cos(float4(1000000f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cos_double() { TestUtils.AreEqual(0.93675212753314474, cos(-1000000.0), 32, false); @@ -475,7 +475,7 @@ public static void cos_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), cos(double.PositiveInfinity), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cos_double2() { TestUtils.AreEqual(double2(0.93675212753314474, 0.36235775447667357), cos(double2(-1000000.0, -1.2)), 32, false); @@ -484,7 +484,7 @@ public static void cos_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), cos(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cos_double3() { TestUtils.AreEqual(double3(0.93675212753314474, 0.36235775447667357, 1.0), cos(double3(-1000000.0, -1.2, 0.0)), 32, false); @@ -492,14 +492,14 @@ public static void cos_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), cos(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cos_double4() { TestUtils.AreEqual(double4(0.93675212753314474, 0.36235775447667357, 1.0, 0.36235775447667357), cos(double4(-1000000.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(0.93675212753314474, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), cos(double4(1000000.0, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tan_float() { TestUtils.AreEqual(0.373624444f, tan(-1000000f), 1, false); @@ -512,7 +512,7 @@ public static void tan_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), tan(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tan_float2() { TestUtils.AreEqual(float2(0.373624444f, -2.57215166f), tan(float2(-1000000f, -1.2f)), 1, false); @@ -521,7 +521,7 @@ public static void tan_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), tan(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tan_float3() { TestUtils.AreEqual(float3(0.373624444f, -2.57215166f, 0f), tan(float3(-1000000f, -1.2f, 0f)), 1, false); @@ -529,14 +529,14 @@ public static void tan_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), tan(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tan_float4() { TestUtils.AreEqual(float4(0.373624444f, -2.57215166f, 0f, 2.57215166f), tan(float4(-1000000f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(-0.373624444f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), tan(float4(1000000f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tan_double() { TestUtils.AreEqual(0.373624453987599, tan(-1000000.0), 32, false); @@ -549,7 +549,7 @@ public static void tan_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), tan(double.PositiveInfinity), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tan_double2() { TestUtils.AreEqual(double2(0.373624453987599, -2.57215162212632), tan(double2(-1000000.0, -1.2)), 32, false); @@ -558,7 +558,7 @@ public static void tan_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), tan(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tan_double3() { TestUtils.AreEqual(double3(0.373624453987599, -2.57215162212632, 0.0), tan(double3(-1000000.0, -1.2, 0.0)), 32, false); @@ -566,14 +566,14 @@ public static void tan_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), tan(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tan_double4() { TestUtils.AreEqual(double4(0.373624453987599, -2.57215162212632, 0.0, 2.57215162212632), tan(double4(-1000000.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(-0.373624453987599, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), tan(double4(1000000.0, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan_float() { TestUtils.AreEqual(-1.5707953f, atan(-1000000f), 1, false); @@ -586,7 +586,7 @@ public static void atan_float() TestUtils.AreEqual(1.57079637f, atan(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan_float2() { TestUtils.AreEqual(float2(-1.5707953f, -0.876058042f), atan(float2(-1000000f, -1.2f)), 1, false); @@ -595,7 +595,7 @@ public static void atan_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), 1.57079637f), atan(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan_float3() { TestUtils.AreEqual(float3(-1.5707953f, -0.876058042f, 0f), atan(float3(-1000000f, -1.2f, 0f)), 1, false); @@ -603,14 +603,14 @@ public static void atan_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), 1.57079637f, 1.57079637f), atan(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan_float4() { TestUtils.AreEqual(float4(-1.5707953f, -0.876058042f, 0f, 0.876058042f), atan(float4(-1000000f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(1.5707953f, -1.57079637f, TestUtils.SignedFloatQNaN(), 1.57079637f), atan(float4(1000000f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan_double() { TestUtils.AreEqual(-1.5707953267948971, atan(-1000000.0), 32, false); @@ -623,7 +623,7 @@ public static void atan_double() TestUtils.AreEqual(1.570796326794897, atan(double.PositiveInfinity), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan_double2() { TestUtils.AreEqual(double2(-1.5707953267948971, -0.87605805059819342), atan(double2(-1000000.0, -1.2)), 32, false); @@ -632,7 +632,7 @@ public static void atan_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), 1.570796326794897), atan(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan_double3() { TestUtils.AreEqual(double3(-1.5707953267948971, -0.87605805059819342, 0.0), atan(double3(-1000000.0, -1.2, 0.0)), 32, false); @@ -640,14 +640,14 @@ public static void atan_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), 1.570796326794897, 1.570796326794897), atan(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan_double4() { TestUtils.AreEqual(double4(-1.5707953267948971, -0.87605805059819342, 0.0, 0.87605805059819342), atan(double4(-1000000.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(1.5707953267948971, -1.570796326794897, TestUtils.SignedDoubleQNaN(), 1.570796326794897), atan(double4(1000000.0, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan2_float() { TestUtils.AreEqual(0.9119903f, atan2(3.1f, 2.4f), 1, false); @@ -664,7 +664,7 @@ public static void atan2_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), atan2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan2_float2() { TestUtils.AreEqual(float2(0.9119903f, 2.22960234f), atan2(float2(3.1f, 3.1f), float2(2.4f, -2.4f)), 1, false); @@ -675,7 +675,7 @@ public static void atan2_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), atan2(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float2(1f, TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan2_float3() { TestUtils.AreEqual(float3(0.9119903f, 2.22960234f, -0.9119903f), atan2(float3(3.1f, 3.1f, -3.1f), float3(2.4f, -2.4f, 2.4f)), 1, false); @@ -684,7 +684,7 @@ public static void atan2_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), atan2(float3(1f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), 1f, TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan2_float4() { TestUtils.AreEqual(float4(0.9119903f, 2.22960234f, -0.9119903f, -2.22960234f), atan2(float4(3.1f, 3.1f, -3.1f, -3.1f), float4(2.4f, -2.4f, 2.4f, -2.4f)), 1, false); @@ -692,7 +692,7 @@ public static void atan2_float4() TestUtils.AreEqual(float4(1.57079637f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), atan2(float4(float.PositiveInfinity, 1f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float4(1f, TestUtils.SignedFloatQNaN(), 1f, TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan2_double() { TestUtils.AreEqual(0.91199029067742043, atan2(3.1, 2.4), 32, false); @@ -709,7 +709,7 @@ public static void atan2_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), atan2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan2_double2() { TestUtils.AreEqual(double2(0.91199029067742043, 2.2296023629123729), atan2(double2(3.1, 3.1), double2(2.4, -2.4)), 32, false); @@ -720,7 +720,7 @@ public static void atan2_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), atan2(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double2(1.0, TestUtils.SignedDoubleQNaN())), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan2_double3() { TestUtils.AreEqual(double3(0.91199029067742043, 2.2296023629123729, -0.91199029067742043), atan2(double3(3.1, 3.1, -3.1), double3(2.4, -2.4, 2.4)), 32, false); @@ -729,7 +729,7 @@ public static void atan2_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), atan2(double3(1.0, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), 1.0, TestUtils.SignedDoubleQNaN())), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void atan2_double4() { TestUtils.AreEqual(double4(0.91199029067742043, 2.2296023629123729, -0.91199029067742043, -2.2296023629123729), atan2(double4(3.1, 3.1, -3.1, -3.1), double4(2.4, -2.4, 2.4, -2.4)), 32, false); @@ -737,7 +737,7 @@ public static void atan2_double4() TestUtils.AreEqual(double4(1.5707963267948966, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), atan2(double4(double.PositiveInfinity, 1.0, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double4(1.0, TestUtils.SignedDoubleQNaN(), 1.0, TestUtils.SignedDoubleQNaN())), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sinh_float() { TestUtils.AreEqual(-3.62686038f, sinh(-2f), 1, false); @@ -750,7 +750,7 @@ public static void sinh_float() TestUtils.AreEqual(float.PositiveInfinity, sinh(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sinh_float2() { TestUtils.AreEqual(float2(-3.62686038f, -1.5094614f), sinh(float2(-2f, -1.2f)), 1, false); @@ -759,7 +759,7 @@ public static void sinh_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity), sinh(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sinh_float3() { TestUtils.AreEqual(float3(-3.62686038f, -1.5094614f, 0f), sinh(float3(-2f, -1.2f, 0f)), 1, false); @@ -767,14 +767,14 @@ public static void sinh_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), sinh(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sinh_float4() { TestUtils.AreEqual(float4(-3.62686038f, -1.5094614f, 0f, 1.5094614f), sinh(float4(-2f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(3.62686038f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity), sinh(float4(2f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sinh_double() { TestUtils.AreEqual(-3.6268604078470181, sinh(-2.0), 32, false); @@ -787,7 +787,7 @@ public static void sinh_double() TestUtils.AreEqual(double.PositiveInfinity, sinh(double.PositiveInfinity), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sinh_double2() { TestUtils.AreEqual(double2(-3.6268604078470181, -1.509461355412173), sinh(double2(-2.0, -1.2)), 32, false); @@ -796,7 +796,7 @@ public static void sinh_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), sinh(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sinh_double3() { TestUtils.AreEqual(double3(-3.6268604078470181, -1.509461355412173, 0.0), sinh(double3(-2.0, -1.2, 0.0)), 32, false); @@ -804,14 +804,14 @@ public static void sinh_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), sinh(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sinh_double4() { TestUtils.AreEqual(double4(-3.6268604078470181, -1.509461355412173, 0.0, 1.509461355412173), sinh(double4(-2.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(3.6268604078470181, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), sinh(double4(2.0, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cosh_float() { TestUtils.AreEqual(3.76219559f, cosh(-2f), 1, false); @@ -824,7 +824,7 @@ public static void cosh_float() TestUtils.AreEqual(float.PositiveInfinity, cosh(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cosh_float2() { TestUtils.AreEqual(float2(3.76219559f, 1.81065559f), cosh(float2(-2f, -1.2f)), 1, false); @@ -833,7 +833,7 @@ public static void cosh_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity), cosh(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cosh_float3() { TestUtils.AreEqual(float3(3.76219559f, 1.81065559f, 1f), cosh(float3(-2f, -1.2f, 0f)), 1, false); @@ -841,14 +841,14 @@ public static void cosh_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), cosh(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cosh_float4() { TestUtils.AreEqual(float4(3.76219559f, 1.81065559f, 1f, 1.81065559f), cosh(float4(-2f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(3.76219559f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity), cosh(float4(2f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cosh_double() { TestUtils.AreEqual(3.7621956910836314, cosh(-2.0), 32, false); @@ -861,7 +861,7 @@ public static void cosh_double() TestUtils.AreEqual(double.PositiveInfinity, cosh(double.PositiveInfinity), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cosh_double2() { TestUtils.AreEqual(double2(3.7621956910836314, 1.81065556732437), cosh(double2(-2.0, -1.2)), 32, false); @@ -870,7 +870,7 @@ public static void cosh_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), cosh(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cosh_double3() { TestUtils.AreEqual(double3(3.7621956910836314, 1.81065556732437, 1.0), cosh(double3(-2.0, -1.2, 0.0)), 32, false); @@ -878,14 +878,14 @@ public static void cosh_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), cosh(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void cosh_double4() { TestUtils.AreEqual(double4(3.7621956910836314, 1.81065556732437, 1.0, 1.81065556732437), cosh(double4(-2.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(3.7621956910836314, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), cosh(double4(2.0, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tanh_float() { TestUtils.AreEqual(-0.9640276f, tanh(-2f), 1, false); @@ -898,7 +898,7 @@ public static void tanh_float() TestUtils.AreEqual(1f, tanh(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tanh_float2() { TestUtils.AreEqual(float2(-0.9640276f, -0.8336546f), tanh(float2(-2f, -1.2f)), 1, false); @@ -907,7 +907,7 @@ public static void tanh_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), 1f), tanh(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tanh_float3() { TestUtils.AreEqual(float3(-0.9640276f, -0.8336546f, 0f), tanh(float3(-2f, -1.2f, 0f)), 1, false); @@ -915,14 +915,14 @@ public static void tanh_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), 1f, 1f), tanh(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tanh_float4() { TestUtils.AreEqual(float4(-0.9640276f, -0.8336546f, 0f, 0.8336546f), tanh(float4(-2f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(0.9640276f, -1f, TestUtils.SignedFloatQNaN(), 1f), tanh(float4(2f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tanh_double() { TestUtils.AreEqual(-0.9640275800758169, tanh(-2.0), 32, false); @@ -935,7 +935,7 @@ public static void tanh_double() TestUtils.AreEqual(1.0, tanh(double.PositiveInfinity), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tanh_double2() { TestUtils.AreEqual(double2(-0.9640275800758169, -0.83365460701215521), tanh(double2(-2.0, -1.2)), 32, false); @@ -944,7 +944,7 @@ public static void tanh_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), 1.0), tanh(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tanh_double3() { TestUtils.AreEqual(double3(-0.9640275800758169, -0.83365460701215521, 0.0), tanh(double3(-2.0, -1.2, 0.0)), 32, false); @@ -952,14 +952,14 @@ public static void tanh_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), 1.0, 1.0), tanh(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void tanh_double4() { TestUtils.AreEqual(double4(-0.9640275800758169, -0.83365460701215521, 0.0, 0.83365460701215521), tanh(double4(-2.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(0.9640275800758169, -1.0, TestUtils.SignedDoubleQNaN(), 1.0), tanh(double4(2.0, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp_float() { TestUtils.AreEqual(4.539993E-05f, exp(-10f), 1, false); @@ -971,7 +971,7 @@ public static void exp_float() TestUtils.AreEqual(float.PositiveInfinity, exp(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp_float2() { TestUtils.AreEqual(float2(4.539993E-05f, 0.301194221f), exp(float2(-10f, -1.2f)), 1, false); @@ -980,7 +980,7 @@ public static void exp_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), exp(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp_float3() { TestUtils.AreEqual(float3(4.539993E-05f, 0.301194221f, 1f), exp(float3(-10f, -1.2f, 0f)), 1, false); @@ -988,14 +988,14 @@ public static void exp_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), exp(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp_float4() { TestUtils.AreEqual(float4(4.539993E-05f, 0.301194221f, 1f, 3.320117f), exp(float4(-10f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(0f, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), exp(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp_double() { TestUtils.AreEqual(4.5399929762484847E-05, exp(-10.0), 32, false); @@ -1007,7 +1007,7 @@ public static void exp_double() TestUtils.AreEqual(double.PositiveInfinity, exp(double.PositiveInfinity), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp_double2() { TestUtils.AreEqual(double2(4.5399929762484847E-05, 0.30119421191220208), exp(double2(-10.0, -1.2)), 32, false); @@ -1016,7 +1016,7 @@ public static void exp_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), exp(double2(double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp_double3() { TestUtils.AreEqual(double3(4.5399929762484847E-05, 0.30119421191220208, 1.0), exp(double3(-10.0, -1.2, 0.0)), 32, false); @@ -1024,14 +1024,14 @@ public static void exp_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), exp(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp_double4() { TestUtils.AreEqual(double4(4.5399929762484847E-05, 0.30119421191220208, 1.0, 3.3201169227365477), exp(double4(-10.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(0.0, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), exp(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp2_float() { TestUtils.AreEqual(0.0009765625f, exp2(-10f), 1, false); @@ -1043,7 +1043,7 @@ public static void exp2_float() TestUtils.AreEqual(float.PositiveInfinity, exp2(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp2_float2() { TestUtils.AreEqual(float2(0.0009765625f, 0.4352753f), exp2(float2(-10f, -1.2f)), 1, false); @@ -1052,7 +1052,7 @@ public static void exp2_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), exp2(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp2_float3() { TestUtils.AreEqual(float3(0.0009765625f, 0.4352753f, 1f), exp2(float3(-10f, -1.2f, 0f)), 1, false); @@ -1060,14 +1060,14 @@ public static void exp2_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), exp2(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp2_float4() { TestUtils.AreEqual(float4(0.0009765625f, 0.4352753f, 1f, 2.29739666f), exp2(float4(-10f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(0f, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), exp2(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp2_double() { TestUtils.AreEqual(0.0009765625, exp2(-10.0), 32, false); @@ -1079,7 +1079,7 @@ public static void exp2_double() TestUtils.AreEqual(double.PositiveInfinity, exp2(double.PositiveInfinity), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp2_double2() { TestUtils.AreEqual(double2(0.0009765625, 0.435275281648062), exp2(double2(-10.0, -1.2)), 32, false); @@ -1088,7 +1088,7 @@ public static void exp2_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), exp2(double2(double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp2_double3() { TestUtils.AreEqual(double3(0.0009765625, 0.435275281648062, 1.0), exp2(double3(-10.0, -1.2, 0.0)), 32, false); @@ -1096,14 +1096,14 @@ public static void exp2_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), exp2(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp2_double4() { TestUtils.AreEqual(double4(0.0009765625, 0.435275281648062, 1.0, 2.29739670999407), exp2(double4(-10.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(0.0, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), exp2(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp10_float() { TestUtils.AreEqual(1E-10f, exp10(-10f), 32, false); @@ -1115,7 +1115,7 @@ public static void exp10_float() TestUtils.AreEqual(float.PositiveInfinity, exp10(float.PositiveInfinity), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp10_float2() { TestUtils.AreEqual(float2(1E-10f, 0.06309573f), exp10(float2(-10f, -1.2f)), 32, false); @@ -1124,7 +1124,7 @@ public static void exp10_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), exp10(float2(float.PositiveInfinity, float.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp10_float3() { TestUtils.AreEqual(float3(1E-10f, 0.06309573f, 1f), exp10(float3(-10f, -1.2f, 0f)), 32, false); @@ -1132,14 +1132,14 @@ public static void exp10_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), exp10(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp10_float4() { TestUtils.AreEqual(float4(1E-10f, 0.06309573f, 1f, 15.8489323f), exp10(float4(-10f, -1.2f, 0f, 1.2f)), 32, false); TestUtils.AreEqual(float4(0f, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), exp10(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp10_double() { TestUtils.AreEqual(1E-10, exp10(-10.0), 32, false); @@ -1151,7 +1151,7 @@ public static void exp10_double() TestUtils.AreEqual(double.PositiveInfinity, exp10(double.PositiveInfinity), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp10_double2() { TestUtils.AreEqual(double2(1E-10, 0.063095734448019331), exp10(double2(-10.0, -1.2)), 32, false); @@ -1160,7 +1160,7 @@ public static void exp10_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), exp10(double2(double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp10_double3() { TestUtils.AreEqual(double3(1E-10, 0.063095734448019331, 1.0), exp10(double3(-10.0, -1.2, 0.0)), 32, false); @@ -1168,14 +1168,14 @@ public static void exp10_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), exp10(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void exp10_double4() { TestUtils.AreEqual(double4(1E-10, 0.063095734448019331, 1.0, 15.848931924611135), exp10(double4(-10.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(0.0, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), exp10(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log_float() { TestUtils.AreEqual(-20.5409451f, log(1.2E-09f), 1, false); @@ -1187,7 +1187,7 @@ public static void log_float() TestUtils.AreEqual(float.PositiveInfinity, log(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log_float2() { TestUtils.AreEqual(float2(-20.5409451f, 0f), log(float2(1.2E-09f, 1f)), 1, false); @@ -1196,7 +1196,7 @@ public static void log_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), log(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log_float3() { TestUtils.AreEqual(float3(-20.5409451f, 0f, 23.2081718f), log(float3(1.2E-09f, 1f, 1.2E+10f)), 1, false); @@ -1204,14 +1204,14 @@ public static void log_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), log(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log_float4() { TestUtils.AreEqual(float4(-20.5409451f, 0f, 23.2081718f, TestUtils.SignedFloatQNaN()), log(float4(1.2E-09f, 1f, 1.2E+10f, -1f)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), log(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log_double() { TestUtils.AreEqual(-20.540944280152456, log(1.2E-09), 32, false); @@ -1223,7 +1223,7 @@ public static void log_double() TestUtils.AreEqual(double.PositiveInfinity, log(double.PositiveInfinity), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log_double2() { TestUtils.AreEqual(double2(-20.540944280152456, 0.0), log(double2(1.2E-09, 1.0)), 32, false); @@ -1232,7 +1232,7 @@ public static void log_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), log(double2(double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log_double3() { TestUtils.AreEqual(double3(-20.540944280152456, 0.0, 23.208172486734409), log(double3(1.2E-09, 1.0, 12000000000.0)), 32, false); @@ -1240,14 +1240,14 @@ public static void log_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), log(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log_double4() { TestUtils.AreEqual(double4(-20.540944280152456, 0.0, 23.208172486734409, TestUtils.SignedDoubleQNaN()), log(double4(1.2E-09, 1.0, 12000000000.0, -1.0)), 32, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), log(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log2_float() { TestUtils.AreEqual(-29.63432f, log2(1.2E-09f), 1, false); @@ -1259,7 +1259,7 @@ public static void log2_float() TestUtils.AreEqual(float.PositiveInfinity, log2(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log2_float2() { TestUtils.AreEqual(float2(-29.63432f, 0f), log2(float2(1.2E-09f, 1f)), 1, false); @@ -1268,7 +1268,7 @@ public static void log2_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), log2(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log2_float3() { TestUtils.AreEqual(float3(-29.63432f, 0f, 33.4823151f), log2(float3(1.2E-09f, 1f, 1.2E+10f)), 1, false); @@ -1276,14 +1276,14 @@ public static void log2_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), log2(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log2_float4() { TestUtils.AreEqual(float4(-29.63432f, 0f, 33.4823151f, TestUtils.SignedFloatQNaN()), log2(float4(1.2E-09f, 1f, 1.2E+10f, -1f)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), log2(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log2_double() { TestUtils.AreEqual(-29.634318448152467, log2(1.2E-09), 32, false); @@ -1295,7 +1295,7 @@ public static void log2_double() TestUtils.AreEqual(double.PositiveInfinity, log2(double.PositiveInfinity), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log2_double2() { TestUtils.AreEqual(double2(-29.634318448152467, 0.0), log2(double2(1.2E-09, 1.0)), 32, false); @@ -1304,7 +1304,7 @@ public static void log2_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), log2(double2(double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log2_double3() { TestUtils.AreEqual(double3(-29.634318448152467, 0.0, 33.482315354707417), log2(double3(1.2E-09, 1.0, 12000000000.0)), 32, false); @@ -1312,14 +1312,14 @@ public static void log2_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), log2(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log2_double4() { TestUtils.AreEqual(double4(-29.634318448152467, 0.0, 33.482315354707417, TestUtils.SignedDoubleQNaN()), log2(double4(1.2E-09, 1.0, 12000000000.0, -1.0)), 32, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), log2(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log10_float() { TestUtils.AreEqual(-8.920818f, log10(1.2E-09f), 1, false); @@ -1331,7 +1331,7 @@ public static void log10_float() TestUtils.AreEqual(float.PositiveInfinity, log10(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log10_float2() { TestUtils.AreEqual(float2(-8.920818f, 0f), log10(float2(1.2E-09f, 1f)), 1, false); @@ -1340,7 +1340,7 @@ public static void log10_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), log10(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log10_float3() { TestUtils.AreEqual(float3(-8.920818f, 0f, 10.0791817f), log10(float3(1.2E-09f, 1f, 1.2E+10f)), 1, false); @@ -1348,14 +1348,14 @@ public static void log10_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), log10(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log10_float4() { TestUtils.AreEqual(float4(-8.920818f, 0f, 10.0791817f, TestUtils.SignedFloatQNaN()), log10(float4(1.2E-09f, 1f, 1.2E+10f, -1f)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), log10(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log10_double() { TestUtils.AreEqual(-8.9208187539523749, log10(1.2E-09), 32, false); @@ -1367,7 +1367,7 @@ public static void log10_double() TestUtils.AreEqual(double.PositiveInfinity, log10(double.PositiveInfinity), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log10_double2() { TestUtils.AreEqual(double2(-8.9208187539523749, 0.0), log10(double2(1.2E-09, 1.0)), 32, false); @@ -1376,7 +1376,7 @@ public static void log10_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), log10(double2(double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log10_double3() { TestUtils.AreEqual(double3(-8.9208187539523749, 0.0, 10.079181246047623), log10(double3(1.2E-09, 1.0, 12000000000.0)), 32, false); @@ -1384,14 +1384,14 @@ public static void log10_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), log10(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void log10_double4() { TestUtils.AreEqual(double4(-8.9208187539523749, 0.0, 10.079181246047623, TestUtils.SignedDoubleQNaN()), log10(double4(1.2E-09, 1.0, 12000000000.0, -1.0)), 32, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), log10(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void radians_float() { TestUtils.AreEqual(-2.154609f, radians(-123.45f), 1, false); @@ -1402,7 +1402,7 @@ public static void radians_float() TestUtils.AreEqual(float.PositiveInfinity, radians(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void radians_float2() { TestUtils.AreEqual(float2(-2.154609f, 0f), radians(float2(-123.45f, 0f)), 1, false); @@ -1410,21 +1410,21 @@ public static void radians_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity), radians(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void radians_float3() { TestUtils.AreEqual(float3(-2.154609f, 0f, 2.154609f), radians(float3(-123.45f, 0f, 123.45f)), 1, false); TestUtils.AreEqual(float3(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity), radians(float3(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void radians_float4() { TestUtils.AreEqual(float4(-2.154609f, 0f, 2.154609f, float.NegativeInfinity), radians(float4(-123.45f, 0f, 123.45f, float.NegativeInfinity)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), radians(float4(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void radians_double() { TestUtils.AreEqual(-2.154608961587, radians(-123.45), 1, false); @@ -1435,7 +1435,7 @@ public static void radians_double() TestUtils.AreEqual(double.PositiveInfinity, radians(double.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void radians_double2() { TestUtils.AreEqual(double2(-2.154608961587, 0.0), radians(double2(-123.45, 0.0)), 1, false); @@ -1443,21 +1443,21 @@ public static void radians_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), radians(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void radians_double3() { TestUtils.AreEqual(double3(-2.154608961587, 0.0, 2.154608961587), radians(double3(-123.45, 0.0, 123.45)), 1, false); TestUtils.AreEqual(double3(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), radians(double3(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void radians_double4() { TestUtils.AreEqual(double4(-2.154608961587, 0.0, 2.154608961587, double.NegativeInfinity), radians(double4(-123.45, 0.0, 123.45, double.NegativeInfinity)), 1, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), radians(double4(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void degrees_float() { TestUtils.AreEqual(-7073.164f, degrees(-123.45f), 1, false); @@ -1468,7 +1468,7 @@ public static void degrees_float() TestUtils.AreEqual(float.PositiveInfinity, degrees(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void degrees_float2() { TestUtils.AreEqual(float2(-7073.164f, 0f), degrees(float2(-123.45f, 0f)), 1, false); @@ -1476,21 +1476,21 @@ public static void degrees_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity), degrees(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void degrees_float3() { TestUtils.AreEqual(float3(-7073.164f, 0f, 7073.164f), degrees(float3(-123.45f, 0f, 123.45f)), 1, false); TestUtils.AreEqual(float3(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity), degrees(float3(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void degrees_float4() { TestUtils.AreEqual(float4(-7073.164f, 0f, 7073.164f, float.NegativeInfinity), degrees(float4(-123.45f, 0f, 123.45f, float.NegativeInfinity)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), degrees(float4(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void degrees_double() { TestUtils.AreEqual(-7073.1639808900127, degrees(-123.45), 1, false); @@ -1501,7 +1501,7 @@ public static void degrees_double() TestUtils.AreEqual(double.PositiveInfinity, degrees(double.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void degrees_double2() { TestUtils.AreEqual(double2(-7073.1639808900127, 0.0), degrees(double2(-123.45, 0.0)), 1, false); @@ -1509,21 +1509,21 @@ public static void degrees_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), degrees(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void degrees_double3() { TestUtils.AreEqual(double3(-7073.1639808900127, 0.0, 7073.1639808900127), degrees(double3(-123.45, 0.0, 123.45)), 1, false); TestUtils.AreEqual(double3(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), degrees(double3(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void degrees_double4() { TestUtils.AreEqual(double4(-7073.1639808900127, 0.0, 7073.1639808900127, double.NegativeInfinity), degrees(double4(-123.45, 0.0, 123.45, double.NegativeInfinity)), 1, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), degrees(double4(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sign_int() { TestUtils.AreEqual(-1, sign(-156)); @@ -1540,7 +1540,7 @@ public static void sign_int() TestUtils.AreEqual(-1, sign(-2147483648)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sign_int2() { TestUtils.AreEqual(int2(-1, -1), sign(int2(-156, -214748346))); @@ -1551,7 +1551,7 @@ public static void sign_int2() TestUtils.AreEqual(int2(1, -1), sign(int2(2147483647, -2147483648))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sign_int3() { TestUtils.AreEqual(int3(-1, -1, 0), sign(int3(-156, -214748346, 0))); @@ -1560,7 +1560,7 @@ public static void sign_int3() TestUtils.AreEqual(int3(1, 1, -1), sign(int3(64583, 2147483647, -2147483648))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sign_int4() { TestUtils.AreEqual(int4(-1, -1, 0, 1), sign(int4(-156, -214748346, 0, 214748346))); @@ -1568,7 +1568,7 @@ public static void sign_int4() TestUtils.AreEqual(int4(-1, 1, 1, -1), sign(int4(-15379, 64583, 2147483647, -2147483648))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sign_float() { TestUtils.AreEqual(-1f, sign(-123.45f)); @@ -1581,7 +1581,7 @@ public static void sign_float() TestUtils.AreEqual(1f, sign(float.PositiveInfinity)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sign_float2() { TestUtils.AreEqual(float2(-1f, -1f), sign(float2(-123.45f, -1E-20f))); @@ -1590,7 +1590,7 @@ public static void sign_float2() TestUtils.AreEqual(float2(0f, 1f), sign(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sign_float3() { TestUtils.AreEqual(float3(-1f, -1f, 0f), sign(float3(-123.45f, -1E-20f, 0f))); @@ -1598,14 +1598,14 @@ public static void sign_float3() TestUtils.AreEqual(float3(0f, 1f, 1f), sign(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sign_float4() { TestUtils.AreEqual(float4(-1f, -1f, 0f, 1f), sign(float4(-123.45f, -1E-20f, 0f, 1E-10f))); TestUtils.AreEqual(float4(1f, -1f, 0f, 1f), sign(float4(123.45f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sign_double() { TestUtils.AreEqual(-1.0, sign(-123.45)); @@ -1618,7 +1618,7 @@ public static void sign_double() TestUtils.AreEqual(1.0, sign(double.PositiveInfinity)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sign_double2() { TestUtils.AreEqual(double2(-1.0, -1.0), sign(double2(-123.45, -1E-20))); @@ -1627,7 +1627,7 @@ public static void sign_double2() TestUtils.AreEqual(double2(0.0, 1.0), sign(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sign_double3() { TestUtils.AreEqual(double3(-1.0, -1.0, 0.0), sign(double3(-123.45, -1E-20, 0.0))); @@ -1635,14 +1635,14 @@ public static void sign_double3() TestUtils.AreEqual(double3(0.0, 1.0, 1.0), sign(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sign_double4() { TestUtils.AreEqual(double4(-1.0, -1.0, 0.0, 1.0), sign(double4(-123.45, -1E-20, 0.0, 1E-10))); TestUtils.AreEqual(double4(1.0, -1.0, 0.0, 1.0), sign(double4(123.45, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sqrt_float() { TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), sqrt(-1f), 1, false); @@ -1654,7 +1654,7 @@ public static void sqrt_float() TestUtils.AreEqual(float.PositiveInfinity, sqrt(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sqrt_float2() { TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), 0f), sqrt(float2(-1f, 0f)), 1, false); @@ -1663,7 +1663,7 @@ public static void sqrt_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), sqrt(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sqrt_float3() { TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), 0f, 1E-05f), sqrt(float3(-1f, 0f, 1E-10f)), 1, false); @@ -1671,14 +1671,14 @@ public static void sqrt_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), sqrt(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sqrt_float4() { TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), 0f, 1E-05f, 11.1108055f), sqrt(float4(-1f, 0f, 1E-10f, 123.45f)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), sqrt(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sqrt_double() { TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), sqrt(-1.0), 1, false); @@ -1690,7 +1690,7 @@ public static void sqrt_double() TestUtils.AreEqual(double.PositiveInfinity, sqrt(double.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sqrt_double2() { TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), 0.0), sqrt(double2(-1.0, 0.0)), 1, false); @@ -1699,7 +1699,7 @@ public static void sqrt_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), sqrt(double2(double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sqrt_double3() { TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), 0.0, 1E-05), sqrt(double3(-1.0, 0.0, 1E-10)), 1, false); @@ -1707,14 +1707,14 @@ public static void sqrt_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), sqrt(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void sqrt_double4() { TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), 0.0, 1E-05, 11.11080555135405), sqrt(double4(-1.0, 0.0, 1E-10, 123.45)), 1, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), sqrt(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rsqrt_float() { TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), rsqrt(-1f), 1, false); @@ -1726,7 +1726,7 @@ public static void rsqrt_float() TestUtils.AreEqual(0f, rsqrt(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rsqrt_float2() { TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity), rsqrt(float2(-1f, 0f)), 1, false); @@ -1735,7 +1735,7 @@ public static void rsqrt_float2() TestUtils.AreEqual(float2(0f, 0f), rsqrt(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rsqrt_float3() { TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, 1E-05f), rsqrt(float3(-1f, 0f, 1E+10f)), 1, false); @@ -1743,14 +1743,14 @@ public static void rsqrt_float3() TestUtils.AreEqual(float3(0f, 0f, 0f), rsqrt(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rsqrt_float4() { TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, 1E-05f, 0.09000248f), rsqrt(float4(-1f, 0f, 1E+10f, 123.45f)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), 0f, 0f), rsqrt(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rsqrt_double() { TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), rsqrt(-1.0), 1, false); @@ -1762,7 +1762,7 @@ public static void rsqrt_double() TestUtils.AreEqual(0.0, rsqrt(double.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rsqrt_double2() { TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), rsqrt(double2(-1.0, 0.0)), 1, false); @@ -1771,7 +1771,7 @@ public static void rsqrt_double2() TestUtils.AreEqual(double2(0.0, 0.0), rsqrt(double2(double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rsqrt_double3() { TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, 1E-05), rsqrt(double3(-1.0, 0.0, 10000000000.0)), 1, false); @@ -1779,14 +1779,14 @@ public static void rsqrt_double3() TestUtils.AreEqual(double3(0.0, 0.0, 0.0), rsqrt(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rsqrt_double4() { TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, 1E-05, 0.090002475102098425), rsqrt(double4(-1.0, 0.0, 10000000000.0, 123.45)), 1, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), 0.0, 0.0), rsqrt(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rcp_float() { TestUtils.AreEqual(-0.008100445f, rcp(-123.45f), 1, false); @@ -1796,7 +1796,7 @@ public static void rcp_float() TestUtils.AreEqual(0f, rcp(float.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rcp_float2() { TestUtils.AreEqual(float2(-0.008100445f, float.PositiveInfinity), rcp(float2(-123.45f, 0f)), 1, false); @@ -1804,21 +1804,21 @@ public static void rcp_float2() TestUtils.AreEqual(float2(0f, 0f), rcp(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rcp_float3() { TestUtils.AreEqual(float3(-0.008100445f, float.PositiveInfinity, 0.008100445f), rcp(float3(-123.45f, 0f, 123.45f)), 1, false); TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), 0f, 0f), rcp(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rcp_float4() { TestUtils.AreEqual(float4(-0.008100445f, float.PositiveInfinity, 0.008100445f, TestUtils.SignedFloatQNaN()), rcp(float4(-123.45f, 0f, 123.45f, TestUtils.SignedFloatQNaN())), 1, false); TestUtils.AreEqual(float4(0f, 0f, 0f, 0f), rcp(float4(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rcp_double() { TestUtils.AreEqual(-0.0081004455245038479, rcp(-123.45), 1, false); @@ -1828,7 +1828,7 @@ public static void rcp_double() TestUtils.AreEqual(0.0, rcp(double.PositiveInfinity), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rcp_double2() { TestUtils.AreEqual(double2(-0.0081004455245038479, double.PositiveInfinity), rcp(double2(-123.45, 0.0)), 1, false); @@ -1836,21 +1836,21 @@ public static void rcp_double2() TestUtils.AreEqual(double2(0.0, 0.0), rcp(double2(double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rcp_double3() { TestUtils.AreEqual(double3(-0.0081004455245038479, double.PositiveInfinity, 0.0081004455245038479), rcp(double3(-123.45, 0.0, 123.45)), 1, false); TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), 0.0, 0.0), rcp(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rcp_double4() { TestUtils.AreEqual(double4(-0.0081004455245038479, double.PositiveInfinity, 0.0081004455245038479, TestUtils.SignedDoubleQNaN()), rcp(double4(-123.45, 0.0, 123.45, TestUtils.SignedDoubleQNaN())), 1, false); TestUtils.AreEqual(double4(0.0, 0.0, 0.0, 0.0), rcp(double4(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floor_float() { TestUtils.AreEqual(float.NegativeInfinity, floor(float.NegativeInfinity)); @@ -1865,7 +1865,7 @@ public static void floor_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), floor(TestUtils.SignedFloatQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floor_float2() { TestUtils.AreEqual(float2(float.NegativeInfinity, -101f), floor(float2(float.NegativeInfinity, -100.51f))); @@ -1875,7 +1875,7 @@ public static void floor_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()), floor(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floor_float3() { TestUtils.AreEqual(float3(float.NegativeInfinity, -101f, -101f), floor(float3(float.NegativeInfinity, -100.51f, -100.5f))); @@ -1884,7 +1884,7 @@ public static void floor_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), floor(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floor_float4() { TestUtils.AreEqual(float4(float.NegativeInfinity, -101f, -101f, -101f), floor(float4(float.NegativeInfinity, -100.51f, -100.5f, -100.49f))); @@ -1892,7 +1892,7 @@ public static void floor_float4() TestUtils.AreEqual(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), floor(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floor_double() { TestUtils.AreEqual(double.NegativeInfinity, floor(double.NegativeInfinity)); @@ -1907,7 +1907,7 @@ public static void floor_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), floor(TestUtils.SignedDoubleQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floor_double2() { TestUtils.AreEqual(double2(double.NegativeInfinity, -101.0), floor(double2(double.NegativeInfinity, -100.51))); @@ -1917,7 +1917,7 @@ public static void floor_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), floor(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floor_double3() { TestUtils.AreEqual(double3(double.NegativeInfinity, -101.0, -101.0), floor(double3(double.NegativeInfinity, -100.51, -100.5))); @@ -1926,7 +1926,7 @@ public static void floor_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), floor(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floor_double4() { TestUtils.AreEqual(double4(double.NegativeInfinity, -101.0, -101.0, -101.0), floor(double4(double.NegativeInfinity, -100.51, -100.5, -100.49))); @@ -1934,7 +1934,7 @@ public static void floor_double4() TestUtils.AreEqual(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), floor(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceil_float() { TestUtils.AreEqual(float.NegativeInfinity, ceil(float.NegativeInfinity)); @@ -1949,7 +1949,7 @@ public static void ceil_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), ceil(TestUtils.SignedFloatQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceil_float2() { TestUtils.AreEqual(float2(float.NegativeInfinity, -100f), ceil(float2(float.NegativeInfinity, -100.51f))); @@ -1959,7 +1959,7 @@ public static void ceil_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()), ceil(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceil_float3() { TestUtils.AreEqual(float3(float.NegativeInfinity, -100f, -100f), ceil(float3(float.NegativeInfinity, -100.51f, -100.5f))); @@ -1968,7 +1968,7 @@ public static void ceil_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), ceil(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceil_float4() { TestUtils.AreEqual(float4(float.NegativeInfinity, -100f, -100f, -100f), ceil(float4(float.NegativeInfinity, -100.51f, -100.5f, -100.49f))); @@ -1976,7 +1976,7 @@ public static void ceil_float4() TestUtils.AreEqual(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), ceil(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceil_double() { TestUtils.AreEqual(double.NegativeInfinity, ceil(double.NegativeInfinity)); @@ -1991,7 +1991,7 @@ public static void ceil_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), ceil(TestUtils.SignedDoubleQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceil_double2() { TestUtils.AreEqual(double2(double.NegativeInfinity, -100.0), ceil(double2(double.NegativeInfinity, -100.51))); @@ -2001,7 +2001,7 @@ public static void ceil_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), ceil(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceil_double3() { TestUtils.AreEqual(double3(double.NegativeInfinity, -100.0, -100.0), ceil(double3(double.NegativeInfinity, -100.51, -100.5))); @@ -2010,7 +2010,7 @@ public static void ceil_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), ceil(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceil_double4() { TestUtils.AreEqual(double4(double.NegativeInfinity, -100.0, -100.0, -100.0), ceil(double4(double.NegativeInfinity, -100.51, -100.5, -100.49))); @@ -2018,7 +2018,7 @@ public static void ceil_double4() TestUtils.AreEqual(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), ceil(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void round_float() { TestUtils.AreEqual(float.NegativeInfinity, round(float.NegativeInfinity)); @@ -2034,7 +2034,7 @@ public static void round_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), round(TestUtils.SignedFloatQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void round_float2() { TestUtils.AreEqual(float2(float.NegativeInfinity, -101f), round(float2(float.NegativeInfinity, -100.51f))); @@ -2045,7 +2045,7 @@ public static void round_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), round(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void round_float3() { TestUtils.AreEqual(float3(float.NegativeInfinity, -101f, -100f), round(float3(float.NegativeInfinity, -100.51f, -100.5f))); @@ -2054,7 +2054,7 @@ public static void round_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), round(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void round_float4() { TestUtils.AreEqual(float4(float.NegativeInfinity, -101f, -100f, -100f), round(float4(float.NegativeInfinity, -100.51f, -100.5f, -100.49f))); @@ -2062,7 +2062,7 @@ public static void round_float4() TestUtils.AreEqual(float4(102f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), round(float4(101.5f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void round_double() { TestUtils.AreEqual(double.NegativeInfinity, round(double.NegativeInfinity)); @@ -2078,7 +2078,7 @@ public static void round_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), round(TestUtils.SignedDoubleQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void round_double2() { TestUtils.AreEqual(double2(double.NegativeInfinity, -101.0), round(double2(double.NegativeInfinity, -100.51))); @@ -2089,7 +2089,7 @@ public static void round_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), round(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void round_double3() { TestUtils.AreEqual(double3(double.NegativeInfinity, -101.0, -100.0), round(double3(double.NegativeInfinity, -100.51, -100.5))); @@ -2098,7 +2098,7 @@ public static void round_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), round(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void round_double4() { TestUtils.AreEqual(double4(double.NegativeInfinity, -101.0, -100.0, -100.0), round(double4(double.NegativeInfinity, -100.51, -100.5, -100.49))); @@ -2106,7 +2106,7 @@ public static void round_double4() TestUtils.AreEqual(double4(102.0, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), round(double4(101.5, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void trunc_float() { TestUtils.AreEqual(float.NegativeInfinity, trunc(float.NegativeInfinity)); @@ -2122,7 +2122,7 @@ public static void trunc_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), trunc(TestUtils.SignedFloatQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void trunc_float2() { TestUtils.AreEqual(float2(float.NegativeInfinity, -100f), trunc(float2(float.NegativeInfinity, -100.51f))); @@ -2133,7 +2133,7 @@ public static void trunc_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), trunc(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void trunc_float3() { TestUtils.AreEqual(float3(float.NegativeInfinity, -100f, -100f), trunc(float3(float.NegativeInfinity, -100.51f, -100.5f))); @@ -2142,7 +2142,7 @@ public static void trunc_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), trunc(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void trunc_float4() { TestUtils.AreEqual(float4(float.NegativeInfinity, -100f, -100f, -100f), trunc(float4(float.NegativeInfinity, -100.51f, -100.5f, -100.49f))); @@ -2150,7 +2150,7 @@ public static void trunc_float4() TestUtils.AreEqual(float4(101f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), trunc(float4(101.5f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void trunc_double() { TestUtils.AreEqual(double.NegativeInfinity, trunc(double.NegativeInfinity)); @@ -2166,7 +2166,7 @@ public static void trunc_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), trunc(TestUtils.SignedDoubleQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void trunc_double2() { TestUtils.AreEqual(double2(double.NegativeInfinity, -100.0), trunc(double2(double.NegativeInfinity, -100.51))); @@ -2177,7 +2177,7 @@ public static void trunc_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), trunc(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void trunc_double3() { TestUtils.AreEqual(double3(double.NegativeInfinity, -100.0, -100.0), trunc(double3(double.NegativeInfinity, -100.51, -100.5))); @@ -2186,7 +2186,7 @@ public static void trunc_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), trunc(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void trunc_double4() { TestUtils.AreEqual(double4(double.NegativeInfinity, -100.0, -100.0, -100.0), trunc(double4(double.NegativeInfinity, -100.51, -100.5, -100.49))); @@ -2194,7 +2194,7 @@ public static void trunc_double4() TestUtils.AreEqual(double4(101.0, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), trunc(double4(101.5, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void frac_float() { TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), frac(float.NegativeInfinity), 64, false); @@ -2206,7 +2206,7 @@ public static void frac_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), frac(TestUtils.SignedFloatQNaN()), 64, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void frac_float2() { TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), 0f), frac(float2(float.NegativeInfinity, -1E+20f)), 64, false); @@ -2215,7 +2215,7 @@ public static void frac_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), frac(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 64, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void frac_float3() { TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), 0f, 0.7f), frac(float3(float.NegativeInfinity, -1E+20f, -100.3f)), 64, false); @@ -2223,14 +2223,14 @@ public static void frac_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), frac(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 64, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void frac_float4() { TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), 0f, 0.7f, 0f), frac(float4(float.NegativeInfinity, -1E+20f, -100.3f, 0f)), 64, false); TestUtils.AreEqual(float4(0.8f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), frac(float4(100.8f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 64, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void frac_double() { TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), frac(double.NegativeInfinity), 64, false); @@ -2242,7 +2242,7 @@ public static void frac_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), frac(TestUtils.SignedDoubleQNaN()), 64, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void frac_double2() { TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), 0.0), frac(double2(double.NegativeInfinity, -1E+20)), 64, false); @@ -2251,7 +2251,7 @@ public static void frac_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), frac(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 64, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void frac_double3() { TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), 0.0, 0.7), frac(double3(double.NegativeInfinity, -1E+20, -100.3)), 64, false); @@ -2259,14 +2259,14 @@ public static void frac_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), frac(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 64, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void frac_double4() { TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), 0.0, 0.7, 0.0), frac(double4(double.NegativeInfinity, -1E+20, -100.3, 0.0)), 64, false); TestUtils.AreEqual(double4(0.8, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), frac(double4(100.8, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 64, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lerp_float() { TestUtils.AreEqual(-967.77f, lerp(-123.45f, 439.43f, -1.5f), 1, false); @@ -2275,27 +2275,27 @@ public static void lerp_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), lerp(-123.45f, 439.43f, TestUtils.SignedFloatQNaN()), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lerp_float2() { TestUtils.AreEqual(float2(-967.77f, 157.99f), lerp(float2(-123.45f, -123.45f), float2(439.43f, 439.43f), float2(-1.5f, 0.5f)), 1, false); TestUtils.AreEqual(float2(2972.39f, TestUtils.SignedFloatQNaN()), lerp(float2(-123.45f, -123.45f), float2(439.43f, 439.43f), float2(5.5f, TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lerp_float3() { TestUtils.AreEqual(float3(-967.77f, 157.99f, 2972.39f), lerp(float3(-123.45f, -123.45f, -123.45f), float3(439.43f, 439.43f, 439.43f), float3(-1.5f, 0.5f, 5.5f)), 1, false); TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), lerp(float3(-123.45f, -123.45f, -123.45f), float3(439.43f, 439.43f, 439.43f), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lerp_float4() { TestUtils.AreEqual(float4(-967.77f, 157.99f, 2972.39f, TestUtils.SignedFloatQNaN()), lerp(float4(-123.45f, -123.45f, -123.45f, -123.45f), float4(439.43f, 439.43f, 439.43f, 439.43f), float4(-1.5f, 0.5f, 5.5f, TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lerp_double() { TestUtils.AreEqual(-967.77, lerp(-123.45, 439.43, -1.5), 1, false); @@ -2304,27 +2304,27 @@ public static void lerp_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), lerp(-123.45, 439.43, TestUtils.SignedDoubleQNaN()), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lerp_double2() { TestUtils.AreEqual(double2(-967.77, 157.99), lerp(double2(-123.45, -123.45), double2(439.43, 439.43), double2(-1.5, 0.5)), 1, false); TestUtils.AreEqual(double2(2972.39, TestUtils.SignedDoubleQNaN()), lerp(double2(-123.45, -123.45), double2(439.43, 439.43), double2(5.5, TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lerp_double3() { TestUtils.AreEqual(double3(-967.77, 157.99, 2972.39), lerp(double3(-123.45, -123.45, -123.45), double3(439.43, 439.43, 439.43), double3(-1.5, 0.5, 5.5)), 1, false); TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), lerp(double3(-123.45, -123.45, -123.45), double3(439.43, 439.43, 439.43), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void lerp_double4() { TestUtils.AreEqual(double4(-967.77, 157.99, 2972.39, TestUtils.SignedDoubleQNaN()), lerp(double4(-123.45, -123.45, -123.45, -123.45), double4(439.43, 439.43, 439.43, 439.43), double4(-1.5, 0.5, 5.5, TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void unlerp_float() { TestUtils.AreEqual(-0.232465178f, unlerp(-123.45f, 439.43f, -254.3f), 4, false); @@ -2337,7 +2337,7 @@ public static void unlerp_float() TestUtils.AreEqual(-0.3422932f, unlerp(439.43f, -123.45f, 632.1f), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void unlerp_float2() { TestUtils.AreEqual(float2(-0.232465178f, 0.219318509f), unlerp(float2(-123.45f, -123.45f), float2(439.43f, 439.43f), float2(-254.3f, 0f)), 4, false); @@ -2346,7 +2346,7 @@ public static void unlerp_float2() TestUtils.AreEqual(float2(0.7806815f, -0.3422932f), unlerp(float2(439.43f, 439.43f), float2(-123.45f, -123.45f), float2(0f, 632.1f)), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void unlerp_float3() { TestUtils.AreEqual(float3(-0.232465178f, 0.219318509f, 1.34229326f), unlerp(float3(-123.45f, -123.45f, -123.45f), float3(439.43f, 439.43f, 439.43f), float3(-254.3f, 0f, 632.1f)), 4, false); @@ -2354,14 +2354,14 @@ public static void unlerp_float3() TestUtils.AreEqual(float3(0.7806815f, -0.3422932f, -0.3422932f), unlerp(float3(439.43f, 439.43f, 439.43f), float3(-123.45f, -123.45f, -123.45f), float3(0f, 632.1f, 632.1f)), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void unlerp_float4() { TestUtils.AreEqual(float4(-0.232465178f, 0.219318509f, 1.34229326f, float.NegativeInfinity), unlerp(float4(-123.45f, -123.45f, -123.45f, 123.4f), float4(439.43f, 439.43f, 439.43f, 123.4f), float4(-254.3f, 0f, 632.1f, -430f)), 4, false); TestUtils.AreEqual(float4(float.PositiveInfinity, 1.23246515f, 0.7806815f, -0.3422932f), unlerp(float4(123.4f, 439.43f, 439.43f, 439.43f), float4(123.4f, -123.45f, -123.45f, -123.45f), float4(430f, -254.3f, 0f, 632.1f)), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void unlerp_double() { TestUtils.AreEqual(-0.23246517907902217, unlerp(-123.45, 439.43, -254.3), 4, false); @@ -2374,7 +2374,7 @@ public static void unlerp_double() TestUtils.AreEqual(-0.34229320636725413, unlerp(439.43, -123.45, 632.1), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void unlerp_double2() { TestUtils.AreEqual(double2(-0.23246517907902217, 0.21931850483229107), unlerp(double2(-123.45, -123.45), double2(439.43, 439.43), double2(-254.3, 0.0)), 4, false); @@ -2383,7 +2383,7 @@ public static void unlerp_double2() TestUtils.AreEqual(double2(0.78068149516770891, -0.34229320636725413), unlerp(double2(439.43, 439.43), double2(-123.45, -123.45), double2(0.0, 632.1)), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void unlerp_double3() { TestUtils.AreEqual(double3(-0.23246517907902217, 0.21931850483229107, 1.3422932063672541), unlerp(double3(-123.45, -123.45, -123.45), double3(439.43, 439.43, 439.43), double3(-254.3, 0.0, 632.1)), 4, false); @@ -2391,14 +2391,14 @@ public static void unlerp_double3() TestUtils.AreEqual(double3(0.78068149516770891, -0.34229320636725413, -0.34229320636725413), unlerp(double3(439.43, 439.43, 439.43), double3(-123.45, -123.45, -123.45), double3(0.0, 632.1, 632.1)), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void unlerp_double4() { TestUtils.AreEqual(double4(-0.23246517907902217, 0.21931850483229107, 1.3422932063672541, double.NegativeInfinity), unlerp(double4(-123.45, -123.45, -123.45, 123.4), double4(439.43, 439.43, 439.43, 123.4), double4(-254.3, 0.0, 632.1, -430.0)), 4, false); TestUtils.AreEqual(double4(double.PositiveInfinity, 1.2324651790790222, 0.78068149516770891, -0.34229320636725413), unlerp(double4(123.4, 439.43, 439.43, 439.43), double4(123.4, -123.45, -123.45, -123.45), double4(430.0, -254.3, 0.0, 632.1)), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void remap_float() { TestUtils.AreEqual(529.0331f, remap(-123.45f, 439.43f, 541.3f, 631.5f, -200f), 4, false); @@ -2414,7 +2414,7 @@ public static void remap_float() TestUtils.AreEqual(float.PositiveInfinity, remap(-123.45f, -123.45f, 541.3f, 631.5f, -100f), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void remap_float2() { TestUtils.AreEqual(float2(529.0331f, 545.0578f), remap(float2(-123.45f, -123.45f), float2(439.43f, 439.43f), float2(541.3f, 541.3f), float2(631.5f, 631.5f), float2(-200f, -100f)), 4, false); @@ -2425,7 +2425,7 @@ public static void remap_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), remap(float2(-123.45f, -123.45f), float2(-123.45f, -123.45f), float2(541.3f, 541.3f), float2(631.5f, 631.5f), float2(-100f, -100f)), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void remap_float3() { TestUtils.AreEqual(float3(529.0331f, 545.0578f, 641.2062f), remap(float3(-123.45f, -123.45f, -123.45f), float3(439.43f, 439.43f, 439.43f), float3(541.3f, 541.3f, 541.3f), float3(631.5f, 631.5f, 631.5f), float3(-200f, -100f, 500f)), 4, false); @@ -2434,7 +2434,7 @@ public static void remap_float3() TestUtils.AreEqual(float3(float.NegativeInfinity, float.PositiveInfinity, float.PositiveInfinity), remap(float3(-123.45f, -123.45f, -123.45f), float3(-123.45f, -123.45f, -123.45f), float3(541.3f, 541.3f, 541.3f), float3(631.5f, 631.5f, 631.5f), float3(-200f, -100f, -100f)), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void remap_float4() { TestUtils.AreEqual(float4(529.0331f, 545.0578f, 641.2062f, 643.7669f), remap(float4(-123.45f, -123.45f, -123.45f, 439.43f), float4(439.43f, 439.43f, 439.43f, -123.45f), float4(541.3f, 541.3f, 541.3f, 541.3f), float4(631.5f, 631.5f, 631.5f, 631.5f), float4(-200f, -100f, 500f, -200f)), 4, false); @@ -2442,7 +2442,7 @@ public static void remap_float4() TestUtils.AreEqual(float4(531.5938f, float.NegativeInfinity, float.PositiveInfinity, float.PositiveInfinity), remap(float4(-123.45f, -123.45f, -123.45f, -123.45f), float4(439.43f, -123.45f, -123.45f, -123.45f), float4(631.5f, 541.3f, 541.3f, 541.3f), float4(541.3f, 631.5f, 631.5f, 631.5f), float4(500f, -200f, -100f, -100f)), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void remap_double() { TestUtils.AreEqual(529.03306921546334, remap(-123.45, 439.43, 541.3, 631.5, -200.0), 4, false); @@ -2458,7 +2458,7 @@ public static void remap_double() TestUtils.AreEqual(double.PositiveInfinity, remap(-123.45, -123.45, 541.3, 631.5, -100.0), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void remap_double2() { TestUtils.AreEqual(double2(529.03306921546334, 545.057799175668), remap(double2(-123.45, -123.45), double2(439.43, 439.43), double2(541.3, 541.3), double2(631.5, 631.5), double2(-200.0, -100.0)), 4, false); @@ -2469,7 +2469,7 @@ public static void remap_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), remap(double2(-123.45, -123.45), double2(-123.45, -123.45), double2(541.3, 541.3), double2(631.5, 631.5), double2(-100.0, -100.0)), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void remap_double3() { TestUtils.AreEqual(double3(529.03306921546334, 545.057799175668, 641.206178936896), remap(double3(-123.45, -123.45, -123.45), double3(439.43, 439.43, 439.43), double3(541.3, 541.3, 541.3), double3(631.5, 631.5, 631.5), double3(-200.0, -100.0, 500.0)), 4, false); @@ -2478,7 +2478,7 @@ public static void remap_double3() TestUtils.AreEqual(double3(double.NegativeInfinity, double.PositiveInfinity, double.PositiveInfinity), remap(double3(-123.45, -123.45, -123.45), double3(-123.45, -123.45, -123.45), double3(541.3, 541.3, 541.3), double3(631.5, 631.5, 631.5), double3(-200.0, -100.0, -100.0)), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void remap_double4() { TestUtils.AreEqual(double4(529.03306921546334, 545.057799175668, 641.206178936896, 643.76693078453673), remap(double4(-123.45, -123.45, -123.45, 439.43), double4(439.43, 439.43, 439.43, -123.45), double4(541.3, 541.3, 541.3, 541.3), double4(631.5, 631.5, 631.5, 631.5), double4(-200.0, -100.0, 500.0, -200.0)), 4, false); @@ -2486,7 +2486,7 @@ public static void remap_double4() TestUtils.AreEqual(double4(531.59382106310409, double.NegativeInfinity, double.PositiveInfinity, double.PositiveInfinity), remap(double4(-123.45, -123.45, -123.45, -123.45), double4(439.43, -123.45, -123.45, -123.45), double4(631.5, 541.3, 541.3, 541.3), double4(541.3, 631.5, 631.5, 631.5), double4(500.0, -200.0, -100.0, -100.0)), 4, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_int() { TestUtils.AreEqual(-123, clamp(-2147483648, -123, 439)); @@ -2499,7 +2499,7 @@ public static void clamp_int() TestUtils.AreEqual(439, clamp(2147483647, -123, 439)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_int2() { TestUtils.AreEqual(int2(-123, -123), clamp(int2(-2147483648, -254), int2(-123, -123), int2(439, 439))); @@ -2508,7 +2508,7 @@ public static void clamp_int2() TestUtils.AreEqual(int2(439, 439), clamp(int2(632, 2147483647), int2(439, -123), int2(-123, 439))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_int3() { TestUtils.AreEqual(int3(-123, -123, 246), clamp(int3(-2147483648, -254, 246), int3(-123, -123, -123), int3(439, 439, 439))); @@ -2516,14 +2516,14 @@ public static void clamp_int3() TestUtils.AreEqual(int3(439, 439, 439), clamp(int3(632, 2147483647, 2147483647), int3(439, -123, -123), int3(-123, 439, 439))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_int4() { TestUtils.AreEqual(int4(-123, -123, 246, 439), clamp(int4(-2147483648, -254, 246, 632), int4(-123, -123, -123, -123), int4(439, 439, 439, 439))); TestUtils.AreEqual(int4(439, 439, 439, 439), clamp(int4(-254, 246, 632, 2147483647), int4(439, 439, 439, -123), int4(-123, -123, -123, 439))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_uint() { TestUtils.AreEqual(123u, clamp(0u, 123u, 439u)); @@ -2536,7 +2536,7 @@ public static void clamp_uint() TestUtils.AreEqual(439u, clamp(4294967295u, 123u, 439u)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_uint2() { TestUtils.AreEqual(uint2(123u, 123u), clamp(uint2(0u, 54u), uint2(123u, 123u), uint2(439u, 439u))); @@ -2545,7 +2545,7 @@ public static void clamp_uint2() TestUtils.AreEqual(uint2(439u, 439u), clamp(uint2(632u, 4294967295u), uint2(439u, 123u), uint2(123u, 439u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_uint3() { TestUtils.AreEqual(uint3(123u, 123u, 246u), clamp(uint3(0u, 54u, 246u), uint3(123u, 123u, 123u), uint3(439u, 439u, 439u))); @@ -2553,14 +2553,14 @@ public static void clamp_uint3() TestUtils.AreEqual(uint3(439u, 439u, 439u), clamp(uint3(632u, 4294967295u, 4294967295u), uint3(439u, 123u, 123u), uint3(123u, 439u, 439u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_uint4() { TestUtils.AreEqual(uint4(123u, 123u, 246u, 439u), clamp(uint4(0u, 54u, 246u, 632u), uint4(123u, 123u, 123u, 123u), uint4(439u, 439u, 439u, 439u))); TestUtils.AreEqual(uint4(439u, 439u, 439u, 439u), clamp(uint4(54u, 246u, 632u, 4294967295u), uint4(439u, 439u, 439u, 123u), uint4(123u, 123u, 123u, 439u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_long() { TestUtils.AreEqual(-123L, clamp(-9223372036854775808L, -123L, 439L)); @@ -2573,7 +2573,7 @@ public static void clamp_long() TestUtils.AreEqual(439L, clamp(9223372036854775807L, -123L, 439L)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_ulong() { TestUtils.AreEqual(123UL, clamp(0UL, 123UL, 439UL)); @@ -2586,7 +2586,7 @@ public static void clamp_ulong() TestUtils.AreEqual(439UL, clamp(18446744073709551615UL, 123UL, 439UL)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_float() { TestUtils.AreEqual(-123.45f, clamp(float.NegativeInfinity, -123.45f, 439.43f)); @@ -2600,7 +2600,7 @@ public static void clamp_float() TestUtils.AreEqual(439.43f, clamp(TestUtils.SignedFloatQNaN(), -123.45f, 439.43f)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_float2() { TestUtils.AreEqual(float2(-123.45f, -123.45f), clamp(float2(float.NegativeInfinity, -254.3f), float2(-123.45f, -123.45f), float2(439.43f, 439.43f))); @@ -2610,7 +2610,7 @@ public static void clamp_float2() TestUtils.AreEqual(float2(439.43f, 439.43f), clamp(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float2(-123.45f, -123.45f), float2(439.43f, 439.43f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_float3() { TestUtils.AreEqual(float3(-123.45f, -123.45f, 246.3f), clamp(float3(float.NegativeInfinity, -254.3f, 246.3f), float3(-123.45f, -123.45f, -123.45f), float3(439.43f, 439.43f, 439.43f))); @@ -2618,7 +2618,7 @@ public static void clamp_float3() TestUtils.AreEqual(float3(439.43f, 439.43f, 439.43f), clamp(float3(632.1f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float3(439.43f, -123.45f, -123.45f), float3(-123.45f, 439.43f, 439.43f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_float4() { TestUtils.AreEqual(float4(-123.45f, -123.45f, 246.3f, 439.43f), clamp(float4(float.NegativeInfinity, -254.3f, 246.3f, 632.1f), float4(-123.45f, -123.45f, -123.45f, -123.45f), float4(439.43f, 439.43f, 439.43f, 439.43f))); @@ -2626,7 +2626,7 @@ public static void clamp_float4() TestUtils.AreEqual(float4(439.43f, 439.43f, 439.43f, 439.43f), clamp(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float4(-123.45f, -123.45f, -123.45f, -123.45f), float4(439.43f, 439.43f, 439.43f, 439.43f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_double() { TestUtils.AreEqual(-123.45, clamp(double.NegativeInfinity, -123.45, 439.43)); @@ -2640,7 +2640,7 @@ public static void clamp_double() TestUtils.AreEqual(439.43, clamp(TestUtils.SignedDoubleQNaN(), -123.45, 439.43)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_double2() { TestUtils.AreEqual(double2(-123.45, -123.45), clamp(double2(double.NegativeInfinity, -254.3), double2(-123.45, -123.45), double2(439.43, 439.43))); @@ -2650,7 +2650,7 @@ public static void clamp_double2() TestUtils.AreEqual(double2(439.43, 439.43), clamp(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double2(-123.45, -123.45), double2(439.43, 439.43))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_double3() { TestUtils.AreEqual(double3(-123.45, -123.45, 246.3), clamp(double3(double.NegativeInfinity, -254.3, 246.3), double3(-123.45, -123.45, -123.45), double3(439.43, 439.43, 439.43))); @@ -2658,7 +2658,7 @@ public static void clamp_double3() TestUtils.AreEqual(double3(439.43, 439.43, 439.43), clamp(double3(632.1, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double3(439.43, -123.45, -123.45), double3(-123.45, 439.43, 439.43))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void clamp_double4() { TestUtils.AreEqual(double4(-123.45, -123.45, 246.3, 439.43), clamp(double4(double.NegativeInfinity, -254.3, 246.3, 632.1), double4(-123.45, -123.45, -123.45, -123.45), double4(439.43, 439.43, 439.43, 439.43))); @@ -2666,7 +2666,7 @@ public static void clamp_double4() TestUtils.AreEqual(double4(439.43, 439.43, 439.43, 439.43), clamp(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double4(-123.45, -123.45, -123.45, -123.45), double4(439.43, 439.43, 439.43, 439.43))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void saturate_float() { TestUtils.AreEqual(0f, saturate(float.NegativeInfinity)); @@ -2679,7 +2679,7 @@ public static void saturate_float() TestUtils.AreEqual(1f, saturate(TestUtils.SignedFloatQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void saturate_float2() { TestUtils.AreEqual(float2(0f, 0f), saturate(float2(float.NegativeInfinity, -123.45f))); @@ -2688,7 +2688,7 @@ public static void saturate_float2() TestUtils.AreEqual(float2(1f, 1f), saturate(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void saturate_float3() { TestUtils.AreEqual(float3(0f, 0f, 0f), saturate(float3(float.NegativeInfinity, -123.45f, 0f))); @@ -2696,14 +2696,14 @@ public static void saturate_float3() TestUtils.AreEqual(float3(1f, 1f, 1f), saturate(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void saturate_float4() { TestUtils.AreEqual(float4(0f, 0f, 0f, 0.5f), saturate(float4(float.NegativeInfinity, -123.45f, 0f, 0.5f))); TestUtils.AreEqual(float4(1f, 1f, 1f, 1f), saturate(float4(1f, 123.45f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void saturate_double() { TestUtils.AreEqual(0.0, saturate(double.NegativeInfinity)); @@ -2716,7 +2716,7 @@ public static void saturate_double() TestUtils.AreEqual(1.0, saturate(TestUtils.SignedDoubleQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void saturate_double2() { TestUtils.AreEqual(double2(0.0, 0.0), saturate(double2(double.NegativeInfinity, -123.45))); @@ -2725,7 +2725,7 @@ public static void saturate_double2() TestUtils.AreEqual(double2(1.0, 1.0), saturate(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void saturate_double3() { TestUtils.AreEqual(double3(0.0, 0.0, 0.0), saturate(double3(double.NegativeInfinity, -123.45, 0.0))); @@ -2733,14 +2733,14 @@ public static void saturate_double3() TestUtils.AreEqual(double3(1.0, 1.0, 1.0), saturate(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void saturate_double4() { TestUtils.AreEqual(double4(0.0, 0.0, 0.0, 0.5), saturate(double4(double.NegativeInfinity, -123.45, 0.0, 0.5))); TestUtils.AreEqual(double4(1.0, 1.0, 1.0, 1.0), saturate(double4(1.0, 123.45, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void step_float() { TestUtils.AreEqual(0f, step(-123.45f, float.NegativeInfinity)); @@ -2770,7 +2770,7 @@ public static void step_float() TestUtils.AreEqual(0f, step(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void step_float2() { TestUtils.AreEqual(float2(0f, 0f), step(float2(-123.45f, -123.45f), float2(float.NegativeInfinity, -200f))); @@ -2788,7 +2788,7 @@ public static void step_float2() TestUtils.AreEqual(float2(0f, 0f), step(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void step_float3() { TestUtils.AreEqual(float3(0f, 0f, 1f), step(float3(-123.45f, -123.45f, -123.45f), float3(float.NegativeInfinity, -200f, 200f))); @@ -2802,7 +2802,7 @@ public static void step_float3() TestUtils.AreEqual(float3(0f, 0f, 0f), step(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void step_float4() { TestUtils.AreEqual(float4(0f, 0f, 1f, 1f), step(float4(-123.45f, -123.45f, -123.45f, -123.45f), float4(float.NegativeInfinity, -200f, 200f, float.PositiveInfinity))); @@ -2814,7 +2814,7 @@ public static void step_float4() TestUtils.AreEqual(float4(0f, 0f, 0f, 0f), step(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void step_double() { TestUtils.AreEqual(0.0, step(-123.45, double.NegativeInfinity)); @@ -2844,7 +2844,7 @@ public static void step_double() TestUtils.AreEqual(0.0, step(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void step_double2() { TestUtils.AreEqual(double2(0.0, 0.0), step(double2(-123.45, -123.45), double2(double.NegativeInfinity, -200.0))); @@ -2862,7 +2862,7 @@ public static void step_double2() TestUtils.AreEqual(double2(0.0, 0.0), step(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void step_double3() { TestUtils.AreEqual(double3(0.0, 0.0, 1.0), step(double3(-123.45, -123.45, -123.45), double3(double.NegativeInfinity, -200.0, 200.0))); @@ -2876,7 +2876,7 @@ public static void step_double3() TestUtils.AreEqual(double3(0.0, 0.0, 0.0), step(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void step_double4() { TestUtils.AreEqual(double4(0.0, 0.0, 1.0, 1.0), step(double4(-123.45, -123.45, -123.45, -123.45), double4(double.NegativeInfinity, -200.0, 200.0, double.PositiveInfinity))); @@ -2888,7 +2888,7 @@ public static void step_double4() TestUtils.AreEqual(double4(0.0, 0.0, 0.0, 0.0), step(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_int() { TestUtils.AreEqual(-2147483648, min(-2147483648, -2147483648)); @@ -2906,7 +2906,7 @@ public static void min_int() TestUtils.AreEqual(2147483647, min(2147483647, 2147483647)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_int2() { TestUtils.AreEqual(int2(-2147483648, -2147483648), min(int2(-2147483648, -2147483648), int2(-2147483648, -1))); @@ -2918,7 +2918,7 @@ public static void min_int2() TestUtils.AreEqual(int2(2147483647, 2147483647), min(int2(2147483647, 2147483647), int2(2147483647, 2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_int3() { TestUtils.AreEqual(int3(-2147483648, -2147483648, -2147483648), min(int3(-2147483648, -2147483648, -1), int3(-2147483648, -1, -2147483648))); @@ -2928,7 +2928,7 @@ public static void min_int3() TestUtils.AreEqual(int3(2147483647, 2147483647, 2147483647), min(int3(2147483647, 2147483647, 2147483647), int3(2147483647, 2147483647, 2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_int4() { TestUtils.AreEqual(int4(-2147483648, -2147483648, -2147483648, -3456), min(int4(-2147483648, -2147483648, -1, -1234), int4(-2147483648, -1, -2147483648, -3456))); @@ -2937,7 +2937,7 @@ public static void min_int4() TestUtils.AreEqual(int4(2147483647, 2147483647, 2147483647, 2147483647), min(int4(2147483647, 2147483647, 2147483647, 2147483647), int4(2147483647, 2147483647, 2147483647, 2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_uint() { TestUtils.AreEqual(1234u, min(1234u, 3456u)); @@ -2949,7 +2949,7 @@ public static void min_uint() TestUtils.AreEqual(4294967295u, min(4294967295u, 4294967295u)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_uint2() { TestUtils.AreEqual(uint2(1234u, 1234u), min(uint2(1234u, 3456u), uint2(3456u, 1234u))); @@ -2958,7 +2958,7 @@ public static void min_uint2() TestUtils.AreEqual(uint2(4294967295u, 4294967295u), min(uint2(4294967295u, 4294967295u), uint2(4294967295u, 4294967295u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_uint3() { TestUtils.AreEqual(uint3(1234u, 1234u, 7u), min(uint3(1234u, 3456u, 4294967040u), uint3(3456u, 1234u, 7u))); @@ -2966,14 +2966,14 @@ public static void min_uint3() TestUtils.AreEqual(uint3(4294967295u, 4294967295u, 4294967295u), min(uint3(4294967295u, 4294967295u, 4294967295u), uint3(4294967295u, 4294967295u, 4294967295u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_uint4() { TestUtils.AreEqual(uint4(1234u, 1234u, 7u, 7u), min(uint4(1234u, 3456u, 4294967040u, 7u), uint4(3456u, 1234u, 7u, 4294967040u))); TestUtils.AreEqual(uint4(1u, 1u, 4294967295u, 4294967295u), min(uint4(1u, 4294967295u, 4294967295u, 4294967295u), uint4(4294967295u, 1u, 4294967295u, 4294967295u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_long() { TestUtils.AreEqual(-9223372036854775808L, min(-9223372036854775808L, -9223372036854775808L)); @@ -2991,7 +2991,7 @@ public static void min_long() TestUtils.AreEqual(9223372036854775807L, min(9223372036854775807L, 9223372036854775807L)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_ulong() { TestUtils.AreEqual(1234UL, min(1234UL, 3456UL)); @@ -3003,7 +3003,7 @@ public static void min_ulong() TestUtils.AreEqual(18446744073709551615UL, min(18446744073709551615UL, 18446744073709551615UL)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_float() { TestUtils.AreEqual(float.NegativeInfinity, min(float.NegativeInfinity, float.NegativeInfinity)); @@ -3024,7 +3024,7 @@ public static void min_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), min(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_float2() { TestUtils.AreEqual(float2(float.NegativeInfinity, float.NegativeInfinity), min(float2(float.NegativeInfinity, float.NegativeInfinity), float2(float.NegativeInfinity, -1f))); @@ -3037,7 +3037,7 @@ public static void min_float2() TestUtils.AreEqual(float2(2.3f, TestUtils.SignedFloatQNaN()), min(float2(2.3f, TestUtils.SignedFloatQNaN()), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_float3() { TestUtils.AreEqual(float3(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity), min(float3(float.NegativeInfinity, float.NegativeInfinity, -1f), float3(float.NegativeInfinity, -1f, float.NegativeInfinity))); @@ -3048,7 +3048,7 @@ public static void min_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), min(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_float4() { TestUtils.AreEqual(float4(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, -3456.7f), min(float4(float.NegativeInfinity, float.NegativeInfinity, -1f, -1234.56f), float4(float.NegativeInfinity, -1f, float.NegativeInfinity, -3456.7f))); @@ -3057,7 +3057,7 @@ public static void min_float4() TestUtils.AreEqual(float4(float.PositiveInfinity, 2.3f, 2.3f, TestUtils.SignedFloatQNaN()), min(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), 2.3f, TestUtils.SignedFloatQNaN()), float4(float.PositiveInfinity, 2.3f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_double() { TestUtils.AreEqual(double.NegativeInfinity, min(double.NegativeInfinity, double.NegativeInfinity)); @@ -3078,7 +3078,7 @@ public static void min_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), min(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_double2() { TestUtils.AreEqual(double2(double.NegativeInfinity, double.NegativeInfinity), min(double2(double.NegativeInfinity, double.NegativeInfinity), double2(double.NegativeInfinity, -1.0))); @@ -3091,7 +3091,7 @@ public static void min_double2() TestUtils.AreEqual(double2(2.3, TestUtils.SignedDoubleQNaN()), min(double2(2.3, TestUtils.SignedDoubleQNaN()), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_double3() { TestUtils.AreEqual(double3(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity), min(double3(double.NegativeInfinity, double.NegativeInfinity, -1.0), double3(double.NegativeInfinity, -1.0, double.NegativeInfinity))); @@ -3102,7 +3102,7 @@ public static void min_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), min(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void min_double4() { TestUtils.AreEqual(double4(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity, -3456.7), min(double4(double.NegativeInfinity, double.NegativeInfinity, -1.0, -1234.56), double4(double.NegativeInfinity, -1.0, double.NegativeInfinity, -3456.7))); @@ -3111,7 +3111,7 @@ public static void min_double4() TestUtils.AreEqual(double4(double.PositiveInfinity, 2.3, 2.3, TestUtils.SignedDoubleQNaN()), min(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), 2.3, TestUtils.SignedDoubleQNaN()), double4(double.PositiveInfinity, 2.3, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_int() { TestUtils.AreEqual(-2147483648, max(-2147483648, -2147483648)); @@ -3129,7 +3129,7 @@ public static void max_int() TestUtils.AreEqual(2147483647, max(2147483647, 2147483647)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_int2() { TestUtils.AreEqual(int2(-2147483648, -1), max(int2(-2147483648, -2147483648), int2(-2147483648, -1))); @@ -3141,7 +3141,7 @@ public static void max_int2() TestUtils.AreEqual(int2(2147483647, 2147483647), max(int2(2147483647, 2147483647), int2(2147483647, 2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_int3() { TestUtils.AreEqual(int3(-2147483648, -1, -1), max(int3(-2147483648, -2147483648, -1), int3(-2147483648, -1, -2147483648))); @@ -3151,7 +3151,7 @@ public static void max_int3() TestUtils.AreEqual(int3(2147483647, 2147483647, 2147483647), max(int3(2147483647, 2147483647, 2147483647), int3(2147483647, 2147483647, 2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_int4() { TestUtils.AreEqual(int4(-2147483648, -1, -1, -1234), max(int4(-2147483648, -2147483648, -1, -1234), int4(-2147483648, -1, -2147483648, -3456))); @@ -3160,7 +3160,7 @@ public static void max_int4() TestUtils.AreEqual(int4(2147483647, 2147483647, 2147483647, 2147483647), max(int4(2147483647, 2147483647, 2147483647, 2147483647), int4(2147483647, 2147483647, 2147483647, 2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_uint() { TestUtils.AreEqual(3456u, max(1234u, 3456u)); @@ -3172,7 +3172,7 @@ public static void max_uint() TestUtils.AreEqual(4294967295u, max(4294967295u, 4294967295u)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_uint2() { TestUtils.AreEqual(uint2(3456u, 3456u), max(uint2(1234u, 3456u), uint2(3456u, 1234u))); @@ -3181,7 +3181,7 @@ public static void max_uint2() TestUtils.AreEqual(uint2(4294967295u, 4294967295u), max(uint2(4294967295u, 4294967295u), uint2(4294967295u, 4294967295u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_uint3() { TestUtils.AreEqual(uint3(3456u, 3456u, 4294967040u), max(uint3(1234u, 3456u, 4294967040u), uint3(3456u, 1234u, 7u))); @@ -3189,14 +3189,14 @@ public static void max_uint3() TestUtils.AreEqual(uint3(4294967295u, 4294967295u, 4294967295u), max(uint3(4294967295u, 4294967295u, 4294967295u), uint3(4294967295u, 4294967295u, 4294967295u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_uint4() { TestUtils.AreEqual(uint4(3456u, 3456u, 4294967040u, 4294967040u), max(uint4(1234u, 3456u, 4294967040u, 7u), uint4(3456u, 1234u, 7u, 4294967040u))); TestUtils.AreEqual(uint4(4294967295u, 4294967295u, 4294967295u, 4294967295u), max(uint4(1u, 4294967295u, 4294967295u, 4294967295u), uint4(4294967295u, 1u, 4294967295u, 4294967295u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_long() { TestUtils.AreEqual(-9223372036854775808L, max(-9223372036854775808L, -9223372036854775808L)); @@ -3214,7 +3214,7 @@ public static void max_long() TestUtils.AreEqual(9223372036854775807L, max(9223372036854775807L, 9223372036854775807L)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_ulong() { TestUtils.AreEqual(3456UL, max(1234UL, 3456UL)); @@ -3226,7 +3226,7 @@ public static void max_ulong() TestUtils.AreEqual(18446744073709551615UL, max(18446744073709551615UL, 18446744073709551615UL)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_float() { TestUtils.AreEqual(float.NegativeInfinity, max(float.NegativeInfinity, float.NegativeInfinity)); @@ -3247,7 +3247,7 @@ public static void max_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), max(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_float2() { TestUtils.AreEqual(float2(float.NegativeInfinity, -1f), max(float2(float.NegativeInfinity, float.NegativeInfinity), float2(float.NegativeInfinity, -1f))); @@ -3260,7 +3260,7 @@ public static void max_float2() TestUtils.AreEqual(float2(2.3f, TestUtils.SignedFloatQNaN()), max(float2(2.3f, TestUtils.SignedFloatQNaN()), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_float3() { TestUtils.AreEqual(float3(float.NegativeInfinity, -1f, -1f), max(float3(float.NegativeInfinity, float.NegativeInfinity, -1f), float3(float.NegativeInfinity, -1f, float.NegativeInfinity))); @@ -3271,7 +3271,7 @@ public static void max_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), max(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_float4() { TestUtils.AreEqual(float4(float.NegativeInfinity, -1f, -1f, -1234.56f), max(float4(float.NegativeInfinity, float.NegativeInfinity, -1f, -1234.56f), float4(float.NegativeInfinity, -1f, float.NegativeInfinity, -3456.7f))); @@ -3280,7 +3280,7 @@ public static void max_float4() TestUtils.AreEqual(float4(float.PositiveInfinity, 2.3f, 2.3f, TestUtils.SignedFloatQNaN()), max(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), 2.3f, TestUtils.SignedFloatQNaN()), float4(float.PositiveInfinity, 2.3f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_double() { TestUtils.AreEqual(double.NegativeInfinity, max(double.NegativeInfinity, double.NegativeInfinity)); @@ -3301,7 +3301,7 @@ public static void max_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), max(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_double2() { TestUtils.AreEqual(double2(double.NegativeInfinity, -1.0), max(double2(double.NegativeInfinity, double.NegativeInfinity), double2(double.NegativeInfinity, -1.0))); @@ -3314,7 +3314,7 @@ public static void max_double2() TestUtils.AreEqual(double2(2.3, TestUtils.SignedDoubleQNaN()), max(double2(2.3, TestUtils.SignedDoubleQNaN()), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_double3() { TestUtils.AreEqual(double3(double.NegativeInfinity, -1.0, -1.0), max(double3(double.NegativeInfinity, double.NegativeInfinity, -1.0), double3(double.NegativeInfinity, -1.0, double.NegativeInfinity))); @@ -3325,7 +3325,7 @@ public static void max_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), max(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void max_double4() { TestUtils.AreEqual(double4(double.NegativeInfinity, -1.0, -1.0, -1234.56), max(double4(double.NegativeInfinity, double.NegativeInfinity, -1.0, -1234.56), double4(double.NegativeInfinity, -1.0, double.NegativeInfinity, -3456.7))); @@ -3334,7 +3334,7 @@ public static void max_double4() TestUtils.AreEqual(double4(double.PositiveInfinity, 2.3, 2.3, TestUtils.SignedDoubleQNaN()), max(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), 2.3, TestUtils.SignedDoubleQNaN()), double4(double.PositiveInfinity, 2.3, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void smoothstep_float() { TestUtils.AreEqual(0f, smoothstep(-123.45f, 345.6f, float.NegativeInfinity), 8, false); @@ -3351,7 +3351,7 @@ public static void smoothstep_float() TestUtils.AreEqual(1f, smoothstep(345.6f, -123.45f, TestUtils.SignedFloatQNaN()), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void smoothstep_float2() { TestUtils.AreEqual(float2(0f, 0f), smoothstep(float2(-123.45f, -123.45f), float2(345.6f, 345.6f), float2(float.NegativeInfinity, -200f)), 8, false); @@ -3362,7 +3362,7 @@ public static void smoothstep_float2() TestUtils.AreEqual(float2(0f, 1f), smoothstep(float2(345.6f, 345.6f), float2(-123.45f, -123.45f), float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN())), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void smoothstep_float3() { TestUtils.AreEqual(float3(0f, 0f, 0.00724848127f), smoothstep(float3(-123.45f, -123.45f, -123.45f), float3(345.6f, 345.6f, 345.6f), float3(float.NegativeInfinity, -200f, -100f)), 8, false); @@ -3371,7 +3371,7 @@ public static void smoothstep_float3() TestUtils.AreEqual(float3(0f, 0f, 1f), smoothstep(float3(345.6f, 345.6f, 345.6f), float3(-123.45f, -123.45f, -123.45f), float3(400f, float.PositiveInfinity, TestUtils.SignedFloatQNaN())), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void smoothstep_float4() { TestUtils.AreEqual(float4(0f, 0f, 0.00724848127f, 1f), smoothstep(float4(-123.45f, -123.45f, -123.45f, -123.45f), float4(345.6f, 345.6f, 345.6f, 345.6f), float4(float.NegativeInfinity, -200f, -100f, 400f)), 8, false); @@ -3379,7 +3379,7 @@ public static void smoothstep_float4() TestUtils.AreEqual(float4(0.992751539f, 0f, 0f, 1f), smoothstep(float4(345.6f, 345.6f, 345.6f, 345.6f), float4(-123.45f, -123.45f, -123.45f, -123.45f), float4(-100f, 400f, float.PositiveInfinity, TestUtils.SignedFloatQNaN())), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void smoothstep_double() { TestUtils.AreEqual(0.0, smoothstep(-123.45, 345.6, double.NegativeInfinity), 8, false); @@ -3396,7 +3396,7 @@ public static void smoothstep_double() TestUtils.AreEqual(1.0, smoothstep(345.6, -123.45, TestUtils.SignedDoubleQNaN()), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void smoothstep_double2() { TestUtils.AreEqual(double2(0.0, 0.0), smoothstep(double2(-123.45, -123.45), double2(345.6, 345.6), double2(double.NegativeInfinity, -200.0)), 8, false); @@ -3407,7 +3407,7 @@ public static void smoothstep_double2() TestUtils.AreEqual(double2(0.0, 1.0), smoothstep(double2(345.6, 345.6), double2(-123.45, -123.45), double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN())), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void smoothstep_double3() { TestUtils.AreEqual(double3(0.0, 0.0, 0.0072484810488798995), smoothstep(double3(-123.45, -123.45, -123.45), double3(345.6, 345.6, 345.6), double3(double.NegativeInfinity, -200.0, -100.0)), 8, false); @@ -3416,7 +3416,7 @@ public static void smoothstep_double3() TestUtils.AreEqual(double3(0.0, 0.0, 1.0), smoothstep(double3(345.6, 345.6, 345.6), double3(-123.45, -123.45, -123.45), double3(400.0, double.PositiveInfinity, TestUtils.SignedDoubleQNaN())), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void smoothstep_double4() { TestUtils.AreEqual(double4(0.0, 0.0, 0.0072484810488798995, 1.0), smoothstep(double4(-123.45, -123.45, -123.45, -123.45), double4(345.6, 345.6, 345.6, 345.6), double4(double.NegativeInfinity, -200.0, -100.0, 400.0)), 8, false); @@ -3424,7 +3424,7 @@ public static void smoothstep_double4() TestUtils.AreEqual(double4(0.99275151895112013, 0.0, 0.0, 1.0), smoothstep(double4(345.6, 345.6, 345.6, 345.6), double4(-123.45, -123.45, -123.45, -123.45), double4(-100.0, 400.0, double.PositiveInfinity, TestUtils.SignedDoubleQNaN())), 8, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_int() { TestUtils.AreEqual(7097663, mad(1234, 5678, 91011)); @@ -3445,7 +3445,7 @@ public static void mad_int() TestUtils.AreEqual(1313707278, mad(-98765, -56789, -91011)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_int2() { TestUtils.AreEqual(int2(7097663, 6915641), mad(int2(1234, 1234), int2(5678, 5678), int2(91011, -91011))); @@ -3458,7 +3458,7 @@ public static void mad_int2() TestUtils.AreEqual(int2(1313889300, 1313707278), mad(int2(-98765, -98765), int2(-56789, -56789), int2(91011, -91011))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_int3() { TestUtils.AreEqual(int3(7097663, 6915641, -6915641), mad(int3(1234, 1234, 1234), int3(5678, 5678, -5678), int3(91011, -91011, 91011))); @@ -3469,7 +3469,7 @@ public static void mad_int3() TestUtils.AreEqual(int3(1313707278, 1313707278, 1313707278), mad(int3(-98765, -98765, -98765), int3(-56789, -56789, -56789), int3(-91011, -91011, -91011))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_int4() { TestUtils.AreEqual(int4(7097663, 6915641, -6915641, -7097663), mad(int4(1234, 1234, 1234, 1234), int4(5678, 5678, -5678, -5678), int4(91011, -91011, 91011, -91011))); @@ -3478,32 +3478,32 @@ public static void mad_int4() TestUtils.AreEqual(int4(-1313707278, -1313889300, 1313889300, 1313707278), mad(int4(-98765, -98765, -98765, -98765), int4(56789, 56789, -56789, -56789), int4(91011, -91011, 91011, -91011))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_uint() { TestUtils.AreEqual(7097663u, mad(1234u, 5678u, 91011u)); TestUtils.AreEqual(1313889300u, mad(98765u, 56789u, 91011u)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_uint2() { TestUtils.AreEqual(uint2(7097663u, 1313889300u), mad(uint2(1234u, 98765u), uint2(5678u, 56789u), uint2(91011u, 91011u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_uint3() { TestUtils.AreEqual(uint3(7097663u, 1313889300u, 1313889300u), mad(uint3(1234u, 98765u, 98765u), uint3(5678u, 56789u, 56789u), uint3(91011u, 91011u, 91011u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_uint4() { TestUtils.AreEqual(uint4(7097663u, 1313889300u, 1313889300u, 1313889300u), mad(uint4(1234u, 98765u, 98765u, 98765u), uint4(5678u, 56789u, 56789u, 56789u), uint4(91011u, 91011u, 91011u, 91011u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_long() { TestUtils.AreEqual(7097663L, mad(1234L, 5678L, 91011L)); @@ -3524,14 +3524,14 @@ public static void mad_long() TestUtils.AreEqual(747681192693554158L, mad(-9876543210L, -5678901234L, -9101112134L)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_ulong() { TestUtils.AreEqual(7097663L, mad(1234UL, 5678UL, 91011UL)); TestUtils.AreEqual(747681210895778426L, mad(9876543210UL, 5678901234UL, 9101112134UL)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_float() { TestUtils.AreEqual(-42660f, mad(-123.45f, 345.6f, 4.321f), 1, false); @@ -3540,27 +3540,27 @@ public static void mad_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), mad(-123.45f, 345.6f, TestUtils.SignedFloatQNaN()), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_float2() { TestUtils.AreEqual(float2(-42660f, TestUtils.SignedFloatQNaN()), mad(float2(-123.45f, TestUtils.SignedFloatQNaN()), float2(345.6f, 345.6f), float2(4.321f, 4.321f)), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), mad(float2(-123.45f, -123.45f), float2(TestUtils.SignedFloatQNaN(), 345.6f), float2(4.321f, TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_float3() { TestUtils.AreEqual(float3(-42660f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), mad(float3(-123.45f, TestUtils.SignedFloatQNaN(), -123.45f), float3(345.6f, 345.6f, TestUtils.SignedFloatQNaN()), float3(4.321f, 4.321f, 4.321f)), 1, false); TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), mad(float3(-123.45f, -123.45f, -123.45f), float3(345.6f, 345.6f, 345.6f), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_float4() { TestUtils.AreEqual(float4(-42660f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), mad(float4(-123.45f, TestUtils.SignedFloatQNaN(), -123.45f, -123.45f), float4(345.6f, 345.6f, TestUtils.SignedFloatQNaN(), 345.6f), float4(4.321f, 4.321f, 4.321f, TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_double() { TestUtils.AreEqual(-42659.999, mad(-123.45, 345.6, 4.321), 1, false); @@ -3569,27 +3569,27 @@ public static void mad_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), mad(-123.45, 345.6, TestUtils.SignedDoubleQNaN()), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_double2() { TestUtils.AreEqual(double2(-42659.999, TestUtils.SignedDoubleQNaN()), mad(double2(-123.45, TestUtils.SignedDoubleQNaN()), double2(345.6, 345.6), double2(4.321, 4.321)), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), mad(double2(-123.45, -123.45), double2(TestUtils.SignedDoubleQNaN(), 345.6), double2(4.321, TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_double3() { TestUtils.AreEqual(double3(-42659.999, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), mad(double3(-123.45, TestUtils.SignedDoubleQNaN(), -123.45), double3(345.6, 345.6, TestUtils.SignedDoubleQNaN()), double3(4.321, 4.321, 4.321)), 1, false); TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), mad(double3(-123.45, -123.45, -123.45), double3(345.6, 345.6, 345.6), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void mad_double4() { TestUtils.AreEqual(double4(-42659.999, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), mad(double4(-123.45, TestUtils.SignedDoubleQNaN(), -123.45, -123.45), double4(345.6, 345.6, TestUtils.SignedDoubleQNaN(), 345.6), double4(4.321, 4.321, 4.321, TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void fmod_float() { TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.NegativeInfinity, float.NegativeInfinity), 1, false); @@ -3643,7 +3643,7 @@ public static void fmod_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void fmod_float2() { TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), -323.4f), fmod(float2(float.NegativeInfinity, -323.4f), float2(float.NegativeInfinity, float.NegativeInfinity)), 1, false); @@ -3673,7 +3673,7 @@ public static void fmod_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void fmod_float3() { TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), -323.4f, TestUtils.SignedFloatZero()), fmod(float3(float.NegativeInfinity, -323.4f, TestUtils.SignedFloatZero()), float3(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); @@ -3695,7 +3695,7 @@ public static void fmod_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void fmod_float4() { TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), -323.4f, TestUtils.SignedFloatZero(), 0f), fmod(float4(float.NegativeInfinity, -323.4f, TestUtils.SignedFloatZero(), 0f), float4(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); @@ -3713,7 +3713,7 @@ public static void fmod_float4() TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void fmod_double() { TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.NegativeInfinity, double.NegativeInfinity), 1, false); @@ -3767,7 +3767,7 @@ public static void fmod_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void fmod_double2() { TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), -323.4), fmod(double2(double.NegativeInfinity, -323.4), double2(double.NegativeInfinity, double.NegativeInfinity)), 1, false); @@ -3797,7 +3797,7 @@ public static void fmod_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void fmod_double3() { TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), -323.4, TestUtils.SignedDoubleZero()), fmod(double3(double.NegativeInfinity, -323.4, TestUtils.SignedDoubleZero()), double3(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); @@ -3819,7 +3819,7 @@ public static void fmod_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void fmod_double4() { TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), -323.4, TestUtils.SignedDoubleZero(), 0.0), fmod(double4(double.NegativeInfinity, -323.4, TestUtils.SignedDoubleZero(), 0.0), double4(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); @@ -3837,7 +3837,7 @@ public static void fmod_double4() TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void pow_float() { TestUtils.AreEqual(0f, pow(float.NegativeInfinity, float.NegativeInfinity), 1, false); @@ -3887,7 +3887,7 @@ public static void pow_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void pow_float2() { TestUtils.AreEqual(float2(0f, 0f), pow(float2(float.NegativeInfinity, -3.4f), float2(float.NegativeInfinity, float.NegativeInfinity)), 1, false); @@ -3915,7 +3915,7 @@ public static void pow_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void pow_float3() { TestUtils.AreEqual(float3(0f, 0f, float.PositiveInfinity), pow(float3(float.NegativeInfinity, -3.4f, TestUtils.SignedFloatZero()), float3(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); @@ -3935,7 +3935,7 @@ public static void pow_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float3(3.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void pow_float4() { TestUtils.AreEqual(float4(0f, 0f, float.PositiveInfinity, float.PositiveInfinity), pow(float4(float.NegativeInfinity, -3.4f, TestUtils.SignedFloatZero(), 0f), float4(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); @@ -3952,7 +3952,7 @@ public static void pow_float4() TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void pow_double() { TestUtils.AreEqual(0.0, pow(double.NegativeInfinity, double.NegativeInfinity), 1, false); @@ -4002,7 +4002,7 @@ public static void pow_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void pow_double2() { TestUtils.AreEqual(double2(0.0, 0.0), pow(double2(double.NegativeInfinity, -3.4), double2(double.NegativeInfinity, double.NegativeInfinity)), 1, false); @@ -4030,7 +4030,7 @@ public static void pow_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void pow_double3() { TestUtils.AreEqual(double3(0.0, 0.0, double.PositiveInfinity), pow(double3(double.NegativeInfinity, -3.4, TestUtils.SignedDoubleZero()), double3(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); @@ -4050,7 +4050,7 @@ public static void pow_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double3(3.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void pow_double4() { TestUtils.AreEqual(double4(0.0, 0.0, double.PositiveInfinity, double.PositiveInfinity), pow(double4(double.NegativeInfinity, -3.4, TestUtils.SignedDoubleZero(), 0.0), double4(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); @@ -4067,7 +4067,7 @@ public static void pow_double4() TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceilpow2_int() { TestUtils.AreEqual(0, ceilpow2(0)); @@ -4079,7 +4079,7 @@ public static void ceilpow2_int() TestUtils.AreEqual(0, ceilpow2(-2147483647)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceilpow2_int2() { TestUtils.AreEqual(int2(0, 1), ceilpow2(int2(0, 1))); @@ -4088,7 +4088,7 @@ public static void ceilpow2_int2() TestUtils.AreEqual(int2(0, 0), ceilpow2(int2(-2147483647, -2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceilpow2_int3() { TestUtils.AreEqual(int3(0, 1, 2), ceilpow2(int3(0, 1, 2))); @@ -4096,14 +4096,14 @@ public static void ceilpow2_int3() TestUtils.AreEqual(int3(0, 0, 0), ceilpow2(int3(-2147483647, -2147483647, -2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceilpow2_int4() { TestUtils.AreEqual(int4(0, 1, 2, 4), ceilpow2(int4(0, 1, 2, 3))); TestUtils.AreEqual(int4(1073741824, -2147483648, 0, 0), ceilpow2(int4(1019642234, 1823423423, -2147483647, -2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceilpow2_uint() { TestUtils.AreEqual(0u, ceilpow2(0u)); @@ -4115,7 +4115,7 @@ public static void ceilpow2_uint() TestUtils.AreEqual(0u, ceilpow2(4294967295u)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceilpow2_uint2() { TestUtils.AreEqual(uint2(0u, 1u), ceilpow2(uint2(0u, 1u))); @@ -4124,7 +4124,7 @@ public static void ceilpow2_uint2() TestUtils.AreEqual(uint2(0u, 0u), ceilpow2(uint2(4294967295u, 4294967295u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceilpow2_uint3() { TestUtils.AreEqual(uint3(0u, 1u, 2u), ceilpow2(uint3(0u, 1u, 2u))); @@ -4132,14 +4132,14 @@ public static void ceilpow2_uint3() TestUtils.AreEqual(uint3(0u, 0u, 0u), ceilpow2(uint3(4294967295u, 4294967295u, 4294967295u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceilpow2_uint4() { TestUtils.AreEqual(uint4(0u, 1u, 2u, 4u), ceilpow2(uint4(0u, 1u, 2u, 3u))); TestUtils.AreEqual(uint4(1073741824u, 2147483648u, 0u, 0u), ceilpow2(uint4(1019642234u, 1823423423u, 4294967295u, 4294967295u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceilpow2_long() { TestUtils.AreEqual(0L, ceilpow2(0L)); @@ -4155,7 +4155,7 @@ public static void ceilpow2_long() TestUtils.AreEqual(0L, ceilpow2(-100L)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceilpow2_ulong() { TestUtils.AreEqual(0UL, ceilpow2(0UL)); @@ -4171,7 +4171,7 @@ public static void ceilpow2_ulong() TestUtils.AreEqual(0UL, ceilpow2(10223372036854775808UL)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floorlog2_int() { TestUtils.AreEqual(0, floorlog2(1)); @@ -4185,7 +4185,7 @@ public static void floorlog2_int() TestUtils.AreEqual(30, floorlog2(2147483647)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floorlog2_int2() { TestUtils.AreEqual(int2(0, 1), floorlog2(int2(1, 2))); @@ -4195,7 +4195,7 @@ public static void floorlog2_int2() TestUtils.AreEqual(int2(30, 30), floorlog2(int2(2147483647, 2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floorlog2_int3() { TestUtils.AreEqual(int3(0, 1, 1), floorlog2(int3(1, 2, 3))); @@ -4203,7 +4203,7 @@ public static void floorlog2_int3() TestUtils.AreEqual(int3(15, 15, 30), floorlog2(int3(32768, 32769, 2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floorlog2_int4() { TestUtils.AreEqual(int4(0, 1, 1, 2), floorlog2(int4(1, 2, 3, 4))); @@ -4211,7 +4211,7 @@ public static void floorlog2_int4() TestUtils.AreEqual(int4(30, 30, 30, 30), floorlog2(int4(2147483647, 2147483647, 2147483647, 2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floorlog2_uint() { TestUtils.AreEqual(0, floorlog2(1u)); @@ -4225,7 +4225,7 @@ public static void floorlog2_uint() TestUtils.AreEqual(30, floorlog2(2147483647u)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floorlog2_uint2() { TestUtils.AreEqual(int2(0, 1), floorlog2(uint2(1u, 2u))); @@ -4235,7 +4235,7 @@ public static void floorlog2_uint2() TestUtils.AreEqual(int2(30, 30), floorlog2(uint2(2147483647u, 2147483647u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floorlog2_uint3() { TestUtils.AreEqual(int3(0, 1, 1), floorlog2(uint3(1u, 2u, 3u))); @@ -4243,7 +4243,7 @@ public static void floorlog2_uint3() TestUtils.AreEqual(int3(15, 15, 30), floorlog2(uint3(32768u, 32769u, 2147483647u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void floorlog2_uint4() { TestUtils.AreEqual(int4(0, 1, 1, 2), floorlog2(uint4(1u, 2u, 3u, 4u))); @@ -4251,7 +4251,7 @@ public static void floorlog2_uint4() TestUtils.AreEqual(int4(30, 30, 30, 30), floorlog2(uint4(2147483647u, 2147483647u, 2147483647u, 2147483647u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceillog2_int() { TestUtils.AreEqual(0, ceillog2(1)); @@ -4269,7 +4269,7 @@ public static void ceillog2_int() TestUtils.AreEqual(31, ceillog2(2147483647)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceillog2_int2() { TestUtils.AreEqual(int2(0, 1), ceillog2(int2(1, 2))); @@ -4281,7 +4281,7 @@ public static void ceillog2_int2() TestUtils.AreEqual(int2(31, 31), ceillog2(int2(2147483647, 2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceillog2_int3() { TestUtils.AreEqual(int3(0, 1, 2), ceillog2(int3(1, 2, 3))); @@ -4291,7 +4291,7 @@ public static void ceillog2_int3() TestUtils.AreEqual(int3(31, 31, 31), ceillog2(int3(2147483647, 2147483647, 2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceillog2_int4() { TestUtils.AreEqual(int4(0, 1, 2, 2), ceillog2(int4(1, 2, 3, 4))); @@ -4300,7 +4300,7 @@ public static void ceillog2_int4() TestUtils.AreEqual(int4(31, 31, 31, 31), ceillog2(int4(2147483647, 2147483647, 2147483647, 2147483647))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceillog2_uint() { TestUtils.AreEqual(0, ceillog2(1u)); @@ -4318,7 +4318,7 @@ public static void ceillog2_uint() TestUtils.AreEqual(32, ceillog2(4294967295u)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceillog2_uint2() { TestUtils.AreEqual(int2(0, 1), ceillog2(uint2(1u, 2u))); @@ -4330,7 +4330,7 @@ public static void ceillog2_uint2() TestUtils.AreEqual(int2(32, 32), ceillog2(uint2(4294967295u, 4294967295u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceillog2_uint3() { TestUtils.AreEqual(int3(0, 1, 2), ceillog2(uint3(1u, 2u, 3u))); @@ -4340,7 +4340,7 @@ public static void ceillog2_uint3() TestUtils.AreEqual(int3(32, 32, 32), ceillog2(uint3(4294967295u, 4294967295u, 4294967295u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ceillog2_uint4() { TestUtils.AreEqual(int4(0, 1, 2, 2), ceillog2(uint4(1u, 2u, 3u, 4u))); @@ -4349,7 +4349,7 @@ public static void ceillog2_uint4() TestUtils.AreEqual(int4(32, 32, 32, 32), ceillog2(uint4(4294967295u, 4294967295u, 4294967295u, 4294967295u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ispow2_int() { TestUtils.AreEqual(false, ispow2(-3)); @@ -4368,7 +4368,7 @@ public static void ispow2_int() TestUtils.AreEqual(false, ispow2(268431360)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ispow2_int2() { TestUtils.AreEqual(bool2(false, false), ispow2(int2(-3, -2))); @@ -4380,7 +4380,7 @@ public static void ispow2_int2() TestUtils.AreEqual(bool2(true, false), ispow2(int2(2097152, 268431360))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ispow2_int3() { TestUtils.AreEqual(bool3(false, false, false), ispow2(int3(-3, -2, -1))); @@ -4390,7 +4390,7 @@ public static void ispow2_int3() TestUtils.AreEqual(bool3(true, false, false), ispow2(int3(2097152, 268431360, 268431360))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ispow2_int4() { TestUtils.AreEqual(bool4(false, false, false, false), ispow2(int4(-3, -2, -1, 0))); @@ -4399,7 +4399,7 @@ public static void ispow2_int4() TestUtils.AreEqual(bool4(true, false, false, false), ispow2(int4(2097152, 268431360, 268431360, 268431360))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ispow2_uint() { TestUtils.AreEqual(false, ispow2(0u)); @@ -4416,7 +4416,7 @@ public static void ispow2_uint() TestUtils.AreEqual(false, ispow2(268431360u)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ispow2_uint2() { TestUtils.AreEqual(bool2(false, true), ispow2(uint2(0u, 1u))); @@ -4427,7 +4427,7 @@ public static void ispow2_uint2() TestUtils.AreEqual(bool2(false, false), ispow2(uint2(2097153u, 268431360u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ispow2_uint3() { TestUtils.AreEqual(bool3(false, true, true), ispow2(uint3(0u, 1u, 2u))); @@ -4436,7 +4436,7 @@ public static void ispow2_uint3() TestUtils.AreEqual(bool3(true, false, false), ispow2(uint3(2097152u, 2097153u, 268431360u))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ispow2_uint4() { TestUtils.AreEqual(bool4(false, true, true, false), ispow2(uint4(0u, 1u, 2u, 3u))); diff --git a/src/Tests/Tests/Shared/TestMatrix.cs b/src/Tests/Tests/Shared/TestMatrix.cs index 558ce482..5fc6a37b 100644 --- a/src/Tests/Tests/Shared/TestMatrix.cs +++ b/src/Tests/Tests/Shared/TestMatrix.cs @@ -7,7 +7,7 @@ namespace Unity.Mathematics.Tests [TestFixture] class TestMatrix { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_constructor_columns() { float2x2 a = float2x2(float2(1.0f, 2.0f), @@ -19,7 +19,7 @@ public static void float2x2_constructor_columns() TestUtils.AreEqual(4.0f, a.c1.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_constructor_columns() { float3x3 a = float3x3(float3(1.0f, 2.0f, 3.0f), @@ -37,7 +37,7 @@ public static void float3x3_constructor_columns() TestUtils.AreEqual(9.0f, a.c2.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_constructor_columns() { float4x4 a = float4x4(float4( 1.0f, 2.0f, 3.0f, 4.0f), @@ -63,7 +63,7 @@ public static void float4x4_constructor_columns() TestUtils.AreEqual(16.0f, a.c3.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_constructor_scalars() { float2x2 a = float2x2(1.0f, 2.0f, @@ -75,7 +75,7 @@ public static void float2x2_constructor_scalars() TestUtils.AreEqual(4.0f, a.c1.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_constructor_scalars() { float3x3 a = float3x3(1.0f, 2.0f, 3.0f, @@ -93,7 +93,7 @@ public static void float3x3_constructor_scalars() TestUtils.AreEqual(9.0f, a.c2.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_constructor_scalars() { float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, @@ -119,7 +119,7 @@ public static void float4x4_constructor_scalars() TestUtils.AreEqual(16.0f, a.c3.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_constructor_float3x3() { float3x3 rot = float3x3(1.0f, 2.0f, 3.0f, @@ -136,7 +136,7 @@ public static void float4x4_constructor_float3x3() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_constructor_quaternion() { float3x3 m = float3x3(normalize(quaternion(1.0f, 2.5f, 3.3f, 4.6f))); @@ -148,7 +148,7 @@ public static void float3x3_constructor_quaternion() TestUtils.AreEqual(r, m, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_constructor_quaternion_position() { float4x4 m = float4x4(normalize(quaternion(1.0f, 2.5f, 3.3f, 4.6f)), float3(1.0f, 2.0f, 3.0f)); @@ -161,7 +161,7 @@ public static void float4x4_constructor_quaternion_position() TestUtils.AreEqual(r, m, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_identity() { float2x2 a = float2x2.identity; @@ -171,7 +171,7 @@ public static void float2x2_identity() TestUtils.AreEqual(1.0f, a.c1.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_identity() { float3x3 a = float3x3.identity; @@ -186,7 +186,7 @@ public static void float3x3_identity() TestUtils.AreEqual(1.0f, a.c2.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_identity() { float4x4 a = float4x4.identity; @@ -208,7 +208,7 @@ public static void float4x4_identity() TestUtils.AreEqual(1.0f, a.c3.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_rotate() { float epsilon = 0.0001f; @@ -220,7 +220,7 @@ public static void float2x2_rotate() TestUtils.AreEqual(cos(angle), m.c1.y, epsilon); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_axis_angle() { float3 axis = normalize(float3(1.1f, 2.3f, -3.6f)); @@ -231,7 +231,7 @@ public static void float3x3_axis_angle() TestUtils.AreEqual(r, m, 0.00001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_axis_angle_consistency() { TestUtils.AreEqual(float3x3.RotateX(1.0f), float3x3.AxisAngle(float3(1, 0, 0), 1.0f), 0.001f); @@ -239,7 +239,7 @@ public static void float3x3_axis_angle_consistency() TestUtils.AreEqual(float3x3.RotateZ(1.0f), float3x3.AxisAngle(float3(0, 0, 1), 1.0f), 0.001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_rotate_x() { float epsilon = 0.0001f; @@ -256,7 +256,7 @@ public static void float3x3_rotate_x() TestUtils.AreEqual(cos(angle), m.c2.z, epsilon); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_rotate_y() { float epsilon = 0.0001f; @@ -273,7 +273,7 @@ public static void float3x3_rotate_y() TestUtils.AreEqual(cos(angle), m.c2.z, epsilon); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_rotate_z() { float epsilon = 0.0001f; @@ -290,7 +290,7 @@ public static void float3x3_rotate_z() TestUtils.AreEqual(1.0f, m.c2.z, epsilon); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_rotate_x_handedness() { float3 a = float3(0.0f, 0.3f, 0.7f); @@ -301,7 +301,7 @@ public static void float3x3_rotate_x_handedness() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_rotate_y_handedness() { float3 a = float3(0.3f, 0.0f, 0.7f); @@ -311,7 +311,7 @@ public static void float3x3_rotate_y_handedness() TestUtils.AreEqual(w > 0.0f, true); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_rotate_z_handedness() { float3 a = float3(0.3f, 0.7f, 0.0f); @@ -321,7 +321,7 @@ public static void float3x3_rotate_z_handedness() TestUtils.AreEqual(w > 0.0f, true); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_axis_angle() { float3 axis = normalize(float3(1.1f, 2.3f, -3.6f)); @@ -332,7 +332,7 @@ public static void float4x4_axis_angle() TestUtils.AreEqual(r, m, 0.00001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_axis_angle_consistency() { TestUtils.AreEqual(float4x4.RotateX(1.0f), float4x4.AxisAngle(float3(1, 0, 0), 1.0f), 0.001f); @@ -340,7 +340,7 @@ public static void float4x4_axis_angle_consistency() TestUtils.AreEqual(float4x4.RotateZ(1.0f), float4x4.AxisAngle(float3(0, 0, 1), 1.0f), 0.001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_rotate_x() { float epsilon = 0.0001f; @@ -364,7 +364,7 @@ public static void float4x4_rotate_x() TestUtils.AreEqual(1.0f, m.c3.w, epsilon); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_rotate_y() { float epsilon = 0.0001f; @@ -388,7 +388,7 @@ public static void float4x4_rotate_y() TestUtils.AreEqual(1.0f, m.c3.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_rotate_z() { float epsilon = 0.0001f; @@ -412,7 +412,7 @@ public static void float4x4_rotate_z() TestUtils.AreEqual(1.0f, m.c3.w, epsilon); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_rotate_x_handedness() { float3 a = float3(0.0f, 0.3f, 0.7f); @@ -423,7 +423,7 @@ public static void float4x4_rotate_x_handedness() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_rotate_y_handedness() { float3 a = float3(0.3f, 0.0f, 0.7f); @@ -433,7 +433,7 @@ public static void float4x4_rotate_y_handedness() TestUtils.AreEqual(w > 0.0f, true); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_rotate_z_handedness() { float3 a = float3(0.3f, 0.7f, 0.0f); @@ -480,7 +480,7 @@ public static void float4x4_rotate_z_handedness() static internal readonly float4x4 test4x4_zyx = new float4x4(test3x3_zyx, new float3(0, 0, 0)); - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_euler() { float3x3 m0_xyz = float3x3.EulerXYZ(test_angles); @@ -547,7 +547,7 @@ public static void float3x3_euler() TestUtils.AreEqual(test3x3_zyx, m3_zyx, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_euler() { float4x4 m0_xyz = float4x4.EulerXYZ(test_angles); @@ -614,7 +614,7 @@ public static void float4x4_euler() TestUtils.AreEqual(test4x4_zyx, m3_zyx, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_scale() { float2x2 m = float2x2(1.0f, 2.0f, @@ -635,7 +635,7 @@ public static void float2x2_scale() TestUtils.AreEqual(r1, c); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_scale() { float3x3 m = float3x3(1.0f, 2.0f, 3.0f, @@ -661,7 +661,7 @@ public static void float3x3_scale() TestUtils.AreEqual(r1, c); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_scale() { float4x4 m = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, @@ -688,7 +688,7 @@ public static void float4x4_scale() TestUtils.AreEqual(r1, c); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_matrix_mul() { // http://www.wolframalpha.com/input/?i=%5B%5B1,2%5D,%5B3,4%5D%5D*%5B%5B21,22%5D,%5B23,24%5D%5D @@ -706,7 +706,7 @@ public static void float2x2_matrix_mul() TestUtils.AreEqual(162.0f, c.c1.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_matrix_mul() { // http://www.wolframalpha.com/input/?i=%5B%5B1,2,3%5D,%5B4,5,6%5D,%5B7,8,9%5D%5D*%5B%5B21,22,23%5D,%5B24,25,26%5D,%5B27,28,29%5D%5D @@ -732,7 +732,7 @@ public static void float3x3_matrix_mul() TestUtils.AreEqual(630.0f, c.c2.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_matrix_mul() { // https://fogbugz.unity3d.com/f/cases/1041176/ @@ -769,7 +769,7 @@ public static void float4x4_matrix_mul() TestUtils.AreEqual(1760.0f, c.c3.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_transpose() { float2x2 a = float2x2(1.0f, 2.0f, @@ -783,7 +783,7 @@ public static void float2x2_transpose() TestUtils.AreEqual(4.0f, b.c1.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_transpose() { float3x3 a = float3x3(1.0f, 2.0f, 3.0f, @@ -803,7 +803,7 @@ public static void float3x3_transpose() TestUtils.AreEqual(9.0f, b.c2.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_transpose() { float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, @@ -831,7 +831,7 @@ public static void float4x4_transpose() TestUtils.AreEqual(16.0f, b.c3.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_inverse() { float2x2 a = float2x2( 0.542968f, 0.867379f, @@ -850,7 +850,7 @@ public static void float2x2_inverse() TestUtils.AreEqual(r.c1.y, invA.c1.y, epsilon); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_inverse() { float3x3 a = float3x3( 0.542968f, 0.867379f, 0.526616f, @@ -877,7 +877,7 @@ public static void float3x3_inverse() TestUtils.AreEqual(r.c2.z, invA.c2.z, epsilon); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_inverse() { float4x4 a = float4x4( 0.542968f, 0.867379f, 0.526616f,-0.943083f, @@ -914,7 +914,7 @@ public static void float4x4_inverse() TestUtils.AreEqual(r.c3.w, invA.c3.w, epsilon); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x4_fastinverse() { float4x4 a = test4x4_xyz; @@ -931,7 +931,7 @@ public static void float3x4_fastinverse() TestUtils.AreEqual(invA.c3.xyz, fastInvB.c3.xyz, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_fastinverse() { float4x4 a = test4x4_xyz; @@ -943,7 +943,7 @@ public static void float4x4_fastinverse() TestUtils.AreEqual(invA, fastInvA, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2x2_determinant() { float2x2 a = float2x2(0.542968f, 0.867379f, @@ -953,7 +953,7 @@ public static void float2x2_determinant() TestUtils.AreEqual(-0.2610378f, det, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_determinant() { float3x3 a = float3x3( 0.542968f, 0.867379f, 0.526616f, @@ -964,7 +964,7 @@ public static void float3x3_determinant() TestUtils.AreEqual(0.06019618f, det, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_determinant() { float4x4 a = float4x4( 0.542968f, 0.867379f, 0.526616f, -0.943083f, @@ -976,7 +976,7 @@ public static void float4x4_determinant() TestUtils.AreEqual(0.5838502f, det, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_look_rotation() { float3 forward0 = normalize(float3(1.0f, 2.0f, 3.0f)); @@ -1012,7 +1012,7 @@ public static void float3x3_look_rotation() TestUtils.AreEqual(float3x3(quaternion.LookRotation(forward3, up3)), m3, 0.001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_look_rotation_safe() { float3 forward0 = float3(-3.2f, 2.3f, -1.3f) * 1e-10f; @@ -1029,7 +1029,7 @@ public static void float3x3_look_rotation_safe() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_lookat() { float4x4 m = float4x4.LookAt(float3(0.3f, -0.5f, 3.0f), float3(3.2f, -3.1f, 0.2f), normalize(float3(0.3f, 1.0f, -3.0f))); @@ -1043,7 +1043,7 @@ public static void float4x4_lookat() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_ortho() { float4x4 m = float4x4.Ortho(2.0f, 3.0f, -3.0f, 7.0f); @@ -1056,7 +1056,7 @@ public static void float4x4_ortho() TestUtils.AreEqual(r, m, 0.001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_orthoOffCenter() { float4x4 m = float4x4.OrthoOffCenter(-2.0f, 1.0f, -3.0f, -1.0f, -3.0f, 7.0f); @@ -1069,7 +1069,7 @@ public static void float4x4_orthoOffCenter() TestUtils.AreEqual(r, m, 0.001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_perspective() { float fovy = 1.6f; @@ -1098,7 +1098,7 @@ public static void float4x4_perspective() TestUtils.AreEqual(float3(1.0f, 1.0f, 1.0f), pp1.xyz, 0.001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_perspectiveOffCenter() { float fovy = 1.6f; @@ -1132,7 +1132,7 @@ public static void float4x4_perspectiveOffCenter() TestUtils.AreEqual(float3(-1.0f, 1.0f, 1.0f), pp2.xyz, 0.001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4x4_TRS() { float3 scale = float3(1.2f, -0.4f, 2.3f); @@ -1143,7 +1143,7 @@ public static void float4x4_TRS() TestUtils.AreEqual(r0, m0, 0.001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_constructor_float4x4() { var f4x4 = new float4x4(new float4(1, 2, 3, 4), new float4(5, 6, 7, 8), new float4(9, 10, 11, 12), new float4(13, 14, 15, 16)); @@ -1152,7 +1152,7 @@ public static void float3x3_constructor_float4x4() TestUtils.AreEqual(expected, new float3x3(f4x4)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_explicit_cast_float4x4() { var f4x4 = new float4x4(new float4(1, 2, 3, 4), new float4(5, 6, 7, 8), new float4(9, 10, 11, 12), new float4(13, 14, 15, 16)); @@ -1161,7 +1161,7 @@ public static void float3x3_explicit_cast_float4x4() TestUtils.AreEqual(expected, (float3x3)f4x4); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_from_float4x4_without_new() { var f4x4 = new float4x4(new float4(1, 2, 3, 4), new float4(5, 6, 7, 8), new float4(9, 10, 11, 12), new float4(13, 14, 15, 16)); @@ -1170,7 +1170,7 @@ public static void float3x3_from_float4x4_without_new() TestUtils.AreEqual(expected, float3x3(f4x4)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_pseudoinverse_non_singular() { const float kTolerance = 1e-5f; @@ -1191,7 +1191,7 @@ public static void float3x3_pseudoinverse_non_singular() TestUtils.AreEqual(expected, inverse(a), kTolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3x3_pseudoinverse_singular() { const float kTolerance = 1e-5f; diff --git a/src/Tests/Tests/Shared/TestMinMaxAABB.cs b/src/Tests/Tests/Shared/TestMinMaxAABB.cs index 7c5c5e8c..a08e52cd 100644 --- a/src/Tests/Tests/Shared/TestMinMaxAABB.cs +++ b/src/Tests/Tests/Shared/TestMinMaxAABB.cs @@ -9,7 +9,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestMinMaxAABB { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_float3_trivial() { var aabb = new MinMaxAABB(); @@ -18,7 +18,7 @@ public static void Encapsulate_float3_trivial() TestUtils.AreEqual(float3.zero, aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_float3_new_max() { var aabb = new MinMaxAABB(); @@ -27,7 +27,7 @@ public static void Encapsulate_float3_new_max() TestUtils.AreEqual(new float3(1.0f), aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_float3_new_min() { var aabb = new MinMaxAABB(); @@ -36,7 +36,7 @@ public static void Encapsulate_float3_new_min() TestUtils.AreEqual(new float3(-1.0f), aabb.Min); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_float3_new_minx_maxyz() { var aabb = new MinMaxAABB(); @@ -45,7 +45,7 @@ public static void Encapsulate_float3_new_minx_maxyz() TestUtils.AreEqual(new float3(0.0f, 1.0f, 1.0f), aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_float3_new_minxy_maxz() { var aabb = new MinMaxAABB(); @@ -54,7 +54,7 @@ public static void Encapsulate_float3_new_minxy_maxz() TestUtils.AreEqual(new float3(0.0f, 0.0f, 1.0f), aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_float3_new_minxz_maxy() { var aabb = new MinMaxAABB(); @@ -63,7 +63,7 @@ public static void Encapsulate_float3_new_minxz_maxy() TestUtils.AreEqual(new float3(0.0f, 1.0f, 0.0f), aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_float3_new_minz_maxxy() { var aabb = new MinMaxAABB(); @@ -72,7 +72,7 @@ public static void Encapsulate_float3_new_minz_maxxy() TestUtils.AreEqual(new float3(1.0f, 1.0f, 0.0f), aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_float3_new_miny_maxxz() { var aabb = new MinMaxAABB(); @@ -81,7 +81,7 @@ public static void Encapsulate_float3_new_miny_maxxz() TestUtils.AreEqual(new float3(1.0f, 0.0f, 1.0f), aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_MinMaxAABB_trivial() { var aabb = new MinMaxAABB(); @@ -90,7 +90,7 @@ public static void Encapsulate_MinMaxAABB_trivial() TestUtils.AreEqual(float3.zero, aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_MinMaxAABB_new_max() { var aabb = new MinMaxAABB(); @@ -100,7 +100,7 @@ public static void Encapsulate_MinMaxAABB_new_max() TestUtils.AreEqual(p, aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_MinMaxAABB_new_min() { var aabb = new MinMaxAABB(); @@ -110,7 +110,7 @@ public static void Encapsulate_MinMaxAABB_new_min() TestUtils.AreEqual(p, aabb.Min); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_MinMaxAABB_new_minx_maxyz() { var aabb = new MinMaxAABB(); @@ -119,7 +119,7 @@ public static void Encapsulate_MinMaxAABB_new_minx_maxyz() TestUtils.AreEqual(new float3(0.0f, 1.0f, 1.0f), aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_MinMaxAABB_new_minxy_maxz() { var aabb = new MinMaxAABB(); @@ -128,7 +128,7 @@ public static void Encapsulate_MinMaxAABB_new_minxy_maxz() TestUtils.AreEqual(new float3(0.0f, 0.0f, 1.0f), aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_MinMaxAABB_new_minxz_maxy() { var aabb = new MinMaxAABB(); @@ -137,7 +137,7 @@ public static void Encapsulate_MinMaxAABB_new_minxz_maxy() TestUtils.AreEqual(new float3(0.0f, 1.0f, 0.0f), aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_MinMaxAABB_new_minz_maxxy() { var aabb = new MinMaxAABB(); @@ -146,7 +146,7 @@ public static void Encapsulate_MinMaxAABB_new_minz_maxxy() TestUtils.AreEqual(new float3(1.0f, 1.0f, 0.0f), aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Encapsulate_MinMaxAABB_new_miny_maxxz() { var aabb = new MinMaxAABB(); @@ -155,14 +155,14 @@ public static void Encapsulate_MinMaxAABB_new_miny_maxxz() TestUtils.AreEqual(new float3(1.0f, 0.0f, 1.0f), aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Equals_trivial() { MinMaxAABB aabb = new MinMaxAABB(); TestUtils.IsTrue(aabb.Equals(aabb)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Equals() { MinMaxAABB aabb1 = new MinMaxAABB { Min = new float3(-123.0f, 0.5182f, 20.0f), Max = new float3(1.0f, -1.0f, 0.99191f) }; @@ -171,7 +171,7 @@ public static void Equals() TestUtils.IsTrue(aabb2.Equals(aabb1)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Equals_diff_minx() { MinMaxAABB aabb1 = new MinMaxAABB(); @@ -180,7 +180,7 @@ public static void Equals_diff_minx() TestUtils.IsFalse(aabb2.Equals(aabb1)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Equals_diff_miny() { MinMaxAABB aabb1 = new MinMaxAABB(); @@ -189,7 +189,7 @@ public static void Equals_diff_miny() TestUtils.IsFalse(aabb2.Equals(aabb1)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Equals_diff_minz() { MinMaxAABB aabb1 = new MinMaxAABB(); @@ -198,7 +198,7 @@ public static void Equals_diff_minz() TestUtils.IsFalse(aabb2.Equals(aabb1)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Equals_diff_maxx() { MinMaxAABB aabb1 = new MinMaxAABB(); @@ -207,7 +207,7 @@ public static void Equals_diff_maxx() TestUtils.IsFalse(aabb2.Equals(aabb1)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Equals_diff_maxy() { MinMaxAABB aabb1 = new MinMaxAABB(); @@ -216,7 +216,7 @@ public static void Equals_diff_maxy() TestUtils.IsFalse(aabb2.Equals(aabb1)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Equals_diff_maxz() { MinMaxAABB aabb1 = new MinMaxAABB(); @@ -225,7 +225,7 @@ public static void Equals_diff_maxz() TestUtils.IsFalse(aabb2.Equals(aabb1)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void SurfaceArea() { var min = new float3(-47.989063262939453125f, 28.037994384765625f, -9.756519317626953125f); @@ -235,7 +235,7 @@ public static void SurfaceArea() TestUtils.AreEqual(14400.470703125f, aabb.SurfaceArea, 1, true); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Extents() { var min = new float3(48.152984619140625f, -33.58978271484375f, -37.498805999755859375f); @@ -246,7 +246,7 @@ public static void Extents() TestUtils.AreEqual(expected, aabb.Extents); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Center() { var min = new float3(47.902675628662109375f, -34.302494049072265625f, 22.7147884368896484375f); @@ -257,7 +257,7 @@ public static void Center() TestUtils.AreEqual(expected, aabb.Center); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void HalfExtents() { var min = new float3(-14.3485383987426757813f, 28.68161773681640625f, -40.28060150146484375f); @@ -268,7 +268,7 @@ public static void HalfExtents() TestUtils.AreEqual(expected, aabb.HalfExtents); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Constructor() { var min = new float3(38.95940399169921875f, -24.644245147705078125f, 27.7903194427490234375f); @@ -279,7 +279,7 @@ public static void Constructor() TestUtils.AreEqual(max, aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ContainsPoint() { var aabb = new MinMaxAABB(new float3(-1), new float3(1)); @@ -301,7 +301,7 @@ public static void ContainsPoint() TestUtils.IsFalse(aabb.Contains(new float3(-1.0f, -1.0f, -1.0f - EPSILON))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ContainsAabb_Trivial() { var aabb1 = new MinMaxAABB(); @@ -311,7 +311,7 @@ public static void ContainsAabb_Trivial() TestUtils.IsTrue(aabb2.Contains(aabb1)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ContainsAabb() { var aabb1 = new MinMaxAABB(new float3(-1.0f), new float3(1.0f)); @@ -321,7 +321,7 @@ public static void ContainsAabb() TestUtils.IsFalse(aabb2.Contains(aabb1)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ContainsAabb_BarelyNotContained() { var aabb1 = new MinMaxAABB(new float3(-1.0f), new float3(1.0f)); @@ -340,7 +340,7 @@ public static void ContainsAabb_BarelyNotContained() TestUtils.IsFalse(aabb1.Contains(aabb7)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Overlap_Trivial() { var aabb = new MinMaxAABB(); @@ -348,7 +348,7 @@ public static void Overlap_Trivial() TestUtils.IsTrue(aabb.Overlaps(aabb)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Overlap_Corner() { var aabb = new MinMaxAABB(new float3(-1.0f), new float3(1.0f)); @@ -389,7 +389,7 @@ public static void Overlap_Corner() TestUtils.IsTrue(cornerAabb8.Overlaps(aabb)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void NoOverlap_Corner() { var aabb = new MinMaxAABB(new float3(-1.0f), new float3(1.0f)); @@ -430,7 +430,7 @@ public static void NoOverlap_Corner() TestUtils.IsFalse(cornerAabb8.Overlaps(aabb)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Expand_PositiveDistance() { var aabb = new MinMaxAABB(new float3(-0.5f), new float3(0.5f)); @@ -440,7 +440,7 @@ public static void Expand_PositiveDistance() TestUtils.AreEqual(new float3(1.5f), aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Expand_NegativeDistance() { var aabb = new MinMaxAABB(new float3(-0.5f), new float3(0.5f)); @@ -450,7 +450,7 @@ public static void Expand_NegativeDistance() TestUtils.AreEqual(new float3(-0.5f), aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void CreateFromCenterAndExtents() { var center = new float3(-29.2458133697509765625f, 1.21094369888305664063f, 34.281322479248046875f); @@ -463,7 +463,7 @@ public static void CreateFromCenterAndExtents() TestUtils.AreEqual(expectedMax, aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void CreateFromCenterAndHalfExtents() { var center = new float3(-29.2458133697509765625f, 1.21094369888305664063f, 34.281322479248046875f); @@ -476,14 +476,14 @@ public static void CreateFromCenterAndHalfExtents() TestUtils.AreEqual(expectedMax, aabb.Max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void IsValid_Trivial() { TestUtils.IsTrue(new MinMaxAABB().IsValid); TestUtils.IsFalse(new MinMaxAABB(new float3(1.0f), new float3(-1.0f)).IsValid); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void IsValid_OneComponentInvalid() { TestUtils.IsFalse(new MinMaxAABB(float3.zero, new float3(-1.0f, 0.0f, 0.0f)).IsValid); @@ -494,7 +494,7 @@ public static void IsValid_OneComponentInvalid() TestUtils.IsFalse(new MinMaxAABB(new float3(0.0f, 0.0f, 1.0f), float3.zero).IsValid); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Transform_RigidTransform() { var t = new RigidTransform(quaternion.EulerXYZ(PI * 0.25f), new float3(1.0f, 1.0f, 1.0f)); @@ -507,7 +507,7 @@ public static void Transform_RigidTransform() TestUtils.AreEqual(expectedMax, aabb.Max, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Transform_float4x4() { var t = new float4x4(float3x3.EulerXYZ(PI * 0.25f), new float3(1.0f, 1.0f, 1.0f)); @@ -520,7 +520,7 @@ public static void Transform_float4x4() TestUtils.AreEqual(expectedMax, aabb.Max, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Transform_float3x3() { var t = float3x3.EulerXYZ(PI * 0.25f); diff --git a/src/Tests/Tests/Shared/TestPlane.cs b/src/Tests/Tests/Shared/TestPlane.cs index 91e60044..c79ecb0b 100644 --- a/src/Tests/Tests/Shared/TestPlane.cs +++ b/src/Tests/Tests/Shared/TestPlane.cs @@ -10,7 +10,7 @@ public class TestPlane // An arbitrary tolerance. const float Tolerance = 0.0000025f; - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Empty() { var p = new Plane(); @@ -20,7 +20,7 @@ public static void Empty() TestUtils.AreEqual(0.0f, p.Distance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void GetNormal() { var p = new Plane { NormalAndDistance = new float4(1.0f, 2.0f, 3.0f, 4.0f) }; @@ -28,7 +28,7 @@ public static void GetNormal() TestUtils.AreEqual(new float3(1.0f, 2.0f, 3.0f), p.Normal); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void GetDistance() { var p = new Plane { NormalAndDistance = new float4(1.0f, 2.0f, 3.0f, 4.0f) }; @@ -36,7 +36,7 @@ public static void GetDistance() TestUtils.AreEqual(4.0f, p.Distance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void SetNormal() { var p = new Plane { NormalAndDistance = new float4(1.0f, 2.0f, 3.0f, 4.0f) }; @@ -45,7 +45,7 @@ public static void SetNormal() TestUtils.AreEqual(new float3(-1.0f, -2.0f, -3.0f), p.Normal); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void SetDistance() { var p = new Plane { NormalAndDistance = new float4(1.0f, 2.0f, 3.0f, 4.0f) }; @@ -54,7 +54,7 @@ public static void SetDistance() TestUtils.AreEqual(-4.0f, p.Distance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ConstructWithNormalAndDistance() { var n = math.normalize(new float3(4.0f, -5.0f, 6.0f)); @@ -66,7 +66,7 @@ public static void ConstructWithNormalAndDistance() TestUtils.AreEqual(d, p.Distance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ConstructWithCoefficients_NonUnitLengthNormal() { var abcd = new float4(4.0f, -5.0f, 6.0f, 123.0f); @@ -78,7 +78,7 @@ public static void ConstructWithCoefficients_NonUnitLengthNormal() TestUtils.AreEqual(expected.w, p.Distance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ConstructWithNormalAndPointInPlane_NegativeDistance() { var n = math.up(); @@ -90,7 +90,7 @@ public static void ConstructWithNormalAndPointInPlane_NegativeDistance() TestUtils.AreEqual(-1.0f, p.Distance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ConstructWithNormalAndPointInPlane_PositiveDistance() { var n = math.down(); @@ -102,7 +102,7 @@ public static void ConstructWithNormalAndPointInPlane_PositiveDistance() TestUtils.AreEqual(1.0f, p.Distance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ConstructWithNormalAndPointInPlane() { var normal = new float3(2.0f, 2.0f, 2.0f); @@ -116,7 +116,7 @@ public static void ConstructWithNormalAndPointInPlane() TestUtils.AreEqual(expectedD, p.Distance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ConstructWithTwoVectorsAndOrigin_Trivial() { var v1 = new float3(1.0f, 0.0f, 0.0f); @@ -126,7 +126,7 @@ public static void ConstructWithTwoVectorsAndOrigin_Trivial() TestUtils.AreEqual(new float4(0.0f, 0.0f, 1.0f, 0.0f), p); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ConstructWithTwoVectorsAndOrigin_NonZeroOrigin() { var v1 = new float3(5.0f, 0.0f, 0.0f); @@ -136,7 +136,7 @@ public static void ConstructWithTwoVectorsAndOrigin_NonZeroOrigin() TestUtils.AreEqual(new float4(0.0f, 0.0f, -1.0f, 1.0f), p); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void SignedDistanceToPoint() { var vInPlane1 = new float3(2.0f, 1.0f, -0.18f); @@ -152,7 +152,7 @@ public static void SignedDistanceToPoint() TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(pointInPlane - n), Tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void SignedDistanceToPointTrivial() { var p = new Plane(math.up(), 0.0f); @@ -174,7 +174,7 @@ public static void SignedDistanceToPointTrivial() TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down() + math.forward())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ProjectionTrivial() { var p = new Plane(math.up(), 0.0f); @@ -183,7 +183,7 @@ public static void ProjectionTrivial() TestUtils.AreEqual(expected, p.Projection(math.up() + expected)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Projection() { var normal = new float3(1.0f); @@ -195,7 +195,7 @@ public static void Projection() TestUtils.AreEqual(expected, p.Projection(expected), math.EPSILON); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void Flipped() { var normal = new float3(1.0f); @@ -207,7 +207,7 @@ public static void Flipped() TestUtils.AreEqual(new float4(expectedN, expectedD), p.Flipped, Tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void ImplicitToFloat4() { var normal = new float3(1.1f, -20.0f, 15.182f); @@ -220,7 +220,7 @@ public static void ImplicitToFloat4() TestUtils.AreEqual(new float4(expectedN, expectedD), p_as_float4, Tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void NormalizeFloat4() { var p = new float4(8.215876543024162e-01f, 2.786574280629829e-01f, 8.121669997361285e-01f, 9.352839276497152e-01f); @@ -229,7 +229,7 @@ public static void NormalizeFloat4() TestUtils.AreEqual(expected, Plane.Normalize(p), Tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void NormalizePlane() { var p = new Plane { NormalAndDistance = new float4(8.215876543024162e-01f, 2.786574280629829e-01f, 8.121669997361285e-01f, 9.352839276497152e-01f) }; @@ -241,7 +241,7 @@ public static void NormalizePlane() TestUtils.AreEqual(expected.w, normalized.Distance, Tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void CreateFromUnitNormalAndDistance() { var n = new float3(9.108767140247756e-02f, 3.966831912609620e-01f, 9.134251375397404e-01f); @@ -252,7 +252,7 @@ public static void CreateFromUnitNormalAndDistance() TestUtils.AreEqual(expected, p.NormalAndDistance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void CreateFromUnitNormalAndPointInPlane() { var n = new float3(4.724920516359185e-01f, 1.444614284194820e-01f, 8.694148358751899e-01f); diff --git a/src/Tests/Tests/Shared/TestQuaternion.cs b/src/Tests/Tests/Shared/TestQuaternion.cs index 301725ee..0279de90 100644 --- a/src/Tests/Tests/Shared/TestQuaternion.cs +++ b/src/Tests/Tests/Shared/TestQuaternion.cs @@ -7,7 +7,7 @@ namespace Unity.Mathematics.Tests [TestFixture] class TestQuaternion { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_basic_constructors() { quaternion q = quaternion(1.0f, 2.0f, 3.0f, 4.0f); @@ -23,7 +23,7 @@ public static void quaternion_basic_constructors() TestUtils.AreEqual(4.0f, q2.value.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_construct_from_matrix() { TestUtils.AreEqual(float3x3(quaternion(TestMatrix.test3x3_xyz)), TestMatrix.test3x3_xyz, 0.0001f); @@ -45,7 +45,7 @@ public static void quaternion_construct_from_matrix() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_construct_from_matrix3x3_torture() { Random rnd = new Random(0x12345678); @@ -58,7 +58,7 @@ public static void quaternion_construct_from_matrix3x3_torture() } } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_construct_from_matrix4x4_torture() { Random rnd = new Random(0x12345678); @@ -71,7 +71,7 @@ public static void quaternion_construct_from_matrix4x4_torture() } } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_axis_angle() { quaternion q = quaternion.AxisAngle(normalize(float3(1.0f, 2.0f, 3.0f)), 10.0f); @@ -80,7 +80,7 @@ public static void quaternion_axis_angle() TestUtils.AreEqual(r, q, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_axis_angle_consistency() { TestUtils.AreEqual(quaternion.RotateX(1.0f), quaternion.AxisAngle(float3(1, 0, 0), 1.0f), 0.001f); @@ -88,7 +88,7 @@ public static void quaternion_axis_angle_consistency() TestUtils.AreEqual(quaternion.RotateZ(1.0f), quaternion.AxisAngle(float3(0, 0, 1), 1.0f), 0.001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void euler_to_quaternion() { float3 test_angles = TestMatrix.test_angles; @@ -158,7 +158,7 @@ public static void euler_to_quaternion() TestUtils.AreEqual(TestMatrix.test3x3_zyx, m1_zyx, epsilon); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_rotateX() { float angle = 2.3f; @@ -168,7 +168,7 @@ public static void quaternion_rotateX() TestUtils.AreEqual(r, q, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_rotateY() { float angle = 2.3f; @@ -178,7 +178,7 @@ public static void quaternion_rotateY() TestUtils.AreEqual(r, q, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_rotateZ() { float angle = 2.3f; @@ -193,7 +193,7 @@ public static void quaternion_rotateZ() static internal readonly quaternion test_q2 = new quaternion(-0.2316205f, -0.6022133f, -0.7411857f, -0.1852964f); static internal readonly quaternion test_q3 = new quaternion(0.3619499f, 0.8352691f, -0.1392115f, 0.3897922f); - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_conjugate() { quaternion q = quaternion(1.0f, -2.0f, 3.0f, -4.0f); @@ -203,7 +203,7 @@ public static void quaternion_conjugate() TestUtils.AreEqual(r, cq); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_inverse() { quaternion q = quaternion(1.0f, -2.0f, 3.0f, -4.0f); @@ -213,7 +213,7 @@ public static void quaternion_inverse() TestUtils.AreEqual(quaternion.identity, qiq, 0.00001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_dot() { float dot01 = dot(test_q0, test_q1); @@ -223,7 +223,7 @@ public static void quaternion_dot() TestUtils.AreEqual(-0.5795583f, dot02, 0.00001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_nlerp() { quaternion r0 = nlerp(test_q0, test_q1, 0.3f); @@ -235,7 +235,7 @@ public static void quaternion_nlerp() TestUtils.AreEqual(quaternion(-0.4054004f, 0.06570576f, -0.7457358f, -0.5246059f), r2, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_slerp() { quaternion r0 = slerp(test_q0, test_q1, 0.3f); @@ -247,7 +247,7 @@ public static void quaternion_slerp() TestUtils.AreEqual(quaternion(0.2596942f, -0.4369303f, 0.7902023f, 0.34239f), r2, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_mul_vector() { float3x3 m = TestMatrix.test3x3_xyz; @@ -261,7 +261,7 @@ public static void quaternion_mul_vector() TestUtils.AreEqual(mvector, qvector, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_log_exp_identity() { quaternion q = quaternion(1.2f, -2.6f, 3.1f, 6.0f); @@ -270,7 +270,7 @@ public static void quaternion_log_exp_identity() TestUtils.AreEqual(q, exp_log_q, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_log_exp_rotation() { quaternion q = quaternion(TestMatrix.test3x3_xyz); @@ -280,7 +280,7 @@ public static void quaternion_log_exp_rotation() TestUtils.AreEqual(q3, t, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_unitlog_unitexp_rotation() { quaternion q = quaternion(TestMatrix.test3x3_xyz); @@ -290,7 +290,7 @@ public static void quaternion_unitlog_unitexp_rotation() TestUtils.AreEqual(q3, t, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_look_rotation() { // Exercise the 4 cases @@ -319,7 +319,7 @@ public static void quaternion_look_rotation() TestUtils.AreEqual(float3x3.LookRotation(forward3, up3), float3x3(q3), 0.001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_look_rotation_safe() { float3 forward0 = float3(-3.2f, 2.3f, -1.3f) * 1e-10f; @@ -381,7 +381,7 @@ public static void quaternion_angle() TestUtils.AreEqual(0f, angle); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_rotation_from_3x3_identity() { const float tolerance = 1e-5f; @@ -389,7 +389,7 @@ public static void quaternion_rotation_from_3x3_identity() TestUtils.AreEqual(quaternion.identity, q, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_rotation_from_3x3_with_uniform_scale() { const float tolerance = 1e-5f; @@ -401,7 +401,7 @@ public static void quaternion_rotation_from_3x3_with_uniform_scale() TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_rotation_from_3x3_with_nonuniform_scale() { const float tolerance = 1e-5f; @@ -413,7 +413,7 @@ public static void quaternion_rotation_from_3x3_with_nonuniform_scale() TestUtils.AreEqual(quaternion.identity, q, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_rotation_from_3x3_with_negative_scale_x() { const float tolerance = 1e-5f; @@ -425,7 +425,7 @@ public static void quaternion_rotation_from_3x3_with_negative_scale_x() TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_rotation_from_3x3_with_negative_scale_y() { const float tolerance = 1e-5f; @@ -437,7 +437,7 @@ public static void quaternion_rotation_from_3x3_with_negative_scale_y() TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_rotation_from_3x3_with_negative_scale_z() { const float tolerance = 1e-5f; @@ -449,7 +449,7 @@ public static void quaternion_rotation_from_3x3_with_negative_scale_z() TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_rotation_from_3x3_with_negative_nonuniform_scale() { const float tolerance = 1e-5f; diff --git a/src/Tests/Tests/Shared/TestRigidTransform.cs b/src/Tests/Tests/Shared/TestRigidTransform.cs index ac0d8060..eacec9ed 100644 --- a/src/Tests/Tests/Shared/TestRigidTransform.cs +++ b/src/Tests/Tests/Shared/TestRigidTransform.cs @@ -7,7 +7,7 @@ namespace Unity.Mathematics.Tests [TestFixture] class TestRigidTransform { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rigid_transform_construct_from_matrix() { float4x4 m4x4 = TestMatrix.test4x4_zyx; @@ -19,7 +19,7 @@ public static void rigid_transform_construct_from_matrix() TestUtils.AreEqual(m4x4, mq4x4, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rigid_transform_axisAngle() { RigidTransform q = RigidTransform.AxisAngle(normalize(float3(1.0f, 2.0f, 3.0f)), 10.0f); @@ -28,7 +28,7 @@ public static void rigid_transform_axisAngle() TestUtils.AreEqual(r, q, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rigid_transform_euler() { float3 test_angles = TestMatrix.test_angles; @@ -98,7 +98,7 @@ public static void rigid_transform_euler() TestUtils.AreEqual(TestMatrix.test3x3_zyx, m1_zyx, epsilon); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rigid_transform_rotateX() { float angle = 2.3f; @@ -108,7 +108,7 @@ public static void rigid_transform_rotateX() TestUtils.AreEqual(r, q, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rigid_transform_rotateY() { float angle = 2.3f; @@ -118,7 +118,7 @@ public static void rigid_transform_rotateY() TestUtils.AreEqual(r, q, 0.0001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rigid_transform_rotateZ() { float angle = 2.3f; @@ -133,7 +133,7 @@ public static void rigid_transform_rotateZ() static internal readonly quaternion test_q2 = new quaternion(-0.2316205f, -0.6022133f, -0.7411857f, -0.1852964f); static internal readonly quaternion test_q3 = new quaternion(0.3619499f, 0.8352691f, -0.1392115f, 0.3897922f); - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rigid_transform_inverse() { RigidTransform q = RigidTransform(quaternion(1.0f, -2.0f, 3.0f, -4.0f), float3(1,2,3)); @@ -143,7 +143,7 @@ public static void rigid_transform_inverse() TestUtils.AreEqual(RigidTransform.identity, qiq, 0.00001f); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void rigid_transform_mul_vector() { float4x4 m = TestMatrix.test4x4_xyz; diff --git a/src/Tests/Tests/Shared/TestSvd.cs b/src/Tests/Tests/Shared/TestSvd.cs index f5ae195c..db889bd9 100644 --- a/src/Tests/Tests/Shared/TestSvd.cs +++ b/src/Tests/Tests/Shared/TestSvd.cs @@ -48,7 +48,7 @@ static void ValidatePenrose2(in float3x3 a, in float3x3 b) static void ValidateSingular(in float3x3 a) => TestUtils.AreEqual(0.0f, math.determinant(a), k_SVDTolerance); - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void CanSVDInverseNonSingularFloat3x3() { var mat = math.float3x3( @@ -71,7 +71,7 @@ public static void CanSVDInverseNonSingularFloat3x3() TestUtils.AreEqual(1f, testIdentity.c2.z, k_SVDTolerance); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void CanSVDInverseFloat3x3With_NullColumn() { var mat = math.float3x3( @@ -89,7 +89,7 @@ public static void CanSVDInverseFloat3x3With_NullColumn() ValidatePenrose2(inv, mat); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void CanSVDInverseFloat3x3With_NullRow() { var mat = math.float3x3( @@ -107,7 +107,7 @@ public static void CanSVDInverseFloat3x3With_NullRow() ValidatePenrose2(inv, mat); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void CanSVDInverseFloat3x3With_LinearDependentColumn() { var mat = math.float3x3( @@ -125,7 +125,7 @@ public static void CanSVDInverseFloat3x3With_LinearDependentColumn() ValidatePenrose2(inv, mat); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void CanSVDInverseFloat3x3With_LinearDependentRow() { var mat = math.float3x3( @@ -143,7 +143,7 @@ public static void CanSVDInverseFloat3x3With_LinearDependentRow() ValidatePenrose2(inv, mat); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void CanSVDInverseFloat3x3With_RotatedZeroScale() { var m102030 = math.float3x3(quaternion.Euler(math.radians(10f), math.radians(20f), math.radians(30f))); @@ -160,7 +160,7 @@ public static void CanSVDInverseFloat3x3With_RotatedZeroScale() } // Case 928598: The errors appear, when GameObject has a child with ParticleSystem which is rotated along the y-axis to -180 and is moved - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void CanExtractSVDRotationFromFloat3x3With_X180_Y0_Z181() { var q = quaternion.Euler(math.radians(180f), math.radians(0f), math.radians(181f)); @@ -170,7 +170,7 @@ public static void CanExtractSVDRotationFromFloat3x3With_X180_Y0_Z181() } // Case 938548: Assertion failed on expression: 'CompareApproximately(det, 1.0F, .005f)' when scaling system to 0 on at least 2 axes - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void CanExtractSVDRotationFromFloat3x3With_ZeroScaleXY() { var q0 = quaternion.Euler(math.radians(10f), math.radians(20f), math.radians(30f)); diff --git a/src/Tests/Tests/Shared/TestUint2.gen.cs b/src/Tests/Tests/Shared/TestUint2.gen.cs index 67c0813b..04620a33 100644 --- a/src/Tests/Tests/Shared/TestUint2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2.gen.cs @@ -15,14 +15,14 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_zero() { TestUtils.AreEqual(0u, uint2.zero.x); TestUtils.AreEqual(0u, uint2.zero.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_constructor() { uint2 a = new uint2(1, 2); @@ -30,7 +30,7 @@ public static void uint2_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_scalar_constructor() { uint2 a = new uint2(17u); @@ -38,7 +38,7 @@ public static void uint2_scalar_constructor() TestUtils.AreEqual(17u, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_static_constructor() { uint2 a = uint2(1, 2); @@ -46,7 +46,7 @@ public static void uint2_static_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_static_scalar_constructor() { uint2 a = uint2(17u); @@ -54,7 +54,7 @@ public static void uint2_static_scalar_constructor() TestUtils.AreEqual(17u, a.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_equal_wide_wide() { uint2 a0 = uint2(2105871082, 35218899); @@ -78,7 +78,7 @@ public static void uint2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_equal_wide_scalar() { uint2 a0 = uint2(437822262, 2020661134); @@ -102,7 +102,7 @@ public static void uint2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -126,7 +126,7 @@ public static void uint2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_not_equal_wide_wide() { uint2 a0 = uint2(1977284100, 1293292704); @@ -150,7 +150,7 @@ public static void uint2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_not_equal_wide_scalar() { uint2 a0 = uint2(1038269360, 1427812625); @@ -174,7 +174,7 @@ public static void uint2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -198,7 +198,7 @@ public static void uint2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_less_wide_wide() { uint2 a0 = uint2(1486550609, 1779244308); @@ -222,7 +222,7 @@ public static void uint2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_less_wide_scalar() { uint2 a0 = uint2(796797557, 670113454); @@ -246,7 +246,7 @@ public static void uint2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_less_scalar_wide() { uint a0 = (186400299); @@ -270,7 +270,7 @@ public static void uint2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_greater_wide_wide() { uint2 a0 = uint2(2087717754, 1725569452); @@ -294,7 +294,7 @@ public static void uint2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_greater_wide_scalar() { uint2 a0 = uint2(1208626274, 239697208); @@ -318,7 +318,7 @@ public static void uint2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -342,7 +342,7 @@ public static void uint2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_less_equal_wide_wide() { uint2 a0 = uint2(154092149, 1515170149); @@ -366,7 +366,7 @@ public static void uint2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_less_equal_wide_scalar() { uint2 a0 = uint2(1479531977, 1427983411); @@ -390,7 +390,7 @@ public static void uint2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -414,7 +414,7 @@ public static void uint2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_greater_equal_wide_wide() { uint2 a0 = uint2(8538378, 2131749726); @@ -438,7 +438,7 @@ public static void uint2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_greater_equal_wide_scalar() { uint2 a0 = uint2(2049236663, 182691143); @@ -462,7 +462,7 @@ public static void uint2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -486,7 +486,7 @@ public static void uint2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_add_wide_wide() { uint2 a0 = uint2(2135171378, 21433296); @@ -510,7 +510,7 @@ public static void uint2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_add_wide_scalar() { uint2 a0 = uint2(665815972, 1783729250); @@ -534,7 +534,7 @@ public static void uint2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_add_scalar_wide() { uint a0 = (359966320); @@ -558,7 +558,7 @@ public static void uint2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_sub_wide_wide() { uint2 a0 = uint2(1410318491, 1097280168); @@ -582,7 +582,7 @@ public static void uint2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_sub_wide_scalar() { uint2 a0 = uint2(1508669340, 1594795463); @@ -606,7 +606,7 @@ public static void uint2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -630,7 +630,7 @@ public static void uint2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_mul_wide_wide() { uint2 a0 = uint2(61417577, 219585476); @@ -654,7 +654,7 @@ public static void uint2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_mul_wide_scalar() { uint2 a0 = uint2(871746615, 492532311); @@ -678,7 +678,7 @@ public static void uint2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -702,7 +702,7 @@ public static void uint2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_div_wide_wide() { uint2 a0 = uint2(333171510, 858154903); @@ -726,7 +726,7 @@ public static void uint2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_div_wide_scalar() { uint2 a0 = uint2(1433072926, 1073958635); @@ -750,7 +750,7 @@ public static void uint2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_div_scalar_wide() { uint a0 = (519165704); @@ -774,7 +774,7 @@ public static void uint2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_mod_wide_wide() { uint2 a0 = uint2(258342924, 1454754891); @@ -798,7 +798,7 @@ public static void uint2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_mod_wide_scalar() { uint2 a0 = uint2(560988938, 629524514); @@ -822,7 +822,7 @@ public static void uint2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -846,7 +846,7 @@ public static void uint2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_plus() { uint2 a0 = uint2(195392567, 222719748); @@ -866,7 +866,7 @@ public static void uint2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_neg() { uint2 a0 = uint2(1385088677, 94114564); @@ -886,7 +886,7 @@ public static void uint2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_prefix_inc() { uint2 a0 = uint2(780471723, 954741756); @@ -906,7 +906,7 @@ public static void uint2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_postfix_inc() { uint2 a0 = uint2(241865086, 2145821641); @@ -926,7 +926,7 @@ public static void uint2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_prefix_dec() { uint2 a0 = uint2(1331961415, 1612382200); @@ -946,7 +946,7 @@ public static void uint2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_postfix_dec() { uint2 a0 = uint2(1870005937, 1708534798); @@ -966,7 +966,7 @@ public static void uint2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_bitwise_and_wide_wide() { uint2 a0 = uint2(1055241304, 859321394); @@ -990,7 +990,7 @@ public static void uint2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_bitwise_and_wide_scalar() { uint2 a0 = uint2(1513158868, 284695609); @@ -1014,7 +1014,7 @@ public static void uint2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1038,7 +1038,7 @@ public static void uint2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_bitwise_or_wide_wide() { uint2 a0 = uint2(1920951869, 1750772852); @@ -1062,7 +1062,7 @@ public static void uint2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_bitwise_or_wide_scalar() { uint2 a0 = uint2(1295304853, 1307252624); @@ -1086,7 +1086,7 @@ public static void uint2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1110,7 +1110,7 @@ public static void uint2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_bitwise_xor_wide_wide() { uint2 a0 = uint2(1843655608, 362425681); @@ -1134,7 +1134,7 @@ public static void uint2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_bitwise_xor_wide_scalar() { uint2 a0 = uint2(169345668, 176087064); @@ -1158,7 +1158,7 @@ public static void uint2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1182,7 +1182,7 @@ public static void uint2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_left_shift() { uint2 a0 = uint2(1129100049, 829482269); @@ -1206,7 +1206,7 @@ public static void uint2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_right_shift() { uint2 a0 = uint2(809126085, 908563670); @@ -1230,7 +1230,7 @@ public static void uint2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_operator_bitwise_not() { uint2 a0 = uint2(111796841, 603562399); @@ -1250,7 +1250,7 @@ public static void uint2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_shuffle_result_1() { uint2 a = uint2(0, 1); @@ -1262,7 +1262,7 @@ public static void uint2_shuffle_result_1() TestUtils.AreEqual((3), shuffle(a, b, ShuffleComponent.RightY)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_shuffle_result_2() { uint2 a = uint2(0, 1); @@ -1286,7 +1286,7 @@ public static void uint2_shuffle_result_2() TestUtils.AreEqual(uint2(3, 3), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.RightY)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_shuffle_result_3() { uint2 a = uint2(0, 1); @@ -1310,7 +1310,7 @@ public static void uint2_shuffle_result_3() TestUtils.AreEqual(uint3(3, 1, 1), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.LeftY)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_shuffle_result_4() { uint2 a = uint2(0, 1); @@ -1334,7 +1334,7 @@ public static void uint2_shuffle_result_4() TestUtils.AreEqual(uint4(2, 0, 0, 0), shuffle(a, b, ShuffleComponent.RightX, ShuffleComponent.LeftX, ShuffleComponent.LeftX, ShuffleComponent.LeftX)); } - [TestCase] + [TestCase /* For player builds */] public static void uint2_EqualsObjectOverride() { TestUtils.IsFalse(new uint2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestUint2x2.gen.cs b/src/Tests/Tests/Shared/TestUint2x2.gen.cs index a5f371ec..dd8ed7a4 100644 --- a/src/Tests/Tests/Shared/TestUint2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint2x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_zero() { TestUtils.AreEqual(0u, uint2x2.zero.c0.x); @@ -24,7 +24,7 @@ public static void uint2x2_zero() TestUtils.AreEqual(0u, uint2x2.zero.c1.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_identity() { TestUtils.AreEqual(1u, uint2x2.identity.c0.x); @@ -33,7 +33,7 @@ public static void uint2x2_identity() TestUtils.AreEqual(1u, uint2x2.identity.c1.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_equal_wide_wide() { uint2x2 a0 = uint2x2(2105871082, 35218899, 1550755093, 764676020); @@ -57,7 +57,7 @@ public static void uint2x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_equal_wide_scalar() { uint2x2 a0 = uint2x2(437822262, 2020661134, 541786900, 853113810); @@ -81,7 +81,7 @@ public static void uint2x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -105,7 +105,7 @@ public static void uint2x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_not_equal_wide_wide() { uint2x2 a0 = uint2x2(1977284100, 1293292704, 1547283851, 422428953); @@ -129,7 +129,7 @@ public static void uint2x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_not_equal_wide_scalar() { uint2x2 a0 = uint2x2(1038269360, 1427812625, 103361237, 1347017023); @@ -153,7 +153,7 @@ public static void uint2x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -177,7 +177,7 @@ public static void uint2x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_less_wide_wide() { uint2x2 a0 = uint2x2(1486550609, 1779244308, 1602148045, 1614085440); @@ -201,7 +201,7 @@ public static void uint2x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_less_wide_scalar() { uint2x2 a0 = uint2x2(796797557, 670113454, 933579492, 278884514); @@ -225,7 +225,7 @@ public static void uint2x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_less_scalar_wide() { uint a0 = (186400299); @@ -249,7 +249,7 @@ public static void uint2x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_greater_wide_wide() { uint2x2 a0 = uint2x2(2087717754, 1725569452, 1298066182, 1693943616); @@ -273,7 +273,7 @@ public static void uint2x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_greater_wide_scalar() { uint2x2 a0 = uint2x2(1208626274, 239697208, 1979453345, 1253474001); @@ -297,7 +297,7 @@ public static void uint2x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -321,7 +321,7 @@ public static void uint2x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_less_equal_wide_wide() { uint2x2 a0 = uint2x2(154092149, 1515170149, 1083970332, 785807178); @@ -345,7 +345,7 @@ public static void uint2x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_less_equal_wide_scalar() { uint2x2 a0 = uint2x2(1479531977, 1427983411, 415250630, 1245345407); @@ -369,7 +369,7 @@ public static void uint2x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -393,7 +393,7 @@ public static void uint2x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_greater_equal_wide_wide() { uint2x2 a0 = uint2x2(8538378, 2131749726, 265427108, 523609761); @@ -417,7 +417,7 @@ public static void uint2x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_greater_equal_wide_scalar() { uint2x2 a0 = uint2x2(2049236663, 182691143, 634973382, 1197012109); @@ -441,7 +441,7 @@ public static void uint2x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -465,7 +465,7 @@ public static void uint2x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_add_wide_wide() { uint2x2 a0 = uint2x2(2135171378, 21433296, 1954723494, 683604307); @@ -489,7 +489,7 @@ public static void uint2x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_add_wide_scalar() { uint2x2 a0 = uint2x2(665815972, 1783729250, 1591678394, 1284528538); @@ -513,7 +513,7 @@ public static void uint2x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_add_scalar_wide() { uint a0 = (359966320); @@ -537,7 +537,7 @@ public static void uint2x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_sub_wide_wide() { uint2x2 a0 = uint2x2(1410318491, 1097280168, 1827039044, 28881338); @@ -561,7 +561,7 @@ public static void uint2x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_sub_wide_scalar() { uint2x2 a0 = uint2x2(1508669340, 1594795463, 266707545, 643102647); @@ -585,7 +585,7 @@ public static void uint2x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -609,7 +609,7 @@ public static void uint2x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_mul_wide_wide() { uint2x2 a0 = uint2x2(61417577, 219585476, 1362520891, 1511084277); @@ -633,7 +633,7 @@ public static void uint2x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_mul_wide_scalar() { uint2x2 a0 = uint2x2(871746615, 492532311, 570557670, 2142306629); @@ -657,7 +657,7 @@ public static void uint2x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -681,7 +681,7 @@ public static void uint2x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_div_wide_wide() { uint2x2 a0 = uint2x2(333171510, 858154903, 1181365836, 671357749); @@ -705,7 +705,7 @@ public static void uint2x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_div_wide_scalar() { uint2x2 a0 = uint2x2(1433072926, 1073958635, 1195142312, 536596719); @@ -729,7 +729,7 @@ public static void uint2x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_div_scalar_wide() { uint a0 = (519165704); @@ -753,7 +753,7 @@ public static void uint2x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_mod_wide_wide() { uint2x2 a0 = uint2x2(258342924, 1454754891, 723352342, 1981431473); @@ -777,7 +777,7 @@ public static void uint2x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_mod_wide_scalar() { uint2x2 a0 = uint2x2(560988938, 629524514, 767711194, 434281967); @@ -801,7 +801,7 @@ public static void uint2x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -825,7 +825,7 @@ public static void uint2x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_plus() { uint2x2 a0 = uint2x2(195392567, 222719748, 1002351013, 1570765263); @@ -845,7 +845,7 @@ public static void uint2x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_neg() { uint2x2 a0 = uint2x2(1385088677, 94114564, 1350664872, 1458616659); @@ -865,7 +865,7 @@ public static void uint2x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_prefix_inc() { uint2x2 a0 = uint2x2(780471723, 954741756, 272723451, 2142862245); @@ -885,7 +885,7 @@ public static void uint2x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_postfix_inc() { uint2x2 a0 = uint2x2(241865086, 2145821641, 1596166022, 803592338); @@ -905,7 +905,7 @@ public static void uint2x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_prefix_dec() { uint2x2 a0 = uint2x2(1331961415, 1612382200, 1401591249, 2042075388); @@ -925,7 +925,7 @@ public static void uint2x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_postfix_dec() { uint2x2 a0 = uint2x2(1870005937, 1708534798, 704493460, 462940703); @@ -945,7 +945,7 @@ public static void uint2x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_bitwise_and_wide_wide() { uint2x2 a0 = uint2x2(1055241304, 859321394, 1088358961, 2090949513); @@ -969,7 +969,7 @@ public static void uint2x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_bitwise_and_wide_scalar() { uint2x2 a0 = uint2x2(1513158868, 284695609, 734595037, 1566510707); @@ -993,7 +993,7 @@ public static void uint2x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1017,7 +1017,7 @@ public static void uint2x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_bitwise_or_wide_wide() { uint2x2 a0 = uint2x2(1920951869, 1750772852, 1420019191, 732977093); @@ -1041,7 +1041,7 @@ public static void uint2x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_bitwise_or_wide_scalar() { uint2x2 a0 = uint2x2(1295304853, 1307252624, 350194630, 1128063578); @@ -1065,7 +1065,7 @@ public static void uint2x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1089,7 +1089,7 @@ public static void uint2x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_bitwise_xor_wide_wide() { uint2x2 a0 = uint2x2(1843655608, 362425681, 640805534, 1342040268); @@ -1113,7 +1113,7 @@ public static void uint2x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_bitwise_xor_wide_scalar() { uint2x2 a0 = uint2x2(169345668, 176087064, 2084362901, 1663924004); @@ -1137,7 +1137,7 @@ public static void uint2x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1161,7 +1161,7 @@ public static void uint2x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_left_shift() { uint2x2 a0 = uint2x2(1129100049, 829482269, 1571297368, 443753193); @@ -1185,7 +1185,7 @@ public static void uint2x2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_right_shift() { uint2x2 a0 = uint2x2(809126085, 908563670, 763568837, 1986717290); @@ -1209,7 +1209,7 @@ public static void uint2x2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x2_operator_bitwise_not() { uint2x2 a0 = uint2x2(111796841, 603562399, 745091931, 853183268); @@ -1229,7 +1229,7 @@ public static void uint2x2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void uint2x2_EqualsObjectOverride() { TestUtils.IsFalse(new uint2x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestUint2x3.gen.cs b/src/Tests/Tests/Shared/TestUint2x3.gen.cs index d8aa9b0a..0dcca69a 100644 --- a/src/Tests/Tests/Shared/TestUint2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint2x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_zero() { TestUtils.AreEqual(0u, uint2x3.zero.c0.x); @@ -26,7 +26,7 @@ public static void uint2x3_zero() TestUtils.AreEqual(0u, uint2x3.zero.c2.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_equal_wide_wide() { uint2x3 a0 = uint2x3(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098); @@ -50,7 +50,7 @@ public static void uint2x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_equal_wide_scalar() { uint2x3 a0 = uint2x3(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405); @@ -74,7 +74,7 @@ public static void uint2x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -98,7 +98,7 @@ public static void uint2x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_not_equal_wide_wide() { uint2x3 a0 = uint2x3(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892); @@ -122,7 +122,7 @@ public static void uint2x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_not_equal_wide_scalar() { uint2x3 a0 = uint2x3(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802); @@ -146,7 +146,7 @@ public static void uint2x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -170,7 +170,7 @@ public static void uint2x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_less_wide_wide() { uint2x3 a0 = uint2x3(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342); @@ -194,7 +194,7 @@ public static void uint2x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_less_wide_scalar() { uint2x3 a0 = uint2x3(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673); @@ -218,7 +218,7 @@ public static void uint2x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_less_scalar_wide() { uint a0 = (186400299); @@ -242,7 +242,7 @@ public static void uint2x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_greater_wide_wide() { uint2x3 a0 = uint2x3(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491); @@ -266,7 +266,7 @@ public static void uint2x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_greater_wide_scalar() { uint2x3 a0 = uint2x3(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635); @@ -290,7 +290,7 @@ public static void uint2x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -314,7 +314,7 @@ public static void uint2x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_less_equal_wide_wide() { uint2x3 a0 = uint2x3(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627); @@ -338,7 +338,7 @@ public static void uint2x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_less_equal_wide_scalar() { uint2x3 a0 = uint2x3(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632); @@ -362,7 +362,7 @@ public static void uint2x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -386,7 +386,7 @@ public static void uint2x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_greater_equal_wide_wide() { uint2x3 a0 = uint2x3(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564); @@ -410,7 +410,7 @@ public static void uint2x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_greater_equal_wide_scalar() { uint2x3 a0 = uint2x3(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469); @@ -434,7 +434,7 @@ public static void uint2x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -458,7 +458,7 @@ public static void uint2x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_add_wide_wide() { uint2x3 a0 = uint2x3(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995); @@ -482,7 +482,7 @@ public static void uint2x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_add_wide_scalar() { uint2x3 a0 = uint2x3(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732); @@ -506,7 +506,7 @@ public static void uint2x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_add_scalar_wide() { uint a0 = (359966320); @@ -530,7 +530,7 @@ public static void uint2x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_sub_wide_wide() { uint2x3 a0 = uint2x3(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868); @@ -554,7 +554,7 @@ public static void uint2x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_sub_wide_scalar() { uint2x3 a0 = uint2x3(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328); @@ -578,7 +578,7 @@ public static void uint2x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -602,7 +602,7 @@ public static void uint2x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_mul_wide_wide() { uint2x3 a0 = uint2x3(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871); @@ -626,7 +626,7 @@ public static void uint2x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_mul_wide_scalar() { uint2x3 a0 = uint2x3(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563); @@ -650,7 +650,7 @@ public static void uint2x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -674,7 +674,7 @@ public static void uint2x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_div_wide_wide() { uint2x3 a0 = uint2x3(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420); @@ -698,7 +698,7 @@ public static void uint2x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_div_wide_scalar() { uint2x3 a0 = uint2x3(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346); @@ -722,7 +722,7 @@ public static void uint2x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_div_scalar_wide() { uint a0 = (519165704); @@ -746,7 +746,7 @@ public static void uint2x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_mod_wide_wide() { uint2x3 a0 = uint2x3(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627); @@ -770,7 +770,7 @@ public static void uint2x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_mod_wide_scalar() { uint2x3 a0 = uint2x3(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846); @@ -794,7 +794,7 @@ public static void uint2x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -818,7 +818,7 @@ public static void uint2x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_plus() { uint2x3 a0 = uint2x3(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277); @@ -838,7 +838,7 @@ public static void uint2x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_neg() { uint2x3 a0 = uint2x3(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493); @@ -858,7 +858,7 @@ public static void uint2x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_prefix_inc() { uint2x3 a0 = uint2x3(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550); @@ -878,7 +878,7 @@ public static void uint2x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_postfix_inc() { uint2x3 a0 = uint2x3(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229); @@ -898,7 +898,7 @@ public static void uint2x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_prefix_dec() { uint2x3 a0 = uint2x3(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159); @@ -918,7 +918,7 @@ public static void uint2x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_postfix_dec() { uint2x3 a0 = uint2x3(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869); @@ -938,7 +938,7 @@ public static void uint2x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_bitwise_and_wide_wide() { uint2x3 a0 = uint2x3(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515); @@ -962,7 +962,7 @@ public static void uint2x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_bitwise_and_wide_scalar() { uint2x3 a0 = uint2x3(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838); @@ -986,7 +986,7 @@ public static void uint2x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1010,7 +1010,7 @@ public static void uint2x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_bitwise_or_wide_wide() { uint2x3 a0 = uint2x3(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930); @@ -1034,7 +1034,7 @@ public static void uint2x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_bitwise_or_wide_scalar() { uint2x3 a0 = uint2x3(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467); @@ -1058,7 +1058,7 @@ public static void uint2x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1082,7 +1082,7 @@ public static void uint2x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_bitwise_xor_wide_wide() { uint2x3 a0 = uint2x3(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850); @@ -1106,7 +1106,7 @@ public static void uint2x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_bitwise_xor_wide_scalar() { uint2x3 a0 = uint2x3(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661); @@ -1130,7 +1130,7 @@ public static void uint2x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1154,7 +1154,7 @@ public static void uint2x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_left_shift() { uint2x3 a0 = uint2x3(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593); @@ -1178,7 +1178,7 @@ public static void uint2x3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_right_shift() { uint2x3 a0 = uint2x3(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842); @@ -1202,7 +1202,7 @@ public static void uint2x3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x3_operator_bitwise_not() { uint2x3 a0 = uint2x3(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399); @@ -1222,7 +1222,7 @@ public static void uint2x3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void uint2x3_EqualsObjectOverride() { TestUtils.IsFalse(new uint2x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestUint2x4.gen.cs b/src/Tests/Tests/Shared/TestUint2x4.gen.cs index 7783684e..645d9554 100644 --- a/src/Tests/Tests/Shared/TestUint2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint2x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_zero() { TestUtils.AreEqual(0u, uint2x4.zero.c0.x); @@ -28,7 +28,7 @@ public static void uint2x4_zero() TestUtils.AreEqual(0u, uint2x4.zero.c3.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_equal_wide_wide() { uint2x4 a0 = uint2x4(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316); @@ -52,7 +52,7 @@ public static void uint2x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_equal_wide_scalar() { uint2x4 a0 = uint2x4(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849); @@ -76,7 +76,7 @@ public static void uint2x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -100,7 +100,7 @@ public static void uint2x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_not_equal_wide_wide() { uint2x4 a0 = uint2x4(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074); @@ -124,7 +124,7 @@ public static void uint2x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_not_equal_wide_scalar() { uint2x4 a0 = uint2x4(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717); @@ -148,7 +148,7 @@ public static void uint2x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -172,7 +172,7 @@ public static void uint2x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_less_wide_wide() { uint2x4 a0 = uint2x4(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431); @@ -196,7 +196,7 @@ public static void uint2x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_less_wide_scalar() { uint2x4 a0 = uint2x4(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600); @@ -220,7 +220,7 @@ public static void uint2x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_less_scalar_wide() { uint a0 = (186400299); @@ -244,7 +244,7 @@ public static void uint2x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_greater_wide_wide() { uint2x4 a0 = uint2x4(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508); @@ -268,7 +268,7 @@ public static void uint2x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_greater_wide_scalar() { uint2x4 a0 = uint2x4(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098); @@ -292,7 +292,7 @@ public static void uint2x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -316,7 +316,7 @@ public static void uint2x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_less_equal_wide_wide() { uint2x4 a0 = uint2x4(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725); @@ -340,7 +340,7 @@ public static void uint2x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_less_equal_wide_scalar() { uint2x4 a0 = uint2x4(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307); @@ -364,7 +364,7 @@ public static void uint2x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -388,7 +388,7 @@ public static void uint2x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_greater_equal_wide_wide() { uint2x4 a0 = uint2x4(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970); @@ -412,7 +412,7 @@ public static void uint2x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_greater_equal_wide_scalar() { uint2x4 a0 = uint2x4(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187); @@ -436,7 +436,7 @@ public static void uint2x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -460,7 +460,7 @@ public static void uint2x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_add_wide_wide() { uint2x4 a0 = uint2x4(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062); @@ -484,7 +484,7 @@ public static void uint2x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_add_wide_scalar() { uint2x4 a0 = uint2x4(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017); @@ -508,7 +508,7 @@ public static void uint2x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_add_scalar_wide() { uint a0 = (359966320); @@ -532,7 +532,7 @@ public static void uint2x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_sub_wide_wide() { uint2x4 a0 = uint2x4(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215); @@ -556,7 +556,7 @@ public static void uint2x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_sub_wide_scalar() { uint2x4 a0 = uint2x4(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511); @@ -580,7 +580,7 @@ public static void uint2x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -604,7 +604,7 @@ public static void uint2x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_mul_wide_wide() { uint2x4 a0 = uint2x4(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644); @@ -628,7 +628,7 @@ public static void uint2x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_mul_wide_scalar() { uint2x4 a0 = uint2x4(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514); @@ -652,7 +652,7 @@ public static void uint2x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -676,7 +676,7 @@ public static void uint2x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_div_wide_wide() { uint2x4 a0 = uint2x4(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814); @@ -700,7 +700,7 @@ public static void uint2x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_div_wide_scalar() { uint2x4 a0 = uint2x4(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670); @@ -724,7 +724,7 @@ public static void uint2x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_div_scalar_wide() { uint a0 = (519165704); @@ -748,7 +748,7 @@ public static void uint2x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_mod_wide_wide() { uint2x4 a0 = uint2x4(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004); @@ -772,7 +772,7 @@ public static void uint2x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_mod_wide_scalar() { uint2x4 a0 = uint2x4(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916); @@ -796,7 +796,7 @@ public static void uint2x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -820,7 +820,7 @@ public static void uint2x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_plus() { uint2x4 a0 = uint2x4(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785); @@ -840,7 +840,7 @@ public static void uint2x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_neg() { uint2x4 a0 = uint2x4(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961); @@ -860,7 +860,7 @@ public static void uint2x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_prefix_inc() { uint2x4 a0 = uint2x4(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162); @@ -880,7 +880,7 @@ public static void uint2x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_postfix_inc() { uint2x4 a0 = uint2x4(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244); @@ -900,7 +900,7 @@ public static void uint2x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_prefix_dec() { uint2x4 a0 = uint2x4(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664); @@ -920,7 +920,7 @@ public static void uint2x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_postfix_dec() { uint2x4 a0 = uint2x4(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351); @@ -940,7 +940,7 @@ public static void uint2x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_bitwise_and_wide_wide() { uint2x4 a0 = uint2x4(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753); @@ -964,7 +964,7 @@ public static void uint2x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_bitwise_and_wide_scalar() { uint2x4 a0 = uint2x4(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908); @@ -988,7 +988,7 @@ public static void uint2x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1012,7 +1012,7 @@ public static void uint2x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_bitwise_or_wide_wide() { uint2x4 a0 = uint2x4(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323); @@ -1036,7 +1036,7 @@ public static void uint2x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_bitwise_or_wide_scalar() { uint2x4 a0 = uint2x4(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350); @@ -1060,7 +1060,7 @@ public static void uint2x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1084,7 +1084,7 @@ public static void uint2x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_bitwise_xor_wide_wide() { uint2x4 a0 = uint2x4(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658); @@ -1108,7 +1108,7 @@ public static void uint2x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_bitwise_xor_wide_scalar() { uint2x4 a0 = uint2x4(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783); @@ -1132,7 +1132,7 @@ public static void uint2x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1156,7 +1156,7 @@ public static void uint2x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_left_shift() { uint2x4 a0 = uint2x4(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862); @@ -1180,7 +1180,7 @@ public static void uint2x4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_right_shift() { uint2x4 a0 = uint2x4(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632); @@ -1204,7 +1204,7 @@ public static void uint2x4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2x4_operator_bitwise_not() { uint2x4 a0 = uint2x4(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135); @@ -1224,7 +1224,7 @@ public static void uint2x4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void uint2x4_EqualsObjectOverride() { TestUtils.IsFalse(new uint2x4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestUint3.gen.cs b/src/Tests/Tests/Shared/TestUint3.gen.cs index 6fca57ce..67055e17 100644 --- a/src/Tests/Tests/Shared/TestUint3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_zero() { TestUtils.AreEqual(0u, uint3.zero.x); @@ -23,7 +23,7 @@ public static void uint3_zero() TestUtils.AreEqual(0u, uint3.zero.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_constructor() { uint3 a = new uint3(1, 2, 3); @@ -32,7 +32,7 @@ public static void uint3_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_scalar_constructor() { uint3 a = new uint3(17u); @@ -41,7 +41,7 @@ public static void uint3_scalar_constructor() TestUtils.AreEqual(17u, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_static_constructor() { uint3 a = uint3(1, 2, 3); @@ -50,7 +50,7 @@ public static void uint3_static_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_static_scalar_constructor() { uint3 a = uint3(17u); @@ -59,7 +59,7 @@ public static void uint3_static_scalar_constructor() TestUtils.AreEqual(17u, a.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_equal_wide_wide() { uint3 a0 = uint3(2105871082, 35218899, 1550755093); @@ -83,7 +83,7 @@ public static void uint3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_equal_wide_scalar() { uint3 a0 = uint3(437822262, 2020661134, 541786900); @@ -107,7 +107,7 @@ public static void uint3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -131,7 +131,7 @@ public static void uint3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_not_equal_wide_wide() { uint3 a0 = uint3(1977284100, 1293292704, 1547283851); @@ -155,7 +155,7 @@ public static void uint3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_not_equal_wide_scalar() { uint3 a0 = uint3(1038269360, 1427812625, 103361237); @@ -179,7 +179,7 @@ public static void uint3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -203,7 +203,7 @@ public static void uint3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_less_wide_wide() { uint3 a0 = uint3(1486550609, 1779244308, 1602148045); @@ -227,7 +227,7 @@ public static void uint3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_less_wide_scalar() { uint3 a0 = uint3(796797557, 670113454, 933579492); @@ -251,7 +251,7 @@ public static void uint3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_less_scalar_wide() { uint a0 = (186400299); @@ -275,7 +275,7 @@ public static void uint3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_greater_wide_wide() { uint3 a0 = uint3(2087717754, 1725569452, 1298066182); @@ -299,7 +299,7 @@ public static void uint3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_greater_wide_scalar() { uint3 a0 = uint3(1208626274, 239697208, 1979453345); @@ -323,7 +323,7 @@ public static void uint3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -347,7 +347,7 @@ public static void uint3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_less_equal_wide_wide() { uint3 a0 = uint3(154092149, 1515170149, 1083970332); @@ -371,7 +371,7 @@ public static void uint3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_less_equal_wide_scalar() { uint3 a0 = uint3(1479531977, 1427983411, 415250630); @@ -395,7 +395,7 @@ public static void uint3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -419,7 +419,7 @@ public static void uint3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_greater_equal_wide_wide() { uint3 a0 = uint3(8538378, 2131749726, 265427108); @@ -443,7 +443,7 @@ public static void uint3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_greater_equal_wide_scalar() { uint3 a0 = uint3(2049236663, 182691143, 634973382); @@ -467,7 +467,7 @@ public static void uint3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -491,7 +491,7 @@ public static void uint3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_add_wide_wide() { uint3 a0 = uint3(2135171378, 21433296, 1954723494); @@ -515,7 +515,7 @@ public static void uint3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_add_wide_scalar() { uint3 a0 = uint3(665815972, 1783729250, 1591678394); @@ -539,7 +539,7 @@ public static void uint3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_add_scalar_wide() { uint a0 = (359966320); @@ -563,7 +563,7 @@ public static void uint3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_sub_wide_wide() { uint3 a0 = uint3(1410318491, 1097280168, 1827039044); @@ -587,7 +587,7 @@ public static void uint3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_sub_wide_scalar() { uint3 a0 = uint3(1508669340, 1594795463, 266707545); @@ -611,7 +611,7 @@ public static void uint3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -635,7 +635,7 @@ public static void uint3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_mul_wide_wide() { uint3 a0 = uint3(61417577, 219585476, 1362520891); @@ -659,7 +659,7 @@ public static void uint3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_mul_wide_scalar() { uint3 a0 = uint3(871746615, 492532311, 570557670); @@ -683,7 +683,7 @@ public static void uint3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -707,7 +707,7 @@ public static void uint3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_div_wide_wide() { uint3 a0 = uint3(333171510, 858154903, 1181365836); @@ -731,7 +731,7 @@ public static void uint3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_div_wide_scalar() { uint3 a0 = uint3(1433072926, 1073958635, 1195142312); @@ -755,7 +755,7 @@ public static void uint3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_div_scalar_wide() { uint a0 = (519165704); @@ -779,7 +779,7 @@ public static void uint3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_mod_wide_wide() { uint3 a0 = uint3(258342924, 1454754891, 723352342); @@ -803,7 +803,7 @@ public static void uint3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_mod_wide_scalar() { uint3 a0 = uint3(560988938, 629524514, 767711194); @@ -827,7 +827,7 @@ public static void uint3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -851,7 +851,7 @@ public static void uint3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_plus() { uint3 a0 = uint3(195392567, 222719748, 1002351013); @@ -871,7 +871,7 @@ public static void uint3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_neg() { uint3 a0 = uint3(1385088677, 94114564, 1350664872); @@ -891,7 +891,7 @@ public static void uint3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_prefix_inc() { uint3 a0 = uint3(780471723, 954741756, 272723451); @@ -911,7 +911,7 @@ public static void uint3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_postfix_inc() { uint3 a0 = uint3(241865086, 2145821641, 1596166022); @@ -931,7 +931,7 @@ public static void uint3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_prefix_dec() { uint3 a0 = uint3(1331961415, 1612382200, 1401591249); @@ -951,7 +951,7 @@ public static void uint3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_postfix_dec() { uint3 a0 = uint3(1870005937, 1708534798, 704493460); @@ -971,7 +971,7 @@ public static void uint3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_bitwise_and_wide_wide() { uint3 a0 = uint3(1055241304, 859321394, 1088358961); @@ -995,7 +995,7 @@ public static void uint3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_bitwise_and_wide_scalar() { uint3 a0 = uint3(1513158868, 284695609, 734595037); @@ -1019,7 +1019,7 @@ public static void uint3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1043,7 +1043,7 @@ public static void uint3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_bitwise_or_wide_wide() { uint3 a0 = uint3(1920951869, 1750772852, 1420019191); @@ -1067,7 +1067,7 @@ public static void uint3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_bitwise_or_wide_scalar() { uint3 a0 = uint3(1295304853, 1307252624, 350194630); @@ -1091,7 +1091,7 @@ public static void uint3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1115,7 +1115,7 @@ public static void uint3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_bitwise_xor_wide_wide() { uint3 a0 = uint3(1843655608, 362425681, 640805534); @@ -1139,7 +1139,7 @@ public static void uint3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_bitwise_xor_wide_scalar() { uint3 a0 = uint3(169345668, 176087064, 2084362901); @@ -1163,7 +1163,7 @@ public static void uint3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1187,7 +1187,7 @@ public static void uint3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_left_shift() { uint3 a0 = uint3(1129100049, 829482269, 1571297368); @@ -1211,7 +1211,7 @@ public static void uint3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_right_shift() { uint3 a0 = uint3(809126085, 908563670, 763568837); @@ -1235,7 +1235,7 @@ public static void uint3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_operator_bitwise_not() { uint3 a0 = uint3(111796841, 603562399, 745091931); @@ -1255,7 +1255,7 @@ public static void uint3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_shuffle_result_1() { uint3 a = uint3(0, 1, 2); @@ -1269,7 +1269,7 @@ public static void uint3_shuffle_result_1() TestUtils.AreEqual((5), shuffle(a, b, ShuffleComponent.RightZ)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_shuffle_result_2() { uint3 a = uint3(0, 1, 2); @@ -1293,7 +1293,7 @@ public static void uint3_shuffle_result_2() TestUtils.AreEqual(uint2(1, 2), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftZ)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_shuffle_result_3() { uint3 a = uint3(0, 1, 2); @@ -1317,7 +1317,7 @@ public static void uint3_shuffle_result_3() TestUtils.AreEqual(uint3(4, 0, 5), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftX, ShuffleComponent.RightZ)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_shuffle_result_4() { uint3 a = uint3(0, 1, 2); @@ -1341,7 +1341,7 @@ public static void uint3_shuffle_result_4() TestUtils.AreEqual(uint4(2, 5, 0, 4), shuffle(a, b, ShuffleComponent.LeftZ, ShuffleComponent.RightZ, ShuffleComponent.LeftX, ShuffleComponent.RightY)); } - [TestCase] + [TestCase /* For player builds */] public static void uint3_EqualsObjectOverride() { TestUtils.IsFalse(new uint3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestUint3x2.gen.cs b/src/Tests/Tests/Shared/TestUint3x2.gen.cs index 106b90dc..71742df7 100644 --- a/src/Tests/Tests/Shared/TestUint3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint3x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_zero() { TestUtils.AreEqual(0u, uint3x2.zero.c0.x); @@ -26,7 +26,7 @@ public static void uint3x2_zero() TestUtils.AreEqual(0u, uint3x2.zero.c1.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_equal_wide_wide() { uint3x2 a0 = uint3x2(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098); @@ -50,7 +50,7 @@ public static void uint3x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_equal_wide_scalar() { uint3x2 a0 = uint3x2(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405); @@ -74,7 +74,7 @@ public static void uint3x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -98,7 +98,7 @@ public static void uint3x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_not_equal_wide_wide() { uint3x2 a0 = uint3x2(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892); @@ -122,7 +122,7 @@ public static void uint3x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_not_equal_wide_scalar() { uint3x2 a0 = uint3x2(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802); @@ -146,7 +146,7 @@ public static void uint3x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -170,7 +170,7 @@ public static void uint3x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_less_wide_wide() { uint3x2 a0 = uint3x2(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342); @@ -194,7 +194,7 @@ public static void uint3x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_less_wide_scalar() { uint3x2 a0 = uint3x2(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673); @@ -218,7 +218,7 @@ public static void uint3x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_less_scalar_wide() { uint a0 = (186400299); @@ -242,7 +242,7 @@ public static void uint3x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_greater_wide_wide() { uint3x2 a0 = uint3x2(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491); @@ -266,7 +266,7 @@ public static void uint3x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_greater_wide_scalar() { uint3x2 a0 = uint3x2(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635); @@ -290,7 +290,7 @@ public static void uint3x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -314,7 +314,7 @@ public static void uint3x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_less_equal_wide_wide() { uint3x2 a0 = uint3x2(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627); @@ -338,7 +338,7 @@ public static void uint3x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_less_equal_wide_scalar() { uint3x2 a0 = uint3x2(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632); @@ -362,7 +362,7 @@ public static void uint3x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -386,7 +386,7 @@ public static void uint3x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_greater_equal_wide_wide() { uint3x2 a0 = uint3x2(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564); @@ -410,7 +410,7 @@ public static void uint3x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_greater_equal_wide_scalar() { uint3x2 a0 = uint3x2(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469); @@ -434,7 +434,7 @@ public static void uint3x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -458,7 +458,7 @@ public static void uint3x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_add_wide_wide() { uint3x2 a0 = uint3x2(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995); @@ -482,7 +482,7 @@ public static void uint3x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_add_wide_scalar() { uint3x2 a0 = uint3x2(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732); @@ -506,7 +506,7 @@ public static void uint3x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_add_scalar_wide() { uint a0 = (359966320); @@ -530,7 +530,7 @@ public static void uint3x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_sub_wide_wide() { uint3x2 a0 = uint3x2(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868); @@ -554,7 +554,7 @@ public static void uint3x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_sub_wide_scalar() { uint3x2 a0 = uint3x2(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328); @@ -578,7 +578,7 @@ public static void uint3x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -602,7 +602,7 @@ public static void uint3x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_mul_wide_wide() { uint3x2 a0 = uint3x2(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871); @@ -626,7 +626,7 @@ public static void uint3x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_mul_wide_scalar() { uint3x2 a0 = uint3x2(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563); @@ -650,7 +650,7 @@ public static void uint3x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -674,7 +674,7 @@ public static void uint3x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_div_wide_wide() { uint3x2 a0 = uint3x2(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420); @@ -698,7 +698,7 @@ public static void uint3x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_div_wide_scalar() { uint3x2 a0 = uint3x2(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346); @@ -722,7 +722,7 @@ public static void uint3x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_div_scalar_wide() { uint a0 = (519165704); @@ -746,7 +746,7 @@ public static void uint3x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_mod_wide_wide() { uint3x2 a0 = uint3x2(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627); @@ -770,7 +770,7 @@ public static void uint3x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_mod_wide_scalar() { uint3x2 a0 = uint3x2(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846); @@ -794,7 +794,7 @@ public static void uint3x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -818,7 +818,7 @@ public static void uint3x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_plus() { uint3x2 a0 = uint3x2(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277); @@ -838,7 +838,7 @@ public static void uint3x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_neg() { uint3x2 a0 = uint3x2(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493); @@ -858,7 +858,7 @@ public static void uint3x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_prefix_inc() { uint3x2 a0 = uint3x2(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550); @@ -878,7 +878,7 @@ public static void uint3x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_postfix_inc() { uint3x2 a0 = uint3x2(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229); @@ -898,7 +898,7 @@ public static void uint3x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_prefix_dec() { uint3x2 a0 = uint3x2(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159); @@ -918,7 +918,7 @@ public static void uint3x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_postfix_dec() { uint3x2 a0 = uint3x2(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869); @@ -938,7 +938,7 @@ public static void uint3x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_bitwise_and_wide_wide() { uint3x2 a0 = uint3x2(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515); @@ -962,7 +962,7 @@ public static void uint3x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_bitwise_and_wide_scalar() { uint3x2 a0 = uint3x2(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838); @@ -986,7 +986,7 @@ public static void uint3x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1010,7 +1010,7 @@ public static void uint3x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_bitwise_or_wide_wide() { uint3x2 a0 = uint3x2(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930); @@ -1034,7 +1034,7 @@ public static void uint3x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_bitwise_or_wide_scalar() { uint3x2 a0 = uint3x2(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467); @@ -1058,7 +1058,7 @@ public static void uint3x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1082,7 +1082,7 @@ public static void uint3x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_bitwise_xor_wide_wide() { uint3x2 a0 = uint3x2(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850); @@ -1106,7 +1106,7 @@ public static void uint3x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_bitwise_xor_wide_scalar() { uint3x2 a0 = uint3x2(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661); @@ -1130,7 +1130,7 @@ public static void uint3x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1154,7 +1154,7 @@ public static void uint3x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_left_shift() { uint3x2 a0 = uint3x2(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593); @@ -1178,7 +1178,7 @@ public static void uint3x2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_right_shift() { uint3x2 a0 = uint3x2(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842); @@ -1202,7 +1202,7 @@ public static void uint3x2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x2_operator_bitwise_not() { uint3x2 a0 = uint3x2(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399); @@ -1222,7 +1222,7 @@ public static void uint3x2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void uint3x2_EqualsObjectOverride() { TestUtils.IsFalse(new uint3x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestUint3x3.gen.cs b/src/Tests/Tests/Shared/TestUint3x3.gen.cs index 5861b8a2..6e679bba 100644 --- a/src/Tests/Tests/Shared/TestUint3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint3x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_zero() { TestUtils.AreEqual(0u, uint3x3.zero.c0.x); @@ -29,7 +29,7 @@ public static void uint3x3_zero() TestUtils.AreEqual(0u, uint3x3.zero.c2.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_identity() { TestUtils.AreEqual(1u, uint3x3.identity.c0.x); @@ -43,7 +43,7 @@ public static void uint3x3_identity() TestUtils.AreEqual(1u, uint3x3.identity.c2.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_equal_wide_wide() { uint3x3 a0 = uint3x3(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367); @@ -67,7 +67,7 @@ public static void uint3x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_equal_wide_scalar() { uint3x3 a0 = uint3x3(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998); @@ -91,7 +91,7 @@ public static void uint3x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -115,7 +115,7 @@ public static void uint3x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_not_equal_wide_wide() { uint3x3 a0 = uint3x3(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678); @@ -139,7 +139,7 @@ public static void uint3x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_not_equal_wide_scalar() { uint3x3 a0 = uint3x3(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423); @@ -163,7 +163,7 @@ public static void uint3x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -187,7 +187,7 @@ public static void uint3x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_less_wide_wide() { uint3x3 a0 = uint3x3(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312); @@ -211,7 +211,7 @@ public static void uint3x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_less_wide_scalar() { uint3x3 a0 = uint3x3(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597); @@ -235,7 +235,7 @@ public static void uint3x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_less_scalar_wide() { uint a0 = (186400299); @@ -259,7 +259,7 @@ public static void uint3x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_greater_wide_wide() { uint3x3 a0 = uint3x3(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133); @@ -283,7 +283,7 @@ public static void uint3x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_greater_wide_scalar() { uint3x3 a0 = uint3x3(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855); @@ -307,7 +307,7 @@ public static void uint3x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -331,7 +331,7 @@ public static void uint3x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_less_equal_wide_wide() { uint3x3 a0 = uint3x3(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541); @@ -355,7 +355,7 @@ public static void uint3x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_less_equal_wide_scalar() { uint3x3 a0 = uint3x3(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375); @@ -379,7 +379,7 @@ public static void uint3x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -403,7 +403,7 @@ public static void uint3x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_greater_equal_wide_wide() { uint3x3 a0 = uint3x3(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826); @@ -427,7 +427,7 @@ public static void uint3x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_greater_equal_wide_scalar() { uint3x3 a0 = uint3x3(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669); @@ -451,7 +451,7 @@ public static void uint3x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -475,7 +475,7 @@ public static void uint3x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_add_wide_wide() { uint3x3 a0 = uint3x3(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600); @@ -499,7 +499,7 @@ public static void uint3x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_add_wide_scalar() { uint3x3 a0 = uint3x3(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008); @@ -523,7 +523,7 @@ public static void uint3x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_add_scalar_wide() { uint a0 = (359966320); @@ -547,7 +547,7 @@ public static void uint3x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_sub_wide_wide() { uint3x3 a0 = uint3x3(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315); @@ -571,7 +571,7 @@ public static void uint3x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_sub_wide_scalar() { uint3x3 a0 = uint3x3(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113); @@ -595,7 +595,7 @@ public static void uint3x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -619,7 +619,7 @@ public static void uint3x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_mul_wide_wide() { uint3x3 a0 = uint3x3(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583); @@ -643,7 +643,7 @@ public static void uint3x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_mul_wide_scalar() { uint3x3 a0 = uint3x3(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059); @@ -667,7 +667,7 @@ public static void uint3x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -691,7 +691,7 @@ public static void uint3x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_div_wide_wide() { uint3x3 a0 = uint3x3(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195); @@ -715,7 +715,7 @@ public static void uint3x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_div_wide_scalar() { uint3x3 a0 = uint3x3(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136); @@ -739,7 +739,7 @@ public static void uint3x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_div_scalar_wide() { uint a0 = (519165704); @@ -763,7 +763,7 @@ public static void uint3x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_mod_wide_wide() { uint3x3 a0 = uint3x3(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101); @@ -787,7 +787,7 @@ public static void uint3x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_mod_wide_scalar() { uint3x3 a0 = uint3x3(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144); @@ -811,7 +811,7 @@ public static void uint3x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -835,7 +835,7 @@ public static void uint3x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_plus() { uint3x3 a0 = uint3x3(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671); @@ -855,7 +855,7 @@ public static void uint3x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_neg() { uint3x3 a0 = uint3x3(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525); @@ -875,7 +875,7 @@ public static void uint3x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_prefix_inc() { uint3x3 a0 = uint3x3(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994); @@ -895,7 +895,7 @@ public static void uint3x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_postfix_inc() { uint3x3 a0 = uint3x3(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247); @@ -915,7 +915,7 @@ public static void uint3x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_prefix_dec() { uint3x3 a0 = uint3x3(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745); @@ -935,7 +935,7 @@ public static void uint3x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_postfix_dec() { uint3x3 a0 = uint3x3(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889); @@ -955,7 +955,7 @@ public static void uint3x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_bitwise_and_wide_wide() { uint3x3 a0 = uint3x3(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656); @@ -979,7 +979,7 @@ public static void uint3x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_bitwise_and_wide_scalar() { uint3x3 a0 = uint3x3(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263); @@ -1003,7 +1003,7 @@ public static void uint3x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1027,7 +1027,7 @@ public static void uint3x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_bitwise_or_wide_wide() { uint3x3 a0 = uint3x3(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869); @@ -1051,7 +1051,7 @@ public static void uint3x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_bitwise_or_wide_scalar() { uint3x3 a0 = uint3x3(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307); @@ -1075,7 +1075,7 @@ public static void uint3x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1099,7 +1099,7 @@ public static void uint3x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_bitwise_xor_wide_wide() { uint3x3 a0 = uint3x3(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251); @@ -1123,7 +1123,7 @@ public static void uint3x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_bitwise_xor_wide_scalar() { uint3x3 a0 = uint3x3(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873); @@ -1147,7 +1147,7 @@ public static void uint3x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1171,7 +1171,7 @@ public static void uint3x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_left_shift() { uint3x3 a0 = uint3x3(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727); @@ -1195,7 +1195,7 @@ public static void uint3x3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_right_shift() { uint3x3 a0 = uint3x3(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393); @@ -1219,7 +1219,7 @@ public static void uint3x3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x3_operator_bitwise_not() { uint3x3 a0 = uint3x3(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628); @@ -1239,7 +1239,7 @@ public static void uint3x3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void uint3x3_EqualsObjectOverride() { TestUtils.IsFalse(new uint3x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestUint3x4.gen.cs b/src/Tests/Tests/Shared/TestUint3x4.gen.cs index 9832a2a7..00c414a7 100644 --- a/src/Tests/Tests/Shared/TestUint3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint3x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_zero() { TestUtils.AreEqual(0u, uint3x4.zero.c0.x); @@ -32,7 +32,7 @@ public static void uint3x4_zero() TestUtils.AreEqual(0u, uint3x4.zero.c3.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_equal_wide_wide() { uint3x4 a0 = uint3x4(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367, 727143393, 2061243891, 184669837); @@ -56,7 +56,7 @@ public static void uint3x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_equal_wide_scalar() { uint3x4 a0 = uint3x4(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998, 691955848, 1926262965, 1851546137); @@ -80,7 +80,7 @@ public static void uint3x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -104,7 +104,7 @@ public static void uint3x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_not_equal_wide_wide() { uint3x4 a0 = uint3x4(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678, 13079405, 1413841590, 1076166545); @@ -128,7 +128,7 @@ public static void uint3x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_not_equal_wide_scalar() { uint3x4 a0 = uint3x4(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423, 484398043, 506946952, 226568494); @@ -152,7 +152,7 @@ public static void uint3x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -176,7 +176,7 @@ public static void uint3x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_less_wide_wide() { uint3x4 a0 = uint3x4(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312, 337757077, 1081797900, 1336745069); @@ -200,7 +200,7 @@ public static void uint3x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_less_wide_scalar() { uint3x4 a0 = uint3x4(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597, 1546212312, 1718582899, 1648393417); @@ -224,7 +224,7 @@ public static void uint3x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_less_scalar_wide() { uint a0 = (186400299); @@ -248,7 +248,7 @@ public static void uint3x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_greater_wide_wide() { uint3x4 a0 = uint3x4(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133, 1744374599, 821751047, 467646903); @@ -272,7 +272,7 @@ public static void uint3x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_greater_wide_scalar() { uint3x4 a0 = uint3x4(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855, 1433540517, 566635217, 1773305960); @@ -296,7 +296,7 @@ public static void uint3x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -320,7 +320,7 @@ public static void uint3x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_less_equal_wide_wide() { uint3x4 a0 = uint3x4(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541, 457043352, 1123282035, 1001842946); @@ -344,7 +344,7 @@ public static void uint3x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_less_equal_wide_scalar() { uint3x4 a0 = uint3x4(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375, 509818792, 1910488590, 85452501); @@ -368,7 +368,7 @@ public static void uint3x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -392,7 +392,7 @@ public static void uint3x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_greater_equal_wide_wide() { uint3x4 a0 = uint3x4(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826, 631221455, 1456286159, 961342752); @@ -416,7 +416,7 @@ public static void uint3x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_greater_equal_wide_scalar() { uint3x4 a0 = uint3x4(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669, 411667685, 1998610091, 4652390); @@ -440,7 +440,7 @@ public static void uint3x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -464,7 +464,7 @@ public static void uint3x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_add_wide_wide() { uint3x4 a0 = uint3x4(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600, 976898058, 1915056423, 121374462); @@ -488,7 +488,7 @@ public static void uint3x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_add_wide_scalar() { uint3x4 a0 = uint3x4(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008, 1246759684, 1088001167, 57252642); @@ -512,7 +512,7 @@ public static void uint3x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_add_scalar_wide() { uint a0 = (359966320); @@ -536,7 +536,7 @@ public static void uint3x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_sub_wide_wide() { uint3x4 a0 = uint3x4(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315, 2011295463, 48079003, 591379285); @@ -560,7 +560,7 @@ public static void uint3x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_sub_wide_scalar() { uint3x4 a0 = uint3x4(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113, 1108005498, 304369206, 999244508); @@ -584,7 +584,7 @@ public static void uint3x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -608,7 +608,7 @@ public static void uint3x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_mul_wide_wide() { uint3x4 a0 = uint3x4(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583, 1835691886, 385626539, 85934842); @@ -632,7 +632,7 @@ public static void uint3x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_mul_wide_scalar() { uint3x4 a0 = uint3x4(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059, 1186560810, 1584938026, 1357601203); @@ -656,7 +656,7 @@ public static void uint3x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -680,7 +680,7 @@ public static void uint3x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_div_wide_wide() { uint3x4 a0 = uint3x4(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195, 166625280, 1493729000, 1831739736); @@ -704,7 +704,7 @@ public static void uint3x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_div_wide_scalar() { uint3x4 a0 = uint3x4(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136, 25493909, 1196815948, 123300377); @@ -728,7 +728,7 @@ public static void uint3x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_div_scalar_wide() { uint a0 = (519165704); @@ -752,7 +752,7 @@ public static void uint3x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_mod_wide_wide() { uint3x4 a0 = uint3x4(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101, 17598216, 1474345080, 1681376293); @@ -776,7 +776,7 @@ public static void uint3x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_mod_wide_scalar() { uint3x4 a0 = uint3x4(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144, 1287035793, 1743722161, 475209785); @@ -800,7 +800,7 @@ public static void uint3x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -824,7 +824,7 @@ public static void uint3x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_plus() { uint3x4 a0 = uint3x4(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671, 1084131995, 195779102, 2131702223); @@ -844,7 +844,7 @@ public static void uint3x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_neg() { uint3x4 a0 = uint3x4(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525, 270503114, 1928771252, 1427605822); @@ -864,7 +864,7 @@ public static void uint3x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_prefix_inc() { uint3x4 a0 = uint3x4(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994, 1915989169, 1348278302, 129540735); @@ -884,7 +884,7 @@ public static void uint3x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_postfix_inc() { uint3x4 a0 = uint3x4(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247, 1384002775, 389844650, 1159795446); @@ -904,7 +904,7 @@ public static void uint3x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_prefix_dec() { uint3x4 a0 = uint3x4(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745, 2059077641, 1169239112, 1862369220); @@ -924,7 +924,7 @@ public static void uint3x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_postfix_dec() { uint3x4 a0 = uint3x4(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889, 862428933, 1401191870, 2080259851); @@ -944,7 +944,7 @@ public static void uint3x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_bitwise_and_wide_wide() { uint3x4 a0 = uint3x4(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656, 53199569, 1752363533, 1303061302); @@ -968,7 +968,7 @@ public static void uint3x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_bitwise_and_wide_scalar() { uint3x4 a0 = uint3x4(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263, 327392481, 1619794917, 2143619546); @@ -992,7 +992,7 @@ public static void uint3x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1016,7 +1016,7 @@ public static void uint3x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_bitwise_or_wide_wide() { uint3x4 a0 = uint3x4(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869, 1912038362, 1569990624, 1490718227); @@ -1040,7 +1040,7 @@ public static void uint3x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_bitwise_or_wide_scalar() { uint3x4 a0 = uint3x4(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307, 1050875188, 341855232, 1317039676); @@ -1064,7 +1064,7 @@ public static void uint3x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1088,7 +1088,7 @@ public static void uint3x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_bitwise_xor_wide_wide() { uint3x4 a0 = uint3x4(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251, 230477768, 1103646442, 1503102919); @@ -1112,7 +1112,7 @@ public static void uint3x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_bitwise_xor_wide_scalar() { uint3x4 a0 = uint3x4(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873, 835837496, 954341348, 1464576786); @@ -1136,7 +1136,7 @@ public static void uint3x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1160,7 +1160,7 @@ public static void uint3x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_left_shift() { uint3x4 a0 = uint3x4(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727, 849916599, 1271350845, 108441902); @@ -1184,7 +1184,7 @@ public static void uint3x4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_right_shift() { uint3x4 a0 = uint3x4(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393, 1923166649, 102096936, 400863878); @@ -1208,7 +1208,7 @@ public static void uint3x4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3x4_operator_bitwise_not() { uint3x4 a0 = uint3x4(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628, 787710759, 875964607, 96456785); @@ -1228,7 +1228,7 @@ public static void uint3x4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void uint3x4_EqualsObjectOverride() { TestUtils.IsFalse(new uint3x4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestUint4.gen.cs b/src/Tests/Tests/Shared/TestUint4.gen.cs index 49e0be49..833012cd 100644 --- a/src/Tests/Tests/Shared/TestUint4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_zero() { TestUtils.AreEqual(0u, uint4.zero.x); @@ -24,7 +24,7 @@ public static void uint4_zero() TestUtils.AreEqual(0u, uint4.zero.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_constructor() { uint4 a = new uint4(1, 2, 3, 4); @@ -34,7 +34,7 @@ public static void uint4_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_scalar_constructor() { uint4 a = new uint4(17u); @@ -44,7 +44,7 @@ public static void uint4_scalar_constructor() TestUtils.AreEqual(17u, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_static_constructor() { uint4 a = uint4(1, 2, 3, 4); @@ -54,7 +54,7 @@ public static void uint4_static_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_static_scalar_constructor() { uint4 a = uint4(17u); @@ -64,7 +64,7 @@ public static void uint4_static_scalar_constructor() TestUtils.AreEqual(17u, a.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_equal_wide_wide() { uint4 a0 = uint4(2105871082, 35218899, 1550755093, 764676020); @@ -88,7 +88,7 @@ public static void uint4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_equal_wide_scalar() { uint4 a0 = uint4(437822262, 2020661134, 541786900, 853113810); @@ -112,7 +112,7 @@ public static void uint4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -136,7 +136,7 @@ public static void uint4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_not_equal_wide_wide() { uint4 a0 = uint4(1977284100, 1293292704, 1547283851, 422428953); @@ -160,7 +160,7 @@ public static void uint4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_not_equal_wide_scalar() { uint4 a0 = uint4(1038269360, 1427812625, 103361237, 1347017023); @@ -184,7 +184,7 @@ public static void uint4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -208,7 +208,7 @@ public static void uint4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_less_wide_wide() { uint4 a0 = uint4(1486550609, 1779244308, 1602148045, 1614085440); @@ -232,7 +232,7 @@ public static void uint4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_less_wide_scalar() { uint4 a0 = uint4(796797557, 670113454, 933579492, 278884514); @@ -256,7 +256,7 @@ public static void uint4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_less_scalar_wide() { uint a0 = (186400299); @@ -280,7 +280,7 @@ public static void uint4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_greater_wide_wide() { uint4 a0 = uint4(2087717754, 1725569452, 1298066182, 1693943616); @@ -304,7 +304,7 @@ public static void uint4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_greater_wide_scalar() { uint4 a0 = uint4(1208626274, 239697208, 1979453345, 1253474001); @@ -328,7 +328,7 @@ public static void uint4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -352,7 +352,7 @@ public static void uint4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_less_equal_wide_wide() { uint4 a0 = uint4(154092149, 1515170149, 1083970332, 785807178); @@ -376,7 +376,7 @@ public static void uint4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_less_equal_wide_scalar() { uint4 a0 = uint4(1479531977, 1427983411, 415250630, 1245345407); @@ -400,7 +400,7 @@ public static void uint4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -424,7 +424,7 @@ public static void uint4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_greater_equal_wide_wide() { uint4 a0 = uint4(8538378, 2131749726, 265427108, 523609761); @@ -448,7 +448,7 @@ public static void uint4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_greater_equal_wide_scalar() { uint4 a0 = uint4(2049236663, 182691143, 634973382, 1197012109); @@ -472,7 +472,7 @@ public static void uint4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -496,7 +496,7 @@ public static void uint4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_add_wide_wide() { uint4 a0 = uint4(2135171378, 21433296, 1954723494, 683604307); @@ -520,7 +520,7 @@ public static void uint4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_add_wide_scalar() { uint4 a0 = uint4(665815972, 1783729250, 1591678394, 1284528538); @@ -544,7 +544,7 @@ public static void uint4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_add_scalar_wide() { uint a0 = (359966320); @@ -568,7 +568,7 @@ public static void uint4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_sub_wide_wide() { uint4 a0 = uint4(1410318491, 1097280168, 1827039044, 28881338); @@ -592,7 +592,7 @@ public static void uint4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_sub_wide_scalar() { uint4 a0 = uint4(1508669340, 1594795463, 266707545, 643102647); @@ -616,7 +616,7 @@ public static void uint4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -640,7 +640,7 @@ public static void uint4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_mul_wide_wide() { uint4 a0 = uint4(61417577, 219585476, 1362520891, 1511084277); @@ -664,7 +664,7 @@ public static void uint4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_mul_wide_scalar() { uint4 a0 = uint4(871746615, 492532311, 570557670, 2142306629); @@ -688,7 +688,7 @@ public static void uint4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -712,7 +712,7 @@ public static void uint4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_div_wide_wide() { uint4 a0 = uint4(333171510, 858154903, 1181365836, 671357749); @@ -736,7 +736,7 @@ public static void uint4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_div_wide_scalar() { uint4 a0 = uint4(1433072926, 1073958635, 1195142312, 536596719); @@ -760,7 +760,7 @@ public static void uint4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_div_scalar_wide() { uint a0 = (519165704); @@ -784,7 +784,7 @@ public static void uint4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_mod_wide_wide() { uint4 a0 = uint4(258342924, 1454754891, 723352342, 1981431473); @@ -808,7 +808,7 @@ public static void uint4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_mod_wide_scalar() { uint4 a0 = uint4(560988938, 629524514, 767711194, 434281967); @@ -832,7 +832,7 @@ public static void uint4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -856,7 +856,7 @@ public static void uint4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_plus() { uint4 a0 = uint4(195392567, 222719748, 1002351013, 1570765263); @@ -876,7 +876,7 @@ public static void uint4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_neg() { uint4 a0 = uint4(1385088677, 94114564, 1350664872, 1458616659); @@ -896,7 +896,7 @@ public static void uint4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_prefix_inc() { uint4 a0 = uint4(780471723, 954741756, 272723451, 2142862245); @@ -916,7 +916,7 @@ public static void uint4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_postfix_inc() { uint4 a0 = uint4(241865086, 2145821641, 1596166022, 803592338); @@ -936,7 +936,7 @@ public static void uint4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_prefix_dec() { uint4 a0 = uint4(1331961415, 1612382200, 1401591249, 2042075388); @@ -956,7 +956,7 @@ public static void uint4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_postfix_dec() { uint4 a0 = uint4(1870005937, 1708534798, 704493460, 462940703); @@ -976,7 +976,7 @@ public static void uint4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_bitwise_and_wide_wide() { uint4 a0 = uint4(1055241304, 859321394, 1088358961, 2090949513); @@ -1000,7 +1000,7 @@ public static void uint4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_bitwise_and_wide_scalar() { uint4 a0 = uint4(1513158868, 284695609, 734595037, 1566510707); @@ -1024,7 +1024,7 @@ public static void uint4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1048,7 +1048,7 @@ public static void uint4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_bitwise_or_wide_wide() { uint4 a0 = uint4(1920951869, 1750772852, 1420019191, 732977093); @@ -1072,7 +1072,7 @@ public static void uint4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_bitwise_or_wide_scalar() { uint4 a0 = uint4(1295304853, 1307252624, 350194630, 1128063578); @@ -1096,7 +1096,7 @@ public static void uint4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1120,7 +1120,7 @@ public static void uint4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_bitwise_xor_wide_wide() { uint4 a0 = uint4(1843655608, 362425681, 640805534, 1342040268); @@ -1144,7 +1144,7 @@ public static void uint4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_bitwise_xor_wide_scalar() { uint4 a0 = uint4(169345668, 176087064, 2084362901, 1663924004); @@ -1168,7 +1168,7 @@ public static void uint4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1192,7 +1192,7 @@ public static void uint4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_left_shift() { uint4 a0 = uint4(1129100049, 829482269, 1571297368, 443753193); @@ -1216,7 +1216,7 @@ public static void uint4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_right_shift() { uint4 a0 = uint4(809126085, 908563670, 763568837, 1986717290); @@ -1240,7 +1240,7 @@ public static void uint4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_operator_bitwise_not() { uint4 a0 = uint4(111796841, 603562399, 745091931, 853183268); @@ -1260,7 +1260,7 @@ public static void uint4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_shuffle_result_1() { uint4 a = uint4(0, 1, 2, 3); @@ -1276,7 +1276,7 @@ public static void uint4_shuffle_result_1() TestUtils.AreEqual((7), shuffle(a, b, ShuffleComponent.RightW)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_shuffle_result_2() { uint4 a = uint4(0, 1, 2, 3); @@ -1300,7 +1300,7 @@ public static void uint4_shuffle_result_2() TestUtils.AreEqual(uint2(1, 3), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftW)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_shuffle_result_3() { uint4 a = uint4(0, 1, 2, 3); @@ -1324,7 +1324,7 @@ public static void uint4_shuffle_result_3() TestUtils.AreEqual(uint3(5, 1, 7), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.RightW)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_shuffle_result_4() { uint4 a = uint4(0, 1, 2, 3); @@ -1348,7 +1348,7 @@ public static void uint4_shuffle_result_4() TestUtils.AreEqual(uint4(3, 7, 1, 5), shuffle(a, b, ShuffleComponent.LeftW, ShuffleComponent.RightW, ShuffleComponent.LeftY, ShuffleComponent.RightY)); } - [TestCase] + [TestCase /* For player builds */] public static void uint4_EqualsObjectOverride() { TestUtils.IsFalse(new uint4().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestUint4x2.gen.cs b/src/Tests/Tests/Shared/TestUint4x2.gen.cs index 4cf1fc14..9d2bba1f 100644 --- a/src/Tests/Tests/Shared/TestUint4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint4x2 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_zero() { TestUtils.AreEqual(0u, uint4x2.zero.c0.x); @@ -28,7 +28,7 @@ public static void uint4x2_zero() TestUtils.AreEqual(0u, uint4x2.zero.c1.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_equal_wide_wide() { uint4x2 a0 = uint4x2(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316); @@ -52,7 +52,7 @@ public static void uint4x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_equal_wide_scalar() { uint4x2 a0 = uint4x2(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849); @@ -76,7 +76,7 @@ public static void uint4x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -100,7 +100,7 @@ public static void uint4x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_not_equal_wide_wide() { uint4x2 a0 = uint4x2(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074); @@ -124,7 +124,7 @@ public static void uint4x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_not_equal_wide_scalar() { uint4x2 a0 = uint4x2(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717); @@ -148,7 +148,7 @@ public static void uint4x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -172,7 +172,7 @@ public static void uint4x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_less_wide_wide() { uint4x2 a0 = uint4x2(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431); @@ -196,7 +196,7 @@ public static void uint4x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_less_wide_scalar() { uint4x2 a0 = uint4x2(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600); @@ -220,7 +220,7 @@ public static void uint4x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_less_scalar_wide() { uint a0 = (186400299); @@ -244,7 +244,7 @@ public static void uint4x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_greater_wide_wide() { uint4x2 a0 = uint4x2(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508); @@ -268,7 +268,7 @@ public static void uint4x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_greater_wide_scalar() { uint4x2 a0 = uint4x2(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098); @@ -292,7 +292,7 @@ public static void uint4x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -316,7 +316,7 @@ public static void uint4x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_less_equal_wide_wide() { uint4x2 a0 = uint4x2(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725); @@ -340,7 +340,7 @@ public static void uint4x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_less_equal_wide_scalar() { uint4x2 a0 = uint4x2(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307); @@ -364,7 +364,7 @@ public static void uint4x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -388,7 +388,7 @@ public static void uint4x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_greater_equal_wide_wide() { uint4x2 a0 = uint4x2(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970); @@ -412,7 +412,7 @@ public static void uint4x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_greater_equal_wide_scalar() { uint4x2 a0 = uint4x2(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187); @@ -436,7 +436,7 @@ public static void uint4x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -460,7 +460,7 @@ public static void uint4x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_add_wide_wide() { uint4x2 a0 = uint4x2(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062); @@ -484,7 +484,7 @@ public static void uint4x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_add_wide_scalar() { uint4x2 a0 = uint4x2(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017); @@ -508,7 +508,7 @@ public static void uint4x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_add_scalar_wide() { uint a0 = (359966320); @@ -532,7 +532,7 @@ public static void uint4x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_sub_wide_wide() { uint4x2 a0 = uint4x2(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215); @@ -556,7 +556,7 @@ public static void uint4x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_sub_wide_scalar() { uint4x2 a0 = uint4x2(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511); @@ -580,7 +580,7 @@ public static void uint4x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -604,7 +604,7 @@ public static void uint4x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_mul_wide_wide() { uint4x2 a0 = uint4x2(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644); @@ -628,7 +628,7 @@ public static void uint4x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_mul_wide_scalar() { uint4x2 a0 = uint4x2(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514); @@ -652,7 +652,7 @@ public static void uint4x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -676,7 +676,7 @@ public static void uint4x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_div_wide_wide() { uint4x2 a0 = uint4x2(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814); @@ -700,7 +700,7 @@ public static void uint4x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_div_wide_scalar() { uint4x2 a0 = uint4x2(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670); @@ -724,7 +724,7 @@ public static void uint4x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_div_scalar_wide() { uint a0 = (519165704); @@ -748,7 +748,7 @@ public static void uint4x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_mod_wide_wide() { uint4x2 a0 = uint4x2(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004); @@ -772,7 +772,7 @@ public static void uint4x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_mod_wide_scalar() { uint4x2 a0 = uint4x2(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916); @@ -796,7 +796,7 @@ public static void uint4x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -820,7 +820,7 @@ public static void uint4x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_plus() { uint4x2 a0 = uint4x2(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785); @@ -840,7 +840,7 @@ public static void uint4x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_neg() { uint4x2 a0 = uint4x2(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961); @@ -860,7 +860,7 @@ public static void uint4x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_prefix_inc() { uint4x2 a0 = uint4x2(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162); @@ -880,7 +880,7 @@ public static void uint4x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_postfix_inc() { uint4x2 a0 = uint4x2(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244); @@ -900,7 +900,7 @@ public static void uint4x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_prefix_dec() { uint4x2 a0 = uint4x2(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664); @@ -920,7 +920,7 @@ public static void uint4x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_postfix_dec() { uint4x2 a0 = uint4x2(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351); @@ -940,7 +940,7 @@ public static void uint4x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_bitwise_and_wide_wide() { uint4x2 a0 = uint4x2(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753); @@ -964,7 +964,7 @@ public static void uint4x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_bitwise_and_wide_scalar() { uint4x2 a0 = uint4x2(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908); @@ -988,7 +988,7 @@ public static void uint4x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1012,7 +1012,7 @@ public static void uint4x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_bitwise_or_wide_wide() { uint4x2 a0 = uint4x2(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323); @@ -1036,7 +1036,7 @@ public static void uint4x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_bitwise_or_wide_scalar() { uint4x2 a0 = uint4x2(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350); @@ -1060,7 +1060,7 @@ public static void uint4x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1084,7 +1084,7 @@ public static void uint4x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_bitwise_xor_wide_wide() { uint4x2 a0 = uint4x2(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658); @@ -1108,7 +1108,7 @@ public static void uint4x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_bitwise_xor_wide_scalar() { uint4x2 a0 = uint4x2(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783); @@ -1132,7 +1132,7 @@ public static void uint4x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1156,7 +1156,7 @@ public static void uint4x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_left_shift() { uint4x2 a0 = uint4x2(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862); @@ -1180,7 +1180,7 @@ public static void uint4x2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_right_shift() { uint4x2 a0 = uint4x2(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632); @@ -1204,7 +1204,7 @@ public static void uint4x2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x2_operator_bitwise_not() { uint4x2 a0 = uint4x2(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135); @@ -1224,7 +1224,7 @@ public static void uint4x2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void uint4x2_EqualsObjectOverride() { TestUtils.IsFalse(new uint4x2().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestUint4x3.gen.cs b/src/Tests/Tests/Shared/TestUint4x3.gen.cs index 0bcde5e9..bc2aba8a 100644 --- a/src/Tests/Tests/Shared/TestUint4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint4x3 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_zero() { TestUtils.AreEqual(0u, uint4x3.zero.c0.x); @@ -32,7 +32,7 @@ public static void uint4x3_zero() TestUtils.AreEqual(0u, uint4x3.zero.c2.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_equal_wide_wide() { uint4x3 a0 = uint4x3(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367, 727143393, 2061243891, 184669837); @@ -56,7 +56,7 @@ public static void uint4x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_equal_wide_scalar() { uint4x3 a0 = uint4x3(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998, 691955848, 1926262965, 1851546137); @@ -80,7 +80,7 @@ public static void uint4x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -104,7 +104,7 @@ public static void uint4x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_not_equal_wide_wide() { uint4x3 a0 = uint4x3(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678, 13079405, 1413841590, 1076166545); @@ -128,7 +128,7 @@ public static void uint4x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_not_equal_wide_scalar() { uint4x3 a0 = uint4x3(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423, 484398043, 506946952, 226568494); @@ -152,7 +152,7 @@ public static void uint4x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -176,7 +176,7 @@ public static void uint4x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_less_wide_wide() { uint4x3 a0 = uint4x3(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312, 337757077, 1081797900, 1336745069); @@ -200,7 +200,7 @@ public static void uint4x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_less_wide_scalar() { uint4x3 a0 = uint4x3(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597, 1546212312, 1718582899, 1648393417); @@ -224,7 +224,7 @@ public static void uint4x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_less_scalar_wide() { uint a0 = (186400299); @@ -248,7 +248,7 @@ public static void uint4x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_greater_wide_wide() { uint4x3 a0 = uint4x3(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133, 1744374599, 821751047, 467646903); @@ -272,7 +272,7 @@ public static void uint4x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_greater_wide_scalar() { uint4x3 a0 = uint4x3(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855, 1433540517, 566635217, 1773305960); @@ -296,7 +296,7 @@ public static void uint4x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -320,7 +320,7 @@ public static void uint4x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_less_equal_wide_wide() { uint4x3 a0 = uint4x3(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541, 457043352, 1123282035, 1001842946); @@ -344,7 +344,7 @@ public static void uint4x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_less_equal_wide_scalar() { uint4x3 a0 = uint4x3(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375, 509818792, 1910488590, 85452501); @@ -368,7 +368,7 @@ public static void uint4x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -392,7 +392,7 @@ public static void uint4x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_greater_equal_wide_wide() { uint4x3 a0 = uint4x3(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826, 631221455, 1456286159, 961342752); @@ -416,7 +416,7 @@ public static void uint4x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_greater_equal_wide_scalar() { uint4x3 a0 = uint4x3(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669, 411667685, 1998610091, 4652390); @@ -440,7 +440,7 @@ public static void uint4x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -464,7 +464,7 @@ public static void uint4x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_add_wide_wide() { uint4x3 a0 = uint4x3(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600, 976898058, 1915056423, 121374462); @@ -488,7 +488,7 @@ public static void uint4x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_add_wide_scalar() { uint4x3 a0 = uint4x3(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008, 1246759684, 1088001167, 57252642); @@ -512,7 +512,7 @@ public static void uint4x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_add_scalar_wide() { uint a0 = (359966320); @@ -536,7 +536,7 @@ public static void uint4x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_sub_wide_wide() { uint4x3 a0 = uint4x3(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315, 2011295463, 48079003, 591379285); @@ -560,7 +560,7 @@ public static void uint4x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_sub_wide_scalar() { uint4x3 a0 = uint4x3(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113, 1108005498, 304369206, 999244508); @@ -584,7 +584,7 @@ public static void uint4x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -608,7 +608,7 @@ public static void uint4x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_mul_wide_wide() { uint4x3 a0 = uint4x3(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583, 1835691886, 385626539, 85934842); @@ -632,7 +632,7 @@ public static void uint4x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_mul_wide_scalar() { uint4x3 a0 = uint4x3(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059, 1186560810, 1584938026, 1357601203); @@ -656,7 +656,7 @@ public static void uint4x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -680,7 +680,7 @@ public static void uint4x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_div_wide_wide() { uint4x3 a0 = uint4x3(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195, 166625280, 1493729000, 1831739736); @@ -704,7 +704,7 @@ public static void uint4x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_div_wide_scalar() { uint4x3 a0 = uint4x3(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136, 25493909, 1196815948, 123300377); @@ -728,7 +728,7 @@ public static void uint4x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_div_scalar_wide() { uint a0 = (519165704); @@ -752,7 +752,7 @@ public static void uint4x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_mod_wide_wide() { uint4x3 a0 = uint4x3(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101, 17598216, 1474345080, 1681376293); @@ -776,7 +776,7 @@ public static void uint4x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_mod_wide_scalar() { uint4x3 a0 = uint4x3(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144, 1287035793, 1743722161, 475209785); @@ -800,7 +800,7 @@ public static void uint4x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -824,7 +824,7 @@ public static void uint4x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_plus() { uint4x3 a0 = uint4x3(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671, 1084131995, 195779102, 2131702223); @@ -844,7 +844,7 @@ public static void uint4x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_neg() { uint4x3 a0 = uint4x3(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525, 270503114, 1928771252, 1427605822); @@ -864,7 +864,7 @@ public static void uint4x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_prefix_inc() { uint4x3 a0 = uint4x3(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994, 1915989169, 1348278302, 129540735); @@ -884,7 +884,7 @@ public static void uint4x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_postfix_inc() { uint4x3 a0 = uint4x3(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247, 1384002775, 389844650, 1159795446); @@ -904,7 +904,7 @@ public static void uint4x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_prefix_dec() { uint4x3 a0 = uint4x3(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745, 2059077641, 1169239112, 1862369220); @@ -924,7 +924,7 @@ public static void uint4x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_postfix_dec() { uint4x3 a0 = uint4x3(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889, 862428933, 1401191870, 2080259851); @@ -944,7 +944,7 @@ public static void uint4x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_bitwise_and_wide_wide() { uint4x3 a0 = uint4x3(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656, 53199569, 1752363533, 1303061302); @@ -968,7 +968,7 @@ public static void uint4x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_bitwise_and_wide_scalar() { uint4x3 a0 = uint4x3(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263, 327392481, 1619794917, 2143619546); @@ -992,7 +992,7 @@ public static void uint4x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1016,7 +1016,7 @@ public static void uint4x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_bitwise_or_wide_wide() { uint4x3 a0 = uint4x3(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869, 1912038362, 1569990624, 1490718227); @@ -1040,7 +1040,7 @@ public static void uint4x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_bitwise_or_wide_scalar() { uint4x3 a0 = uint4x3(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307, 1050875188, 341855232, 1317039676); @@ -1064,7 +1064,7 @@ public static void uint4x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1088,7 +1088,7 @@ public static void uint4x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_bitwise_xor_wide_wide() { uint4x3 a0 = uint4x3(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251, 230477768, 1103646442, 1503102919); @@ -1112,7 +1112,7 @@ public static void uint4x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_bitwise_xor_wide_scalar() { uint4x3 a0 = uint4x3(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873, 835837496, 954341348, 1464576786); @@ -1136,7 +1136,7 @@ public static void uint4x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1160,7 +1160,7 @@ public static void uint4x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_left_shift() { uint4x3 a0 = uint4x3(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727, 849916599, 1271350845, 108441902); @@ -1184,7 +1184,7 @@ public static void uint4x3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_right_shift() { uint4x3 a0 = uint4x3(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393, 1923166649, 102096936, 400863878); @@ -1208,7 +1208,7 @@ public static void uint4x3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x3_operator_bitwise_not() { uint4x3 a0 = uint4x3(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628, 787710759, 875964607, 96456785); @@ -1228,7 +1228,7 @@ public static void uint4x3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void uint4x3_EqualsObjectOverride() { TestUtils.IsFalse(new uint4x3().Equals((object)new int())); diff --git a/src/Tests/Tests/Shared/TestUint4x4.gen.cs b/src/Tests/Tests/Shared/TestUint4x4.gen.cs index 67f34ee1..03234c47 100644 --- a/src/Tests/Tests/Shared/TestUint4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint4x4 { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_zero() { TestUtils.AreEqual(0u, uint4x4.zero.c0.x); @@ -36,7 +36,7 @@ public static void uint4x4_zero() TestUtils.AreEqual(0u, uint4x4.zero.c3.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_identity() { TestUtils.AreEqual(1u, uint4x4.identity.c0.x); @@ -57,7 +57,7 @@ public static void uint4x4_identity() TestUtils.AreEqual(1u, uint4x4.identity.c3.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_equal_wide_wide() { uint4x4 a0 = uint4x4(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367, 727143393, 2061243891, 184669837, 1303661760, 2044073738, 370395888, 1822916805); @@ -81,7 +81,7 @@ public static void uint4x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_equal_wide_scalar() { uint4x4 a0 = uint4x4(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998, 691955848, 1926262965, 1851546137, 712957637, 2028784869, 1049962241, 1836975611); @@ -105,7 +105,7 @@ public static void uint4x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -129,7 +129,7 @@ public static void uint4x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_not_equal_wide_wide() { uint4x4 a0 = uint4x4(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678, 13079405, 1413841590, 1076166545, 1211445174, 1289303469, 1436402489, 1129570126); @@ -153,7 +153,7 @@ public static void uint4x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_not_equal_wide_scalar() { uint4x4 a0 = uint4x4(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423, 484398043, 506946952, 226568494, 507918242, 1702162286, 923269270, 166187260); @@ -177,7 +177,7 @@ public static void uint4x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -201,7 +201,7 @@ public static void uint4x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_less_wide_wide() { uint4x4 a0 = uint4x4(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312, 337757077, 1081797900, 1336745069, 840685445, 1220554047, 2013681746, 192965012); @@ -225,7 +225,7 @@ public static void uint4x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_less_wide_scalar() { uint4x4 a0 = uint4x4(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597, 1546212312, 1718582899, 1648393417, 1857132231, 1909506562, 1294006045, 952084157); @@ -249,7 +249,7 @@ public static void uint4x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_less_scalar_wide() { uint a0 = (186400299); @@ -273,7 +273,7 @@ public static void uint4x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_greater_wide_wide() { uint4x4 a0 = uint4x4(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133, 1744374599, 821751047, 467646903, 2029731638, 1377214212, 1207816926, 474621063); @@ -297,7 +297,7 @@ public static void uint4x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_greater_wide_scalar() { uint4x4 a0 = uint4x4(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855, 1433540517, 566635217, 1773305960, 1850273578, 206147145, 325913453, 333381537); @@ -321,7 +321,7 @@ public static void uint4x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -345,7 +345,7 @@ public static void uint4x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_less_equal_wide_wide() { uint4x4 a0 = uint4x4(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541, 457043352, 1123282035, 1001842946, 1387761992, 195272789, 659549000, 888761458); @@ -369,7 +369,7 @@ public static void uint4x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_less_equal_wide_scalar() { uint4x4 a0 = uint4x4(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375, 509818792, 1910488590, 85452501, 518127023, 1246249980, 1097326500, 1964410699); @@ -393,7 +393,7 @@ public static void uint4x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -417,7 +417,7 @@ public static void uint4x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_greater_equal_wide_wide() { uint4x4 a0 = uint4x4(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826, 631221455, 1456286159, 961342752, 424526026, 788481984, 1662488497, 870326690); @@ -441,7 +441,7 @@ public static void uint4x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_greater_equal_wide_scalar() { uint4x4 a0 = uint4x4(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669, 411667685, 1998610091, 4652390, 996159180, 2111455181, 727766399, 96217144); @@ -465,7 +465,7 @@ public static void uint4x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -489,7 +489,7 @@ public static void uint4x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_add_wide_wide() { uint4x4 a0 = uint4x4(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600, 976898058, 1915056423, 121374462, 1218855698, 700538222, 1702057277, 1788251699); @@ -513,7 +513,7 @@ public static void uint4x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_add_wide_scalar() { uint4x4 a0 = uint4x4(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008, 1246759684, 1088001167, 57252642, 678921480, 625943813, 512157429, 1470648741); @@ -537,7 +537,7 @@ public static void uint4x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_add_scalar_wide() { uint a0 = (359966320); @@ -561,7 +561,7 @@ public static void uint4x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_sub_wide_wide() { uint4x4 a0 = uint4x4(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315, 2011295463, 48079003, 591379285, 1125909359, 1842588095, 848561896, 614448464); @@ -585,7 +585,7 @@ public static void uint4x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_sub_wide_scalar() { uint4x4 a0 = uint4x4(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113, 1108005498, 304369206, 999244508, 1806482044, 1994553647, 2101812429, 1482736902); @@ -609,7 +609,7 @@ public static void uint4x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -633,7 +633,7 @@ public static void uint4x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_mul_wide_wide() { uint4x4 a0 = uint4x4(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583, 1835691886, 385626539, 85934842, 522856538, 278370196, 289217012, 2083410174); @@ -657,7 +657,7 @@ public static void uint4x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_mul_wide_scalar() { uint4x4 a0 = uint4x4(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059, 1186560810, 1584938026, 1357601203, 638897141, 268562104, 1007838321, 1163240135); @@ -681,7 +681,7 @@ public static void uint4x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -705,7 +705,7 @@ public static void uint4x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_div_wide_wide() { uint4x4 a0 = uint4x4(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195, 166625280, 1493729000, 1831739736, 200852358, 129983172, 500176108, 472051781); @@ -729,7 +729,7 @@ public static void uint4x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_div_wide_scalar() { uint4x4 a0 = uint4x4(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136, 25493909, 1196815948, 123300377, 643754735, 2084019932, 2047825037, 458304263); @@ -753,7 +753,7 @@ public static void uint4x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_div_scalar_wide() { uint a0 = (519165704); @@ -777,7 +777,7 @@ public static void uint4x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_mod_wide_wide() { uint4x4 a0 = uint4x4(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101, 17598216, 1474345080, 1681376293, 813624265, 1617478722, 498370451, 780075943); @@ -801,7 +801,7 @@ public static void uint4x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_mod_wide_scalar() { uint4x4 a0 = uint4x4(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144, 1287035793, 1743722161, 475209785, 327476870, 1617696916, 379853074, 477430114); @@ -825,7 +825,7 @@ public static void uint4x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -849,7 +849,7 @@ public static void uint4x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_plus() { uint4x4 a0 = uint4x4(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671, 1084131995, 195779102, 2131702223, 715660442, 1995564647, 69731564, 1317851903); @@ -869,7 +869,7 @@ public static void uint4x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_neg() { uint4x4 a0 = uint4x4(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525, 270503114, 1928771252, 1427605822, 2051940607, 1434247484, 485368391, 908365416); @@ -889,7 +889,7 @@ public static void uint4x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_prefix_inc() { uint4x4 a0 = uint4x4(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994, 1915989169, 1348278302, 129540735, 1584496757, 1170613526, 986715680, 1701179230); @@ -909,7 +909,7 @@ public static void uint4x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_postfix_inc() { uint4x4 a0 = uint4x4(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247, 1384002775, 389844650, 1159795446, 1343289659, 1227160199, 947635082, 137930180); @@ -929,7 +929,7 @@ public static void uint4x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_prefix_dec() { uint4x4 a0 = uint4x4(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745, 2059077641, 1169239112, 1862369220, 312317355, 1027543764, 1595492535, 1426262619); @@ -949,7 +949,7 @@ public static void uint4x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_postfix_dec() { uint4x4 a0 = uint4x4(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889, 862428933, 1401191870, 2080259851, 653673271, 140452688, 1928164223, 1760916301); @@ -969,7 +969,7 @@ public static void uint4x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_bitwise_and_wide_wide() { uint4x4 a0 = uint4x4(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656, 53199569, 1752363533, 1303061302, 1929998247, 1504941434, 470682792, 713577376); @@ -993,7 +993,7 @@ public static void uint4x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_bitwise_and_wide_scalar() { uint4x4 a0 = uint4x4(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263, 327392481, 1619794917, 2143619546, 1873208293, 126982769, 651482651, 1383096952); @@ -1017,7 +1017,7 @@ public static void uint4x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1041,7 +1041,7 @@ public static void uint4x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_bitwise_or_wide_wide() { uint4x4 a0 = uint4x4(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869, 1912038362, 1569990624, 1490718227, 1686257697, 2137727522, 1569900650, 856504729); @@ -1065,7 +1065,7 @@ public static void uint4x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_bitwise_or_wide_scalar() { uint4x4 a0 = uint4x4(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307, 1050875188, 341855232, 1317039676, 228656898, 41280811, 1536908787, 606786773); @@ -1089,7 +1089,7 @@ public static void uint4x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1113,7 +1113,7 @@ public static void uint4x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_bitwise_xor_wide_wide() { uint4x4 a0 = uint4x4(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251, 230477768, 1103646442, 1503102919, 26631152, 1016475570, 1862440929, 379588576); @@ -1137,7 +1137,7 @@ public static void uint4x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_bitwise_xor_wide_scalar() { uint4x4 a0 = uint4x4(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873, 835837496, 954341348, 1464576786, 625604047, 1700827127, 2003392824, 1481813598); @@ -1161,7 +1161,7 @@ public static void uint4x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1185,7 +1185,7 @@ public static void uint4x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_left_shift() { uint4x4 a0 = uint4x4(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727, 849916599, 1271350845, 108441902, 1959056531, 1779118882, 1451674188, 2082026915); @@ -1209,7 +1209,7 @@ public static void uint4x4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_right_shift() { uint4x4 a0 = uint4x4(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393, 1923166649, 102096936, 400863878, 667378673, 1611921244, 307750782, 479442287); @@ -1233,7 +1233,7 @@ public static void uint4x4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4x4_operator_bitwise_not() { uint4x4 a0 = uint4x4(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628, 787710759, 875964607, 96456785, 916013379, 203444882, 1172294211, 1020232736); @@ -1253,7 +1253,7 @@ public static void uint4x4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCase] + [TestCase /* For player builds */] public static void uint4x4_EqualsObjectOverride() { TestUtils.IsFalse(new uint4x4().Equals((object)new int())); diff --git a/src/Tests/Tests/TestMath2.cs b/src/Tests/Tests/TestMath2.cs index 09e2d3a9..7bbac675 100644 --- a/src/Tests/Tests/TestMath2.cs +++ b/src/Tests/Tests/TestMath2.cs @@ -1,13 +1,14 @@ using NUnit.Framework; using static Unity.Mathematics.math; using Burst.Compiler.IL.Tests; +using System; namespace Unity.Mathematics.Tests { [TestFixture] public partial class TestMath { - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public unsafe void hash_blob() { byte[] testData = { @@ -59,5 +60,71 @@ public unsafe void hash_blob() } } } + + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + public unsafe void hash_blob_unaligned() + { + byte[] testData = { + 0x0d, 0x26, 0x1c, 0xeb, 0x56, 0x3a, 0x9c, 0x18, 0x93, 0xb6, + 0xc1, 0x99, 0x5e, 0x04, 0x92, 0x4f, 0x6e, 0xb7, 0x42, 0x53, + 0x23, 0xcf, 0xe3, 0xbf, 0x16, 0x64, 0x79, 0x08, 0xc1, 0x01, + 0x43, 0x89, 0x73, 0x8f, 0x76, 0x22, 0x0c, 0xee, 0x9b, 0x80, + 0x31, 0x83, 0xce, 0x33, 0x8b, 0xc7, 0x3f, 0x94, 0x33 + }; + + uint[] resultsWithZeroSeed = + { + 0x02cc5d05, 0x376a5b3f, 0x8ae13198, 0xf5b14d72, 0xcc7ddc84, + 0x763e5905, 0x58759392, 0x6bccbd00, 0x7d0f80c8, 0xef01ae48, + 0xe40aa3ad, 0x805e04ad, 0xf98a471c, 0xdd960ac1, 0x76a71750, + 0xd35e2baa, 0x0219f7da, 0xd5bd1fbd, 0x5f28c87e, 0xfe6f7995, + 0x69a43ac5, 0xec1a1a15, 0x7ae9f103, 0x8d04a688, 0xce3b35be, + 0x6b3f040c, 0xd5ea2e8c, 0x6989e79c, 0x8772f1fb, 0x0d7b7bf6, + 0x0796214b, 0x98ea65c4, 0x3884dd82, 0x59632484, 0x91c92822, + 0x72d28404, 0x167061b0, 0x32adc2ef, 0xbac3e672, 0xd39936b7, + 0x94e2c154, 0x8b4ff46c, 0x68976fd4, 0x04bee59a, 0x2ed62c69, + 0xabee69fd, 0xda11e266, 0xcebd9d38, 0x28eea5fd, 0x0210d6ee + }; + + + uint[] resultsWith_0xeb69cf40_seed = + { + 0x12c3b280, 0x9bc1f68d, 0x2f900b51, 0xdb77e20e, 0xf6e8f561, + 0x3f3f72f6, 0x15f9700f, 0x28beb671, 0xceece5e1, 0x7a9b5c81, + 0x62a84642, 0xf75666af, 0x8939f8ca, 0x6b84792b, 0x527ee836, + 0xa0782090, 0xce6b9926, 0xa608c73b, 0xa08ee6a3, 0xab77a6b2, + 0x4e174e68, 0x596f10d5, 0xa14c4d85, 0x509ab88d, 0xd14698a4, + 0xbaad2308, 0xbd04c3df, 0x5715fed1, 0x5cf23a74, 0xd4e844f9, + 0x166dcfba, 0xe3495e37, 0x1b18b2b3, 0x2e8c2aab, 0x40993321, + 0x4b84998a, 0xd062937d, 0x1b2c9f7b, 0x8a613ed3, 0x70d71291, + 0x1af38ea4, 0x460cb7e9, 0xf806e3a9, 0xec9b6b2e, 0x9972a843, + 0x1ff06d2a, 0xe8c5007b, 0x37d8fc40, 0x0dc4f639, 0x36edff4f + }; + + byte* buffer = stackalloc byte[testData.Length + 1]; + fixed (byte* p = testData) + { + UIntPtr address = (UIntPtr)p; + bool isUnaligned = ((ulong)address & 1) > 0; + byte* unalignedPtr = buffer; + + if (!isUnaligned) + { + ++unalignedPtr; + } + + Buffer.MemoryCopy(p, unalignedPtr, testData.Length + 1, testData.Length); + + for (int i = 0; i < 50; ++i) + { + TestUtils.AreEqual(hash(unalignedPtr, i, 0), resultsWithZeroSeed[i]); + } + + for (int i = 0; i < 50; ++i) + { + TestUtils.AreEqual(hash(unalignedPtr, i, 0xeb69cf40), resultsWith_0xeb69cf40_seed[i]); + } + } + } } } diff --git a/src/Tests/Tests/TestRandom.cs b/src/Tests/Tests/TestRandom.cs index 35bc9abd..9de2112b 100644 --- a/src/Tests/Tests/TestRandom.cs +++ b/src/Tests/Tests/TestRandom.cs @@ -115,14 +115,14 @@ private static double range_check(double x, double min, double max) } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool_uniform() { var rnd = new Random(0x6E624EB7u); ks_test((() => rnd.NextBool() ? 0.75 : 0.25), 2); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_uniform() { var rnd = new Random(0x6E624EB7u); @@ -130,14 +130,14 @@ public static void bool2_uniform() ks_test((() => rnd.NextBool2().y ? 0.75 : 0.25), 2); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool2_independent() { var rnd = new Random(0x6E624EB7u); r_test((() => select(double2(0.25), double2(0.75), rnd.NextBool2().xy))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_uniform() { var rnd = new Random(0x6E624EB7u); @@ -146,7 +146,7 @@ public static void bool3_uniform() ks_test((() => rnd.NextBool3().z ? 0.75 : 0.25), 2); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool3_independent() { var rnd = new Random(0x6E624EB7u); @@ -155,7 +155,7 @@ public static void bool3_independent() r_test((() => select(double2(0.25), double2(0.75), rnd.NextBool3().yz))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_uniform() { var rnd = new Random(0x6E624EB7u); @@ -165,7 +165,7 @@ public static void bool4_uniform() ks_test((() => rnd.NextBool4().w ? 0.75 : 0.25), 2); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void bool4_independent() { var rnd = new Random(0x6E624EB7u); @@ -177,21 +177,21 @@ public static void bool4_independent() r_test((() => select(double2(0.25), double2(0.75), rnd.NextBool4().zw))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); ks_test((() => ((rnd.NextInt() & 255u) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); ks_test((() => (((uint)rnd.NextInt() >> 24) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -199,7 +199,7 @@ public static void int_uniform_max() ks_test((() => (range_check(rnd.NextInt(max), 0, max) + 0.5) / max), max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int_uniform_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -207,7 +207,7 @@ public static void int_uniform_max_limit() ks_test((() => (range_check(rnd.NextInt(max), 0, max) + 0.5) / max), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -217,7 +217,7 @@ public static void int_uniform_min_max() ks_test((() => (range_check(rnd.NextInt(min, max), min, max) + 0.5 - min) / range), range); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -227,7 +227,7 @@ public static void int_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextInt(min, max), min, max) + 0.5 - min) / range), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -235,7 +235,7 @@ public static void int2_uniform_low_bits() ks_test((() => ((rnd.NextInt2().y & 255u) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -243,7 +243,7 @@ public static void int2_uniform_high_bits() ks_test((() => (((uint)rnd.NextInt2().y >> 24) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -252,7 +252,7 @@ public static void int2_uniform_max() ks_test((() => (range_check(rnd.NextInt2(max).y, 0, max) + 0.5) / max), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -263,7 +263,7 @@ public static void int2_uniform_min_max() ks_test((() => (range_check(rnd.NextInt2(min, max).y, min.y, max.y) + 0.5 - min.y) / range.y), range.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -274,21 +274,21 @@ public static void int2_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextInt2(min, max).y, min, max) + 0.5 - min) / range), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_independent_low_bits() { var rnd = new Random(0x6E624EB7u); r_test(() => (rnd.NextInt2().xy & 255)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int2_independent_high_bits() { var rnd = new Random(0x6E624EB7u); r_test(() => ((uint2)rnd.NextInt2().xy >> 24)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -297,7 +297,7 @@ public static void int3_uniform_low_bits() ks_test((() => ((rnd.NextInt3().z & 255u) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -306,7 +306,7 @@ public static void int3_uniform_high_bits() ks_test((() => (((uint)rnd.NextInt3().z >> 24) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -316,7 +316,7 @@ public static void int3_uniform_max() ks_test((() => ((uint)range_check(rnd.NextInt3(max).z, 0, max.z) + 0.5) / max.z), max.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_uniform_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -326,7 +326,7 @@ public static void int3_uniform_max_limit() ks_test((() => ((uint)range_check(rnd.NextInt3(max).z, 0, max) + 0.5) / max), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -338,7 +338,7 @@ public static void int3_uniform_min_max() ks_test((() => (range_check(rnd.NextInt3(min, max).z, min.z, max.z) + 0.5 - min.z) / range.z), range.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -350,7 +350,7 @@ public static void int3_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextInt3(min, max).z, min, max) + 0.5 - min) / range), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_independent_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -359,7 +359,7 @@ public static void int3_independent_low_bits() r_test(() => (rnd.NextInt3().yz & 255)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int3_independent_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -368,7 +368,7 @@ public static void int3_independent_high_bits() r_test(() => ((uint2)rnd.NextInt3().yz >> 24)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -378,7 +378,7 @@ public static void int4_uniform_low_bits() ks_test((() => ((rnd.NextInt4().w & 255u) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -388,7 +388,7 @@ public static void int4_uniform_high_bits() ks_test((() => (((uint)rnd.NextInt4().w >> 24) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -399,7 +399,7 @@ public static void int4_uniform_max() ks_test((() => (range_check(rnd.NextInt4(max).w, 0, max.w) + 0.5) / max.w), max.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_uniform_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -410,7 +410,7 @@ public static void int4_uniform_max_limit() ks_test((() => (range_check(rnd.NextInt4(max).w, 0, max) + 0.5) / max), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -423,7 +423,7 @@ public static void int4_uniform_min_max() ks_test((() => (range_check(rnd.NextInt4(min, max).w, min.w, max.w) + 0.5 - min.w) / range.w), range.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -436,7 +436,7 @@ public static void int4_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextInt4(min, max).w, min, max) + 0.5 - min) / range), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_independent_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -448,7 +448,7 @@ public static void int4_independent_low_bits() r_test(() => (rnd.NextUInt4().zw & 255)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void int4_independent_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -461,21 +461,21 @@ public static void int4_independent_high_bits() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); ks_test((() => ((rnd.NextUInt() & 255u) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); ks_test((() => ((rnd.NextUInt() >> 24) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -483,7 +483,7 @@ public static void uint_uniform_max() ks_test((() => (rnd.NextUInt(max) + 0.5) / max), (int)max); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint_uniform_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -491,7 +491,7 @@ public static void uint_uniform_max_limit() ks_test((() => (rnd.NextUInt(max) + 0.5) / max), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -501,7 +501,7 @@ public static void uint_uniform_min_max() ks_test((() => (range_check(rnd.NextUInt(min, max), min, max) + 0.5 - min) / range), (int)range); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -509,7 +509,7 @@ public static void uint_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextUInt(0, max), 0, max) + 0.5) / max), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -517,7 +517,7 @@ public static void uint2_uniform_low_bits() ks_test((() => ((rnd.NextUInt2().y & 255u) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -525,7 +525,7 @@ public static void uint2_uniform_high_bits() ks_test((() => ((rnd.NextUInt2().y >> 24) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -534,7 +534,7 @@ public static void uint2_uniform_max() ks_test((() => (rnd.NextUInt2(max).y + 0.5) / max.y), (int)max.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_uniform_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -543,7 +543,7 @@ public static void uint2_uniform_max_limit() ks_test((() => (rnd.NextUInt2(max).y + 0.5) / max), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -554,7 +554,7 @@ public static void uint2_uniform_min_max() ks_test((() => (range_check(rnd.NextUInt2(min, max).y, min.y, max.y) + 0.5 - min.y) / range.y), (int)range.y); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -563,21 +563,21 @@ public static void uint2_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextUInt2(0, max).y, 0, max) + 0.5) / max), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_independent_low_bits() { var rnd = new Random(0x6E624EB7u); r_test(() => (rnd.NextUInt2().xy & 255)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint2_independent_high_bits() { var rnd = new Random(0x6E624EB7u); r_test(() => (rnd.NextUInt2().xy >> 24)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -586,7 +586,7 @@ public static void uint3_uniform_low_bits() ks_test((() => ((rnd.NextUInt3().z & 255u) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -595,7 +595,7 @@ public static void uint3_uniform_high_bits() ks_test((() => ((rnd.NextUInt3().z >> 24) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -605,7 +605,7 @@ public static void uint3_uniform_max() ks_test((() => (rnd.NextUInt3(max).z + 0.5) / max.z), (int)max.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_uniform_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -615,7 +615,7 @@ public static void uint3_uniform_max_limit() ks_test((() => (rnd.NextUInt3(max).z + 0.5) / max), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -627,7 +627,7 @@ public static void uint3_uniform_min_max() ks_test((() => (range_check(rnd.NextUInt3(min, max).z, min.z, max.z) + 0.5 - min.z) / range.z), (int)range.z); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -637,7 +637,7 @@ public static void uint3_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextUInt3(0, max).z, 0, max) + 0.5) / max), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_independent_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -646,7 +646,7 @@ public static void uint3_independent_low_bits() r_test(() => (rnd.NextUInt3().yz & 255)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint3_independent_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -655,7 +655,7 @@ public static void uint3_independent_high_bits() r_test(() => (rnd.NextUInt3().yz >> 24)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -665,7 +665,7 @@ public static void uint4_uniform_low_bits() ks_test((() => ((rnd.NextUInt4().w & 255u) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -675,7 +675,7 @@ public static void uint4_uniform_high_bits() ks_test((() => ((rnd.NextUInt4().w >> 24) + 0.5) / 256.0), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -686,7 +686,7 @@ public static void uint4_uniform_max() ks_test((() => (rnd.NextUInt4(max).w + 0.5) / max.w), (int)max.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_uniform_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -697,7 +697,7 @@ public static void uint4_uniform_max_limit() ks_test((() => (rnd.NextUInt4(max).w + 0.5) / max), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -710,7 +710,7 @@ public static void uint4_uniform_min_max() ks_test((() => (range_check(rnd.NextUInt4(min, max).w, min.w, max.w) + 0.5 - min.w) / range.w), (int)range.w); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -721,7 +721,7 @@ public static void uint4_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextUInt4(0, max).w, 0, max) + 0.5) / max), 256); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_independent_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -733,7 +733,7 @@ public static void uint4_independent_low_bits() r_test(() => (rnd.NextUInt4().zw & 255)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void uint4_independent_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -745,21 +745,21 @@ public static void uint4_independent_high_bits() r_test(() => (rnd.NextUInt4().zw >> 24)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float_uniform() { var rnd = new Random(0x6E624EB7u); ks_test((() => range_check01(rnd.NextFloat()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); ks_test((() => frac(rnd.NextFloat() * 65536.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -767,7 +767,7 @@ public static void float_uniform_max() ks_test((() => range_check(rnd.NextFloat(max), 0.0f, max) / max)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -777,7 +777,7 @@ public static void float_uniform_min_max() ks_test((() => (range_check(rnd.NextFloat(min, max), min, max) -min) / range)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_uniform() { var rnd = new Random(0x6E624EB7u); @@ -785,7 +785,7 @@ public static void float2_uniform() ks_test((() => range_check01(rnd.NextFloat2().y))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -793,7 +793,7 @@ public static void float2_uniform_low_bits() ks_test((() => frac(rnd.NextFloat2().y * 65536.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -802,7 +802,7 @@ public static void float2_uniform_max() ks_test((() => range_check(rnd.NextFloat2(max).y, 0.0f, max.y) / max.y)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -813,14 +813,14 @@ public static void float2_uniform_min_max() ks_test((() => (range_check(rnd.NextFloat2(min, max).y, min.y, max.y) - min.y) / range.y)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_independent() { var rnd = new Random(0x6E624EB7u); r_test((() => rnd.NextFloat2())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_uniform() { var rnd = new Random(0x6E624EB7u); @@ -829,7 +829,7 @@ public static void float3_uniform() ks_test((() => range_check01(rnd.NextFloat3().z))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -838,7 +838,7 @@ public static void float3_uniform_low_bits() ks_test((() => frac(rnd.NextFloat3().z * 65536.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -848,7 +848,7 @@ public static void float3_uniform_max() ks_test((() => range_check(rnd.NextFloat3(max).z, 0.0f, max.z) / max.z)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -860,7 +860,7 @@ public static void float3_uniform_min_max() ks_test((() => (range_check(rnd.NextFloat3(min, max).z, min.z, max.z) - min.z) / range.z)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_independent() { var rnd = new Random(0x6E624EB7u); @@ -869,7 +869,7 @@ public static void float3_independent() r_test((() => rnd.NextFloat3().yz)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_uniform() { var rnd = new Random(0x6E624EB7u); @@ -879,7 +879,7 @@ public static void float4_uniform() ks_test((() => range_check01(rnd.NextFloat4().w))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -889,7 +889,7 @@ public static void float4_uniform_low_bits() ks_test((() => frac(rnd.NextFloat4().w * 65536.0f))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -900,7 +900,7 @@ public static void float4_uniform_max() ks_test((() => range_check(rnd.NextFloat4(max).w, 0.0f, max.w) / max.w)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -913,7 +913,7 @@ public static void float4_uniform_min_max() ks_test((() => (range_check(rnd.NextFloat4(min, max).w, min.w, max.w) - min.w) / range.w)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float4_independent() { var rnd = new Random(0x6E624EB7u); @@ -925,21 +925,21 @@ public static void float4_independent() r_test((() => rnd.NextFloat4().zw)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double_uniform() { var rnd = new Random(0x6E624EB7u); ks_test((() => range_check01(rnd.NextDouble()))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); ks_test((() => frac(rnd.NextDouble() * 35184372088832.0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -947,7 +947,7 @@ public static void double_uniform_max() ks_test((() => range_check(rnd.NextDouble(max), 0.0, max) / max)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -957,7 +957,7 @@ public static void double_uniform_min_max() ks_test((() => (range_check(rnd.NextDouble(min, max), min, max) - min) / range)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_uniform() { var rnd = new Random(0x6E624EB7u); @@ -965,7 +965,7 @@ public static void double2_uniform() ks_test((() => range_check01(rnd.NextDouble2().y))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -973,7 +973,7 @@ public static void double2_uniform_low_bits() ks_test((() => frac(rnd.NextDouble2().y * 35184372088832.0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -982,7 +982,7 @@ public static void double2_uniform_max() ks_test((() => range_check(rnd.NextDouble2(max).y, 0.0, max.y) / max.y)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -993,14 +993,14 @@ public static void double2_uniform_min_max() ks_test((() => (range_check(rnd.NextDouble2(min, max).y, min.y, max.y) - min.y) / range.y)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_independent() { var rnd = new Random(0x6E624EB7u); r_test((() => rnd.NextDouble2())); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_uniform() { var rnd = new Random(0x6E624EB7u); @@ -1009,7 +1009,7 @@ public static void double3_uniform() ks_test((() => range_check01(rnd.NextDouble3().z))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -1018,7 +1018,7 @@ public static void double3_uniform_low_bits() ks_test((() => frac(rnd.NextDouble3().z * 35184372088832.0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -1028,7 +1028,7 @@ public static void double3_uniform_max() ks_test((() => range_check(rnd.NextDouble3(max).z, 0.0, max.z) / max.z)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -1041,7 +1041,7 @@ public static void double3_uniform_min_max() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_independent() { var rnd = new Random(0x6E624EB7u); @@ -1050,7 +1050,7 @@ public static void double3_independent() r_test((() => rnd.NextDouble3().yz)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_uniform() { var rnd = new Random(0x6E624EB7u); @@ -1060,7 +1060,7 @@ public static void double4_uniform() ks_test((() => range_check01(rnd.NextDouble4().w))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -1070,7 +1070,7 @@ public static void double4_uniform_low_bits() ks_test((() => frac(rnd.NextDouble4().w * 35184372088832.0))); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -1081,7 +1081,7 @@ public static void double4_uniform_max() ks_test((() => range_check(rnd.NextDouble4(max).w, 0.0, max.w) / max.w)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -1094,7 +1094,7 @@ public static void double4_uniform_min_max() ks_test((() => (range_check(rnd.NextDouble4(min, max).w, min.w, max.w) - min.w) / range.w)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double4_independent() { var rnd = new Random(0x6E624EB7u); @@ -1106,7 +1106,7 @@ public static void double4_independent() r_test((() => rnd.NextDouble4().zw)); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float2_direction() { var rnd = new Random(0x6E624EB7u); @@ -1117,7 +1117,7 @@ public static void float2_direction() }); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double2_direction() { var rnd = new Random(0x6E624EB7u); @@ -1129,7 +1129,7 @@ public static void double2_direction() } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void float3_direction() { var rnd = new Random(0x6E624EB7u); @@ -1145,7 +1145,7 @@ public static void float3_direction() }); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void double3_direction() { var rnd = new Random(0x6E624EB7u); @@ -1161,7 +1161,7 @@ public static void double3_direction() }); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void quaternion_rotation() { var rnd = new Random(0x6E624EB7u); @@ -1183,7 +1183,7 @@ public static void quaternion_rotation() }); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void consecutive_seeds_r_test() { // Check that drawing 1 number from many consecutive seeds has no correlation. @@ -1195,7 +1195,7 @@ public static void consecutive_seeds_r_test() } } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void consecutive_seeds_r_test2() { // Check that drawing 1 number from many consecutive seeds has no correlation. @@ -1207,7 +1207,7 @@ public static void consecutive_seeds_r_test2() } } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void consecutive_seeds_ks_test() { // Check that drawing 1 number from many consecutive seeds matches our expected distribution. @@ -1215,7 +1215,7 @@ public static void consecutive_seeds_ks_test() ks_test(() => Random.CreateFromIndex(seed++).NextDouble()); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void consecutive_seeds_ks_test2() { // Check that drawing 1 number from many consecutive seeds matches our expected distribution. @@ -1223,7 +1223,7 @@ public static void consecutive_seeds_ks_test2() ks_test(() => Random.CreateFromIndex(seed++).NextDouble()); } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void similar_seeds() { // Check to see that two consecutive seeds have no correlation when drawing @@ -1236,7 +1236,7 @@ public static void similar_seeds() } } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void similar_seeds2() { // Check to see that two consecutive seeds have no correlation when drawing @@ -1249,7 +1249,7 @@ public static void similar_seeds2() } } - [TestCompiler] + [TestCompiler /* For Burst testing */, TestCase /* For player builds */] public static void wang_hash() { TestUtils.AreEqual(3232319850u, Random.WangHash(0u)); diff --git a/src/Tests/Unity.Mathematics.Tests.asmdef b/src/Tests/Unity.Mathematics.Tests.asmdef index 6b374c8a..29a41728 100644 --- a/src/Tests/Unity.Mathematics.Tests.asmdef +++ b/src/Tests/Unity.Mathematics.Tests.asmdef @@ -1,13 +1,21 @@ { "name": "Unity.Mathematics.Tests", - "optionalUnityReferences": [ - "TestAssemblies" - ], + "rootNamespace": "", "references": [ - "Unity.Mathematics" + "Unity.Mathematics", + "UnityEngine.TestRunner" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": true, + "overrideReferences": true, + "precompiledReferences": [ + "nunit.framework.dll" ], - "includePlatforms": [ - "Editor" + "autoReferenced": false, + "defineConstraints": [ + "UNITY_INCLUDE_TESTS" ], - "allowUnsafeCode": true -} + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/src/Unity.Mathematics.CodeGen~/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen~/VectorGenerator.cs index a6c203b3..778b2c25 100644 --- a/src/Unity.Mathematics.CodeGen~/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen~/VectorGenerator.cs @@ -2075,11 +2075,11 @@ private void BeginTest(StringBuilder str, string name, bool testCompiler = true) { if (testCompiler) { - str.Append("\t\t[TestCompiler]\n"); + str.Append("\t\t[TestCompiler /* For Burst testing */, TestCase /* For player builds */]\n"); } else { - str.Append("\t\t[TestCase]\n"); + str.Append("\t\t[TestCase /* For player builds */]\n"); } str.AppendFormat("\t\tpublic static void {0}()\n", name); diff --git a/src/Unity.Mathematics.PerformanceTests/TestHash.cs b/src/Unity.Mathematics.PerformanceTests/TestHash.cs new file mode 100644 index 00000000..106f451f --- /dev/null +++ b/src/Unity.Mathematics.PerformanceTests/TestHash.cs @@ -0,0 +1,58 @@ +using Unity.Burst; +using Unity.PerformanceTesting; +using NUnit.Framework; +using Unity.Collections.LowLevel.Unsafe; +using System; +using UnityEngine; + +namespace Unity.Mathematics.PerformanceTests +{ + [BurstCompile] + partial class TestHash + { + static readonly long kBufferBytes = 1024 * 1024; + static readonly long kBytesToHash = kBufferBytes - 1; + static readonly uint kExpectedHash = 1781740882; + + [Test, Performance] + public static unsafe void HashAligned() + { + Assert.AreEqual(kExpectedHash, Hash(false)); + } + + [Test, Performance] + public static unsafe void HashUnaligned() + { + Assert.AreEqual(kExpectedHash, Hash(true)); + } + + [BurstCompile(CompileSynchronously = true)] + static unsafe uint Hash(bool useUnalignedBuffer) + { + var ptr = (ulong)(UIntPtr)UnsafeUtility.Malloc(kBufferBytes, 16, Collections.Allocator.Persistent); + var ulongptr = (ulong)ptr; + uint seed = 0; + + if (useUnalignedBuffer && ((ulongptr & 1) == 0)) + { + ++ulongptr; + } + + var buffer = (void*)ulongptr; + + for (int i = 0; i < kBytesToHash; ++i) + { + ((byte*)buffer)[i] = 123; + } + + for (int i = 0; i < 100; ++i) + { + seed = math.hash(buffer, (int)kBytesToHash, seed); + } + + UnsafeUtility.Free((void*)ptr, Collections.Allocator.Persistent); + + return seed; + } + } +} \ No newline at end of file diff --git a/src/Unity.Mathematics.PerformanceTests/TestHash.cs.meta b/src/Unity.Mathematics.PerformanceTests/TestHash.cs.meta new file mode 100644 index 00000000..fcfb809b --- /dev/null +++ b/src/Unity.Mathematics.PerformanceTests/TestHash.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c1a8761ebc1ffa240aa484721a63ba9f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Unity.Mathematics.sln b/src/Unity.Mathematics.sln index a0ea6974..ffeba31e 100644 --- a/src/Unity.Mathematics.sln +++ b/src/Unity.Mathematics.sln @@ -52,8 +52,16 @@ Global {2E7C74D3-42F1-482F-8BB7-E199D9E3B412}.Release|x86.Build.0 = Release|Any CPU {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|x64.ActiveCfg = Debug|Any CPU + {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|x64.Build.0 = Debug|Any CPU + {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|x86.ActiveCfg = Debug|Any CPU + {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Debug|x86.Build.0 = Debug|Any CPU {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Release|Any CPU.ActiveCfg = Release|Any CPU {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Release|Any CPU.Build.0 = Release|Any CPU + {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Release|x64.ActiveCfg = Release|Any CPU + {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Release|x64.Build.0 = Release|Any CPU + {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Release|x86.ActiveCfg = Release|Any CPU + {293EBCD6-CACD-4DA8-A518-FBC629268C0F}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index 26b0d378..a1b4800d 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -6704,12 +6704,19 @@ public static float4 chgsign(float4 x, float4 y) return asfloat(asuint(x) ^ (asuint(y) & 0x80000000)); } - /// Returns a uint hash from a block of memory using the xxhash32 algorithm. Can only be used in an unsafe context. - /// A pointer to the beginning of the data. - /// Number of bytes to hash. - /// Starting seed value. - /// The 32 bit hash of the input data buffer. - public static unsafe uint hash(void* pBuffer, int numBytes, uint seed = 0) + /// + /// Read 32 bits of data in little endian format. + /// + /// Memory address to read from. + /// 32 bits in little endian format. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static unsafe uint read32_little_endian(void* pBuffer) + { + byte* ptr = (byte*)pBuffer; + return (uint)ptr[0] | ((uint)ptr[1] << 8) | ((uint)ptr[2] << 16) | ((uint)ptr[3] << 24); + } + + private static unsafe uint hash_with_unaligned_loads(void* pBuffer, int numBytes, uint seed) { unchecked { @@ -6762,6 +6769,74 @@ public static unsafe uint hash(void* pBuffer, int numBytes, uint seed = 0) } } + private static unsafe uint hash_without_unaligned_loads(void* pBuffer, int numBytes, uint seed) + { + unchecked + { + const uint Prime1 = 2654435761; + const uint Prime2 = 2246822519; + const uint Prime3 = 3266489917; + const uint Prime4 = 668265263; + const uint Prime5 = 374761393; + + byte* p = (byte*)pBuffer; + uint hash = seed + Prime5; + if (numBytes >= 16) + { + uint4 state = new uint4(Prime1 + Prime2, Prime2, 0, (uint)-Prime1) + seed; + + int count = numBytes >> 4; + for (int i = 0; i < count; ++i) + { + var data = new uint4(read32_little_endian(p), read32_little_endian(p + 4), read32_little_endian(p + 8), read32_little_endian(p + 12)); + state += data * Prime2; + state = rol(state, 13); + state *= Prime1; + p += 16; + } + + hash = rol(state.x, 1) + rol(state.y, 7) + rol(state.z, 12) + rol(state.w, 18); + } + + hash += (uint)numBytes; + + for (int i = 0; i < ((numBytes >> 2) & 3); ++i) + { + hash += read32_little_endian(p) * Prime3; + hash = rol(hash, 17) * Prime4; + p += 4; + } + + for (int i = 0; i < ((numBytes) & 3); ++i) + { + hash += (*p++) * Prime5; + hash = rol(hash, 11) * Prime1; + } + + hash ^= hash >> 15; + hash *= Prime2; + hash ^= hash >> 13; + hash *= Prime3; + hash ^= hash >> 16; + + return hash; + } + } + + /// Returns a uint hash from a block of memory using the xxhash32 algorithm. Can only be used in an unsafe context. + /// A pointer to the beginning of the data. + /// Number of bytes to hash. + /// Starting seed value. + /// The 32 bit hash of the input data buffer. + public static unsafe uint hash(void* pBuffer, int numBytes, uint seed = 0) + { +#if !UNITY_64 && UNITY_ANDROID + return hash_without_unaligned_loads(pBuffer, numBytes, seed); +#else + return hash_with_unaligned_loads(pBuffer, numBytes, seed); +#endif + } + /// /// Unity's up axis (0, 1, 0). /// From 970e2eda7ed5a05ed87dc909c09c742ea370e6a9 Mon Sep 17 00:00:00 2001 From: Kevin MacAulay Vacheresse Date: Fri, 20 Oct 2023 11:12:15 -0230 Subject: [PATCH 410/437] Adds [Obsolete] tag to prevent warnings about implementing obsolete methods from the parent type avoiding CS0672. Warns users to not use these methods --- src/Unity.Mathematics.Editor/MatrixDrawer.cs | 3 ++- src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Unity.Mathematics.Editor/MatrixDrawer.cs b/src/Unity.Mathematics.Editor/MatrixDrawer.cs index 3f31a0c7..00b4a4ff 100644 --- a/src/Unity.Mathematics.Editor/MatrixDrawer.cs +++ b/src/Unity.Mathematics.Editor/MatrixDrawer.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Collections.ObjectModel; using UnityEditor; @@ -23,6 +23,7 @@ namespace Unity.Mathematics.Editor [CustomPropertyDrawer(typeof(uint4x2)), CustomPropertyDrawer(typeof(uint4x3)), CustomPropertyDrawer(typeof(uint4x4))] class MatrixDrawer : PropertyDrawer { + [Obsolete("CanCacheInspectorGUI has been deprecated, is no longer used and will be removed in later versions.", false)] public override bool CanCacheInspectorGUI(SerializedProperty property) { return false; diff --git a/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs b/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs index 28d8f47f..f7c7dbff 100644 --- a/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs +++ b/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs @@ -1,4 +1,4 @@ -using System; +using System; using UnityEditor; using UnityEngine; @@ -44,6 +44,7 @@ static class Content public static readonly GUIContent[] labels4 = { new GUIContent("X"), new GUIContent("Y"), new GUIContent("Z"), new GUIContent("W") }; } + [Obsolete("CanCacheInspectorGUI has been deprecated, is no longer used and will be removed in later versions.", false)] public override bool CanCacheInspectorGUI(SerializedProperty property) { return false; From cefc6827bb7d496180d97e125841b479c1740f55 Mon Sep 17 00:00:00 2001 From: Kevin MacAulay Vacheresse Date: Fri, 20 Oct 2023 11:15:42 -0230 Subject: [PATCH 411/437] Update changelog --- src/CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 2055eee9..aee5185a 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,10 +1,10 @@ # Changelog ## [Unreleased] -### Added -### Changed + ### Deprecated -### Removed +* `MatrixDrawer.CanCacheInspectorGUI` and `PrimitiveVectorDrawer.CanCacheInspectorGUI` are now marked as `[Obsolete]`. These methods never did anything, and still do not. They will be removed in a future release. + ### Fixed * Fixed `math.hash` crash when using IL2CPP builds on Arm 32 bit devices. From 4c2b8ff74724bf8a24776acdcc5cccbf3751ea32 Mon Sep 17 00:00:00 2001 From: Kevin MacAulay Vacheresse Date: Fri, 20 Oct 2023 12:14:46 -0230 Subject: [PATCH 412/437] Cleanup changes to remove the obsolete methods in UNITY_2023_2_OR_NEWER outright --- src/CHANGELOG.md | 4 +--- src/Unity.Mathematics.Editor/MatrixDrawer.cs | 3 ++- src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs | 3 ++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index aee5185a..f51a25d0 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -2,11 +2,9 @@ ## [Unreleased] -### Deprecated -* `MatrixDrawer.CanCacheInspectorGUI` and `PrimitiveVectorDrawer.CanCacheInspectorGUI` are now marked as `[Obsolete]`. These methods never did anything, and still do not. They will be removed in a future release. - ### Fixed * Fixed `math.hash` crash when using IL2CPP builds on Arm 32 bit devices. +* Fixed obsolete method usage warnings for `MatrixDrawer.CanCacheInspectorGUI` and `PrimitiveVectorDrawer.CanCacheInspectorGUI` in UNITY_2023_2_OR_NEWER. ## [1.3.1] - 2023-07-12 diff --git a/src/Unity.Mathematics.Editor/MatrixDrawer.cs b/src/Unity.Mathematics.Editor/MatrixDrawer.cs index 00b4a4ff..f59d2c91 100644 --- a/src/Unity.Mathematics.Editor/MatrixDrawer.cs +++ b/src/Unity.Mathematics.Editor/MatrixDrawer.cs @@ -23,11 +23,12 @@ namespace Unity.Mathematics.Editor [CustomPropertyDrawer(typeof(uint4x2)), CustomPropertyDrawer(typeof(uint4x3)), CustomPropertyDrawer(typeof(uint4x4))] class MatrixDrawer : PropertyDrawer { - [Obsolete("CanCacheInspectorGUI has been deprecated, is no longer used and will be removed in later versions.", false)] +#if !UNITY_2023_2_OR_NEWER public override bool CanCacheInspectorGUI(SerializedProperty property) { return false; } +#endif public override float GetPropertyHeight(SerializedProperty property, GUIContent label) { diff --git a/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs b/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs index f7c7dbff..cde01f38 100644 --- a/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs +++ b/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs @@ -44,11 +44,12 @@ static class Content public static readonly GUIContent[] labels4 = { new GUIContent("X"), new GUIContent("Y"), new GUIContent("Z"), new GUIContent("W") }; } - [Obsolete("CanCacheInspectorGUI has been deprecated, is no longer used and will be removed in later versions.", false)] +#if !UNITY_2023_2_OR_NEWER public override bool CanCacheInspectorGUI(SerializedProperty property) { return false; } +#endif public override float GetPropertyHeight(SerializedProperty property, GUIContent label) { From bf1c2c51725f6b69de6509595f2b7d491e0c3782 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Thu, 30 Nov 2023 19:34:20 -0800 Subject: [PATCH 413/437] Fix project? --- .../Unity.Mathematics.csproj | 89 ------------------- 1 file changed, 89 deletions(-) diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 296381f2..9ecf8cea 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -13,95 +13,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From 3ce550cdfc793de130419303137820ee48f718ab Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Mon, 4 Dec 2023 15:21:43 -0800 Subject: [PATCH 414/437] Revert "recover burst compatibility" This reverts commit 6c978302ee98bcebadc69a9e8ddb039a8a33f70c. --- .../Properties/AssemblyInfo.cs | 47 +++++++++++++++++++ .../Unity.Mathematics.csproj | 38 ++++++++++++--- 2 files changed, 79 insertions(+), 6 deletions(-) create mode 100644 src/Unity.Mathematics/Properties/AssemblyInfo.cs diff --git a/src/Unity.Mathematics/Properties/AssemblyInfo.cs b/src/Unity.Mathematics/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..c090f5b4 --- /dev/null +++ b/src/Unity.Mathematics/Properties/AssemblyInfo.cs @@ -0,0 +1,47 @@ +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +#if !UNITY_DOTSPLAYER +using System.Reflection; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. + +[assembly: AssemblyTitle("Unity.Mathematics")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Unity.Mathematics")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. + +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM + +[assembly: Guid("19810344-7387-4155-935F-BDD5CC61F0BF")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] + +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +#endif + +[assembly: InternalsVisibleTo("Unity.Mathematics.Tests")] +[assembly: InternalsVisibleTo("Unity.Mathematics.PerformanceTests")] +[assembly: InternalsVisibleTo("btests")] \ No newline at end of file diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 9ecf8cea..a6d2d9d4 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -1,7 +1,27 @@ - + + + - net471 + Debug + AnyCPU + {19810344-7387-4155-935F-BDD5CC61F0BF} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Library + Properties + Unity + Unity.Mathematics + v4.7.1 + 512 + + AnyCPU + true + full + false + ..\..\build\bin\Debug\ + DEBUG;TRACE + prompt + 4 true false ..\..\build\bin\$(Configuration)\ @@ -9,12 +29,18 @@ 1.0.0.0 - - + - - \ No newline at end of file + + + From 539d4ef8c78bd9c3eafa50d5f414416e15be385b Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Tue, 5 Dec 2023 11:31:47 -0800 Subject: [PATCH 415/437] Revert "Revert "recover burst compatibility"" This reverts commit 3ce550cdfc793de130419303137820ee48f718ab. --- .../Properties/AssemblyInfo.cs | 47 ------------------- .../Unity.Mathematics.csproj | 38 +++------------ 2 files changed, 6 insertions(+), 79 deletions(-) delete mode 100644 src/Unity.Mathematics/Properties/AssemblyInfo.cs diff --git a/src/Unity.Mathematics/Properties/AssemblyInfo.cs b/src/Unity.Mathematics/Properties/AssemblyInfo.cs deleted file mode 100644 index c090f5b4..00000000 --- a/src/Unity.Mathematics/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -#if !UNITY_DOTSPLAYER -using System.Reflection; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. - -[assembly: AssemblyTitle("Unity.Mathematics")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Unity.Mathematics")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. - -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM - -[assembly: Guid("19810344-7387-4155-935F-BDD5CC61F0BF")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] - -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] -#endif - -[assembly: InternalsVisibleTo("Unity.Mathematics.Tests")] -[assembly: InternalsVisibleTo("Unity.Mathematics.PerformanceTests")] -[assembly: InternalsVisibleTo("btests")] \ No newline at end of file diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index a6d2d9d4..9ecf8cea 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -1,27 +1,7 @@ - - - + - Debug - AnyCPU - {19810344-7387-4155-935F-BDD5CC61F0BF} - {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Library - Properties - Unity - Unity.Mathematics - v4.7.1 - 512 - - + net471 AnyCPU - true - full - false - ..\..\build\bin\Debug\ - DEBUG;TRACE - prompt - 4 true false ..\..\build\bin\$(Configuration)\ @@ -29,18 +9,12 @@ 1.0.0.0 - + + - - - + + \ No newline at end of file From 2ef61553306c3efd9a341479e4a7e354b1159e7f Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Tue, 5 Dec 2023 11:45:27 -0800 Subject: [PATCH 416/437] Make internals visible to mathematics tests. --- src/Tests/Unity.Mathematics.Tests.csproj | 4 ++-- src/Unity.Mathematics/Geometry/MinMaxAABB.cs | 4 ++-- src/Unity.Mathematics/Geometry/Plane.cs | 2 +- src/Unity.Mathematics/Unity.Mathematics.csproj | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Tests/Unity.Mathematics.Tests.csproj b/src/Tests/Unity.Mathematics.Tests.csproj index 691f7fb0..db3c9463 100644 --- a/src/Tests/Unity.Mathematics.Tests.csproj +++ b/src/Tests/Unity.Mathematics.Tests.csproj @@ -105,7 +105,7 @@ - + @@ -145,4 +145,4 @@ --> - \ No newline at end of file + diff --git a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs index 6b5b666d..eb4a3876 100644 --- a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs +++ b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs @@ -16,7 +16,7 @@ namespace Unity.Mathematics.Geometry /// [System.Serializable] [Il2CppEagerStaticClassConstruction] - public struct MinMaxAABB : IEquatable + internal struct MinMaxAABB : IEquatable { /// /// The minimum point contained by the AABB. @@ -213,7 +213,7 @@ public override string ToString() } } - public static partial class Math + internal static partial class Math { /// /// Transforms the AABB with the given transform. diff --git a/src/Unity.Mathematics/Geometry/Plane.cs b/src/Unity.Mathematics/Geometry/Plane.cs index 5094bb94..92d47c5e 100644 --- a/src/Unity.Mathematics/Geometry/Plane.cs +++ b/src/Unity.Mathematics/Geometry/Plane.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Geometry [DebuggerDisplay("{Normal}, {Distance}")] [Serializable] [Il2CppEagerStaticClassConstruction] - public struct Plane + internal struct Plane { /// /// A plane in the form Ax + By + Cz + Dw = 0. diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 9ecf8cea..6a97724f 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -15,6 +15,7 @@ + \ No newline at end of file From bb2234d71933cf6fbd66807a264331881ffb0f72 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Tue, 5 Dec 2023 12:02:20 -0800 Subject: [PATCH 417/437] Make Geometry stuff public again for burst. --- src/Unity.Mathematics/Geometry/MinMaxAABB.cs | 4 ++-- src/Unity.Mathematics/Geometry/Plane.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs index eb4a3876..6b5b666d 100644 --- a/src/Unity.Mathematics/Geometry/MinMaxAABB.cs +++ b/src/Unity.Mathematics/Geometry/MinMaxAABB.cs @@ -16,7 +16,7 @@ namespace Unity.Mathematics.Geometry /// [System.Serializable] [Il2CppEagerStaticClassConstruction] - internal struct MinMaxAABB : IEquatable + public struct MinMaxAABB : IEquatable { /// /// The minimum point contained by the AABB. @@ -213,7 +213,7 @@ public override string ToString() } } - internal static partial class Math + public static partial class Math { /// /// Transforms the AABB with the given transform. diff --git a/src/Unity.Mathematics/Geometry/Plane.cs b/src/Unity.Mathematics/Geometry/Plane.cs index 92d47c5e..5094bb94 100644 --- a/src/Unity.Mathematics/Geometry/Plane.cs +++ b/src/Unity.Mathematics/Geometry/Plane.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Geometry [DebuggerDisplay("{Normal}, {Distance}")] [Serializable] [Il2CppEagerStaticClassConstruction] - internal struct Plane + public struct Plane { /// /// A plane in the form Ax + By + Cz + Dw = 0. From c1cffbda9db093e030fee5e745f4161ee1675537 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Tue, 5 Dec 2023 12:14:26 -0800 Subject: [PATCH 418/437] Make svd public for burst testing. --- src/Unity.Mathematics/svd.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Unity.Mathematics/svd.cs b/src/Unity.Mathematics/svd.cs index b0a32112..fa50b669 100644 --- a/src/Unity.Mathematics/svd.cs +++ b/src/Unity.Mathematics/svd.cs @@ -7,7 +7,7 @@ namespace Unity.Mathematics // Computing the singular value decomposition of 3x3 matrices with minimal branching and elementary floating point operations, // A.McAdams, A.Selle, R.Tamstorf, J.Teran and E.Sifakis, University of Wisconsin - Madison technical report TR1690, May 2011 [Il2CppEagerStaticClassConstruction] - static class svd + static public class svd { [MethodImpl(MethodImplOptions.AggressiveInlining)] static void condSwap(bool c, ref float x, ref float y) From 8d574b191ec7a9e482bf81f3053b61f3565a0fc8 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Tue, 5 Dec 2023 12:32:17 -0800 Subject: [PATCH 419/437] Make internals visible to burst. --- src/Unity.Mathematics/Unity.Mathematics.csproj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index 6a97724f..a87b134b 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -16,6 +16,8 @@ + + \ No newline at end of file From 0aed4d2090ca2993afef016e192d50dcf0306c21 Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Tue, 5 Dec 2023 14:08:30 -0800 Subject: [PATCH 420/437] Make methods public for burst testing. --- src/Unity.Mathematics/Unity.Mathematics.csproj | 2 -- src/Unity.Mathematics/svd.cs | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Unity.Mathematics/Unity.Mathematics.csproj b/src/Unity.Mathematics/Unity.Mathematics.csproj index a87b134b..6a97724f 100644 --- a/src/Unity.Mathematics/Unity.Mathematics.csproj +++ b/src/Unity.Mathematics/Unity.Mathematics.csproj @@ -16,8 +16,6 @@ - - \ No newline at end of file diff --git a/src/Unity.Mathematics/svd.cs b/src/Unity.Mathematics/svd.cs index fa50b669..d57e748a 100644 --- a/src/Unity.Mathematics/svd.cs +++ b/src/Unity.Mathematics/svd.cs @@ -151,7 +151,7 @@ static float3 rcpsafe(float3 x, float epsilon = k_EpsilonRCP) => math.select(math.rcp(x), float3.zero, math.abs(x) < epsilon); [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static float3x3 svdInverse(float3x3 a) + public static float3x3 svdInverse(float3x3 a) { var e = singularValuesDecomposition(a, out var u, out var v); var um = math.float3x3(u); @@ -161,7 +161,7 @@ internal static float3x3 svdInverse(float3x3 a) } [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static quaternion svdRotation(float3x3 a) + public static quaternion svdRotation(float3x3 a) { singularValuesDecomposition(a, out var u, out var v); return math.mul(u, math.conjugate(v)); From 61c80455fd31a969684f6d7ea546cd90197a53da Mon Sep 17 00:00:00 2001 From: Dale Kim <3121968+unpacklo@users.noreply.github.com> Date: Thu, 7 Dec 2023 13:12:57 -0800 Subject: [PATCH 421/437] Use only TestCompiler or TestCase, not both. Using both breaks burst testing. --- src/Tests/Tests/Shared/TestAffineTransform.cs | 28 +- src/Tests/Tests/Shared/TestBitmanipulation.cs | 122 +-- src/Tests/Tests/Shared/TestBool2.gen.cs | 40 +- src/Tests/Tests/Shared/TestBool2x2.gen.cs | 32 +- src/Tests/Tests/Shared/TestBool2x3.gen.cs | 32 +- src/Tests/Tests/Shared/TestBool2x4.gen.cs | 32 +- src/Tests/Tests/Shared/TestBool3.gen.cs | 40 +- src/Tests/Tests/Shared/TestBool3x2.gen.cs | 32 +- src/Tests/Tests/Shared/TestBool3x3.gen.cs | 32 +- src/Tests/Tests/Shared/TestBool3x4.gen.cs | 32 +- src/Tests/Tests/Shared/TestBool4.gen.cs | 40 +- src/Tests/Tests/Shared/TestBool4x2.gen.cs | 32 +- src/Tests/Tests/Shared/TestBool4x3.gen.cs | 32 +- src/Tests/Tests/Shared/TestBool4x4.gen.cs | 32 +- src/Tests/Tests/Shared/TestDouble2.gen.cs | 96 +- src/Tests/Tests/Shared/TestDouble2x2.gen.cs | 82 +- src/Tests/Tests/Shared/TestDouble2x3.gen.cs | 80 +- src/Tests/Tests/Shared/TestDouble2x4.gen.cs | 80 +- src/Tests/Tests/Shared/TestDouble3.gen.cs | 96 +- src/Tests/Tests/Shared/TestDouble3x2.gen.cs | 80 +- src/Tests/Tests/Shared/TestDouble3x3.gen.cs | 82 +- src/Tests/Tests/Shared/TestDouble3x4.gen.cs | 80 +- src/Tests/Tests/Shared/TestDouble4.gen.cs | 96 +- src/Tests/Tests/Shared/TestDouble4x2.gen.cs | 80 +- src/Tests/Tests/Shared/TestDouble4x3.gen.cs | 80 +- src/Tests/Tests/Shared/TestDouble4x4.gen.cs | 82 +- src/Tests/Tests/Shared/TestFloat2.gen.cs | 96 +- src/Tests/Tests/Shared/TestFloat2x2.gen.cs | 82 +- src/Tests/Tests/Shared/TestFloat2x3.gen.cs | 80 +- src/Tests/Tests/Shared/TestFloat2x4.gen.cs | 80 +- src/Tests/Tests/Shared/TestFloat3.gen.cs | 96 +- src/Tests/Tests/Shared/TestFloat3x2.gen.cs | 80 +- src/Tests/Tests/Shared/TestFloat3x3.gen.cs | 82 +- src/Tests/Tests/Shared/TestFloat3x4.gen.cs | 80 +- src/Tests/Tests/Shared/TestFloat4.gen.cs | 96 +- src/Tests/Tests/Shared/TestFloat4x2.gen.cs | 80 +- src/Tests/Tests/Shared/TestFloat4x3.gen.cs | 80 +- src/Tests/Tests/Shared/TestFloat4x4.gen.cs | 82 +- src/Tests/Tests/Shared/TestHalf.cs | 90 +- src/Tests/Tests/Shared/TestInt2.gen.cs | 120 +-- src/Tests/Tests/Shared/TestInt2x2.gen.cs | 106 +-- src/Tests/Tests/Shared/TestInt2x3.gen.cs | 104 +-- src/Tests/Tests/Shared/TestInt2x4.gen.cs | 104 +-- src/Tests/Tests/Shared/TestInt3.gen.cs | 120 +-- src/Tests/Tests/Shared/TestInt3x2.gen.cs | 104 +-- src/Tests/Tests/Shared/TestInt3x3.gen.cs | 106 +-- src/Tests/Tests/Shared/TestInt3x4.gen.cs | 104 +-- src/Tests/Tests/Shared/TestInt4.gen.cs | 120 +-- src/Tests/Tests/Shared/TestInt4x2.gen.cs | 104 +-- src/Tests/Tests/Shared/TestInt4x3.gen.cs | 104 +-- src/Tests/Tests/Shared/TestInt4x4.gen.cs | 106 +-- src/Tests/Tests/Shared/TestMath.cs | 568 ++++++------ src/Tests/Tests/Shared/TestMath.gen.cs | 820 +++++++++--------- src/Tests/Tests/Shared/TestMatrix.cs | 122 +-- src/Tests/Tests/Shared/TestMinMaxAABB.cs | 90 +- src/Tests/Tests/Shared/TestPlane.cs | 46 +- src/Tests/Tests/Shared/TestQuaternion.cs | 56 +- src/Tests/Tests/Shared/TestRigidTransform.cs | 16 +- src/Tests/Tests/Shared/TestSvd.cs | 18 +- src/Tests/Tests/Shared/TestUint2.gen.cs | 120 +-- src/Tests/Tests/Shared/TestUint2x2.gen.cs | 106 +-- src/Tests/Tests/Shared/TestUint2x3.gen.cs | 104 +-- src/Tests/Tests/Shared/TestUint2x4.gen.cs | 104 +-- src/Tests/Tests/Shared/TestUint3.gen.cs | 120 +-- src/Tests/Tests/Shared/TestUint3x2.gen.cs | 104 +-- src/Tests/Tests/Shared/TestUint3x3.gen.cs | 106 +-- src/Tests/Tests/Shared/TestUint3x4.gen.cs | 104 +-- src/Tests/Tests/Shared/TestUint4.gen.cs | 120 +-- src/Tests/Tests/Shared/TestUint4x2.gen.cs | 104 +-- src/Tests/Tests/Shared/TestUint4x3.gen.cs | 104 +-- src/Tests/Tests/Shared/TestUint4x4.gen.cs | 106 +-- src/Tests/Tests/TestMath2.cs | 4 +- src/Tests/Tests/TestRandom.cs | 232 ++--- .../VectorGenerator.cs | 2 +- 74 files changed, 3627 insertions(+), 3627 deletions(-) diff --git a/src/Tests/Tests/Shared/TestAffineTransform.cs b/src/Tests/Tests/Shared/TestAffineTransform.cs index 77af61f8..b663fd65 100644 --- a/src/Tests/Tests/Shared/TestAffineTransform.cs +++ b/src/Tests/Tests/Shared/TestAffineTransform.cs @@ -7,7 +7,7 @@ namespace Unity.Mathematics.Tests [TestFixture] class TestAffineTransform { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void affine_transform_construct_from_float3x3() { const float tolerance = 1e-6f; @@ -20,7 +20,7 @@ public static void affine_transform_construct_from_float3x3() TestUtils.AreEqual(m3x3, testM3x3, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void affine_transform_construct_from_float3x4() { const float tolerance = 1e-6f; @@ -33,7 +33,7 @@ public static void affine_transform_construct_from_float3x4() TestUtils.AreEqual(m3x4, testM3x4, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void affine_transform_construct_from_float4x4() { const float tolerance = 1e-6f; @@ -46,7 +46,7 @@ public static void affine_transform_construct_from_float4x4() TestUtils.AreEqual(m4x4, testM4x4, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void affine_transform_construct_from_RigidTransform() { const float tolerance = 1e-6f; @@ -58,7 +58,7 @@ public static void affine_transform_construct_from_RigidTransform() TestUtils.AreEqual(r.pos, tx.t, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void affine_transform_inverse() { const float tolerance = 1e-6f; @@ -69,7 +69,7 @@ public static void affine_transform_inverse() TestUtils.AreEqual(float4x4.identity, mul(tx, invTx), tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void affine_transform_inverse_zero_rs_returns_zero() { const float tolerance = 1e-30f; @@ -80,7 +80,7 @@ public static void affine_transform_inverse_zero_rs_returns_zero() TestUtils.AreEqual(float3x4.zero, invTx, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void affine_transform_inverse_pico_scale() { // slightly larger tolerance (vs 1e-6f) for PS4 @@ -92,7 +92,7 @@ public static void affine_transform_inverse_pico_scale() TestUtils.AreEqual(float4x4.identity, mul(tx, invTx), tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void affine_transform_inverse_singular() { // it needs a bit larger tolerance for singular @@ -107,7 +107,7 @@ public static void affine_transform_inverse_singular() TestUtils.AreEqual(float4x4(tx), float4x4(testTx), tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void affine_transform_decompose() { const float tolerance = 1e-6f; @@ -120,7 +120,7 @@ public static void affine_transform_decompose() TestUtils.AreEqual(float4x4(tx), float4x4(testTx), tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void affine_transform_mul_vector() { float4x4 m = TestMatrix.test4x4_xyz; @@ -137,7 +137,7 @@ public static void affine_transform_mul_vector() TestUtils.AreEqual(mvector1, txvector1, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void affine_transform_rotate_vector() { float3x3 m = TestMatrix.test3x3_xyz; @@ -150,7 +150,7 @@ public static void affine_transform_rotate_vector() TestUtils.AreEqual(mvector0, txvector0, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void affine_transform_transform_point() { float4x4 m = float4x4(TestMatrix.test3x3_zyx, float3(1f, 2f, 3f)); @@ -163,11 +163,11 @@ public static void affine_transform_transform_point() TestUtils.AreEqual(mPt0, txPt0, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void affine_transform_zero() { TestUtils.AreEqual(float3x3.zero, AffineTransform.zero.rs); TestUtils.AreEqual(float3.zero, AffineTransform.zero.t); } } -} \ No newline at end of file +} diff --git a/src/Tests/Tests/Shared/TestBitmanipulation.cs b/src/Tests/Tests/Shared/TestBitmanipulation.cs index e3c91791..517d8d67 100644 --- a/src/Tests/Tests/Shared/TestBitmanipulation.cs +++ b/src/Tests/Tests/Shared/TestBitmanipulation.cs @@ -7,7 +7,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBitmanipulation { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bitmask_bool4() { TestUtils.AreEqual(bitmask(new bool4(false, false, false, false)), 0b0000); @@ -23,7 +23,7 @@ public static void bitmask_bool4() TestUtils.AreEqual(bitmask(new bool4(true, true, true, false)), 0b0111); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void countbits_int1() { TestUtils.AreEqual(12, countbits( 0x01234567)); @@ -33,7 +33,7 @@ public static void countbits_int1() TestUtils.AreEqual(32, countbits(-1)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void countbits_int2() { TestUtils.AreEqual(int2(0, 12), countbits(int2(0, 0x01234567))); @@ -41,21 +41,21 @@ public static void countbits_int2() TestUtils.AreEqual(int2(17, 32), countbits(int2(-0x456789AB, -1))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void countbits_int3() { TestUtils.AreEqual(int3(0, 12, 16), countbits(int3(0, 0x01234567, 0x456789AB))); TestUtils.AreEqual(int3(21, 17, 32), countbits(int3(-0x01234567, -0x456789AB, -1))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void countbits_int4() { TestUtils.AreEqual(int4(0, 12, 16, 21), countbits(int4(0, 0x01234567, 0x456789AB, -0x01234567))); TestUtils.AreEqual(int4(17, 32, 30, 29), countbits(int4(-0x456789AB, -1, -7, -15))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void countbits_uint() { TestUtils.AreEqual(0, countbits(0u)); @@ -66,7 +66,7 @@ public static void countbits_uint() TestUtils.AreEqual(32, countbits(0xFFFFFFFFu)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void countbits_uint2() { TestUtils.AreEqual(int2(0, 12), countbits(uint2(0, 0x01234567))); @@ -74,21 +74,21 @@ public static void countbits_uint2() TestUtils.AreEqual(int2(16, 32), countbits(uint2(0xCDEF0123u, 0xFFFFFFFFu))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void countbits_uint3() { TestUtils.AreEqual(int3(0, 12, 16), countbits(uint3(0, 0x01234567, 0x456789AB))); TestUtils.AreEqual(int3(20, 16, 32), countbits(uint3(0x89ABCDEFu, 0xCDEF0123u, 0xFFFFFFFFu))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void countbits_uint4() { TestUtils.AreEqual(int4(0, 12, 16, 20), countbits(uint4(0, 0x01234567, 0x456789AB, 0x89ABCDEFu))); TestUtils.AreEqual(int4(16, 32, 30, 29), countbits(uint4(0xCDEF0123u, 0xFFFFFFFFu, 0xFFFFFFF5u, 0xFFFFFFF1u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void countbits_long() { TestUtils.AreEqual(0, countbits(0L)); @@ -97,7 +97,7 @@ public static void countbits_long() TestUtils.AreEqual(64, countbits(-1L)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void countbits_ulong() { TestUtils.AreEqual(0, countbits(0UL)); @@ -106,7 +106,7 @@ public static void countbits_ulong() TestUtils.AreEqual(64, countbits(0xFFFFFFFFFFFFFFFFUL)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lzcnt_int() { TestUtils.AreEqual(32, lzcnt(0)); @@ -119,7 +119,7 @@ public static void lzcnt_int() TestUtils.AreEqual(0, lzcnt(-2147483648)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lzcnt_int2() { TestUtils.AreEqual(int2(32, 31), lzcnt(int2(0, 1))); @@ -128,7 +128,7 @@ public static void lzcnt_int2() TestUtils.AreEqual(int2(0, 0), lzcnt(int2(-1, -2147483648))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lzcnt_int3() { TestUtils.AreEqual(int3(32, 31, 30), lzcnt(int3(0, 1, 2))); @@ -136,14 +136,14 @@ public static void lzcnt_int3() TestUtils.AreEqual(int3(0, 0, 27), lzcnt(int3(-1, -2147483648, 17))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lzcnt_int4() { TestUtils.AreEqual(int4(32, 31, 30, 30), lzcnt(int4(0, 1, 2, 3))); TestUtils.AreEqual(int4(17, 5, 0, 0), lzcnt(int4(0x5321, 0x04435321, -1, -2147483648))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lzcnt_uint() { TestUtils.AreEqual(32, lzcnt(0u)); @@ -156,7 +156,7 @@ public static void lzcnt_uint() TestUtils.AreEqual(0, lzcnt(0xFFFFFFFFu)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lzcnt_uint2() { TestUtils.AreEqual(int2(32, 31), lzcnt(uint2(0u, 1u))); @@ -165,7 +165,7 @@ public static void lzcnt_uint2() TestUtils.AreEqual(int2(0, 0), lzcnt(uint2(0x84435320u, 0xFFFFFFFFu))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lzcnt_uint3() { TestUtils.AreEqual(int3(32, 31, 30), lzcnt(uint3(0u, 1u, 2u))); @@ -173,7 +173,7 @@ public static void lzcnt_uint3() TestUtils.AreEqual(int3(0, 0, 27), lzcnt(uint3(0x84435320u, 0xFFFFFFFFu, 17))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lzcnt_uint4() { TestUtils.AreEqual(int2(32, 31), lzcnt(uint2(0u, 1u))); @@ -182,7 +182,7 @@ public static void lzcnt_uint4() TestUtils.AreEqual(int2(0, 0), lzcnt(uint2(0x84435320u, 0xFFFFFFFFu))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lzcnt_long() { TestUtils.AreEqual(64, lzcnt(0L)); @@ -194,7 +194,7 @@ public static void lzcnt_long() TestUtils.AreEqual(0, lzcnt(-9223372036854775808L)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lzcnt_ulong() { TestUtils.AreEqual(64, lzcnt(0UL)); @@ -206,7 +206,7 @@ public static void lzcnt_ulong() TestUtils.AreEqual(0, lzcnt(0x8000000000000000UL)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tzcnt_int() { TestUtils.AreEqual(32, tzcnt(0)); @@ -220,7 +220,7 @@ public static void tzcnt_int() TestUtils.AreEqual(31, tzcnt(-2147483648)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tzcnt_int2() { TestUtils.AreEqual(int2(32, 0), tzcnt(int2(0, 1))); @@ -230,7 +230,7 @@ public static void tzcnt_int2() TestUtils.AreEqual(int2(31, 2), tzcnt(int2(-2147483648, 20))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tzcnt_int3() { TestUtils.AreEqual(int3(32, 0, 1), tzcnt(int3(0, 1, 2))); @@ -238,7 +238,7 @@ public static void tzcnt_int3() TestUtils.AreEqual(int3(1, 0, 31), tzcnt(int3(-2, -2147483647, -2147483648))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tzcnt_int4() { TestUtils.AreEqual(int4(32, 0, 1, 0), tzcnt(int4(0, 1, 2, 3))); @@ -246,7 +246,7 @@ public static void tzcnt_int4() TestUtils.AreEqual(int4(31, 2, 2, 3), tzcnt(int4(-2147483648, 20, 4132, -8))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tzcnt_uint() { TestUtils.AreEqual(32, tzcnt(0u)); @@ -260,7 +260,7 @@ public static void tzcnt_uint() TestUtils.AreEqual(31, tzcnt(0x80000000u)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tzcnt_uint2() { TestUtils.AreEqual(int2(32, 0), tzcnt(uint2(0u, 1u))); @@ -270,7 +270,7 @@ public static void tzcnt_uint2() TestUtils.AreEqual(int2(31, 2), tzcnt(uint2(0x80000000u, 20u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tzcnt_uint3() { TestUtils.AreEqual(int3(32, 0, 1), tzcnt(uint3(0u, 1u, 2u))); @@ -278,7 +278,7 @@ public static void tzcnt_uint3() TestUtils.AreEqual(int3(1, 0, 31), tzcnt(uint3(0xFFFFFFFEu, 0x80000001u, 0x80000000u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tzcnt_uint4() { TestUtils.AreEqual(int4(32, 0, 1, 0), tzcnt(uint4(0u, 1u, 2u, 3u))); @@ -286,7 +286,7 @@ public static void tzcnt_uint4() TestUtils.AreEqual(int4(31, 2, 2, 3), tzcnt(uint4(0x80000000u, 20u, 4132u, 0xFFFFFFF8u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tzcnt_long() { TestUtils.AreEqual(64, tzcnt(0L)); @@ -298,7 +298,7 @@ public static void tzcnt_long() TestUtils.AreEqual(0, tzcnt(-9223372036854775807L)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tzcnt_ulong() { TestUtils.AreEqual(64, tzcnt(0UL)); @@ -310,7 +310,7 @@ public static void tzcnt_ulong() TestUtils.AreEqual(0, tzcnt(0x8000000000000001UL)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reversebits_int() { TestUtils.AreEqual(0x03521609, reversebits(-1872213312)); @@ -319,27 +319,27 @@ public static void reversebits_int() TestUtils.AreEqual(0x48d9c42e, reversebits(0x74239b12)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reversebits_int2() { TestUtils.AreEqual(int2(0x03521609, 0x5f5b0648), reversebits(int2(-1872213312, 0x1260dafa))); TestUtils.AreEqual(int2(0x4bbafd8d, 0x48d9c42e), reversebits(int2(-1312858670, 0x74239b12))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reversebits_int3() { TestUtils.AreEqual(int3(0x03521609, 0x5f5b0648, 0x4bbafd8d), reversebits(int3(-1872213312, 0x1260dafa, -1312858670))); TestUtils.AreEqual(int3(0x48d9c42e, 0, -1), reversebits(int3(0x74239b12, 0, -1))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reversebits_int4() { TestUtils.AreEqual(int4(0x03521609, 0x5f5b0648, 0x4bbafd8d, 0x48d9c42e), reversebits(int4(-1872213312, 0x1260dafa, -1312858670, 0x74239b12))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reversebits_uint() { TestUtils.AreEqual(0x03521609u, reversebits(0x90684ac0u)); @@ -348,39 +348,39 @@ public static void reversebits_uint() TestUtils.AreEqual(0x48d9c42eu, reversebits(0x74239b12u)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reversebits_uint2() { TestUtils.AreEqual(uint2(0x03521609u, 0x5f5b0648u), reversebits(uint2(0x90684ac0u, 0x1260dafau))); TestUtils.AreEqual(uint2(0x4bbafd8du, 0x48d9c42eu), reversebits(uint2(0xb1bf5dd2u, 0x74239b12u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reversebits_uint3() { TestUtils.AreEqual(uint3(0x03521609u, 0x5f5b0648u, 0x4bbafd8du), reversebits(uint3(0x90684ac0u, 0x1260dafau, 0xb1bf5dd2u))); TestUtils.AreEqual(uint3(0x48d9c42eu, 0u, 0xFFFFFFFF), reversebits(uint3(0x74239b12u, 0u, 0xFFFFFFFF))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reversebits_uint4() { TestUtils.AreEqual(uint4(0x03521609u, 0x5f5b0648u, 0x4bbafd8du, 0x48d9c42eu), reversebits(uint4(0x90684ac0u, 0x1260dafau, 0xb1bf5dd2u, 0x74239b12u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reversebits_long() { TestUtils.AreEqual(0x4bbafd8d5f5b0648L, reversebits(0x1260dafab1bf5dd2L)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reversebits_ulong() { TestUtils.AreEqual(0x4bbafd8d5f5b0648ul, reversebits(0x1260dafab1bf5dd2ul)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rol_int() { TestUtils.AreEqual(-1933184920, rol(219257022, 11)); @@ -389,27 +389,27 @@ public static void rol_int() TestUtils.AreEqual(661621977, rol(-1692078607, 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rol_int2() { TestUtils.AreEqual(int2(-1933184920, -2048170741), rol(int2(219257022, -1586446996), 11)); TestUtils.AreEqual(int2(-1152739462, 661621977), rol(int2(-279484078, -1692078607), 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rol_int3() { TestUtils.AreEqual(int3(-1933184920, -2048170741, -1152739462), rol(int3(219257022, -1586446996, -279484078), 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rol_int4() { TestUtils.AreEqual(int4(-1933184920, -2048170741, -1152739462, 661621977), rol(int4(219257022, -1586446996, -279484078, -1692078607), 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rol_uint() { TestUtils.AreEqual(2361782376u, rol(219257022u, 11)); @@ -418,27 +418,27 @@ public static void rol_uint() TestUtils.AreEqual(661621977u, rol(2602888689u, 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rol_uint2() { TestUtils.AreEqual(uint2(2361782376u, 2246796555u), rol(uint2(219257022u, 2708520300u), 11)); TestUtils.AreEqual(uint2(3142227834u, 661621977u), rol(uint2(4015483218u, 2602888689u), 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rol_uint3() { TestUtils.AreEqual(uint3(2361782376u, 2246796555u, 3142227834u), rol(uint3(219257022u, 2708520300u, 4015483218u), 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rol_uint4() { TestUtils.AreEqual(uint4(2361782376u, 2246796555u, 3142227834u, 661621977u), rol(uint4(219257022u, 2708520300u, 4015483218u, 2602888689u), 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rol_long() { TestUtils.AreEqual(4769317691753349395L, rol(6894885722123239465L, 37)); @@ -447,7 +447,7 @@ public static void rol_long() TestUtils.AreEqual(-5493728106787075631L, rol(2788577329702376155L, 37)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rol_ulong() { TestUtils.AreEqual(4769317691753349395UL, rol(6894885722123239465UL, 37)); @@ -457,7 +457,7 @@ public static void rol_ulong() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ror_int() { TestUtils.AreEqual(87245360, ror(-1710129111, 11)); @@ -466,27 +466,27 @@ public static void ror_int() TestUtils.AreEqual(-232831845, ror(-98246768, 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ror_int2() { TestUtils.AreEqual(int2(87245360, -259445220), ror(int2(-1710129111, 1232136068), 11)); TestUtils.AreEqual(int2(-1697813787, -232831845), ror(int2(1800875222, -98246768), 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ror_int3() { TestUtils.AreEqual(int3(87245360, -259445220, -1697813787), ror(int3(-1710129111, 1232136068, 1800875222), 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ror_int4() { TestUtils.AreEqual(int4(87245360, -259445220, -1697813787, -232831845), ror(int4(-1710129111, 1232136068, 1800875222, -98246768), 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ror_uint() { TestUtils.AreEqual(87245360u, ror(2584838185u, 11)); @@ -495,26 +495,26 @@ public static void ror_uint() TestUtils.AreEqual(4062135451u, ror(4196720528u, 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ror_uint2() { TestUtils.AreEqual(uint2(87245360u, 4035522076u), ror(uint2(2584838185u, 1232136068u), 11)); TestUtils.AreEqual(uint2(2597153509u, 4062135451u), ror(uint2(1800875222u, 4196720528u), 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ror_uint3() { TestUtils.AreEqual(uint3(87245360u, 4035522076u, 2597153509u), ror(uint3(2584838185u, 1232136068u, 1800875222u), 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ror_uint4() { TestUtils.AreEqual(uint4(87245360u, 4035522076u, 2597153509u, 4062135451u), ror(uint4(2584838185u, 1232136068u, 1800875222u, 4196720528u), 11)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ror_long() { TestUtils.AreEqual(4958617126915898480L, ror(6894885722123239465L, 37)); @@ -523,7 +523,7 @@ public static void ror_long() TestUtils.AreEqual(8389344736564320290L, ror(2788577329702376155L, 37)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ror_ulong() { TestUtils.AreEqual(4958617126915898480UL, ror(6894885722123239465UL, 37)); diff --git a/src/Tests/Tests/Shared/TestBool2.gen.cs b/src/Tests/Tests/Shared/TestBool2.gen.cs index fe9ee45c..11c32ff2 100644 --- a/src/Tests/Tests/Shared/TestBool2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_constructor() { bool2 a = new bool2(false, true); @@ -23,7 +23,7 @@ public static void bool2_constructor() TestUtils.AreEqual(true, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_scalar_constructor() { bool2 a = new bool2(true); @@ -31,7 +31,7 @@ public static void bool2_scalar_constructor() TestUtils.AreEqual(true, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_static_constructor() { bool2 a = bool2(false, true); @@ -39,7 +39,7 @@ public static void bool2_static_constructor() TestUtils.AreEqual(true, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_static_scalar_constructor() { bool2 a = bool2(true); @@ -47,7 +47,7 @@ public static void bool2_static_scalar_constructor() TestUtils.AreEqual(true, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_equal_wide_wide() { bool2 a0 = bool2(true, false); @@ -71,7 +71,7 @@ public static void bool2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_equal_wide_scalar() { bool2 a0 = bool2(false, true); @@ -95,7 +95,7 @@ public static void bool2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_equal_scalar_wide() { bool a0 = (false); @@ -119,7 +119,7 @@ public static void bool2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_not_equal_wide_wide() { bool2 a0 = bool2(true, true); @@ -143,7 +143,7 @@ public static void bool2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_not_equal_wide_scalar() { bool2 a0 = bool2(false, true); @@ -167,7 +167,7 @@ public static void bool2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -191,7 +191,7 @@ public static void bool2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_bitwise_and_wide_wide() { bool2 a0 = bool2(false, false); @@ -215,7 +215,7 @@ public static void bool2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_bitwise_and_wide_scalar() { bool2 a0 = bool2(true, false); @@ -239,7 +239,7 @@ public static void bool2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -263,7 +263,7 @@ public static void bool2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_bitwise_or_wide_wide() { bool2 a0 = bool2(true, true); @@ -287,7 +287,7 @@ public static void bool2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_bitwise_or_wide_scalar() { bool2 a0 = bool2(true, true); @@ -311,7 +311,7 @@ public static void bool2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -335,7 +335,7 @@ public static void bool2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_bitwise_xor_wide_wide() { bool2 a0 = bool2(true, false); @@ -359,7 +359,7 @@ public static void bool2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_bitwise_xor_wide_scalar() { bool2 a0 = bool2(false, false); @@ -383,7 +383,7 @@ public static void bool2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -407,7 +407,7 @@ public static void bool2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_operator_logical_not() { bool2 a0 = bool2(true, true); diff --git a/src/Tests/Tests/Shared/TestBool2x2.gen.cs b/src/Tests/Tests/Shared/TestBool2x2.gen.cs index af2bb68c..1646031c 100644 --- a/src/Tests/Tests/Shared/TestBool2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool2x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_equal_wide_wide() { bool2x2 a0 = bool2x2(true, false, true, false); @@ -39,7 +39,7 @@ public static void bool2x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_equal_wide_scalar() { bool2x2 a0 = bool2x2(false, true, false, false); @@ -63,7 +63,7 @@ public static void bool2x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool2x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_not_equal_wide_wide() { bool2x2 a0 = bool2x2(true, true, true, false); @@ -111,7 +111,7 @@ public static void bool2x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_not_equal_wide_scalar() { bool2x2 a0 = bool2x2(false, true, false, true); @@ -135,7 +135,7 @@ public static void bool2x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool2x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_bitwise_and_wide_wide() { bool2x2 a0 = bool2x2(false, false, true, true); @@ -183,7 +183,7 @@ public static void bool2x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_bitwise_and_wide_scalar() { bool2x2 a0 = bool2x2(true, false, false, true); @@ -207,7 +207,7 @@ public static void bool2x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool2x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_bitwise_or_wide_wide() { bool2x2 a0 = bool2x2(true, true, true, false); @@ -255,7 +255,7 @@ public static void bool2x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_bitwise_or_wide_scalar() { bool2x2 a0 = bool2x2(true, true, false, true); @@ -279,7 +279,7 @@ public static void bool2x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool2x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_bitwise_xor_wide_wide() { bool2x2 a0 = bool2x2(true, false, false, true); @@ -327,7 +327,7 @@ public static void bool2x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_bitwise_xor_wide_scalar() { bool2x2 a0 = bool2x2(false, false, true, true); @@ -351,7 +351,7 @@ public static void bool2x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool2x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x2_operator_logical_not() { bool2x2 a0 = bool2x2(true, true, false, false); diff --git a/src/Tests/Tests/Shared/TestBool2x3.gen.cs b/src/Tests/Tests/Shared/TestBool2x3.gen.cs index bf0f34d2..8157a008 100644 --- a/src/Tests/Tests/Shared/TestBool2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool2x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_equal_wide_wide() { bool2x3 a0 = bool2x3(true, false, true, false, false, true); @@ -39,7 +39,7 @@ public static void bool2x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_equal_wide_scalar() { bool2x3 a0 = bool2x3(false, true, false, false, false, false); @@ -63,7 +63,7 @@ public static void bool2x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool2x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_not_equal_wide_wide() { bool2x3 a0 = bool2x3(true, true, true, false, false, true); @@ -111,7 +111,7 @@ public static void bool2x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_not_equal_wide_scalar() { bool2x3 a0 = bool2x3(false, true, false, true, true, false); @@ -135,7 +135,7 @@ public static void bool2x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool2x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_bitwise_and_wide_wide() { bool2x3 a0 = bool2x3(false, false, true, true, false, false); @@ -183,7 +183,7 @@ public static void bool2x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_bitwise_and_wide_scalar() { bool2x3 a0 = bool2x3(true, false, false, true, true, false); @@ -207,7 +207,7 @@ public static void bool2x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool2x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_bitwise_or_wide_wide() { bool2x3 a0 = bool2x3(true, true, true, false, true, false); @@ -255,7 +255,7 @@ public static void bool2x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_bitwise_or_wide_scalar() { bool2x3 a0 = bool2x3(true, true, false, true, true, true); @@ -279,7 +279,7 @@ public static void bool2x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool2x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_bitwise_xor_wide_wide() { bool2x3 a0 = bool2x3(true, false, false, true, false, false); @@ -327,7 +327,7 @@ public static void bool2x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_bitwise_xor_wide_scalar() { bool2x3 a0 = bool2x3(false, false, true, true, false, false); @@ -351,7 +351,7 @@ public static void bool2x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool2x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x3_operator_logical_not() { bool2x3 a0 = bool2x3(true, true, false, false, true, false); diff --git a/src/Tests/Tests/Shared/TestBool2x4.gen.cs b/src/Tests/Tests/Shared/TestBool2x4.gen.cs index 3310b755..fdfdb454 100644 --- a/src/Tests/Tests/Shared/TestBool2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool2x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool2x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_equal_wide_wide() { bool2x4 a0 = bool2x4(true, false, true, false, false, true, false, false); @@ -39,7 +39,7 @@ public static void bool2x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_equal_wide_scalar() { bool2x4 a0 = bool2x4(false, true, false, false, false, false, true, false); @@ -63,7 +63,7 @@ public static void bool2x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool2x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_not_equal_wide_wide() { bool2x4 a0 = bool2x4(true, true, true, false, false, true, false, false); @@ -111,7 +111,7 @@ public static void bool2x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_not_equal_wide_scalar() { bool2x4 a0 = bool2x4(false, true, false, true, true, false, false, false); @@ -135,7 +135,7 @@ public static void bool2x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool2x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_bitwise_and_wide_wide() { bool2x4 a0 = bool2x4(false, false, true, true, false, false, true, true); @@ -183,7 +183,7 @@ public static void bool2x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_bitwise_and_wide_scalar() { bool2x4 a0 = bool2x4(true, false, false, true, true, false, false, false); @@ -207,7 +207,7 @@ public static void bool2x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool2x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_bitwise_or_wide_wide() { bool2x4 a0 = bool2x4(true, true, true, false, true, false, true, true); @@ -255,7 +255,7 @@ public static void bool2x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_bitwise_or_wide_scalar() { bool2x4 a0 = bool2x4(true, true, false, true, true, true, true, false); @@ -279,7 +279,7 @@ public static void bool2x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool2x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_bitwise_xor_wide_wide() { bool2x4 a0 = bool2x4(true, false, false, true, false, false, false, true); @@ -327,7 +327,7 @@ public static void bool2x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_bitwise_xor_wide_scalar() { bool2x4 a0 = bool2x4(false, false, true, true, false, false, false, false); @@ -351,7 +351,7 @@ public static void bool2x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool2x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2x4_operator_logical_not() { bool2x4 a0 = bool2x4(true, true, false, false, true, false, true, false); diff --git a/src/Tests/Tests/Shared/TestBool3.gen.cs b/src/Tests/Tests/Shared/TestBool3.gen.cs index d66353aa..ee345f1e 100644 --- a/src/Tests/Tests/Shared/TestBool3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_constructor() { bool3 a = new bool3(false, true, false); @@ -24,7 +24,7 @@ public static void bool3_constructor() TestUtils.AreEqual(false, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_scalar_constructor() { bool3 a = new bool3(true); @@ -33,7 +33,7 @@ public static void bool3_scalar_constructor() TestUtils.AreEqual(true, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_static_constructor() { bool3 a = bool3(false, true, false); @@ -42,7 +42,7 @@ public static void bool3_static_constructor() TestUtils.AreEqual(false, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_static_scalar_constructor() { bool3 a = bool3(true); @@ -51,7 +51,7 @@ public static void bool3_static_scalar_constructor() TestUtils.AreEqual(true, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_equal_wide_wide() { bool3 a0 = bool3(true, false, true); @@ -75,7 +75,7 @@ public static void bool3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_equal_wide_scalar() { bool3 a0 = bool3(false, true, false); @@ -99,7 +99,7 @@ public static void bool3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_equal_scalar_wide() { bool a0 = (false); @@ -123,7 +123,7 @@ public static void bool3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_not_equal_wide_wide() { bool3 a0 = bool3(true, true, true); @@ -147,7 +147,7 @@ public static void bool3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_not_equal_wide_scalar() { bool3 a0 = bool3(false, true, false); @@ -171,7 +171,7 @@ public static void bool3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -195,7 +195,7 @@ public static void bool3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_bitwise_and_wide_wide() { bool3 a0 = bool3(false, false, true); @@ -219,7 +219,7 @@ public static void bool3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_bitwise_and_wide_scalar() { bool3 a0 = bool3(true, false, false); @@ -243,7 +243,7 @@ public static void bool3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -267,7 +267,7 @@ public static void bool3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_bitwise_or_wide_wide() { bool3 a0 = bool3(true, true, true); @@ -291,7 +291,7 @@ public static void bool3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_bitwise_or_wide_scalar() { bool3 a0 = bool3(true, true, false); @@ -315,7 +315,7 @@ public static void bool3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -339,7 +339,7 @@ public static void bool3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_bitwise_xor_wide_wide() { bool3 a0 = bool3(true, false, false); @@ -363,7 +363,7 @@ public static void bool3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_bitwise_xor_wide_scalar() { bool3 a0 = bool3(false, false, true); @@ -387,7 +387,7 @@ public static void bool3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -411,7 +411,7 @@ public static void bool3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_operator_logical_not() { bool3 a0 = bool3(true, true, false); diff --git a/src/Tests/Tests/Shared/TestBool3x2.gen.cs b/src/Tests/Tests/Shared/TestBool3x2.gen.cs index 5be3fb7b..816c30fd 100644 --- a/src/Tests/Tests/Shared/TestBool3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool3x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_equal_wide_wide() { bool3x2 a0 = bool3x2(true, false, true, false, false, true); @@ -39,7 +39,7 @@ public static void bool3x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_equal_wide_scalar() { bool3x2 a0 = bool3x2(false, true, false, false, false, false); @@ -63,7 +63,7 @@ public static void bool3x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool3x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_not_equal_wide_wide() { bool3x2 a0 = bool3x2(true, true, true, false, false, true); @@ -111,7 +111,7 @@ public static void bool3x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_not_equal_wide_scalar() { bool3x2 a0 = bool3x2(false, true, false, true, true, false); @@ -135,7 +135,7 @@ public static void bool3x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool3x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_bitwise_and_wide_wide() { bool3x2 a0 = bool3x2(false, false, true, true, false, false); @@ -183,7 +183,7 @@ public static void bool3x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_bitwise_and_wide_scalar() { bool3x2 a0 = bool3x2(true, false, false, true, true, false); @@ -207,7 +207,7 @@ public static void bool3x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool3x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_bitwise_or_wide_wide() { bool3x2 a0 = bool3x2(true, true, true, false, true, false); @@ -255,7 +255,7 @@ public static void bool3x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_bitwise_or_wide_scalar() { bool3x2 a0 = bool3x2(true, true, false, true, true, true); @@ -279,7 +279,7 @@ public static void bool3x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool3x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_bitwise_xor_wide_wide() { bool3x2 a0 = bool3x2(true, false, false, true, false, false); @@ -327,7 +327,7 @@ public static void bool3x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_bitwise_xor_wide_scalar() { bool3x2 a0 = bool3x2(false, false, true, true, false, false); @@ -351,7 +351,7 @@ public static void bool3x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool3x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x2_operator_logical_not() { bool3x2 a0 = bool3x2(true, true, false, false, true, false); diff --git a/src/Tests/Tests/Shared/TestBool3x3.gen.cs b/src/Tests/Tests/Shared/TestBool3x3.gen.cs index 4541a352..6c5b1b9b 100644 --- a/src/Tests/Tests/Shared/TestBool3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool3x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_equal_wide_wide() { bool3x3 a0 = bool3x3(true, false, true, false, false, true, false, false, true); @@ -39,7 +39,7 @@ public static void bool3x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_equal_wide_scalar() { bool3x3 a0 = bool3x3(false, true, false, false, false, false, true, false, false); @@ -63,7 +63,7 @@ public static void bool3x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool3x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_not_equal_wide_wide() { bool3x3 a0 = bool3x3(true, true, true, false, false, true, false, false, false); @@ -111,7 +111,7 @@ public static void bool3x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_not_equal_wide_scalar() { bool3x3 a0 = bool3x3(false, true, false, true, true, false, false, false, false); @@ -135,7 +135,7 @@ public static void bool3x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool3x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_bitwise_and_wide_wide() { bool3x3 a0 = bool3x3(false, false, true, true, false, false, true, true, true); @@ -183,7 +183,7 @@ public static void bool3x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_bitwise_and_wide_scalar() { bool3x3 a0 = bool3x3(true, false, false, true, true, false, false, false, false); @@ -207,7 +207,7 @@ public static void bool3x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool3x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_bitwise_or_wide_wide() { bool3x3 a0 = bool3x3(true, true, true, false, true, false, true, true, false); @@ -255,7 +255,7 @@ public static void bool3x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_bitwise_or_wide_scalar() { bool3x3 a0 = bool3x3(true, true, false, true, true, true, true, false, true); @@ -279,7 +279,7 @@ public static void bool3x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool3x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_bitwise_xor_wide_wide() { bool3x3 a0 = bool3x3(true, false, false, true, false, false, false, true, false); @@ -327,7 +327,7 @@ public static void bool3x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_bitwise_xor_wide_scalar() { bool3x3 a0 = bool3x3(false, false, true, true, false, false, false, false, false); @@ -351,7 +351,7 @@ public static void bool3x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool3x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x3_operator_logical_not() { bool3x3 a0 = bool3x3(true, true, false, false, true, false, true, false, true); diff --git a/src/Tests/Tests/Shared/TestBool3x4.gen.cs b/src/Tests/Tests/Shared/TestBool3x4.gen.cs index 02565c51..8d7d6245 100644 --- a/src/Tests/Tests/Shared/TestBool3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool3x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool3x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_equal_wide_wide() { bool3x4 a0 = bool3x4(true, false, true, false, false, true, false, false, true, false, true, false); @@ -39,7 +39,7 @@ public static void bool3x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_equal_wide_scalar() { bool3x4 a0 = bool3x4(false, true, false, false, false, false, true, false, false, false, true, true); @@ -63,7 +63,7 @@ public static void bool3x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool3x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_not_equal_wide_wide() { bool3x4 a0 = bool3x4(true, true, true, false, false, true, false, false, false, false, true, true); @@ -111,7 +111,7 @@ public static void bool3x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_not_equal_wide_scalar() { bool3x4 a0 = bool3x4(false, true, false, true, true, false, false, false, false, false, false, false); @@ -135,7 +135,7 @@ public static void bool3x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool3x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_bitwise_and_wide_wide() { bool3x4 a0 = bool3x4(false, false, true, true, false, false, true, true, true, false, true, true); @@ -183,7 +183,7 @@ public static void bool3x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_bitwise_and_wide_scalar() { bool3x4 a0 = bool3x4(true, false, false, true, true, false, false, false, false, false, true, true); @@ -207,7 +207,7 @@ public static void bool3x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool3x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_bitwise_or_wide_wide() { bool3x4 a0 = bool3x4(true, true, true, false, true, false, true, true, false, true, true, true); @@ -255,7 +255,7 @@ public static void bool3x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_bitwise_or_wide_scalar() { bool3x4 a0 = bool3x4(true, true, false, true, true, true, true, false, true, false, false, true); @@ -279,7 +279,7 @@ public static void bool3x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool3x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_bitwise_xor_wide_wide() { bool3x4 a0 = bool3x4(true, false, false, true, false, false, false, true, false, false, true, true); @@ -327,7 +327,7 @@ public static void bool3x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_bitwise_xor_wide_scalar() { bool3x4 a0 = bool3x4(false, false, true, true, false, false, false, false, false, false, false, true); @@ -351,7 +351,7 @@ public static void bool3x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool3x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3x4_operator_logical_not() { bool3x4 a0 = bool3x4(true, true, false, false, true, false, true, false, true, false, false, false); diff --git a/src/Tests/Tests/Shared/TestBool4.gen.cs b/src/Tests/Tests/Shared/TestBool4.gen.cs index 4faf4e36..c2c8be05 100644 --- a/src/Tests/Tests/Shared/TestBool4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_constructor() { bool4 a = new bool4(false, true, false, true); @@ -25,7 +25,7 @@ public static void bool4_constructor() TestUtils.AreEqual(true, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_scalar_constructor() { bool4 a = new bool4(true); @@ -35,7 +35,7 @@ public static void bool4_scalar_constructor() TestUtils.AreEqual(true, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_static_constructor() { bool4 a = bool4(false, true, false, true); @@ -45,7 +45,7 @@ public static void bool4_static_constructor() TestUtils.AreEqual(true, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_static_scalar_constructor() { bool4 a = bool4(true); @@ -55,7 +55,7 @@ public static void bool4_static_scalar_constructor() TestUtils.AreEqual(true, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_equal_wide_wide() { bool4 a0 = bool4(true, false, true, false); @@ -79,7 +79,7 @@ public static void bool4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_equal_wide_scalar() { bool4 a0 = bool4(false, true, false, false); @@ -103,7 +103,7 @@ public static void bool4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_equal_scalar_wide() { bool a0 = (false); @@ -127,7 +127,7 @@ public static void bool4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_not_equal_wide_wide() { bool4 a0 = bool4(true, true, true, false); @@ -151,7 +151,7 @@ public static void bool4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_not_equal_wide_scalar() { bool4 a0 = bool4(false, true, false, true); @@ -175,7 +175,7 @@ public static void bool4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -199,7 +199,7 @@ public static void bool4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_bitwise_and_wide_wide() { bool4 a0 = bool4(false, false, true, true); @@ -223,7 +223,7 @@ public static void bool4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_bitwise_and_wide_scalar() { bool4 a0 = bool4(true, false, false, true); @@ -247,7 +247,7 @@ public static void bool4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -271,7 +271,7 @@ public static void bool4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_bitwise_or_wide_wide() { bool4 a0 = bool4(true, true, true, false); @@ -295,7 +295,7 @@ public static void bool4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_bitwise_or_wide_scalar() { bool4 a0 = bool4(true, true, false, true); @@ -319,7 +319,7 @@ public static void bool4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -343,7 +343,7 @@ public static void bool4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_bitwise_xor_wide_wide() { bool4 a0 = bool4(true, false, false, true); @@ -367,7 +367,7 @@ public static void bool4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_bitwise_xor_wide_scalar() { bool4 a0 = bool4(false, false, true, true); @@ -391,7 +391,7 @@ public static void bool4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -415,7 +415,7 @@ public static void bool4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_operator_logical_not() { bool4 a0 = bool4(true, true, false, false); diff --git a/src/Tests/Tests/Shared/TestBool4x2.gen.cs b/src/Tests/Tests/Shared/TestBool4x2.gen.cs index b7585d45..40511294 100644 --- a/src/Tests/Tests/Shared/TestBool4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool4x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_equal_wide_wide() { bool4x2 a0 = bool4x2(true, false, true, false, false, true, false, false); @@ -39,7 +39,7 @@ public static void bool4x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_equal_wide_scalar() { bool4x2 a0 = bool4x2(false, true, false, false, false, false, true, false); @@ -63,7 +63,7 @@ public static void bool4x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool4x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_not_equal_wide_wide() { bool4x2 a0 = bool4x2(true, true, true, false, false, true, false, false); @@ -111,7 +111,7 @@ public static void bool4x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_not_equal_wide_scalar() { bool4x2 a0 = bool4x2(false, true, false, true, true, false, false, false); @@ -135,7 +135,7 @@ public static void bool4x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool4x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_bitwise_and_wide_wide() { bool4x2 a0 = bool4x2(false, false, true, true, false, false, true, true); @@ -183,7 +183,7 @@ public static void bool4x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_bitwise_and_wide_scalar() { bool4x2 a0 = bool4x2(true, false, false, true, true, false, false, false); @@ -207,7 +207,7 @@ public static void bool4x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool4x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_bitwise_or_wide_wide() { bool4x2 a0 = bool4x2(true, true, true, false, true, false, true, true); @@ -255,7 +255,7 @@ public static void bool4x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_bitwise_or_wide_scalar() { bool4x2 a0 = bool4x2(true, true, false, true, true, true, true, false); @@ -279,7 +279,7 @@ public static void bool4x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool4x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_bitwise_xor_wide_wide() { bool4x2 a0 = bool4x2(true, false, false, true, false, false, false, true); @@ -327,7 +327,7 @@ public static void bool4x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_bitwise_xor_wide_scalar() { bool4x2 a0 = bool4x2(false, false, true, true, false, false, false, false); @@ -351,7 +351,7 @@ public static void bool4x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool4x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x2_operator_logical_not() { bool4x2 a0 = bool4x2(true, true, false, false, true, false, true, false); diff --git a/src/Tests/Tests/Shared/TestBool4x3.gen.cs b/src/Tests/Tests/Shared/TestBool4x3.gen.cs index 012ad7e5..ea0d9fe2 100644 --- a/src/Tests/Tests/Shared/TestBool4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool4x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_equal_wide_wide() { bool4x3 a0 = bool4x3(true, false, true, false, false, true, false, false, true, false, true, false); @@ -39,7 +39,7 @@ public static void bool4x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_equal_wide_scalar() { bool4x3 a0 = bool4x3(false, true, false, false, false, false, true, false, false, false, true, true); @@ -63,7 +63,7 @@ public static void bool4x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool4x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_not_equal_wide_wide() { bool4x3 a0 = bool4x3(true, true, true, false, false, true, false, false, false, false, true, true); @@ -111,7 +111,7 @@ public static void bool4x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_not_equal_wide_scalar() { bool4x3 a0 = bool4x3(false, true, false, true, true, false, false, false, false, false, false, false); @@ -135,7 +135,7 @@ public static void bool4x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool4x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_bitwise_and_wide_wide() { bool4x3 a0 = bool4x3(false, false, true, true, false, false, true, true, true, false, true, true); @@ -183,7 +183,7 @@ public static void bool4x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_bitwise_and_wide_scalar() { bool4x3 a0 = bool4x3(true, false, false, true, true, false, false, false, false, false, true, true); @@ -207,7 +207,7 @@ public static void bool4x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool4x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_bitwise_or_wide_wide() { bool4x3 a0 = bool4x3(true, true, true, false, true, false, true, true, false, true, true, true); @@ -255,7 +255,7 @@ public static void bool4x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_bitwise_or_wide_scalar() { bool4x3 a0 = bool4x3(true, true, false, true, true, true, true, false, true, false, false, true); @@ -279,7 +279,7 @@ public static void bool4x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool4x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_bitwise_xor_wide_wide() { bool4x3 a0 = bool4x3(true, false, false, true, false, false, false, true, false, false, true, true); @@ -327,7 +327,7 @@ public static void bool4x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_bitwise_xor_wide_scalar() { bool4x3 a0 = bool4x3(false, false, true, true, false, false, false, false, false, false, false, true); @@ -351,7 +351,7 @@ public static void bool4x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool4x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x3_operator_logical_not() { bool4x3 a0 = bool4x3(true, true, false, false, true, false, true, false, true, false, false, false); diff --git a/src/Tests/Tests/Shared/TestBool4x4.gen.cs b/src/Tests/Tests/Shared/TestBool4x4.gen.cs index 9cb7e412..11b5e424 100644 --- a/src/Tests/Tests/Shared/TestBool4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestBool4x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestBool4x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_equal_wide_wide() { bool4x4 a0 = bool4x4(true, false, true, false, false, true, false, false, true, false, true, false, true, true, false, true); @@ -39,7 +39,7 @@ public static void bool4x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_equal_wide_scalar() { bool4x4 a0 = bool4x4(false, true, false, false, false, false, true, false, false, false, true, true, false, true, false, true); @@ -63,7 +63,7 @@ public static void bool4x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_equal_scalar_wide() { bool a0 = (false); @@ -87,7 +87,7 @@ public static void bool4x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_not_equal_wide_wide() { bool4x4 a0 = bool4x4(true, true, true, false, false, true, false, false, false, false, true, true, true, true, true, true); @@ -111,7 +111,7 @@ public static void bool4x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_not_equal_wide_scalar() { bool4x4 a0 = bool4x4(false, true, false, true, true, false, false, false, false, false, false, false, false, true, false, false); @@ -135,7 +135,7 @@ public static void bool4x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_not_equal_scalar_wide() { bool a0 = (true); @@ -159,7 +159,7 @@ public static void bool4x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_bitwise_and_wide_wide() { bool4x4 a0 = bool4x4(false, false, true, true, false, false, true, true, true, false, true, true, true, true, false, false); @@ -183,7 +183,7 @@ public static void bool4x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_bitwise_and_wide_scalar() { bool4x4 a0 = bool4x4(true, false, false, true, true, false, false, false, false, false, true, true, true, false, false, true); @@ -207,7 +207,7 @@ public static void bool4x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_bitwise_and_scalar_wide() { bool a0 = (false); @@ -231,7 +231,7 @@ public static void bool4x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_bitwise_or_wide_wide() { bool4x4 a0 = bool4x4(true, true, true, false, true, false, true, true, false, true, true, true, true, true, true, false); @@ -255,7 +255,7 @@ public static void bool4x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_bitwise_or_wide_scalar() { bool4x4 a0 = bool4x4(true, true, false, true, true, true, true, false, true, false, false, true, false, false, true, false); @@ -279,7 +279,7 @@ public static void bool4x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_bitwise_or_scalar_wide() { bool a0 = (true); @@ -303,7 +303,7 @@ public static void bool4x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_bitwise_xor_wide_wide() { bool4x4 a0 = bool4x4(true, false, false, true, false, false, false, true, false, false, true, true, false, false, true, false); @@ -327,7 +327,7 @@ public static void bool4x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_bitwise_xor_wide_scalar() { bool4x4 a0 = bool4x4(false, false, true, true, false, false, false, false, false, false, false, true, false, true, true, true); @@ -351,7 +351,7 @@ public static void bool4x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_bitwise_xor_scalar_wide() { bool a0 = (true); @@ -375,7 +375,7 @@ public static void bool4x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4x4_operator_logical_not() { bool4x4 a0 = bool4x4(true, true, false, false, true, false, true, false, true, false, false, false, false, true, true, false); diff --git a/src/Tests/Tests/Shared/TestDouble2.gen.cs b/src/Tests/Tests/Shared/TestDouble2.gen.cs index 30a3f849..f07b51f5 100644 --- a/src/Tests/Tests/Shared/TestDouble2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2.gen.cs @@ -15,14 +15,14 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_zero() { TestUtils.AreEqual(0.0, double2.zero.x); TestUtils.AreEqual(0.0, double2.zero.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_constructor() { double2 a = new double2(1, 2); @@ -30,7 +30,7 @@ public static void double2_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_scalar_constructor() { double2 a = new double2(17.0); @@ -38,7 +38,7 @@ public static void double2_scalar_constructor() TestUtils.AreEqual(17.0, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_static_constructor() { double2 a = double2(1, 2); @@ -46,7 +46,7 @@ public static void double2_static_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_static_scalar_constructor() { double2 a = double2(17.0); @@ -54,7 +54,7 @@ public static void double2_static_scalar_constructor() TestUtils.AreEqual(17.0, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_equal_wide_wide() { double2 a0 = double2(492.15758275061728, -495.20632027797694); @@ -78,7 +78,7 @@ public static void double2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_equal_wide_scalar() { double2 a0 = double2(-303.2300766926399, 451.52631327674089); @@ -102,7 +102,7 @@ public static void double2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -126,7 +126,7 @@ public static void double2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_not_equal_wide_wide() { double2 a0 = double2(430.8425316432689, 104.69001798736394); @@ -150,7 +150,7 @@ public static void double2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_not_equal_wide_scalar() { double2 a0 = double2(-16.914588697680529, 168.83411486858233); @@ -174,7 +174,7 @@ public static void double2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -198,7 +198,7 @@ public static void double2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_less_wide_wide() { double2 a0 = double2(196.84256825076534, 336.40979997087732); @@ -222,7 +222,7 @@ public static void double2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_less_wide_scalar() { double2 a0 = double2(-132.05731708000292, -192.46500477216438); @@ -246,7 +246,7 @@ public static void double2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -270,7 +270,7 @@ public static void double2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_greater_wide_wide() { double2 a0 = double2(483.50140141113729, 310.81563415695712); @@ -294,7 +294,7 @@ public static void double2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_greater_wide_scalar() { double2 a0 = double2(64.317918092160426, -397.70346445483318); @@ -318,7 +318,7 @@ public static void double2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -342,7 +342,7 @@ public static void double2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_less_equal_wide_wide() { double2 a0 = double2(-438.52313753521219, 210.48942837980087); @@ -366,7 +366,7 @@ public static void double2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_less_equal_wide_scalar() { double2 a0 = double2(193.4958237118534, 168.91555197952107); @@ -390,7 +390,7 @@ public static void double2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -414,7 +414,7 @@ public static void double2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_greater_equal_wide_wide() { double2 a0 = double2(-507.92858409692, 504.49748181947393); @@ -438,7 +438,7 @@ public static void double2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_greater_equal_wide_scalar() { double2 a0 = double2(465.15218732559686, -424.8860745024337); @@ -462,7 +462,7 @@ public static void double2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -486,7 +486,7 @@ public static void double2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_add_wide_wide() { double2 a0 = double2(506.12905263627374, -501.77980803967444); @@ -510,7 +510,7 @@ public static void double2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_add_wide_scalar() { double2 a0 = double2(-194.51420387742769, 338.54838696985894); @@ -534,7 +534,7 @@ public static void double2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -558,7 +558,7 @@ public static void double2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_sub_wide_wide() { double2 a0 = double2(160.4922617229131, 11.223957305412682); @@ -582,7 +582,7 @@ public static void double2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_sub_wide_scalar() { double2 a0 = double2(207.38960108877609, 248.45773684627272); @@ -606,7 +606,7 @@ public static void double2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -630,7 +630,7 @@ public static void double2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_mul_wide_wide() { double2 a0 = double2(-482.71381710596097, -407.29348559272171); @@ -654,7 +654,7 @@ public static void double2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_mul_wide_scalar() { double2 a0 = double2(-96.318821236639678, -277.14229239017811); @@ -678,7 +678,7 @@ public static void double2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -702,7 +702,7 @@ public static void double2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_div_wide_wide() { double2 a0 = double2(-353.13144390337703, -102.79985456485292); @@ -726,7 +726,7 @@ public static void double2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_div_wide_scalar() { double2 a0 = double2(171.34242184988341, 0.10338377957384637); @@ -750,7 +750,7 @@ public static void double2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -774,7 +774,7 @@ public static void double2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_mod_wide_wide() { double2 a0 = double2(-388.81249422059045, 181.68118842955732); @@ -798,7 +798,7 @@ public static void double2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_mod_wide_scalar() { double2 a0 = double2(-244.49962889612635, -211.81931958525411); @@ -822,7 +822,7 @@ public static void double2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -846,7 +846,7 @@ public static void double2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_plus() { double2 a0 = double2(-418.82956357432045, -405.79894823851015); @@ -866,7 +866,7 @@ public static void double2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_neg() { double2 a0 = double2(148.46174890755753, -467.12267873581624); @@ -886,7 +886,7 @@ public static void double2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_prefix_inc() { double2 a0 = double2(-139.84208137348389, -56.743654039103376); @@ -906,7 +906,7 @@ public static void double2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_postfix_inc() { double2 a0 = double2(-396.6697396695007, 511.20749378167443); @@ -926,7 +926,7 @@ public static void double2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_prefix_dec() { double2 a0 = double2(123.12869626056806, 256.8437465433235); @@ -946,7 +946,7 @@ public static void double2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_operator_postfix_dec() { double2 a0 = double2(379.68831723727669, 302.69287814884115); @@ -966,7 +966,7 @@ public static void double2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_shuffle_result_1() { double2 a = double2(0, 1); @@ -978,7 +978,7 @@ public static void double2_shuffle_result_1() TestUtils.AreEqual((3), shuffle(a, b, ShuffleComponent.RightY)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_shuffle_result_2() { double2 a = double2(0, 1); @@ -1002,7 +1002,7 @@ public static void double2_shuffle_result_2() TestUtils.AreEqual(double2(3, 3), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.RightY)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_shuffle_result_3() { double2 a = double2(0, 1); @@ -1026,7 +1026,7 @@ public static void double2_shuffle_result_3() TestUtils.AreEqual(double3(3, 1, 1), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.LeftY)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_shuffle_result_4() { double2 a = double2(0, 1); diff --git a/src/Tests/Tests/Shared/TestDouble2x2.gen.cs b/src/Tests/Tests/Shared/TestDouble2x2.gen.cs index 5531de5f..5b035267 100644 --- a/src/Tests/Tests/Shared/TestDouble2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble2x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_zero() { TestUtils.AreEqual(0.0, double2x2.zero.c0.x); @@ -24,7 +24,7 @@ public static void double2x2_zero() TestUtils.AreEqual(0.0, double2x2.zero.c1.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_identity() { TestUtils.AreEqual(1.0, double2x2.identity.c0.x); @@ -33,7 +33,7 @@ public static void double2x2_identity() TestUtils.AreEqual(1.0, double2x2.identity.c1.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_equal_wide_wide() { double2x2 a0 = double2x2(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182); @@ -57,7 +57,7 @@ public static void double2x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_equal_wide_scalar() { double2x2 a0 = double2x2(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995); @@ -81,7 +81,7 @@ public static void double2x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -105,7 +105,7 @@ public static void double2x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_not_equal_wide_wide() { double2x2 a0 = double2x2(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048); @@ -129,7 +129,7 @@ public static void double2x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_not_equal_wide_scalar() { double2x2 a0 = double2x2(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137); @@ -153,7 +153,7 @@ public static void double2x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -177,7 +177,7 @@ public static void double2x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_less_wide_wide() { double2x2 a0 = double2x2(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963); @@ -201,7 +201,7 @@ public static void double2x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_less_wide_scalar() { double2x2 a0 = double2x2(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561); @@ -225,7 +225,7 @@ public static void double2x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -249,7 +249,7 @@ public static void double2x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_greater_wide_wide() { double2x2 a0 = double2x2(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671); @@ -273,7 +273,7 @@ public static void double2x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_greater_wide_scalar() { double2x2 a0 = double2x2(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157); @@ -297,7 +297,7 @@ public static void double2x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -321,7 +321,7 @@ public static void double2x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_less_equal_wide_wide() { double2x2 a0 = double2x2(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857); @@ -345,7 +345,7 @@ public static void double2x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_less_equal_wide_scalar() { double2x2 a0 = double2x2(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292); @@ -369,7 +369,7 @@ public static void double2x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -393,7 +393,7 @@ public static void double2x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_greater_equal_wide_wide() { double2x2 a0 = double2x2(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784); @@ -417,7 +417,7 @@ public static void double2x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_greater_equal_wide_scalar() { double2x2 a0 = double2x2(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356); @@ -441,7 +441,7 @@ public static void double2x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -465,7 +465,7 @@ public static void double2x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_add_wide_wide() { double2x2 a0 = double2x2(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274); @@ -489,7 +489,7 @@ public static void double2x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_add_wide_scalar() { double2x2 a0 = double2x2(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752); @@ -513,7 +513,7 @@ public static void double2x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -537,7 +537,7 @@ public static void double2x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_sub_wide_wide() { double2x2 a0 = double2x2(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311); @@ -561,7 +561,7 @@ public static void double2x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_sub_wide_scalar() { double2x2 a0 = double2x2(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506); @@ -585,7 +585,7 @@ public static void double2x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -609,7 +609,7 @@ public static void double2x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_mul_wide_wide() { double2x2 a0 = double2x2(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182); @@ -633,7 +633,7 @@ public static void double2x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_mul_wide_scalar() { double2x2 a0 = double2x2(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409); @@ -657,7 +657,7 @@ public static void double2x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -681,7 +681,7 @@ public static void double2x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_div_wide_wide() { double2x2 a0 = double2x2(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176); @@ -705,7 +705,7 @@ public static void double2x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_div_wide_scalar() { double2x2 a0 = double2x2(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078); @@ -729,7 +729,7 @@ public static void double2x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -753,7 +753,7 @@ public static void double2x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_mod_wide_wide() { double2x2 a0 = double2x2(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813); @@ -777,7 +777,7 @@ public static void double2x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_mod_wide_scalar() { double2x2 a0 = double2x2(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672); @@ -801,7 +801,7 @@ public static void double2x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -825,7 +825,7 @@ public static void double2x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_plus() { double2x2 a0 = double2x2(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421); @@ -845,7 +845,7 @@ public static void double2x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_neg() { double2x2 a0 = double2x2(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463); @@ -865,7 +865,7 @@ public static void double2x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_prefix_inc() { double2x2 a0 = double2x2(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962); @@ -885,7 +885,7 @@ public static void double2x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_postfix_inc() { double2x2 a0 = double2x2(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153); @@ -905,7 +905,7 @@ public static void double2x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_prefix_dec() { double2x2 a0 = double2x2(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563); @@ -925,7 +925,7 @@ public static void double2x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x2_operator_postfix_dec() { double2x2 a0 = double2x2(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962); diff --git a/src/Tests/Tests/Shared/TestDouble2x3.gen.cs b/src/Tests/Tests/Shared/TestDouble2x3.gen.cs index 20df3853..0b5cb5cf 100644 --- a/src/Tests/Tests/Shared/TestDouble2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble2x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_zero() { TestUtils.AreEqual(0.0, double2x3.zero.c0.x); @@ -26,7 +26,7 @@ public static void double2x3_zero() TestUtils.AreEqual(0.0, double2x3.zero.c2.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_equal_wide_wide() { double2x3 a0 = double2x3(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749); @@ -50,7 +50,7 @@ public static void double2x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_equal_wide_scalar() { double2x3 a0 = double2x3(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315); @@ -74,7 +74,7 @@ public static void double2x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -98,7 +98,7 @@ public static void double2x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_not_equal_wide_wide() { double2x3 a0 = double2x3(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379); @@ -122,7 +122,7 @@ public static void double2x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_not_equal_wide_scalar() { double2x3 a0 = double2x3(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959); @@ -146,7 +146,7 @@ public static void double2x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -170,7 +170,7 @@ public static void double2x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_less_wide_wide() { double2x3 a0 = double2x3(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774); @@ -194,7 +194,7 @@ public static void double2x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_less_wide_scalar() { double2x3 a0 = double2x3(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879); @@ -218,7 +218,7 @@ public static void double2x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -242,7 +242,7 @@ public static void double2x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_greater_wide_wide() { double2x3 a0 = double2x3(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479); @@ -266,7 +266,7 @@ public static void double2x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_greater_wide_scalar() { double2x3 a0 = double2x3(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809); @@ -290,7 +290,7 @@ public static void double2x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -314,7 +314,7 @@ public static void double2x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_less_equal_wide_wide() { double2x3 a0 = double2x3(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475); @@ -338,7 +338,7 @@ public static void double2x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_less_equal_wide_scalar() { double2x3 a0 = double2x3(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136); @@ -362,7 +362,7 @@ public static void double2x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -386,7 +386,7 @@ public static void double2x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_greater_equal_wide_wide() { double2x3 a0 = double2x3(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193); @@ -410,7 +410,7 @@ public static void double2x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_greater_equal_wide_scalar() { double2x3 a0 = double2x3(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976); @@ -434,7 +434,7 @@ public static void double2x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -458,7 +458,7 @@ public static void double2x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_add_wide_wide() { double2x3 a0 = double2x3(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056); @@ -482,7 +482,7 @@ public static void double2x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_add_wide_scalar() { double2x3 a0 = double2x3(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166); @@ -506,7 +506,7 @@ public static void double2x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -530,7 +530,7 @@ public static void double2x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_sub_wide_wide() { double2x3 a0 = double2x3(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053); @@ -554,7 +554,7 @@ public static void double2x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_sub_wide_scalar() { double2x3 a0 = double2x3(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896); @@ -578,7 +578,7 @@ public static void double2x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -602,7 +602,7 @@ public static void double2x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_mul_wide_wide() { double2x3 a0 = double2x3(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747); @@ -626,7 +626,7 @@ public static void double2x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_mul_wide_scalar() { double2x3 a0 = double2x3(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229); @@ -650,7 +650,7 @@ public static void double2x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -674,7 +674,7 @@ public static void double2x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_div_wide_wide() { double2x3 a0 = double2x3(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758); @@ -698,7 +698,7 @@ public static void double2x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_div_wide_scalar() { double2x3 a0 = double2x3(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509); @@ -722,7 +722,7 @@ public static void double2x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -746,7 +746,7 @@ public static void double2x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_mod_wide_wide() { double2x3 a0 = double2x3(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406); @@ -770,7 +770,7 @@ public static void double2x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_mod_wide_scalar() { double2x3 a0 = double2x3(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221); @@ -794,7 +794,7 @@ public static void double2x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -818,7 +818,7 @@ public static void double2x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_plus() { double2x3 a0 = double2x3(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287); @@ -838,7 +838,7 @@ public static void double2x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_neg() { double2x3 a0 = double2x3(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605); @@ -858,7 +858,7 @@ public static void double2x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_prefix_inc() { double2x3 a0 = double2x3(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198); @@ -878,7 +878,7 @@ public static void double2x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_postfix_inc() { double2x3 a0 = double2x3(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219); @@ -898,7 +898,7 @@ public static void double2x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_prefix_dec() { double2x3 a0 = double2x3(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339); @@ -918,7 +918,7 @@ public static void double2x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x3_operator_postfix_dec() { double2x3 a0 = double2x3(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231); diff --git a/src/Tests/Tests/Shared/TestDouble2x4.gen.cs b/src/Tests/Tests/Shared/TestDouble2x4.gen.cs index 822a43bb..c519d6f4 100644 --- a/src/Tests/Tests/Shared/TestDouble2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble2x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble2x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_zero() { TestUtils.AreEqual(0.0, double2x4.zero.c0.x); @@ -28,7 +28,7 @@ public static void double2x4_zero() TestUtils.AreEqual(0.0, double2x4.zero.c3.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_equal_wide_wide() { double2x4 a0 = double2x4(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749, -23.890404473939157, -16.8197190839889); @@ -52,7 +52,7 @@ public static void double2x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_equal_wide_scalar() { double2x4 a0 = double2x4(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315, 159.87609656149334, -59.558379439431405); @@ -76,7 +76,7 @@ public static void double2x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -100,7 +100,7 @@ public static void double2x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_not_equal_wide_wide() { double2x4 a0 = double2x4(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379, -509.32682561749908, -160.53807719076895); @@ -124,7 +124,7 @@ public static void double2x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_not_equal_wide_scalar() { double2x4 a0 = double2x4(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959, -197.12796053529155, -169.09985860115842); @@ -148,7 +148,7 @@ public static void double2x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -172,7 +172,7 @@ public static void double2x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_less_wide_wide() { double2x4 a0 = double2x4(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774, 8.8392293494376872, -333.81671563434259); @@ -196,7 +196,7 @@ public static void double2x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_less_wide_scalar() { double2x4 a0 = double2x4(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879, -158.24074537970159, 437.34587522845061); @@ -220,7 +220,7 @@ public static void double2x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -244,7 +244,7 @@ public static void double2x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_greater_wide_wide() { double2x4 a0 = double2x4(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479, -14.897393471979228, -33.817441717636484); @@ -268,7 +268,7 @@ public static void double2x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_greater_wide_scalar() { double2x4 a0 = double2x4(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809, 286.1994608781298, 280.81334818564972); @@ -292,7 +292,7 @@ public static void double2x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -316,7 +316,7 @@ public static void double2x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_less_equal_wide_wide() { double2x4 a0 = double2x4(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475, -97.948485181642923, 437.29539009430232); @@ -340,7 +340,7 @@ public static void double2x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_less_equal_wide_scalar() { double2x4 a0 = double2x4(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136, 241.36115776810846, -463.81641242644582); @@ -364,7 +364,7 @@ public static void double2x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -388,7 +388,7 @@ public static void double2x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_greater_equal_wide_wide() { double2x4 a0 = double2x4(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193, -463.70202157632542, 387.44885772627265); @@ -412,7 +412,7 @@ public static void double2x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_greater_equal_wide_scalar() { double2x4 a0 = double2x4(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976, 16.353385694489475, -344.55997316192838); @@ -436,7 +436,7 @@ public static void double2x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -460,7 +460,7 @@ public static void double2x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_add_wide_wide() { double2x4 a0 = double2x4(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056, 424.34407659263536, 87.791079800478656); @@ -484,7 +484,7 @@ public static void double2x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_add_wide_scalar() { double2x4 a0 = double2x4(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166, 30.916145577522116, 60.37435224483454); @@ -508,7 +508,7 @@ public static void double2x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -532,7 +532,7 @@ public static void double2x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_sub_wide_wide() { double2x4 a0 = double2x4(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053, -410.46404786150163, -401.38464398001537); @@ -556,7 +556,7 @@ public static void double2x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_sub_wide_scalar() { double2x4 a0 = double2x4(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896, 18.856238135535364, -44.96160151667965); @@ -580,7 +580,7 @@ public static void double2x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -604,7 +604,7 @@ public static void double2x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_mul_wide_wide() { double2x4 a0 = double2x4(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747, 183.98730739578014, -241.33547770294149); @@ -628,7 +628,7 @@ public static void double2x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_mul_wide_scalar() { double2x4 a0 = double2x4(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229, -455.50827500573746, -389.24327367788334); @@ -652,7 +652,7 @@ public static void double2x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -676,7 +676,7 @@ public static void double2x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_div_wide_wide() { double2x4 a0 = double2x4(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758, -136.05959779399427, -370.4710053738537); @@ -700,7 +700,7 @@ public static void double2x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_div_wide_scalar() { double2x4 a0 = double2x4(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509, -127.44869118903239, -79.7448890580539); @@ -724,7 +724,7 @@ public static void double2x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -748,7 +748,7 @@ public static void double2x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_mod_wide_wide() { double2x4 a0 = double2x4(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406, 283.318293464984, 122.71651297561664); @@ -772,7 +772,7 @@ public static void double2x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_mod_wide_scalar() { double2x4 a0 = double2x4(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221, 281.30965412841624, -226.53575311719243); @@ -796,7 +796,7 @@ public static void double2x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -820,7 +820,7 @@ public static void double2x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_plus() { double2x4 a0 = double2x4(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287, 293.74197902052754, -373.015422279488); @@ -840,7 +840,7 @@ public static void double2x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_neg() { double2x4 a0 = double2x4(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605, -54.958759571872065, -382.98981803608581); @@ -860,7 +860,7 @@ public static void double2x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_prefix_inc() { double2x4 a0 = double2x4(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198, -392.73151058365193, -300.19410218866267); @@ -880,7 +880,7 @@ public static void double2x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_postfix_inc() { double2x4 a0 = double2x4(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219, -81.393423356764686, 66.719732554033271); @@ -900,7 +900,7 @@ public static void double2x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_prefix_dec() { double2x4 a0 = double2x4(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339, 187.87412580655609, -236.2252043393558); @@ -920,7 +920,7 @@ public static void double2x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2x4_operator_postfix_dec() { double2x4 a0 = double2x4(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231, -63.655158787805192, 355.26110069605568); diff --git a/src/Tests/Tests/Shared/TestDouble3.gen.cs b/src/Tests/Tests/Shared/TestDouble3.gen.cs index 2bd08a5d..59b1478b 100644 --- a/src/Tests/Tests/Shared/TestDouble3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_zero() { TestUtils.AreEqual(0.0, double3.zero.x); @@ -23,7 +23,7 @@ public static void double3_zero() TestUtils.AreEqual(0.0, double3.zero.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_constructor() { double3 a = new double3(1, 2, 3); @@ -32,7 +32,7 @@ public static void double3_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_scalar_constructor() { double3 a = new double3(17.0); @@ -41,7 +41,7 @@ public static void double3_scalar_constructor() TestUtils.AreEqual(17.0, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_static_constructor() { double3 a = double3(1, 2, 3); @@ -50,7 +50,7 @@ public static void double3_static_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_static_scalar_constructor() { double3 a = double3(17.0); @@ -59,7 +59,7 @@ public static void double3_static_scalar_constructor() TestUtils.AreEqual(17.0, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_equal_wide_wide() { double3 a0 = double3(492.15758275061728, -495.20632027797694, 227.45765195947968); @@ -83,7 +83,7 @@ public static void double3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_equal_wide_scalar() { double3 a0 = double3(-303.2300766926399, 451.52631327674089, -253.65587413201848); @@ -107,7 +107,7 @@ public static void double3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -131,7 +131,7 @@ public static void double3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_not_equal_wide_wide() { double3 a0 = double3(430.8425316432689, 104.69001798736394, 225.80243478799355); @@ -155,7 +155,7 @@ public static void double3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_not_equal_wide_scalar() { double3 a0 = double3(-16.914588697680529, 168.83411486858233, -462.71352145760949); @@ -179,7 +179,7 @@ public static void double3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -203,7 +203,7 @@ public static void double3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_less_wide_wide() { double3 a0 = double3(196.84256825076534, 336.40979997087732, 251.96372115424072); @@ -227,7 +227,7 @@ public static void double3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_less_wide_scalar() { double3 a0 = double3(-132.05731708000292, -192.46500477216438, -66.834607870706634); @@ -251,7 +251,7 @@ public static void double3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -275,7 +275,7 @@ public static void double3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_greater_wide_wide() { double3 a0 = double3(483.50140141113729, 310.81563415695712, 106.9661896726891); @@ -299,7 +299,7 @@ public static void double3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_greater_wide_scalar() { double3 a0 = double3(64.317918092160426, -397.70346445483318, 431.87690826499693); @@ -323,7 +323,7 @@ public static void double3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -347,7 +347,7 @@ public static void double3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_less_equal_wide_wide() { double3 a0 = double3(-438.52313753521219, 210.48942837980087, 4.8773329280677444); @@ -371,7 +371,7 @@ public static void double3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_less_equal_wide_scalar() { double3 a0 = double3(193.4958237118534, 168.91555197952107, -313.9930695565385); @@ -395,7 +395,7 @@ public static void double3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -419,7 +419,7 @@ public static void double3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_greater_equal_wide_wide() { double3 a0 = double3(-507.92858409692, 504.49748181947393, -385.43449205226938); @@ -443,7 +443,7 @@ public static void double3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_greater_equal_wide_scalar() { double3 a0 = double3(465.15218732559686, -424.8860745024337, -209.22109685150025); @@ -467,7 +467,7 @@ public static void double3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -491,7 +491,7 @@ public static void double3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_add_wide_wide() { double3 a0 = double3(506.12905263627374, -501.77980803967444, 420.08479638587903); @@ -515,7 +515,7 @@ public static void double3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_add_wide_scalar() { double3 a0 = double3(-194.51420387742769, 338.54838696985894, 246.97140252169754); @@ -539,7 +539,7 @@ public static void double3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -563,7 +563,7 @@ public static void double3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_sub_wide_wide() { double3 a0 = double3(160.4922617229131, 11.223957305412682, 359.20010607279846); @@ -587,7 +587,7 @@ public static void double3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_sub_wide_scalar() { double3 a0 = double3(207.38960108877609, 248.45773684627272, -384.82393211164697); @@ -611,7 +611,7 @@ public static void double3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -635,7 +635,7 @@ public static void double3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_mul_wide_wide() { double3 a0 = double3(-482.71381710596097, -407.29348559272171, 137.70058995937029); @@ -659,7 +659,7 @@ public static void double3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_mul_wide_scalar() { double3 a0 = double3(-96.318821236639678, -277.14229239017811, -239.93690191951436); @@ -683,7 +683,7 @@ public static void double3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -707,7 +707,7 @@ public static void double3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_div_wide_wide() { double3 a0 = double3(-353.13144390337703, -102.79985456485292, 51.319128298814917); @@ -731,7 +731,7 @@ public static void double3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_div_wide_scalar() { double3 a0 = double3(171.34242184988341, 0.10338377957384637, 57.888263967767443); @@ -755,7 +755,7 @@ public static void double3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -779,7 +779,7 @@ public static void double3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_mod_wide_wide() { double3 a0 = double3(-388.81249422059045, 181.68118842955732, -167.07872470052854); @@ -803,7 +803,7 @@ public static void double3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_mod_wide_scalar() { double3 a0 = double3(-244.49962889612635, -211.81931958525411, -145.92677576184587); @@ -827,7 +827,7 @@ public static void double3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -851,7 +851,7 @@ public static void double3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_plus() { double3 a0 = double3(-418.82956357432045, -405.79894823851015, -34.041791216489742); @@ -871,7 +871,7 @@ public static void double3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_neg() { double3 a0 = double3(148.46174890755753, -467.12267873581624, 132.04719954917539); @@ -891,7 +891,7 @@ public static void double3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_prefix_inc() { double3 a0 = double3(-139.84208137348389, -56.743654039103376, -381.955324589254); @@ -911,7 +911,7 @@ public static void double3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_postfix_inc() { double3 a0 = double3(-396.6697396695007, 511.20749378167443, 249.11127030528678); @@ -931,7 +931,7 @@ public static void double3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_prefix_dec() { double3 a0 = double3(123.12869626056806, 256.8437465433235, 156.33078844674435); @@ -951,7 +951,7 @@ public static void double3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_operator_postfix_dec() { double3 a0 = double3(379.68831723727669, 302.69287814884115, -176.07134040448409); @@ -971,7 +971,7 @@ public static void double3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_shuffle_result_1() { double3 a = double3(0, 1, 2); @@ -985,7 +985,7 @@ public static void double3_shuffle_result_1() TestUtils.AreEqual((5), shuffle(a, b, ShuffleComponent.RightZ)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_shuffle_result_2() { double3 a = double3(0, 1, 2); @@ -1009,7 +1009,7 @@ public static void double3_shuffle_result_2() TestUtils.AreEqual(double2(1, 2), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftZ)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_shuffle_result_3() { double3 a = double3(0, 1, 2); @@ -1033,7 +1033,7 @@ public static void double3_shuffle_result_3() TestUtils.AreEqual(double3(4, 0, 5), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftX, ShuffleComponent.RightZ)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_shuffle_result_4() { double3 a = double3(0, 1, 2); diff --git a/src/Tests/Tests/Shared/TestDouble3x2.gen.cs b/src/Tests/Tests/Shared/TestDouble3x2.gen.cs index bbfffa3a..0fd677a3 100644 --- a/src/Tests/Tests/Shared/TestDouble3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble3x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_zero() { TestUtils.AreEqual(0.0, double3x2.zero.c0.x); @@ -26,7 +26,7 @@ public static void double3x2_zero() TestUtils.AreEqual(0.0, double3x2.zero.c1.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_equal_wide_wide() { double3x2 a0 = double3x2(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749); @@ -50,7 +50,7 @@ public static void double3x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_equal_wide_scalar() { double3x2 a0 = double3x2(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315); @@ -74,7 +74,7 @@ public static void double3x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -98,7 +98,7 @@ public static void double3x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_not_equal_wide_wide() { double3x2 a0 = double3x2(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379); @@ -122,7 +122,7 @@ public static void double3x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_not_equal_wide_scalar() { double3x2 a0 = double3x2(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959); @@ -146,7 +146,7 @@ public static void double3x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -170,7 +170,7 @@ public static void double3x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_less_wide_wide() { double3x2 a0 = double3x2(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774); @@ -194,7 +194,7 @@ public static void double3x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_less_wide_scalar() { double3x2 a0 = double3x2(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879); @@ -218,7 +218,7 @@ public static void double3x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -242,7 +242,7 @@ public static void double3x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_greater_wide_wide() { double3x2 a0 = double3x2(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479); @@ -266,7 +266,7 @@ public static void double3x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_greater_wide_scalar() { double3x2 a0 = double3x2(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809); @@ -290,7 +290,7 @@ public static void double3x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -314,7 +314,7 @@ public static void double3x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_less_equal_wide_wide() { double3x2 a0 = double3x2(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475); @@ -338,7 +338,7 @@ public static void double3x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_less_equal_wide_scalar() { double3x2 a0 = double3x2(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136); @@ -362,7 +362,7 @@ public static void double3x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -386,7 +386,7 @@ public static void double3x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_greater_equal_wide_wide() { double3x2 a0 = double3x2(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193); @@ -410,7 +410,7 @@ public static void double3x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_greater_equal_wide_scalar() { double3x2 a0 = double3x2(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976); @@ -434,7 +434,7 @@ public static void double3x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -458,7 +458,7 @@ public static void double3x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_add_wide_wide() { double3x2 a0 = double3x2(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056); @@ -482,7 +482,7 @@ public static void double3x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_add_wide_scalar() { double3x2 a0 = double3x2(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166); @@ -506,7 +506,7 @@ public static void double3x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -530,7 +530,7 @@ public static void double3x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_sub_wide_wide() { double3x2 a0 = double3x2(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053); @@ -554,7 +554,7 @@ public static void double3x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_sub_wide_scalar() { double3x2 a0 = double3x2(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896); @@ -578,7 +578,7 @@ public static void double3x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -602,7 +602,7 @@ public static void double3x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_mul_wide_wide() { double3x2 a0 = double3x2(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747); @@ -626,7 +626,7 @@ public static void double3x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_mul_wide_scalar() { double3x2 a0 = double3x2(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229); @@ -650,7 +650,7 @@ public static void double3x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -674,7 +674,7 @@ public static void double3x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_div_wide_wide() { double3x2 a0 = double3x2(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758); @@ -698,7 +698,7 @@ public static void double3x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_div_wide_scalar() { double3x2 a0 = double3x2(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509); @@ -722,7 +722,7 @@ public static void double3x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -746,7 +746,7 @@ public static void double3x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_mod_wide_wide() { double3x2 a0 = double3x2(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406); @@ -770,7 +770,7 @@ public static void double3x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_mod_wide_scalar() { double3x2 a0 = double3x2(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221); @@ -794,7 +794,7 @@ public static void double3x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -818,7 +818,7 @@ public static void double3x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_plus() { double3x2 a0 = double3x2(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287); @@ -838,7 +838,7 @@ public static void double3x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_neg() { double3x2 a0 = double3x2(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605); @@ -858,7 +858,7 @@ public static void double3x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_prefix_inc() { double3x2 a0 = double3x2(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198); @@ -878,7 +878,7 @@ public static void double3x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_postfix_inc() { double3x2 a0 = double3x2(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219); @@ -898,7 +898,7 @@ public static void double3x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_prefix_dec() { double3x2 a0 = double3x2(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339); @@ -918,7 +918,7 @@ public static void double3x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x2_operator_postfix_dec() { double3x2 a0 = double3x2(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231); diff --git a/src/Tests/Tests/Shared/TestDouble3x3.gen.cs b/src/Tests/Tests/Shared/TestDouble3x3.gen.cs index aca1ba86..d066be3d 100644 --- a/src/Tests/Tests/Shared/TestDouble3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble3x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_zero() { TestUtils.AreEqual(0.0, double3x3.zero.c0.x); @@ -29,7 +29,7 @@ public static void double3x3_zero() TestUtils.AreEqual(0.0, double3x3.zero.c2.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_identity() { TestUtils.AreEqual(1.0, double3x3.identity.c0.x); @@ -43,7 +43,7 @@ public static void double3x3_identity() TestUtils.AreEqual(1.0, double3x3.identity.c2.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_equal_wide_wide() { double3x3 a0 = double3x3(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749, -23.890404473939157, -16.8197190839889, 163.23210890741655); @@ -67,7 +67,7 @@ public static void double3x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_equal_wide_scalar() { double3x3 a0 = double3x3(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315, 159.87609656149334, -59.558379439431405, -57.477391031327386); @@ -91,7 +91,7 @@ public static void double3x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -115,7 +115,7 @@ public static void double3x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_not_equal_wide_wide() { double3x3 a0 = double3x3(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379, -509.32682561749908, -160.53807719076895, -203.30197606016975); @@ -139,7 +139,7 @@ public static void double3x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_not_equal_wide_scalar() { double3x3 a0 = double3x3(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959, -197.12796053529155, -169.09985860115842, -386.61117595555783); @@ -163,7 +163,7 @@ public static void double3x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -187,7 +187,7 @@ public static void double3x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_less_wide_wide() { double3x3 a0 = double3x3(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774, 8.8392293494376872, -333.81671563434259, 164.67880662003472); @@ -211,7 +211,7 @@ public static void double3x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_less_wide_scalar() { double3x3 a0 = double3x3(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879, -158.24074537970159, 437.34587522845061, -20.452607402788772); @@ -235,7 +235,7 @@ public static void double3x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -259,7 +259,7 @@ public static void double3x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_greater_wide_wide() { double3x3 a0 = double3x3(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479, -14.897393471979228, -33.817441717636484, -24.740548383789417); @@ -283,7 +283,7 @@ public static void double3x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_greater_wide_scalar() { double3x3 a0 = double3x3(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809, 286.1994608781298, 280.81334818564972, -405.78459210218148); @@ -307,7 +307,7 @@ public static void double3x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -331,7 +331,7 @@ public static void double3x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_less_equal_wide_wide() { double3x3 a0 = double3x3(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475, -97.948485181642923, 437.29539009430232, 458.53029153241323); @@ -355,7 +355,7 @@ public static void double3x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_less_equal_wide_scalar() { double3x3 a0 = double3x3(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136, 241.36115776810846, -463.81641242644582, -1.3577692515020203); @@ -379,7 +379,7 @@ public static void double3x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -403,7 +403,7 @@ public static void double3x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_greater_equal_wide_wide() { double3x3 a0 = double3x3(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193, -463.70202157632542, 387.44885772627265, 456.96878573716094); @@ -427,7 +427,7 @@ public static void double3x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_greater_equal_wide_scalar() { double3x3 a0 = double3x3(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976, 16.353385694489475, -344.55997316192838, 393.27804846003562); @@ -451,7 +451,7 @@ public static void double3x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -475,7 +475,7 @@ public static void double3x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_add_wide_wide() { double3x3 a0 = double3x3(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056, 424.34407659263536, 87.791079800478656, 462.41368148402012); @@ -499,7 +499,7 @@ public static void double3x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_add_wide_scalar() { double3x3 a0 = double3x3(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166, 30.916145577522116, 60.37435224483454, -242.1187475855084); @@ -523,7 +523,7 @@ public static void double3x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -547,7 +547,7 @@ public static void double3x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_sub_wide_wide() { double3x3 a0 = double3x3(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053, -410.46404786150163, -401.38464398001537, 317.70681944382693); @@ -571,7 +571,7 @@ public static void double3x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_sub_wide_scalar() { double3x3 a0 = double3x3(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896, 18.856238135535364, -44.96160151667965, 480.85798738936796); @@ -595,7 +595,7 @@ public static void double3x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -619,7 +619,7 @@ public static void double3x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_mul_wide_wide() { double3x3 a0 = double3x3(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747, 183.98730739578014, -241.33547770294149, 45.868758938214114); @@ -643,7 +643,7 @@ public static void double3x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_mul_wide_scalar() { double3x3 a0 = double3x3(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229, -455.50827500573746, -389.24327367788334, -338.29248658674419); @@ -667,7 +667,7 @@ public static void double3x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -691,7 +691,7 @@ public static void double3x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_div_wide_wide() { double3x3 a0 = double3x3(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758, -136.05959779399427, -370.4710053738537, -237.69456326109105); @@ -715,7 +715,7 @@ public static void double3x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_div_wide_scalar() { double3x3 a0 = double3x3(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509, -127.44869118903239, -79.7448890580539, 146.46688110496234); @@ -739,7 +739,7 @@ public static void double3x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -763,7 +763,7 @@ public static void double3x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_mod_wide_wide() { double3x3 a0 = double3x3(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406, 283.318293464984, 122.71651297561664, 335.27101413126616); @@ -787,7 +787,7 @@ public static void double3x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_mod_wide_scalar() { double3x3 a0 = double3x3(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221, 281.30965412841624, -226.53575311719243, 335.16613046041039); @@ -811,7 +811,7 @@ public static void double3x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -835,7 +835,7 @@ public static void double3x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_plus() { double3x3 a0 = double3x3(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287, 293.74197902052754, -373.015422279488, -386.059833944803); @@ -855,7 +855,7 @@ public static void double3x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_neg() { double3x3 a0 = double3x3(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605, -54.958759571872065, -382.98981803608581, -299.09338893512887); @@ -875,7 +875,7 @@ public static void double3x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_prefix_inc() { double3x3 a0 = double3x3(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198, -392.73151058365193, -300.19410218866267, 362.21273939787068); @@ -895,7 +895,7 @@ public static void double3x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_postfix_inc() { double3x3 a0 = double3x3(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219, -81.393423356764686, 66.719732554033271, 167.85212691493894); @@ -915,7 +915,7 @@ public static void double3x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_prefix_dec() { double3x3 a0 = double3x3(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339, 187.87412580655609, -236.2252043393558, 125.10963517292851); @@ -935,7 +935,7 @@ public static void double3x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x3_operator_postfix_dec() { double3x3 a0 = double3x3(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231, -63.655158787805192, 355.26110069605568, -27.889220489137415); diff --git a/src/Tests/Tests/Shared/TestDouble3x4.gen.cs b/src/Tests/Tests/Shared/TestDouble3x4.gen.cs index 48170ecf..03ea5969 100644 --- a/src/Tests/Tests/Shared/TestDouble3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble3x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble3x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_zero() { TestUtils.AreEqual(0.0, double3x4.zero.c0.x); @@ -32,7 +32,7 @@ public static void double3x4_zero() TestUtils.AreEqual(0.0, double3x4.zero.c3.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_equal_wide_wide() { double3x4 a0 = double3x4(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749, -23.890404473939157, -16.8197190839889, 163.23210890741655, -165.27101071424363, 470.87767980568003, -423.94255967808078); @@ -56,7 +56,7 @@ public static void double3x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_equal_wide_scalar() { double3x4 a0 = double3x4(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315, 159.87609656149334, -59.558379439431405, -57.477391031327386, -182.04973968400139, 406.51375861024189, 370.88599866017978); @@ -80,7 +80,7 @@ public static void double3x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -104,7 +104,7 @@ public static void double3x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_not_equal_wide_wide() { double3x4 a0 = double3x4(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379, -509.32682561749908, -160.53807719076895, -203.30197606016975, -505.76325368590807, 162.17220623892365, 1.1561973100324394); @@ -128,7 +128,7 @@ public static void double3x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_not_equal_wide_scalar() { double3x4 a0 = double3x4(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959, -197.12796053529155, -169.09985860115842, -386.61117595555783, -281.02101362916687, -270.26885593601912, -403.96372313236992); @@ -152,7 +152,7 @@ public static void double3x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -176,7 +176,7 @@ public static void double3x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_less_wide_wide() { double3x4 a0 = double3x4(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774, 8.8392293494376872, -333.81671563434259, 164.67880662003472, -350.94487516532877, 3.84143662631584, 125.40972024081725); @@ -200,7 +200,7 @@ public static void double3x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_less_wide_scalar() { double3x4 a0 = double3x4(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879, -158.24074537970159, 437.34587522845061, -20.452607402788772, 225.29148517609178, 307.48418607725023, 274.01523292903562); @@ -224,7 +224,7 @@ public static void double3x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -248,7 +248,7 @@ public static void double3x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_greater_wide_wide() { double3x4 a0 = double3x4(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479, -14.897393471979228, -33.817441717636484, -24.740548383789417, 319.78262701620474, -120.15856581561201, -289.00857962714906); @@ -272,7 +272,7 @@ public static void double3x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_greater_wide_scalar() { double3x4 a0 = double3x4(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809, 286.1994608781298, 280.81334818564972, -405.78459210218148, 171.56538661362856, -241.80727326209063, 333.57817498481745); @@ -296,7 +296,7 @@ public static void double3x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -320,7 +320,7 @@ public static void double3x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_less_equal_wide_wide() { double3x4 a0 = double3x4(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475, -97.948485181642923, 437.29539009430232, 458.53029153241323, -294.06474675520542, 23.622613679441884, -34.284056441059363); @@ -344,7 +344,7 @@ public static void double3x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_less_equal_wide_scalar() { double3x4 a0 = double3x4(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136, 241.36115776810846, -463.81641242644582, -1.3577692515020203, -268.89945591096739, 398.9919504593089, -471.253072242836); @@ -368,7 +368,7 @@ public static void double3x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -392,7 +392,7 @@ public static void double3x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_greater_equal_wide_wide() { double3x4 a0 = double3x4(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193, -463.70202157632542, 387.44885772627265, 456.96878573716094, -211.01015506079892, 182.41135391146474, -53.596053863687473); @@ -416,7 +416,7 @@ public static void double3x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_greater_equal_wide_scalar() { double3x4 a0 = double3x4(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976, 16.353385694489475, -344.55997316192838, 393.27804846003562, -315.70155086913218, 441.0115565923096, -509.78156757251435); @@ -440,7 +440,7 @@ public static void double3x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -464,7 +464,7 @@ public static void double3x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_add_wide_wide() { double3x4 a0 = double3x4(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056, 424.34407659263536, 87.791079800478656, 462.41368148402012, -46.178705952213477, 401.17006296718966, -454.12414643453627); @@ -488,7 +488,7 @@ public static void double3x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_add_wide_scalar() { double3x4 a0 = double3x4(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166, 30.916145577522116, 60.37435224483454, -242.1187475855084, 82.50134495762245, 6.7993848355483806, -484.69981287638649); @@ -512,7 +512,7 @@ public static void double3x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -536,7 +536,7 @@ public static void double3x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_sub_wide_wide() { double3x4 a0 = double3x4(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053, -410.46404786150163, -401.38464398001537, 317.70681944382693, 447.0604133303558, -489.07414482956477, -230.00838218909149); @@ -560,7 +560,7 @@ public static void double3x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_sub_wide_scalar() { double3x4 a0 = double3x4(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896, 18.856238135535364, -44.96160151667965, 480.85798738936796, 16.338193185784917, -366.86545269883493, -35.523088233323335); @@ -584,7 +584,7 @@ public static void double3x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -608,7 +608,7 @@ public static void double3x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_mul_wide_wide() { double3x4 a0 = double3x4(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747, 183.98730739578014, -241.33547770294149, 45.868758938214114, 363.32610266438041, -328.11893692990714, -471.02307413100408); @@ -632,7 +632,7 @@ public static void double3x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_mul_wide_scalar() { double3x4 a0 = double3x4(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229, -455.50827500573746, -389.24327367788334, -338.29248658674419, 53.796284939067618, 243.75734459783757, 135.35469991311186); @@ -656,7 +656,7 @@ public static void double3x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -680,7 +680,7 @@ public static void double3x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_div_wide_wide() { double3x4 a0 = double3x4(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758, -136.05959779399427, -370.4710053738537, -237.69456326109105, -432.54687496300176, 200.26549181727012, 361.44157068871039); @@ -704,7 +704,7 @@ public static void double3x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_div_wide_scalar() { double3x4 a0 = double3x4(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509, -127.44869118903239, -79.7448890580539, 146.46688110496234, -499.84355687529012, 58.686315802245531, -453.20579859856787); @@ -728,7 +728,7 @@ public static void double3x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -752,7 +752,7 @@ public static void double3x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_mod_wide_wide() { double3x4 a0 = double3x4(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406, 283.318293464984, 122.71651297561664, 335.27101413126616, -503.60851668920765, 191.02251848532933, 289.74269379756538); @@ -776,7 +776,7 @@ public static void double3x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_mod_wide_scalar() { double3x4 a0 = double3x4(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221, 281.30965412841624, -226.53575311719243, 335.16613046041039, 101.70649032560482, 319.47152033423606, -285.40231646476423); @@ -800,7 +800,7 @@ public static void double3x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -824,7 +824,7 @@ public static void double3x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_plus() { double3x4 a0 = double3x4(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287, 293.74197902052754, -373.015422279488, -386.059833944803, 4.9544198536101476, -418.64524932328857, 504.47483062393724); @@ -844,7 +844,7 @@ public static void double3x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_neg() { double3x4 a0 = double3x4(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605, -54.958759571872065, -382.98981803608581, -299.09338893512887, -383.01406377508027, 407.70980305583669, 168.73550351370852); @@ -864,7 +864,7 @@ public static void double3x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_prefix_inc() { double3x4 a0 = double3x4(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198, -392.73151058365193, -300.19410218866267, 362.21273939787068, 401.614830919362, 130.90919429199266, -450.23016402229212); @@ -884,7 +884,7 @@ public static void double3x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_postfix_inc() { double3x4 a0 = double3x4(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219, -81.393423356764686, 66.719732554033271, 167.85212691493894, 147.94395048354932, -326.10758486674524, 41.033564825092185); @@ -904,7 +904,7 @@ public static void double3x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_prefix_dec() { double3x4 a0 = double3x4(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339, 187.87412580655609, -236.2252043393558, 125.10963517292851, 469.8447313112415, 45.536655685648611, 376.04684680329956); @@ -924,7 +924,7 @@ public static void double3x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3x4_operator_postfix_dec() { double3x4 a0 = double3x4(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231, -63.655158787805192, 355.26110069605568, -27.889220489137415, -100.76183824462902, 156.14034969924967, 479.94519613680677); diff --git a/src/Tests/Tests/Shared/TestDouble4.gen.cs b/src/Tests/Tests/Shared/TestDouble4.gen.cs index 6dec9e23..0344dae9 100644 --- a/src/Tests/Tests/Shared/TestDouble4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_zero() { TestUtils.AreEqual(0.0, double4.zero.x); @@ -24,7 +24,7 @@ public static void double4_zero() TestUtils.AreEqual(0.0, double4.zero.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_constructor() { double4 a = new double4(1, 2, 3, 4); @@ -34,7 +34,7 @@ public static void double4_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_scalar_constructor() { double4 a = new double4(17.0); @@ -44,7 +44,7 @@ public static void double4_scalar_constructor() TestUtils.AreEqual(17.0, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_static_constructor() { double4 a = double4(1, 2, 3, 4); @@ -54,7 +54,7 @@ public static void double4_static_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_static_scalar_constructor() { double4 a = double4(17.0); @@ -64,7 +64,7 @@ public static void double4_static_scalar_constructor() TestUtils.AreEqual(17.0, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_equal_wide_wide() { double4 a0 = double4(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182); @@ -88,7 +88,7 @@ public static void double4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_equal_wide_scalar() { double4 a0 = double4(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995); @@ -112,7 +112,7 @@ public static void double4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -136,7 +136,7 @@ public static void double4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_not_equal_wide_wide() { double4 a0 = double4(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048); @@ -160,7 +160,7 @@ public static void double4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_not_equal_wide_scalar() { double4 a0 = double4(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137); @@ -184,7 +184,7 @@ public static void double4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -208,7 +208,7 @@ public static void double4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_less_wide_wide() { double4 a0 = double4(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963); @@ -232,7 +232,7 @@ public static void double4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_less_wide_scalar() { double4 a0 = double4(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561); @@ -256,7 +256,7 @@ public static void double4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -280,7 +280,7 @@ public static void double4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_greater_wide_wide() { double4 a0 = double4(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671); @@ -304,7 +304,7 @@ public static void double4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_greater_wide_scalar() { double4 a0 = double4(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157); @@ -328,7 +328,7 @@ public static void double4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -352,7 +352,7 @@ public static void double4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_less_equal_wide_wide() { double4 a0 = double4(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857); @@ -376,7 +376,7 @@ public static void double4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_less_equal_wide_scalar() { double4 a0 = double4(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292); @@ -400,7 +400,7 @@ public static void double4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -424,7 +424,7 @@ public static void double4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_greater_equal_wide_wide() { double4 a0 = double4(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784); @@ -448,7 +448,7 @@ public static void double4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_greater_equal_wide_scalar() { double4 a0 = double4(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356); @@ -472,7 +472,7 @@ public static void double4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -496,7 +496,7 @@ public static void double4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_add_wide_wide() { double4 a0 = double4(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274); @@ -520,7 +520,7 @@ public static void double4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_add_wide_scalar() { double4 a0 = double4(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752); @@ -544,7 +544,7 @@ public static void double4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -568,7 +568,7 @@ public static void double4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_sub_wide_wide() { double4 a0 = double4(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311); @@ -592,7 +592,7 @@ public static void double4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_sub_wide_scalar() { double4 a0 = double4(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506); @@ -616,7 +616,7 @@ public static void double4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -640,7 +640,7 @@ public static void double4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_mul_wide_wide() { double4 a0 = double4(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182); @@ -664,7 +664,7 @@ public static void double4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_mul_wide_scalar() { double4 a0 = double4(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409); @@ -688,7 +688,7 @@ public static void double4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -712,7 +712,7 @@ public static void double4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_div_wide_wide() { double4 a0 = double4(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176); @@ -736,7 +736,7 @@ public static void double4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_div_wide_scalar() { double4 a0 = double4(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078); @@ -760,7 +760,7 @@ public static void double4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -784,7 +784,7 @@ public static void double4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_mod_wide_wide() { double4 a0 = double4(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813); @@ -808,7 +808,7 @@ public static void double4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_mod_wide_scalar() { double4 a0 = double4(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672); @@ -832,7 +832,7 @@ public static void double4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -856,7 +856,7 @@ public static void double4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_plus() { double4 a0 = double4(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421); @@ -876,7 +876,7 @@ public static void double4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_neg() { double4 a0 = double4(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463); @@ -896,7 +896,7 @@ public static void double4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_prefix_inc() { double4 a0 = double4(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962); @@ -916,7 +916,7 @@ public static void double4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_postfix_inc() { double4 a0 = double4(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153); @@ -936,7 +936,7 @@ public static void double4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_prefix_dec() { double4 a0 = double4(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563); @@ -956,7 +956,7 @@ public static void double4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_operator_postfix_dec() { double4 a0 = double4(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962); @@ -976,7 +976,7 @@ public static void double4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_shuffle_result_1() { double4 a = double4(0, 1, 2, 3); @@ -992,7 +992,7 @@ public static void double4_shuffle_result_1() TestUtils.AreEqual((7), shuffle(a, b, ShuffleComponent.RightW)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_shuffle_result_2() { double4 a = double4(0, 1, 2, 3); @@ -1016,7 +1016,7 @@ public static void double4_shuffle_result_2() TestUtils.AreEqual(double2(1, 3), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftW)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_shuffle_result_3() { double4 a = double4(0, 1, 2, 3); @@ -1040,7 +1040,7 @@ public static void double4_shuffle_result_3() TestUtils.AreEqual(double3(5, 1, 7), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.RightW)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_shuffle_result_4() { double4 a = double4(0, 1, 2, 3); diff --git a/src/Tests/Tests/Shared/TestDouble4x2.gen.cs b/src/Tests/Tests/Shared/TestDouble4x2.gen.cs index 112a10df..80b2e856 100644 --- a/src/Tests/Tests/Shared/TestDouble4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble4x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_zero() { TestUtils.AreEqual(0.0, double4x2.zero.c0.x); @@ -28,7 +28,7 @@ public static void double4x2_zero() TestUtils.AreEqual(0.0, double4x2.zero.c1.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_equal_wide_wide() { double4x2 a0 = double4x2(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749, -23.890404473939157, -16.8197190839889); @@ -52,7 +52,7 @@ public static void double4x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_equal_wide_scalar() { double4x2 a0 = double4x2(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315, 159.87609656149334, -59.558379439431405); @@ -76,7 +76,7 @@ public static void double4x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -100,7 +100,7 @@ public static void double4x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_not_equal_wide_wide() { double4x2 a0 = double4x2(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379, -509.32682561749908, -160.53807719076895); @@ -124,7 +124,7 @@ public static void double4x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_not_equal_wide_scalar() { double4x2 a0 = double4x2(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959, -197.12796053529155, -169.09985860115842); @@ -148,7 +148,7 @@ public static void double4x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -172,7 +172,7 @@ public static void double4x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_less_wide_wide() { double4x2 a0 = double4x2(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774, 8.8392293494376872, -333.81671563434259); @@ -196,7 +196,7 @@ public static void double4x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_less_wide_scalar() { double4x2 a0 = double4x2(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879, -158.24074537970159, 437.34587522845061); @@ -220,7 +220,7 @@ public static void double4x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -244,7 +244,7 @@ public static void double4x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_greater_wide_wide() { double4x2 a0 = double4x2(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479, -14.897393471979228, -33.817441717636484); @@ -268,7 +268,7 @@ public static void double4x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_greater_wide_scalar() { double4x2 a0 = double4x2(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809, 286.1994608781298, 280.81334818564972); @@ -292,7 +292,7 @@ public static void double4x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -316,7 +316,7 @@ public static void double4x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_less_equal_wide_wide() { double4x2 a0 = double4x2(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475, -97.948485181642923, 437.29539009430232); @@ -340,7 +340,7 @@ public static void double4x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_less_equal_wide_scalar() { double4x2 a0 = double4x2(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136, 241.36115776810846, -463.81641242644582); @@ -364,7 +364,7 @@ public static void double4x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -388,7 +388,7 @@ public static void double4x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_greater_equal_wide_wide() { double4x2 a0 = double4x2(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193, -463.70202157632542, 387.44885772627265); @@ -412,7 +412,7 @@ public static void double4x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_greater_equal_wide_scalar() { double4x2 a0 = double4x2(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976, 16.353385694489475, -344.55997316192838); @@ -436,7 +436,7 @@ public static void double4x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -460,7 +460,7 @@ public static void double4x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_add_wide_wide() { double4x2 a0 = double4x2(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056, 424.34407659263536, 87.791079800478656); @@ -484,7 +484,7 @@ public static void double4x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_add_wide_scalar() { double4x2 a0 = double4x2(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166, 30.916145577522116, 60.37435224483454); @@ -508,7 +508,7 @@ public static void double4x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -532,7 +532,7 @@ public static void double4x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_sub_wide_wide() { double4x2 a0 = double4x2(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053, -410.46404786150163, -401.38464398001537); @@ -556,7 +556,7 @@ public static void double4x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_sub_wide_scalar() { double4x2 a0 = double4x2(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896, 18.856238135535364, -44.96160151667965); @@ -580,7 +580,7 @@ public static void double4x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -604,7 +604,7 @@ public static void double4x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_mul_wide_wide() { double4x2 a0 = double4x2(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747, 183.98730739578014, -241.33547770294149); @@ -628,7 +628,7 @@ public static void double4x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_mul_wide_scalar() { double4x2 a0 = double4x2(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229, -455.50827500573746, -389.24327367788334); @@ -652,7 +652,7 @@ public static void double4x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -676,7 +676,7 @@ public static void double4x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_div_wide_wide() { double4x2 a0 = double4x2(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758, -136.05959779399427, -370.4710053738537); @@ -700,7 +700,7 @@ public static void double4x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_div_wide_scalar() { double4x2 a0 = double4x2(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509, -127.44869118903239, -79.7448890580539); @@ -724,7 +724,7 @@ public static void double4x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -748,7 +748,7 @@ public static void double4x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_mod_wide_wide() { double4x2 a0 = double4x2(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406, 283.318293464984, 122.71651297561664); @@ -772,7 +772,7 @@ public static void double4x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_mod_wide_scalar() { double4x2 a0 = double4x2(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221, 281.30965412841624, -226.53575311719243); @@ -796,7 +796,7 @@ public static void double4x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -820,7 +820,7 @@ public static void double4x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_plus() { double4x2 a0 = double4x2(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287, 293.74197902052754, -373.015422279488); @@ -840,7 +840,7 @@ public static void double4x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_neg() { double4x2 a0 = double4x2(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605, -54.958759571872065, -382.98981803608581); @@ -860,7 +860,7 @@ public static void double4x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_prefix_inc() { double4x2 a0 = double4x2(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198, -392.73151058365193, -300.19410218866267); @@ -880,7 +880,7 @@ public static void double4x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_postfix_inc() { double4x2 a0 = double4x2(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219, -81.393423356764686, 66.719732554033271); @@ -900,7 +900,7 @@ public static void double4x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_prefix_dec() { double4x2 a0 = double4x2(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339, 187.87412580655609, -236.2252043393558); @@ -920,7 +920,7 @@ public static void double4x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x2_operator_postfix_dec() { double4x2 a0 = double4x2(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231, -63.655158787805192, 355.26110069605568); diff --git a/src/Tests/Tests/Shared/TestDouble4x3.gen.cs b/src/Tests/Tests/Shared/TestDouble4x3.gen.cs index 90982950..6debf3f6 100644 --- a/src/Tests/Tests/Shared/TestDouble4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble4x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_zero() { TestUtils.AreEqual(0.0, double4x3.zero.c0.x); @@ -32,7 +32,7 @@ public static void double4x3_zero() TestUtils.AreEqual(0.0, double4x3.zero.c2.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_equal_wide_wide() { double4x3 a0 = double4x3(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749, -23.890404473939157, -16.8197190839889, 163.23210890741655, -165.27101071424363, 470.87767980568003, -423.94255967808078); @@ -56,7 +56,7 @@ public static void double4x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_equal_wide_scalar() { double4x3 a0 = double4x3(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315, 159.87609656149334, -59.558379439431405, -57.477391031327386, -182.04973968400139, 406.51375861024189, 370.88599866017978); @@ -80,7 +80,7 @@ public static void double4x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -104,7 +104,7 @@ public static void double4x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_not_equal_wide_wide() { double4x3 a0 = double4x3(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379, -509.32682561749908, -160.53807719076895, -203.30197606016975, -505.76325368590807, 162.17220623892365, 1.1561973100324394); @@ -128,7 +128,7 @@ public static void double4x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_not_equal_wide_scalar() { double4x3 a0 = double4x3(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959, -197.12796053529155, -169.09985860115842, -386.61117595555783, -281.02101362916687, -270.26885593601912, -403.96372313236992); @@ -152,7 +152,7 @@ public static void double4x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -176,7 +176,7 @@ public static void double4x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_less_wide_wide() { double4x3 a0 = double4x3(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774, 8.8392293494376872, -333.81671563434259, 164.67880662003472, -350.94487516532877, 3.84143662631584, 125.40972024081725); @@ -200,7 +200,7 @@ public static void double4x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_less_wide_scalar() { double4x3 a0 = double4x3(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879, -158.24074537970159, 437.34587522845061, -20.452607402788772, 225.29148517609178, 307.48418607725023, 274.01523292903562); @@ -224,7 +224,7 @@ public static void double4x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -248,7 +248,7 @@ public static void double4x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_greater_wide_wide() { double4x3 a0 = double4x3(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479, -14.897393471979228, -33.817441717636484, -24.740548383789417, 319.78262701620474, -120.15856581561201, -289.00857962714906); @@ -272,7 +272,7 @@ public static void double4x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_greater_wide_scalar() { double4x3 a0 = double4x3(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809, 286.1994608781298, 280.81334818564972, -405.78459210218148, 171.56538661362856, -241.80727326209063, 333.57817498481745); @@ -296,7 +296,7 @@ public static void double4x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -320,7 +320,7 @@ public static void double4x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_less_equal_wide_wide() { double4x3 a0 = double4x3(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475, -97.948485181642923, 437.29539009430232, 458.53029153241323, -294.06474675520542, 23.622613679441884, -34.284056441059363); @@ -344,7 +344,7 @@ public static void double4x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_less_equal_wide_scalar() { double4x3 a0 = double4x3(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136, 241.36115776810846, -463.81641242644582, -1.3577692515020203, -268.89945591096739, 398.9919504593089, -471.253072242836); @@ -368,7 +368,7 @@ public static void double4x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -392,7 +392,7 @@ public static void double4x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_greater_equal_wide_wide() { double4x3 a0 = double4x3(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193, -463.70202157632542, 387.44885772627265, 456.96878573716094, -211.01015506079892, 182.41135391146474, -53.596053863687473); @@ -416,7 +416,7 @@ public static void double4x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_greater_equal_wide_scalar() { double4x3 a0 = double4x3(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976, 16.353385694489475, -344.55997316192838, 393.27804846003562, -315.70155086913218, 441.0115565923096, -509.78156757251435); @@ -440,7 +440,7 @@ public static void double4x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -464,7 +464,7 @@ public static void double4x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_add_wide_wide() { double4x3 a0 = double4x3(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056, 424.34407659263536, 87.791079800478656, 462.41368148402012, -46.178705952213477, 401.17006296718966, -454.12414643453627); @@ -488,7 +488,7 @@ public static void double4x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_add_wide_scalar() { double4x3 a0 = double4x3(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166, 30.916145577522116, 60.37435224483454, -242.1187475855084, 82.50134495762245, 6.7993848355483806, -484.69981287638649); @@ -512,7 +512,7 @@ public static void double4x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -536,7 +536,7 @@ public static void double4x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_sub_wide_wide() { double4x3 a0 = double4x3(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053, -410.46404786150163, -401.38464398001537, 317.70681944382693, 447.0604133303558, -489.07414482956477, -230.00838218909149); @@ -560,7 +560,7 @@ public static void double4x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_sub_wide_scalar() { double4x3 a0 = double4x3(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896, 18.856238135535364, -44.96160151667965, 480.85798738936796, 16.338193185784917, -366.86545269883493, -35.523088233323335); @@ -584,7 +584,7 @@ public static void double4x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -608,7 +608,7 @@ public static void double4x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_mul_wide_wide() { double4x3 a0 = double4x3(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747, 183.98730739578014, -241.33547770294149, 45.868758938214114, 363.32610266438041, -328.11893692990714, -471.02307413100408); @@ -632,7 +632,7 @@ public static void double4x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_mul_wide_scalar() { double4x3 a0 = double4x3(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229, -455.50827500573746, -389.24327367788334, -338.29248658674419, 53.796284939067618, 243.75734459783757, 135.35469991311186); @@ -656,7 +656,7 @@ public static void double4x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -680,7 +680,7 @@ public static void double4x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_div_wide_wide() { double4x3 a0 = double4x3(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758, -136.05959779399427, -370.4710053738537, -237.69456326109105, -432.54687496300176, 200.26549181727012, 361.44157068871039); @@ -704,7 +704,7 @@ public static void double4x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_div_wide_scalar() { double4x3 a0 = double4x3(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509, -127.44869118903239, -79.7448890580539, 146.46688110496234, -499.84355687529012, 58.686315802245531, -453.20579859856787); @@ -728,7 +728,7 @@ public static void double4x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -752,7 +752,7 @@ public static void double4x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_mod_wide_wide() { double4x3 a0 = double4x3(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406, 283.318293464984, 122.71651297561664, 335.27101413126616, -503.60851668920765, 191.02251848532933, 289.74269379756538); @@ -776,7 +776,7 @@ public static void double4x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_mod_wide_scalar() { double4x3 a0 = double4x3(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221, 281.30965412841624, -226.53575311719243, 335.16613046041039, 101.70649032560482, 319.47152033423606, -285.40231646476423); @@ -800,7 +800,7 @@ public static void double4x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -824,7 +824,7 @@ public static void double4x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_plus() { double4x3 a0 = double4x3(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287, 293.74197902052754, -373.015422279488, -386.059833944803, 4.9544198536101476, -418.64524932328857, 504.47483062393724); @@ -844,7 +844,7 @@ public static void double4x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_neg() { double4x3 a0 = double4x3(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605, -54.958759571872065, -382.98981803608581, -299.09338893512887, -383.01406377508027, 407.70980305583669, 168.73550351370852); @@ -864,7 +864,7 @@ public static void double4x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_prefix_inc() { double4x3 a0 = double4x3(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198, -392.73151058365193, -300.19410218866267, 362.21273939787068, 401.614830919362, 130.90919429199266, -450.23016402229212); @@ -884,7 +884,7 @@ public static void double4x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_postfix_inc() { double4x3 a0 = double4x3(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219, -81.393423356764686, 66.719732554033271, 167.85212691493894, 147.94395048354932, -326.10758486674524, 41.033564825092185); @@ -904,7 +904,7 @@ public static void double4x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_prefix_dec() { double4x3 a0 = double4x3(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339, 187.87412580655609, -236.2252043393558, 125.10963517292851, 469.8447313112415, 45.536655685648611, 376.04684680329956); @@ -924,7 +924,7 @@ public static void double4x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x3_operator_postfix_dec() { double4x3 a0 = double4x3(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231, -63.655158787805192, 355.26110069605568, -27.889220489137415, -100.76183824462902, 156.14034969924967, 479.94519613680677); diff --git a/src/Tests/Tests/Shared/TestDouble4x4.gen.cs b/src/Tests/Tests/Shared/TestDouble4x4.gen.cs index 8c982bb3..3fcaff74 100644 --- a/src/Tests/Tests/Shared/TestDouble4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestDouble4x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestDouble4x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_zero() { TestUtils.AreEqual(0.0, double4x4.zero.c0.x); @@ -36,7 +36,7 @@ public static void double4x4_zero() TestUtils.AreEqual(0.0, double4x4.zero.c3.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_identity() { TestUtils.AreEqual(1.0, double4x4.identity.c0.x); @@ -57,7 +57,7 @@ public static void double4x4_identity() TestUtils.AreEqual(1.0, double4x4.identity.c3.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_equal_wide_wide() { double4x4 a0 = double4x4(492.15758275061728, -495.20632027797694, 227.45765195947968, -147.37405950733182, -222.68201909897942, 64.093720704360749, -23.890404473939157, -16.8197190839889, 163.23210890741655, -165.27101071424363, 470.87767980568003, -423.94255967808078, 109.63436918595539, 462.69031283943468, -335.38147727371262, 357.23446934168896); @@ -81,7 +81,7 @@ public static void double4x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_equal_wide_scalar() { double4x4 a0 = double4x4(-303.2300766926399, 451.52631327674089, -253.65587413201848, -105.20363502632995, -500.6910920090466, -426.19248338518315, 159.87609656149334, -59.558379439431405, -57.477391031327386, -182.04973968400139, 406.51375861024189, 370.88599866017978, -172.03530629539642, 455.40001198993991, -11.338988547836891, 363.93823044557973); @@ -105,7 +105,7 @@ public static void double4x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_equal_scalar_wide() { double a0 = (-253.39728534100453); @@ -129,7 +129,7 @@ public static void double4x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_not_equal_wide_wide() { double4x4 a0 = double4x4(430.8425316432689, 104.69001798736394, 225.80243478799355, -310.57017841496048, -418.61945815506363, 304.12820281839379, -509.32682561749908, -160.53807719076895, -203.30197606016975, -505.76325368590807, 162.17220623892365, 1.1561973100324394, 65.662074358045174, 102.78780250567377, 172.93008120960098, 26.621009123800832); @@ -153,7 +153,7 @@ public static void double4x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_not_equal_wide_scalar() { double4x4 a0 = double4x4(-16.914588697680529, 168.83411486858233, -462.71352145760949, 130.30776959765137, 214.50161443208424, -440.26328178879959, -197.12796053529155, -169.09985860115842, -386.61117595555783, -281.02101362916687, -270.26885593601912, -403.96372313236992, -269.80570877241234, 299.65422763473089, -71.750904831919286, -432.75573917513515); @@ -177,7 +177,7 @@ public static void double4x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_not_equal_scalar_wide() { double a0 = (275.79582823244664); @@ -201,7 +201,7 @@ public static void double4x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_less_wide_wide() { double4x4 a0 = double4x4(196.84256825076534, 336.40979997087732, 251.96372115424072, 257.65591466503963, 430.04588647840819, -62.419644146421774, 8.8392293494376872, -333.81671563434259, 164.67880662003472, -350.94487516532877, 3.84143662631584, 125.40972024081725, -111.12994127680076, 70.005523475820951, 448.19828173527412, -419.98711200244122); @@ -225,7 +225,7 @@ public static void double4x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_less_wide_scalar() { double4x4 a0 = double4x4(-132.05731708000292, -192.46500477216438, -66.834607870706634, -379.01750081545561, -360.28242199508588, 20.927834282129879, -158.24074537970159, 437.34587522845061, -20.452607402788772, 225.29148517609178, 307.48418607725023, 274.01523292903562, 373.54965584983563, 398.52368301829495, 105.0301654827922, -58.010895994496934); @@ -249,7 +249,7 @@ public static void double4x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_less_scalar_wide() { double a0 = (-423.117411095238); @@ -273,7 +273,7 @@ public static void double4x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_greater_wide_wide() { double4x4 a0 = double4x4(483.50140141113729, 310.81563415695712, 106.9661896726891, 295.73526038589671, 116.95757179938141, -478.29977653841479, -14.897393471979228, -33.817441717636484, -24.740548383789417, 319.78262701620474, -120.15856581561201, -289.00857962714906, 455.85146662958505, 144.70691139283917, 63.931990891663304, -285.68304099034663); @@ -297,7 +297,7 @@ public static void double4x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_greater_wide_scalar() { double4x4 a0 = double4x4(64.317918092160426, -397.70346445483318, 431.87690826499693, 85.702980796668157, 246.26305233978803, 197.49155602114809, 286.1994608781298, 280.81334818564972, -405.78459210218148, 171.56538661362856, -241.80727326209063, 333.57817498481745, 370.27919524269146, -413.70138116073861, -356.5923551789449, -353.03129522550444); @@ -321,7 +321,7 @@ public static void double4x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_greater_scalar_wide() { double a0 = (-282.67049635698572); @@ -345,7 +345,7 @@ public static void double4x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_less_equal_wide_wide() { double4x4 a0 = double4x4(-438.52313753521219, 210.48942837980087, 4.8773329280677444, -137.29793817237857, 156.09410174009111, -363.92412035722475, -97.948485181642923, 437.29539009430232, 458.53029153241323, -294.06474675520542, 23.622613679441884, -34.284056441059363, 149.736484835733, -418.8866781754823, -197.50252899783783, -88.2055118494693); @@ -369,7 +369,7 @@ public static void double4x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_less_equal_wide_scalar() { double4x4 a0 = double4x4(193.4958237118534, 168.91555197952107, -313.9930695565385, 81.826965131716292, 18.503590830836288, -0.35819602029312136, 241.36115776810846, -463.81641242644582, -1.3577692515020203, -268.89945591096739, 398.9919504593089, -471.253072242836, -264.93778264938749, 82.258299150624453, 11.246050124636895, 424.7040156911612); @@ -393,7 +393,7 @@ public static void double4x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_less_equal_scalar_wide() { double a0 = (393.60626644343427); @@ -417,7 +417,7 @@ public static void double4x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_greater_equal_wide_wide() { double4x4 a0 = double4x4(-507.92858409692, 504.49748181947393, -385.43449205226938, -262.32340944107784, -37.550928848586466, -111.59527759980193, -463.70202157632542, 387.44885772627265, 456.96878573716094, -211.01015506079892, 182.41135391146474, -53.596053863687473, -309.57021608463032, -136.02249127999994, 280.73629082401112, -96.9958942388165); @@ -441,7 +441,7 @@ public static void double4x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_greater_equal_wide_scalar() { double4x4 a0 = double4x4(465.15218732559686, -424.8860745024337, -209.22109685150025, 58.779852656079356, -302.26910533675414, 140.12558252183976, 16.353385694489475, -344.55997316192838, 393.27804846003562, -315.70155086913218, 441.0115565923096, -509.78156757251435, -36.994287269652943, 494.82028865014217, -164.97393830352183, -466.12009046325466); @@ -465,7 +465,7 @@ public static void double4x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_greater_equal_scalar_wide() { double a0 = (374.82703393270594); @@ -489,7 +489,7 @@ public static void double4x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_add_wide_wide() { double4x4 a0 = double4x4(506.12905263627374, -501.77980803967444, 420.08479638587903, -186.03206476291274, -9.3123953385801883, 328.51179686585056, 424.34407659263536, 87.791079800478656, 462.41368148402012, -46.178705952213477, 401.17006296718966, -454.12414643453627, 69.195687564646732, -177.95734485329939, 299.60415544156183, 340.7048587001417); @@ -513,7 +513,7 @@ public static void double4x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_add_wide_scalar() { double4x4 a0 = double4x4(-194.51420387742769, 338.54838696985894, 246.97140252169754, 100.51093797595752, -45.724677822424439, -478.11131094308166, 30.916145577522116, 60.37435224483454, -242.1187475855084, 82.50134495762245, 6.7993848355483806, -484.69981287638649, -188.26501068298938, -213.52673087526426, -267.78430688929944, 189.25996669999324); @@ -537,7 +537,7 @@ public static void double4x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_add_scalar_wide() { double a0 = (-340.35468284243473); @@ -561,7 +561,7 @@ public static void double4x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_sub_wide_wide() { double4x4 a0 = double4x4(160.4922617229131, 11.223957305412682, 359.20010607279846, -498.22830485656311, -355.25362913462038, -94.534852787170053, -410.46404786150163, -401.38464398001537, 317.70681944382693, 447.0604133303558, -489.07414482956477, -230.00838218909149, 24.875419389864192, 366.61447136784648, -107.3741567634857, -219.0081404275299); @@ -585,7 +585,7 @@ public static void double4x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_sub_wide_scalar() { double4x4 a0 = double4x4(207.38960108877609, 248.45773684627272, -384.82393211164697, -205.34476122881506, -374.81156152058929, 191.64204820973896, 18.856238135535364, -44.96160151667965, 480.85798738936796, 16.338193185784917, -366.86545269883493, -35.523088233323335, 349.39776460705218, 439.07729336203886, 490.2222661870635, 195.02405104181923); @@ -609,7 +609,7 @@ public static void double4x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_sub_scalar_wide() { double a0 = (-86.008225719448262); @@ -633,7 +633,7 @@ public static void double4x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_mul_wide_wide() { double4x4 a0 = double4x4(-482.71381710596097, -407.29348559272171, 137.70058995937029, 208.54113278563182, 194.296573967811, -484.24241684574747, 183.98730739578014, -241.33547770294149, 45.868758938214114, 363.32610266438041, -328.11893692990714, -471.02307413100408, -262.68257415605831, -379.26274674910246, -374.09058182970182, 481.44738720424812); @@ -657,7 +657,7 @@ public static void double4x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_mul_wide_scalar() { double4x4 a0 = double4x4(-96.318821236639678, -277.14229239017811, -239.93690191951436, 509.53140544776409, 255.85810172551226, 215.73149667295229, -455.50827500573746, -389.24327367788334, -338.29248658674419, 53.796284939067618, 243.75734459783757, 135.35469991311186, -207.35010275959507, -383.93960946795517, -31.425238862366086, 42.676120539510634); @@ -681,7 +681,7 @@ public static void double4x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_mul_scalar_wide() { double a0 = (37.432166355397612); @@ -705,7 +705,7 @@ public static void double4x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_div_wide_wide() { double4x4 a0 = double4x4(-353.13144390337703, -102.79985456485292, 51.319128298814917, -191.87167868012176, 8.0418245829836223, -128.73764210973758, -136.05959779399427, -370.4710053738537, -237.69456326109105, -432.54687496300176, 200.26549181727012, 361.44157068871039, -416.22613234828509, -450.01919362042992, -273.49744594911925, -286.90817011841955); @@ -729,7 +729,7 @@ public static void double4x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_div_wide_scalar() { double4x4 a0 = double4x4(171.34242184988341, 0.10338377957384637, 57.888263967767443, -256.13074529177078, 95.6696842162263, -290.38690461329509, -127.44869118903239, -79.7448890580539, 146.46688110496234, -499.84355687529012, 58.686315802245531, -453.20579859856787, -205.03382143985192, 481.73814247629514, 464.47907159499778, -293.46349753693841); @@ -753,7 +753,7 @@ public static void double4x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_div_scalar_wide() { double a0 = (-264.44250095283729); @@ -777,7 +777,7 @@ public static void double4x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_mod_wide_wide() { double4x4 a0 = double4x4(-388.81249422059045, 181.68118842955732, -167.07872470052854, 432.82015319951813, -258.43895995730486, -170.11079629236406, 283.318293464984, 122.71651297561664, 335.27101413126616, -503.60851668920765, 191.02251848532933, 289.74269379756538, -124.03371745163281, 259.27395761165485, -274.35845030208975, -140.03080398404541); @@ -801,7 +801,7 @@ public static void double4x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_mod_wide_scalar() { double4x4 a0 = double4x4(-244.49962889612635, -211.81931958525411, -145.92677576184587, -304.91822090042672, 155.47946436492703, -133.90778428591221, 281.30965412841624, -226.53575311719243, 335.16613046041039, 101.70649032560482, 319.47152033423606, -285.40231646476423, -355.84685985923136, 259.37800061860025, -330.87193957477433, -284.34358109363518); @@ -825,7 +825,7 @@ public static void double4x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_mod_scalar_wide() { double a0 = (-66.945025236785909); @@ -849,7 +849,7 @@ public static void double4x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_plus() { double4x4 a0 = double4x4(-418.82956357432045, -405.79894823851015, -34.041791216489742, 236.99924456188421, -459.83910129025537, 210.8614223985287, 293.74197902052754, -373.015422279488, -386.059833944803, 4.9544198536101476, -418.64524932328857, 504.47483062393724, -170.74650843941907, 439.55937572920664, -478.74939916969714, 116.40075665172219); @@ -869,7 +869,7 @@ public static void double4x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_neg() { double4x4 a0 = double4x4(148.46174890755753, -467.12267873581624, 132.04719954917539, 183.52262290917463, 473.7010145009034, -407.99109024926605, -54.958759571872065, -382.98981803608581, -299.09338893512887, -383.01406377508027, 407.70980305583669, 168.73550351370852, 466.44152829909763, 171.90249474900895, -280.55831564616335, -78.85761622286293); @@ -889,7 +889,7 @@ public static void double4x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_prefix_inc() { double4x4 a0 = double4x4(-139.84208137348389, -56.743654039103376, -381.955324589254, 509.79634380237962, -222.89634452708827, 210.31986556310198, -392.73151058365193, -300.19410218866267, 362.21273939787068, 401.614830919362, 130.90919429199266, -450.23016402229212, 243.54693114177644, 46.19202735190845, -41.497298975241051, 299.18547000511808); @@ -909,7 +909,7 @@ public static void double4x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_postfix_inc() { double4x4 a0 = double4x4(-396.6697396695007, 511.20749378167443, 249.11127030528678, -128.81731301584153, -259.49027669592306, 278.00817764830219, -81.393423356764686, 66.719732554033271, 167.85212691493894, 147.94395048354932, -326.10758486674524, 41.033564825092185, 128.5304239394751, 73.155582223625629, -60.132380275117384, -446.22976490772783); @@ -929,7 +929,7 @@ public static void double4x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_prefix_dec() { double4x4 a0 = double4x4(123.12869626056806, 256.8437465433235, 156.33078844674435, 461.73742530389563, 325.86799755965728, 392.01561731473339, 187.87412580655609, -236.2252043393558, 125.10963517292851, 469.8447313112415, 45.536655685648611, 376.04684680329956, -363.07547991493504, -22.028951416736902, 248.79012667797042, 168.0950144120003); @@ -949,7 +949,7 @@ public static void double4x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4x4_operator_postfix_dec() { double4x4 a0 = double4x4(379.68831723727669, 302.69287814884115, -176.07134040448409, -291.25267066212962, 470.56758401848731, -402.92594666170231, -63.655158787805192, 355.26110069605568, -27.889220489137415, -100.76183824462902, 156.14034969924967, 479.94519613680677, -200.30429491787419, -445.0269393609031, 407.42034907239508, 327.67032519340069); diff --git a/src/Tests/Tests/Shared/TestFloat2.gen.cs b/src/Tests/Tests/Shared/TestFloat2.gen.cs index acacdb83..885cbf2c 100644 --- a/src/Tests/Tests/Shared/TestFloat2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2.gen.cs @@ -15,14 +15,14 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_zero() { TestUtils.AreEqual(0.0f, float2.zero.x); TestUtils.AreEqual(0.0f, float2.zero.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_constructor() { float2 a = new float2(1, 2); @@ -30,7 +30,7 @@ public static void float2_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_scalar_constructor() { float2 a = new float2(17.0f); @@ -38,7 +38,7 @@ public static void float2_scalar_constructor() TestUtils.AreEqual(17.0f, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_static_constructor() { float2 a = float2(1, 2); @@ -46,7 +46,7 @@ public static void float2_static_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_static_scalar_constructor() { float2 a = float2(17.0f); @@ -54,7 +54,7 @@ public static void float2_static_scalar_constructor() TestUtils.AreEqual(17.0f, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_equal_wide_wide() { float2 a0 = float2(492.1576f, -495.206329f); @@ -78,7 +78,7 @@ public static void float2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_equal_wide_scalar() { float2 a0 = float2(-303.230072f, 451.5263f); @@ -102,7 +102,7 @@ public static void float2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -126,7 +126,7 @@ public static void float2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_not_equal_wide_wide() { float2 a0 = float2(430.842529f, 104.69f); @@ -150,7 +150,7 @@ public static void float2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_not_equal_wide_scalar() { float2 a0 = float2(-16.9145813f, 168.8341f); @@ -174,7 +174,7 @@ public static void float2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -198,7 +198,7 @@ public static void float2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_less_wide_wide() { float2 a0 = float2(196.84259f, 336.4098f); @@ -222,7 +222,7 @@ public static void float2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_less_wide_scalar() { float2 a0 = float2(-132.057312f, -192.465f); @@ -246,7 +246,7 @@ public static void float2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -270,7 +270,7 @@ public static void float2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_greater_wide_wide() { float2 a0 = float2(483.5014f, 310.8156f); @@ -294,7 +294,7 @@ public static void float2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_greater_wide_scalar() { float2 a0 = float2(64.31793f, -397.703461f); @@ -318,7 +318,7 @@ public static void float2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -342,7 +342,7 @@ public static void float2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_less_equal_wide_wide() { float2 a0 = float2(-438.523132f, 210.489441f); @@ -366,7 +366,7 @@ public static void float2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_less_equal_wide_scalar() { float2 a0 = float2(193.49585f, 168.915527f); @@ -390,7 +390,7 @@ public static void float2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -414,7 +414,7 @@ public static void float2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_greater_equal_wide_wide() { float2 a0 = float2(-507.9286f, 504.4975f); @@ -438,7 +438,7 @@ public static void float2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_greater_equal_wide_scalar() { float2 a0 = float2(465.152161f, -424.886078f); @@ -462,7 +462,7 @@ public static void float2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -486,7 +486,7 @@ public static void float2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_add_wide_wide() { float2 a0 = float2(506.129028f, -501.779816f); @@ -510,7 +510,7 @@ public static void float2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_add_wide_scalar() { float2 a0 = float2(-194.514191f, 338.5484f); @@ -534,7 +534,7 @@ public static void float2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -558,7 +558,7 @@ public static void float2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_sub_wide_wide() { float2 a0 = float2(160.492249f, 11.223938f); @@ -582,7 +582,7 @@ public static void float2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_sub_wide_scalar() { float2 a0 = float2(207.389587f, 248.457764f); @@ -606,7 +606,7 @@ public static void float2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -630,7 +630,7 @@ public static void float2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_mul_wide_wide() { float2 a0 = float2(-482.7138f, -407.2935f); @@ -654,7 +654,7 @@ public static void float2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_mul_wide_scalar() { float2 a0 = float2(-96.31882f, -277.142273f); @@ -678,7 +678,7 @@ public static void float2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -702,7 +702,7 @@ public static void float2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_div_wide_wide() { float2 a0 = float2(-353.131439f, -102.799866f); @@ -726,7 +726,7 @@ public static void float2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_div_wide_scalar() { float2 a0 = float2(171.3424f, 0.103393555f); @@ -750,7 +750,7 @@ public static void float2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -774,7 +774,7 @@ public static void float2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_mod_wide_wide() { float2 a0 = float2(-388.8125f, 181.681213f); @@ -798,7 +798,7 @@ public static void float2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_mod_wide_scalar() { float2 a0 = float2(-244.499634f, -211.8193f); @@ -822,7 +822,7 @@ public static void float2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -846,7 +846,7 @@ public static void float2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_plus() { float2 a0 = float2(-418.829559f, -405.79895f); @@ -866,7 +866,7 @@ public static void float2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_neg() { float2 a0 = float2(148.461731f, -467.122681f); @@ -886,7 +886,7 @@ public static void float2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_prefix_inc() { float2 a0 = float2(-139.842072f, -56.7436523f); @@ -906,7 +906,7 @@ public static void float2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_postfix_inc() { float2 a0 = float2(-396.669739f, 511.20752f); @@ -926,7 +926,7 @@ public static void float2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_prefix_dec() { float2 a0 = float2(123.128723f, 256.84375f); @@ -946,7 +946,7 @@ public static void float2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_operator_postfix_dec() { float2 a0 = float2(379.6883f, 302.692871f); @@ -966,7 +966,7 @@ public static void float2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_shuffle_result_1() { float2 a = float2(0, 1); @@ -978,7 +978,7 @@ public static void float2_shuffle_result_1() TestUtils.AreEqual((3), shuffle(a, b, ShuffleComponent.RightY)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_shuffle_result_2() { float2 a = float2(0, 1); @@ -1002,7 +1002,7 @@ public static void float2_shuffle_result_2() TestUtils.AreEqual(float2(3, 3), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.RightY)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_shuffle_result_3() { float2 a = float2(0, 1); @@ -1026,7 +1026,7 @@ public static void float2_shuffle_result_3() TestUtils.AreEqual(float3(3, 1, 1), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.LeftY)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_shuffle_result_4() { float2 a = float2(0, 1); diff --git a/src/Tests/Tests/Shared/TestFloat2x2.gen.cs b/src/Tests/Tests/Shared/TestFloat2x2.gen.cs index c5594164..b56dd1c0 100644 --- a/src/Tests/Tests/Shared/TestFloat2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat2x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_zero() { TestUtils.AreEqual(0.0f, float2x2.zero.c0.x); @@ -24,7 +24,7 @@ public static void float2x2_zero() TestUtils.AreEqual(0.0f, float2x2.zero.c1.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_identity() { TestUtils.AreEqual(1.0f, float2x2.identity.c0.x); @@ -33,7 +33,7 @@ public static void float2x2_identity() TestUtils.AreEqual(1.0f, float2x2.identity.c1.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_equal_wide_wide() { float2x2 a0 = float2x2(492.1576f, -495.206329f, 227.457642f, -147.374054f); @@ -57,7 +57,7 @@ public static void float2x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_equal_wide_scalar() { float2x2 a0 = float2x2(-303.230072f, 451.5263f, -253.655884f, -105.203644f); @@ -81,7 +81,7 @@ public static void float2x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -105,7 +105,7 @@ public static void float2x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_not_equal_wide_wide() { float2x2 a0 = float2x2(430.842529f, 104.69f, 225.802429f, -310.5702f); @@ -129,7 +129,7 @@ public static void float2x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_not_equal_wide_scalar() { float2x2 a0 = float2x2(-16.9145813f, 168.8341f, -462.713531f, 130.307739f); @@ -153,7 +153,7 @@ public static void float2x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -177,7 +177,7 @@ public static void float2x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_less_wide_wide() { float2x2 a0 = float2x2(196.84259f, 336.4098f, 251.963745f, 257.655945f); @@ -201,7 +201,7 @@ public static void float2x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_less_wide_scalar() { float2x2 a0 = float2x2(-132.057312f, -192.465f, -66.8345947f, -379.017517f); @@ -225,7 +225,7 @@ public static void float2x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -249,7 +249,7 @@ public static void float2x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_greater_wide_wide() { float2x2 a0 = float2x2(483.5014f, 310.8156f, 106.966187f, 295.7353f); @@ -273,7 +273,7 @@ public static void float2x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_greater_wide_scalar() { float2x2 a0 = float2x2(64.31793f, -397.703461f, 431.8769f, 85.703f); @@ -297,7 +297,7 @@ public static void float2x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -321,7 +321,7 @@ public static void float2x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_less_equal_wide_wide() { float2x2 a0 = float2x2(-438.523132f, 210.489441f, 4.87731934f, -137.297943f); @@ -345,7 +345,7 @@ public static void float2x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_less_equal_wide_scalar() { float2x2 a0 = float2x2(193.49585f, 168.915527f, -313.993073f, 81.8269653f); @@ -369,7 +369,7 @@ public static void float2x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -393,7 +393,7 @@ public static void float2x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_greater_equal_wide_wide() { float2x2 a0 = float2x2(-507.9286f, 504.4975f, -385.4345f, -262.323425f); @@ -417,7 +417,7 @@ public static void float2x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_greater_equal_wide_scalar() { float2x2 a0 = float2x2(465.152161f, -424.886078f, -209.2211f, 58.7798462f); @@ -441,7 +441,7 @@ public static void float2x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -465,7 +465,7 @@ public static void float2x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_add_wide_wide() { float2x2 a0 = float2x2(506.129028f, -501.779816f, 420.084778f, -186.032074f); @@ -489,7 +489,7 @@ public static void float2x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_add_wide_scalar() { float2x2 a0 = float2x2(-194.514191f, 338.5484f, 246.971375f, 100.510925f); @@ -513,7 +513,7 @@ public static void float2x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -537,7 +537,7 @@ public static void float2x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_sub_wide_wide() { float2x2 a0 = float2x2(160.492249f, 11.223938f, 359.200134f, -498.2283f); @@ -561,7 +561,7 @@ public static void float2x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_sub_wide_scalar() { float2x2 a0 = float2x2(207.389587f, 248.457764f, -384.8239f, -205.344757f); @@ -585,7 +585,7 @@ public static void float2x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -609,7 +609,7 @@ public static void float2x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_mul_wide_wide() { float2x2 a0 = float2x2(-482.7138f, -407.2935f, 137.700562f, 208.541138f); @@ -633,7 +633,7 @@ public static void float2x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_mul_wide_scalar() { float2x2 a0 = float2x2(-96.31882f, -277.142273f, -239.93689f, 509.531433f); @@ -657,7 +657,7 @@ public static void float2x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -681,7 +681,7 @@ public static void float2x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_div_wide_wide() { float2x2 a0 = float2x2(-353.131439f, -102.799866f, 51.3191528f, -191.871674f); @@ -705,7 +705,7 @@ public static void float2x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_div_wide_scalar() { float2x2 a0 = float2x2(171.3424f, 0.103393555f, 57.8882446f, -256.130737f); @@ -729,7 +729,7 @@ public static void float2x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -753,7 +753,7 @@ public static void float2x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_mod_wide_wide() { float2x2 a0 = float2x2(-388.8125f, 181.681213f, -167.078735f, 432.820129f); @@ -777,7 +777,7 @@ public static void float2x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_mod_wide_scalar() { float2x2 a0 = float2x2(-244.499634f, -211.8193f, -145.926788f, -304.9182f); @@ -801,7 +801,7 @@ public static void float2x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -825,7 +825,7 @@ public static void float2x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_plus() { float2x2 a0 = float2x2(-418.829559f, -405.79895f, -34.04178f, 236.999268f); @@ -845,7 +845,7 @@ public static void float2x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_neg() { float2x2 a0 = float2x2(148.461731f, -467.122681f, 132.04718f, 183.522644f); @@ -865,7 +865,7 @@ public static void float2x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_prefix_inc() { float2x2 a0 = float2x2(-139.842072f, -56.7436523f, -381.955322f, 509.796326f); @@ -885,7 +885,7 @@ public static void float2x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_postfix_inc() { float2x2 a0 = float2x2(-396.669739f, 511.20752f, 249.111267f, -128.817322f); @@ -905,7 +905,7 @@ public static void float2x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_prefix_dec() { float2x2 a0 = float2x2(123.128723f, 256.84375f, 156.330811f, 461.737427f); @@ -925,7 +925,7 @@ public static void float2x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_operator_postfix_dec() { float2x2 a0 = float2x2(379.6883f, 302.692871f, -176.07135f, -291.2527f); diff --git a/src/Tests/Tests/Shared/TestFloat2x3.gen.cs b/src/Tests/Tests/Shared/TestFloat2x3.gen.cs index e619dc0d..ee756468 100644 --- a/src/Tests/Tests/Shared/TestFloat2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat2x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_zero() { TestUtils.AreEqual(0.0f, float2x3.zero.c0.x); @@ -26,7 +26,7 @@ public static void float2x3_zero() TestUtils.AreEqual(0.0f, float2x3.zero.c2.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_equal_wide_wide() { float2x3 a0 = float2x3(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f); @@ -50,7 +50,7 @@ public static void float2x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_equal_wide_scalar() { float2x3 a0 = float2x3(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f); @@ -74,7 +74,7 @@ public static void float2x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -98,7 +98,7 @@ public static void float2x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_not_equal_wide_wide() { float2x3 a0 = float2x3(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f); @@ -122,7 +122,7 @@ public static void float2x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_not_equal_wide_scalar() { float2x3 a0 = float2x3(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f); @@ -146,7 +146,7 @@ public static void float2x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -170,7 +170,7 @@ public static void float2x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_less_wide_wide() { float2x3 a0 = float2x3(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f); @@ -194,7 +194,7 @@ public static void float2x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_less_wide_scalar() { float2x3 a0 = float2x3(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f); @@ -218,7 +218,7 @@ public static void float2x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -242,7 +242,7 @@ public static void float2x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_greater_wide_wide() { float2x3 a0 = float2x3(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f); @@ -266,7 +266,7 @@ public static void float2x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_greater_wide_scalar() { float2x3 a0 = float2x3(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f); @@ -290,7 +290,7 @@ public static void float2x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -314,7 +314,7 @@ public static void float2x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_less_equal_wide_wide() { float2x3 a0 = float2x3(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f); @@ -338,7 +338,7 @@ public static void float2x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_less_equal_wide_scalar() { float2x3 a0 = float2x3(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f); @@ -362,7 +362,7 @@ public static void float2x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -386,7 +386,7 @@ public static void float2x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_greater_equal_wide_wide() { float2x3 a0 = float2x3(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f); @@ -410,7 +410,7 @@ public static void float2x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_greater_equal_wide_scalar() { float2x3 a0 = float2x3(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f); @@ -434,7 +434,7 @@ public static void float2x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -458,7 +458,7 @@ public static void float2x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_add_wide_wide() { float2x3 a0 = float2x3(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f); @@ -482,7 +482,7 @@ public static void float2x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_add_wide_scalar() { float2x3 a0 = float2x3(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f); @@ -506,7 +506,7 @@ public static void float2x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -530,7 +530,7 @@ public static void float2x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_sub_wide_wide() { float2x3 a0 = float2x3(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f); @@ -554,7 +554,7 @@ public static void float2x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_sub_wide_scalar() { float2x3 a0 = float2x3(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f); @@ -578,7 +578,7 @@ public static void float2x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -602,7 +602,7 @@ public static void float2x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_mul_wide_wide() { float2x3 a0 = float2x3(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f); @@ -626,7 +626,7 @@ public static void float2x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_mul_wide_scalar() { float2x3 a0 = float2x3(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f); @@ -650,7 +650,7 @@ public static void float2x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -674,7 +674,7 @@ public static void float2x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_div_wide_wide() { float2x3 a0 = float2x3(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f); @@ -698,7 +698,7 @@ public static void float2x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_div_wide_scalar() { float2x3 a0 = float2x3(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f); @@ -722,7 +722,7 @@ public static void float2x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -746,7 +746,7 @@ public static void float2x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_mod_wide_wide() { float2x3 a0 = float2x3(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f); @@ -770,7 +770,7 @@ public static void float2x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_mod_wide_scalar() { float2x3 a0 = float2x3(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f); @@ -794,7 +794,7 @@ public static void float2x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -818,7 +818,7 @@ public static void float2x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_plus() { float2x3 a0 = float2x3(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f); @@ -838,7 +838,7 @@ public static void float2x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_neg() { float2x3 a0 = float2x3(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f); @@ -858,7 +858,7 @@ public static void float2x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_prefix_inc() { float2x3 a0 = float2x3(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f); @@ -878,7 +878,7 @@ public static void float2x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_postfix_inc() { float2x3 a0 = float2x3(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f); @@ -898,7 +898,7 @@ public static void float2x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_prefix_dec() { float2x3 a0 = float2x3(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f); @@ -918,7 +918,7 @@ public static void float2x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x3_operator_postfix_dec() { float2x3 a0 = float2x3(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f); diff --git a/src/Tests/Tests/Shared/TestFloat2x4.gen.cs b/src/Tests/Tests/Shared/TestFloat2x4.gen.cs index 19447921..769a761e 100644 --- a/src/Tests/Tests/Shared/TestFloat2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat2x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat2x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_zero() { TestUtils.AreEqual(0.0f, float2x4.zero.c0.x); @@ -28,7 +28,7 @@ public static void float2x4_zero() TestUtils.AreEqual(0.0f, float2x4.zero.c3.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_equal_wide_wide() { float2x4 a0 = float2x4(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f, -23.8904114f, -16.8197327f); @@ -52,7 +52,7 @@ public static void float2x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_equal_wide_scalar() { float2x4 a0 = float2x4(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f, 159.8761f, -59.55838f); @@ -76,7 +76,7 @@ public static void float2x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -100,7 +100,7 @@ public static void float2x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_not_equal_wide_wide() { float2x4 a0 = float2x4(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f, -509.3268f, -160.538086f); @@ -124,7 +124,7 @@ public static void float2x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_not_equal_wide_scalar() { float2x4 a0 = float2x4(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f, -197.12796f, -169.099854f); @@ -148,7 +148,7 @@ public static void float2x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -172,7 +172,7 @@ public static void float2x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_less_wide_wide() { float2x4 a0 = float2x4(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f, 8.839233f, -333.8167f); @@ -196,7 +196,7 @@ public static void float2x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_less_wide_scalar() { float2x4 a0 = float2x4(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f, -158.240753f, 437.3459f); @@ -220,7 +220,7 @@ public static void float2x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -244,7 +244,7 @@ public static void float2x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_greater_wide_wide() { float2x4 a0 = float2x4(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f, -14.8974f, -33.8174438f); @@ -268,7 +268,7 @@ public static void float2x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_greater_wide_scalar() { float2x4 a0 = float2x4(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f, 286.199463f, 280.813354f); @@ -292,7 +292,7 @@ public static void float2x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -316,7 +316,7 @@ public static void float2x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_less_equal_wide_wide() { float2x4 a0 = float2x4(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f, -97.94849f, 437.2954f); @@ -340,7 +340,7 @@ public static void float2x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_less_equal_wide_scalar() { float2x4 a0 = float2x4(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f, 241.361145f, -463.8164f); @@ -364,7 +364,7 @@ public static void float2x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -388,7 +388,7 @@ public static void float2x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_greater_equal_wide_wide() { float2x4 a0 = float2x4(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f, -463.702026f, 387.448853f); @@ -412,7 +412,7 @@ public static void float2x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_greater_equal_wide_scalar() { float2x4 a0 = float2x4(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f, 16.3533936f, -344.559967f); @@ -436,7 +436,7 @@ public static void float2x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -460,7 +460,7 @@ public static void float2x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_add_wide_wide() { float2x4 a0 = float2x4(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f, 424.344055f, 87.79108f); @@ -484,7 +484,7 @@ public static void float2x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_add_wide_scalar() { float2x4 a0 = float2x4(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f, 30.9161377f, 60.37433f); @@ -508,7 +508,7 @@ public static void float2x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -532,7 +532,7 @@ public static void float2x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_sub_wide_wide() { float2x4 a0 = float2x4(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f, -410.46405f, -401.384644f); @@ -556,7 +556,7 @@ public static void float2x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_sub_wide_scalar() { float2x4 a0 = float2x4(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f, 18.8562622f, -44.96161f); @@ -580,7 +580,7 @@ public static void float2x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -604,7 +604,7 @@ public static void float2x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_mul_wide_wide() { float2x4 a0 = float2x4(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f, 183.9873f, -241.33548f); @@ -628,7 +628,7 @@ public static void float2x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_mul_wide_scalar() { float2x4 a0 = float2x4(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f, -455.50827f, -389.2433f); @@ -652,7 +652,7 @@ public static void float2x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -676,7 +676,7 @@ public static void float2x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_div_wide_wide() { float2x4 a0 = float2x4(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f, -136.0596f, -370.471f); @@ -700,7 +700,7 @@ public static void float2x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_div_wide_scalar() { float2x4 a0 = float2x4(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f, -127.4487f, -79.7449f); @@ -724,7 +724,7 @@ public static void float2x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -748,7 +748,7 @@ public static void float2x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_mod_wide_wide() { float2x4 a0 = float2x4(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f, 283.3183f, 122.716492f); @@ -772,7 +772,7 @@ public static void float2x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_mod_wide_scalar() { float2x4 a0 = float2x4(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f, 281.309631f, -226.535767f); @@ -796,7 +796,7 @@ public static void float2x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -820,7 +820,7 @@ public static void float2x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_plus() { float2x4 a0 = float2x4(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f, 293.742f, -373.015442f); @@ -840,7 +840,7 @@ public static void float2x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_neg() { float2x4 a0 = float2x4(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f, -54.95877f, -382.9898f); @@ -860,7 +860,7 @@ public static void float2x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_prefix_inc() { float2x4 a0 = float2x4(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f, -392.7315f, -300.1941f); @@ -880,7 +880,7 @@ public static void float2x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_postfix_inc() { float2x4 a0 = float2x4(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f, -81.39343f, 66.71973f); @@ -900,7 +900,7 @@ public static void float2x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_prefix_dec() { float2x4 a0 = float2x4(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f, 187.874146f, -236.225189f); @@ -920,7 +920,7 @@ public static void float2x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x4_operator_postfix_dec() { float2x4 a0 = float2x4(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f, -63.65515f, 355.2611f); diff --git a/src/Tests/Tests/Shared/TestFloat3.gen.cs b/src/Tests/Tests/Shared/TestFloat3.gen.cs index 40a4db85..29bbf5a0 100644 --- a/src/Tests/Tests/Shared/TestFloat3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_zero() { TestUtils.AreEqual(0.0f, float3.zero.x); @@ -23,7 +23,7 @@ public static void float3_zero() TestUtils.AreEqual(0.0f, float3.zero.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_constructor() { float3 a = new float3(1, 2, 3); @@ -32,7 +32,7 @@ public static void float3_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_scalar_constructor() { float3 a = new float3(17.0f); @@ -41,7 +41,7 @@ public static void float3_scalar_constructor() TestUtils.AreEqual(17.0f, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_static_constructor() { float3 a = float3(1, 2, 3); @@ -50,7 +50,7 @@ public static void float3_static_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_static_scalar_constructor() { float3 a = float3(17.0f); @@ -59,7 +59,7 @@ public static void float3_static_scalar_constructor() TestUtils.AreEqual(17.0f, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_equal_wide_wide() { float3 a0 = float3(492.1576f, -495.206329f, 227.457642f); @@ -83,7 +83,7 @@ public static void float3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_equal_wide_scalar() { float3 a0 = float3(-303.230072f, 451.5263f, -253.655884f); @@ -107,7 +107,7 @@ public static void float3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -131,7 +131,7 @@ public static void float3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_not_equal_wide_wide() { float3 a0 = float3(430.842529f, 104.69f, 225.802429f); @@ -155,7 +155,7 @@ public static void float3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_not_equal_wide_scalar() { float3 a0 = float3(-16.9145813f, 168.8341f, -462.713531f); @@ -179,7 +179,7 @@ public static void float3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -203,7 +203,7 @@ public static void float3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_less_wide_wide() { float3 a0 = float3(196.84259f, 336.4098f, 251.963745f); @@ -227,7 +227,7 @@ public static void float3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_less_wide_scalar() { float3 a0 = float3(-132.057312f, -192.465f, -66.8345947f); @@ -251,7 +251,7 @@ public static void float3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -275,7 +275,7 @@ public static void float3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_greater_wide_wide() { float3 a0 = float3(483.5014f, 310.8156f, 106.966187f); @@ -299,7 +299,7 @@ public static void float3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_greater_wide_scalar() { float3 a0 = float3(64.31793f, -397.703461f, 431.8769f); @@ -323,7 +323,7 @@ public static void float3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -347,7 +347,7 @@ public static void float3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_less_equal_wide_wide() { float3 a0 = float3(-438.523132f, 210.489441f, 4.87731934f); @@ -371,7 +371,7 @@ public static void float3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_less_equal_wide_scalar() { float3 a0 = float3(193.49585f, 168.915527f, -313.993073f); @@ -395,7 +395,7 @@ public static void float3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -419,7 +419,7 @@ public static void float3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_greater_equal_wide_wide() { float3 a0 = float3(-507.9286f, 504.4975f, -385.4345f); @@ -443,7 +443,7 @@ public static void float3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_greater_equal_wide_scalar() { float3 a0 = float3(465.152161f, -424.886078f, -209.2211f); @@ -467,7 +467,7 @@ public static void float3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -491,7 +491,7 @@ public static void float3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_add_wide_wide() { float3 a0 = float3(506.129028f, -501.779816f, 420.084778f); @@ -515,7 +515,7 @@ public static void float3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_add_wide_scalar() { float3 a0 = float3(-194.514191f, 338.5484f, 246.971375f); @@ -539,7 +539,7 @@ public static void float3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -563,7 +563,7 @@ public static void float3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_sub_wide_wide() { float3 a0 = float3(160.492249f, 11.223938f, 359.200134f); @@ -587,7 +587,7 @@ public static void float3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_sub_wide_scalar() { float3 a0 = float3(207.389587f, 248.457764f, -384.8239f); @@ -611,7 +611,7 @@ public static void float3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -635,7 +635,7 @@ public static void float3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_mul_wide_wide() { float3 a0 = float3(-482.7138f, -407.2935f, 137.700562f); @@ -659,7 +659,7 @@ public static void float3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_mul_wide_scalar() { float3 a0 = float3(-96.31882f, -277.142273f, -239.93689f); @@ -683,7 +683,7 @@ public static void float3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -707,7 +707,7 @@ public static void float3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_div_wide_wide() { float3 a0 = float3(-353.131439f, -102.799866f, 51.3191528f); @@ -731,7 +731,7 @@ public static void float3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_div_wide_scalar() { float3 a0 = float3(171.3424f, 0.103393555f, 57.8882446f); @@ -755,7 +755,7 @@ public static void float3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -779,7 +779,7 @@ public static void float3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_mod_wide_wide() { float3 a0 = float3(-388.8125f, 181.681213f, -167.078735f); @@ -803,7 +803,7 @@ public static void float3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_mod_wide_scalar() { float3 a0 = float3(-244.499634f, -211.8193f, -145.926788f); @@ -827,7 +827,7 @@ public static void float3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -851,7 +851,7 @@ public static void float3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_plus() { float3 a0 = float3(-418.829559f, -405.79895f, -34.04178f); @@ -871,7 +871,7 @@ public static void float3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_neg() { float3 a0 = float3(148.461731f, -467.122681f, 132.04718f); @@ -891,7 +891,7 @@ public static void float3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_prefix_inc() { float3 a0 = float3(-139.842072f, -56.7436523f, -381.955322f); @@ -911,7 +911,7 @@ public static void float3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_postfix_inc() { float3 a0 = float3(-396.669739f, 511.20752f, 249.111267f); @@ -931,7 +931,7 @@ public static void float3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_prefix_dec() { float3 a0 = float3(123.128723f, 256.84375f, 156.330811f); @@ -951,7 +951,7 @@ public static void float3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_operator_postfix_dec() { float3 a0 = float3(379.6883f, 302.692871f, -176.07135f); @@ -971,7 +971,7 @@ public static void float3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_shuffle_result_1() { float3 a = float3(0, 1, 2); @@ -985,7 +985,7 @@ public static void float3_shuffle_result_1() TestUtils.AreEqual((5), shuffle(a, b, ShuffleComponent.RightZ)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_shuffle_result_2() { float3 a = float3(0, 1, 2); @@ -1009,7 +1009,7 @@ public static void float3_shuffle_result_2() TestUtils.AreEqual(float2(1, 2), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftZ)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_shuffle_result_3() { float3 a = float3(0, 1, 2); @@ -1033,7 +1033,7 @@ public static void float3_shuffle_result_3() TestUtils.AreEqual(float3(4, 0, 5), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftX, ShuffleComponent.RightZ)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_shuffle_result_4() { float3 a = float3(0, 1, 2); diff --git a/src/Tests/Tests/Shared/TestFloat3x2.gen.cs b/src/Tests/Tests/Shared/TestFloat3x2.gen.cs index dabe0e58..a9fcca5b 100644 --- a/src/Tests/Tests/Shared/TestFloat3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat3x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_zero() { TestUtils.AreEqual(0.0f, float3x2.zero.c0.x); @@ -26,7 +26,7 @@ public static void float3x2_zero() TestUtils.AreEqual(0.0f, float3x2.zero.c1.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_equal_wide_wide() { float3x2 a0 = float3x2(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f); @@ -50,7 +50,7 @@ public static void float3x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_equal_wide_scalar() { float3x2 a0 = float3x2(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f); @@ -74,7 +74,7 @@ public static void float3x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -98,7 +98,7 @@ public static void float3x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_not_equal_wide_wide() { float3x2 a0 = float3x2(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f); @@ -122,7 +122,7 @@ public static void float3x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_not_equal_wide_scalar() { float3x2 a0 = float3x2(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f); @@ -146,7 +146,7 @@ public static void float3x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -170,7 +170,7 @@ public static void float3x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_less_wide_wide() { float3x2 a0 = float3x2(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f); @@ -194,7 +194,7 @@ public static void float3x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_less_wide_scalar() { float3x2 a0 = float3x2(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f); @@ -218,7 +218,7 @@ public static void float3x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -242,7 +242,7 @@ public static void float3x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_greater_wide_wide() { float3x2 a0 = float3x2(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f); @@ -266,7 +266,7 @@ public static void float3x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_greater_wide_scalar() { float3x2 a0 = float3x2(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f); @@ -290,7 +290,7 @@ public static void float3x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -314,7 +314,7 @@ public static void float3x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_less_equal_wide_wide() { float3x2 a0 = float3x2(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f); @@ -338,7 +338,7 @@ public static void float3x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_less_equal_wide_scalar() { float3x2 a0 = float3x2(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f); @@ -362,7 +362,7 @@ public static void float3x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -386,7 +386,7 @@ public static void float3x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_greater_equal_wide_wide() { float3x2 a0 = float3x2(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f); @@ -410,7 +410,7 @@ public static void float3x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_greater_equal_wide_scalar() { float3x2 a0 = float3x2(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f); @@ -434,7 +434,7 @@ public static void float3x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -458,7 +458,7 @@ public static void float3x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_add_wide_wide() { float3x2 a0 = float3x2(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f); @@ -482,7 +482,7 @@ public static void float3x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_add_wide_scalar() { float3x2 a0 = float3x2(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f); @@ -506,7 +506,7 @@ public static void float3x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -530,7 +530,7 @@ public static void float3x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_sub_wide_wide() { float3x2 a0 = float3x2(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f); @@ -554,7 +554,7 @@ public static void float3x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_sub_wide_scalar() { float3x2 a0 = float3x2(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f); @@ -578,7 +578,7 @@ public static void float3x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -602,7 +602,7 @@ public static void float3x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_mul_wide_wide() { float3x2 a0 = float3x2(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f); @@ -626,7 +626,7 @@ public static void float3x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_mul_wide_scalar() { float3x2 a0 = float3x2(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f); @@ -650,7 +650,7 @@ public static void float3x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -674,7 +674,7 @@ public static void float3x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_div_wide_wide() { float3x2 a0 = float3x2(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f); @@ -698,7 +698,7 @@ public static void float3x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_div_wide_scalar() { float3x2 a0 = float3x2(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f); @@ -722,7 +722,7 @@ public static void float3x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -746,7 +746,7 @@ public static void float3x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_mod_wide_wide() { float3x2 a0 = float3x2(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f); @@ -770,7 +770,7 @@ public static void float3x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_mod_wide_scalar() { float3x2 a0 = float3x2(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f); @@ -794,7 +794,7 @@ public static void float3x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -818,7 +818,7 @@ public static void float3x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_plus() { float3x2 a0 = float3x2(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f); @@ -838,7 +838,7 @@ public static void float3x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_neg() { float3x2 a0 = float3x2(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f); @@ -858,7 +858,7 @@ public static void float3x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_prefix_inc() { float3x2 a0 = float3x2(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f); @@ -878,7 +878,7 @@ public static void float3x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_postfix_inc() { float3x2 a0 = float3x2(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f); @@ -898,7 +898,7 @@ public static void float3x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_prefix_dec() { float3x2 a0 = float3x2(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f); @@ -918,7 +918,7 @@ public static void float3x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x2_operator_postfix_dec() { float3x2 a0 = float3x2(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f); diff --git a/src/Tests/Tests/Shared/TestFloat3x3.gen.cs b/src/Tests/Tests/Shared/TestFloat3x3.gen.cs index 6326f34f..7561ab09 100644 --- a/src/Tests/Tests/Shared/TestFloat3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat3x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_zero() { TestUtils.AreEqual(0.0f, float3x3.zero.c0.x); @@ -29,7 +29,7 @@ public static void float3x3_zero() TestUtils.AreEqual(0.0f, float3x3.zero.c2.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_identity() { TestUtils.AreEqual(1.0f, float3x3.identity.c0.x); @@ -43,7 +43,7 @@ public static void float3x3_identity() TestUtils.AreEqual(1.0f, float3x3.identity.c2.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_equal_wide_wide() { float3x3 a0 = float3x3(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f, -23.8904114f, -16.8197327f, 163.232117f); @@ -67,7 +67,7 @@ public static void float3x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_equal_wide_scalar() { float3x3 a0 = float3x3(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f, 159.8761f, -59.55838f, -57.4773865f); @@ -91,7 +91,7 @@ public static void float3x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -115,7 +115,7 @@ public static void float3x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_not_equal_wide_wide() { float3x3 a0 = float3x3(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f, -509.3268f, -160.538086f, -203.301971f); @@ -139,7 +139,7 @@ public static void float3x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_not_equal_wide_scalar() { float3x3 a0 = float3x3(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f, -197.12796f, -169.099854f, -386.611176f); @@ -163,7 +163,7 @@ public static void float3x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -187,7 +187,7 @@ public static void float3x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_less_wide_wide() { float3x3 a0 = float3x3(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f, 8.839233f, -333.8167f, 164.678833f); @@ -211,7 +211,7 @@ public static void float3x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_less_wide_scalar() { float3x3 a0 = float3x3(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f, -158.240753f, 437.3459f, -20.4526062f); @@ -235,7 +235,7 @@ public static void float3x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -259,7 +259,7 @@ public static void float3x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_greater_wide_wide() { float3x3 a0 = float3x3(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f, -14.8974f, -33.8174438f, -24.74054f); @@ -283,7 +283,7 @@ public static void float3x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_greater_wide_scalar() { float3x3 a0 = float3x3(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f, 286.199463f, 280.813354f, -405.7846f); @@ -307,7 +307,7 @@ public static void float3x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -331,7 +331,7 @@ public static void float3x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_less_equal_wide_wide() { float3x3 a0 = float3x3(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f, -97.94849f, 437.2954f, 458.530273f); @@ -355,7 +355,7 @@ public static void float3x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_less_equal_wide_scalar() { float3x3 a0 = float3x3(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f, 241.361145f, -463.8164f, -1.35775757f); @@ -379,7 +379,7 @@ public static void float3x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -403,7 +403,7 @@ public static void float3x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_greater_equal_wide_wide() { float3x3 a0 = float3x3(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f, -463.702026f, 387.448853f, 456.9688f); @@ -427,7 +427,7 @@ public static void float3x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_greater_equal_wide_scalar() { float3x3 a0 = float3x3(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f, 16.3533936f, -344.559967f, 393.278076f); @@ -451,7 +451,7 @@ public static void float3x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -475,7 +475,7 @@ public static void float3x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_add_wide_wide() { float3x3 a0 = float3x3(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f, 424.344055f, 87.79108f, 462.4137f); @@ -499,7 +499,7 @@ public static void float3x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_add_wide_scalar() { float3x3 a0 = float3x3(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f, 30.9161377f, 60.37433f, -242.118744f); @@ -523,7 +523,7 @@ public static void float3x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -547,7 +547,7 @@ public static void float3x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_sub_wide_wide() { float3x3 a0 = float3x3(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f, -410.46405f, -401.384644f, 317.706848f); @@ -571,7 +571,7 @@ public static void float3x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_sub_wide_scalar() { float3x3 a0 = float3x3(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f, 18.8562622f, -44.96161f, 480.857971f); @@ -595,7 +595,7 @@ public static void float3x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -619,7 +619,7 @@ public static void float3x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_mul_wide_wide() { float3x3 a0 = float3x3(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f, 183.9873f, -241.33548f, 45.8687744f); @@ -643,7 +643,7 @@ public static void float3x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_mul_wide_scalar() { float3x3 a0 = float3x3(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f, -455.50827f, -389.2433f, -338.29248f); @@ -667,7 +667,7 @@ public static void float3x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -691,7 +691,7 @@ public static void float3x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_div_wide_wide() { float3x3 a0 = float3x3(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f, -136.0596f, -370.471f, -237.69455f); @@ -715,7 +715,7 @@ public static void float3x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_div_wide_scalar() { float3x3 a0 = float3x3(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f, -127.4487f, -79.7449f, 146.466858f); @@ -739,7 +739,7 @@ public static void float3x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -763,7 +763,7 @@ public static void float3x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_mod_wide_wide() { float3x3 a0 = float3x3(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f, 283.3183f, 122.716492f, 335.271f); @@ -787,7 +787,7 @@ public static void float3x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_mod_wide_scalar() { float3x3 a0 = float3x3(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f, 281.309631f, -226.535767f, 335.166138f); @@ -811,7 +811,7 @@ public static void float3x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -835,7 +835,7 @@ public static void float3x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_plus() { float3x3 a0 = float3x3(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f, 293.742f, -373.015442f, -386.059845f); @@ -855,7 +855,7 @@ public static void float3x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_neg() { float3x3 a0 = float3x3(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f, -54.95877f, -382.9898f, -299.093384f); @@ -875,7 +875,7 @@ public static void float3x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_prefix_inc() { float3x3 a0 = float3x3(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f, -392.7315f, -300.1941f, 362.212769f); @@ -895,7 +895,7 @@ public static void float3x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_postfix_inc() { float3x3 a0 = float3x3(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f, -81.39343f, 66.71973f, 167.852112f); @@ -915,7 +915,7 @@ public static void float3x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_prefix_dec() { float3x3 a0 = float3x3(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f, 187.874146f, -236.225189f, 125.109619f); @@ -935,7 +935,7 @@ public static void float3x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_operator_postfix_dec() { float3x3 a0 = float3x3(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f, -63.65515f, 355.2611f, -27.8892212f); diff --git a/src/Tests/Tests/Shared/TestFloat3x4.gen.cs b/src/Tests/Tests/Shared/TestFloat3x4.gen.cs index 78522532..b688cda8 100644 --- a/src/Tests/Tests/Shared/TestFloat3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat3x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat3x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_zero() { TestUtils.AreEqual(0.0f, float3x4.zero.c0.x); @@ -32,7 +32,7 @@ public static void float3x4_zero() TestUtils.AreEqual(0.0f, float3x4.zero.c3.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_equal_wide_wide() { float3x4 a0 = float3x4(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f, -23.8904114f, -16.8197327f, 163.232117f, -165.271f, 470.8777f, -423.942566f); @@ -56,7 +56,7 @@ public static void float3x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_equal_wide_scalar() { float3x4 a0 = float3x4(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f, 159.8761f, -59.55838f, -57.4773865f, -182.049744f, 406.513733f, 370.886f); @@ -80,7 +80,7 @@ public static void float3x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -104,7 +104,7 @@ public static void float3x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_not_equal_wide_wide() { float3x4 a0 = float3x4(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f, -509.3268f, -160.538086f, -203.301971f, -505.763245f, 162.17218f, 1.156189f); @@ -128,7 +128,7 @@ public static void float3x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_not_equal_wide_scalar() { float3x4 a0 = float3x4(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f, -197.12796f, -169.099854f, -386.611176f, -281.021f, -270.26886f, -403.9637f); @@ -152,7 +152,7 @@ public static void float3x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -176,7 +176,7 @@ public static void float3x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_less_wide_wide() { float3x4 a0 = float3x4(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f, 8.839233f, -333.8167f, 164.678833f, -350.9449f, 3.84143066f, 125.409729f); @@ -200,7 +200,7 @@ public static void float3x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_less_wide_scalar() { float3x4 a0 = float3x4(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f, -158.240753f, 437.3459f, -20.4526062f, 225.2915f, 307.4842f, 274.015259f); @@ -224,7 +224,7 @@ public static void float3x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -248,7 +248,7 @@ public static void float3x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_greater_wide_wide() { float3x4 a0 = float3x4(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f, -14.8974f, -33.8174438f, -24.74054f, 319.782654f, -120.158569f, -289.008575f); @@ -272,7 +272,7 @@ public static void float3x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_greater_wide_scalar() { float3x4 a0 = float3x4(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f, 286.199463f, 280.813354f, -405.7846f, 171.565369f, -241.807281f, 333.5782f); @@ -296,7 +296,7 @@ public static void float3x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -320,7 +320,7 @@ public static void float3x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_less_equal_wide_wide() { float3x4 a0 = float3x4(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f, -97.94849f, 437.2954f, 458.530273f, -294.064758f, 23.62262f, -34.2840576f); @@ -344,7 +344,7 @@ public static void float3x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_less_equal_wide_scalar() { float3x4 a0 = float3x4(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f, 241.361145f, -463.8164f, -1.35775757f, -268.899475f, 398.991943f, -471.253082f); @@ -368,7 +368,7 @@ public static void float3x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -392,7 +392,7 @@ public static void float3x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_greater_equal_wide_wide() { float3x4 a0 = float3x4(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f, -463.702026f, 387.448853f, 456.9688f, -211.010162f, 182.411377f, -53.59604f); @@ -416,7 +416,7 @@ public static void float3x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_greater_equal_wide_scalar() { float3x4 a0 = float3x4(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f, 16.3533936f, -344.559967f, 393.278076f, -315.701538f, 441.011536f, -509.781555f); @@ -440,7 +440,7 @@ public static void float3x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -464,7 +464,7 @@ public static void float3x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_add_wide_wide() { float3x4 a0 = float3x4(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f, 424.344055f, 87.79108f, 462.4137f, -46.17871f, 401.170044f, -454.124146f); @@ -488,7 +488,7 @@ public static void float3x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_add_wide_scalar() { float3x4 a0 = float3x4(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f, 30.9161377f, 60.37433f, -242.118744f, 82.50134f, 6.79937744f, -484.6998f); @@ -512,7 +512,7 @@ public static void float3x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -536,7 +536,7 @@ public static void float3x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_sub_wide_wide() { float3x4 a0 = float3x4(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f, -410.46405f, -401.384644f, 317.706848f, 447.060425f, -489.074158f, -230.008392f); @@ -560,7 +560,7 @@ public static void float3x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_sub_wide_scalar() { float3x4 a0 = float3x4(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f, 18.8562622f, -44.96161f, 480.857971f, 16.3381958f, -366.865448f, -35.5231f); @@ -584,7 +584,7 @@ public static void float3x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -608,7 +608,7 @@ public static void float3x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_mul_wide_wide() { float3x4 a0 = float3x4(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f, 183.9873f, -241.33548f, 45.8687744f, 363.3261f, -328.118958f, -471.023071f); @@ -632,7 +632,7 @@ public static void float3x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_mul_wide_scalar() { float3x4 a0 = float3x4(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f, -455.50827f, -389.2433f, -338.29248f, 53.7962646f, 243.757324f, 135.354675f); @@ -656,7 +656,7 @@ public static void float3x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -680,7 +680,7 @@ public static void float3x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_div_wide_wide() { float3x4 a0 = float3x4(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f, -136.0596f, -370.471f, -237.69455f, -432.546875f, 200.2655f, 361.4416f); @@ -704,7 +704,7 @@ public static void float3x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_div_wide_scalar() { float3x4 a0 = float3x4(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f, -127.4487f, -79.7449f, 146.466858f, -499.843567f, 58.68634f, -453.2058f); @@ -728,7 +728,7 @@ public static void float3x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -752,7 +752,7 @@ public static void float3x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_mod_wide_wide() { float3x4 a0 = float3x4(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f, 283.3183f, 122.716492f, 335.271f, -503.608521f, 191.022522f, 289.742676f); @@ -776,7 +776,7 @@ public static void float3x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_mod_wide_scalar() { float3x4 a0 = float3x4(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f, 281.309631f, -226.535767f, 335.166138f, 101.706482f, 319.4715f, -285.4023f); @@ -800,7 +800,7 @@ public static void float3x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -824,7 +824,7 @@ public static void float3x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_plus() { float3x4 a0 = float3x4(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f, 293.742f, -373.015442f, -386.059845f, 4.95440674f, -418.645264f, 504.474854f); @@ -844,7 +844,7 @@ public static void float3x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_neg() { float3x4 a0 = float3x4(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f, -54.95877f, -382.9898f, -299.093384f, -383.014069f, 407.709778f, 168.735474f); @@ -864,7 +864,7 @@ public static void float3x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_prefix_inc() { float3x4 a0 = float3x4(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f, -392.7315f, -300.1941f, 362.212769f, 401.6148f, 130.90918f, -450.230164f); @@ -884,7 +884,7 @@ public static void float3x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_postfix_inc() { float3x4 a0 = float3x4(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f, -81.39343f, 66.71973f, 167.852112f, 147.94397f, -326.1076f, 41.03357f); @@ -904,7 +904,7 @@ public static void float3x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_prefix_dec() { float3x4 a0 = float3x4(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f, 187.874146f, -236.225189f, 125.109619f, 469.844727f, 45.5366821f, 376.046875f); @@ -924,7 +924,7 @@ public static void float3x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_operator_postfix_dec() { float3x4 a0 = float3x4(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f, -63.65515f, 355.2611f, -27.8892212f, -100.761841f, 156.14032f, 479.9452f); diff --git a/src/Tests/Tests/Shared/TestFloat4.gen.cs b/src/Tests/Tests/Shared/TestFloat4.gen.cs index 9ac6757c..1e0d3ab1 100644 --- a/src/Tests/Tests/Shared/TestFloat4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_zero() { TestUtils.AreEqual(0.0f, float4.zero.x); @@ -24,7 +24,7 @@ public static void float4_zero() TestUtils.AreEqual(0.0f, float4.zero.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_constructor() { float4 a = new float4(1, 2, 3, 4); @@ -34,7 +34,7 @@ public static void float4_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_scalar_constructor() { float4 a = new float4(17.0f); @@ -44,7 +44,7 @@ public static void float4_scalar_constructor() TestUtils.AreEqual(17.0f, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_static_constructor() { float4 a = float4(1, 2, 3, 4); @@ -54,7 +54,7 @@ public static void float4_static_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_static_scalar_constructor() { float4 a = float4(17.0f); @@ -64,7 +64,7 @@ public static void float4_static_scalar_constructor() TestUtils.AreEqual(17.0f, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_equal_wide_wide() { float4 a0 = float4(492.1576f, -495.206329f, 227.457642f, -147.374054f); @@ -88,7 +88,7 @@ public static void float4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_equal_wide_scalar() { float4 a0 = float4(-303.230072f, 451.5263f, -253.655884f, -105.203644f); @@ -112,7 +112,7 @@ public static void float4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -136,7 +136,7 @@ public static void float4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_not_equal_wide_wide() { float4 a0 = float4(430.842529f, 104.69f, 225.802429f, -310.5702f); @@ -160,7 +160,7 @@ public static void float4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_not_equal_wide_scalar() { float4 a0 = float4(-16.9145813f, 168.8341f, -462.713531f, 130.307739f); @@ -184,7 +184,7 @@ public static void float4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -208,7 +208,7 @@ public static void float4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_less_wide_wide() { float4 a0 = float4(196.84259f, 336.4098f, 251.963745f, 257.655945f); @@ -232,7 +232,7 @@ public static void float4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_less_wide_scalar() { float4 a0 = float4(-132.057312f, -192.465f, -66.8345947f, -379.017517f); @@ -256,7 +256,7 @@ public static void float4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -280,7 +280,7 @@ public static void float4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_greater_wide_wide() { float4 a0 = float4(483.5014f, 310.8156f, 106.966187f, 295.7353f); @@ -304,7 +304,7 @@ public static void float4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_greater_wide_scalar() { float4 a0 = float4(64.31793f, -397.703461f, 431.8769f, 85.703f); @@ -328,7 +328,7 @@ public static void float4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -352,7 +352,7 @@ public static void float4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_less_equal_wide_wide() { float4 a0 = float4(-438.523132f, 210.489441f, 4.87731934f, -137.297943f); @@ -376,7 +376,7 @@ public static void float4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_less_equal_wide_scalar() { float4 a0 = float4(193.49585f, 168.915527f, -313.993073f, 81.8269653f); @@ -400,7 +400,7 @@ public static void float4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -424,7 +424,7 @@ public static void float4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_greater_equal_wide_wide() { float4 a0 = float4(-507.9286f, 504.4975f, -385.4345f, -262.323425f); @@ -448,7 +448,7 @@ public static void float4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_greater_equal_wide_scalar() { float4 a0 = float4(465.152161f, -424.886078f, -209.2211f, 58.7798462f); @@ -472,7 +472,7 @@ public static void float4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -496,7 +496,7 @@ public static void float4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_add_wide_wide() { float4 a0 = float4(506.129028f, -501.779816f, 420.084778f, -186.032074f); @@ -520,7 +520,7 @@ public static void float4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_add_wide_scalar() { float4 a0 = float4(-194.514191f, 338.5484f, 246.971375f, 100.510925f); @@ -544,7 +544,7 @@ public static void float4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -568,7 +568,7 @@ public static void float4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_sub_wide_wide() { float4 a0 = float4(160.492249f, 11.223938f, 359.200134f, -498.2283f); @@ -592,7 +592,7 @@ public static void float4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_sub_wide_scalar() { float4 a0 = float4(207.389587f, 248.457764f, -384.8239f, -205.344757f); @@ -616,7 +616,7 @@ public static void float4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -640,7 +640,7 @@ public static void float4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_mul_wide_wide() { float4 a0 = float4(-482.7138f, -407.2935f, 137.700562f, 208.541138f); @@ -664,7 +664,7 @@ public static void float4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_mul_wide_scalar() { float4 a0 = float4(-96.31882f, -277.142273f, -239.93689f, 509.531433f); @@ -688,7 +688,7 @@ public static void float4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -712,7 +712,7 @@ public static void float4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_div_wide_wide() { float4 a0 = float4(-353.131439f, -102.799866f, 51.3191528f, -191.871674f); @@ -736,7 +736,7 @@ public static void float4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_div_wide_scalar() { float4 a0 = float4(171.3424f, 0.103393555f, 57.8882446f, -256.130737f); @@ -760,7 +760,7 @@ public static void float4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -784,7 +784,7 @@ public static void float4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_mod_wide_wide() { float4 a0 = float4(-388.8125f, 181.681213f, -167.078735f, 432.820129f); @@ -808,7 +808,7 @@ public static void float4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_mod_wide_scalar() { float4 a0 = float4(-244.499634f, -211.8193f, -145.926788f, -304.9182f); @@ -832,7 +832,7 @@ public static void float4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -856,7 +856,7 @@ public static void float4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_plus() { float4 a0 = float4(-418.829559f, -405.79895f, -34.04178f, 236.999268f); @@ -876,7 +876,7 @@ public static void float4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_neg() { float4 a0 = float4(148.461731f, -467.122681f, 132.04718f, 183.522644f); @@ -896,7 +896,7 @@ public static void float4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_prefix_inc() { float4 a0 = float4(-139.842072f, -56.7436523f, -381.955322f, 509.796326f); @@ -916,7 +916,7 @@ public static void float4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_postfix_inc() { float4 a0 = float4(-396.669739f, 511.20752f, 249.111267f, -128.817322f); @@ -936,7 +936,7 @@ public static void float4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_prefix_dec() { float4 a0 = float4(123.128723f, 256.84375f, 156.330811f, 461.737427f); @@ -956,7 +956,7 @@ public static void float4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_operator_postfix_dec() { float4 a0 = float4(379.6883f, 302.692871f, -176.07135f, -291.2527f); @@ -976,7 +976,7 @@ public static void float4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_shuffle_result_1() { float4 a = float4(0, 1, 2, 3); @@ -992,7 +992,7 @@ public static void float4_shuffle_result_1() TestUtils.AreEqual((7), shuffle(a, b, ShuffleComponent.RightW)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_shuffle_result_2() { float4 a = float4(0, 1, 2, 3); @@ -1016,7 +1016,7 @@ public static void float4_shuffle_result_2() TestUtils.AreEqual(float2(1, 3), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftW)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_shuffle_result_3() { float4 a = float4(0, 1, 2, 3); @@ -1040,7 +1040,7 @@ public static void float4_shuffle_result_3() TestUtils.AreEqual(float3(5, 1, 7), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.RightW)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_shuffle_result_4() { float4 a = float4(0, 1, 2, 3); diff --git a/src/Tests/Tests/Shared/TestFloat4x2.gen.cs b/src/Tests/Tests/Shared/TestFloat4x2.gen.cs index 492a62f9..9b0cd505 100644 --- a/src/Tests/Tests/Shared/TestFloat4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat4x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_zero() { TestUtils.AreEqual(0.0f, float4x2.zero.c0.x); @@ -28,7 +28,7 @@ public static void float4x2_zero() TestUtils.AreEqual(0.0f, float4x2.zero.c1.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_equal_wide_wide() { float4x2 a0 = float4x2(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f, -23.8904114f, -16.8197327f); @@ -52,7 +52,7 @@ public static void float4x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_equal_wide_scalar() { float4x2 a0 = float4x2(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f, 159.8761f, -59.55838f); @@ -76,7 +76,7 @@ public static void float4x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -100,7 +100,7 @@ public static void float4x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_not_equal_wide_wide() { float4x2 a0 = float4x2(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f, -509.3268f, -160.538086f); @@ -124,7 +124,7 @@ public static void float4x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_not_equal_wide_scalar() { float4x2 a0 = float4x2(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f, -197.12796f, -169.099854f); @@ -148,7 +148,7 @@ public static void float4x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -172,7 +172,7 @@ public static void float4x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_less_wide_wide() { float4x2 a0 = float4x2(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f, 8.839233f, -333.8167f); @@ -196,7 +196,7 @@ public static void float4x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_less_wide_scalar() { float4x2 a0 = float4x2(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f, -158.240753f, 437.3459f); @@ -220,7 +220,7 @@ public static void float4x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -244,7 +244,7 @@ public static void float4x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_greater_wide_wide() { float4x2 a0 = float4x2(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f, -14.8974f, -33.8174438f); @@ -268,7 +268,7 @@ public static void float4x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_greater_wide_scalar() { float4x2 a0 = float4x2(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f, 286.199463f, 280.813354f); @@ -292,7 +292,7 @@ public static void float4x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -316,7 +316,7 @@ public static void float4x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_less_equal_wide_wide() { float4x2 a0 = float4x2(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f, -97.94849f, 437.2954f); @@ -340,7 +340,7 @@ public static void float4x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_less_equal_wide_scalar() { float4x2 a0 = float4x2(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f, 241.361145f, -463.8164f); @@ -364,7 +364,7 @@ public static void float4x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -388,7 +388,7 @@ public static void float4x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_greater_equal_wide_wide() { float4x2 a0 = float4x2(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f, -463.702026f, 387.448853f); @@ -412,7 +412,7 @@ public static void float4x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_greater_equal_wide_scalar() { float4x2 a0 = float4x2(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f, 16.3533936f, -344.559967f); @@ -436,7 +436,7 @@ public static void float4x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -460,7 +460,7 @@ public static void float4x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_add_wide_wide() { float4x2 a0 = float4x2(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f, 424.344055f, 87.79108f); @@ -484,7 +484,7 @@ public static void float4x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_add_wide_scalar() { float4x2 a0 = float4x2(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f, 30.9161377f, 60.37433f); @@ -508,7 +508,7 @@ public static void float4x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -532,7 +532,7 @@ public static void float4x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_sub_wide_wide() { float4x2 a0 = float4x2(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f, -410.46405f, -401.384644f); @@ -556,7 +556,7 @@ public static void float4x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_sub_wide_scalar() { float4x2 a0 = float4x2(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f, 18.8562622f, -44.96161f); @@ -580,7 +580,7 @@ public static void float4x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -604,7 +604,7 @@ public static void float4x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_mul_wide_wide() { float4x2 a0 = float4x2(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f, 183.9873f, -241.33548f); @@ -628,7 +628,7 @@ public static void float4x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_mul_wide_scalar() { float4x2 a0 = float4x2(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f, -455.50827f, -389.2433f); @@ -652,7 +652,7 @@ public static void float4x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -676,7 +676,7 @@ public static void float4x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_div_wide_wide() { float4x2 a0 = float4x2(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f, -136.0596f, -370.471f); @@ -700,7 +700,7 @@ public static void float4x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_div_wide_scalar() { float4x2 a0 = float4x2(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f, -127.4487f, -79.7449f); @@ -724,7 +724,7 @@ public static void float4x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -748,7 +748,7 @@ public static void float4x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_mod_wide_wide() { float4x2 a0 = float4x2(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f, 283.3183f, 122.716492f); @@ -772,7 +772,7 @@ public static void float4x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_mod_wide_scalar() { float4x2 a0 = float4x2(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f, 281.309631f, -226.535767f); @@ -796,7 +796,7 @@ public static void float4x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -820,7 +820,7 @@ public static void float4x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_plus() { float4x2 a0 = float4x2(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f, 293.742f, -373.015442f); @@ -840,7 +840,7 @@ public static void float4x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_neg() { float4x2 a0 = float4x2(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f, -54.95877f, -382.9898f); @@ -860,7 +860,7 @@ public static void float4x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_prefix_inc() { float4x2 a0 = float4x2(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f, -392.7315f, -300.1941f); @@ -880,7 +880,7 @@ public static void float4x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_postfix_inc() { float4x2 a0 = float4x2(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f, -81.39343f, 66.71973f); @@ -900,7 +900,7 @@ public static void float4x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_prefix_dec() { float4x2 a0 = float4x2(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f, 187.874146f, -236.225189f); @@ -920,7 +920,7 @@ public static void float4x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x2_operator_postfix_dec() { float4x2 a0 = float4x2(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f, -63.65515f, 355.2611f); diff --git a/src/Tests/Tests/Shared/TestFloat4x3.gen.cs b/src/Tests/Tests/Shared/TestFloat4x3.gen.cs index 06fb08a0..f2d4f21f 100644 --- a/src/Tests/Tests/Shared/TestFloat4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat4x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_zero() { TestUtils.AreEqual(0.0f, float4x3.zero.c0.x); @@ -32,7 +32,7 @@ public static void float4x3_zero() TestUtils.AreEqual(0.0f, float4x3.zero.c2.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_equal_wide_wide() { float4x3 a0 = float4x3(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f, -23.8904114f, -16.8197327f, 163.232117f, -165.271f, 470.8777f, -423.942566f); @@ -56,7 +56,7 @@ public static void float4x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_equal_wide_scalar() { float4x3 a0 = float4x3(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f, 159.8761f, -59.55838f, -57.4773865f, -182.049744f, 406.513733f, 370.886f); @@ -80,7 +80,7 @@ public static void float4x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -104,7 +104,7 @@ public static void float4x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_not_equal_wide_wide() { float4x3 a0 = float4x3(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f, -509.3268f, -160.538086f, -203.301971f, -505.763245f, 162.17218f, 1.156189f); @@ -128,7 +128,7 @@ public static void float4x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_not_equal_wide_scalar() { float4x3 a0 = float4x3(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f, -197.12796f, -169.099854f, -386.611176f, -281.021f, -270.26886f, -403.9637f); @@ -152,7 +152,7 @@ public static void float4x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -176,7 +176,7 @@ public static void float4x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_less_wide_wide() { float4x3 a0 = float4x3(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f, 8.839233f, -333.8167f, 164.678833f, -350.9449f, 3.84143066f, 125.409729f); @@ -200,7 +200,7 @@ public static void float4x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_less_wide_scalar() { float4x3 a0 = float4x3(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f, -158.240753f, 437.3459f, -20.4526062f, 225.2915f, 307.4842f, 274.015259f); @@ -224,7 +224,7 @@ public static void float4x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -248,7 +248,7 @@ public static void float4x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_greater_wide_wide() { float4x3 a0 = float4x3(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f, -14.8974f, -33.8174438f, -24.74054f, 319.782654f, -120.158569f, -289.008575f); @@ -272,7 +272,7 @@ public static void float4x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_greater_wide_scalar() { float4x3 a0 = float4x3(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f, 286.199463f, 280.813354f, -405.7846f, 171.565369f, -241.807281f, 333.5782f); @@ -296,7 +296,7 @@ public static void float4x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -320,7 +320,7 @@ public static void float4x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_less_equal_wide_wide() { float4x3 a0 = float4x3(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f, -97.94849f, 437.2954f, 458.530273f, -294.064758f, 23.62262f, -34.2840576f); @@ -344,7 +344,7 @@ public static void float4x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_less_equal_wide_scalar() { float4x3 a0 = float4x3(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f, 241.361145f, -463.8164f, -1.35775757f, -268.899475f, 398.991943f, -471.253082f); @@ -368,7 +368,7 @@ public static void float4x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -392,7 +392,7 @@ public static void float4x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_greater_equal_wide_wide() { float4x3 a0 = float4x3(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f, -463.702026f, 387.448853f, 456.9688f, -211.010162f, 182.411377f, -53.59604f); @@ -416,7 +416,7 @@ public static void float4x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_greater_equal_wide_scalar() { float4x3 a0 = float4x3(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f, 16.3533936f, -344.559967f, 393.278076f, -315.701538f, 441.011536f, -509.781555f); @@ -440,7 +440,7 @@ public static void float4x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -464,7 +464,7 @@ public static void float4x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_add_wide_wide() { float4x3 a0 = float4x3(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f, 424.344055f, 87.79108f, 462.4137f, -46.17871f, 401.170044f, -454.124146f); @@ -488,7 +488,7 @@ public static void float4x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_add_wide_scalar() { float4x3 a0 = float4x3(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f, 30.9161377f, 60.37433f, -242.118744f, 82.50134f, 6.79937744f, -484.6998f); @@ -512,7 +512,7 @@ public static void float4x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -536,7 +536,7 @@ public static void float4x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_sub_wide_wide() { float4x3 a0 = float4x3(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f, -410.46405f, -401.384644f, 317.706848f, 447.060425f, -489.074158f, -230.008392f); @@ -560,7 +560,7 @@ public static void float4x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_sub_wide_scalar() { float4x3 a0 = float4x3(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f, 18.8562622f, -44.96161f, 480.857971f, 16.3381958f, -366.865448f, -35.5231f); @@ -584,7 +584,7 @@ public static void float4x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -608,7 +608,7 @@ public static void float4x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_mul_wide_wide() { float4x3 a0 = float4x3(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f, 183.9873f, -241.33548f, 45.8687744f, 363.3261f, -328.118958f, -471.023071f); @@ -632,7 +632,7 @@ public static void float4x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_mul_wide_scalar() { float4x3 a0 = float4x3(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f, -455.50827f, -389.2433f, -338.29248f, 53.7962646f, 243.757324f, 135.354675f); @@ -656,7 +656,7 @@ public static void float4x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -680,7 +680,7 @@ public static void float4x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_div_wide_wide() { float4x3 a0 = float4x3(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f, -136.0596f, -370.471f, -237.69455f, -432.546875f, 200.2655f, 361.4416f); @@ -704,7 +704,7 @@ public static void float4x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_div_wide_scalar() { float4x3 a0 = float4x3(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f, -127.4487f, -79.7449f, 146.466858f, -499.843567f, 58.68634f, -453.2058f); @@ -728,7 +728,7 @@ public static void float4x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -752,7 +752,7 @@ public static void float4x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_mod_wide_wide() { float4x3 a0 = float4x3(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f, 283.3183f, 122.716492f, 335.271f, -503.608521f, 191.022522f, 289.742676f); @@ -776,7 +776,7 @@ public static void float4x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_mod_wide_scalar() { float4x3 a0 = float4x3(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f, 281.309631f, -226.535767f, 335.166138f, 101.706482f, 319.4715f, -285.4023f); @@ -800,7 +800,7 @@ public static void float4x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -824,7 +824,7 @@ public static void float4x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_plus() { float4x3 a0 = float4x3(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f, 293.742f, -373.015442f, -386.059845f, 4.95440674f, -418.645264f, 504.474854f); @@ -844,7 +844,7 @@ public static void float4x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_neg() { float4x3 a0 = float4x3(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f, -54.95877f, -382.9898f, -299.093384f, -383.014069f, 407.709778f, 168.735474f); @@ -864,7 +864,7 @@ public static void float4x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_prefix_inc() { float4x3 a0 = float4x3(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f, -392.7315f, -300.1941f, 362.212769f, 401.6148f, 130.90918f, -450.230164f); @@ -884,7 +884,7 @@ public static void float4x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_postfix_inc() { float4x3 a0 = float4x3(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f, -81.39343f, 66.71973f, 167.852112f, 147.94397f, -326.1076f, 41.03357f); @@ -904,7 +904,7 @@ public static void float4x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_prefix_dec() { float4x3 a0 = float4x3(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f, 187.874146f, -236.225189f, 125.109619f, 469.844727f, 45.5366821f, 376.046875f); @@ -924,7 +924,7 @@ public static void float4x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x3_operator_postfix_dec() { float4x3 a0 = float4x3(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f, -63.65515f, 355.2611f, -27.8892212f, -100.761841f, 156.14032f, 479.9452f); diff --git a/src/Tests/Tests/Shared/TestFloat4x4.gen.cs b/src/Tests/Tests/Shared/TestFloat4x4.gen.cs index d7c82665..1e706448 100644 --- a/src/Tests/Tests/Shared/TestFloat4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestFloat4x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestFloat4x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_zero() { TestUtils.AreEqual(0.0f, float4x4.zero.c0.x); @@ -36,7 +36,7 @@ public static void float4x4_zero() TestUtils.AreEqual(0.0f, float4x4.zero.c3.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_identity() { TestUtils.AreEqual(1.0f, float4x4.identity.c0.x); @@ -57,7 +57,7 @@ public static void float4x4_identity() TestUtils.AreEqual(1.0f, float4x4.identity.c3.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_equal_wide_wide() { float4x4 a0 = float4x4(492.1576f, -495.206329f, 227.457642f, -147.374054f, -222.682f, 64.09375f, -23.8904114f, -16.8197327f, 163.232117f, -165.271f, 470.8777f, -423.942566f, 109.6344f, 462.6903f, -335.38147f, 357.2345f); @@ -81,7 +81,7 @@ public static void float4x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_equal_wide_scalar() { float4x4 a0 = float4x4(-303.230072f, 451.5263f, -253.655884f, -105.203644f, -500.6911f, -426.192474f, 159.8761f, -59.55838f, -57.4773865f, -182.049744f, 406.513733f, 370.886f, -172.035309f, 455.400024f, -11.3389893f, 363.938232f); @@ -105,7 +105,7 @@ public static void float4x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_equal_scalar_wide() { float a0 = (-253.397278f); @@ -129,7 +129,7 @@ public static void float4x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_not_equal_wide_wide() { float4x4 a0 = float4x4(430.842529f, 104.69f, 225.802429f, -310.5702f, -418.619446f, 304.128174f, -509.3268f, -160.538086f, -203.301971f, -505.763245f, 162.17218f, 1.156189f, 65.66205f, 102.787781f, 172.930054f, 26.6210327f); @@ -153,7 +153,7 @@ public static void float4x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_not_equal_wide_scalar() { float4x4 a0 = float4x4(-16.9145813f, 168.8341f, -462.713531f, 130.307739f, 214.501587f, -440.263275f, -197.12796f, -169.099854f, -386.611176f, -281.021f, -270.26886f, -403.9637f, -269.805725f, 299.654236f, -71.7509155f, -432.755737f); @@ -177,7 +177,7 @@ public static void float4x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_not_equal_scalar_wide() { float a0 = (275.795837f); @@ -201,7 +201,7 @@ public static void float4x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_less_wide_wide() { float4x4 a0 = float4x4(196.84259f, 336.4098f, 251.963745f, 257.655945f, 430.0459f, -62.4196472f, 8.839233f, -333.8167f, 164.678833f, -350.9449f, 3.84143066f, 125.409729f, -111.129944f, 70.00549f, 448.1983f, -419.987122f); @@ -225,7 +225,7 @@ public static void float4x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_less_wide_scalar() { float4x4 a0 = float4x4(-132.057312f, -192.465f, -66.8345947f, -379.017517f, -360.2824f, 20.9278564f, -158.240753f, 437.3459f, -20.4526062f, 225.2915f, 307.4842f, 274.015259f, 373.549683f, 398.523682f, 105.030151f, -58.0108948f); @@ -249,7 +249,7 @@ public static void float4x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_less_scalar_wide() { float a0 = (-423.1174f); @@ -273,7 +273,7 @@ public static void float4x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_greater_wide_wide() { float4x4 a0 = float4x4(483.5014f, 310.8156f, 106.966187f, 295.7353f, 116.957581f, -478.299774f, -14.8974f, -33.8174438f, -24.74054f, 319.782654f, -120.158569f, -289.008575f, 455.85144f, 144.706909f, 63.9320068f, -285.683044f); @@ -297,7 +297,7 @@ public static void float4x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_greater_wide_scalar() { float4x4 a0 = float4x4(64.31793f, -397.703461f, 431.8769f, 85.703f, 246.263062f, 197.491577f, 286.199463f, 280.813354f, -405.7846f, 171.565369f, -241.807281f, 333.5782f, 370.279175f, -413.7014f, -356.592346f, -353.0313f); @@ -321,7 +321,7 @@ public static void float4x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_greater_scalar_wide() { float a0 = (-282.6705f); @@ -345,7 +345,7 @@ public static void float4x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_less_equal_wide_wide() { float4x4 a0 = float4x4(-438.523132f, 210.489441f, 4.87731934f, -137.297943f, 156.094116f, -363.924133f, -97.94849f, 437.2954f, 458.530273f, -294.064758f, 23.62262f, -34.2840576f, 149.736511f, -418.8867f, -197.502533f, -88.2055054f); @@ -369,7 +369,7 @@ public static void float4x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_less_equal_wide_scalar() { float4x4 a0 = float4x4(193.49585f, 168.915527f, -313.993073f, 81.8269653f, 18.5036011f, -0.3581848f, 241.361145f, -463.8164f, -1.35775757f, -268.899475f, 398.991943f, -471.253082f, -264.9378f, 82.2583f, 11.2460327f, 424.704041f); @@ -393,7 +393,7 @@ public static void float4x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_less_equal_scalar_wide() { float a0 = (393.606262f); @@ -417,7 +417,7 @@ public static void float4x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_greater_equal_wide_wide() { float4x4 a0 = float4x4(-507.9286f, 504.4975f, -385.4345f, -262.323425f, -37.5509338f, -111.595276f, -463.702026f, 387.448853f, 456.9688f, -211.010162f, 182.411377f, -53.59604f, -309.570221f, -136.022491f, 280.736267f, -96.99588f); @@ -441,7 +441,7 @@ public static void float4x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_greater_equal_wide_scalar() { float4x4 a0 = float4x4(465.152161f, -424.886078f, -209.2211f, 58.7798462f, -302.2691f, 140.12561f, 16.3533936f, -344.559967f, 393.278076f, -315.701538f, 441.011536f, -509.781555f, -36.9942932f, 494.8203f, -164.973938f, -466.1201f); @@ -465,7 +465,7 @@ public static void float4x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_greater_equal_scalar_wide() { float a0 = (374.827026f); @@ -489,7 +489,7 @@ public static void float4x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_add_wide_wide() { float4x4 a0 = float4x4(506.129028f, -501.779816f, 420.084778f, -186.032074f, -9.312408f, 328.51178f, 424.344055f, 87.79108f, 462.4137f, -46.17871f, 401.170044f, -454.124146f, 69.19568f, -177.957336f, 299.604126f, 340.704834f); @@ -513,7 +513,7 @@ public static void float4x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_add_wide_scalar() { float4x4 a0 = float4x4(-194.514191f, 338.5484f, 246.971375f, 100.510925f, -45.72467f, -478.1113f, 30.9161377f, 60.37433f, -242.118744f, 82.50134f, 6.79937744f, -484.6998f, -188.265015f, -213.526733f, -267.7843f, 189.259949f); @@ -537,7 +537,7 @@ public static void float4x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_add_scalar_wide() { float a0 = (-340.354675f); @@ -561,7 +561,7 @@ public static void float4x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_sub_wide_wide() { float4x4 a0 = float4x4(160.492249f, 11.223938f, 359.200134f, -498.2283f, -355.253632f, -94.53485f, -410.46405f, -401.384644f, 317.706848f, 447.060425f, -489.074158f, -230.008392f, 24.8754272f, 366.614441f, -107.374146f, -219.008148f); @@ -585,7 +585,7 @@ public static void float4x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_sub_wide_scalar() { float4x4 a0 = float4x4(207.389587f, 248.457764f, -384.8239f, -205.344757f, -374.811554f, 191.642029f, 18.8562622f, -44.96161f, 480.857971f, 16.3381958f, -366.865448f, -35.5231f, 349.397766f, 439.077271f, 490.2223f, 195.024048f); @@ -609,7 +609,7 @@ public static void float4x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_sub_scalar_wide() { float a0 = (-86.00824f); @@ -633,7 +633,7 @@ public static void float4x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_mul_wide_wide() { float4x4 a0 = float4x4(-482.7138f, -407.2935f, 137.700562f, 208.541138f, 194.29657f, -484.242432f, 183.9873f, -241.33548f, 45.8687744f, 363.3261f, -328.118958f, -471.023071f, -262.682556f, -379.262756f, -374.090576f, 481.4474f); @@ -657,7 +657,7 @@ public static void float4x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_mul_wide_scalar() { float4x4 a0 = float4x4(-96.31882f, -277.142273f, -239.93689f, 509.531433f, 255.8581f, 215.7315f, -455.50827f, -389.2433f, -338.29248f, 53.7962646f, 243.757324f, 135.354675f, -207.3501f, -383.9396f, -31.4252319f, 42.6761475f); @@ -681,7 +681,7 @@ public static void float4x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_mul_scalar_wide() { float a0 = (37.43219f); @@ -705,7 +705,7 @@ public static void float4x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_div_wide_wide() { float4x4 a0 = float4x4(-353.131439f, -102.799866f, 51.3191528f, -191.871674f, 8.041809f, -128.73764f, -136.0596f, -370.471f, -237.69455f, -432.546875f, 200.2655f, 361.4416f, -416.226135f, -450.0192f, -273.497437f, -286.908173f); @@ -729,7 +729,7 @@ public static void float4x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_div_wide_scalar() { float4x4 a0 = float4x4(171.3424f, 0.103393555f, 57.8882446f, -256.130737f, 95.66968f, -290.3869f, -127.4487f, -79.7449f, 146.466858f, -499.843567f, 58.68634f, -453.2058f, -205.033813f, 481.738159f, 464.479065f, -293.4635f); @@ -753,7 +753,7 @@ public static void float4x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_div_scalar_wide() { float a0 = (-264.4425f); @@ -777,7 +777,7 @@ public static void float4x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_mod_wide_wide() { float4x4 a0 = float4x4(-388.8125f, 181.681213f, -167.078735f, 432.820129f, -258.438965f, -170.110809f, 283.3183f, 122.716492f, 335.271f, -503.608521f, 191.022522f, 289.742676f, -124.033722f, 259.274f, -274.358459f, -140.030792f); @@ -801,7 +801,7 @@ public static void float4x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_mod_wide_scalar() { float4x4 a0 = float4x4(-244.499634f, -211.8193f, -145.926788f, -304.9182f, 155.479492f, -133.907776f, 281.309631f, -226.535767f, 335.166138f, 101.706482f, 319.4715f, -285.4023f, -355.846863f, 259.378f, -330.871948f, -284.343567f); @@ -825,7 +825,7 @@ public static void float4x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_mod_scalar_wide() { float a0 = (-66.94504f); @@ -849,7 +849,7 @@ public static void float4x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_plus() { float4x4 a0 = float4x4(-418.829559f, -405.79895f, -34.04178f, 236.999268f, -459.8391f, 210.86145f, 293.742f, -373.015442f, -386.059845f, 4.95440674f, -418.645264f, 504.474854f, -170.746521f, 439.5594f, -478.7494f, 116.400757f); @@ -869,7 +869,7 @@ public static void float4x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_neg() { float4x4 a0 = float4x4(148.461731f, -467.122681f, 132.04718f, 183.522644f, 473.701f, -407.9911f, -54.95877f, -382.9898f, -299.093384f, -383.014069f, 407.709778f, 168.735474f, 466.441528f, 171.902466f, -280.558319f, -78.857605f); @@ -889,7 +889,7 @@ public static void float4x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_prefix_inc() { float4x4 a0 = float4x4(-139.842072f, -56.7436523f, -381.955322f, 509.796326f, -222.896332f, 210.319885f, -392.7315f, -300.1941f, 362.212769f, 401.6148f, 130.90918f, -450.230164f, 243.546936f, 46.1920166f, -41.4972839f, 299.1855f); @@ -909,7 +909,7 @@ public static void float4x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_postfix_inc() { float4x4 a0 = float4x4(-396.669739f, 511.20752f, 249.111267f, -128.817322f, -259.4903f, 278.008179f, -81.39343f, 66.71973f, 167.852112f, 147.94397f, -326.1076f, 41.03357f, 128.5304f, 73.15558f, -60.1323853f, -446.229767f); @@ -929,7 +929,7 @@ public static void float4x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_prefix_dec() { float4x4 a0 = float4x4(123.128723f, 256.84375f, 156.330811f, 461.737427f, 325.867981f, 392.015625f, 187.874146f, -236.225189f, 125.109619f, 469.844727f, 45.5366821f, 376.046875f, -363.0755f, -22.0289612f, 248.7901f, 168.095032f); @@ -949,7 +949,7 @@ public static void float4x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_operator_postfix_dec() { float4x4 a0 = float4x4(379.6883f, 302.692871f, -176.07135f, -291.2527f, 470.567566f, -402.925964f, -63.65515f, 355.2611f, -27.8892212f, -100.761841f, 156.14032f, 479.9452f, -200.304291f, -445.026947f, 407.420349f, 327.670349f); diff --git a/src/Tests/Tests/Shared/TestHalf.cs b/src/Tests/Tests/Shared/TestHalf.cs index 301e06d2..7cd3e330 100644 --- a/src/Tests/Tests/Shared/TestHalf.cs +++ b/src/Tests/Tests/Shared/TestHalf.cs @@ -8,20 +8,20 @@ namespace Unity.Mathematics.Tests [TestFixture] public partial class TestHalf { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half_zero() { TestUtils.AreEqual(0x0000, half.zero.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half2_zero() { TestUtils.AreEqual(0x0000, half2.zero.x.value); TestUtils.AreEqual(0x0000, half2.zero.y.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half3_zero() { TestUtils.AreEqual(0x0000, half3.zero.x.value); @@ -29,7 +29,7 @@ public static void half3_zero() TestUtils.AreEqual(0x0000, half3.zero.z.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half4_zero() { TestUtils.AreEqual(0x0000, half4.zero.x.value); @@ -38,7 +38,7 @@ public static void half4_zero() TestUtils.AreEqual(0x0000, half4.zero.w.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half_from_float_construction() { TestUtils.AreEqual(0x0000, half(0.0f).value); @@ -58,14 +58,14 @@ public static void half_from_float_construction() TestUtils.AreEqual(0xFC00, half(float.NegativeInfinity).value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half_from_float_construction_signed_zero() { TestUtils.AreEqual(0x8000, half(TestUtils.SignedFloatZero()).value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half2_from_float2_construction() { half2 h0 = half2(float2(0.0f, 2.98e-08f)); @@ -89,7 +89,7 @@ public static void half2_from_float2_construction() TestUtils.AreEqual(uint2(0xFC00, 0x0000), uint2(h7.x.value, h7.y.value)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half2_from_float2_construction_signed_zero() { @@ -97,7 +97,7 @@ public static void half2_from_float2_construction_signed_zero() TestUtils.AreEqual(uint2(0x8000, 0x8000), uint2(h0.x.value, h0.y.value)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half3_from_float3_construction() { half3 h0 = half3(float3(0.0f, 2.98e-08f, 5.96046448e-08f)); @@ -114,7 +114,7 @@ public static void half3_from_float3_construction() TestUtils.AreEqual(uint3(0xFC00, 0xFC00, 0x0000), uint3(h4.x.value, h4.y.value, h4.z.value)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half3_from_float3_construction_signed_zero() { @@ -122,7 +122,7 @@ public static void half3_from_float3_construction_signed_zero() TestUtils.AreEqual(uint3(0x8000, 0x8000, 0x8000), uint3(h0.x.value, h0.y.value, h0.z.value)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half4_from_float4_construction() { half4 h0 = half4(float4(0.0f, 2.98e-08f, 5.96046448e-08f, 123.4f)); @@ -136,7 +136,7 @@ public static void half4_from_float4_construction() TestUtils.AreEqual(uint4(0xFC00, 0xFC00, 0xFC00, 0x0000), uint4(h3.x.value, h3.y.value, h3.z.value, h3.w.value)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half4_from_float4_construction_signed_zero() { @@ -145,7 +145,7 @@ public static void half4_from_float4_construction_signed_zero() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half_from_double_construction() { TestUtils.AreEqual(0x0000, half(0.0).value); @@ -165,14 +165,14 @@ public static void half_from_double_construction() TestUtils.AreEqual(0xFC00, half(double.NegativeInfinity).value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half_from_double_construction_signed_zero() { TestUtils.AreEqual(0x8000, half(TestUtils.SignedDoubleZero()).value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half2_from_double2_construction() { half2 h0 = half2(double2(0.0, 2.98e-08)); @@ -196,7 +196,7 @@ public static void half2_from_double2_construction() TestUtils.AreEqual(uint2(0xFC00, 0x0000), uint2(h7.x.value, h7.y.value)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half2_from_double2_construction_signed_zero() { @@ -204,7 +204,7 @@ public static void half2_from_double2_construction_signed_zero() TestUtils.AreEqual(uint2(0x8000, 0x8000), uint2(h0.x.value, h0.y.value)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half3_from_double3_construction() { half3 h0 = half3(double3(0.0, 2.98e-08, 5.96046448e-08)); @@ -221,7 +221,7 @@ public static void half3_from_double3_construction() TestUtils.AreEqual(uint3(0xFC00, 0xFC00, 0x0000), uint3(h4.x.value, h4.y.value, h4.z.value)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half3_from_double3_construction_signed_zero() { @@ -229,7 +229,7 @@ public static void half3_from_double3_construction_signed_zero() TestUtils.AreEqual(uint3(0x8000, 0x8000, 0x8000), uint3(h0.x.value, h0.y.value, h0.z.value)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half4_from_double4_construction() { half4 h0 = half4(double4(0.0, 2.98e-08, 5.96046448e-08, 123.4)); @@ -243,7 +243,7 @@ public static void half4_from_double4_construction() TestUtils.AreEqual(uint4(0xFC00, 0xFC00, 0xFC00, 0x0000), uint4(h3.x.value, h3.y.value, h3.z.value, h3.w.value)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void half4_from_double4_construction_signed_zero() { @@ -251,7 +251,7 @@ public static void half4_from_double4_construction_signed_zero() TestUtils.AreEqual(uint4(0x8000, 0x8000, 0x8000, 0x8000), uint4(h0.x.value, h0.y.value, h0.z.value, h0.w.value)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half_to_float() { TestUtils.AreEqual(0x00000000, asuint(new half { value = 0x0000 })); @@ -269,7 +269,7 @@ public static void half_to_float() TestUtils.AreEqual(true, isnan(new half { value = 0xFC01 })); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half2_to_float2() { half2 h0; h0.x.value = 0x0000; h0.y.value = 0x0203; @@ -293,7 +293,7 @@ public static void half2_to_float2() TestUtils.AreEqual(true, all(isnan(h7))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half3_to_float3() { half3 h0; h0.x.value = 0x0000; h0.y.value = 0x0203; h0.z.value = 0x4321; @@ -313,7 +313,7 @@ public static void half3_to_float3() TestUtils.AreEqual(true, all(isnan(h5))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half4_to_float4() { half4 h0; h0.x.value = 0x0000; h0.y.value = 0x0203; h0.z.value = 0x4321; h0.w.value = 0x7BFF; @@ -334,7 +334,7 @@ public static void half4_to_float4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half_to_double() { TestUtils.AreEqual(0x0000000000000000u, asulong((double)new half { value = 0x0000 })); @@ -353,14 +353,14 @@ public static void half_to_double() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half_from_float_explicit_conversion() { half h = (half)123.4f; TestUtils.AreEqual(0x57B6, h.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half2_from_float2_explicit_conversion() { half2 h = (half2)float2(123.4f, 5.96046448e-08f); @@ -368,7 +368,7 @@ public static void half2_from_float2_explicit_conversion() TestUtils.AreEqual(0x0001, h.y.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half3_from_float3_explicit_conversion() { half3 h = (half3)float3(123.4f, 5.96046448e-08f, -65504.0f); @@ -377,7 +377,7 @@ public static void half3_from_float3_explicit_conversion() TestUtils.AreEqual(0xFBFF, h.z.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half4_from_float4_explicit_conversion() { half4 h = (half4)float4(123.4f, 5.96046448e-08f, -65504.0f, float.PositiveInfinity); @@ -387,7 +387,7 @@ public static void half4_from_float4_explicit_conversion() TestUtils.AreEqual(0x7C00, h.w.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half_from_double_explicit_conversion() { half h = (half)123.4; @@ -395,7 +395,7 @@ public static void half_from_double_explicit_conversion() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half_to_float_implicit_conversion() { half h; h.value = 0x0203; @@ -403,7 +403,7 @@ public static void half_to_float_implicit_conversion() TestUtils.AreEqual(0x3800C000, asuint(f)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half2_to_float2_implicit_conversion() { half2 h; h.x.value = 0x0203; h.y.value = 0x8203; @@ -412,7 +412,7 @@ public static void half2_to_float2_implicit_conversion() TestUtils.AreEqual(0xB800C000, asuint(f.y)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half3_to_float3_implicit_conversion() { half3 h; h.x.value = 0x0203; h.y.value = 0x8203; h.z.value = 0x7BFF; @@ -422,7 +422,7 @@ public static void half3_to_float3_implicit_conversion() TestUtils.AreEqual(0x477FE000, asuint(f.z)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half4_to_float4_implicit_conversion() { half4 h; h.x.value = 0x0203; h.y.value = 0x8203; h.z.value = 0x7BFF; h.w.value = 0x7C00; @@ -433,7 +433,7 @@ public static void half4_to_float4_implicit_conversion() TestUtils.AreEqual(0x7F800000, asuint(f.w)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half_to_double_implicit_conversion() { half h; h.value = 0x0203; @@ -442,33 +442,33 @@ public static void half_to_double_implicit_conversion() TestUtils.AreEqual(0x3F00180000000000u, asulong(f)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half_minvalue() { half min = new half(half.MinValue); TestUtils.AreEqual(0xfbff, min.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half_maxvalue() { half max = new half(half.MaxValue); TestUtils.AreEqual(0x7bff, max.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half_minvalueashalf() { TestUtils.AreEqual(0xfbff, half.MinValueAsHalf.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half_maxvalueashalf() { TestUtils.AreEqual(0x7bff, half.MaxValueAsHalf.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half2_minvalue() { half2 min = half.MinValueAsHalf; @@ -476,7 +476,7 @@ public static void half2_minvalue() TestUtils.AreEqual(0xfbff, min.y.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half2_maxvalue() { half2 max = half.MaxValueAsHalf; @@ -484,7 +484,7 @@ public static void half2_maxvalue() TestUtils.AreEqual(0x7bff, max.y.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half3_minvalue() { half3 min = half.MinValueAsHalf; @@ -493,7 +493,7 @@ public static void half3_minvalue() TestUtils.AreEqual(0xfbff, min.z.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half3_maxvalue() { half3 max = half.MaxValueAsHalf; @@ -502,7 +502,7 @@ public static void half3_maxvalue() TestUtils.AreEqual(0x7bff, max.z.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half4_minvalue() { half4 min = half.MinValueAsHalf; @@ -512,7 +512,7 @@ public static void half4_minvalue() TestUtils.AreEqual(0xfbff, min.w.value); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void half4_maxvalue() { half4 max = half.MaxValueAsHalf; diff --git a/src/Tests/Tests/Shared/TestInt2.gen.cs b/src/Tests/Tests/Shared/TestInt2.gen.cs index 6196c993..75f6aba0 100644 --- a/src/Tests/Tests/Shared/TestInt2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2.gen.cs @@ -15,14 +15,14 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_zero() { TestUtils.AreEqual(0, int2.zero.x); TestUtils.AreEqual(0, int2.zero.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_constructor() { int2 a = new int2(1, 2); @@ -30,7 +30,7 @@ public static void int2_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_scalar_constructor() { int2 a = new int2(17); @@ -38,7 +38,7 @@ public static void int2_scalar_constructor() TestUtils.AreEqual(17, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_static_constructor() { int2 a = int2(1, 2); @@ -46,7 +46,7 @@ public static void int2_static_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_static_scalar_constructor() { int2 a = int2(17); @@ -54,7 +54,7 @@ public static void int2_static_scalar_constructor() TestUtils.AreEqual(17, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_equal_wide_wide() { int2 a0 = int2(2105871082, 35218899); @@ -78,7 +78,7 @@ public static void int2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_equal_wide_scalar() { int2 a0 = int2(437822262, 2020661134); @@ -102,7 +102,7 @@ public static void int2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_equal_scalar_wide() { int a0 = (542329200); @@ -126,7 +126,7 @@ public static void int2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_not_equal_wide_wide() { int2 a0 = int2(1977284100, 1293292704); @@ -150,7 +150,7 @@ public static void int2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_not_equal_wide_scalar() { int2 a0 = int2(1038269360, 1427812625); @@ -174,7 +174,7 @@ public static void int2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -198,7 +198,7 @@ public static void int2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_less_wide_wide() { int2 a0 = int2(1486550609, 1779244308); @@ -222,7 +222,7 @@ public static void int2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_less_wide_scalar() { int2 a0 = int2(796797557, 670113454); @@ -246,7 +246,7 @@ public static void int2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_less_scalar_wide() { int a0 = (186400299); @@ -270,7 +270,7 @@ public static void int2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_greater_wide_wide() { int2 a0 = int2(2087717754, 1725569452); @@ -294,7 +294,7 @@ public static void int2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_greater_wide_scalar() { int2 a0 = int2(1208626274, 239697208); @@ -318,7 +318,7 @@ public static void int2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_greater_scalar_wide() { int a0 = (480938827); @@ -342,7 +342,7 @@ public static void int2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_less_equal_wide_wide() { int2 a0 = int2(154092149, 1515170149); @@ -366,7 +366,7 @@ public static void int2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_less_equal_wide_scalar() { int2 a0 = int2(1479531977, 1427983411); @@ -390,7 +390,7 @@ public static void int2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -414,7 +414,7 @@ public static void int2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_greater_equal_wide_wide() { int2 a0 = int2(8538378, 2131749726); @@ -438,7 +438,7 @@ public static void int2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_greater_equal_wide_scalar() { int2 a0 = int2(2049236663, 182691143); @@ -462,7 +462,7 @@ public static void int2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -486,7 +486,7 @@ public static void int2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_add_wide_wide() { int2 a0 = int2(2135171378, 21433296); @@ -510,7 +510,7 @@ public static void int2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_add_wide_scalar() { int2 a0 = int2(665815972, 1783729250); @@ -534,7 +534,7 @@ public static void int2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_add_scalar_wide() { int a0 = (359966320); @@ -558,7 +558,7 @@ public static void int2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_sub_wide_wide() { int2 a0 = int2(1410318491, 1097280168); @@ -582,7 +582,7 @@ public static void int2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_sub_wide_scalar() { int2 a0 = int2(1508669340, 1594795463); @@ -606,7 +606,7 @@ public static void int2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_sub_scalar_wide() { int a0 = (893369501); @@ -630,7 +630,7 @@ public static void int2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_mul_wide_wide() { int2 a0 = int2(61417577, 219585476); @@ -654,7 +654,7 @@ public static void int2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_mul_wide_scalar() { int2 a0 = int2(871746615, 492532311); @@ -678,7 +678,7 @@ public static void int2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -702,7 +702,7 @@ public static void int2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_div_wide_wide() { int2 a0 = int2(333171510, 858154903); @@ -726,7 +726,7 @@ public static void int2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_div_wide_scalar() { int2 a0 = int2(1433072926, 1073958635); @@ -750,7 +750,7 @@ public static void int2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_div_scalar_wide() { int a0 = (519165704); @@ -774,7 +774,7 @@ public static void int2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_mod_wide_wide() { int2 a0 = int2(258342924, 1454754891); @@ -798,7 +798,7 @@ public static void int2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_mod_wide_scalar() { int2 a0 = int2(560988938, 629524514); @@ -822,7 +822,7 @@ public static void int2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_mod_scalar_wide() { int a0 = (933347930); @@ -846,7 +846,7 @@ public static void int2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_plus() { int2 a0 = int2(195392567, 222719748); @@ -866,7 +866,7 @@ public static void int2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_neg() { int2 a0 = int2(1385088677, 94114564); @@ -886,7 +886,7 @@ public static void int2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_prefix_inc() { int2 a0 = int2(780471723, 954741756); @@ -906,7 +906,7 @@ public static void int2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_postfix_inc() { int2 a0 = int2(241865086, 2145821641); @@ -926,7 +926,7 @@ public static void int2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_prefix_dec() { int2 a0 = int2(1331961415, 1612382200); @@ -946,7 +946,7 @@ public static void int2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_postfix_dec() { int2 a0 = int2(1870005937, 1708534798); @@ -966,7 +966,7 @@ public static void int2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_bitwise_and_wide_wide() { int2 a0 = int2(1055241304, 859321394); @@ -990,7 +990,7 @@ public static void int2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_bitwise_and_wide_scalar() { int2 a0 = int2(1513158868, 284695609); @@ -1014,7 +1014,7 @@ public static void int2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1038,7 +1038,7 @@ public static void int2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_bitwise_or_wide_wide() { int2 a0 = int2(1920951869, 1750772852); @@ -1062,7 +1062,7 @@ public static void int2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_bitwise_or_wide_scalar() { int2 a0 = int2(1295304853, 1307252624); @@ -1086,7 +1086,7 @@ public static void int2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1110,7 +1110,7 @@ public static void int2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_bitwise_xor_wide_wide() { int2 a0 = int2(1843655608, 362425681); @@ -1134,7 +1134,7 @@ public static void int2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_bitwise_xor_wide_scalar() { int2 a0 = int2(169345668, 176087064); @@ -1158,7 +1158,7 @@ public static void int2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1182,7 +1182,7 @@ public static void int2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_left_shift() { int2 a0 = int2(1129100049, 829482269); @@ -1206,7 +1206,7 @@ public static void int2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_right_shift() { int2 a0 = int2(809126085, 908563670); @@ -1230,7 +1230,7 @@ public static void int2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_operator_bitwise_not() { int2 a0 = int2(111796841, 603562399); @@ -1250,7 +1250,7 @@ public static void int2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_shuffle_result_1() { int2 a = int2(0, 1); @@ -1262,7 +1262,7 @@ public static void int2_shuffle_result_1() TestUtils.AreEqual((3), shuffle(a, b, ShuffleComponent.RightY)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_shuffle_result_2() { int2 a = int2(0, 1); @@ -1286,7 +1286,7 @@ public static void int2_shuffle_result_2() TestUtils.AreEqual(int2(3, 3), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.RightY)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_shuffle_result_3() { int2 a = int2(0, 1); @@ -1310,7 +1310,7 @@ public static void int2_shuffle_result_3() TestUtils.AreEqual(int3(3, 1, 1), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.LeftY)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_shuffle_result_4() { int2 a = int2(0, 1); diff --git a/src/Tests/Tests/Shared/TestInt2x2.gen.cs b/src/Tests/Tests/Shared/TestInt2x2.gen.cs index a99dd57e..754451d3 100644 --- a/src/Tests/Tests/Shared/TestInt2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt2x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_zero() { TestUtils.AreEqual(0, int2x2.zero.c0.x); @@ -24,7 +24,7 @@ public static void int2x2_zero() TestUtils.AreEqual(0, int2x2.zero.c1.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_identity() { TestUtils.AreEqual(1, int2x2.identity.c0.x); @@ -33,7 +33,7 @@ public static void int2x2_identity() TestUtils.AreEqual(1, int2x2.identity.c1.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_equal_wide_wide() { int2x2 a0 = int2x2(2105871082, 35218899, 1550755093, 764676020); @@ -57,7 +57,7 @@ public static void int2x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_equal_wide_scalar() { int2x2 a0 = int2x2(437822262, 2020661134, 541786900, 853113810); @@ -81,7 +81,7 @@ public static void int2x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_equal_scalar_wide() { int a0 = (542329200); @@ -105,7 +105,7 @@ public static void int2x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_not_equal_wide_wide() { int2x2 a0 = int2x2(1977284100, 1293292704, 1547283851, 422428953); @@ -129,7 +129,7 @@ public static void int2x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_not_equal_wide_scalar() { int2x2 a0 = int2x2(1038269360, 1427812625, 103361237, 1347017023); @@ -153,7 +153,7 @@ public static void int2x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -177,7 +177,7 @@ public static void int2x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_less_wide_wide() { int2x2 a0 = int2x2(1486550609, 1779244308, 1602148045, 1614085440); @@ -201,7 +201,7 @@ public static void int2x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_less_wide_scalar() { int2x2 a0 = int2x2(796797557, 670113454, 933579492, 278884514); @@ -225,7 +225,7 @@ public static void int2x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_less_scalar_wide() { int a0 = (186400299); @@ -249,7 +249,7 @@ public static void int2x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_greater_wide_wide() { int2x2 a0 = int2x2(2087717754, 1725569452, 1298066182, 1693943616); @@ -273,7 +273,7 @@ public static void int2x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_greater_wide_scalar() { int2x2 a0 = int2x2(1208626274, 239697208, 1979453345, 1253474001); @@ -297,7 +297,7 @@ public static void int2x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_greater_scalar_wide() { int a0 = (480938827); @@ -321,7 +321,7 @@ public static void int2x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_less_equal_wide_wide() { int2x2 a0 = int2x2(154092149, 1515170149, 1083970332, 785807178); @@ -345,7 +345,7 @@ public static void int2x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_less_equal_wide_scalar() { int2x2 a0 = int2x2(1479531977, 1427983411, 415250630, 1245345407); @@ -369,7 +369,7 @@ public static void int2x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -393,7 +393,7 @@ public static void int2x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_greater_equal_wide_wide() { int2x2 a0 = int2x2(8538378, 2131749726, 265427108, 523609761); @@ -417,7 +417,7 @@ public static void int2x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_greater_equal_wide_scalar() { int2x2 a0 = int2x2(2049236663, 182691143, 634973382, 1197012109); @@ -441,7 +441,7 @@ public static void int2x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -465,7 +465,7 @@ public static void int2x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_add_wide_wide() { int2x2 a0 = int2x2(2135171378, 21433296, 1954723494, 683604307); @@ -489,7 +489,7 @@ public static void int2x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_add_wide_scalar() { int2x2 a0 = int2x2(665815972, 1783729250, 1591678394, 1284528538); @@ -513,7 +513,7 @@ public static void int2x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_add_scalar_wide() { int a0 = (359966320); @@ -537,7 +537,7 @@ public static void int2x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_sub_wide_wide() { int2x2 a0 = int2x2(1410318491, 1097280168, 1827039044, 28881338); @@ -561,7 +561,7 @@ public static void int2x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_sub_wide_scalar() { int2x2 a0 = int2x2(1508669340, 1594795463, 266707545, 643102647); @@ -585,7 +585,7 @@ public static void int2x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_sub_scalar_wide() { int a0 = (893369501); @@ -609,7 +609,7 @@ public static void int2x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_mul_wide_wide() { int2x2 a0 = int2x2(61417577, 219585476, 1362520891, 1511084277); @@ -633,7 +633,7 @@ public static void int2x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_mul_wide_scalar() { int2x2 a0 = int2x2(871746615, 492532311, 570557670, 2142306629); @@ -657,7 +657,7 @@ public static void int2x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -681,7 +681,7 @@ public static void int2x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_div_wide_wide() { int2x2 a0 = int2x2(333171510, 858154903, 1181365836, 671357749); @@ -705,7 +705,7 @@ public static void int2x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_div_wide_scalar() { int2x2 a0 = int2x2(1433072926, 1073958635, 1195142312, 536596719); @@ -729,7 +729,7 @@ public static void int2x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_div_scalar_wide() { int a0 = (519165704); @@ -753,7 +753,7 @@ public static void int2x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_mod_wide_wide() { int2x2 a0 = int2x2(258342924, 1454754891, 723352342, 1981431473); @@ -777,7 +777,7 @@ public static void int2x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_mod_wide_scalar() { int2x2 a0 = int2x2(560988938, 629524514, 767711194, 434281967); @@ -801,7 +801,7 @@ public static void int2x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_mod_scalar_wide() { int a0 = (933347930); @@ -825,7 +825,7 @@ public static void int2x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_plus() { int2x2 a0 = int2x2(195392567, 222719748, 1002351013, 1570765263); @@ -845,7 +845,7 @@ public static void int2x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_neg() { int2x2 a0 = int2x2(1385088677, 94114564, 1350664872, 1458616659); @@ -865,7 +865,7 @@ public static void int2x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_prefix_inc() { int2x2 a0 = int2x2(780471723, 954741756, 272723451, 2142862245); @@ -885,7 +885,7 @@ public static void int2x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_postfix_inc() { int2x2 a0 = int2x2(241865086, 2145821641, 1596166022, 803592338); @@ -905,7 +905,7 @@ public static void int2x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_prefix_dec() { int2x2 a0 = int2x2(1331961415, 1612382200, 1401591249, 2042075388); @@ -925,7 +925,7 @@ public static void int2x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_postfix_dec() { int2x2 a0 = int2x2(1870005937, 1708534798, 704493460, 462940703); @@ -945,7 +945,7 @@ public static void int2x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_bitwise_and_wide_wide() { int2x2 a0 = int2x2(1055241304, 859321394, 1088358961, 2090949513); @@ -969,7 +969,7 @@ public static void int2x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_bitwise_and_wide_scalar() { int2x2 a0 = int2x2(1513158868, 284695609, 734595037, 1566510707); @@ -993,7 +993,7 @@ public static void int2x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1017,7 +1017,7 @@ public static void int2x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_bitwise_or_wide_wide() { int2x2 a0 = int2x2(1920951869, 1750772852, 1420019191, 732977093); @@ -1041,7 +1041,7 @@ public static void int2x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_bitwise_or_wide_scalar() { int2x2 a0 = int2x2(1295304853, 1307252624, 350194630, 1128063578); @@ -1065,7 +1065,7 @@ public static void int2x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1089,7 +1089,7 @@ public static void int2x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_bitwise_xor_wide_wide() { int2x2 a0 = int2x2(1843655608, 362425681, 640805534, 1342040268); @@ -1113,7 +1113,7 @@ public static void int2x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_bitwise_xor_wide_scalar() { int2x2 a0 = int2x2(169345668, 176087064, 2084362901, 1663924004); @@ -1137,7 +1137,7 @@ public static void int2x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1161,7 +1161,7 @@ public static void int2x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_left_shift() { int2x2 a0 = int2x2(1129100049, 829482269, 1571297368, 443753193); @@ -1185,7 +1185,7 @@ public static void int2x2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_right_shift() { int2x2 a0 = int2x2(809126085, 908563670, 763568837, 1986717290); @@ -1209,7 +1209,7 @@ public static void int2x2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x2_operator_bitwise_not() { int2x2 a0 = int2x2(111796841, 603562399, 745091931, 853183268); diff --git a/src/Tests/Tests/Shared/TestInt2x3.gen.cs b/src/Tests/Tests/Shared/TestInt2x3.gen.cs index 95b713de..8e25e359 100644 --- a/src/Tests/Tests/Shared/TestInt2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt2x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_zero() { TestUtils.AreEqual(0, int2x3.zero.c0.x); @@ -26,7 +26,7 @@ public static void int2x3_zero() TestUtils.AreEqual(0, int2x3.zero.c2.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_equal_wide_wide() { int2x3 a0 = int2x3(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098); @@ -50,7 +50,7 @@ public static void int2x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_equal_wide_scalar() { int2x3 a0 = int2x3(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405); @@ -74,7 +74,7 @@ public static void int2x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_equal_scalar_wide() { int a0 = (542329200); @@ -98,7 +98,7 @@ public static void int2x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_not_equal_wide_wide() { int2x3 a0 = int2x3(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892); @@ -122,7 +122,7 @@ public static void int2x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_not_equal_wide_scalar() { int2x3 a0 = int2x3(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802); @@ -146,7 +146,7 @@ public static void int2x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -170,7 +170,7 @@ public static void int2x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_less_wide_wide() { int2x3 a0 = int2x3(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342); @@ -194,7 +194,7 @@ public static void int2x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_less_wide_scalar() { int2x3 a0 = int2x3(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673); @@ -218,7 +218,7 @@ public static void int2x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_less_scalar_wide() { int a0 = (186400299); @@ -242,7 +242,7 @@ public static void int2x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_greater_wide_wide() { int2x3 a0 = int2x3(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491); @@ -266,7 +266,7 @@ public static void int2x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_greater_wide_scalar() { int2x3 a0 = int2x3(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635); @@ -290,7 +290,7 @@ public static void int2x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_greater_scalar_wide() { int a0 = (480938827); @@ -314,7 +314,7 @@ public static void int2x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_less_equal_wide_wide() { int2x3 a0 = int2x3(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627); @@ -338,7 +338,7 @@ public static void int2x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_less_equal_wide_scalar() { int2x3 a0 = int2x3(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632); @@ -362,7 +362,7 @@ public static void int2x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -386,7 +386,7 @@ public static void int2x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_greater_equal_wide_wide() { int2x3 a0 = int2x3(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564); @@ -410,7 +410,7 @@ public static void int2x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_greater_equal_wide_scalar() { int2x3 a0 = int2x3(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469); @@ -434,7 +434,7 @@ public static void int2x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -458,7 +458,7 @@ public static void int2x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_add_wide_wide() { int2x3 a0 = int2x3(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995); @@ -482,7 +482,7 @@ public static void int2x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_add_wide_scalar() { int2x3 a0 = int2x3(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732); @@ -506,7 +506,7 @@ public static void int2x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_add_scalar_wide() { int a0 = (359966320); @@ -530,7 +530,7 @@ public static void int2x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_sub_wide_wide() { int2x3 a0 = int2x3(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868); @@ -554,7 +554,7 @@ public static void int2x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_sub_wide_scalar() { int2x3 a0 = int2x3(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328); @@ -578,7 +578,7 @@ public static void int2x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_sub_scalar_wide() { int a0 = (893369501); @@ -602,7 +602,7 @@ public static void int2x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_mul_wide_wide() { int2x3 a0 = int2x3(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871); @@ -626,7 +626,7 @@ public static void int2x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_mul_wide_scalar() { int2x3 a0 = int2x3(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563); @@ -650,7 +650,7 @@ public static void int2x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -674,7 +674,7 @@ public static void int2x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_div_wide_wide() { int2x3 a0 = int2x3(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420); @@ -698,7 +698,7 @@ public static void int2x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_div_wide_scalar() { int2x3 a0 = int2x3(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346); @@ -722,7 +722,7 @@ public static void int2x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_div_scalar_wide() { int a0 = (519165704); @@ -746,7 +746,7 @@ public static void int2x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_mod_wide_wide() { int2x3 a0 = int2x3(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627); @@ -770,7 +770,7 @@ public static void int2x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_mod_wide_scalar() { int2x3 a0 = int2x3(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846); @@ -794,7 +794,7 @@ public static void int2x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_mod_scalar_wide() { int a0 = (933347930); @@ -818,7 +818,7 @@ public static void int2x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_plus() { int2x3 a0 = int2x3(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277); @@ -838,7 +838,7 @@ public static void int2x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_neg() { int2x3 a0 = int2x3(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493); @@ -858,7 +858,7 @@ public static void int2x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_prefix_inc() { int2x3 a0 = int2x3(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550); @@ -878,7 +878,7 @@ public static void int2x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_postfix_inc() { int2x3 a0 = int2x3(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229); @@ -898,7 +898,7 @@ public static void int2x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_prefix_dec() { int2x3 a0 = int2x3(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159); @@ -918,7 +918,7 @@ public static void int2x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_postfix_dec() { int2x3 a0 = int2x3(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869); @@ -938,7 +938,7 @@ public static void int2x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_bitwise_and_wide_wide() { int2x3 a0 = int2x3(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515); @@ -962,7 +962,7 @@ public static void int2x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_bitwise_and_wide_scalar() { int2x3 a0 = int2x3(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838); @@ -986,7 +986,7 @@ public static void int2x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1010,7 +1010,7 @@ public static void int2x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_bitwise_or_wide_wide() { int2x3 a0 = int2x3(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930); @@ -1034,7 +1034,7 @@ public static void int2x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_bitwise_or_wide_scalar() { int2x3 a0 = int2x3(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467); @@ -1058,7 +1058,7 @@ public static void int2x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1082,7 +1082,7 @@ public static void int2x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_bitwise_xor_wide_wide() { int2x3 a0 = int2x3(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850); @@ -1106,7 +1106,7 @@ public static void int2x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_bitwise_xor_wide_scalar() { int2x3 a0 = int2x3(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661); @@ -1130,7 +1130,7 @@ public static void int2x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1154,7 +1154,7 @@ public static void int2x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_left_shift() { int2x3 a0 = int2x3(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593); @@ -1178,7 +1178,7 @@ public static void int2x3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_right_shift() { int2x3 a0 = int2x3(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842); @@ -1202,7 +1202,7 @@ public static void int2x3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x3_operator_bitwise_not() { int2x3 a0 = int2x3(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399); diff --git a/src/Tests/Tests/Shared/TestInt2x4.gen.cs b/src/Tests/Tests/Shared/TestInt2x4.gen.cs index 8700456f..3fd7b8b3 100644 --- a/src/Tests/Tests/Shared/TestInt2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt2x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt2x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_zero() { TestUtils.AreEqual(0, int2x4.zero.c0.x); @@ -28,7 +28,7 @@ public static void int2x4_zero() TestUtils.AreEqual(0, int2x4.zero.c3.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_equal_wide_wide() { int2x4 a0 = int2x4(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316); @@ -52,7 +52,7 @@ public static void int2x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_equal_wide_scalar() { int2x4 a0 = int2x4(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849); @@ -76,7 +76,7 @@ public static void int2x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_equal_scalar_wide() { int a0 = (542329200); @@ -100,7 +100,7 @@ public static void int2x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_not_equal_wide_wide() { int2x4 a0 = int2x4(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074); @@ -124,7 +124,7 @@ public static void int2x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_not_equal_wide_scalar() { int2x4 a0 = int2x4(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717); @@ -148,7 +148,7 @@ public static void int2x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -172,7 +172,7 @@ public static void int2x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_less_wide_wide() { int2x4 a0 = int2x4(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431); @@ -196,7 +196,7 @@ public static void int2x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_less_wide_scalar() { int2x4 a0 = int2x4(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600); @@ -220,7 +220,7 @@ public static void int2x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_less_scalar_wide() { int a0 = (186400299); @@ -244,7 +244,7 @@ public static void int2x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_greater_wide_wide() { int2x4 a0 = int2x4(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508); @@ -268,7 +268,7 @@ public static void int2x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_greater_wide_scalar() { int2x4 a0 = int2x4(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098); @@ -292,7 +292,7 @@ public static void int2x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_greater_scalar_wide() { int a0 = (480938827); @@ -316,7 +316,7 @@ public static void int2x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_less_equal_wide_wide() { int2x4 a0 = int2x4(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725); @@ -340,7 +340,7 @@ public static void int2x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_less_equal_wide_scalar() { int2x4 a0 = int2x4(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307); @@ -364,7 +364,7 @@ public static void int2x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -388,7 +388,7 @@ public static void int2x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_greater_equal_wide_wide() { int2x4 a0 = int2x4(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970); @@ -412,7 +412,7 @@ public static void int2x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_greater_equal_wide_scalar() { int2x4 a0 = int2x4(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187); @@ -436,7 +436,7 @@ public static void int2x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -460,7 +460,7 @@ public static void int2x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_add_wide_wide() { int2x4 a0 = int2x4(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062); @@ -484,7 +484,7 @@ public static void int2x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_add_wide_scalar() { int2x4 a0 = int2x4(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017); @@ -508,7 +508,7 @@ public static void int2x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_add_scalar_wide() { int a0 = (359966320); @@ -532,7 +532,7 @@ public static void int2x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_sub_wide_wide() { int2x4 a0 = int2x4(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215); @@ -556,7 +556,7 @@ public static void int2x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_sub_wide_scalar() { int2x4 a0 = int2x4(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511); @@ -580,7 +580,7 @@ public static void int2x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_sub_scalar_wide() { int a0 = (893369501); @@ -604,7 +604,7 @@ public static void int2x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_mul_wide_wide() { int2x4 a0 = int2x4(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644); @@ -628,7 +628,7 @@ public static void int2x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_mul_wide_scalar() { int2x4 a0 = int2x4(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514); @@ -652,7 +652,7 @@ public static void int2x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -676,7 +676,7 @@ public static void int2x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_div_wide_wide() { int2x4 a0 = int2x4(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814); @@ -700,7 +700,7 @@ public static void int2x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_div_wide_scalar() { int2x4 a0 = int2x4(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670); @@ -724,7 +724,7 @@ public static void int2x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_div_scalar_wide() { int a0 = (519165704); @@ -748,7 +748,7 @@ public static void int2x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_mod_wide_wide() { int2x4 a0 = int2x4(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004); @@ -772,7 +772,7 @@ public static void int2x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_mod_wide_scalar() { int2x4 a0 = int2x4(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916); @@ -796,7 +796,7 @@ public static void int2x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_mod_scalar_wide() { int a0 = (933347930); @@ -820,7 +820,7 @@ public static void int2x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_plus() { int2x4 a0 = int2x4(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785); @@ -840,7 +840,7 @@ public static void int2x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_neg() { int2x4 a0 = int2x4(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961); @@ -860,7 +860,7 @@ public static void int2x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_prefix_inc() { int2x4 a0 = int2x4(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162); @@ -880,7 +880,7 @@ public static void int2x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_postfix_inc() { int2x4 a0 = int2x4(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244); @@ -900,7 +900,7 @@ public static void int2x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_prefix_dec() { int2x4 a0 = int2x4(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664); @@ -920,7 +920,7 @@ public static void int2x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_postfix_dec() { int2x4 a0 = int2x4(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351); @@ -940,7 +940,7 @@ public static void int2x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_bitwise_and_wide_wide() { int2x4 a0 = int2x4(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753); @@ -964,7 +964,7 @@ public static void int2x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_bitwise_and_wide_scalar() { int2x4 a0 = int2x4(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908); @@ -988,7 +988,7 @@ public static void int2x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1012,7 +1012,7 @@ public static void int2x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_bitwise_or_wide_wide() { int2x4 a0 = int2x4(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323); @@ -1036,7 +1036,7 @@ public static void int2x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_bitwise_or_wide_scalar() { int2x4 a0 = int2x4(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350); @@ -1060,7 +1060,7 @@ public static void int2x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1084,7 +1084,7 @@ public static void int2x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_bitwise_xor_wide_wide() { int2x4 a0 = int2x4(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658); @@ -1108,7 +1108,7 @@ public static void int2x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_bitwise_xor_wide_scalar() { int2x4 a0 = int2x4(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783); @@ -1132,7 +1132,7 @@ public static void int2x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1156,7 +1156,7 @@ public static void int2x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_left_shift() { int2x4 a0 = int2x4(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862); @@ -1180,7 +1180,7 @@ public static void int2x4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_right_shift() { int2x4 a0 = int2x4(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632); @@ -1204,7 +1204,7 @@ public static void int2x4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2x4_operator_bitwise_not() { int2x4 a0 = int2x4(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135); diff --git a/src/Tests/Tests/Shared/TestInt3.gen.cs b/src/Tests/Tests/Shared/TestInt3.gen.cs index 92b93317..7dac46ed 100644 --- a/src/Tests/Tests/Shared/TestInt3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_zero() { TestUtils.AreEqual(0, int3.zero.x); @@ -23,7 +23,7 @@ public static void int3_zero() TestUtils.AreEqual(0, int3.zero.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_constructor() { int3 a = new int3(1, 2, 3); @@ -32,7 +32,7 @@ public static void int3_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_scalar_constructor() { int3 a = new int3(17); @@ -41,7 +41,7 @@ public static void int3_scalar_constructor() TestUtils.AreEqual(17, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_static_constructor() { int3 a = int3(1, 2, 3); @@ -50,7 +50,7 @@ public static void int3_static_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_static_scalar_constructor() { int3 a = int3(17); @@ -59,7 +59,7 @@ public static void int3_static_scalar_constructor() TestUtils.AreEqual(17, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_equal_wide_wide() { int3 a0 = int3(2105871082, 35218899, 1550755093); @@ -83,7 +83,7 @@ public static void int3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_equal_wide_scalar() { int3 a0 = int3(437822262, 2020661134, 541786900); @@ -107,7 +107,7 @@ public static void int3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_equal_scalar_wide() { int a0 = (542329200); @@ -131,7 +131,7 @@ public static void int3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_not_equal_wide_wide() { int3 a0 = int3(1977284100, 1293292704, 1547283851); @@ -155,7 +155,7 @@ public static void int3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_not_equal_wide_scalar() { int3 a0 = int3(1038269360, 1427812625, 103361237); @@ -179,7 +179,7 @@ public static void int3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -203,7 +203,7 @@ public static void int3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_less_wide_wide() { int3 a0 = int3(1486550609, 1779244308, 1602148045); @@ -227,7 +227,7 @@ public static void int3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_less_wide_scalar() { int3 a0 = int3(796797557, 670113454, 933579492); @@ -251,7 +251,7 @@ public static void int3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_less_scalar_wide() { int a0 = (186400299); @@ -275,7 +275,7 @@ public static void int3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_greater_wide_wide() { int3 a0 = int3(2087717754, 1725569452, 1298066182); @@ -299,7 +299,7 @@ public static void int3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_greater_wide_scalar() { int3 a0 = int3(1208626274, 239697208, 1979453345); @@ -323,7 +323,7 @@ public static void int3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_greater_scalar_wide() { int a0 = (480938827); @@ -347,7 +347,7 @@ public static void int3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_less_equal_wide_wide() { int3 a0 = int3(154092149, 1515170149, 1083970332); @@ -371,7 +371,7 @@ public static void int3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_less_equal_wide_scalar() { int3 a0 = int3(1479531977, 1427983411, 415250630); @@ -395,7 +395,7 @@ public static void int3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -419,7 +419,7 @@ public static void int3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_greater_equal_wide_wide() { int3 a0 = int3(8538378, 2131749726, 265427108); @@ -443,7 +443,7 @@ public static void int3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_greater_equal_wide_scalar() { int3 a0 = int3(2049236663, 182691143, 634973382); @@ -467,7 +467,7 @@ public static void int3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -491,7 +491,7 @@ public static void int3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_add_wide_wide() { int3 a0 = int3(2135171378, 21433296, 1954723494); @@ -515,7 +515,7 @@ public static void int3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_add_wide_scalar() { int3 a0 = int3(665815972, 1783729250, 1591678394); @@ -539,7 +539,7 @@ public static void int3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_add_scalar_wide() { int a0 = (359966320); @@ -563,7 +563,7 @@ public static void int3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_sub_wide_wide() { int3 a0 = int3(1410318491, 1097280168, 1827039044); @@ -587,7 +587,7 @@ public static void int3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_sub_wide_scalar() { int3 a0 = int3(1508669340, 1594795463, 266707545); @@ -611,7 +611,7 @@ public static void int3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_sub_scalar_wide() { int a0 = (893369501); @@ -635,7 +635,7 @@ public static void int3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_mul_wide_wide() { int3 a0 = int3(61417577, 219585476, 1362520891); @@ -659,7 +659,7 @@ public static void int3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_mul_wide_scalar() { int3 a0 = int3(871746615, 492532311, 570557670); @@ -683,7 +683,7 @@ public static void int3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -707,7 +707,7 @@ public static void int3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_div_wide_wide() { int3 a0 = int3(333171510, 858154903, 1181365836); @@ -731,7 +731,7 @@ public static void int3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_div_wide_scalar() { int3 a0 = int3(1433072926, 1073958635, 1195142312); @@ -755,7 +755,7 @@ public static void int3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_div_scalar_wide() { int a0 = (519165704); @@ -779,7 +779,7 @@ public static void int3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_mod_wide_wide() { int3 a0 = int3(258342924, 1454754891, 723352342); @@ -803,7 +803,7 @@ public static void int3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_mod_wide_scalar() { int3 a0 = int3(560988938, 629524514, 767711194); @@ -827,7 +827,7 @@ public static void int3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_mod_scalar_wide() { int a0 = (933347930); @@ -851,7 +851,7 @@ public static void int3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_plus() { int3 a0 = int3(195392567, 222719748, 1002351013); @@ -871,7 +871,7 @@ public static void int3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_neg() { int3 a0 = int3(1385088677, 94114564, 1350664872); @@ -891,7 +891,7 @@ public static void int3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_prefix_inc() { int3 a0 = int3(780471723, 954741756, 272723451); @@ -911,7 +911,7 @@ public static void int3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_postfix_inc() { int3 a0 = int3(241865086, 2145821641, 1596166022); @@ -931,7 +931,7 @@ public static void int3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_prefix_dec() { int3 a0 = int3(1331961415, 1612382200, 1401591249); @@ -951,7 +951,7 @@ public static void int3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_postfix_dec() { int3 a0 = int3(1870005937, 1708534798, 704493460); @@ -971,7 +971,7 @@ public static void int3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_bitwise_and_wide_wide() { int3 a0 = int3(1055241304, 859321394, 1088358961); @@ -995,7 +995,7 @@ public static void int3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_bitwise_and_wide_scalar() { int3 a0 = int3(1513158868, 284695609, 734595037); @@ -1019,7 +1019,7 @@ public static void int3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1043,7 +1043,7 @@ public static void int3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_bitwise_or_wide_wide() { int3 a0 = int3(1920951869, 1750772852, 1420019191); @@ -1067,7 +1067,7 @@ public static void int3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_bitwise_or_wide_scalar() { int3 a0 = int3(1295304853, 1307252624, 350194630); @@ -1091,7 +1091,7 @@ public static void int3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1115,7 +1115,7 @@ public static void int3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_bitwise_xor_wide_wide() { int3 a0 = int3(1843655608, 362425681, 640805534); @@ -1139,7 +1139,7 @@ public static void int3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_bitwise_xor_wide_scalar() { int3 a0 = int3(169345668, 176087064, 2084362901); @@ -1163,7 +1163,7 @@ public static void int3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1187,7 +1187,7 @@ public static void int3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_left_shift() { int3 a0 = int3(1129100049, 829482269, 1571297368); @@ -1211,7 +1211,7 @@ public static void int3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_right_shift() { int3 a0 = int3(809126085, 908563670, 763568837); @@ -1235,7 +1235,7 @@ public static void int3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_operator_bitwise_not() { int3 a0 = int3(111796841, 603562399, 745091931); @@ -1255,7 +1255,7 @@ public static void int3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_shuffle_result_1() { int3 a = int3(0, 1, 2); @@ -1269,7 +1269,7 @@ public static void int3_shuffle_result_1() TestUtils.AreEqual((5), shuffle(a, b, ShuffleComponent.RightZ)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_shuffle_result_2() { int3 a = int3(0, 1, 2); @@ -1293,7 +1293,7 @@ public static void int3_shuffle_result_2() TestUtils.AreEqual(int2(1, 2), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftZ)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_shuffle_result_3() { int3 a = int3(0, 1, 2); @@ -1317,7 +1317,7 @@ public static void int3_shuffle_result_3() TestUtils.AreEqual(int3(4, 0, 5), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftX, ShuffleComponent.RightZ)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_shuffle_result_4() { int3 a = int3(0, 1, 2); diff --git a/src/Tests/Tests/Shared/TestInt3x2.gen.cs b/src/Tests/Tests/Shared/TestInt3x2.gen.cs index 769f2d00..db159df9 100644 --- a/src/Tests/Tests/Shared/TestInt3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt3x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_zero() { TestUtils.AreEqual(0, int3x2.zero.c0.x); @@ -26,7 +26,7 @@ public static void int3x2_zero() TestUtils.AreEqual(0, int3x2.zero.c1.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_equal_wide_wide() { int3x2 a0 = int3x2(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098); @@ -50,7 +50,7 @@ public static void int3x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_equal_wide_scalar() { int3x2 a0 = int3x2(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405); @@ -74,7 +74,7 @@ public static void int3x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_equal_scalar_wide() { int a0 = (542329200); @@ -98,7 +98,7 @@ public static void int3x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_not_equal_wide_wide() { int3x2 a0 = int3x2(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892); @@ -122,7 +122,7 @@ public static void int3x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_not_equal_wide_scalar() { int3x2 a0 = int3x2(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802); @@ -146,7 +146,7 @@ public static void int3x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -170,7 +170,7 @@ public static void int3x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_less_wide_wide() { int3x2 a0 = int3x2(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342); @@ -194,7 +194,7 @@ public static void int3x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_less_wide_scalar() { int3x2 a0 = int3x2(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673); @@ -218,7 +218,7 @@ public static void int3x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_less_scalar_wide() { int a0 = (186400299); @@ -242,7 +242,7 @@ public static void int3x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_greater_wide_wide() { int3x2 a0 = int3x2(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491); @@ -266,7 +266,7 @@ public static void int3x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_greater_wide_scalar() { int3x2 a0 = int3x2(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635); @@ -290,7 +290,7 @@ public static void int3x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_greater_scalar_wide() { int a0 = (480938827); @@ -314,7 +314,7 @@ public static void int3x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_less_equal_wide_wide() { int3x2 a0 = int3x2(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627); @@ -338,7 +338,7 @@ public static void int3x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_less_equal_wide_scalar() { int3x2 a0 = int3x2(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632); @@ -362,7 +362,7 @@ public static void int3x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -386,7 +386,7 @@ public static void int3x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_greater_equal_wide_wide() { int3x2 a0 = int3x2(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564); @@ -410,7 +410,7 @@ public static void int3x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_greater_equal_wide_scalar() { int3x2 a0 = int3x2(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469); @@ -434,7 +434,7 @@ public static void int3x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -458,7 +458,7 @@ public static void int3x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_add_wide_wide() { int3x2 a0 = int3x2(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995); @@ -482,7 +482,7 @@ public static void int3x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_add_wide_scalar() { int3x2 a0 = int3x2(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732); @@ -506,7 +506,7 @@ public static void int3x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_add_scalar_wide() { int a0 = (359966320); @@ -530,7 +530,7 @@ public static void int3x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_sub_wide_wide() { int3x2 a0 = int3x2(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868); @@ -554,7 +554,7 @@ public static void int3x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_sub_wide_scalar() { int3x2 a0 = int3x2(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328); @@ -578,7 +578,7 @@ public static void int3x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_sub_scalar_wide() { int a0 = (893369501); @@ -602,7 +602,7 @@ public static void int3x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_mul_wide_wide() { int3x2 a0 = int3x2(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871); @@ -626,7 +626,7 @@ public static void int3x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_mul_wide_scalar() { int3x2 a0 = int3x2(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563); @@ -650,7 +650,7 @@ public static void int3x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -674,7 +674,7 @@ public static void int3x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_div_wide_wide() { int3x2 a0 = int3x2(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420); @@ -698,7 +698,7 @@ public static void int3x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_div_wide_scalar() { int3x2 a0 = int3x2(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346); @@ -722,7 +722,7 @@ public static void int3x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_div_scalar_wide() { int a0 = (519165704); @@ -746,7 +746,7 @@ public static void int3x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_mod_wide_wide() { int3x2 a0 = int3x2(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627); @@ -770,7 +770,7 @@ public static void int3x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_mod_wide_scalar() { int3x2 a0 = int3x2(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846); @@ -794,7 +794,7 @@ public static void int3x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_mod_scalar_wide() { int a0 = (933347930); @@ -818,7 +818,7 @@ public static void int3x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_plus() { int3x2 a0 = int3x2(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277); @@ -838,7 +838,7 @@ public static void int3x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_neg() { int3x2 a0 = int3x2(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493); @@ -858,7 +858,7 @@ public static void int3x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_prefix_inc() { int3x2 a0 = int3x2(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550); @@ -878,7 +878,7 @@ public static void int3x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_postfix_inc() { int3x2 a0 = int3x2(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229); @@ -898,7 +898,7 @@ public static void int3x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_prefix_dec() { int3x2 a0 = int3x2(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159); @@ -918,7 +918,7 @@ public static void int3x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_postfix_dec() { int3x2 a0 = int3x2(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869); @@ -938,7 +938,7 @@ public static void int3x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_bitwise_and_wide_wide() { int3x2 a0 = int3x2(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515); @@ -962,7 +962,7 @@ public static void int3x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_bitwise_and_wide_scalar() { int3x2 a0 = int3x2(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838); @@ -986,7 +986,7 @@ public static void int3x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1010,7 +1010,7 @@ public static void int3x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_bitwise_or_wide_wide() { int3x2 a0 = int3x2(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930); @@ -1034,7 +1034,7 @@ public static void int3x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_bitwise_or_wide_scalar() { int3x2 a0 = int3x2(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467); @@ -1058,7 +1058,7 @@ public static void int3x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1082,7 +1082,7 @@ public static void int3x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_bitwise_xor_wide_wide() { int3x2 a0 = int3x2(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850); @@ -1106,7 +1106,7 @@ public static void int3x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_bitwise_xor_wide_scalar() { int3x2 a0 = int3x2(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661); @@ -1130,7 +1130,7 @@ public static void int3x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1154,7 +1154,7 @@ public static void int3x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_left_shift() { int3x2 a0 = int3x2(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593); @@ -1178,7 +1178,7 @@ public static void int3x2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_right_shift() { int3x2 a0 = int3x2(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842); @@ -1202,7 +1202,7 @@ public static void int3x2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x2_operator_bitwise_not() { int3x2 a0 = int3x2(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399); diff --git a/src/Tests/Tests/Shared/TestInt3x3.gen.cs b/src/Tests/Tests/Shared/TestInt3x3.gen.cs index c2a99c4f..5d82264a 100644 --- a/src/Tests/Tests/Shared/TestInt3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt3x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_zero() { TestUtils.AreEqual(0, int3x3.zero.c0.x); @@ -29,7 +29,7 @@ public static void int3x3_zero() TestUtils.AreEqual(0, int3x3.zero.c2.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_identity() { TestUtils.AreEqual(1, int3x3.identity.c0.x); @@ -43,7 +43,7 @@ public static void int3x3_identity() TestUtils.AreEqual(1, int3x3.identity.c2.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_equal_wide_wide() { int3x3 a0 = int3x3(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367); @@ -67,7 +67,7 @@ public static void int3x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_equal_wide_scalar() { int3x3 a0 = int3x3(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998); @@ -91,7 +91,7 @@ public static void int3x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_equal_scalar_wide() { int a0 = (542329200); @@ -115,7 +115,7 @@ public static void int3x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_not_equal_wide_wide() { int3x3 a0 = int3x3(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678); @@ -139,7 +139,7 @@ public static void int3x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_not_equal_wide_scalar() { int3x3 a0 = int3x3(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423); @@ -163,7 +163,7 @@ public static void int3x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -187,7 +187,7 @@ public static void int3x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_less_wide_wide() { int3x3 a0 = int3x3(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312); @@ -211,7 +211,7 @@ public static void int3x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_less_wide_scalar() { int3x3 a0 = int3x3(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597); @@ -235,7 +235,7 @@ public static void int3x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_less_scalar_wide() { int a0 = (186400299); @@ -259,7 +259,7 @@ public static void int3x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_greater_wide_wide() { int3x3 a0 = int3x3(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133); @@ -283,7 +283,7 @@ public static void int3x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_greater_wide_scalar() { int3x3 a0 = int3x3(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855); @@ -307,7 +307,7 @@ public static void int3x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_greater_scalar_wide() { int a0 = (480938827); @@ -331,7 +331,7 @@ public static void int3x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_less_equal_wide_wide() { int3x3 a0 = int3x3(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541); @@ -355,7 +355,7 @@ public static void int3x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_less_equal_wide_scalar() { int3x3 a0 = int3x3(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375); @@ -379,7 +379,7 @@ public static void int3x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -403,7 +403,7 @@ public static void int3x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_greater_equal_wide_wide() { int3x3 a0 = int3x3(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826); @@ -427,7 +427,7 @@ public static void int3x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_greater_equal_wide_scalar() { int3x3 a0 = int3x3(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669); @@ -451,7 +451,7 @@ public static void int3x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -475,7 +475,7 @@ public static void int3x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_add_wide_wide() { int3x3 a0 = int3x3(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600); @@ -499,7 +499,7 @@ public static void int3x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_add_wide_scalar() { int3x3 a0 = int3x3(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008); @@ -523,7 +523,7 @@ public static void int3x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_add_scalar_wide() { int a0 = (359966320); @@ -547,7 +547,7 @@ public static void int3x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_sub_wide_wide() { int3x3 a0 = int3x3(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315); @@ -571,7 +571,7 @@ public static void int3x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_sub_wide_scalar() { int3x3 a0 = int3x3(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113); @@ -595,7 +595,7 @@ public static void int3x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_sub_scalar_wide() { int a0 = (893369501); @@ -619,7 +619,7 @@ public static void int3x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_mul_wide_wide() { int3x3 a0 = int3x3(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583); @@ -643,7 +643,7 @@ public static void int3x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_mul_wide_scalar() { int3x3 a0 = int3x3(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059); @@ -667,7 +667,7 @@ public static void int3x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -691,7 +691,7 @@ public static void int3x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_div_wide_wide() { int3x3 a0 = int3x3(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195); @@ -715,7 +715,7 @@ public static void int3x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_div_wide_scalar() { int3x3 a0 = int3x3(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136); @@ -739,7 +739,7 @@ public static void int3x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_div_scalar_wide() { int a0 = (519165704); @@ -763,7 +763,7 @@ public static void int3x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_mod_wide_wide() { int3x3 a0 = int3x3(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101); @@ -787,7 +787,7 @@ public static void int3x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_mod_wide_scalar() { int3x3 a0 = int3x3(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144); @@ -811,7 +811,7 @@ public static void int3x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_mod_scalar_wide() { int a0 = (933347930); @@ -835,7 +835,7 @@ public static void int3x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_plus() { int3x3 a0 = int3x3(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671); @@ -855,7 +855,7 @@ public static void int3x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_neg() { int3x3 a0 = int3x3(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525); @@ -875,7 +875,7 @@ public static void int3x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_prefix_inc() { int3x3 a0 = int3x3(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994); @@ -895,7 +895,7 @@ public static void int3x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_postfix_inc() { int3x3 a0 = int3x3(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247); @@ -915,7 +915,7 @@ public static void int3x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_prefix_dec() { int3x3 a0 = int3x3(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745); @@ -935,7 +935,7 @@ public static void int3x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_postfix_dec() { int3x3 a0 = int3x3(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889); @@ -955,7 +955,7 @@ public static void int3x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_bitwise_and_wide_wide() { int3x3 a0 = int3x3(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656); @@ -979,7 +979,7 @@ public static void int3x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_bitwise_and_wide_scalar() { int3x3 a0 = int3x3(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263); @@ -1003,7 +1003,7 @@ public static void int3x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1027,7 +1027,7 @@ public static void int3x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_bitwise_or_wide_wide() { int3x3 a0 = int3x3(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869); @@ -1051,7 +1051,7 @@ public static void int3x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_bitwise_or_wide_scalar() { int3x3 a0 = int3x3(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307); @@ -1075,7 +1075,7 @@ public static void int3x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1099,7 +1099,7 @@ public static void int3x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_bitwise_xor_wide_wide() { int3x3 a0 = int3x3(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251); @@ -1123,7 +1123,7 @@ public static void int3x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_bitwise_xor_wide_scalar() { int3x3 a0 = int3x3(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873); @@ -1147,7 +1147,7 @@ public static void int3x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1171,7 +1171,7 @@ public static void int3x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_left_shift() { int3x3 a0 = int3x3(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727); @@ -1195,7 +1195,7 @@ public static void int3x3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_right_shift() { int3x3 a0 = int3x3(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393); @@ -1219,7 +1219,7 @@ public static void int3x3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x3_operator_bitwise_not() { int3x3 a0 = int3x3(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628); diff --git a/src/Tests/Tests/Shared/TestInt3x4.gen.cs b/src/Tests/Tests/Shared/TestInt3x4.gen.cs index 449377a8..f9b43392 100644 --- a/src/Tests/Tests/Shared/TestInt3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt3x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt3x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_zero() { TestUtils.AreEqual(0, int3x4.zero.c0.x); @@ -32,7 +32,7 @@ public static void int3x4_zero() TestUtils.AreEqual(0, int3x4.zero.c3.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_equal_wide_wide() { int3x4 a0 = int3x4(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367, 727143393, 2061243891, 184669837); @@ -56,7 +56,7 @@ public static void int3x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_equal_wide_scalar() { int3x4 a0 = int3x4(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998, 691955848, 1926262965, 1851546137); @@ -80,7 +80,7 @@ public static void int3x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_equal_scalar_wide() { int a0 = (542329200); @@ -104,7 +104,7 @@ public static void int3x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_not_equal_wide_wide() { int3x4 a0 = int3x4(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678, 13079405, 1413841590, 1076166545); @@ -128,7 +128,7 @@ public static void int3x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_not_equal_wide_scalar() { int3x4 a0 = int3x4(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423, 484398043, 506946952, 226568494); @@ -152,7 +152,7 @@ public static void int3x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -176,7 +176,7 @@ public static void int3x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_less_wide_wide() { int3x4 a0 = int3x4(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312, 337757077, 1081797900, 1336745069); @@ -200,7 +200,7 @@ public static void int3x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_less_wide_scalar() { int3x4 a0 = int3x4(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597, 1546212312, 1718582899, 1648393417); @@ -224,7 +224,7 @@ public static void int3x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_less_scalar_wide() { int a0 = (186400299); @@ -248,7 +248,7 @@ public static void int3x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_greater_wide_wide() { int3x4 a0 = int3x4(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133, 1744374599, 821751047, 467646903); @@ -272,7 +272,7 @@ public static void int3x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_greater_wide_scalar() { int3x4 a0 = int3x4(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855, 1433540517, 566635217, 1773305960); @@ -296,7 +296,7 @@ public static void int3x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_greater_scalar_wide() { int a0 = (480938827); @@ -320,7 +320,7 @@ public static void int3x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_less_equal_wide_wide() { int3x4 a0 = int3x4(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541, 457043352, 1123282035, 1001842946); @@ -344,7 +344,7 @@ public static void int3x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_less_equal_wide_scalar() { int3x4 a0 = int3x4(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375, 509818792, 1910488590, 85452501); @@ -368,7 +368,7 @@ public static void int3x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -392,7 +392,7 @@ public static void int3x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_greater_equal_wide_wide() { int3x4 a0 = int3x4(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826, 631221455, 1456286159, 961342752); @@ -416,7 +416,7 @@ public static void int3x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_greater_equal_wide_scalar() { int3x4 a0 = int3x4(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669, 411667685, 1998610091, 4652390); @@ -440,7 +440,7 @@ public static void int3x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -464,7 +464,7 @@ public static void int3x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_add_wide_wide() { int3x4 a0 = int3x4(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600, 976898058, 1915056423, 121374462); @@ -488,7 +488,7 @@ public static void int3x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_add_wide_scalar() { int3x4 a0 = int3x4(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008, 1246759684, 1088001167, 57252642); @@ -512,7 +512,7 @@ public static void int3x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_add_scalar_wide() { int a0 = (359966320); @@ -536,7 +536,7 @@ public static void int3x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_sub_wide_wide() { int3x4 a0 = int3x4(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315, 2011295463, 48079003, 591379285); @@ -560,7 +560,7 @@ public static void int3x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_sub_wide_scalar() { int3x4 a0 = int3x4(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113, 1108005498, 304369206, 999244508); @@ -584,7 +584,7 @@ public static void int3x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_sub_scalar_wide() { int a0 = (893369501); @@ -608,7 +608,7 @@ public static void int3x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_mul_wide_wide() { int3x4 a0 = int3x4(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583, 1835691886, 385626539, 85934842); @@ -632,7 +632,7 @@ public static void int3x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_mul_wide_scalar() { int3x4 a0 = int3x4(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059, 1186560810, 1584938026, 1357601203); @@ -656,7 +656,7 @@ public static void int3x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -680,7 +680,7 @@ public static void int3x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_div_wide_wide() { int3x4 a0 = int3x4(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195, 166625280, 1493729000, 1831739736); @@ -704,7 +704,7 @@ public static void int3x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_div_wide_scalar() { int3x4 a0 = int3x4(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136, 25493909, 1196815948, 123300377); @@ -728,7 +728,7 @@ public static void int3x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_div_scalar_wide() { int a0 = (519165704); @@ -752,7 +752,7 @@ public static void int3x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_mod_wide_wide() { int3x4 a0 = int3x4(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101, 17598216, 1474345080, 1681376293); @@ -776,7 +776,7 @@ public static void int3x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_mod_wide_scalar() { int3x4 a0 = int3x4(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144, 1287035793, 1743722161, 475209785); @@ -800,7 +800,7 @@ public static void int3x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_mod_scalar_wide() { int a0 = (933347930); @@ -824,7 +824,7 @@ public static void int3x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_plus() { int3x4 a0 = int3x4(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671, 1084131995, 195779102, 2131702223); @@ -844,7 +844,7 @@ public static void int3x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_neg() { int3x4 a0 = int3x4(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525, 270503114, 1928771252, 1427605822); @@ -864,7 +864,7 @@ public static void int3x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_prefix_inc() { int3x4 a0 = int3x4(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994, 1915989169, 1348278302, 129540735); @@ -884,7 +884,7 @@ public static void int3x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_postfix_inc() { int3x4 a0 = int3x4(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247, 1384002775, 389844650, 1159795446); @@ -904,7 +904,7 @@ public static void int3x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_prefix_dec() { int3x4 a0 = int3x4(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745, 2059077641, 1169239112, 1862369220); @@ -924,7 +924,7 @@ public static void int3x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_postfix_dec() { int3x4 a0 = int3x4(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889, 862428933, 1401191870, 2080259851); @@ -944,7 +944,7 @@ public static void int3x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_bitwise_and_wide_wide() { int3x4 a0 = int3x4(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656, 53199569, 1752363533, 1303061302); @@ -968,7 +968,7 @@ public static void int3x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_bitwise_and_wide_scalar() { int3x4 a0 = int3x4(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263, 327392481, 1619794917, 2143619546); @@ -992,7 +992,7 @@ public static void int3x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1016,7 +1016,7 @@ public static void int3x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_bitwise_or_wide_wide() { int3x4 a0 = int3x4(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869, 1912038362, 1569990624, 1490718227); @@ -1040,7 +1040,7 @@ public static void int3x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_bitwise_or_wide_scalar() { int3x4 a0 = int3x4(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307, 1050875188, 341855232, 1317039676); @@ -1064,7 +1064,7 @@ public static void int3x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1088,7 +1088,7 @@ public static void int3x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_bitwise_xor_wide_wide() { int3x4 a0 = int3x4(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251, 230477768, 1103646442, 1503102919); @@ -1112,7 +1112,7 @@ public static void int3x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_bitwise_xor_wide_scalar() { int3x4 a0 = int3x4(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873, 835837496, 954341348, 1464576786); @@ -1136,7 +1136,7 @@ public static void int3x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1160,7 +1160,7 @@ public static void int3x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_left_shift() { int3x4 a0 = int3x4(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727, 849916599, 1271350845, 108441902); @@ -1184,7 +1184,7 @@ public static void int3x4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_right_shift() { int3x4 a0 = int3x4(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393, 1923166649, 102096936, 400863878); @@ -1208,7 +1208,7 @@ public static void int3x4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3x4_operator_bitwise_not() { int3x4 a0 = int3x4(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628, 787710759, 875964607, 96456785); diff --git a/src/Tests/Tests/Shared/TestInt4.gen.cs b/src/Tests/Tests/Shared/TestInt4.gen.cs index 5aaff365..3c712b61 100644 --- a/src/Tests/Tests/Shared/TestInt4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_zero() { TestUtils.AreEqual(0, int4.zero.x); @@ -24,7 +24,7 @@ public static void int4_zero() TestUtils.AreEqual(0, int4.zero.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_constructor() { int4 a = new int4(1, 2, 3, 4); @@ -34,7 +34,7 @@ public static void int4_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_scalar_constructor() { int4 a = new int4(17); @@ -44,7 +44,7 @@ public static void int4_scalar_constructor() TestUtils.AreEqual(17, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_static_constructor() { int4 a = int4(1, 2, 3, 4); @@ -54,7 +54,7 @@ public static void int4_static_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_static_scalar_constructor() { int4 a = int4(17); @@ -64,7 +64,7 @@ public static void int4_static_scalar_constructor() TestUtils.AreEqual(17, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_equal_wide_wide() { int4 a0 = int4(2105871082, 35218899, 1550755093, 764676020); @@ -88,7 +88,7 @@ public static void int4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_equal_wide_scalar() { int4 a0 = int4(437822262, 2020661134, 541786900, 853113810); @@ -112,7 +112,7 @@ public static void int4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_equal_scalar_wide() { int a0 = (542329200); @@ -136,7 +136,7 @@ public static void int4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_not_equal_wide_wide() { int4 a0 = int4(1977284100, 1293292704, 1547283851, 422428953); @@ -160,7 +160,7 @@ public static void int4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_not_equal_wide_scalar() { int4 a0 = int4(1038269360, 1427812625, 103361237, 1347017023); @@ -184,7 +184,7 @@ public static void int4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -208,7 +208,7 @@ public static void int4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_less_wide_wide() { int4 a0 = int4(1486550609, 1779244308, 1602148045, 1614085440); @@ -232,7 +232,7 @@ public static void int4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_less_wide_scalar() { int4 a0 = int4(796797557, 670113454, 933579492, 278884514); @@ -256,7 +256,7 @@ public static void int4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_less_scalar_wide() { int a0 = (186400299); @@ -280,7 +280,7 @@ public static void int4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_greater_wide_wide() { int4 a0 = int4(2087717754, 1725569452, 1298066182, 1693943616); @@ -304,7 +304,7 @@ public static void int4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_greater_wide_scalar() { int4 a0 = int4(1208626274, 239697208, 1979453345, 1253474001); @@ -328,7 +328,7 @@ public static void int4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_greater_scalar_wide() { int a0 = (480938827); @@ -352,7 +352,7 @@ public static void int4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_less_equal_wide_wide() { int4 a0 = int4(154092149, 1515170149, 1083970332, 785807178); @@ -376,7 +376,7 @@ public static void int4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_less_equal_wide_scalar() { int4 a0 = int4(1479531977, 1427983411, 415250630, 1245345407); @@ -400,7 +400,7 @@ public static void int4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -424,7 +424,7 @@ public static void int4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_greater_equal_wide_wide() { int4 a0 = int4(8538378, 2131749726, 265427108, 523609761); @@ -448,7 +448,7 @@ public static void int4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_greater_equal_wide_scalar() { int4 a0 = int4(2049236663, 182691143, 634973382, 1197012109); @@ -472,7 +472,7 @@ public static void int4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -496,7 +496,7 @@ public static void int4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_add_wide_wide() { int4 a0 = int4(2135171378, 21433296, 1954723494, 683604307); @@ -520,7 +520,7 @@ public static void int4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_add_wide_scalar() { int4 a0 = int4(665815972, 1783729250, 1591678394, 1284528538); @@ -544,7 +544,7 @@ public static void int4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_add_scalar_wide() { int a0 = (359966320); @@ -568,7 +568,7 @@ public static void int4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_sub_wide_wide() { int4 a0 = int4(1410318491, 1097280168, 1827039044, 28881338); @@ -592,7 +592,7 @@ public static void int4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_sub_wide_scalar() { int4 a0 = int4(1508669340, 1594795463, 266707545, 643102647); @@ -616,7 +616,7 @@ public static void int4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_sub_scalar_wide() { int a0 = (893369501); @@ -640,7 +640,7 @@ public static void int4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_mul_wide_wide() { int4 a0 = int4(61417577, 219585476, 1362520891, 1511084277); @@ -664,7 +664,7 @@ public static void int4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_mul_wide_scalar() { int4 a0 = int4(871746615, 492532311, 570557670, 2142306629); @@ -688,7 +688,7 @@ public static void int4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -712,7 +712,7 @@ public static void int4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_div_wide_wide() { int4 a0 = int4(333171510, 858154903, 1181365836, 671357749); @@ -736,7 +736,7 @@ public static void int4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_div_wide_scalar() { int4 a0 = int4(1433072926, 1073958635, 1195142312, 536596719); @@ -760,7 +760,7 @@ public static void int4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_div_scalar_wide() { int a0 = (519165704); @@ -784,7 +784,7 @@ public static void int4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_mod_wide_wide() { int4 a0 = int4(258342924, 1454754891, 723352342, 1981431473); @@ -808,7 +808,7 @@ public static void int4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_mod_wide_scalar() { int4 a0 = int4(560988938, 629524514, 767711194, 434281967); @@ -832,7 +832,7 @@ public static void int4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_mod_scalar_wide() { int a0 = (933347930); @@ -856,7 +856,7 @@ public static void int4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_plus() { int4 a0 = int4(195392567, 222719748, 1002351013, 1570765263); @@ -876,7 +876,7 @@ public static void int4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_neg() { int4 a0 = int4(1385088677, 94114564, 1350664872, 1458616659); @@ -896,7 +896,7 @@ public static void int4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_prefix_inc() { int4 a0 = int4(780471723, 954741756, 272723451, 2142862245); @@ -916,7 +916,7 @@ public static void int4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_postfix_inc() { int4 a0 = int4(241865086, 2145821641, 1596166022, 803592338); @@ -936,7 +936,7 @@ public static void int4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_prefix_dec() { int4 a0 = int4(1331961415, 1612382200, 1401591249, 2042075388); @@ -956,7 +956,7 @@ public static void int4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_postfix_dec() { int4 a0 = int4(1870005937, 1708534798, 704493460, 462940703); @@ -976,7 +976,7 @@ public static void int4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_bitwise_and_wide_wide() { int4 a0 = int4(1055241304, 859321394, 1088358961, 2090949513); @@ -1000,7 +1000,7 @@ public static void int4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_bitwise_and_wide_scalar() { int4 a0 = int4(1513158868, 284695609, 734595037, 1566510707); @@ -1024,7 +1024,7 @@ public static void int4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1048,7 +1048,7 @@ public static void int4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_bitwise_or_wide_wide() { int4 a0 = int4(1920951869, 1750772852, 1420019191, 732977093); @@ -1072,7 +1072,7 @@ public static void int4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_bitwise_or_wide_scalar() { int4 a0 = int4(1295304853, 1307252624, 350194630, 1128063578); @@ -1096,7 +1096,7 @@ public static void int4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1120,7 +1120,7 @@ public static void int4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_bitwise_xor_wide_wide() { int4 a0 = int4(1843655608, 362425681, 640805534, 1342040268); @@ -1144,7 +1144,7 @@ public static void int4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_bitwise_xor_wide_scalar() { int4 a0 = int4(169345668, 176087064, 2084362901, 1663924004); @@ -1168,7 +1168,7 @@ public static void int4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1192,7 +1192,7 @@ public static void int4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_left_shift() { int4 a0 = int4(1129100049, 829482269, 1571297368, 443753193); @@ -1216,7 +1216,7 @@ public static void int4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_right_shift() { int4 a0 = int4(809126085, 908563670, 763568837, 1986717290); @@ -1240,7 +1240,7 @@ public static void int4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_operator_bitwise_not() { int4 a0 = int4(111796841, 603562399, 745091931, 853183268); @@ -1260,7 +1260,7 @@ public static void int4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_shuffle_result_1() { int4 a = int4(0, 1, 2, 3); @@ -1276,7 +1276,7 @@ public static void int4_shuffle_result_1() TestUtils.AreEqual((7), shuffle(a, b, ShuffleComponent.RightW)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_shuffle_result_2() { int4 a = int4(0, 1, 2, 3); @@ -1300,7 +1300,7 @@ public static void int4_shuffle_result_2() TestUtils.AreEqual(int2(1, 3), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftW)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_shuffle_result_3() { int4 a = int4(0, 1, 2, 3); @@ -1324,7 +1324,7 @@ public static void int4_shuffle_result_3() TestUtils.AreEqual(int3(5, 1, 7), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.RightW)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_shuffle_result_4() { int4 a = int4(0, 1, 2, 3); diff --git a/src/Tests/Tests/Shared/TestInt4x2.gen.cs b/src/Tests/Tests/Shared/TestInt4x2.gen.cs index c4528cd7..8eaa8828 100644 --- a/src/Tests/Tests/Shared/TestInt4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt4x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_zero() { TestUtils.AreEqual(0, int4x2.zero.c0.x); @@ -28,7 +28,7 @@ public static void int4x2_zero() TestUtils.AreEqual(0, int4x2.zero.c1.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_equal_wide_wide() { int4x2 a0 = int4x2(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316); @@ -52,7 +52,7 @@ public static void int4x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_equal_wide_scalar() { int4x2 a0 = int4x2(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849); @@ -76,7 +76,7 @@ public static void int4x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_equal_scalar_wide() { int a0 = (542329200); @@ -100,7 +100,7 @@ public static void int4x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_not_equal_wide_wide() { int4x2 a0 = int4x2(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074); @@ -124,7 +124,7 @@ public static void int4x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_not_equal_wide_scalar() { int4x2 a0 = int4x2(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717); @@ -148,7 +148,7 @@ public static void int4x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -172,7 +172,7 @@ public static void int4x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_less_wide_wide() { int4x2 a0 = int4x2(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431); @@ -196,7 +196,7 @@ public static void int4x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_less_wide_scalar() { int4x2 a0 = int4x2(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600); @@ -220,7 +220,7 @@ public static void int4x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_less_scalar_wide() { int a0 = (186400299); @@ -244,7 +244,7 @@ public static void int4x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_greater_wide_wide() { int4x2 a0 = int4x2(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508); @@ -268,7 +268,7 @@ public static void int4x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_greater_wide_scalar() { int4x2 a0 = int4x2(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098); @@ -292,7 +292,7 @@ public static void int4x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_greater_scalar_wide() { int a0 = (480938827); @@ -316,7 +316,7 @@ public static void int4x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_less_equal_wide_wide() { int4x2 a0 = int4x2(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725); @@ -340,7 +340,7 @@ public static void int4x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_less_equal_wide_scalar() { int4x2 a0 = int4x2(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307); @@ -364,7 +364,7 @@ public static void int4x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -388,7 +388,7 @@ public static void int4x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_greater_equal_wide_wide() { int4x2 a0 = int4x2(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970); @@ -412,7 +412,7 @@ public static void int4x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_greater_equal_wide_scalar() { int4x2 a0 = int4x2(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187); @@ -436,7 +436,7 @@ public static void int4x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -460,7 +460,7 @@ public static void int4x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_add_wide_wide() { int4x2 a0 = int4x2(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062); @@ -484,7 +484,7 @@ public static void int4x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_add_wide_scalar() { int4x2 a0 = int4x2(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017); @@ -508,7 +508,7 @@ public static void int4x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_add_scalar_wide() { int a0 = (359966320); @@ -532,7 +532,7 @@ public static void int4x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_sub_wide_wide() { int4x2 a0 = int4x2(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215); @@ -556,7 +556,7 @@ public static void int4x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_sub_wide_scalar() { int4x2 a0 = int4x2(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511); @@ -580,7 +580,7 @@ public static void int4x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_sub_scalar_wide() { int a0 = (893369501); @@ -604,7 +604,7 @@ public static void int4x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_mul_wide_wide() { int4x2 a0 = int4x2(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644); @@ -628,7 +628,7 @@ public static void int4x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_mul_wide_scalar() { int4x2 a0 = int4x2(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514); @@ -652,7 +652,7 @@ public static void int4x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -676,7 +676,7 @@ public static void int4x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_div_wide_wide() { int4x2 a0 = int4x2(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814); @@ -700,7 +700,7 @@ public static void int4x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_div_wide_scalar() { int4x2 a0 = int4x2(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670); @@ -724,7 +724,7 @@ public static void int4x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_div_scalar_wide() { int a0 = (519165704); @@ -748,7 +748,7 @@ public static void int4x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_mod_wide_wide() { int4x2 a0 = int4x2(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004); @@ -772,7 +772,7 @@ public static void int4x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_mod_wide_scalar() { int4x2 a0 = int4x2(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916); @@ -796,7 +796,7 @@ public static void int4x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_mod_scalar_wide() { int a0 = (933347930); @@ -820,7 +820,7 @@ public static void int4x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_plus() { int4x2 a0 = int4x2(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785); @@ -840,7 +840,7 @@ public static void int4x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_neg() { int4x2 a0 = int4x2(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961); @@ -860,7 +860,7 @@ public static void int4x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_prefix_inc() { int4x2 a0 = int4x2(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162); @@ -880,7 +880,7 @@ public static void int4x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_postfix_inc() { int4x2 a0 = int4x2(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244); @@ -900,7 +900,7 @@ public static void int4x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_prefix_dec() { int4x2 a0 = int4x2(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664); @@ -920,7 +920,7 @@ public static void int4x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_postfix_dec() { int4x2 a0 = int4x2(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351); @@ -940,7 +940,7 @@ public static void int4x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_bitwise_and_wide_wide() { int4x2 a0 = int4x2(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753); @@ -964,7 +964,7 @@ public static void int4x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_bitwise_and_wide_scalar() { int4x2 a0 = int4x2(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908); @@ -988,7 +988,7 @@ public static void int4x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1012,7 +1012,7 @@ public static void int4x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_bitwise_or_wide_wide() { int4x2 a0 = int4x2(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323); @@ -1036,7 +1036,7 @@ public static void int4x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_bitwise_or_wide_scalar() { int4x2 a0 = int4x2(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350); @@ -1060,7 +1060,7 @@ public static void int4x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1084,7 +1084,7 @@ public static void int4x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_bitwise_xor_wide_wide() { int4x2 a0 = int4x2(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658); @@ -1108,7 +1108,7 @@ public static void int4x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_bitwise_xor_wide_scalar() { int4x2 a0 = int4x2(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783); @@ -1132,7 +1132,7 @@ public static void int4x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1156,7 +1156,7 @@ public static void int4x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_left_shift() { int4x2 a0 = int4x2(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862); @@ -1180,7 +1180,7 @@ public static void int4x2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_right_shift() { int4x2 a0 = int4x2(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632); @@ -1204,7 +1204,7 @@ public static void int4x2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x2_operator_bitwise_not() { int4x2 a0 = int4x2(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135); diff --git a/src/Tests/Tests/Shared/TestInt4x3.gen.cs b/src/Tests/Tests/Shared/TestInt4x3.gen.cs index fec49565..c8662413 100644 --- a/src/Tests/Tests/Shared/TestInt4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt4x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_zero() { TestUtils.AreEqual(0, int4x3.zero.c0.x); @@ -32,7 +32,7 @@ public static void int4x3_zero() TestUtils.AreEqual(0, int4x3.zero.c2.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_equal_wide_wide() { int4x3 a0 = int4x3(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367, 727143393, 2061243891, 184669837); @@ -56,7 +56,7 @@ public static void int4x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_equal_wide_scalar() { int4x3 a0 = int4x3(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998, 691955848, 1926262965, 1851546137); @@ -80,7 +80,7 @@ public static void int4x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_equal_scalar_wide() { int a0 = (542329200); @@ -104,7 +104,7 @@ public static void int4x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_not_equal_wide_wide() { int4x3 a0 = int4x3(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678, 13079405, 1413841590, 1076166545); @@ -128,7 +128,7 @@ public static void int4x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_not_equal_wide_scalar() { int4x3 a0 = int4x3(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423, 484398043, 506946952, 226568494); @@ -152,7 +152,7 @@ public static void int4x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -176,7 +176,7 @@ public static void int4x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_less_wide_wide() { int4x3 a0 = int4x3(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312, 337757077, 1081797900, 1336745069); @@ -200,7 +200,7 @@ public static void int4x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_less_wide_scalar() { int4x3 a0 = int4x3(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597, 1546212312, 1718582899, 1648393417); @@ -224,7 +224,7 @@ public static void int4x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_less_scalar_wide() { int a0 = (186400299); @@ -248,7 +248,7 @@ public static void int4x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_greater_wide_wide() { int4x3 a0 = int4x3(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133, 1744374599, 821751047, 467646903); @@ -272,7 +272,7 @@ public static void int4x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_greater_wide_scalar() { int4x3 a0 = int4x3(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855, 1433540517, 566635217, 1773305960); @@ -296,7 +296,7 @@ public static void int4x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_greater_scalar_wide() { int a0 = (480938827); @@ -320,7 +320,7 @@ public static void int4x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_less_equal_wide_wide() { int4x3 a0 = int4x3(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541, 457043352, 1123282035, 1001842946); @@ -344,7 +344,7 @@ public static void int4x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_less_equal_wide_scalar() { int4x3 a0 = int4x3(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375, 509818792, 1910488590, 85452501); @@ -368,7 +368,7 @@ public static void int4x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -392,7 +392,7 @@ public static void int4x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_greater_equal_wide_wide() { int4x3 a0 = int4x3(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826, 631221455, 1456286159, 961342752); @@ -416,7 +416,7 @@ public static void int4x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_greater_equal_wide_scalar() { int4x3 a0 = int4x3(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669, 411667685, 1998610091, 4652390); @@ -440,7 +440,7 @@ public static void int4x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -464,7 +464,7 @@ public static void int4x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_add_wide_wide() { int4x3 a0 = int4x3(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600, 976898058, 1915056423, 121374462); @@ -488,7 +488,7 @@ public static void int4x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_add_wide_scalar() { int4x3 a0 = int4x3(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008, 1246759684, 1088001167, 57252642); @@ -512,7 +512,7 @@ public static void int4x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_add_scalar_wide() { int a0 = (359966320); @@ -536,7 +536,7 @@ public static void int4x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_sub_wide_wide() { int4x3 a0 = int4x3(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315, 2011295463, 48079003, 591379285); @@ -560,7 +560,7 @@ public static void int4x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_sub_wide_scalar() { int4x3 a0 = int4x3(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113, 1108005498, 304369206, 999244508); @@ -584,7 +584,7 @@ public static void int4x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_sub_scalar_wide() { int a0 = (893369501); @@ -608,7 +608,7 @@ public static void int4x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_mul_wide_wide() { int4x3 a0 = int4x3(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583, 1835691886, 385626539, 85934842); @@ -632,7 +632,7 @@ public static void int4x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_mul_wide_scalar() { int4x3 a0 = int4x3(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059, 1186560810, 1584938026, 1357601203); @@ -656,7 +656,7 @@ public static void int4x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -680,7 +680,7 @@ public static void int4x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_div_wide_wide() { int4x3 a0 = int4x3(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195, 166625280, 1493729000, 1831739736); @@ -704,7 +704,7 @@ public static void int4x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_div_wide_scalar() { int4x3 a0 = int4x3(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136, 25493909, 1196815948, 123300377); @@ -728,7 +728,7 @@ public static void int4x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_div_scalar_wide() { int a0 = (519165704); @@ -752,7 +752,7 @@ public static void int4x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_mod_wide_wide() { int4x3 a0 = int4x3(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101, 17598216, 1474345080, 1681376293); @@ -776,7 +776,7 @@ public static void int4x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_mod_wide_scalar() { int4x3 a0 = int4x3(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144, 1287035793, 1743722161, 475209785); @@ -800,7 +800,7 @@ public static void int4x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_mod_scalar_wide() { int a0 = (933347930); @@ -824,7 +824,7 @@ public static void int4x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_plus() { int4x3 a0 = int4x3(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671, 1084131995, 195779102, 2131702223); @@ -844,7 +844,7 @@ public static void int4x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_neg() { int4x3 a0 = int4x3(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525, 270503114, 1928771252, 1427605822); @@ -864,7 +864,7 @@ public static void int4x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_prefix_inc() { int4x3 a0 = int4x3(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994, 1915989169, 1348278302, 129540735); @@ -884,7 +884,7 @@ public static void int4x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_postfix_inc() { int4x3 a0 = int4x3(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247, 1384002775, 389844650, 1159795446); @@ -904,7 +904,7 @@ public static void int4x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_prefix_dec() { int4x3 a0 = int4x3(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745, 2059077641, 1169239112, 1862369220); @@ -924,7 +924,7 @@ public static void int4x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_postfix_dec() { int4x3 a0 = int4x3(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889, 862428933, 1401191870, 2080259851); @@ -944,7 +944,7 @@ public static void int4x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_bitwise_and_wide_wide() { int4x3 a0 = int4x3(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656, 53199569, 1752363533, 1303061302); @@ -968,7 +968,7 @@ public static void int4x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_bitwise_and_wide_scalar() { int4x3 a0 = int4x3(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263, 327392481, 1619794917, 2143619546); @@ -992,7 +992,7 @@ public static void int4x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1016,7 +1016,7 @@ public static void int4x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_bitwise_or_wide_wide() { int4x3 a0 = int4x3(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869, 1912038362, 1569990624, 1490718227); @@ -1040,7 +1040,7 @@ public static void int4x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_bitwise_or_wide_scalar() { int4x3 a0 = int4x3(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307, 1050875188, 341855232, 1317039676); @@ -1064,7 +1064,7 @@ public static void int4x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1088,7 +1088,7 @@ public static void int4x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_bitwise_xor_wide_wide() { int4x3 a0 = int4x3(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251, 230477768, 1103646442, 1503102919); @@ -1112,7 +1112,7 @@ public static void int4x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_bitwise_xor_wide_scalar() { int4x3 a0 = int4x3(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873, 835837496, 954341348, 1464576786); @@ -1136,7 +1136,7 @@ public static void int4x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1160,7 +1160,7 @@ public static void int4x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_left_shift() { int4x3 a0 = int4x3(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727, 849916599, 1271350845, 108441902); @@ -1184,7 +1184,7 @@ public static void int4x3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_right_shift() { int4x3 a0 = int4x3(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393, 1923166649, 102096936, 400863878); @@ -1208,7 +1208,7 @@ public static void int4x3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x3_operator_bitwise_not() { int4x3 a0 = int4x3(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628, 787710759, 875964607, 96456785); diff --git a/src/Tests/Tests/Shared/TestInt4x4.gen.cs b/src/Tests/Tests/Shared/TestInt4x4.gen.cs index 81786fb7..408529a2 100644 --- a/src/Tests/Tests/Shared/TestInt4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestInt4x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestInt4x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_zero() { TestUtils.AreEqual(0, int4x4.zero.c0.x); @@ -36,7 +36,7 @@ public static void int4x4_zero() TestUtils.AreEqual(0, int4x4.zero.c3.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_identity() { TestUtils.AreEqual(1, int4x4.identity.c0.x); @@ -57,7 +57,7 @@ public static void int4x4_identity() TestUtils.AreEqual(1, int4x4.identity.c3.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_equal_wide_wide() { int4x4 a0 = int4x4(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367, 727143393, 2061243891, 184669837, 1303661760, 2044073738, 370395888, 1822916805); @@ -81,7 +81,7 @@ public static void int4x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_equal_wide_scalar() { int4x4 a0 = int4x4(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998, 691955848, 1926262965, 1851546137, 712957637, 2028784869, 1049962241, 1836975611); @@ -105,7 +105,7 @@ public static void int4x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_equal_scalar_wide() { int a0 = (542329200); @@ -129,7 +129,7 @@ public static void int4x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_not_equal_wide_wide() { int4x4 a0 = int4x4(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678, 13079405, 1413841590, 1076166545, 1211445174, 1289303469, 1436402489, 1129570126); @@ -153,7 +153,7 @@ public static void int4x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_not_equal_wide_scalar() { int4x4 a0 = int4x4(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423, 484398043, 506946952, 226568494, 507918242, 1702162286, 923269270, 166187260); @@ -177,7 +177,7 @@ public static void int4x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_not_equal_scalar_wide() { int a0 = (1652127596); @@ -201,7 +201,7 @@ public static void int4x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_less_wide_wide() { int4x4 a0 = int4x4(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312, 337757077, 1081797900, 1336745069, 840685445, 1220554047, 2013681746, 192965012); @@ -225,7 +225,7 @@ public static void int4x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_less_wide_scalar() { int4x4 a0 = int4x4(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597, 1546212312, 1718582899, 1648393417, 1857132231, 1909506562, 1294006045, 952084157); @@ -249,7 +249,7 @@ public static void int4x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_less_scalar_wide() { int a0 = (186400299); @@ -273,7 +273,7 @@ public static void int4x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_greater_wide_wide() { int4x4 a0 = int4x4(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133, 1744374599, 821751047, 467646903, 2029731638, 1377214212, 1207816926, 474621063); @@ -297,7 +297,7 @@ public static void int4x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_greater_wide_scalar() { int4x4 a0 = int4x4(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855, 1433540517, 566635217, 1773305960, 1850273578, 206147145, 325913453, 333381537); @@ -321,7 +321,7 @@ public static void int4x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_greater_scalar_wide() { int a0 = (480938827); @@ -345,7 +345,7 @@ public static void int4x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_less_equal_wide_wide() { int4x4 a0 = int4x4(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541, 457043352, 1123282035, 1001842946, 1387761992, 195272789, 659549000, 888761458); @@ -369,7 +369,7 @@ public static void int4x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_less_equal_wide_scalar() { int4x4 a0 = int4x4(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375, 509818792, 1910488590, 85452501, 518127023, 1246249980, 1097326500, 1964410699); @@ -393,7 +393,7 @@ public static void int4x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_less_equal_scalar_wide() { int a0 = (1899193992); @@ -417,7 +417,7 @@ public static void int4x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_greater_equal_wide_wide() { int4x4 a0 = int4x4(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826, 631221455, 1456286159, 961342752, 424526026, 788481984, 1662488497, 870326690); @@ -441,7 +441,7 @@ public static void int4x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_greater_equal_wide_scalar() { int4x4 a0 = int4x4(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669, 411667685, 1998610091, 4652390, 996159180, 2111455181, 727766399, 96217144); @@ -465,7 +465,7 @@ public static void int4x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_greater_equal_scalar_wide() { int a0 = (1859811087); @@ -489,7 +489,7 @@ public static void int4x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_add_wide_wide() { int4x4 a0 = int4x4(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600, 976898058, 1915056423, 121374462, 1218855698, 700538222, 1702057277, 1788251699); @@ -513,7 +513,7 @@ public static void int4x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_add_wide_scalar() { int4x4 a0 = int4x4(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008, 1246759684, 1088001167, 57252642, 678921480, 625943813, 512157429, 1470648741); @@ -537,7 +537,7 @@ public static void int4x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_add_scalar_wide() { int a0 = (359966320); @@ -561,7 +561,7 @@ public static void int4x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_sub_wide_wide() { int4x4 a0 = int4x4(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315, 2011295463, 48079003, 591379285, 1125909359, 1842588095, 848561896, 614448464); @@ -585,7 +585,7 @@ public static void int4x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_sub_wide_scalar() { int4x4 a0 = int4x4(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113, 1108005498, 304369206, 999244508, 1806482044, 1994553647, 2101812429, 1482736902); @@ -609,7 +609,7 @@ public static void int4x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_sub_scalar_wide() { int a0 = (893369501); @@ -633,7 +633,7 @@ public static void int4x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_mul_wide_wide() { int4x4 a0 = int4x4(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583, 1835691886, 385626539, 85934842, 522856538, 278370196, 289217012, 2083410174); @@ -657,7 +657,7 @@ public static void int4x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_mul_wide_scalar() { int4x4 a0 = int4x4(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059, 1186560810, 1584938026, 1357601203, 638897141, 268562104, 1007838321, 1163240135); @@ -681,7 +681,7 @@ public static void int4x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_mul_scalar_wide() { int a0 = (1152242766); @@ -705,7 +705,7 @@ public static void int4x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_div_wide_wide() { int4x4 a0 = int4x4(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195, 166625280, 1493729000, 1831739736, 200852358, 129983172, 500176108, 472051781); @@ -729,7 +729,7 @@ public static void int4x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_div_wide_scalar() { int4x4 a0 = int4x4(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136, 25493909, 1196815948, 123300377, 643754735, 2084019932, 2047825037, 458304263); @@ -753,7 +753,7 @@ public static void int4x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_div_scalar_wide() { int a0 = (519165704); @@ -777,7 +777,7 @@ public static void int4x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_mod_wide_wide() { int4x4 a0 = int4x4(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101, 17598216, 1474345080, 1681376293, 813624265, 1617478722, 498370451, 780075943); @@ -801,7 +801,7 @@ public static void int4x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_mod_wide_scalar() { int4x4 a0 = int4x4(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144, 1287035793, 1743722161, 475209785, 327476870, 1617696916, 379853074, 477430114); @@ -825,7 +825,7 @@ public static void int4x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_mod_scalar_wide() { int a0 = (933347930); @@ -849,7 +849,7 @@ public static void int4x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_plus() { int4x4 a0 = int4x4(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671, 1084131995, 195779102, 2131702223, 715660442, 1995564647, 69731564, 1317851903); @@ -869,7 +869,7 @@ public static void int4x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_neg() { int4x4 a0 = int4x4(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525, 270503114, 1928771252, 1427605822, 2051940607, 1434247484, 485368391, 908365416); @@ -889,7 +889,7 @@ public static void int4x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_prefix_inc() { int4x4 a0 = int4x4(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994, 1915989169, 1348278302, 129540735, 1584496757, 1170613526, 986715680, 1701179230); @@ -909,7 +909,7 @@ public static void int4x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_postfix_inc() { int4x4 a0 = int4x4(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247, 1384002775, 389844650, 1159795446, 1343289659, 1227160199, 947635082, 137930180); @@ -929,7 +929,7 @@ public static void int4x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_prefix_dec() { int4x4 a0 = int4x4(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745, 2059077641, 1169239112, 1862369220, 312317355, 1027543764, 1595492535, 1426262619); @@ -949,7 +949,7 @@ public static void int4x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_postfix_dec() { int4x4 a0 = int4x4(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889, 862428933, 1401191870, 2080259851, 653673271, 140452688, 1928164223, 1760916301); @@ -969,7 +969,7 @@ public static void int4x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_bitwise_and_wide_wide() { int4x4 a0 = int4x4(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656, 53199569, 1752363533, 1303061302, 1929998247, 1504941434, 470682792, 713577376); @@ -993,7 +993,7 @@ public static void int4x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_bitwise_and_wide_scalar() { int4x4 a0 = int4x4(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263, 327392481, 1619794917, 2143619546, 1873208293, 126982769, 651482651, 1383096952); @@ -1017,7 +1017,7 @@ public static void int4x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_bitwise_and_scalar_wide() { int a0 = (477163326); @@ -1041,7 +1041,7 @@ public static void int4x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_bitwise_or_wide_wide() { int4x4 a0 = int4x4(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869, 1912038362, 1569990624, 1490718227, 1686257697, 2137727522, 1569900650, 856504729); @@ -1065,7 +1065,7 @@ public static void int4x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_bitwise_or_wide_scalar() { int4x4 a0 = int4x4(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307, 1050875188, 341855232, 1317039676, 228656898, 41280811, 1536908787, 606786773); @@ -1089,7 +1089,7 @@ public static void int4x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_bitwise_or_scalar_wide() { int a0 = (1768627592); @@ -1113,7 +1113,7 @@ public static void int4x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_bitwise_xor_wide_wide() { int4x4 a0 = int4x4(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251, 230477768, 1103646442, 1503102919, 26631152, 1016475570, 1862440929, 379588576); @@ -1137,7 +1137,7 @@ public static void int4x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_bitwise_xor_wide_scalar() { int4x4 a0 = int4x4(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873, 835837496, 954341348, 1464576786, 625604047, 1700827127, 2003392824, 1481813598); @@ -1161,7 +1161,7 @@ public static void int4x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_bitwise_xor_scalar_wide() { int a0 = (1361775641); @@ -1185,7 +1185,7 @@ public static void int4x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_left_shift() { int4x4 a0 = int4x4(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727, 849916599, 1271350845, 108441902, 1959056531, 1779118882, 1451674188, 2082026915); @@ -1209,7 +1209,7 @@ public static void int4x4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_right_shift() { int4x4 a0 = int4x4(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393, 1923166649, 102096936, 400863878, 667378673, 1611921244, 307750782, 479442287); @@ -1233,7 +1233,7 @@ public static void int4x4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4x4_operator_bitwise_not() { int4x4 a0 = int4x4(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628, 787710759, 875964607, 96456785, 916013379, 203444882, 1172294211, 1020232736); diff --git a/src/Tests/Tests/Shared/TestMath.cs b/src/Tests/Tests/Shared/TestMath.cs index 4ba1c895..d22d82a7 100644 --- a/src/Tests/Tests/Shared/TestMath.cs +++ b/src/Tests/Tests/Shared/TestMath.cs @@ -8,7 +8,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public partial class TestMath { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asint_uint() { TestUtils.AreEqual(0, asint(0u)); @@ -19,7 +19,7 @@ public static void asint_uint() TestUtils.AreEqual(-1, asint(0xFFFFFFFFu)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asint_uint2() { TestUtils.AreEqual(int2(0, 0x12345678), asint(uint2(0u, 0x12345678u))); @@ -27,21 +27,21 @@ public static void asint_uint2() TestUtils.AreEqual(int2(-2023406815, -1), asint(uint2(0x87654321u, 0xFFFFFFFFu))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asint_uint3() { TestUtils.AreEqual(int3(0, 0x12345678, 0x7FFFFFFF), asint(uint3(0u, 0x12345678u, 0x7FFFFFFFu))); TestUtils.AreEqual(int3(-2147483648, -2023406815, -1), asint(uint3(0x80000000u, 0x87654321u, 0xFFFFFFFFu))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asint_uint4() { TestUtils.AreEqual(int4(0, 0x12345678, 0x7FFFFFFF, -2147483648), asint(uint4(0u, 0x12345678u, 0x7FFFFFFFu, 0x80000000u))); TestUtils.AreEqual(int4(-2023406815, -1, 0, 0), asint(uint4(0x87654321u, 0xFFFFFFFFu, 0u, 0u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asint_float() { TestUtils.AreEqual(0, asint(0.0f)); @@ -56,14 +56,14 @@ public static void asint_float() TestUtils.AreEqual(unchecked((int)0xFF800000), asint(float.NegativeInfinity)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asint_float_signed_zero() { TestUtils.AreEqual(unchecked((int)0x80000000), asint(TestUtils.SignedFloatZero())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asint_float2() { TestUtils.AreEqual(int2(0, 0x3F800000), asint(float2(0.0f, 1.0f))); @@ -75,14 +75,14 @@ public static void asint_float2() TestUtils.AreEqual(int2(0, 0), asint(float2(0.0f, 0.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asint_float2_signed_zero() { TestUtils.AreEqual(int2(unchecked((int)0x80000000), unchecked((int)0x80000000)), asint(float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asint_float3() { TestUtils.AreEqual(int3(0, 0x3F800000, 0x449A51EC), asint(float3(0.0f, 1.0f, 1234.56f))); @@ -91,14 +91,14 @@ public static void asint_float3() TestUtils.AreEqual(int3(unchecked((int)0xC49A51EC), unchecked((int)0xFF800000), 0), asint(float3(-1234.56f, float.NegativeInfinity, 0.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asint_float3_signed_zero() { TestUtils.AreEqual(int3(unchecked((int)0x80000000), unchecked((int)0x80000000), unchecked((int)0x80000000)), asint(float3(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asint_float4() { TestUtils.AreEqual(int4(0, 0x3F800000, 0x449A51EC, 0x7F800000), asint(float4(0.0f, 1.0f, 1234.56f, float.PositiveInfinity))); @@ -106,14 +106,14 @@ public static void asint_float4() TestUtils.AreEqual(int4(unchecked((int)0x7FC00000), unchecked((int)0xBF800000), unchecked((int)0xC49A51EC), unchecked((int)0xFF800000)), asint(float4(TestUtils.UnsignedFloatQNaN(), -1.0f, -1234.56f, float.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asint_float4_signed_zero() { TestUtils.AreEqual(int4(unchecked((int)0x80000000), unchecked((int)0x80000000), unchecked((int)0x80000000), unchecked((int)0x80000000)), asint(float4(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asuint_int() { TestUtils.AreEqual(0u, asuint(0)); @@ -124,7 +124,7 @@ public static void asuint_int() TestUtils.AreEqual(0xFFFFFFFFu, asuint(-1)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asuint_int2() { TestUtils.AreEqual(uint2(0u, 0x12345678u), asuint(int2(0, 0x12345678))); @@ -132,21 +132,21 @@ public static void asuint_int2() TestUtils.AreEqual(uint2(0x87654321u, 0xFFFFFFFFu), asuint(int2(-2023406815, -1))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asuint_int3() { TestUtils.AreEqual(uint3(0u, 0x12345678u, 0x7FFFFFFFu), asuint(int3(0, 0x12345678, 0x7FFFFFFF))); TestUtils.AreEqual(uint3(0x80000000u, 0x87654321u, 0xFFFFFFFFu), asuint(int3(-2147483648, -2023406815, -1))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asuint_int4() { TestUtils.AreEqual(uint4(0u, 0x12345678u, 0x7FFFFFFFu, 0x80000000u), asuint(int4(0, 0x12345678, 0x7FFFFFFF, -2147483648))); TestUtils.AreEqual(uint4(0x87654321u, 0xFFFFFFFFu, 0u, 0u), asuint(int4(-2023406815, -1, 0, 0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asuint_float() { TestUtils.AreEqual(0u, asuint(0.0f)); @@ -161,14 +161,14 @@ public static void asuint_float() TestUtils.AreEqual(0xFF800000u, asuint(float.NegativeInfinity)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asuint_float_signed_zero() { TestUtils.AreEqual(0x80000000u, asuint(TestUtils.SignedFloatZero())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asuint_float2() { TestUtils.AreEqual(uint2(0u, 0x3F800000u), asuint(float2(0.0f, 1.0f))); @@ -179,14 +179,14 @@ public static void asuint_float2() TestUtils.AreEqual(uint2(0xC49A51ECu, 0xFF800000u), asuint(float2(-1234.56f, float.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asuint_float2_signed_zero() { TestUtils.AreEqual(uint2(0x80000000u, 0x80000000u), asuint(float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asuint_float3() { TestUtils.AreEqual(uint3(0u, 0x3F800000u, 0x449A51ECu), asuint(float3(0.0f, 1.0f, 1234.56f))); @@ -195,14 +195,14 @@ public static void asuint_float3() TestUtils.AreEqual(uint3(0xC49A51ECu, 0xff800000u, 0u), asuint(float3(-1234.56f, float.NegativeInfinity, 0.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asuint_float3_signed_zero() { TestUtils.AreEqual(uint3(0x80000000u, 0x80000000u, 0x80000000u), asuint(float3(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asuint_float4() { TestUtils.AreEqual(uint4(0u, 0x3F800000u, 0x449A51ECu, 0x7F800000u), asuint(float4(0.0f, 1.0f, 1234.56f, float.PositiveInfinity))); @@ -210,14 +210,14 @@ public static void asuint_float4() TestUtils.AreEqual(uint4(0x7FC00000u, 0xBF800000u, 0xC49A51ECu, 0xFF800000u), asuint(float4(TestUtils.UnsignedFloatQNaN(), -1.0f, -1234.56f, float.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asuint_float4_singed_zero() { TestUtils.AreEqual(uint4(0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u), asuint(float4(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void aslong_ulong() { TestUtils.AreEqual(0L, aslong(0ul)); @@ -228,7 +228,7 @@ public static void aslong_ulong() TestUtils.AreEqual(-1L, aslong(0xFFFFFFFFFFFFFFFFul)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void aslong_double() { TestUtils.AreEqual(0L, aslong(0.0)); @@ -242,14 +242,14 @@ public static void aslong_double() TestUtils.AreEqual(unchecked((long)0xFFF0000000000000UL), aslong(double.NegativeInfinity)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void aslong_double_signed_zero() { TestUtils.AreEqual(unchecked((long)0x8000000000000000UL), aslong(TestUtils.SignedDoubleZero())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asulong_long() { TestUtils.AreEqual(0ul, asulong(0L)); @@ -260,7 +260,7 @@ public static void asulong_long() TestUtils.AreEqual(0xFFFFFFFFFFFFFFFFul, asulong(-1L)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asulong_double() { TestUtils.AreEqual(0UL, asulong(0.0)); @@ -274,14 +274,14 @@ public static void asulong_double() TestUtils.AreEqual(0xFFF0000000000000UL, asulong(double.NegativeInfinity)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void asulong_double_signed_zero() { TestUtils.AreEqual(0x8000000000000000UL, asulong(TestUtils.SignedDoubleZero())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asfloat_int() { TestUtils.AreEqual(0.0f, asfloat(0)); @@ -297,7 +297,7 @@ public static void asfloat_int() TestUtils.AreEqual(asuint(TestUtils.UnsignedFloatQNaN()), asuint(asfloat(unchecked((int)0x7FC00000)))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asfloat_int2() { TestUtils.AreEqual(float2(0.0f, 1.0f), asfloat(int2(0, 0x3F800000))); @@ -309,7 +309,7 @@ public static void asfloat_int2() TestUtils.AreEqual(asuint(float2(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(int2(unchecked((int)0x7FC00000), unchecked((int)0x7FC00000))))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asfloat_int3() { TestUtils.AreEqual(float3(0.0f, 1.0f, 1234.56f), asfloat(int3(0, 0x3F800000, 0x449A51EC))); @@ -320,7 +320,7 @@ public static void asfloat_int3() TestUtils.AreEqual(asuint(float3(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(int3(unchecked((int)0x7FC00000), unchecked((int)0x7FC00000), unchecked((int)0x7FC00000))))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asfloat_int4() { TestUtils.AreEqual(float4(0.0f, 1.0f, 1234.56f, float.PositiveInfinity), asfloat(int4(0, 0x3F800000, 0x449A51EC, 0x7F800000))); @@ -330,7 +330,7 @@ public static void asfloat_int4() TestUtils.AreEqual(asuint(float4(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(int4(unchecked((int)0x7FC00000), unchecked((int)0x7FC00000), unchecked((int)0x7FC00000), unchecked((int)0x7FC00000))))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asfloat_uint() { TestUtils.AreEqual(0.0f, asfloat(0u)); @@ -346,7 +346,7 @@ public static void asfloat_uint() TestUtils.AreEqual(asuint(TestUtils.UnsignedFloatQNaN()), asuint(asfloat(0x7FC00000u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asfloat_uint2() { TestUtils.AreEqual(float2(0.0f, 1.0f), asfloat(uint2(0u, 0x3F800000u))); @@ -358,7 +358,7 @@ public static void asfloat_uint2() TestUtils.AreEqual(asuint(float2(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(uint2(0x7FC00000u, 0x7FC00000u)))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asfloat_uint3() { TestUtils.AreEqual(float3(0.0f, 1.0f, 1234.56f), asfloat(uint3(0u, 0x3F800000u, 0x449A51ECu))); @@ -369,7 +369,7 @@ public static void asfloat_uint3() TestUtils.AreEqual(asuint(float3(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(uint3(0x7FC00000u, 0x7FC00000u, 0x7FC00000u)))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asfloat_uint4() { TestUtils.AreEqual(float4(0.0f, 1.0f, 1234.56f, float.PositiveInfinity), asfloat(uint4(0u, 0x3F800000u, 0x449A51ECu, 0x7F800000u))); @@ -379,7 +379,7 @@ public static void asfloat_uint4() TestUtils.AreEqual(asuint(float4(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN())), asuint(asfloat(uint4(0x7FC00000u, 0x7FC00000u, 0x7FC00000u, 0x7FC00000u)))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asdouble_long() { TestUtils.AreEqual(0.0, asdouble(0L)); @@ -394,7 +394,7 @@ public static void asdouble_long() TestUtils.AreEqual(double.NegativeInfinity, asdouble(unchecked((long)0xFFF0000000000000UL))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void asdouble_ulong() { TestUtils.AreEqual(0.0, asdouble(0UL)); @@ -409,7 +409,7 @@ public static void asdouble_ulong() TestUtils.AreEqual(double.NegativeInfinity, asdouble(0xFFF0000000000000UL)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void faceforward_float2() { TestUtils.AreEqual(float2(-3.5f, 4.5f), faceforward(float2(3.5f, -4.5f), float2(1.0f, -2.0f), float2(3.0f, -4.0f))); @@ -417,7 +417,7 @@ public static void faceforward_float2() TestUtils.AreEqual(float2(-3.5f, 4.5f), faceforward(float2(3.5f, -4.5f), float2(1.0f, -2.0f), float2(0.0f, 0.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void faceforward_float3() { TestUtils.AreEqual(float3(-3.5f, 4.5f, -5.5f), faceforward(float3(3.5f, -4.5f, 5.5f), float3(1.0f, -2.0f, 3.0f), float3(3.0f, -4.0f, 5.0f))); @@ -425,7 +425,7 @@ public static void faceforward_float3() TestUtils.AreEqual(float3(-3.5f, 4.5f, -5.5f), faceforward(float3(3.5f, -4.5f, 5.5f), float3(1.0f, -2.0f, 3.0f), float3(0.0f, 0.0f, 0.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void faceforward_float4() { TestUtils.AreEqual(float4(-3.5f, 4.5f, -5.5f, 6.5f), faceforward(float4(3.5f, -4.5f, 5.5f, -6.5f), float4(1.0f, -2.0f, 3.0f, -4.0f), float4(3.0f, -4.0f, 5.0f, -6.0f))); @@ -433,7 +433,7 @@ public static void faceforward_float4() TestUtils.AreEqual(float4(-3.5f, 4.5f, -5.5f, 6.5f), faceforward(float4(3.5f, -4.5f, 5.5f, -6.5f), float4(1.0f, -2.0f, 3.0f, -4.0f), float4(0.0f, 0.0f, 0.0f, 0.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void faceforward_double2() { TestUtils.AreEqual(double2(-3.5, 4.5), faceforward(double2(3.5, -4.5), double2(1.0, -2.0), double2(3.0, -4.0))); @@ -441,7 +441,7 @@ public static void faceforward_double2() TestUtils.AreEqual(double2(-3.5, 4.5), faceforward(double2(3.5, -4.5), double2(1.0, -2.0), double2(0.0, 0.0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void faceforward_double3() { TestUtils.AreEqual(double3(-3.5, 4.5, -5.5), faceforward(double3(3.5, -4.5, 5.5), double3(1.0, -2.0, 3.0), double3(3.0, -4.0, 5.0))); @@ -449,7 +449,7 @@ public static void faceforward_double3() TestUtils.AreEqual(double3(-3.5, 4.5, -5.5), faceforward(double3(3.5, -4.5, 5.5), double3(1.0, -2.0, 3.0), double3(0.0, 0.0, 0.0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void faceforward_double4() { TestUtils.AreEqual(double4(-3.5, 4.5, -5.5, 6.5), faceforward(double4(3.5, -4.5, 5.5, -6.5), double4(1.0, -2.0, 3.0, -4.0), double4(3.0, -4.0, 5.0, -6.0))); @@ -457,7 +457,7 @@ public static void faceforward_double4() TestUtils.AreEqual(double4(-3.5, 4.5, -5.5, 6.5), faceforward(double4(3.5, -4.5, 5.5, -6.5), double4(1.0, -2.0, 3.0, -4.0), double4(0.0, 0.0, 0.0, 0.0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void modf_float() { float f, i; @@ -474,7 +474,7 @@ public static void modf_float() TestUtils.AreEqual(0.0f, f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void modf_float2() { float2 f, i; @@ -487,7 +487,7 @@ public static void modf_float2() TestUtils.AreEqual(float2(0.0f, 0.5f), f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void modf_float3() { float3 f, i; @@ -496,7 +496,7 @@ public static void modf_float3() TestUtils.AreEqual(float3(0.75f, -0.25f, 0.0f), f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void modf_float4() { float4 f, i; @@ -505,7 +505,7 @@ public static void modf_float4() TestUtils.AreEqual(float4(0.75f, -0.25f, 0.0f, 0.5f), f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void modf_double() { double f, i; @@ -522,7 +522,7 @@ public static void modf_double() TestUtils.AreEqual(0.0, f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void modf_double2() { double2 f, i; @@ -535,7 +535,7 @@ public static void modf_double2() TestUtils.AreEqual(double2(0.0, 0.5), f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void modf_double3() { double3 f, i; @@ -544,7 +544,7 @@ public static void modf_double3() TestUtils.AreEqual(double3(0.75, -0.25, 0.0), f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void modf_double4() { double4 f, i; @@ -553,21 +553,21 @@ public static void modf_double4() TestUtils.AreEqual(double4(0.75, -0.25, 0.0, 0.5f), f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void normalize_float2() { TestUtils.AreEqual(float2(0.504883f, -0.863188f), normalize(float2(3.1f, -5.3f)), 0.0001f); TestUtils.AreEqual(true, all(isnan(normalize(float2(0.0f, 0.0f))))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void normalize_float3() { TestUtils.AreEqual(float3(0.464916f, -0.794861f, 0.389932f), normalizesafe(float3(3.1f, -5.3f, 2.6f)), 0.0001f); TestUtils.AreEqual(true, all(isnan(normalize(float3(0.0f, 0.0f, 0.0f))))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void normalize_float4() { TestUtils.AreEqual(float4(0.234727f, -0.401308f, 0.196868f, 0.863191f), normalizesafe(float4(3.1f, -5.3f, 2.6f, 11.4f)), 0.0001f); @@ -575,28 +575,28 @@ public static void normalize_float4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void normalize_double2() { TestUtils.AreEqual(double2(0.504883, -0.863188), normalize(double2(3.1, -5.3)), 0.0001); TestUtils.AreEqual(true, all(isnan(normalize(double2(0.0, 0.0))))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void normalize_double3() { TestUtils.AreEqual(double3(0.464916, -0.794861, 0.389932), normalizesafe(double3(3.1, -5.3, 2.6)), 0.0001); TestUtils.AreEqual(true, all(isnan(normalize(double3(0.0, 0.0, 0.0))))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void normalize_double4() { TestUtils.AreEqual(double4(0.234727, -0.401308, 0.196868, 0.863191), normalizesafe(double4(3.1, -5.3, 2.6, 11.4)), 0.0001); TestUtils.AreEqual(true, all(isnan(normalize(double4(0.0, 0.0, 0.0, 0.0f))))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void normalize_quaternion() { TestUtils.AreEqual(quaternion(0.234727f, -0.401308f, 0.196868f, 0.863191f), normalizesafe(quaternion(3.1f, -5.3f, 2.6f, 11.4f)), 0.0001f); @@ -604,7 +604,7 @@ public static void normalize_quaternion() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void normalizesafe_float2() { TestUtils.AreEqual(float2(0.504883f, -0.863188f), normalizesafe(float2(3.1f, -5.3f)), 0.0001f); @@ -614,7 +614,7 @@ public static void normalizesafe_float2() TestUtils.AreEqual(float2(1.0f, 2.0f), normalizesafe(float2(7.66e-20f, 7.66e-20f), float2(1.0f, 2.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void normalizesafe_float3() { TestUtils.AreEqual(float3(0.464916f, -0.794861f, 0.389932f), normalizesafe(float3(3.1f, -5.3f, 2.6f)), 0.0001f); @@ -624,7 +624,7 @@ public static void normalizesafe_float3() TestUtils.AreEqual(float3(1.0f, 2.0f, 3.0f), normalizesafe(float3(6.25e-20f, 6.25e-20f, 6.25e-20f), float3(1.0f, 2.0f, 3.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void normalizesafe_float4() { TestUtils.AreEqual(float4(0.234727f, -0.401308f, 0.196868f, 0.863191f), normalizesafe(float4(3.1f, -5.3f, 2.6f, 11.4f)), 0.0001f); @@ -635,7 +635,7 @@ public static void normalizesafe_float4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void normalizesafe_double2() { TestUtils.AreEqual(double2(0.504883, -0.863188), normalizesafe(double2(3.1, -5.3)), 0.0001); @@ -645,7 +645,7 @@ public static void normalizesafe_double2() TestUtils.AreEqual(double2(1.0, 2.0), normalizesafe(double2(1.05e-154, 1.05e-154), double2(1.0, 2.0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void normalizesafe_double3() { TestUtils.AreEqual(double3(0.464916, -0.794861, 0.389932), normalizesafe(double3(3.1, -5.3, 2.6)), 0.0001); @@ -655,7 +655,7 @@ public static void normalizesafe_double3() TestUtils.AreEqual(double3(1.0, 2.0, 3.0), normalizesafe(double3(8.61e-155, 8.61e-155, 8.61e-155), double3(1.0, 2.0, 3.0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void normalizesafe_double4() { TestUtils.AreEqual(double4(0.234727, -0.401308, 0.196868, 0.863191), normalizesafe(double4(3.1, -5.3, 2.6, 11.4)), 0.0001); @@ -665,7 +665,7 @@ public static void normalizesafe_double4() TestUtils.AreEqual(double4(1.0, 2.0, 3.0, 4.0), normalizesafe(double4(7.45e-155, 7.45e-155, 7.45e-155, 7.45e-155), double4(1.0, 2.0, 3.0, 4.0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void normalizesafe_quaternion() { TestUtils.AreEqual(quaternion(0.234727f, -0.401308f, 0.196868f, 0.863191f), normalizesafe(quaternion(3.1f, -5.3f, 2.6f, 11.4f)), 0.0001f); @@ -675,7 +675,7 @@ public static void normalizesafe_quaternion() TestUtils.AreEqual(quaternion(1.0f, 2.0f, 3.0f, 4.0f), normalizesafe(quaternion(5.42e-20f, 5.42e-20f, 5.42e-20f, 5.42e-20f), quaternion(1.0f, 2.0f, 3.0f, 4.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void f16tof32_float() { TestUtils.AreEqual(0x00000000, asuint(f16tof32(0x0000))); @@ -693,7 +693,7 @@ public static void f16tof32_float() TestUtils.AreEqual(true, isnan(f16tof32(0xFC01))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void f16tof32_float2() { TestUtils.AreEqual(uint2(0x00000000, 0x3800C000), asuint(f16tof32(uint2(0x0000, 0x0203)))); @@ -707,7 +707,7 @@ public static void f16tof32_float2() TestUtils.AreEqual(true, all(isnan(f16tof32(uint2(0xFC01, 0xFC01))))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void f16tof32_float3() { TestUtils.AreEqual(uint3(0x00000000, 0x3800C000, 0x40642000), asuint(f16tof32(uint3(0x0000, 0x0203, 0x4321)))); @@ -719,7 +719,7 @@ public static void f16tof32_float3() TestUtils.AreEqual(true, all(isnan(f16tof32(uint3(0xFC01, 0xFC01, 0xFC01))))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void f16tof32_float4() { TestUtils.AreEqual(uint4(0x00000000, 0x3800C000, 0x40642000, 0x477FE000), asuint(f16tof32(uint4(0x0000, 0x0203, 0x4321, 0x7BFF)))); @@ -731,7 +731,7 @@ public static void f16tof32_float4() TestUtils.AreEqual(true, all(isnan(f16tof32(uint4(0xFC01, 0xFC01, 0xFC01, 0xFC01))))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void f32tof16_float() { TestUtils.AreEqual(0x0000, f32tof16(0.0f)); @@ -751,14 +751,14 @@ public static void f32tof16_float() TestUtils.AreEqual(0xFC00, f32tof16(float.NegativeInfinity)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void f32tof16_float_signed_zero() { TestUtils.AreEqual(0x8000, f32tof16(TestUtils.SignedFloatZero())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void f32tof16_float2() { TestUtils.AreEqual(uint2(0x0000, 0x0000), f32tof16(float2(0.0f, 2.98e-08f))); @@ -772,14 +772,14 @@ public static void f32tof16_float2() TestUtils.AreEqual(uint2(0xFC00, 0x0000), f32tof16(float2(float.NegativeInfinity, 0.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void f32tof16_float2_signed_zero() { TestUtils.AreEqual(uint2(0x8000, 0x8000), f32tof16(float2(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void f32tof16_float3() { TestUtils.AreEqual(uint3(0x0000, 0x0000, 0x0001), f32tof16(float3(0.0f, 2.98e-08f, 5.96046448e-08f))); @@ -790,14 +790,14 @@ public static void f32tof16_float3() TestUtils.AreEqual(uint3(0xFC00, 0xFC00, 0x0000), f32tof16(float3(-65520.0f, float.NegativeInfinity, 0.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void f32tof16_float3_signed_zero() { TestUtils.AreEqual(uint3(0x8000, 0x8000, 0x8000), f32tof16(float3(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void f32tof16_float4() { TestUtils.AreEqual(uint4(0x0000, 0x0000, 0x0001, 0x57B6), f32tof16(float4(0.0f, 2.98e-08f, 5.96046448e-08f, 123.4f))); @@ -806,14 +806,14 @@ public static void f32tof16_float4() TestUtils.AreEqual(uint4(0xFC00, 0xFC00, 0xFC00, 0x0000), f32tof16(float4(-65520.0f, float.NegativeInfinity, float.NegativeInfinity, 0.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void f32tof16_float4_signed_zero() { TestUtils.AreEqual(uint4(0x8000, 0x8000, 0x8000, 0x8000), f32tof16(float4(TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero(), TestUtils.SignedFloatZero()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reflect_float2() { TestUtils.AreEqual(float2(9.84f, -3.888f), reflect(float2(1.2f, 3.6f), float2(1.5f, -1.3f)), 8, false); @@ -822,7 +822,7 @@ public static void reflect_float2() TestUtils.AreEqual(float2(0.0f, 0.0f), reflect(float2(0.0f, 0.0f), float2(-1.5f, -1.3f)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reflect_float3() { TestUtils.AreEqual(float3(35.88f, -26.456f, 68.872f), reflect(float3(1.2f, 3.6f, -2.8f), float3(1.5f, -1.3f, 3.1f)), 8, false); @@ -831,7 +831,7 @@ public static void reflect_float3() TestUtils.AreEqual(float3(0.0f, 0.0f, 0.0f), reflect(float3(0.0f, 0.0f, 0.0f), float3(-1.5f, -1.3f, 3.1f)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reflect_float4() { TestUtils.AreEqual(float4(36.51f, -27.002f, 70.174f, -16.178f), reflect(float4(1.2f, 3.6f, -2.8f, 0.3f), float4(1.5f, -1.3f, 3.1f, -0.7f)), 8, false); @@ -841,7 +841,7 @@ public static void reflect_float4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reflect_double2() { TestUtils.AreEqual(double2(9.84, -3.888), reflect(double2(1.2, 3.6), double2(1.5, -1.3)), 8, false); @@ -850,7 +850,7 @@ public static void reflect_double2() TestUtils.AreEqual(double2(0.0, 0.0), reflect(double2(0.0, 0.0), double2(-1.5, -1.3)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reflect_double3() { TestUtils.AreEqual(double3(35.88, -26.456, 68.872), reflect(double3(1.2, 3.6, -2.8), double3(1.5, -1.3, 3.1)), 8, false); @@ -859,7 +859,7 @@ public static void reflect_double3() TestUtils.AreEqual(double3(0.0, 0.0, 0.0), reflect(double3(0.0, 0.0, 0.0), double3(-1.5f, -1.3, 3.1)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void reflect_double4() { TestUtils.AreEqual(double4(36.51, -27.002, 70.174, -16.178), reflect(double4(1.2, 3.6, -2.8, 0.3), double4(1.5, -1.3, 3.1, -0.7)), 8, false); @@ -869,7 +869,7 @@ public static void reflect_double4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void refract_float2() { TestUtils.AreEqual(float2(-0.3676186f, 0.9299768f), refract(float2(0.316228f, 0.948683f), float2(0.755689f, -0.654931f), 0.5f), 8, false); @@ -877,7 +877,7 @@ public static void refract_float2() TestUtils.AreEqual(float2(0.0f, 0.0f), refract(float2(0.316228f, 0.948683f), float2(0.755689f, -0.654931f), 1.5f)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void refract_float3() { TestUtils.AreEqual(float3(-0.2863437f, 0.8056898f, -0.5185286f), refract(float3(0.288375f, 0.865125f, -0.410365f), float3(0.662147f, -0.573861f, 0.481919f), 0.5f), 8, false); @@ -885,7 +885,7 @@ public static void refract_float3() TestUtils.AreEqual(float3(0.0f, 0.0f, 0.0f), refract(float3(0.288375f, 0.865125f, -0.410365f), float3(0.662147f, -0.573861f, 0.481919f), 1.5f)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void refract_float4() { TestUtils.AreEqual(float4(-0.302029191645545f, 0.799522577847971f, -0.518952508802814f, -0.015196476378571f), refract(float4(0.278154f, 0.834461f, -0.39582f, -0.26388f), float4(0.652208f, -0.565247f, 0.474685f, -0.1726139f), 0.5f), 16, false); @@ -894,7 +894,7 @@ public static void refract_float4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void refract_double2() { TestUtils.AreEqual(double2(-0.367618540673032, 0.929976739623085), refract(double2(0.316228, 0.948683), double2(0.755689, -0.654931), 0.5), 8, false); @@ -902,7 +902,7 @@ public static void refract_double2() TestUtils.AreEqual(double2(0.0, 0.0), refract(double2(0.316228, 0.948683), double2(0.755689, -0.654931), 1.5)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void refract_double3() { TestUtils.AreEqual(double3(-0.286343746291412, 0.805689753507206, -0.518528611485079), refract(double3(0.288375, 0.865125, -0.410365), double3(0.662147, -0.573861, 0.481919), 0.5), 8, false); @@ -910,7 +910,7 @@ public static void refract_double3() TestUtils.AreEqual(double3(0.0, 0.0, 0.0), refract(double3(0.288375, 0.865125, -0.410365), double3(0.662147, -0.573861, 0.481919), 1.5)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void refract_double4() { TestUtils.AreEqual(double4(-0.302029191645545, 0.799522577847971, -0.518952508802814, -0.015196476378571), refract(double4(0.278154, 0.834461, -0.39582, -0.26388), double4(0.652208, -0.565247, 0.474685, -0.1726139), 0.5), 16, false); @@ -918,7 +918,7 @@ public static void refract_double4() TestUtils.AreEqual(double4(0.0, 0.0, 0.0, 0.0), refract(double4(0.278154, 0.834461, -0.39582, -0.26388), double4(0.652208, -0.565247, 0.474685, -0.172613), 1.5)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void project_float2() { var a = float2(-0.161021441221237182617f, 0.429202795028686523438f); @@ -927,7 +927,7 @@ public static void project_float2() TestUtils.AreEqual(float2(1.0f, 0.0f), project(float2(1.0f), float2(1.0f, 0.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void project_float3() { var a = float3(0.394884318113327026367f, 0.148208647966384887695f, -0.264224529266357421875f); @@ -936,7 +936,7 @@ public static void project_float3() TestUtils.AreEqual(float3(1.0f, 0.0f, 0.0f), project(float3(1.0f), float3(1.0f, 0.0f, 0.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void project_float4() { var a = float4(0.122686818242073059082f, 0.465182095766067504883f, -0.388583064079284667969f, -0.15201015770435333252f); @@ -945,7 +945,7 @@ public static void project_float4() TestUtils.AreEqual(float4(1.0f, 0.0f, 0.0f, 0.0f), project(float4(1.0f), float4(1.0f, 0.0f, 0.0f, 0.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void projectsafe_float2() { var a = float2(-0.161021441221237182617f, 0.429202795028686523438f); @@ -957,7 +957,7 @@ public static void projectsafe_float2() TestUtils.AreEqual(float2(4.0f), projectsafe(float2(NAN), float2(0.0f), float2(4.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void projectsafe_float3() { var a = float3(0.394884318113327026367f, 0.148208647966384887695f, -0.264224529266357421875f); @@ -969,7 +969,7 @@ public static void projectsafe_float3() TestUtils.AreEqual(float3(4.0f), projectsafe(float3(NAN), float3(0.0f), float3(4.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void projectsafe_float4() { var a = float4(0.122686818242073059082f, 0.465182095766067504883f, -0.388583064079284667969f, -0.15201015770435333252f); @@ -981,7 +981,7 @@ public static void projectsafe_float4() TestUtils.AreEqual(float4(4.0f), projectsafe(float4(NAN), float4(0.0f), float4(4.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void project_double2() { var a = double2(-0.435219509355847911092, -0.359623376546357509387); @@ -991,7 +991,7 @@ public static void project_double2() TestUtils.AreEqual(double2.zero, projectsafe(a, double2(DBL_MIN_NORMAL))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void project_double3() { var a = double3(-0.3102470377532390855, -0.255432695780735075086, -0.180834679740036918805); @@ -1001,7 +1001,7 @@ public static void project_double3() TestUtils.AreEqual(double3.zero, projectsafe(a, double3(DBL_MIN_NORMAL))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void project_double4() { var a = double4(0.452051837682779789063, -0.0365627422588526429514, 0.236716008642456676725, 0.397823192622046239997); @@ -1011,7 +1011,7 @@ public static void project_double4() TestUtils.AreEqual(double4.zero, projectsafe(a, double4(DBL_MIN_NORMAL))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void projectsafe_double2() { var a = double2(-0.435219509355847911092, -0.359623376546357509387); @@ -1023,7 +1023,7 @@ public static void projectsafe_double2() TestUtils.AreEqual(double2(4.0), projectsafe(double2(NAN_DBL), double2(0.0), double2(4.0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void projectsafe_double3() { var a = double3(-0.3102470377532390855, -0.255432695780735075086, -0.180834679740036918805); @@ -1035,7 +1035,7 @@ public static void projectsafe_double3() TestUtils.AreEqual(double3(4.0), projectsafe(double3(NAN_DBL), double3(0.0), double3(4.0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void projectsafe_double4() { var a = double4(0.452051837682779789063, -0.0365627422588526429514, 0.236716008642456676725, 0.397823192622046239997); @@ -1047,7 +1047,7 @@ public static void projectsafe_double4() TestUtils.AreEqual(double4(4.0), projectsafe(double4(NAN_DBL), double4(0.0), double4(4.0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sincos_float() { float s, c; @@ -1086,7 +1086,7 @@ public static void sincos_float() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sincos_float2() { float2 s, c; @@ -1108,7 +1108,7 @@ public static void sincos_float2() TestUtils.AreEqual(float2(float.NaN, float.NaN), c, 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sincos_float3() { float3 s, c; @@ -1126,7 +1126,7 @@ public static void sincos_float3() TestUtils.AreEqual(float3(float.NaN, float.NaN, float.NaN), c, 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sincos_float4() { float4 s, c; @@ -1140,7 +1140,7 @@ public static void sincos_float4() TestUtils.AreEqual(float4(0.936752141f, float.NaN, float.NaN, float.NaN), c, 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sincos_double() { double s, c; @@ -1177,7 +1177,7 @@ public static void sincos_double() TestUtils.AreEqual(double.NaN, c, 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sincos_double2() { double2 s, c; @@ -1198,7 +1198,7 @@ public static void sincos_double2() TestUtils.AreEqual(double2(double.NaN, double.NaN), c, 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sincos_double3() { double3 s, c; @@ -1216,7 +1216,7 @@ public static void sincos_double3() TestUtils.AreEqual(double3(double.NaN, double.NaN, double.NaN), c, 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sincos_double4() { double4 s, c; @@ -1230,14 +1230,14 @@ public static void sincos_double4() TestUtils.AreEqual(double4(0.93675212753314474, double.NaN, double.NaN, double.NaN), c, 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_int() { TestUtils.AreEqual(-123456789, select(-123456789, 987654321, false)); TestUtils.AreEqual(987654321, select(-123456789, 987654321, true)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_int2() { TestUtils.AreEqual(int2(-123456789, -123456790), select(int2(-123456789, -123456790), int2(987654321, 987654322), false)); @@ -1249,7 +1249,7 @@ public static void select_int2() TestUtils.AreEqual(int2(987654321, 987654322), select(int2(-123456789, -123456790), int2(987654321, 987654322), bool2(true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_int3() { TestUtils.AreEqual(int3(-123456789, -123456790, -123456791), select(int3(-123456789, -123456790, -123456791), int3(987654321, 987654322, 987654323), false)); @@ -1266,7 +1266,7 @@ public static void select_int3() TestUtils.AreEqual(int3(987654321, 987654322, 987654323), select(int3(-123456789, -123456790, -123456791), int3(987654321, 987654322, 987654323), bool3(true, true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_int4() { TestUtils.AreEqual(int4(-123456789, -123456790, -123456791, -123456792), select(int4(-123456789, -123456790, -123456791, -123456792), int4(987654321, 987654322, 987654323, 987654324), false)); @@ -1293,14 +1293,14 @@ public static void select_int4() TestUtils.AreEqual(int4(987654321, 987654322, 987654323, 987654324), select(int4(-123456789, -123456790, -123456791, -123456792), int4(987654321, 987654322, 987654323, 987654324), bool4(true, true, true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_uint() { TestUtils.AreEqual(123456789u, select(123456789u, 987654321u, false)); TestUtils.AreEqual(987654321u, select(123456789u, 987654321u, true)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_uint2() { TestUtils.AreEqual(uint2(123456789u, 123456790u), select(uint2(123456789u, 123456790u), uint2(987654321u, 987654322u), false)); @@ -1312,7 +1312,7 @@ public static void select_uint2() TestUtils.AreEqual(uint2(987654321u, 987654322u), select(uint2(123456789u, 123456790u), uint2(987654321u, 987654322u), bool2(true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_uint3() { TestUtils.AreEqual(uint3(123456789u, 123456790u, 123456791u), select(uint3(123456789u, 123456790u, 123456791u), uint3(987654321u, 987654322u, 987654323u), false)); @@ -1329,7 +1329,7 @@ public static void select_uint3() TestUtils.AreEqual(uint3(987654321u, 987654322u, 987654323u), select(uint3(123456789u, 123456790u, 123456791u), uint3(987654321u, 987654322u, 987654323u), bool3(true, true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_uint4() { TestUtils.AreEqual(uint4(123456789u, 123456790u, 123456791u, 123456792u), select(uint4(123456789u, 123456790u, 123456791u, 123456792u), uint4(987654321u, 987654322u, 987654323u, 987654324u), false)); @@ -1356,14 +1356,14 @@ public static void select_uint4() TestUtils.AreEqual(uint4(987654321u, 987654322u, 987654323u, 987654324u), select(uint4(123456789u, 123456790u, 123456791u, 123456792u), uint4(987654321u, 987654322u, 987654323u, 987654324u), bool4(true, true, true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_long() { TestUtils.AreEqual(-12345678910111314L, select(-12345678910111314L, 987654321011121314L, false)); TestUtils.AreEqual(987654321011121314L, select(-12345678910111314L, 987654321011121314L, true)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_ulong() { TestUtils.AreEqual(12345678910111314UL, select(12345678910111314UL, 987654321011121314UL, false)); @@ -1371,14 +1371,14 @@ public static void select_ulong() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_float() { TestUtils.AreEqual(-1234.5f, select(-1234.5f, 9876.25f, false)); TestUtils.AreEqual(9876.25f, select(-1234.5f, 9876.25f, true)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_float2() { TestUtils.AreEqual(float2(-1234.5f, -1235.5f), select(float2(-1234.5f, -1235.5f), float2(9876.25f, 9877.25f), false)); @@ -1390,7 +1390,7 @@ public static void select_float2() TestUtils.AreEqual(float2(9876.25f, 9877.25f), select(float2(-1234.5f, -1235.5f), float2(9876.25f, 9877.25f), bool2(true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_float3() { TestUtils.AreEqual(float3(-1234.5f, -1235.5f, -1236.5f), select(float3(-1234.5f, -1235.5f, -1236.5f), float3(9876.25f, 9877.25f, 9878.25f), false)); @@ -1407,7 +1407,7 @@ public static void select_float3() TestUtils.AreEqual(float3(9876.25f, 9877.25f, 9878.25f), select(float3(-1234.5f, -1235.5f, -1236.5f), float3(9876.25f, 9877.25f, 9878.25f), bool3(true, true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_float4() { TestUtils.AreEqual(float4(-1234.5f, -1235.5f, -1236.5f, -1237.5f), select(float4(-1234.5f, -1235.5f, -1236.5f, -1237.5f), float4(9876.25f, 9877.25f, 9878.25f, 9879.25f), false)); @@ -1435,14 +1435,14 @@ public static void select_float4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_double() { TestUtils.AreEqual(-1234.5, select(-1234.5, 9876.25, false)); TestUtils.AreEqual(9876.25, select(-1234.5, 9876.25, true)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_double2() { TestUtils.AreEqual(double2(-1234.5, -1235.5), select(double2(-1234.5, -1235.5), double2(9876.25, 9877.25), false)); @@ -1454,7 +1454,7 @@ public static void select_double2() TestUtils.AreEqual(double2(9876.25, 9877.25), select(double2(-1234.5, -1235.5), double2(9876.25, 9877.25), bool2(true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_double3() { TestUtils.AreEqual(double3(-1234.5, -1235.5, -1236.5), select(double3(-1234.5, -1235.5, -1236.5), double3(9876.25, 9877.25, 9878.25), false)); @@ -1471,7 +1471,7 @@ public static void select_double3() TestUtils.AreEqual(double3(9876.25, 9877.25, 9878.25), select(double3(-1234.5, -1235.5, -1236.5), double3(9876.25, 9877.25, 9878.25), bool3(true, true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void select_double4() { TestUtils.AreEqual(double4(-1234.5, -1235.5, -1236.5, -1237.5), select(double4(-1234.5, -1235.5, -1236.5, -1237.5), double4(9876.25, 9877.25, 9878.25, 9879.25), false)); @@ -1499,7 +1499,7 @@ public static void select_double4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_int() { TestUtils.AreEqual(133, dot(7, 19)); @@ -1508,7 +1508,7 @@ public static void dot_int() TestUtils.AreEqual(667585376, dot(61031, 81312)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_int2() { TestUtils.AreEqual(322, dot(int2(7, 9), int2(19, 21))); @@ -1517,7 +1517,7 @@ public static void dot_int2() TestUtils.AreEqual(1840235232, dot(int2(61031, -12534), int2(-41312, -5312))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_int3() { TestUtils.AreEqual(582, dot(int3(7, 9, 13), int3(19, 21, 20))); @@ -1526,7 +1526,7 @@ public static void dot_int3() TestUtils.AreEqual(1636460279, dot(int3(61031, -12534, 9211), int3(-41312, -5312, -22123))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_int4() { TestUtils.AreEqual(990, dot(int4(7, 9, 13, 17), int4(19, 21, 20, 24))); @@ -1536,28 +1536,28 @@ public static void dot_int4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_uint() { TestUtils.AreEqual(133u, dot(7u, 19u)); TestUtils.AreEqual(667585376u, dot(61031u, 81312u)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_uint2() { TestUtils.AreEqual(322, dot(uint2(7u, 9u), uint2(19u, 21u))); TestUtils.AreEqual(734165984u, dot(uint2(61031u, 12534u), uint2(81312u, 5312u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_uint3() { TestUtils.AreEqual(582u, dot(uint3(7u, 9u, 13u), uint3(19u, 21u, 20u))); TestUtils.AreEqual(937940937u, dot(uint3(61031u, 12534u, 9211u), uint3(81312u, 5312u, 22123u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_uint4() { TestUtils.AreEqual(990u, dot(uint4(7u, 9u, 13u, 17u), uint4(19u, 21u, 20u, 24u))); @@ -1565,7 +1565,7 @@ public static void dot_uint4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_float() { TestUtils.AreEqual(7.32f, dot(1.2f, 6.1f), 1, false); @@ -1576,7 +1576,7 @@ public static void dot_float() TestUtils.AreEqual(float.NegativeInfinity, dot(1.2e19f, -6.1e19f), 0, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_float2() { TestUtils.AreEqual(57.92f, dot(float2(1.2f, 5.5f), float2(6.1f, 9.2f)), 1, false); @@ -1587,7 +1587,7 @@ public static void dot_float2() TestUtils.AreEqual(float.NegativeInfinity, dot(float2(-1.2e18f, 5.5e18f), float2(6.1e19f, -9.2e19f)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_float3() { TestUtils.AreEqual(67.1f, dot(float3(1.2f, 5.5f, 3.4f), float3(6.1f, 9.2f, 2.7f)), 8, false); @@ -1598,7 +1598,7 @@ public static void dot_float3() TestUtils.AreEqual(float.NegativeInfinity, dot(float3(-1.2e18f, 5.5e18f, 3.4e18f), float3(6.1e19f, -9.2e19f, -2.7e19f)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_float4() { TestUtils.AreEqual(68.57f, dot(float4(1.2f, 5.5f, 3.4f, 4.9f), float4(6.1f, 9.2f, 2.7f, 0.3f)), 8, false); @@ -1620,7 +1620,7 @@ public static void dot_double() TestUtils.AreEqual(double.NegativeInfinity, dot(1.2e19, -6.1e19), 0, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_double2() { TestUtils.AreEqual(57.92, dot(double2(1.2, 5.5), double2(6.1, 9.2)), 1, false); @@ -1631,7 +1631,7 @@ public static void dot_double2() TestUtils.AreEqual(double.NegativeInfinity, dot(double2(-1.2e153, 5.5e153), double2(6.1e154, -9.2e154)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_double3() { TestUtils.AreEqual(67.1, dot(double3(1.2, 5.5, 3.4), double3(6.1, 9.2, 2.7)), 8, false); @@ -1642,7 +1642,7 @@ public static void dot_double3() TestUtils.AreEqual(double.NegativeInfinity, dot(double3(-1.2e153, 5.5e153, 3.4e153), double3(6.1e154, -9.2e154, -2.7e154)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void dot_double4() { TestUtils.AreEqual(68.57, dot(double4(1.2, 5.5, 3.4, 4.9), double4(6.1, 9.2, 2.7, 0.3)), 8, false); @@ -1653,7 +1653,7 @@ public static void dot_double4() TestUtils.AreEqual(double.NegativeInfinity, dot(double4(-1.2e153, 5.5e153, 3.4e153, -4.9e153), double4(6.1e154, -9.2e154, -2.7e154, 3e153)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmin_int2() { TestUtils.AreEqual(100, cmin(int2(100, 200))); @@ -1664,7 +1664,7 @@ public static void cmin_int2() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmin_int3() { TestUtils.AreEqual(100, cmin(int3(100, 200, 300))); @@ -1675,7 +1675,7 @@ public static void cmin_int3() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmin_int4() { TestUtils.AreEqual(100, cmin(int4(100, 200, 300, 400))); @@ -1685,7 +1685,7 @@ public static void cmin_int4() TestUtils.AreEqual(int.MinValue, cmin(int4(int.MaxValue, int.MinValue, 0, 19))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmin_uint2() { TestUtils.AreEqual(100u, cmin(uint2(100u, 200u))); @@ -1694,7 +1694,7 @@ public static void cmin_uint2() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmin_uint3() { TestUtils.AreEqual(100u, cmin(uint3(100u, 200u, 300u))); @@ -1703,7 +1703,7 @@ public static void cmin_uint3() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmin_uint4() { TestUtils.AreEqual(100u, cmin(uint4(100u, 200u, 300u, 400u))); @@ -1711,7 +1711,7 @@ public static void cmin_uint4() TestUtils.AreEqual(uint.MinValue, cmin(uint4(19u, uint.MinValue, uint.MaxValue, 7u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmin_float2() { TestUtils.AreEqual(-0.5f, cmin(float2(5.2f, -0.5f))); @@ -1730,7 +1730,7 @@ public static void cmin_float2() TestUtils.AreEqual(float.NegativeInfinity, cmin(float2(float.NaN, float.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmin_float3() { TestUtils.AreEqual(-1.2f, cmin(float3(5.2f, -0.5f, -1.2f))); @@ -1750,7 +1750,7 @@ public static void cmin_float3() TestUtils.AreEqual(float.NegativeInfinity, cmin(float3(float.NaN, float.NaN, float.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmin_float4() { TestUtils.AreEqual(-1.2f, cmin(float4(5.2f, -0.5f, -1.2f, 2.3f))); @@ -1773,7 +1773,7 @@ public static void cmin_float4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmin_double2() { TestUtils.AreEqual(-0.5, cmin(double2(5.2, -0.5))); @@ -1793,7 +1793,7 @@ public static void cmin_double2() TestUtils.AreEqual(double.NegativeInfinity, cmin(double2(double.NaN, double.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmin_double3() { TestUtils.AreEqual(-1.2, cmin(double3(5.2, -0.5, -1.2))); @@ -1814,7 +1814,7 @@ public static void cmin_double3() TestUtils.AreEqual(double.NegativeInfinity, cmin(double3(double.NaN, double.NaN, double.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmin_double4() { TestUtils.AreEqual(-1.2, cmin(double4(5.2, -0.5, -1.2, 2.3))); @@ -1839,7 +1839,7 @@ public static void cmin_double4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmax_int2() { TestUtils.AreEqual(200, cmax(int2(100, 200))); @@ -1850,7 +1850,7 @@ public static void cmax_int2() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmax_int3() { TestUtils.AreEqual(300, cmax(int3(100, 200, 300))); @@ -1861,7 +1861,7 @@ public static void cmax_int3() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmax_int4() { TestUtils.AreEqual(400, cmax(int4(100, 200, 300, 400))); @@ -1871,7 +1871,7 @@ public static void cmax_int4() TestUtils.AreEqual(int.MaxValue, cmax(int4(int.MaxValue, int.MinValue, 0, 19))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmax_uint2() { TestUtils.AreEqual(200u, cmax(uint2(100u, 200u))); @@ -1880,7 +1880,7 @@ public static void cmax_uint2() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmax_uint3() { TestUtils.AreEqual(300u, cmax(uint3(100u, 200u, 300u))); @@ -1889,7 +1889,7 @@ public static void cmax_uint3() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmax_uint4() { TestUtils.AreEqual(400u, cmax(uint4(100u, 200u, 300u, 400u))); @@ -1897,7 +1897,7 @@ public static void cmax_uint4() TestUtils.AreEqual(uint.MaxValue, cmax(uint4(19u, uint.MinValue, uint.MaxValue, 7u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmax_float2() { TestUtils.AreEqual(5.2f, cmax(float2(5.2f, -0.5f))); @@ -1916,7 +1916,7 @@ public static void cmax_float2() TestUtils.AreEqual(float.NegativeInfinity, cmax(float2(float.NaN, float.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmax_float3() { TestUtils.AreEqual(5.2f, cmax(float3(5.2f, -0.5f, -1.2f))); @@ -1936,7 +1936,7 @@ public static void cmax_float3() TestUtils.AreEqual(float.NegativeInfinity, cmax(float3(float.NaN, float.NaN, float.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmax_float4() { TestUtils.AreEqual(5.2f, cmax(float4(5.2f, -0.5f, -1.2f, 2.3f))); @@ -1959,7 +1959,7 @@ public static void cmax_float4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmax_double2() { TestUtils.AreEqual(5.2, cmax(double2(5.2, -0.5))); @@ -1979,7 +1979,7 @@ public static void cmax_double2() TestUtils.AreEqual(double.NegativeInfinity, cmax(double2(double.NaN, double.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmax_double3() { TestUtils.AreEqual(5.2, cmax(double3(5.2, -0.5, -1.2))); @@ -2000,7 +2000,7 @@ public static void cmax_double3() TestUtils.AreEqual(double.NegativeInfinity, cmax(double3(double.NaN, double.NaN, double.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cmax_double4() { TestUtils.AreEqual(5.2, cmax(double4(5.2, -0.5, -1.2, 2.3))); @@ -2024,7 +2024,7 @@ public static void cmax_double4() TestUtils.AreEqual(double.NegativeInfinity, cmax(double4(double.NaN, double.NaN, double.NaN, double.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void csum_int2() { TestUtils.AreEqual(300, csum(int2(100, 200))); @@ -2035,7 +2035,7 @@ public static void csum_int2() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void csum_int3() { TestUtils.AreEqual(600, csum(int3(100, 200, 300))); @@ -2046,7 +2046,7 @@ public static void csum_int3() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void csum_int4() { TestUtils.AreEqual(1000, csum(int4(100, 200, 300, 400))); @@ -2056,7 +2056,7 @@ public static void csum_int4() TestUtils.AreEqual(-1, csum(int4(int.MaxValue, int.MinValue, 0, 0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void csum_uint2() { TestUtils.AreEqual(300u, csum(uint2(100u, 200u))); @@ -2064,7 +2064,7 @@ public static void csum_uint2() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void csum_uint3() { TestUtils.AreEqual(600u, csum(uint3(100u, 200u, 300u))); @@ -2072,14 +2072,14 @@ public static void csum_uint3() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void csum_uint4() { TestUtils.AreEqual(1000u, csum(uint4(100u, 200u, 300u, 400u))); TestUtils.AreEqual(36u, csum(uint4(uint.MaxValue, 7u, 11u, 19u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void csum_float2() { TestUtils.AreEqual(0.7f, csum(float2(2.2f, -1.5f)), 4, false); @@ -2102,7 +2102,7 @@ public static void csum_float2() TestUtils.AreEqual(float.NegativeInfinity, csum(float2(-1.0f, float.NegativeInfinity)), 0, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void csum_float3() { TestUtils.AreEqual(1.9f, csum(float3(2.2f, -1.5f, 1.2f)), 4, false); @@ -2126,7 +2126,7 @@ public static void csum_float3() TestUtils.AreEqual(float.NegativeInfinity, csum(float3(-2.0f, 1.0f, float.NegativeInfinity)), 0, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void csum_float4() { TestUtils.AreEqual(1.2f, csum(float4(2.2f, -1.5f, 1.2f, -0.7f)), 4, false); @@ -2153,7 +2153,7 @@ public static void csum_float4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void csum_double2() { TestUtils.AreEqual(0.7, csum(double2(2.2, -1.5)), 4, false); @@ -2176,7 +2176,7 @@ public static void csum_double2() TestUtils.AreEqual(double.NegativeInfinity, csum(double2(-1.0, double.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void csum_double3() { TestUtils.AreEqual(1.9, csum(double3(2.2, -1.5, 1.2)), 4, false); @@ -2200,7 +2200,7 @@ public static void csum_double3() TestUtils.AreEqual(double.NegativeInfinity, csum(double3(-2.0, 1.0, double.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void csum_double4() { TestUtils.AreEqual(1.2, csum(double4(2.2, -1.5, 1.2, -0.7)), 4, false); @@ -2227,7 +2227,7 @@ public static void csum_double4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_bool2() { TestUtils.AreEqual(false, any(bool2(false, false))); @@ -2236,7 +2236,7 @@ public static void any_bool2() TestUtils.AreEqual(true, any(bool2(true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_bool3() { TestUtils.AreEqual(false, any(bool3(false, false, false))); @@ -2250,7 +2250,7 @@ public static void any_bool3() TestUtils.AreEqual(true, any(bool3(true, true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_bool4() { TestUtils.AreEqual(false, any(bool4(false, false, false, false))); @@ -2274,7 +2274,7 @@ public static void any_bool4() TestUtils.AreEqual(true, any(bool4(true, true, true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_int2() { TestUtils.AreEqual(false, any(int2(0, 0))); @@ -2284,7 +2284,7 @@ public static void any_int2() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_int3() { TestUtils.AreEqual(false, any(int3(0, 0, 0))); @@ -2298,7 +2298,7 @@ public static void any_int3() TestUtils.AreEqual(true, any(int3(-121, 100, 322))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_int4() { TestUtils.AreEqual(false, any(int4(0, 0, 0, 0))); @@ -2323,7 +2323,7 @@ public static void any_int4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_uint2() { TestUtils.AreEqual(false, any(uint2(0u, 0u))); @@ -2333,7 +2333,7 @@ public static void any_uint2() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_uint3() { TestUtils.AreEqual(false, any(uint3(0u, 0u, 0u))); @@ -2347,7 +2347,7 @@ public static void any_uint3() TestUtils.AreEqual(true, any(uint3(121u, 100u, 322u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_uint4() { TestUtils.AreEqual(false, any(uint4(0u, 0u, 0u, 0u))); @@ -2372,7 +2372,7 @@ public static void any_uint4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_float2() { //TestUtils.AreEqual(true, any(float2(0, float.NaN))); // TODO: doesn't work with burst @@ -2384,7 +2384,7 @@ public static void any_float2() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_float3() { //TestUtils.AreEqual(true, any(float3(0.0f, float.NaN, 0.0f))); // TODO: doesn't work with burst @@ -2400,7 +2400,7 @@ public static void any_float3() TestUtils.AreEqual(true, any(float3(121.2f, 100.0f, -32.2f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_float4() { TestUtils.AreEqual(false, any(float4(0.0f, 0.0f, 0.0f, 0.0f))); @@ -2424,7 +2424,7 @@ public static void any_float4() TestUtils.AreEqual(true, any(float4(55.0f, 66.0f, 5000.0f, 10000.2f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_double2() { //TestUtils.AreEqual(true, any(double2(0, double.NaN))); // TODO: doesn't work with burst. @@ -2436,7 +2436,7 @@ public static void any_double2() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_double3() { //TestUtils.AreEqual(true, any(double3(0.0, double.NaN, 0.0))); // TODO: doesn't work with burst @@ -2452,7 +2452,7 @@ public static void any_double3() TestUtils.AreEqual(true, any(double3(121.2, 100.0, -32.2))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void any_double4() { TestUtils.AreEqual(false, any(double4(0.0, 0.0, 0.0, 0.0))); @@ -2477,7 +2477,7 @@ public static void any_double4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_bool2() { TestUtils.AreEqual(false, all(bool2(false, false))); @@ -2486,7 +2486,7 @@ public static void all_bool2() TestUtils.AreEqual(true, all(bool2(true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_bool3() { TestUtils.AreEqual(false, all(bool3(false, false, false))); @@ -2500,7 +2500,7 @@ public static void all_bool3() TestUtils.AreEqual(true, all(bool3(true, true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_bool4() { TestUtils.AreEqual(false, all(bool4(false, false, false, false))); @@ -2524,7 +2524,7 @@ public static void all_bool4() TestUtils.AreEqual(true, all(bool4(true, true, true, true))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_int2() { TestUtils.AreEqual(false, all(int2(0, 0))); @@ -2533,7 +2533,7 @@ public static void all_int2() TestUtils.AreEqual(true, all(int2(2, int.MinValue))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_int3() { TestUtils.AreEqual(false, all(int3(0, 0, 0))); @@ -2547,7 +2547,7 @@ public static void all_int3() TestUtils.AreEqual(true, all(int3(-121, 100, 322))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_int4() { TestUtils.AreEqual(false, all(int4(0, 0, 0, 0))); @@ -2572,7 +2572,7 @@ public static void all_int4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_uint2() { TestUtils.AreEqual(false, all(uint2(0u, 0u))); @@ -2582,7 +2582,7 @@ public static void all_uint2() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_uint3() { TestUtils.AreEqual(false, all(uint3(0u, 0u, 0u))); @@ -2596,7 +2596,7 @@ public static void all_uint3() TestUtils.AreEqual(true, all(uint3(121u, 100u, 322u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_uint4() { TestUtils.AreEqual(false, all(uint4(0u, 0u, 0u, 0u))); @@ -2621,7 +2621,7 @@ public static void all_uint4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_float2() { TestUtils.AreEqual(true, all(float2(float.NaN, float.NaN))); @@ -2633,7 +2633,7 @@ public static void all_float2() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_float3() { TestUtils.AreEqual(true, all(float3(float.NaN, float.NaN, float.NaN))); @@ -2649,7 +2649,7 @@ public static void all_float3() TestUtils.AreEqual(true, all(float3(121.2f, 100.0f, -32.2f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_float4() { TestUtils.AreEqual(true, all(float4(float.NaN, float.NaN, float.NaN, float.NaN))); @@ -2675,7 +2675,7 @@ public static void all_float4() TestUtils.AreEqual(true, all(float4(55.0f, 66.0f, 5000.0f, 10000.2f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_double2() { TestUtils.AreEqual(true, all(double2(double.NaN, double.NaN))); @@ -2687,7 +2687,7 @@ public static void all_double2() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_double3() { TestUtils.AreEqual(true, all(double3(double.NaN, double.NaN, double.NaN))); @@ -2703,7 +2703,7 @@ public static void all_double3() TestUtils.AreEqual(true, all(double3(121.2, 100.0, -32.2))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void all_double4() { TestUtils.AreEqual(true, all(double4(double.NaN, double.NaN, double.NaN, double.NaN))); @@ -2730,7 +2730,7 @@ public static void all_double4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void length_float2() { TestUtils.AreEqual(0.0f, length(float2(0.0f, 0.0f)), 0, false); @@ -2743,7 +2743,7 @@ public static void length_float2() TestUtils.AreEqual(double.PositiveInfinity, length(float2(-1.2e19f, -2.6e19f)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void length_float3() { TestUtils.AreEqual(0.0f, length(float3(0.0f, 0.0f, 0.0f)), 0, false); @@ -2756,7 +2756,7 @@ public static void length_float3() TestUtils.AreEqual(float.PositiveInfinity, length(float3(-1.2e19f, -2.6e19f, 2.2e19f)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void length_float4() { TestUtils.AreEqual(0.0f, length(float4(0.0f, 0.0f, 0.0f, 0.0f)), 0, false); @@ -2770,7 +2770,7 @@ public static void length_float4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void length_double2() { TestUtils.AreEqual(0.0, length(double2(0.0, 0.0)), 0, false); @@ -2782,7 +2782,7 @@ public static void length_double2() TestUtils.AreEqual(2.86356421265527063e153, length(double2(-1.2e153, 2.6e153)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void length_double3() { TestUtils.AreEqual(0.0, length(double3(0.0, 0.0, 0.0)), 0, false); @@ -2794,7 +2794,7 @@ public static void length_double3() TestUtils.AreEqual(3.6110940170535577e153, length(double3(-1.2e153, 2.6e153, 2.2e153)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void length_double4() { TestUtils.AreEqual(0.0, length(double4(0.0, 0.0, 0.0, 0.0)), 0, false); @@ -2807,7 +2807,7 @@ public static void length_double4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lengthsq_float2() { TestUtils.AreEqual(0.0f, lengthsq(float2(0.0f, 0.0f)), 0, false); @@ -2819,7 +2819,7 @@ public static void lengthsq_float2() TestUtils.AreEqual(8.2e36f, lengthsq(float2(-1.2e18f, 2.6e18f)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lengthsq_float3() { TestUtils.AreEqual(0.0f, lengthsq(float3(0.0f, 0.0f, 0.0f)), 0, false); @@ -2832,7 +2832,7 @@ public static void lengthsq_float3() TestUtils.AreEqual(float.PositiveInfinity, lengthsq(float3(-1.2e19f, -2.6e19f, 2.2e19f)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lengthsq_float4() { TestUtils.AreEqual(0.0f, lengthsq(float4(0.0f, 0.0f, 0.0f, 0.0f)), 0, false); @@ -2846,7 +2846,7 @@ public static void lengthsq_float4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lengthsq_double2() { TestUtils.AreEqual(0.0, lengthsq(double2(0.0, 0.0)), 0, false); @@ -2859,7 +2859,7 @@ public static void lengthsq_double2() TestUtils.AreEqual(double.PositiveInfinity, lengthsq(double2(-1.2e154, -2.6e154)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lengthsq_double3() { TestUtils.AreEqual(0.0, lengthsq(double3(0.0, 0.0, 0.0)), 0, false); @@ -2872,7 +2872,7 @@ public static void lengthsq_double3() TestUtils.AreEqual(double.PositiveInfinity, lengthsq(double3(-1.2e154, -2.6e154, 2.2e154)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lengthsq_double4() { TestUtils.AreEqual(0.0, lengthsq(double4(0.0, 0.0, 0.0, 0.0)), 0, false); @@ -2888,7 +2888,7 @@ public static void lengthsq_double4() - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void distance_float2() { TestUtils.AreEqual(0.0f, distance(float2(1.3f, -2.4f), float2(1.3f, -2.4f)), 0, false); @@ -2902,7 +2902,7 @@ public static void distance_float2() TestUtils.AreEqual(float.PositiveInfinity, distance(float2(1.3f, float.NegativeInfinity), float2(-5.3f, 4.3f)), 0, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void distance_float3() { TestUtils.AreEqual(0.0f, distance(float2(1.3f, -2.4f), float2(1.3f, -2.4f)), 0, false); @@ -2916,7 +2916,7 @@ public static void distance_float3() TestUtils.AreEqual(float.PositiveInfinity, distance(float2(1.3f, float.NegativeInfinity), float2(-5.3f, 4.3f)), 0, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void distance_float4() { TestUtils.AreEqual(0.0, distance(float4(1.3f, -2.4f, 5.7f, 3.1f), float4(1.3f, -2.4f, 5.7f, 3.1f)), 0, false); @@ -2931,7 +2931,7 @@ public static void distance_float4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void distance_double2() { TestUtils.AreEqual(0.0, distance(double2(1.3, -2.4), double2(1.3, -2.4)), 0, false); @@ -2944,7 +2944,7 @@ public static void distance_double2() TestUtils.AreEqual(double.PositiveInfinity, distance(double2(1.3, -2.4), double2(-5.3, double.PositiveInfinity)), 0, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void distance_double3() { TestUtils.AreEqual(0.0, distance(double2(1.3, -2.4), double2(1.3, -2.4)), 0, false); @@ -2957,7 +2957,7 @@ public static void distance_double3() TestUtils.AreEqual(double.PositiveInfinity, distance(double2(1.3, -2.4), double2(-5.3, double.PositiveInfinity)), 0, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void distance_double4() { TestUtils.AreEqual(0.0, distance(double4(1.3, -2.4, 5.7, 3.1), double4(1.3, -2.4, 5.7, 3.1)), 0, false); @@ -2970,7 +2970,7 @@ public static void distance_double4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void distancesq_float2() { TestUtils.AreEqual(0.0f, distancesq(float2(1.3f, -2.4f), float2(1.3f, -2.4f)), 0, false); @@ -2982,7 +2982,7 @@ public static void distancesq_float2() TestUtils.AreEqual(float.PositiveInfinity, distancesq(float2(1.3f, -2.4f), float2(-5.3f, float.PositiveInfinity)), 0, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void distancesq_float3() { TestUtils.AreEqual(0.0f, distancesq(float3(1.3f, -2.4f, 5.7f), float3(1.3f, -2.4f, 5.7f)), 0, false); @@ -2995,7 +2995,7 @@ public static void distancesq_float3() TestUtils.AreEqual(float.PositiveInfinity, distancesq(float3(1.3f, -2.4f, 5.7f), float3(-5.3f, float.PositiveInfinity, 4.7f)), 0, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void distancesq_float4() { TestUtils.AreEqual(0.0f, distancesq(float4(1.3f, -2.4f, 5.7f, 3.1f), float4(1.3f, -2.4f, 5.7f, 3.1f)), 0, false); @@ -3008,7 +3008,7 @@ public static void distancesq_float4() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void distancesq_double2() { TestUtils.AreEqual(0.0, distancesq(double2(1.3, -2.4), double2(1.3, -2.4)), 0, false); @@ -3022,7 +3022,7 @@ public static void distancesq_double2() TestUtils.AreEqual(double.PositiveInfinity, distancesq(double2(1.3, double.NegativeInfinity), double2(-5.3, 4.3)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void distancesq_double3() { TestUtils.AreEqual(0.0, distancesq(double3(1.3, -2.4, 5.7), double3(1.3, -2.4, 5.7)), 0, false); @@ -3036,7 +3036,7 @@ public static void distancesq_double3() TestUtils.AreEqual(double.PositiveInfinity, distancesq(double3(1.3, double.NegativeInfinity, 5.7), double3(-5.3, 4.3, 4.7)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void distancesq_double4() { TestUtils.AreEqual(0.0, distancesq(double4(1.3, -2.4, 5.7, 3.1), double4(1.3, -2.4, 5.7, 3.1)), 0, false); @@ -3050,7 +3050,7 @@ public static void distancesq_double4() TestUtils.AreEqual(double.PositiveInfinity, distancesq(double4(1.3, double.NegativeInfinity, 5.7, 3.1), double4(-5.3, 4.3, 4.7, 0.3)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void epsilon_float() { float next = asfloat(asuint(1.0f) + 1); @@ -3059,7 +3059,7 @@ public static void epsilon_float() TestUtils.IsTrue(Single.Epsilon != EPSILON); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void epsilon_double() { double next = asdouble(aslong(1.0) + 1); @@ -3068,7 +3068,7 @@ public static void epsilon_double() TestUtils.IsTrue(Double.Epsilon != EPSILON_DBL); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void nan_float() { TestUtils.IsFalse(0.0f == NAN); @@ -3093,7 +3093,7 @@ public static void nan_float() TestUtils.IsTrue(nan1 != nan2); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void nan_double() { TestUtils.IsFalse(0.0 == NAN_DBL); @@ -3118,7 +3118,7 @@ public static void nan_double() TestUtils.IsTrue(nan1 != nan2); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void infinity_float() { TestUtils.IsTrue(-INFINITY != INFINITY); @@ -3126,7 +3126,7 @@ public static void infinity_float() TestUtils.IsFalse(isfinite(INFINITY)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void infinity_double() { TestUtils.IsTrue(-INFINITY_DBL != INFINITY_DBL); @@ -3134,7 +3134,7 @@ public static void infinity_double() TestUtils.IsFalse(isfinite(INFINITY_DBL)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void helper_axes() { TestUtils.AreEqual(float3(1.0f, 0.0f, 0.0f), right()); @@ -3145,7 +3145,7 @@ public static void helper_axes() TestUtils.AreEqual(float3(0.0f, 0.0f, -1.0f), back()); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_float_signed_zero() { @@ -3153,21 +3153,21 @@ public static void rcp_float_signed_zero() TestUtils.AreEqual(TestUtils.SignedFloatZero(), rcp(float.NegativeInfinity)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_float2_signed_zero() { TestUtils.AreEqual(float2(float.NegativeInfinity, TestUtils.SignedFloatZero()), rcp(float2(TestUtils.SignedFloatZero(), float.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_float3_signed_zero() { TestUtils.AreEqual(float3(float.NegativeInfinity, TestUtils.SignedFloatZero(), float.NegativeInfinity), rcp(float3(TestUtils.SignedFloatZero(), float.NegativeInfinity, TestUtils.SignedFloatZero()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_float4_signed_zero() { @@ -3175,7 +3175,7 @@ public static void rcp_float4_signed_zero() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_double_signed_zero() { @@ -3183,28 +3183,28 @@ public static void rcp_double_signed_zero() TestUtils.AreEqual(TestUtils.SignedDoubleZero(), rcp(double.NegativeInfinity)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_double2_signed_zero() { TestUtils.AreEqual(double2(double.NegativeInfinity, TestUtils.SignedDoubleZero()), rcp(double2(TestUtils.SignedDoubleZero(), double.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_double3_signed_zero() { TestUtils.AreEqual(double3(double.NegativeInfinity, TestUtils.SignedDoubleZero(), double.NegativeInfinity), rcp(double3(TestUtils.SignedDoubleZero(), double.NegativeInfinity, TestUtils.SignedDoubleZero()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] [WindowsOnly("Mono on linux ignores signed zero.")] public static void rcp_double4_signed_zero() { TestUtils.AreEqual(double4(double.NegativeInfinity, TestUtils.SignedDoubleZero(), double.NegativeInfinity, TestUtils.SignedDoubleZero()), rcp(double4(TestUtils.SignedDoubleZero(), double.NegativeInfinity, TestUtils.SignedDoubleZero(), double.NegativeInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] unsafe public static void compress_test() { int4 value = int4(0x12345678, 0x2468ACE0, 0x369BE147, 0x48C059D1); @@ -3250,7 +3250,7 @@ unsafe public static void compress_test() } } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] unsafe public static void compress_uint4_test() { uint4 value = uint4(0x12345678u, 0x2468ACE0u, 0x369BE147u, 0x48C059D1u); @@ -3296,7 +3296,7 @@ unsafe public static void compress_uint4_test() } } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] unsafe public static void compress_float4_test() { float4 value = float4(float.PositiveInfinity, EPSILON, PI, -0.25f); @@ -3342,7 +3342,7 @@ unsafe public static void compress_float4_test() } } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_float() { TestUtils.AreEqual(0.0f, math.square(0.0f)); @@ -3370,7 +3370,7 @@ public static void square_float() TestUtils.AreEqual(float.PositiveInfinity, math.square(-18446744073709551616.0f)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_float2() { TestUtils.AreEqual(new float2(0.0f), math.square(new float2(0.0f))); @@ -3401,7 +3401,7 @@ public static void square_float2() TestUtils.AreEqual(new float2(0.272176146507263183594f, 96307.6015625f), math.square(new float2(0.521705031394958496094f, -310.33465576171875f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_float3() { TestUtils.AreEqual(new float3(0.0f), math.square(new float3(0.0f))); @@ -3432,7 +3432,7 @@ public static void square_float3() TestUtils.AreEqual(new float3(0.272176146507263183594f, 96307.6015625f, 5591.6337890625f), math.square(new float3(0.521705031394958496094f, -310.33465576171875f, -74.77722930908203125f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_float4() { TestUtils.AreEqual(new float4(0.0f), math.square(new float4(0.0f))); @@ -3463,7 +3463,7 @@ public static void square_float4() TestUtils.AreEqual(new float4(0.272176146507263183594f, 96307.6015625f, 5591.6337890625f, 152764.28125f), math.square(new float4(0.521705031394958496094f, -310.33465576171875f, -74.77722930908203125f, 390.8507080078125f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_double() { TestUtils.AreEqual(0.0, math.square(0.0)); @@ -3491,7 +3491,7 @@ public static void square_double() TestUtils.AreEqual(double.PositiveInfinity, math.square(-1.34078079299425970996e+154)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_double2() { TestUtils.AreEqual(new double2(0.0), math.square(new double2(0.0))); @@ -3522,7 +3522,7 @@ public static void square_double2() TestUtils.AreEqual(new double2(0.272176139782814630053, 96307.5985667444765568), math.square(new double2(0.521705031394958496094, -310.33465576171875))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_double3() { TestUtils.AreEqual(new double3(0.0), math.square(new double3(0.0))); @@ -3553,7 +3553,7 @@ public static void square_double3() TestUtils.AreEqual(new double3(0.272176139782814630053, 96307.5985667444765568, 5591.63402314303675666), math.square(new double3(0.521705031394958496094, -310.33465576171875, -74.77722930908203125))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_double4() { TestUtils.AreEqual(new double4(0.0), math.square(new double4(0.0))); @@ -3584,7 +3584,7 @@ public static void square_double4() TestUtils.AreEqual(new double4(0.272176139782814630053, 96307.5985667444765568 /*96307.5985667444765568*/, 5591.63402314303675666 /*5591.6337890625*/, 152764.275950208306313 /*152764.28125*/), math.square(new double4(0.521705031394958496094, -310.33465576171875, -74.77722930908203125, 390.8507080078125))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_int() { TestUtils.AreEqual(0, math.square(0)); @@ -3612,7 +3612,7 @@ public static void square_int() TestUtils.AreEqual(0, math.square(-2147483648)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_int2() { TestUtils.AreEqual(new int2(0), math.square(new int2(0))); @@ -3643,7 +3643,7 @@ public static void square_int2() TestUtils.AreEqual(new int2(2121580241, -685235535), math.square(new int2(-831443639, 1415191751))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_int3() { TestUtils.AreEqual(new int3(0), math.square(new int3(0))); @@ -3674,7 +3674,7 @@ public static void square_int3() TestUtils.AreEqual(new int3(2121580241, -685235535, 468048505), math.square(new int3(-831443639, 1415191751, -178100469))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_int4() { TestUtils.AreEqual(new int4(0), math.square(new int4(0))); @@ -3705,7 +3705,7 @@ public static void square_int4() TestUtils.AreEqual(new int4(2121580241, -685235535, 468048505, -1902728316), math.square(new int4(-831443639, 1415191751, -178100469, 1331775970))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_uint() { TestUtils.AreEqual(0u, math.square(0u)); @@ -3723,7 +3723,7 @@ public static void square_uint() TestUtils.AreEqual(2356482048u, math.square(123456u)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_uint2() { TestUtils.AreEqual(new uint2(0u), math.square(new uint2(0u))); @@ -3744,7 +3744,7 @@ public static void square_uint2() TestUtils.AreEqual(new uint2(3982663844u, 503153673u), math.square(new uint2(779359642u, 2488899075u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_uint3() { TestUtils.AreEqual(new uint3(0u), math.square(new uint3(0u))); @@ -3765,7 +3765,7 @@ public static void square_uint3() TestUtils.AreEqual(new uint3(3982663844u, 503153673u, 4101817232u), math.square(new uint3(779359642u, 2488899075u, 407772844u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void square_uint4() { TestUtils.AreEqual(new uint4(0u), math.square(new uint4(0u))); @@ -3809,7 +3809,7 @@ static double OrthonormalBasisSquaredError(double3 v1, double3 v2, double3 v3) // "Building an Orthonormal Basis, Revisited" table 1. private const double kOrthonormalBasisSqErrorTolerance = 1.04e-7d; - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void orthonormal_basis_float() { var random = new Random(8189782u); @@ -3824,7 +3824,7 @@ public static void orthonormal_basis_float() } } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void orthonormal_basis_double() { var random = new Random(99917872u); @@ -3839,7 +3839,7 @@ public static void orthonormal_basis_double() } } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void chgsign_float() { float c = chgsign(1f, -1f); @@ -3901,7 +3901,7 @@ public static void chgsign_float() TestUtils.AreEqual(asuint(TestUtils.SignedFloatZero()), asuint(c)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void chgsign_float2() { float2 c = chgsign(float2(1f, -2f), float2(-1f, 23.548f)); @@ -3936,7 +3936,7 @@ public static void chgsign_float2() TestUtils.AreEqual(asuint(math.float2(TestUtils.SignedFloatZero())), asuint(c)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void chgsign_float3() { float3 c = chgsign(float3(1f, -2f, 3f), float3(-1f, 23.548f, -0f)); @@ -3971,7 +3971,7 @@ public static void chgsign_float3() TestUtils.AreEqual(asuint(math.float3(TestUtils.SignedFloatZero())), asuint(c)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void chgsign_float4() { float4 c = chgsign(float4(1f, 2f, 3f, -4f), float4(-1f, 0f, -0f, -23.56f)); @@ -4006,7 +4006,7 @@ public static void chgsign_float4() TestUtils.AreEqual(asuint(math.float4(TestUtils.SignedFloatZero())), asuint(c)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static unsafe void quaternion_to_euler() { const float epsilon = 0.0045f; @@ -4079,7 +4079,7 @@ static quaternion TestRefEulerToQuat(float3 angle, math.RotationOrder order) } } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mulScale() { var tolerance = 1e-5f; @@ -4101,7 +4101,7 @@ public static void mulScale() TestUtils.AreEqual(expected, actual, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void scaleMul() { var tolerance = 1e-5f; @@ -4123,7 +4123,7 @@ public static void scaleMul() TestUtils.AreEqual(expected, actual, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void piDoubleConstants() { var expectedPi = 3.141592653589793116; @@ -4133,7 +4133,7 @@ public static void piDoubleConstants() TestUtils.AreEqual(expectedPi * 2.0, TAU_DBL); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void piSingleConstants() { var expectedPi = 3.141592653589793116f; @@ -4143,7 +4143,7 @@ public static void piSingleConstants() TestUtils.AreEqual(expectedPi * 2.0f, TAU); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void toDegreesConstants() { TestUtils.AreEqual(360.0, PI2_DBL * TODEGREES_DBL); @@ -4157,7 +4157,7 @@ public static void toDegreesConstants() TestUtils.AreEqual(90.0f, PIHALF * TODEGREES); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void toRadiansConstants() { TestUtils.AreEqual(PI2_DBL, 360.0 * TORADIANS_DBL); @@ -4171,7 +4171,7 @@ public static void toRadiansConstants() TestUtils.AreEqual(PIHALF, 90.0f * TORADIANS); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void degreesConversionGivesSameResult() { int n = 360; @@ -4184,7 +4184,7 @@ public static void degreesConversionGivesSameResult() } } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void radiansConversionGivesSameResult() { int n = 360; diff --git a/src/Tests/Tests/Shared/TestMath.gen.cs b/src/Tests/Tests/Shared/TestMath.gen.cs index 1a8e3253..3a803b97 100644 --- a/src/Tests/Tests/Shared/TestMath.gen.cs +++ b/src/Tests/Tests/Shared/TestMath.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public partial class TestMath { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void abs_int() { TestUtils.AreEqual(0, abs(0)); @@ -25,7 +25,7 @@ public static void abs_int() TestUtils.AreEqual(-2147483648, abs(-2147483648)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void abs_int2() { TestUtils.AreEqual(int2(0, 7), abs(int2(0, -7))); @@ -33,21 +33,21 @@ public static void abs_int2() TestUtils.AreEqual(int2(-2147483648, -2147483648), abs(int2(-2147483648, -2147483648))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void abs_int3() { TestUtils.AreEqual(int3(0, 7, 11), abs(int3(0, -7, 11))); TestUtils.AreEqual(int3(2147483647, -2147483648, -2147483648), abs(int3(-2147483647, -2147483648, -2147483648))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void abs_int4() { TestUtils.AreEqual(int4(0, 7, 11, 2147483647), abs(int4(0, -7, 11, -2147483647))); TestUtils.AreEqual(int4(-2147483648, -2147483648, -2147483648, -2147483648), abs(int4(-2147483648, -2147483648, -2147483648, -2147483648))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void abs_float() { TestUtils.AreEqual(0f, abs(0f)); @@ -57,7 +57,7 @@ public static void abs_float() TestUtils.AreEqual(float.PositiveInfinity, abs(float.PositiveInfinity)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void abs_float2() { TestUtils.AreEqual(float2(0f, 1.1f), abs(float2(0f, -1.1f))); @@ -65,21 +65,21 @@ public static void abs_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), abs(float2(float.PositiveInfinity, float.PositiveInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void abs_float3() { TestUtils.AreEqual(float3(0f, 1.1f, 2.2f), abs(float3(0f, -1.1f, 2.2f))); TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), abs(float3(float.NegativeInfinity, float.PositiveInfinity, float.PositiveInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void abs_float4() { TestUtils.AreEqual(float4(0f, 1.1f, 2.2f, float.PositiveInfinity), abs(float4(0f, -1.1f, 2.2f, float.NegativeInfinity))); TestUtils.AreEqual(float4(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), abs(float4(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void abs_double() { TestUtils.AreEqual(0.0, abs(0.0)); @@ -89,7 +89,7 @@ public static void abs_double() TestUtils.AreEqual(double.PositiveInfinity, abs(double.PositiveInfinity)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void abs_double2() { TestUtils.AreEqual(double2(0.0, 1.1), abs(double2(0.0, -1.1))); @@ -97,21 +97,21 @@ public static void abs_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), abs(double2(double.PositiveInfinity, double.PositiveInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void abs_double3() { TestUtils.AreEqual(double3(0.0, 1.1, 2.2), abs(double3(0.0, -1.1, 2.2))); TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), abs(double3(double.NegativeInfinity, double.PositiveInfinity, double.PositiveInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void abs_double4() { TestUtils.AreEqual(double4(0.0, 1.1, 2.2, double.PositiveInfinity), abs(double4(0.0, -1.1, 2.2, double.NegativeInfinity))); TestUtils.AreEqual(double4(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), abs(double4(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isfinite_float() { TestUtils.AreEqual(false, isfinite(TestUtils.SignedFloatQNaN())); @@ -125,7 +125,7 @@ public static void isfinite_float() TestUtils.AreEqual(false, isfinite(TestUtils.UnsignedFloatQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isfinite_float2() { TestUtils.AreEqual(bool2(false, false), isfinite(float2(TestUtils.SignedFloatQNaN(), float.NegativeInfinity))); @@ -135,7 +135,7 @@ public static void isfinite_float2() TestUtils.AreEqual(bool2(false, false), isfinite(float2(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isfinite_float3() { TestUtils.AreEqual(bool3(false, false, true), isfinite(float3(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, float.MinValue))); @@ -143,7 +143,7 @@ public static void isfinite_float3() TestUtils.AreEqual(bool3(true, false, false), isfinite(float3(float.MaxValue, float.PositiveInfinity, TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isfinite_float4() { TestUtils.AreEqual(bool4(false, false, true, true), isfinite(float4(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, float.MinValue, -1f))); @@ -151,7 +151,7 @@ public static void isfinite_float4() TestUtils.AreEqual(bool4(false, false, false, false), isfinite(float4(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isfinite_double() { TestUtils.AreEqual(false, isfinite(TestUtils.SignedDoubleQNaN())); @@ -165,7 +165,7 @@ public static void isfinite_double() TestUtils.AreEqual(false, isfinite(TestUtils.UnsignedDoubleQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isfinite_double2() { TestUtils.AreEqual(bool2(false, false), isfinite(double2(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity))); @@ -175,7 +175,7 @@ public static void isfinite_double2() TestUtils.AreEqual(bool2(false, false), isfinite(double2(TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isfinite_double3() { TestUtils.AreEqual(bool3(false, false, true), isfinite(double3(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, double.MinValue))); @@ -183,7 +183,7 @@ public static void isfinite_double3() TestUtils.AreEqual(bool3(true, false, false), isfinite(double3(double.MaxValue, double.PositiveInfinity, TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isfinite_double4() { TestUtils.AreEqual(bool4(false, false, true, true), isfinite(double4(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, double.MinValue, -1.0))); @@ -191,7 +191,7 @@ public static void isfinite_double4() TestUtils.AreEqual(bool4(false, false, false, false), isfinite(double4(TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isinf_float() { TestUtils.AreEqual(false, isinf(TestUtils.SignedFloatQNaN())); @@ -205,7 +205,7 @@ public static void isinf_float() TestUtils.AreEqual(false, isinf(TestUtils.UnsignedFloatQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isinf_float2() { TestUtils.AreEqual(bool2(false, true), isinf(float2(TestUtils.SignedFloatQNaN(), float.NegativeInfinity))); @@ -215,7 +215,7 @@ public static void isinf_float2() TestUtils.AreEqual(bool2(false, false), isinf(float2(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isinf_float3() { TestUtils.AreEqual(bool3(false, true, false), isinf(float3(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, float.MinValue))); @@ -223,7 +223,7 @@ public static void isinf_float3() TestUtils.AreEqual(bool3(false, true, false), isinf(float3(float.MaxValue, float.PositiveInfinity, TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isinf_float4() { TestUtils.AreEqual(bool4(false, true, false, false), isinf(float4(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, float.MinValue, -1f))); @@ -231,7 +231,7 @@ public static void isinf_float4() TestUtils.AreEqual(bool4(false, false, false, false), isinf(float4(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isinf_double() { TestUtils.AreEqual(false, isinf(TestUtils.SignedDoubleQNaN())); @@ -245,7 +245,7 @@ public static void isinf_double() TestUtils.AreEqual(false, isinf(TestUtils.UnsignedDoubleQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isinf_double2() { TestUtils.AreEqual(bool2(false, true), isinf(double2(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity))); @@ -255,7 +255,7 @@ public static void isinf_double2() TestUtils.AreEqual(bool2(false, false), isinf(double2(TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isinf_double3() { TestUtils.AreEqual(bool3(false, true, false), isinf(double3(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, double.MinValue))); @@ -263,7 +263,7 @@ public static void isinf_double3() TestUtils.AreEqual(bool3(false, true, false), isinf(double3(double.MaxValue, double.PositiveInfinity, TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isinf_double4() { TestUtils.AreEqual(bool4(false, true, false, false), isinf(double4(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, double.MinValue, -1.0))); @@ -271,7 +271,7 @@ public static void isinf_double4() TestUtils.AreEqual(bool4(false, false, false, false), isinf(double4(TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isnan_float() { TestUtils.AreEqual(true, isnan(TestUtils.SignedFloatQNaN())); @@ -285,7 +285,7 @@ public static void isnan_float() TestUtils.AreEqual(true, isnan(TestUtils.UnsignedFloatQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isnan_float2() { TestUtils.AreEqual(bool2(true, false), isnan(float2(TestUtils.SignedFloatQNaN(), float.NegativeInfinity))); @@ -295,7 +295,7 @@ public static void isnan_float2() TestUtils.AreEqual(bool2(true, true), isnan(float2(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isnan_float3() { TestUtils.AreEqual(bool3(true, false, false), isnan(float3(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, float.MinValue))); @@ -303,7 +303,7 @@ public static void isnan_float3() TestUtils.AreEqual(bool3(false, false, true), isnan(float3(float.MaxValue, float.PositiveInfinity, TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isnan_float4() { TestUtils.AreEqual(bool4(true, false, false, false), isnan(float4(TestUtils.SignedFloatQNaN(), float.NegativeInfinity, float.MinValue, -1f))); @@ -311,7 +311,7 @@ public static void isnan_float4() TestUtils.AreEqual(bool4(true, true, true, true), isnan(float4(TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN(), TestUtils.UnsignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isnan_double() { TestUtils.AreEqual(true, isnan(TestUtils.SignedDoubleQNaN())); @@ -325,7 +325,7 @@ public static void isnan_double() TestUtils.AreEqual(true, isnan(TestUtils.UnsignedDoubleQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isnan_double2() { TestUtils.AreEqual(bool2(true, false), isnan(double2(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity))); @@ -335,7 +335,7 @@ public static void isnan_double2() TestUtils.AreEqual(bool2(true, true), isnan(double2(TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isnan_double3() { TestUtils.AreEqual(bool3(true, false, false), isnan(double3(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, double.MinValue))); @@ -343,7 +343,7 @@ public static void isnan_double3() TestUtils.AreEqual(bool3(false, false, true), isnan(double3(double.MaxValue, double.PositiveInfinity, TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void isnan_double4() { TestUtils.AreEqual(bool4(true, false, false, false), isnan(double4(TestUtils.SignedDoubleQNaN(), double.NegativeInfinity, double.MinValue, -1.0))); @@ -351,7 +351,7 @@ public static void isnan_double4() TestUtils.AreEqual(bool4(true, true, true, true), isnan(double4(TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN(), TestUtils.UnsignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sin_float() { TestUtils.AreEqual(0.3499935f, sin(-1000000f), 1, false); @@ -364,7 +364,7 @@ public static void sin_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), sin(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sin_float2() { TestUtils.AreEqual(float2(0.3499935f, -0.9320391f), sin(float2(-1000000f, -1.2f)), 1, false); @@ -373,7 +373,7 @@ public static void sin_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), sin(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sin_float3() { TestUtils.AreEqual(float3(0.3499935f, -0.9320391f, 0f), sin(float3(-1000000f, -1.2f, 0f)), 1, false); @@ -381,14 +381,14 @@ public static void sin_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), sin(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sin_float4() { TestUtils.AreEqual(float4(0.3499935f, -0.9320391f, 0f, 0.9320391f), sin(float4(-1000000f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(-0.3499935f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), sin(float4(1000000f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sin_double() { TestUtils.AreEqual(0.34999350217129294, sin(-1000000.0), 32, false); @@ -401,7 +401,7 @@ public static void sin_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), sin(double.PositiveInfinity), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sin_double2() { TestUtils.AreEqual(double2(0.34999350217129294, -0.9320390859672264), sin(double2(-1000000.0, -1.2)), 32, false); @@ -410,7 +410,7 @@ public static void sin_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), sin(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sin_double3() { TestUtils.AreEqual(double3(0.34999350217129294, -0.9320390859672264, 0.0), sin(double3(-1000000.0, -1.2, 0.0)), 32, false); @@ -418,14 +418,14 @@ public static void sin_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), sin(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sin_double4() { TestUtils.AreEqual(double4(0.34999350217129294, -0.9320390859672264, 0.0, 0.9320390859672264), sin(double4(-1000000.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(-0.34999350217129294, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), sin(double4(1000000.0, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cos_float() { TestUtils.AreEqual(0.936752141f, cos(-1000000f), 8, false); @@ -438,7 +438,7 @@ public static void cos_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), cos(float.PositiveInfinity), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cos_float2() { TestUtils.AreEqual(float2(0.936752141f, 0.362357765f), cos(float2(-1000000f, -1.2f)), 8, false); @@ -447,7 +447,7 @@ public static void cos_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), cos(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cos_float3() { TestUtils.AreEqual(float3(0.936752141f, 0.362357765f, 1f), cos(float3(-1000000f, -1.2f, 0f)), 8, false); @@ -455,14 +455,14 @@ public static void cos_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), cos(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cos_float4() { TestUtils.AreEqual(float4(0.936752141f, 0.362357765f, 1f, 0.362357765f), cos(float4(-1000000f, -1.2f, 0f, 1.2f)), 8, false); TestUtils.AreEqual(float4(0.936752141f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), cos(float4(1000000f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cos_double() { TestUtils.AreEqual(0.93675212753314474, cos(-1000000.0), 32, false); @@ -475,7 +475,7 @@ public static void cos_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), cos(double.PositiveInfinity), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cos_double2() { TestUtils.AreEqual(double2(0.93675212753314474, 0.36235775447667357), cos(double2(-1000000.0, -1.2)), 32, false); @@ -484,7 +484,7 @@ public static void cos_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), cos(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cos_double3() { TestUtils.AreEqual(double3(0.93675212753314474, 0.36235775447667357, 1.0), cos(double3(-1000000.0, -1.2, 0.0)), 32, false); @@ -492,14 +492,14 @@ public static void cos_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), cos(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cos_double4() { TestUtils.AreEqual(double4(0.93675212753314474, 0.36235775447667357, 1.0, 0.36235775447667357), cos(double4(-1000000.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(0.93675212753314474, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), cos(double4(1000000.0, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tan_float() { TestUtils.AreEqual(0.373624444f, tan(-1000000f), 1, false); @@ -512,7 +512,7 @@ public static void tan_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), tan(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tan_float2() { TestUtils.AreEqual(float2(0.373624444f, -2.57215166f), tan(float2(-1000000f, -1.2f)), 1, false); @@ -521,7 +521,7 @@ public static void tan_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), tan(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tan_float3() { TestUtils.AreEqual(float3(0.373624444f, -2.57215166f, 0f), tan(float3(-1000000f, -1.2f, 0f)), 1, false); @@ -529,14 +529,14 @@ public static void tan_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), tan(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tan_float4() { TestUtils.AreEqual(float4(0.373624444f, -2.57215166f, 0f, 2.57215166f), tan(float4(-1000000f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(-0.373624444f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), tan(float4(1000000f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tan_double() { TestUtils.AreEqual(0.373624453987599, tan(-1000000.0), 32, false); @@ -549,7 +549,7 @@ public static void tan_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), tan(double.PositiveInfinity), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tan_double2() { TestUtils.AreEqual(double2(0.373624453987599, -2.57215162212632), tan(double2(-1000000.0, -1.2)), 32, false); @@ -558,7 +558,7 @@ public static void tan_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), tan(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tan_double3() { TestUtils.AreEqual(double3(0.373624453987599, -2.57215162212632, 0.0), tan(double3(-1000000.0, -1.2, 0.0)), 32, false); @@ -566,14 +566,14 @@ public static void tan_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), tan(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tan_double4() { TestUtils.AreEqual(double4(0.373624453987599, -2.57215162212632, 0.0, 2.57215162212632), tan(double4(-1000000.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(-0.373624453987599, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), tan(double4(1000000.0, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan_float() { TestUtils.AreEqual(-1.5707953f, atan(-1000000f), 1, false); @@ -586,7 +586,7 @@ public static void atan_float() TestUtils.AreEqual(1.57079637f, atan(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan_float2() { TestUtils.AreEqual(float2(-1.5707953f, -0.876058042f), atan(float2(-1000000f, -1.2f)), 1, false); @@ -595,7 +595,7 @@ public static void atan_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), 1.57079637f), atan(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan_float3() { TestUtils.AreEqual(float3(-1.5707953f, -0.876058042f, 0f), atan(float3(-1000000f, -1.2f, 0f)), 1, false); @@ -603,14 +603,14 @@ public static void atan_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), 1.57079637f, 1.57079637f), atan(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan_float4() { TestUtils.AreEqual(float4(-1.5707953f, -0.876058042f, 0f, 0.876058042f), atan(float4(-1000000f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(1.5707953f, -1.57079637f, TestUtils.SignedFloatQNaN(), 1.57079637f), atan(float4(1000000f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan_double() { TestUtils.AreEqual(-1.5707953267948971, atan(-1000000.0), 32, false); @@ -623,7 +623,7 @@ public static void atan_double() TestUtils.AreEqual(1.570796326794897, atan(double.PositiveInfinity), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan_double2() { TestUtils.AreEqual(double2(-1.5707953267948971, -0.87605805059819342), atan(double2(-1000000.0, -1.2)), 32, false); @@ -632,7 +632,7 @@ public static void atan_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), 1.570796326794897), atan(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan_double3() { TestUtils.AreEqual(double3(-1.5707953267948971, -0.87605805059819342, 0.0), atan(double3(-1000000.0, -1.2, 0.0)), 32, false); @@ -640,14 +640,14 @@ public static void atan_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), 1.570796326794897, 1.570796326794897), atan(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan_double4() { TestUtils.AreEqual(double4(-1.5707953267948971, -0.87605805059819342, 0.0, 0.87605805059819342), atan(double4(-1000000.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(1.5707953267948971, -1.570796326794897, TestUtils.SignedDoubleQNaN(), 1.570796326794897), atan(double4(1000000.0, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan2_float() { TestUtils.AreEqual(0.9119903f, atan2(3.1f, 2.4f), 1, false); @@ -664,7 +664,7 @@ public static void atan2_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), atan2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan2_float2() { TestUtils.AreEqual(float2(0.9119903f, 2.22960234f), atan2(float2(3.1f, 3.1f), float2(2.4f, -2.4f)), 1, false); @@ -675,7 +675,7 @@ public static void atan2_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), atan2(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float2(1f, TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan2_float3() { TestUtils.AreEqual(float3(0.9119903f, 2.22960234f, -0.9119903f), atan2(float3(3.1f, 3.1f, -3.1f), float3(2.4f, -2.4f, 2.4f)), 1, false); @@ -684,7 +684,7 @@ public static void atan2_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), atan2(float3(1f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), 1f, TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan2_float4() { TestUtils.AreEqual(float4(0.9119903f, 2.22960234f, -0.9119903f, -2.22960234f), atan2(float4(3.1f, 3.1f, -3.1f, -3.1f), float4(2.4f, -2.4f, 2.4f, -2.4f)), 1, false); @@ -692,7 +692,7 @@ public static void atan2_float4() TestUtils.AreEqual(float4(1.57079637f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), atan2(float4(float.PositiveInfinity, 1f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float4(1f, TestUtils.SignedFloatQNaN(), 1f, TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan2_double() { TestUtils.AreEqual(0.91199029067742043, atan2(3.1, 2.4), 32, false); @@ -709,7 +709,7 @@ public static void atan2_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), atan2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan2_double2() { TestUtils.AreEqual(double2(0.91199029067742043, 2.2296023629123729), atan2(double2(3.1, 3.1), double2(2.4, -2.4)), 32, false); @@ -720,7 +720,7 @@ public static void atan2_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), atan2(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double2(1.0, TestUtils.SignedDoubleQNaN())), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan2_double3() { TestUtils.AreEqual(double3(0.91199029067742043, 2.2296023629123729, -0.91199029067742043), atan2(double3(3.1, 3.1, -3.1), double3(2.4, -2.4, 2.4)), 32, false); @@ -729,7 +729,7 @@ public static void atan2_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), atan2(double3(1.0, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), 1.0, TestUtils.SignedDoubleQNaN())), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void atan2_double4() { TestUtils.AreEqual(double4(0.91199029067742043, 2.2296023629123729, -0.91199029067742043, -2.2296023629123729), atan2(double4(3.1, 3.1, -3.1, -3.1), double4(2.4, -2.4, 2.4, -2.4)), 32, false); @@ -737,7 +737,7 @@ public static void atan2_double4() TestUtils.AreEqual(double4(1.5707963267948966, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), atan2(double4(double.PositiveInfinity, 1.0, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double4(1.0, TestUtils.SignedDoubleQNaN(), 1.0, TestUtils.SignedDoubleQNaN())), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sinh_float() { TestUtils.AreEqual(-3.62686038f, sinh(-2f), 1, false); @@ -750,7 +750,7 @@ public static void sinh_float() TestUtils.AreEqual(float.PositiveInfinity, sinh(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sinh_float2() { TestUtils.AreEqual(float2(-3.62686038f, -1.5094614f), sinh(float2(-2f, -1.2f)), 1, false); @@ -759,7 +759,7 @@ public static void sinh_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity), sinh(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sinh_float3() { TestUtils.AreEqual(float3(-3.62686038f, -1.5094614f, 0f), sinh(float3(-2f, -1.2f, 0f)), 1, false); @@ -767,14 +767,14 @@ public static void sinh_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), sinh(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sinh_float4() { TestUtils.AreEqual(float4(-3.62686038f, -1.5094614f, 0f, 1.5094614f), sinh(float4(-2f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(3.62686038f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity), sinh(float4(2f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sinh_double() { TestUtils.AreEqual(-3.6268604078470181, sinh(-2.0), 32, false); @@ -787,7 +787,7 @@ public static void sinh_double() TestUtils.AreEqual(double.PositiveInfinity, sinh(double.PositiveInfinity), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sinh_double2() { TestUtils.AreEqual(double2(-3.6268604078470181, -1.509461355412173), sinh(double2(-2.0, -1.2)), 32, false); @@ -796,7 +796,7 @@ public static void sinh_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), sinh(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sinh_double3() { TestUtils.AreEqual(double3(-3.6268604078470181, -1.509461355412173, 0.0), sinh(double3(-2.0, -1.2, 0.0)), 32, false); @@ -804,14 +804,14 @@ public static void sinh_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), sinh(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sinh_double4() { TestUtils.AreEqual(double4(-3.6268604078470181, -1.509461355412173, 0.0, 1.509461355412173), sinh(double4(-2.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(3.6268604078470181, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), sinh(double4(2.0, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cosh_float() { TestUtils.AreEqual(3.76219559f, cosh(-2f), 1, false); @@ -824,7 +824,7 @@ public static void cosh_float() TestUtils.AreEqual(float.PositiveInfinity, cosh(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cosh_float2() { TestUtils.AreEqual(float2(3.76219559f, 1.81065559f), cosh(float2(-2f, -1.2f)), 1, false); @@ -833,7 +833,7 @@ public static void cosh_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity), cosh(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cosh_float3() { TestUtils.AreEqual(float3(3.76219559f, 1.81065559f, 1f), cosh(float3(-2f, -1.2f, 0f)), 1, false); @@ -841,14 +841,14 @@ public static void cosh_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), cosh(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cosh_float4() { TestUtils.AreEqual(float4(3.76219559f, 1.81065559f, 1f, 1.81065559f), cosh(float4(-2f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(3.76219559f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity), cosh(float4(2f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cosh_double() { TestUtils.AreEqual(3.7621956910836314, cosh(-2.0), 32, false); @@ -861,7 +861,7 @@ public static void cosh_double() TestUtils.AreEqual(double.PositiveInfinity, cosh(double.PositiveInfinity), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cosh_double2() { TestUtils.AreEqual(double2(3.7621956910836314, 1.81065556732437), cosh(double2(-2.0, -1.2)), 32, false); @@ -870,7 +870,7 @@ public static void cosh_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), cosh(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cosh_double3() { TestUtils.AreEqual(double3(3.7621956910836314, 1.81065556732437, 1.0), cosh(double3(-2.0, -1.2, 0.0)), 32, false); @@ -878,14 +878,14 @@ public static void cosh_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), cosh(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void cosh_double4() { TestUtils.AreEqual(double4(3.7621956910836314, 1.81065556732437, 1.0, 1.81065556732437), cosh(double4(-2.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(3.7621956910836314, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), cosh(double4(2.0, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tanh_float() { TestUtils.AreEqual(-0.9640276f, tanh(-2f), 1, false); @@ -898,7 +898,7 @@ public static void tanh_float() TestUtils.AreEqual(1f, tanh(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tanh_float2() { TestUtils.AreEqual(float2(-0.9640276f, -0.8336546f), tanh(float2(-2f, -1.2f)), 1, false); @@ -907,7 +907,7 @@ public static void tanh_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), 1f), tanh(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tanh_float3() { TestUtils.AreEqual(float3(-0.9640276f, -0.8336546f, 0f), tanh(float3(-2f, -1.2f, 0f)), 1, false); @@ -915,14 +915,14 @@ public static void tanh_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), 1f, 1f), tanh(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tanh_float4() { TestUtils.AreEqual(float4(-0.9640276f, -0.8336546f, 0f, 0.8336546f), tanh(float4(-2f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(0.9640276f, -1f, TestUtils.SignedFloatQNaN(), 1f), tanh(float4(2f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tanh_double() { TestUtils.AreEqual(-0.9640275800758169, tanh(-2.0), 32, false); @@ -935,7 +935,7 @@ public static void tanh_double() TestUtils.AreEqual(1.0, tanh(double.PositiveInfinity), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tanh_double2() { TestUtils.AreEqual(double2(-0.9640275800758169, -0.83365460701215521), tanh(double2(-2.0, -1.2)), 32, false); @@ -944,7 +944,7 @@ public static void tanh_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), 1.0), tanh(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tanh_double3() { TestUtils.AreEqual(double3(-0.9640275800758169, -0.83365460701215521, 0.0), tanh(double3(-2.0, -1.2, 0.0)), 32, false); @@ -952,14 +952,14 @@ public static void tanh_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), 1.0, 1.0), tanh(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void tanh_double4() { TestUtils.AreEqual(double4(-0.9640275800758169, -0.83365460701215521, 0.0, 0.83365460701215521), tanh(double4(-2.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(0.9640275800758169, -1.0, TestUtils.SignedDoubleQNaN(), 1.0), tanh(double4(2.0, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp_float() { TestUtils.AreEqual(4.539993E-05f, exp(-10f), 1, false); @@ -971,7 +971,7 @@ public static void exp_float() TestUtils.AreEqual(float.PositiveInfinity, exp(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp_float2() { TestUtils.AreEqual(float2(4.539993E-05f, 0.301194221f), exp(float2(-10f, -1.2f)), 1, false); @@ -980,7 +980,7 @@ public static void exp_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), exp(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp_float3() { TestUtils.AreEqual(float3(4.539993E-05f, 0.301194221f, 1f), exp(float3(-10f, -1.2f, 0f)), 1, false); @@ -988,14 +988,14 @@ public static void exp_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), exp(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp_float4() { TestUtils.AreEqual(float4(4.539993E-05f, 0.301194221f, 1f, 3.320117f), exp(float4(-10f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(0f, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), exp(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp_double() { TestUtils.AreEqual(4.5399929762484847E-05, exp(-10.0), 32, false); @@ -1007,7 +1007,7 @@ public static void exp_double() TestUtils.AreEqual(double.PositiveInfinity, exp(double.PositiveInfinity), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp_double2() { TestUtils.AreEqual(double2(4.5399929762484847E-05, 0.30119421191220208), exp(double2(-10.0, -1.2)), 32, false); @@ -1016,7 +1016,7 @@ public static void exp_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), exp(double2(double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp_double3() { TestUtils.AreEqual(double3(4.5399929762484847E-05, 0.30119421191220208, 1.0), exp(double3(-10.0, -1.2, 0.0)), 32, false); @@ -1024,14 +1024,14 @@ public static void exp_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), exp(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp_double4() { TestUtils.AreEqual(double4(4.5399929762484847E-05, 0.30119421191220208, 1.0, 3.3201169227365477), exp(double4(-10.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(0.0, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), exp(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp2_float() { TestUtils.AreEqual(0.0009765625f, exp2(-10f), 1, false); @@ -1043,7 +1043,7 @@ public static void exp2_float() TestUtils.AreEqual(float.PositiveInfinity, exp2(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp2_float2() { TestUtils.AreEqual(float2(0.0009765625f, 0.4352753f), exp2(float2(-10f, -1.2f)), 1, false); @@ -1052,7 +1052,7 @@ public static void exp2_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), exp2(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp2_float3() { TestUtils.AreEqual(float3(0.0009765625f, 0.4352753f, 1f), exp2(float3(-10f, -1.2f, 0f)), 1, false); @@ -1060,14 +1060,14 @@ public static void exp2_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), exp2(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp2_float4() { TestUtils.AreEqual(float4(0.0009765625f, 0.4352753f, 1f, 2.29739666f), exp2(float4(-10f, -1.2f, 0f, 1.2f)), 1, false); TestUtils.AreEqual(float4(0f, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), exp2(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp2_double() { TestUtils.AreEqual(0.0009765625, exp2(-10.0), 32, false); @@ -1079,7 +1079,7 @@ public static void exp2_double() TestUtils.AreEqual(double.PositiveInfinity, exp2(double.PositiveInfinity), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp2_double2() { TestUtils.AreEqual(double2(0.0009765625, 0.435275281648062), exp2(double2(-10.0, -1.2)), 32, false); @@ -1088,7 +1088,7 @@ public static void exp2_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), exp2(double2(double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp2_double3() { TestUtils.AreEqual(double3(0.0009765625, 0.435275281648062, 1.0), exp2(double3(-10.0, -1.2, 0.0)), 32, false); @@ -1096,14 +1096,14 @@ public static void exp2_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), exp2(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp2_double4() { TestUtils.AreEqual(double4(0.0009765625, 0.435275281648062, 1.0, 2.29739670999407), exp2(double4(-10.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(0.0, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), exp2(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp10_float() { TestUtils.AreEqual(1E-10f, exp10(-10f), 32, false); @@ -1115,7 +1115,7 @@ public static void exp10_float() TestUtils.AreEqual(float.PositiveInfinity, exp10(float.PositiveInfinity), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp10_float2() { TestUtils.AreEqual(float2(1E-10f, 0.06309573f), exp10(float2(-10f, -1.2f)), 32, false); @@ -1124,7 +1124,7 @@ public static void exp10_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), exp10(float2(float.PositiveInfinity, float.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp10_float3() { TestUtils.AreEqual(float3(1E-10f, 0.06309573f, 1f), exp10(float3(-10f, -1.2f, 0f)), 32, false); @@ -1132,14 +1132,14 @@ public static void exp10_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), exp10(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp10_float4() { TestUtils.AreEqual(float4(1E-10f, 0.06309573f, 1f, 15.8489323f), exp10(float4(-10f, -1.2f, 0f, 1.2f)), 32, false); TestUtils.AreEqual(float4(0f, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), exp10(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp10_double() { TestUtils.AreEqual(1E-10, exp10(-10.0), 32, false); @@ -1151,7 +1151,7 @@ public static void exp10_double() TestUtils.AreEqual(double.PositiveInfinity, exp10(double.PositiveInfinity), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp10_double2() { TestUtils.AreEqual(double2(1E-10, 0.063095734448019331), exp10(double2(-10.0, -1.2)), 32, false); @@ -1160,7 +1160,7 @@ public static void exp10_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), exp10(double2(double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp10_double3() { TestUtils.AreEqual(double3(1E-10, 0.063095734448019331, 1.0), exp10(double3(-10.0, -1.2, 0.0)), 32, false); @@ -1168,14 +1168,14 @@ public static void exp10_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), exp10(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void exp10_double4() { TestUtils.AreEqual(double4(1E-10, 0.063095734448019331, 1.0, 15.848931924611135), exp10(double4(-10.0, -1.2, 0.0, 1.2)), 32, false); TestUtils.AreEqual(double4(0.0, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), exp10(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log_float() { TestUtils.AreEqual(-20.5409451f, log(1.2E-09f), 1, false); @@ -1187,7 +1187,7 @@ public static void log_float() TestUtils.AreEqual(float.PositiveInfinity, log(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log_float2() { TestUtils.AreEqual(float2(-20.5409451f, 0f), log(float2(1.2E-09f, 1f)), 1, false); @@ -1196,7 +1196,7 @@ public static void log_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), log(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log_float3() { TestUtils.AreEqual(float3(-20.5409451f, 0f, 23.2081718f), log(float3(1.2E-09f, 1f, 1.2E+10f)), 1, false); @@ -1204,14 +1204,14 @@ public static void log_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), log(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log_float4() { TestUtils.AreEqual(float4(-20.5409451f, 0f, 23.2081718f, TestUtils.SignedFloatQNaN()), log(float4(1.2E-09f, 1f, 1.2E+10f, -1f)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), log(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log_double() { TestUtils.AreEqual(-20.540944280152456, log(1.2E-09), 32, false); @@ -1223,7 +1223,7 @@ public static void log_double() TestUtils.AreEqual(double.PositiveInfinity, log(double.PositiveInfinity), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log_double2() { TestUtils.AreEqual(double2(-20.540944280152456, 0.0), log(double2(1.2E-09, 1.0)), 32, false); @@ -1232,7 +1232,7 @@ public static void log_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), log(double2(double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log_double3() { TestUtils.AreEqual(double3(-20.540944280152456, 0.0, 23.208172486734409), log(double3(1.2E-09, 1.0, 12000000000.0)), 32, false); @@ -1240,14 +1240,14 @@ public static void log_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), log(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log_double4() { TestUtils.AreEqual(double4(-20.540944280152456, 0.0, 23.208172486734409, TestUtils.SignedDoubleQNaN()), log(double4(1.2E-09, 1.0, 12000000000.0, -1.0)), 32, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), log(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log2_float() { TestUtils.AreEqual(-29.63432f, log2(1.2E-09f), 1, false); @@ -1259,7 +1259,7 @@ public static void log2_float() TestUtils.AreEqual(float.PositiveInfinity, log2(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log2_float2() { TestUtils.AreEqual(float2(-29.63432f, 0f), log2(float2(1.2E-09f, 1f)), 1, false); @@ -1268,7 +1268,7 @@ public static void log2_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), log2(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log2_float3() { TestUtils.AreEqual(float3(-29.63432f, 0f, 33.4823151f), log2(float3(1.2E-09f, 1f, 1.2E+10f)), 1, false); @@ -1276,14 +1276,14 @@ public static void log2_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), log2(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log2_float4() { TestUtils.AreEqual(float4(-29.63432f, 0f, 33.4823151f, TestUtils.SignedFloatQNaN()), log2(float4(1.2E-09f, 1f, 1.2E+10f, -1f)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), log2(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log2_double() { TestUtils.AreEqual(-29.634318448152467, log2(1.2E-09), 32, false); @@ -1295,7 +1295,7 @@ public static void log2_double() TestUtils.AreEqual(double.PositiveInfinity, log2(double.PositiveInfinity), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log2_double2() { TestUtils.AreEqual(double2(-29.634318448152467, 0.0), log2(double2(1.2E-09, 1.0)), 32, false); @@ -1304,7 +1304,7 @@ public static void log2_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), log2(double2(double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log2_double3() { TestUtils.AreEqual(double3(-29.634318448152467, 0.0, 33.482315354707417), log2(double3(1.2E-09, 1.0, 12000000000.0)), 32, false); @@ -1312,14 +1312,14 @@ public static void log2_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), log2(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log2_double4() { TestUtils.AreEqual(double4(-29.634318448152467, 0.0, 33.482315354707417, TestUtils.SignedDoubleQNaN()), log2(double4(1.2E-09, 1.0, 12000000000.0, -1.0)), 32, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), log2(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log10_float() { TestUtils.AreEqual(-8.920818f, log10(1.2E-09f), 1, false); @@ -1331,7 +1331,7 @@ public static void log10_float() TestUtils.AreEqual(float.PositiveInfinity, log10(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log10_float2() { TestUtils.AreEqual(float2(-8.920818f, 0f), log10(float2(1.2E-09f, 1f)), 1, false); @@ -1340,7 +1340,7 @@ public static void log10_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), log10(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log10_float3() { TestUtils.AreEqual(float3(-8.920818f, 0f, 10.0791817f), log10(float3(1.2E-09f, 1f, 1.2E+10f)), 1, false); @@ -1348,14 +1348,14 @@ public static void log10_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), log10(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log10_float4() { TestUtils.AreEqual(float4(-8.920818f, 0f, 10.0791817f, TestUtils.SignedFloatQNaN()), log10(float4(1.2E-09f, 1f, 1.2E+10f, -1f)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), log10(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log10_double() { TestUtils.AreEqual(-8.9208187539523749, log10(1.2E-09), 32, false); @@ -1367,7 +1367,7 @@ public static void log10_double() TestUtils.AreEqual(double.PositiveInfinity, log10(double.PositiveInfinity), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log10_double2() { TestUtils.AreEqual(double2(-8.9208187539523749, 0.0), log10(double2(1.2E-09, 1.0)), 32, false); @@ -1376,7 +1376,7 @@ public static void log10_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), log10(double2(double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log10_double3() { TestUtils.AreEqual(double3(-8.9208187539523749, 0.0, 10.079181246047623), log10(double3(1.2E-09, 1.0, 12000000000.0)), 32, false); @@ -1384,14 +1384,14 @@ public static void log10_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), log10(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void log10_double4() { TestUtils.AreEqual(double4(-8.9208187539523749, 0.0, 10.079181246047623, TestUtils.SignedDoubleQNaN()), log10(double4(1.2E-09, 1.0, 12000000000.0, -1.0)), 32, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), log10(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 32, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void radians_float() { TestUtils.AreEqual(-2.154609f, radians(-123.45f), 1, false); @@ -1402,7 +1402,7 @@ public static void radians_float() TestUtils.AreEqual(float.PositiveInfinity, radians(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void radians_float2() { TestUtils.AreEqual(float2(-2.154609f, 0f), radians(float2(-123.45f, 0f)), 1, false); @@ -1410,21 +1410,21 @@ public static void radians_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity), radians(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void radians_float3() { TestUtils.AreEqual(float3(-2.154609f, 0f, 2.154609f), radians(float3(-123.45f, 0f, 123.45f)), 1, false); TestUtils.AreEqual(float3(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity), radians(float3(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void radians_float4() { TestUtils.AreEqual(float4(-2.154609f, 0f, 2.154609f, float.NegativeInfinity), radians(float4(-123.45f, 0f, 123.45f, float.NegativeInfinity)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), radians(float4(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void radians_double() { TestUtils.AreEqual(-2.154608961587, radians(-123.45), 1, false); @@ -1435,7 +1435,7 @@ public static void radians_double() TestUtils.AreEqual(double.PositiveInfinity, radians(double.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void radians_double2() { TestUtils.AreEqual(double2(-2.154608961587, 0.0), radians(double2(-123.45, 0.0)), 1, false); @@ -1443,21 +1443,21 @@ public static void radians_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), radians(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void radians_double3() { TestUtils.AreEqual(double3(-2.154608961587, 0.0, 2.154608961587), radians(double3(-123.45, 0.0, 123.45)), 1, false); TestUtils.AreEqual(double3(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), radians(double3(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void radians_double4() { TestUtils.AreEqual(double4(-2.154608961587, 0.0, 2.154608961587, double.NegativeInfinity), radians(double4(-123.45, 0.0, 123.45, double.NegativeInfinity)), 1, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), radians(double4(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void degrees_float() { TestUtils.AreEqual(-7073.164f, degrees(-123.45f), 1, false); @@ -1468,7 +1468,7 @@ public static void degrees_float() TestUtils.AreEqual(float.PositiveInfinity, degrees(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void degrees_float2() { TestUtils.AreEqual(float2(-7073.164f, 0f), degrees(float2(-123.45f, 0f)), 1, false); @@ -1476,21 +1476,21 @@ public static void degrees_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity), degrees(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void degrees_float3() { TestUtils.AreEqual(float3(-7073.164f, 0f, 7073.164f), degrees(float3(-123.45f, 0f, 123.45f)), 1, false); TestUtils.AreEqual(float3(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity), degrees(float3(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void degrees_float4() { TestUtils.AreEqual(float4(-7073.164f, 0f, 7073.164f, float.NegativeInfinity), degrees(float4(-123.45f, 0f, 123.45f, float.NegativeInfinity)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), degrees(float4(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void degrees_double() { TestUtils.AreEqual(-7073.1639808900127, degrees(-123.45), 1, false); @@ -1501,7 +1501,7 @@ public static void degrees_double() TestUtils.AreEqual(double.PositiveInfinity, degrees(double.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void degrees_double2() { TestUtils.AreEqual(double2(-7073.1639808900127, 0.0), degrees(double2(-123.45, 0.0)), 1, false); @@ -1509,21 +1509,21 @@ public static void degrees_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), degrees(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void degrees_double3() { TestUtils.AreEqual(double3(-7073.1639808900127, 0.0, 7073.1639808900127), degrees(double3(-123.45, 0.0, 123.45)), 1, false); TestUtils.AreEqual(double3(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), degrees(double3(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void degrees_double4() { TestUtils.AreEqual(double4(-7073.1639808900127, 0.0, 7073.1639808900127, double.NegativeInfinity), degrees(double4(-123.45, 0.0, 123.45, double.NegativeInfinity)), 1, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), degrees(double4(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sign_int() { TestUtils.AreEqual(-1, sign(-156)); @@ -1540,7 +1540,7 @@ public static void sign_int() TestUtils.AreEqual(-1, sign(-2147483648)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sign_int2() { TestUtils.AreEqual(int2(-1, -1), sign(int2(-156, -214748346))); @@ -1551,7 +1551,7 @@ public static void sign_int2() TestUtils.AreEqual(int2(1, -1), sign(int2(2147483647, -2147483648))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sign_int3() { TestUtils.AreEqual(int3(-1, -1, 0), sign(int3(-156, -214748346, 0))); @@ -1560,7 +1560,7 @@ public static void sign_int3() TestUtils.AreEqual(int3(1, 1, -1), sign(int3(64583, 2147483647, -2147483648))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sign_int4() { TestUtils.AreEqual(int4(-1, -1, 0, 1), sign(int4(-156, -214748346, 0, 214748346))); @@ -1568,7 +1568,7 @@ public static void sign_int4() TestUtils.AreEqual(int4(-1, 1, 1, -1), sign(int4(-15379, 64583, 2147483647, -2147483648))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sign_float() { TestUtils.AreEqual(-1f, sign(-123.45f)); @@ -1581,7 +1581,7 @@ public static void sign_float() TestUtils.AreEqual(1f, sign(float.PositiveInfinity)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sign_float2() { TestUtils.AreEqual(float2(-1f, -1f), sign(float2(-123.45f, -1E-20f))); @@ -1590,7 +1590,7 @@ public static void sign_float2() TestUtils.AreEqual(float2(0f, 1f), sign(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sign_float3() { TestUtils.AreEqual(float3(-1f, -1f, 0f), sign(float3(-123.45f, -1E-20f, 0f))); @@ -1598,14 +1598,14 @@ public static void sign_float3() TestUtils.AreEqual(float3(0f, 1f, 1f), sign(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sign_float4() { TestUtils.AreEqual(float4(-1f, -1f, 0f, 1f), sign(float4(-123.45f, -1E-20f, 0f, 1E-10f))); TestUtils.AreEqual(float4(1f, -1f, 0f, 1f), sign(float4(123.45f, float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sign_double() { TestUtils.AreEqual(-1.0, sign(-123.45)); @@ -1618,7 +1618,7 @@ public static void sign_double() TestUtils.AreEqual(1.0, sign(double.PositiveInfinity)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sign_double2() { TestUtils.AreEqual(double2(-1.0, -1.0), sign(double2(-123.45, -1E-20))); @@ -1627,7 +1627,7 @@ public static void sign_double2() TestUtils.AreEqual(double2(0.0, 1.0), sign(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sign_double3() { TestUtils.AreEqual(double3(-1.0, -1.0, 0.0), sign(double3(-123.45, -1E-20, 0.0))); @@ -1635,14 +1635,14 @@ public static void sign_double3() TestUtils.AreEqual(double3(0.0, 1.0, 1.0), sign(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sign_double4() { TestUtils.AreEqual(double4(-1.0, -1.0, 0.0, 1.0), sign(double4(-123.45, -1E-20, 0.0, 1E-10))); TestUtils.AreEqual(double4(1.0, -1.0, 0.0, 1.0), sign(double4(123.45, double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sqrt_float() { TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), sqrt(-1f), 1, false); @@ -1654,7 +1654,7 @@ public static void sqrt_float() TestUtils.AreEqual(float.PositiveInfinity, sqrt(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sqrt_float2() { TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), 0f), sqrt(float2(-1f, 0f)), 1, false); @@ -1663,7 +1663,7 @@ public static void sqrt_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), sqrt(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sqrt_float3() { TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), 0f, 1E-05f), sqrt(float3(-1f, 0f, 1E-10f)), 1, false); @@ -1671,14 +1671,14 @@ public static void sqrt_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), sqrt(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sqrt_float4() { TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), 0f, 1E-05f, 11.1108055f), sqrt(float4(-1f, 0f, 1E-10f, 123.45f)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity), sqrt(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sqrt_double() { TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), sqrt(-1.0), 1, false); @@ -1690,7 +1690,7 @@ public static void sqrt_double() TestUtils.AreEqual(double.PositiveInfinity, sqrt(double.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sqrt_double2() { TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), 0.0), sqrt(double2(-1.0, 0.0)), 1, false); @@ -1699,7 +1699,7 @@ public static void sqrt_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), sqrt(double2(double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sqrt_double3() { TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), 0.0, 1E-05), sqrt(double3(-1.0, 0.0, 1E-10)), 1, false); @@ -1707,14 +1707,14 @@ public static void sqrt_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity), sqrt(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void sqrt_double4() { TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), 0.0, 1E-05, 11.11080555135405), sqrt(double4(-1.0, 0.0, 1E-10, 123.45)), 1, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity), sqrt(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rsqrt_float() { TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), rsqrt(-1f), 1, false); @@ -1726,7 +1726,7 @@ public static void rsqrt_float() TestUtils.AreEqual(0f, rsqrt(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rsqrt_float2() { TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), float.PositiveInfinity), rsqrt(float2(-1f, 0f)), 1, false); @@ -1735,7 +1735,7 @@ public static void rsqrt_float2() TestUtils.AreEqual(float2(0f, 0f), rsqrt(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rsqrt_float3() { TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, 1E-05f), rsqrt(float3(-1f, 0f, 1E+10f)), 1, false); @@ -1743,14 +1743,14 @@ public static void rsqrt_float3() TestUtils.AreEqual(float3(0f, 0f, 0f), rsqrt(float3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rsqrt_float4() { TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, 1E-05f, 0.09000248f), rsqrt(float4(-1f, 0f, 1E+10f, 123.45f)), 1, false); TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), 0f, 0f), rsqrt(float4(float.NegativeInfinity, TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rsqrt_double() { TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), rsqrt(-1.0), 1, false); @@ -1762,7 +1762,7 @@ public static void rsqrt_double() TestUtils.AreEqual(0.0, rsqrt(double.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rsqrt_double2() { TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity), rsqrt(double2(-1.0, 0.0)), 1, false); @@ -1771,7 +1771,7 @@ public static void rsqrt_double2() TestUtils.AreEqual(double2(0.0, 0.0), rsqrt(double2(double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rsqrt_double3() { TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, 1E-05), rsqrt(double3(-1.0, 0.0, 10000000000.0)), 1, false); @@ -1779,14 +1779,14 @@ public static void rsqrt_double3() TestUtils.AreEqual(double3(0.0, 0.0, 0.0), rsqrt(double3(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rsqrt_double4() { TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, 1E-05, 0.090002475102098425), rsqrt(double4(-1.0, 0.0, 10000000000.0, 123.45)), 1, false); TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), 0.0, 0.0), rsqrt(double4(double.NegativeInfinity, TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rcp_float() { TestUtils.AreEqual(-0.008100445f, rcp(-123.45f), 1, false); @@ -1796,7 +1796,7 @@ public static void rcp_float() TestUtils.AreEqual(0f, rcp(float.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rcp_float2() { TestUtils.AreEqual(float2(-0.008100445f, float.PositiveInfinity), rcp(float2(-123.45f, 0f)), 1, false); @@ -1804,21 +1804,21 @@ public static void rcp_float2() TestUtils.AreEqual(float2(0f, 0f), rcp(float2(float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rcp_float3() { TestUtils.AreEqual(float3(-0.008100445f, float.PositiveInfinity, 0.008100445f), rcp(float3(-123.45f, 0f, 123.45f)), 1, false); TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), 0f, 0f), rcp(float3(TestUtils.SignedFloatQNaN(), float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rcp_float4() { TestUtils.AreEqual(float4(-0.008100445f, float.PositiveInfinity, 0.008100445f, TestUtils.SignedFloatQNaN()), rcp(float4(-123.45f, 0f, 123.45f, TestUtils.SignedFloatQNaN())), 1, false); TestUtils.AreEqual(float4(0f, 0f, 0f, 0f), rcp(float4(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rcp_double() { TestUtils.AreEqual(-0.0081004455245038479, rcp(-123.45), 1, false); @@ -1828,7 +1828,7 @@ public static void rcp_double() TestUtils.AreEqual(0.0, rcp(double.PositiveInfinity), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rcp_double2() { TestUtils.AreEqual(double2(-0.0081004455245038479, double.PositiveInfinity), rcp(double2(-123.45, 0.0)), 1, false); @@ -1836,21 +1836,21 @@ public static void rcp_double2() TestUtils.AreEqual(double2(0.0, 0.0), rcp(double2(double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rcp_double3() { TestUtils.AreEqual(double3(-0.0081004455245038479, double.PositiveInfinity, 0.0081004455245038479), rcp(double3(-123.45, 0.0, 123.45)), 1, false); TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), 0.0, 0.0), rcp(double3(TestUtils.SignedDoubleQNaN(), double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rcp_double4() { TestUtils.AreEqual(double4(-0.0081004455245038479, double.PositiveInfinity, 0.0081004455245038479, TestUtils.SignedDoubleQNaN()), rcp(double4(-123.45, 0.0, 123.45, TestUtils.SignedDoubleQNaN())), 1, false); TestUtils.AreEqual(double4(0.0, 0.0, 0.0, 0.0), rcp(double4(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floor_float() { TestUtils.AreEqual(float.NegativeInfinity, floor(float.NegativeInfinity)); @@ -1865,7 +1865,7 @@ public static void floor_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), floor(TestUtils.SignedFloatQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floor_float2() { TestUtils.AreEqual(float2(float.NegativeInfinity, -101f), floor(float2(float.NegativeInfinity, -100.51f))); @@ -1875,7 +1875,7 @@ public static void floor_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()), floor(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floor_float3() { TestUtils.AreEqual(float3(float.NegativeInfinity, -101f, -101f), floor(float3(float.NegativeInfinity, -100.51f, -100.5f))); @@ -1884,7 +1884,7 @@ public static void floor_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), floor(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floor_float4() { TestUtils.AreEqual(float4(float.NegativeInfinity, -101f, -101f, -101f), floor(float4(float.NegativeInfinity, -100.51f, -100.5f, -100.49f))); @@ -1892,7 +1892,7 @@ public static void floor_float4() TestUtils.AreEqual(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), floor(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floor_double() { TestUtils.AreEqual(double.NegativeInfinity, floor(double.NegativeInfinity)); @@ -1907,7 +1907,7 @@ public static void floor_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), floor(TestUtils.SignedDoubleQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floor_double2() { TestUtils.AreEqual(double2(double.NegativeInfinity, -101.0), floor(double2(double.NegativeInfinity, -100.51))); @@ -1917,7 +1917,7 @@ public static void floor_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), floor(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floor_double3() { TestUtils.AreEqual(double3(double.NegativeInfinity, -101.0, -101.0), floor(double3(double.NegativeInfinity, -100.51, -100.5))); @@ -1926,7 +1926,7 @@ public static void floor_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), floor(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floor_double4() { TestUtils.AreEqual(double4(double.NegativeInfinity, -101.0, -101.0, -101.0), floor(double4(double.NegativeInfinity, -100.51, -100.5, -100.49))); @@ -1934,7 +1934,7 @@ public static void floor_double4() TestUtils.AreEqual(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), floor(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceil_float() { TestUtils.AreEqual(float.NegativeInfinity, ceil(float.NegativeInfinity)); @@ -1949,7 +1949,7 @@ public static void ceil_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), ceil(TestUtils.SignedFloatQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceil_float2() { TestUtils.AreEqual(float2(float.NegativeInfinity, -100f), ceil(float2(float.NegativeInfinity, -100.51f))); @@ -1959,7 +1959,7 @@ public static void ceil_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()), ceil(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceil_float3() { TestUtils.AreEqual(float3(float.NegativeInfinity, -100f, -100f), ceil(float3(float.NegativeInfinity, -100.51f, -100.5f))); @@ -1968,7 +1968,7 @@ public static void ceil_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), ceil(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceil_float4() { TestUtils.AreEqual(float4(float.NegativeInfinity, -100f, -100f, -100f), ceil(float4(float.NegativeInfinity, -100.51f, -100.5f, -100.49f))); @@ -1976,7 +1976,7 @@ public static void ceil_float4() TestUtils.AreEqual(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), ceil(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceil_double() { TestUtils.AreEqual(double.NegativeInfinity, ceil(double.NegativeInfinity)); @@ -1991,7 +1991,7 @@ public static void ceil_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), ceil(TestUtils.SignedDoubleQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceil_double2() { TestUtils.AreEqual(double2(double.NegativeInfinity, -100.0), ceil(double2(double.NegativeInfinity, -100.51))); @@ -2001,7 +2001,7 @@ public static void ceil_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), ceil(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceil_double3() { TestUtils.AreEqual(double3(double.NegativeInfinity, -100.0, -100.0), ceil(double3(double.NegativeInfinity, -100.51, -100.5))); @@ -2010,7 +2010,7 @@ public static void ceil_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), ceil(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceil_double4() { TestUtils.AreEqual(double4(double.NegativeInfinity, -100.0, -100.0, -100.0), ceil(double4(double.NegativeInfinity, -100.51, -100.5, -100.49))); @@ -2018,7 +2018,7 @@ public static void ceil_double4() TestUtils.AreEqual(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), ceil(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void round_float() { TestUtils.AreEqual(float.NegativeInfinity, round(float.NegativeInfinity)); @@ -2034,7 +2034,7 @@ public static void round_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), round(TestUtils.SignedFloatQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void round_float2() { TestUtils.AreEqual(float2(float.NegativeInfinity, -101f), round(float2(float.NegativeInfinity, -100.51f))); @@ -2045,7 +2045,7 @@ public static void round_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), round(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void round_float3() { TestUtils.AreEqual(float3(float.NegativeInfinity, -101f, -100f), round(float3(float.NegativeInfinity, -100.51f, -100.5f))); @@ -2054,7 +2054,7 @@ public static void round_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), round(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void round_float4() { TestUtils.AreEqual(float4(float.NegativeInfinity, -101f, -100f, -100f), round(float4(float.NegativeInfinity, -100.51f, -100.5f, -100.49f))); @@ -2062,7 +2062,7 @@ public static void round_float4() TestUtils.AreEqual(float4(102f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), round(float4(101.5f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void round_double() { TestUtils.AreEqual(double.NegativeInfinity, round(double.NegativeInfinity)); @@ -2078,7 +2078,7 @@ public static void round_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), round(TestUtils.SignedDoubleQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void round_double2() { TestUtils.AreEqual(double2(double.NegativeInfinity, -101.0), round(double2(double.NegativeInfinity, -100.51))); @@ -2089,7 +2089,7 @@ public static void round_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), round(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void round_double3() { TestUtils.AreEqual(double3(double.NegativeInfinity, -101.0, -100.0), round(double3(double.NegativeInfinity, -100.51, -100.5))); @@ -2098,7 +2098,7 @@ public static void round_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), round(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void round_double4() { TestUtils.AreEqual(double4(double.NegativeInfinity, -101.0, -100.0, -100.0), round(double4(double.NegativeInfinity, -100.51, -100.5, -100.49))); @@ -2106,7 +2106,7 @@ public static void round_double4() TestUtils.AreEqual(double4(102.0, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), round(double4(101.5, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void trunc_float() { TestUtils.AreEqual(float.NegativeInfinity, trunc(float.NegativeInfinity)); @@ -2122,7 +2122,7 @@ public static void trunc_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), trunc(TestUtils.SignedFloatQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void trunc_float2() { TestUtils.AreEqual(float2(float.NegativeInfinity, -100f), trunc(float2(float.NegativeInfinity, -100.51f))); @@ -2133,7 +2133,7 @@ public static void trunc_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), trunc(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void trunc_float3() { TestUtils.AreEqual(float3(float.NegativeInfinity, -100f, -100f), trunc(float3(float.NegativeInfinity, -100.51f, -100.5f))); @@ -2142,7 +2142,7 @@ public static void trunc_float3() TestUtils.AreEqual(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), trunc(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void trunc_float4() { TestUtils.AreEqual(float4(float.NegativeInfinity, -100f, -100f, -100f), trunc(float4(float.NegativeInfinity, -100.51f, -100.5f, -100.49f))); @@ -2150,7 +2150,7 @@ public static void trunc_float4() TestUtils.AreEqual(float4(101f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), trunc(float4(101.5f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void trunc_double() { TestUtils.AreEqual(double.NegativeInfinity, trunc(double.NegativeInfinity)); @@ -2166,7 +2166,7 @@ public static void trunc_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), trunc(TestUtils.SignedDoubleQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void trunc_double2() { TestUtils.AreEqual(double2(double.NegativeInfinity, -100.0), trunc(double2(double.NegativeInfinity, -100.51))); @@ -2177,7 +2177,7 @@ public static void trunc_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), trunc(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void trunc_double3() { TestUtils.AreEqual(double3(double.NegativeInfinity, -100.0, -100.0), trunc(double3(double.NegativeInfinity, -100.51, -100.5))); @@ -2186,7 +2186,7 @@ public static void trunc_double3() TestUtils.AreEqual(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), trunc(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void trunc_double4() { TestUtils.AreEqual(double4(double.NegativeInfinity, -100.0, -100.0, -100.0), trunc(double4(double.NegativeInfinity, -100.51, -100.5, -100.49))); @@ -2194,7 +2194,7 @@ public static void trunc_double4() TestUtils.AreEqual(double4(101.0, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), trunc(double4(101.5, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void frac_float() { TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), frac(float.NegativeInfinity), 64, false); @@ -2206,7 +2206,7 @@ public static void frac_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), frac(TestUtils.SignedFloatQNaN()), 64, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void frac_float2() { TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), 0f), frac(float2(float.NegativeInfinity, -1E+20f)), 64, false); @@ -2215,7 +2215,7 @@ public static void frac_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), frac(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 64, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void frac_float3() { TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), 0f, 0.7f), frac(float3(float.NegativeInfinity, -1E+20f, -100.3f)), 64, false); @@ -2223,14 +2223,14 @@ public static void frac_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), frac(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 64, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void frac_float4() { TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), 0f, 0.7f, 0f), frac(float4(float.NegativeInfinity, -1E+20f, -100.3f, 0f)), 64, false); TestUtils.AreEqual(float4(0.8f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), frac(float4(100.8f, float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 64, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void frac_double() { TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), frac(double.NegativeInfinity), 64, false); @@ -2242,7 +2242,7 @@ public static void frac_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), frac(TestUtils.SignedDoubleQNaN()), 64, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void frac_double2() { TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), 0.0), frac(double2(double.NegativeInfinity, -1E+20)), 64, false); @@ -2251,7 +2251,7 @@ public static void frac_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), frac(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 64, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void frac_double3() { TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), 0.0, 0.7), frac(double3(double.NegativeInfinity, -1E+20, -100.3)), 64, false); @@ -2259,14 +2259,14 @@ public static void frac_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), frac(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 64, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void frac_double4() { TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), 0.0, 0.7, 0.0), frac(double4(double.NegativeInfinity, -1E+20, -100.3, 0.0)), 64, false); TestUtils.AreEqual(double4(0.8, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), frac(double4(100.8, double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 64, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lerp_float() { TestUtils.AreEqual(-967.77f, lerp(-123.45f, 439.43f, -1.5f), 1, false); @@ -2275,27 +2275,27 @@ public static void lerp_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), lerp(-123.45f, 439.43f, TestUtils.SignedFloatQNaN()), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lerp_float2() { TestUtils.AreEqual(float2(-967.77f, 157.99f), lerp(float2(-123.45f, -123.45f), float2(439.43f, 439.43f), float2(-1.5f, 0.5f)), 1, false); TestUtils.AreEqual(float2(2972.39f, TestUtils.SignedFloatQNaN()), lerp(float2(-123.45f, -123.45f), float2(439.43f, 439.43f), float2(5.5f, TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lerp_float3() { TestUtils.AreEqual(float3(-967.77f, 157.99f, 2972.39f), lerp(float3(-123.45f, -123.45f, -123.45f), float3(439.43f, 439.43f, 439.43f), float3(-1.5f, 0.5f, 5.5f)), 1, false); TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), lerp(float3(-123.45f, -123.45f, -123.45f), float3(439.43f, 439.43f, 439.43f), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lerp_float4() { TestUtils.AreEqual(float4(-967.77f, 157.99f, 2972.39f, TestUtils.SignedFloatQNaN()), lerp(float4(-123.45f, -123.45f, -123.45f, -123.45f), float4(439.43f, 439.43f, 439.43f, 439.43f), float4(-1.5f, 0.5f, 5.5f, TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lerp_double() { TestUtils.AreEqual(-967.77, lerp(-123.45, 439.43, -1.5), 1, false); @@ -2304,27 +2304,27 @@ public static void lerp_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), lerp(-123.45, 439.43, TestUtils.SignedDoubleQNaN()), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lerp_double2() { TestUtils.AreEqual(double2(-967.77, 157.99), lerp(double2(-123.45, -123.45), double2(439.43, 439.43), double2(-1.5, 0.5)), 1, false); TestUtils.AreEqual(double2(2972.39, TestUtils.SignedDoubleQNaN()), lerp(double2(-123.45, -123.45), double2(439.43, 439.43), double2(5.5, TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lerp_double3() { TestUtils.AreEqual(double3(-967.77, 157.99, 2972.39), lerp(double3(-123.45, -123.45, -123.45), double3(439.43, 439.43, 439.43), double3(-1.5, 0.5, 5.5)), 1, false); TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), lerp(double3(-123.45, -123.45, -123.45), double3(439.43, 439.43, 439.43), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void lerp_double4() { TestUtils.AreEqual(double4(-967.77, 157.99, 2972.39, TestUtils.SignedDoubleQNaN()), lerp(double4(-123.45, -123.45, -123.45, -123.45), double4(439.43, 439.43, 439.43, 439.43), double4(-1.5, 0.5, 5.5, TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void unlerp_float() { TestUtils.AreEqual(-0.232465178f, unlerp(-123.45f, 439.43f, -254.3f), 4, false); @@ -2337,7 +2337,7 @@ public static void unlerp_float() TestUtils.AreEqual(-0.3422932f, unlerp(439.43f, -123.45f, 632.1f), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void unlerp_float2() { TestUtils.AreEqual(float2(-0.232465178f, 0.219318509f), unlerp(float2(-123.45f, -123.45f), float2(439.43f, 439.43f), float2(-254.3f, 0f)), 4, false); @@ -2346,7 +2346,7 @@ public static void unlerp_float2() TestUtils.AreEqual(float2(0.7806815f, -0.3422932f), unlerp(float2(439.43f, 439.43f), float2(-123.45f, -123.45f), float2(0f, 632.1f)), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void unlerp_float3() { TestUtils.AreEqual(float3(-0.232465178f, 0.219318509f, 1.34229326f), unlerp(float3(-123.45f, -123.45f, -123.45f), float3(439.43f, 439.43f, 439.43f), float3(-254.3f, 0f, 632.1f)), 4, false); @@ -2354,14 +2354,14 @@ public static void unlerp_float3() TestUtils.AreEqual(float3(0.7806815f, -0.3422932f, -0.3422932f), unlerp(float3(439.43f, 439.43f, 439.43f), float3(-123.45f, -123.45f, -123.45f), float3(0f, 632.1f, 632.1f)), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void unlerp_float4() { TestUtils.AreEqual(float4(-0.232465178f, 0.219318509f, 1.34229326f, float.NegativeInfinity), unlerp(float4(-123.45f, -123.45f, -123.45f, 123.4f), float4(439.43f, 439.43f, 439.43f, 123.4f), float4(-254.3f, 0f, 632.1f, -430f)), 4, false); TestUtils.AreEqual(float4(float.PositiveInfinity, 1.23246515f, 0.7806815f, -0.3422932f), unlerp(float4(123.4f, 439.43f, 439.43f, 439.43f), float4(123.4f, -123.45f, -123.45f, -123.45f), float4(430f, -254.3f, 0f, 632.1f)), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void unlerp_double() { TestUtils.AreEqual(-0.23246517907902217, unlerp(-123.45, 439.43, -254.3), 4, false); @@ -2374,7 +2374,7 @@ public static void unlerp_double() TestUtils.AreEqual(-0.34229320636725413, unlerp(439.43, -123.45, 632.1), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void unlerp_double2() { TestUtils.AreEqual(double2(-0.23246517907902217, 0.21931850483229107), unlerp(double2(-123.45, -123.45), double2(439.43, 439.43), double2(-254.3, 0.0)), 4, false); @@ -2383,7 +2383,7 @@ public static void unlerp_double2() TestUtils.AreEqual(double2(0.78068149516770891, -0.34229320636725413), unlerp(double2(439.43, 439.43), double2(-123.45, -123.45), double2(0.0, 632.1)), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void unlerp_double3() { TestUtils.AreEqual(double3(-0.23246517907902217, 0.21931850483229107, 1.3422932063672541), unlerp(double3(-123.45, -123.45, -123.45), double3(439.43, 439.43, 439.43), double3(-254.3, 0.0, 632.1)), 4, false); @@ -2391,14 +2391,14 @@ public static void unlerp_double3() TestUtils.AreEqual(double3(0.78068149516770891, -0.34229320636725413, -0.34229320636725413), unlerp(double3(439.43, 439.43, 439.43), double3(-123.45, -123.45, -123.45), double3(0.0, 632.1, 632.1)), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void unlerp_double4() { TestUtils.AreEqual(double4(-0.23246517907902217, 0.21931850483229107, 1.3422932063672541, double.NegativeInfinity), unlerp(double4(-123.45, -123.45, -123.45, 123.4), double4(439.43, 439.43, 439.43, 123.4), double4(-254.3, 0.0, 632.1, -430.0)), 4, false); TestUtils.AreEqual(double4(double.PositiveInfinity, 1.2324651790790222, 0.78068149516770891, -0.34229320636725413), unlerp(double4(123.4, 439.43, 439.43, 439.43), double4(123.4, -123.45, -123.45, -123.45), double4(430.0, -254.3, 0.0, 632.1)), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void remap_float() { TestUtils.AreEqual(529.0331f, remap(-123.45f, 439.43f, 541.3f, 631.5f, -200f), 4, false); @@ -2414,7 +2414,7 @@ public static void remap_float() TestUtils.AreEqual(float.PositiveInfinity, remap(-123.45f, -123.45f, 541.3f, 631.5f, -100f), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void remap_float2() { TestUtils.AreEqual(float2(529.0331f, 545.0578f), remap(float2(-123.45f, -123.45f), float2(439.43f, 439.43f), float2(541.3f, 541.3f), float2(631.5f, 631.5f), float2(-200f, -100f)), 4, false); @@ -2425,7 +2425,7 @@ public static void remap_float2() TestUtils.AreEqual(float2(float.PositiveInfinity, float.PositiveInfinity), remap(float2(-123.45f, -123.45f), float2(-123.45f, -123.45f), float2(541.3f, 541.3f), float2(631.5f, 631.5f), float2(-100f, -100f)), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void remap_float3() { TestUtils.AreEqual(float3(529.0331f, 545.0578f, 641.2062f), remap(float3(-123.45f, -123.45f, -123.45f), float3(439.43f, 439.43f, 439.43f), float3(541.3f, 541.3f, 541.3f), float3(631.5f, 631.5f, 631.5f), float3(-200f, -100f, 500f)), 4, false); @@ -2434,7 +2434,7 @@ public static void remap_float3() TestUtils.AreEqual(float3(float.NegativeInfinity, float.PositiveInfinity, float.PositiveInfinity), remap(float3(-123.45f, -123.45f, -123.45f), float3(-123.45f, -123.45f, -123.45f), float3(541.3f, 541.3f, 541.3f), float3(631.5f, 631.5f, 631.5f), float3(-200f, -100f, -100f)), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void remap_float4() { TestUtils.AreEqual(float4(529.0331f, 545.0578f, 641.2062f, 643.7669f), remap(float4(-123.45f, -123.45f, -123.45f, 439.43f), float4(439.43f, 439.43f, 439.43f, -123.45f), float4(541.3f, 541.3f, 541.3f, 541.3f), float4(631.5f, 631.5f, 631.5f, 631.5f), float4(-200f, -100f, 500f, -200f)), 4, false); @@ -2442,7 +2442,7 @@ public static void remap_float4() TestUtils.AreEqual(float4(531.5938f, float.NegativeInfinity, float.PositiveInfinity, float.PositiveInfinity), remap(float4(-123.45f, -123.45f, -123.45f, -123.45f), float4(439.43f, -123.45f, -123.45f, -123.45f), float4(631.5f, 541.3f, 541.3f, 541.3f), float4(541.3f, 631.5f, 631.5f, 631.5f), float4(500f, -200f, -100f, -100f)), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void remap_double() { TestUtils.AreEqual(529.03306921546334, remap(-123.45, 439.43, 541.3, 631.5, -200.0), 4, false); @@ -2458,7 +2458,7 @@ public static void remap_double() TestUtils.AreEqual(double.PositiveInfinity, remap(-123.45, -123.45, 541.3, 631.5, -100.0), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void remap_double2() { TestUtils.AreEqual(double2(529.03306921546334, 545.057799175668), remap(double2(-123.45, -123.45), double2(439.43, 439.43), double2(541.3, 541.3), double2(631.5, 631.5), double2(-200.0, -100.0)), 4, false); @@ -2469,7 +2469,7 @@ public static void remap_double2() TestUtils.AreEqual(double2(double.PositiveInfinity, double.PositiveInfinity), remap(double2(-123.45, -123.45), double2(-123.45, -123.45), double2(541.3, 541.3), double2(631.5, 631.5), double2(-100.0, -100.0)), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void remap_double3() { TestUtils.AreEqual(double3(529.03306921546334, 545.057799175668, 641.206178936896), remap(double3(-123.45, -123.45, -123.45), double3(439.43, 439.43, 439.43), double3(541.3, 541.3, 541.3), double3(631.5, 631.5, 631.5), double3(-200.0, -100.0, 500.0)), 4, false); @@ -2478,7 +2478,7 @@ public static void remap_double3() TestUtils.AreEqual(double3(double.NegativeInfinity, double.PositiveInfinity, double.PositiveInfinity), remap(double3(-123.45, -123.45, -123.45), double3(-123.45, -123.45, -123.45), double3(541.3, 541.3, 541.3), double3(631.5, 631.5, 631.5), double3(-200.0, -100.0, -100.0)), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void remap_double4() { TestUtils.AreEqual(double4(529.03306921546334, 545.057799175668, 641.206178936896, 643.76693078453673), remap(double4(-123.45, -123.45, -123.45, 439.43), double4(439.43, 439.43, 439.43, -123.45), double4(541.3, 541.3, 541.3, 541.3), double4(631.5, 631.5, 631.5, 631.5), double4(-200.0, -100.0, 500.0, -200.0)), 4, false); @@ -2486,7 +2486,7 @@ public static void remap_double4() TestUtils.AreEqual(double4(531.59382106310409, double.NegativeInfinity, double.PositiveInfinity, double.PositiveInfinity), remap(double4(-123.45, -123.45, -123.45, -123.45), double4(439.43, -123.45, -123.45, -123.45), double4(631.5, 541.3, 541.3, 541.3), double4(541.3, 631.5, 631.5, 631.5), double4(500.0, -200.0, -100.0, -100.0)), 4, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_int() { TestUtils.AreEqual(-123, clamp(-2147483648, -123, 439)); @@ -2499,7 +2499,7 @@ public static void clamp_int() TestUtils.AreEqual(439, clamp(2147483647, -123, 439)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_int2() { TestUtils.AreEqual(int2(-123, -123), clamp(int2(-2147483648, -254), int2(-123, -123), int2(439, 439))); @@ -2508,7 +2508,7 @@ public static void clamp_int2() TestUtils.AreEqual(int2(439, 439), clamp(int2(632, 2147483647), int2(439, -123), int2(-123, 439))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_int3() { TestUtils.AreEqual(int3(-123, -123, 246), clamp(int3(-2147483648, -254, 246), int3(-123, -123, -123), int3(439, 439, 439))); @@ -2516,14 +2516,14 @@ public static void clamp_int3() TestUtils.AreEqual(int3(439, 439, 439), clamp(int3(632, 2147483647, 2147483647), int3(439, -123, -123), int3(-123, 439, 439))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_int4() { TestUtils.AreEqual(int4(-123, -123, 246, 439), clamp(int4(-2147483648, -254, 246, 632), int4(-123, -123, -123, -123), int4(439, 439, 439, 439))); TestUtils.AreEqual(int4(439, 439, 439, 439), clamp(int4(-254, 246, 632, 2147483647), int4(439, 439, 439, -123), int4(-123, -123, -123, 439))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_uint() { TestUtils.AreEqual(123u, clamp(0u, 123u, 439u)); @@ -2536,7 +2536,7 @@ public static void clamp_uint() TestUtils.AreEqual(439u, clamp(4294967295u, 123u, 439u)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_uint2() { TestUtils.AreEqual(uint2(123u, 123u), clamp(uint2(0u, 54u), uint2(123u, 123u), uint2(439u, 439u))); @@ -2545,7 +2545,7 @@ public static void clamp_uint2() TestUtils.AreEqual(uint2(439u, 439u), clamp(uint2(632u, 4294967295u), uint2(439u, 123u), uint2(123u, 439u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_uint3() { TestUtils.AreEqual(uint3(123u, 123u, 246u), clamp(uint3(0u, 54u, 246u), uint3(123u, 123u, 123u), uint3(439u, 439u, 439u))); @@ -2553,14 +2553,14 @@ public static void clamp_uint3() TestUtils.AreEqual(uint3(439u, 439u, 439u), clamp(uint3(632u, 4294967295u, 4294967295u), uint3(439u, 123u, 123u), uint3(123u, 439u, 439u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_uint4() { TestUtils.AreEqual(uint4(123u, 123u, 246u, 439u), clamp(uint4(0u, 54u, 246u, 632u), uint4(123u, 123u, 123u, 123u), uint4(439u, 439u, 439u, 439u))); TestUtils.AreEqual(uint4(439u, 439u, 439u, 439u), clamp(uint4(54u, 246u, 632u, 4294967295u), uint4(439u, 439u, 439u, 123u), uint4(123u, 123u, 123u, 439u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_long() { TestUtils.AreEqual(-123L, clamp(-9223372036854775808L, -123L, 439L)); @@ -2573,7 +2573,7 @@ public static void clamp_long() TestUtils.AreEqual(439L, clamp(9223372036854775807L, -123L, 439L)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_ulong() { TestUtils.AreEqual(123UL, clamp(0UL, 123UL, 439UL)); @@ -2586,7 +2586,7 @@ public static void clamp_ulong() TestUtils.AreEqual(439UL, clamp(18446744073709551615UL, 123UL, 439UL)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_float() { TestUtils.AreEqual(-123.45f, clamp(float.NegativeInfinity, -123.45f, 439.43f)); @@ -2600,7 +2600,7 @@ public static void clamp_float() TestUtils.AreEqual(439.43f, clamp(TestUtils.SignedFloatQNaN(), -123.45f, 439.43f)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_float2() { TestUtils.AreEqual(float2(-123.45f, -123.45f), clamp(float2(float.NegativeInfinity, -254.3f), float2(-123.45f, -123.45f), float2(439.43f, 439.43f))); @@ -2610,7 +2610,7 @@ public static void clamp_float2() TestUtils.AreEqual(float2(439.43f, 439.43f), clamp(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float2(-123.45f, -123.45f), float2(439.43f, 439.43f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_float3() { TestUtils.AreEqual(float3(-123.45f, -123.45f, 246.3f), clamp(float3(float.NegativeInfinity, -254.3f, 246.3f), float3(-123.45f, -123.45f, -123.45f), float3(439.43f, 439.43f, 439.43f))); @@ -2618,7 +2618,7 @@ public static void clamp_float3() TestUtils.AreEqual(float3(439.43f, 439.43f, 439.43f), clamp(float3(632.1f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float3(439.43f, -123.45f, -123.45f), float3(-123.45f, 439.43f, 439.43f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_float4() { TestUtils.AreEqual(float4(-123.45f, -123.45f, 246.3f, 439.43f), clamp(float4(float.NegativeInfinity, -254.3f, 246.3f, 632.1f), float4(-123.45f, -123.45f, -123.45f, -123.45f), float4(439.43f, 439.43f, 439.43f, 439.43f))); @@ -2626,7 +2626,7 @@ public static void clamp_float4() TestUtils.AreEqual(float4(439.43f, 439.43f, 439.43f, 439.43f), clamp(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float4(-123.45f, -123.45f, -123.45f, -123.45f), float4(439.43f, 439.43f, 439.43f, 439.43f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_double() { TestUtils.AreEqual(-123.45, clamp(double.NegativeInfinity, -123.45, 439.43)); @@ -2640,7 +2640,7 @@ public static void clamp_double() TestUtils.AreEqual(439.43, clamp(TestUtils.SignedDoubleQNaN(), -123.45, 439.43)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_double2() { TestUtils.AreEqual(double2(-123.45, -123.45), clamp(double2(double.NegativeInfinity, -254.3), double2(-123.45, -123.45), double2(439.43, 439.43))); @@ -2650,7 +2650,7 @@ public static void clamp_double2() TestUtils.AreEqual(double2(439.43, 439.43), clamp(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double2(-123.45, -123.45), double2(439.43, 439.43))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_double3() { TestUtils.AreEqual(double3(-123.45, -123.45, 246.3), clamp(double3(double.NegativeInfinity, -254.3, 246.3), double3(-123.45, -123.45, -123.45), double3(439.43, 439.43, 439.43))); @@ -2658,7 +2658,7 @@ public static void clamp_double3() TestUtils.AreEqual(double3(439.43, 439.43, 439.43), clamp(double3(632.1, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double3(439.43, -123.45, -123.45), double3(-123.45, 439.43, 439.43))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void clamp_double4() { TestUtils.AreEqual(double4(-123.45, -123.45, 246.3, 439.43), clamp(double4(double.NegativeInfinity, -254.3, 246.3, 632.1), double4(-123.45, -123.45, -123.45, -123.45), double4(439.43, 439.43, 439.43, 439.43))); @@ -2666,7 +2666,7 @@ public static void clamp_double4() TestUtils.AreEqual(double4(439.43, 439.43, 439.43, 439.43), clamp(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double4(-123.45, -123.45, -123.45, -123.45), double4(439.43, 439.43, 439.43, 439.43))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void saturate_float() { TestUtils.AreEqual(0f, saturate(float.NegativeInfinity)); @@ -2679,7 +2679,7 @@ public static void saturate_float() TestUtils.AreEqual(1f, saturate(TestUtils.SignedFloatQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void saturate_float2() { TestUtils.AreEqual(float2(0f, 0f), saturate(float2(float.NegativeInfinity, -123.45f))); @@ -2688,7 +2688,7 @@ public static void saturate_float2() TestUtils.AreEqual(float2(1f, 1f), saturate(float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void saturate_float3() { TestUtils.AreEqual(float3(0f, 0f, 0f), saturate(float3(float.NegativeInfinity, -123.45f, 0f))); @@ -2696,14 +2696,14 @@ public static void saturate_float3() TestUtils.AreEqual(float3(1f, 1f, 1f), saturate(float3(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void saturate_float4() { TestUtils.AreEqual(float4(0f, 0f, 0f, 0.5f), saturate(float4(float.NegativeInfinity, -123.45f, 0f, 0.5f))); TestUtils.AreEqual(float4(1f, 1f, 1f, 1f), saturate(float4(1f, 123.45f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void saturate_double() { TestUtils.AreEqual(0.0, saturate(double.NegativeInfinity)); @@ -2716,7 +2716,7 @@ public static void saturate_double() TestUtils.AreEqual(1.0, saturate(TestUtils.SignedDoubleQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void saturate_double2() { TestUtils.AreEqual(double2(0.0, 0.0), saturate(double2(double.NegativeInfinity, -123.45))); @@ -2725,7 +2725,7 @@ public static void saturate_double2() TestUtils.AreEqual(double2(1.0, 1.0), saturate(double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void saturate_double3() { TestUtils.AreEqual(double3(0.0, 0.0, 0.0), saturate(double3(double.NegativeInfinity, -123.45, 0.0))); @@ -2733,14 +2733,14 @@ public static void saturate_double3() TestUtils.AreEqual(double3(1.0, 1.0, 1.0), saturate(double3(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void saturate_double4() { TestUtils.AreEqual(double4(0.0, 0.0, 0.0, 0.5), saturate(double4(double.NegativeInfinity, -123.45, 0.0, 0.5))); TestUtils.AreEqual(double4(1.0, 1.0, 1.0, 1.0), saturate(double4(1.0, 123.45, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void step_float() { TestUtils.AreEqual(0f, step(-123.45f, float.NegativeInfinity)); @@ -2770,7 +2770,7 @@ public static void step_float() TestUtils.AreEqual(0f, step(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void step_float2() { TestUtils.AreEqual(float2(0f, 0f), step(float2(-123.45f, -123.45f), float2(float.NegativeInfinity, -200f))); @@ -2788,7 +2788,7 @@ public static void step_float2() TestUtils.AreEqual(float2(0f, 0f), step(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void step_float3() { TestUtils.AreEqual(float3(0f, 0f, 1f), step(float3(-123.45f, -123.45f, -123.45f), float3(float.NegativeInfinity, -200f, 200f))); @@ -2802,7 +2802,7 @@ public static void step_float3() TestUtils.AreEqual(float3(0f, 0f, 0f), step(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void step_float4() { TestUtils.AreEqual(float4(0f, 0f, 1f, 1f), step(float4(-123.45f, -123.45f, -123.45f, -123.45f), float4(float.NegativeInfinity, -200f, 200f, float.PositiveInfinity))); @@ -2814,7 +2814,7 @@ public static void step_float4() TestUtils.AreEqual(float4(0f, 0f, 0f, 0f), step(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void step_double() { TestUtils.AreEqual(0.0, step(-123.45, double.NegativeInfinity)); @@ -2844,7 +2844,7 @@ public static void step_double() TestUtils.AreEqual(0.0, step(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void step_double2() { TestUtils.AreEqual(double2(0.0, 0.0), step(double2(-123.45, -123.45), double2(double.NegativeInfinity, -200.0))); @@ -2862,7 +2862,7 @@ public static void step_double2() TestUtils.AreEqual(double2(0.0, 0.0), step(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void step_double3() { TestUtils.AreEqual(double3(0.0, 0.0, 1.0), step(double3(-123.45, -123.45, -123.45), double3(double.NegativeInfinity, -200.0, 200.0))); @@ -2876,7 +2876,7 @@ public static void step_double3() TestUtils.AreEqual(double3(0.0, 0.0, 0.0), step(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void step_double4() { TestUtils.AreEqual(double4(0.0, 0.0, 1.0, 1.0), step(double4(-123.45, -123.45, -123.45, -123.45), double4(double.NegativeInfinity, -200.0, 200.0, double.PositiveInfinity))); @@ -2888,7 +2888,7 @@ public static void step_double4() TestUtils.AreEqual(double4(0.0, 0.0, 0.0, 0.0), step(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_int() { TestUtils.AreEqual(-2147483648, min(-2147483648, -2147483648)); @@ -2906,7 +2906,7 @@ public static void min_int() TestUtils.AreEqual(2147483647, min(2147483647, 2147483647)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_int2() { TestUtils.AreEqual(int2(-2147483648, -2147483648), min(int2(-2147483648, -2147483648), int2(-2147483648, -1))); @@ -2918,7 +2918,7 @@ public static void min_int2() TestUtils.AreEqual(int2(2147483647, 2147483647), min(int2(2147483647, 2147483647), int2(2147483647, 2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_int3() { TestUtils.AreEqual(int3(-2147483648, -2147483648, -2147483648), min(int3(-2147483648, -2147483648, -1), int3(-2147483648, -1, -2147483648))); @@ -2928,7 +2928,7 @@ public static void min_int3() TestUtils.AreEqual(int3(2147483647, 2147483647, 2147483647), min(int3(2147483647, 2147483647, 2147483647), int3(2147483647, 2147483647, 2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_int4() { TestUtils.AreEqual(int4(-2147483648, -2147483648, -2147483648, -3456), min(int4(-2147483648, -2147483648, -1, -1234), int4(-2147483648, -1, -2147483648, -3456))); @@ -2937,7 +2937,7 @@ public static void min_int4() TestUtils.AreEqual(int4(2147483647, 2147483647, 2147483647, 2147483647), min(int4(2147483647, 2147483647, 2147483647, 2147483647), int4(2147483647, 2147483647, 2147483647, 2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_uint() { TestUtils.AreEqual(1234u, min(1234u, 3456u)); @@ -2949,7 +2949,7 @@ public static void min_uint() TestUtils.AreEqual(4294967295u, min(4294967295u, 4294967295u)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_uint2() { TestUtils.AreEqual(uint2(1234u, 1234u), min(uint2(1234u, 3456u), uint2(3456u, 1234u))); @@ -2958,7 +2958,7 @@ public static void min_uint2() TestUtils.AreEqual(uint2(4294967295u, 4294967295u), min(uint2(4294967295u, 4294967295u), uint2(4294967295u, 4294967295u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_uint3() { TestUtils.AreEqual(uint3(1234u, 1234u, 7u), min(uint3(1234u, 3456u, 4294967040u), uint3(3456u, 1234u, 7u))); @@ -2966,14 +2966,14 @@ public static void min_uint3() TestUtils.AreEqual(uint3(4294967295u, 4294967295u, 4294967295u), min(uint3(4294967295u, 4294967295u, 4294967295u), uint3(4294967295u, 4294967295u, 4294967295u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_uint4() { TestUtils.AreEqual(uint4(1234u, 1234u, 7u, 7u), min(uint4(1234u, 3456u, 4294967040u, 7u), uint4(3456u, 1234u, 7u, 4294967040u))); TestUtils.AreEqual(uint4(1u, 1u, 4294967295u, 4294967295u), min(uint4(1u, 4294967295u, 4294967295u, 4294967295u), uint4(4294967295u, 1u, 4294967295u, 4294967295u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_long() { TestUtils.AreEqual(-9223372036854775808L, min(-9223372036854775808L, -9223372036854775808L)); @@ -2991,7 +2991,7 @@ public static void min_long() TestUtils.AreEqual(9223372036854775807L, min(9223372036854775807L, 9223372036854775807L)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_ulong() { TestUtils.AreEqual(1234UL, min(1234UL, 3456UL)); @@ -3003,7 +3003,7 @@ public static void min_ulong() TestUtils.AreEqual(18446744073709551615UL, min(18446744073709551615UL, 18446744073709551615UL)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_float() { TestUtils.AreEqual(float.NegativeInfinity, min(float.NegativeInfinity, float.NegativeInfinity)); @@ -3024,7 +3024,7 @@ public static void min_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), min(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_float2() { TestUtils.AreEqual(float2(float.NegativeInfinity, float.NegativeInfinity), min(float2(float.NegativeInfinity, float.NegativeInfinity), float2(float.NegativeInfinity, -1f))); @@ -3037,7 +3037,7 @@ public static void min_float2() TestUtils.AreEqual(float2(2.3f, TestUtils.SignedFloatQNaN()), min(float2(2.3f, TestUtils.SignedFloatQNaN()), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_float3() { TestUtils.AreEqual(float3(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity), min(float3(float.NegativeInfinity, float.NegativeInfinity, -1f), float3(float.NegativeInfinity, -1f, float.NegativeInfinity))); @@ -3048,7 +3048,7 @@ public static void min_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), min(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_float4() { TestUtils.AreEqual(float4(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, -3456.7f), min(float4(float.NegativeInfinity, float.NegativeInfinity, -1f, -1234.56f), float4(float.NegativeInfinity, -1f, float.NegativeInfinity, -3456.7f))); @@ -3057,7 +3057,7 @@ public static void min_float4() TestUtils.AreEqual(float4(float.PositiveInfinity, 2.3f, 2.3f, TestUtils.SignedFloatQNaN()), min(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), 2.3f, TestUtils.SignedFloatQNaN()), float4(float.PositiveInfinity, 2.3f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_double() { TestUtils.AreEqual(double.NegativeInfinity, min(double.NegativeInfinity, double.NegativeInfinity)); @@ -3078,7 +3078,7 @@ public static void min_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), min(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_double2() { TestUtils.AreEqual(double2(double.NegativeInfinity, double.NegativeInfinity), min(double2(double.NegativeInfinity, double.NegativeInfinity), double2(double.NegativeInfinity, -1.0))); @@ -3091,7 +3091,7 @@ public static void min_double2() TestUtils.AreEqual(double2(2.3, TestUtils.SignedDoubleQNaN()), min(double2(2.3, TestUtils.SignedDoubleQNaN()), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_double3() { TestUtils.AreEqual(double3(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity), min(double3(double.NegativeInfinity, double.NegativeInfinity, -1.0), double3(double.NegativeInfinity, -1.0, double.NegativeInfinity))); @@ -3102,7 +3102,7 @@ public static void min_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), min(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void min_double4() { TestUtils.AreEqual(double4(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity, -3456.7), min(double4(double.NegativeInfinity, double.NegativeInfinity, -1.0, -1234.56), double4(double.NegativeInfinity, -1.0, double.NegativeInfinity, -3456.7))); @@ -3111,7 +3111,7 @@ public static void min_double4() TestUtils.AreEqual(double4(double.PositiveInfinity, 2.3, 2.3, TestUtils.SignedDoubleQNaN()), min(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), 2.3, TestUtils.SignedDoubleQNaN()), double4(double.PositiveInfinity, 2.3, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_int() { TestUtils.AreEqual(-2147483648, max(-2147483648, -2147483648)); @@ -3129,7 +3129,7 @@ public static void max_int() TestUtils.AreEqual(2147483647, max(2147483647, 2147483647)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_int2() { TestUtils.AreEqual(int2(-2147483648, -1), max(int2(-2147483648, -2147483648), int2(-2147483648, -1))); @@ -3141,7 +3141,7 @@ public static void max_int2() TestUtils.AreEqual(int2(2147483647, 2147483647), max(int2(2147483647, 2147483647), int2(2147483647, 2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_int3() { TestUtils.AreEqual(int3(-2147483648, -1, -1), max(int3(-2147483648, -2147483648, -1), int3(-2147483648, -1, -2147483648))); @@ -3151,7 +3151,7 @@ public static void max_int3() TestUtils.AreEqual(int3(2147483647, 2147483647, 2147483647), max(int3(2147483647, 2147483647, 2147483647), int3(2147483647, 2147483647, 2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_int4() { TestUtils.AreEqual(int4(-2147483648, -1, -1, -1234), max(int4(-2147483648, -2147483648, -1, -1234), int4(-2147483648, -1, -2147483648, -3456))); @@ -3160,7 +3160,7 @@ public static void max_int4() TestUtils.AreEqual(int4(2147483647, 2147483647, 2147483647, 2147483647), max(int4(2147483647, 2147483647, 2147483647, 2147483647), int4(2147483647, 2147483647, 2147483647, 2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_uint() { TestUtils.AreEqual(3456u, max(1234u, 3456u)); @@ -3172,7 +3172,7 @@ public static void max_uint() TestUtils.AreEqual(4294967295u, max(4294967295u, 4294967295u)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_uint2() { TestUtils.AreEqual(uint2(3456u, 3456u), max(uint2(1234u, 3456u), uint2(3456u, 1234u))); @@ -3181,7 +3181,7 @@ public static void max_uint2() TestUtils.AreEqual(uint2(4294967295u, 4294967295u), max(uint2(4294967295u, 4294967295u), uint2(4294967295u, 4294967295u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_uint3() { TestUtils.AreEqual(uint3(3456u, 3456u, 4294967040u), max(uint3(1234u, 3456u, 4294967040u), uint3(3456u, 1234u, 7u))); @@ -3189,14 +3189,14 @@ public static void max_uint3() TestUtils.AreEqual(uint3(4294967295u, 4294967295u, 4294967295u), max(uint3(4294967295u, 4294967295u, 4294967295u), uint3(4294967295u, 4294967295u, 4294967295u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_uint4() { TestUtils.AreEqual(uint4(3456u, 3456u, 4294967040u, 4294967040u), max(uint4(1234u, 3456u, 4294967040u, 7u), uint4(3456u, 1234u, 7u, 4294967040u))); TestUtils.AreEqual(uint4(4294967295u, 4294967295u, 4294967295u, 4294967295u), max(uint4(1u, 4294967295u, 4294967295u, 4294967295u), uint4(4294967295u, 1u, 4294967295u, 4294967295u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_long() { TestUtils.AreEqual(-9223372036854775808L, max(-9223372036854775808L, -9223372036854775808L)); @@ -3214,7 +3214,7 @@ public static void max_long() TestUtils.AreEqual(9223372036854775807L, max(9223372036854775807L, 9223372036854775807L)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_ulong() { TestUtils.AreEqual(3456UL, max(1234UL, 3456UL)); @@ -3226,7 +3226,7 @@ public static void max_ulong() TestUtils.AreEqual(18446744073709551615UL, max(18446744073709551615UL, 18446744073709551615UL)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_float() { TestUtils.AreEqual(float.NegativeInfinity, max(float.NegativeInfinity, float.NegativeInfinity)); @@ -3247,7 +3247,7 @@ public static void max_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), max(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_float2() { TestUtils.AreEqual(float2(float.NegativeInfinity, -1f), max(float2(float.NegativeInfinity, float.NegativeInfinity), float2(float.NegativeInfinity, -1f))); @@ -3260,7 +3260,7 @@ public static void max_float2() TestUtils.AreEqual(float2(2.3f, TestUtils.SignedFloatQNaN()), max(float2(2.3f, TestUtils.SignedFloatQNaN()), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_float3() { TestUtils.AreEqual(float3(float.NegativeInfinity, -1f, -1f), max(float3(float.NegativeInfinity, float.NegativeInfinity, -1f), float3(float.NegativeInfinity, -1f, float.NegativeInfinity))); @@ -3271,7 +3271,7 @@ public static void max_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), max(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_float4() { TestUtils.AreEqual(float4(float.NegativeInfinity, -1f, -1f, -1234.56f), max(float4(float.NegativeInfinity, float.NegativeInfinity, -1f, -1234.56f), float4(float.NegativeInfinity, -1f, float.NegativeInfinity, -3456.7f))); @@ -3280,7 +3280,7 @@ public static void max_float4() TestUtils.AreEqual(float4(float.PositiveInfinity, 2.3f, 2.3f, TestUtils.SignedFloatQNaN()), max(float4(float.PositiveInfinity, TestUtils.SignedFloatQNaN(), 2.3f, TestUtils.SignedFloatQNaN()), float4(float.PositiveInfinity, 2.3f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_double() { TestUtils.AreEqual(double.NegativeInfinity, max(double.NegativeInfinity, double.NegativeInfinity)); @@ -3301,7 +3301,7 @@ public static void max_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), max(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_double2() { TestUtils.AreEqual(double2(double.NegativeInfinity, -1.0), max(double2(double.NegativeInfinity, double.NegativeInfinity), double2(double.NegativeInfinity, -1.0))); @@ -3314,7 +3314,7 @@ public static void max_double2() TestUtils.AreEqual(double2(2.3, TestUtils.SignedDoubleQNaN()), max(double2(2.3, TestUtils.SignedDoubleQNaN()), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_double3() { TestUtils.AreEqual(double3(double.NegativeInfinity, -1.0, -1.0), max(double3(double.NegativeInfinity, double.NegativeInfinity, -1.0), double3(double.NegativeInfinity, -1.0, double.NegativeInfinity))); @@ -3325,7 +3325,7 @@ public static void max_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), max(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void max_double4() { TestUtils.AreEqual(double4(double.NegativeInfinity, -1.0, -1.0, -1234.56), max(double4(double.NegativeInfinity, double.NegativeInfinity, -1.0, -1234.56), double4(double.NegativeInfinity, -1.0, double.NegativeInfinity, -3456.7))); @@ -3334,7 +3334,7 @@ public static void max_double4() TestUtils.AreEqual(double4(double.PositiveInfinity, 2.3, 2.3, TestUtils.SignedDoubleQNaN()), max(double4(double.PositiveInfinity, TestUtils.SignedDoubleQNaN(), 2.3, TestUtils.SignedDoubleQNaN()), double4(double.PositiveInfinity, 2.3, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void smoothstep_float() { TestUtils.AreEqual(0f, smoothstep(-123.45f, 345.6f, float.NegativeInfinity), 8, false); @@ -3351,7 +3351,7 @@ public static void smoothstep_float() TestUtils.AreEqual(1f, smoothstep(345.6f, -123.45f, TestUtils.SignedFloatQNaN()), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void smoothstep_float2() { TestUtils.AreEqual(float2(0f, 0f), smoothstep(float2(-123.45f, -123.45f), float2(345.6f, 345.6f), float2(float.NegativeInfinity, -200f)), 8, false); @@ -3362,7 +3362,7 @@ public static void smoothstep_float2() TestUtils.AreEqual(float2(0f, 1f), smoothstep(float2(345.6f, 345.6f), float2(-123.45f, -123.45f), float2(float.PositiveInfinity, TestUtils.SignedFloatQNaN())), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void smoothstep_float3() { TestUtils.AreEqual(float3(0f, 0f, 0.00724848127f), smoothstep(float3(-123.45f, -123.45f, -123.45f), float3(345.6f, 345.6f, 345.6f), float3(float.NegativeInfinity, -200f, -100f)), 8, false); @@ -3371,7 +3371,7 @@ public static void smoothstep_float3() TestUtils.AreEqual(float3(0f, 0f, 1f), smoothstep(float3(345.6f, 345.6f, 345.6f), float3(-123.45f, -123.45f, -123.45f), float3(400f, float.PositiveInfinity, TestUtils.SignedFloatQNaN())), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void smoothstep_float4() { TestUtils.AreEqual(float4(0f, 0f, 0.00724848127f, 1f), smoothstep(float4(-123.45f, -123.45f, -123.45f, -123.45f), float4(345.6f, 345.6f, 345.6f, 345.6f), float4(float.NegativeInfinity, -200f, -100f, 400f)), 8, false); @@ -3379,7 +3379,7 @@ public static void smoothstep_float4() TestUtils.AreEqual(float4(0.992751539f, 0f, 0f, 1f), smoothstep(float4(345.6f, 345.6f, 345.6f, 345.6f), float4(-123.45f, -123.45f, -123.45f, -123.45f), float4(-100f, 400f, float.PositiveInfinity, TestUtils.SignedFloatQNaN())), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void smoothstep_double() { TestUtils.AreEqual(0.0, smoothstep(-123.45, 345.6, double.NegativeInfinity), 8, false); @@ -3396,7 +3396,7 @@ public static void smoothstep_double() TestUtils.AreEqual(1.0, smoothstep(345.6, -123.45, TestUtils.SignedDoubleQNaN()), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void smoothstep_double2() { TestUtils.AreEqual(double2(0.0, 0.0), smoothstep(double2(-123.45, -123.45), double2(345.6, 345.6), double2(double.NegativeInfinity, -200.0)), 8, false); @@ -3407,7 +3407,7 @@ public static void smoothstep_double2() TestUtils.AreEqual(double2(0.0, 1.0), smoothstep(double2(345.6, 345.6), double2(-123.45, -123.45), double2(double.PositiveInfinity, TestUtils.SignedDoubleQNaN())), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void smoothstep_double3() { TestUtils.AreEqual(double3(0.0, 0.0, 0.0072484810488798995), smoothstep(double3(-123.45, -123.45, -123.45), double3(345.6, 345.6, 345.6), double3(double.NegativeInfinity, -200.0, -100.0)), 8, false); @@ -3416,7 +3416,7 @@ public static void smoothstep_double3() TestUtils.AreEqual(double3(0.0, 0.0, 1.0), smoothstep(double3(345.6, 345.6, 345.6), double3(-123.45, -123.45, -123.45), double3(400.0, double.PositiveInfinity, TestUtils.SignedDoubleQNaN())), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void smoothstep_double4() { TestUtils.AreEqual(double4(0.0, 0.0, 0.0072484810488798995, 1.0), smoothstep(double4(-123.45, -123.45, -123.45, -123.45), double4(345.6, 345.6, 345.6, 345.6), double4(double.NegativeInfinity, -200.0, -100.0, 400.0)), 8, false); @@ -3424,7 +3424,7 @@ public static void smoothstep_double4() TestUtils.AreEqual(double4(0.99275151895112013, 0.0, 0.0, 1.0), smoothstep(double4(345.6, 345.6, 345.6, 345.6), double4(-123.45, -123.45, -123.45, -123.45), double4(-100.0, 400.0, double.PositiveInfinity, TestUtils.SignedDoubleQNaN())), 8, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_int() { TestUtils.AreEqual(7097663, mad(1234, 5678, 91011)); @@ -3445,7 +3445,7 @@ public static void mad_int() TestUtils.AreEqual(1313707278, mad(-98765, -56789, -91011)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_int2() { TestUtils.AreEqual(int2(7097663, 6915641), mad(int2(1234, 1234), int2(5678, 5678), int2(91011, -91011))); @@ -3458,7 +3458,7 @@ public static void mad_int2() TestUtils.AreEqual(int2(1313889300, 1313707278), mad(int2(-98765, -98765), int2(-56789, -56789), int2(91011, -91011))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_int3() { TestUtils.AreEqual(int3(7097663, 6915641, -6915641), mad(int3(1234, 1234, 1234), int3(5678, 5678, -5678), int3(91011, -91011, 91011))); @@ -3469,7 +3469,7 @@ public static void mad_int3() TestUtils.AreEqual(int3(1313707278, 1313707278, 1313707278), mad(int3(-98765, -98765, -98765), int3(-56789, -56789, -56789), int3(-91011, -91011, -91011))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_int4() { TestUtils.AreEqual(int4(7097663, 6915641, -6915641, -7097663), mad(int4(1234, 1234, 1234, 1234), int4(5678, 5678, -5678, -5678), int4(91011, -91011, 91011, -91011))); @@ -3478,32 +3478,32 @@ public static void mad_int4() TestUtils.AreEqual(int4(-1313707278, -1313889300, 1313889300, 1313707278), mad(int4(-98765, -98765, -98765, -98765), int4(56789, 56789, -56789, -56789), int4(91011, -91011, 91011, -91011))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_uint() { TestUtils.AreEqual(7097663u, mad(1234u, 5678u, 91011u)); TestUtils.AreEqual(1313889300u, mad(98765u, 56789u, 91011u)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_uint2() { TestUtils.AreEqual(uint2(7097663u, 1313889300u), mad(uint2(1234u, 98765u), uint2(5678u, 56789u), uint2(91011u, 91011u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_uint3() { TestUtils.AreEqual(uint3(7097663u, 1313889300u, 1313889300u), mad(uint3(1234u, 98765u, 98765u), uint3(5678u, 56789u, 56789u), uint3(91011u, 91011u, 91011u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_uint4() { TestUtils.AreEqual(uint4(7097663u, 1313889300u, 1313889300u, 1313889300u), mad(uint4(1234u, 98765u, 98765u, 98765u), uint4(5678u, 56789u, 56789u, 56789u), uint4(91011u, 91011u, 91011u, 91011u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_long() { TestUtils.AreEqual(7097663L, mad(1234L, 5678L, 91011L)); @@ -3524,14 +3524,14 @@ public static void mad_long() TestUtils.AreEqual(747681192693554158L, mad(-9876543210L, -5678901234L, -9101112134L)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_ulong() { TestUtils.AreEqual(7097663L, mad(1234UL, 5678UL, 91011UL)); TestUtils.AreEqual(747681210895778426L, mad(9876543210UL, 5678901234UL, 9101112134UL)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_float() { TestUtils.AreEqual(-42660f, mad(-123.45f, 345.6f, 4.321f), 1, false); @@ -3540,27 +3540,27 @@ public static void mad_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), mad(-123.45f, 345.6f, TestUtils.SignedFloatQNaN()), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_float2() { TestUtils.AreEqual(float2(-42660f, TestUtils.SignedFloatQNaN()), mad(float2(-123.45f, TestUtils.SignedFloatQNaN()), float2(345.6f, 345.6f), float2(4.321f, 4.321f)), 1, false); TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), mad(float2(-123.45f, -123.45f), float2(TestUtils.SignedFloatQNaN(), 345.6f), float2(4.321f, TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_float3() { TestUtils.AreEqual(float3(-42660f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), mad(float3(-123.45f, TestUtils.SignedFloatQNaN(), -123.45f), float3(345.6f, 345.6f, TestUtils.SignedFloatQNaN()), float3(4.321f, 4.321f, 4.321f)), 1, false); TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), mad(float3(-123.45f, -123.45f, -123.45f), float3(345.6f, 345.6f, 345.6f), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_float4() { TestUtils.AreEqual(float4(-42660f, TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), mad(float4(-123.45f, TestUtils.SignedFloatQNaN(), -123.45f, -123.45f), float4(345.6f, 345.6f, TestUtils.SignedFloatQNaN(), 345.6f), float4(4.321f, 4.321f, 4.321f, TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_double() { TestUtils.AreEqual(-42659.999, mad(-123.45, 345.6, 4.321), 1, false); @@ -3569,27 +3569,27 @@ public static void mad_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), mad(-123.45, 345.6, TestUtils.SignedDoubleQNaN()), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_double2() { TestUtils.AreEqual(double2(-42659.999, TestUtils.SignedDoubleQNaN()), mad(double2(-123.45, TestUtils.SignedDoubleQNaN()), double2(345.6, 345.6), double2(4.321, 4.321)), 1, false); TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), mad(double2(-123.45, -123.45), double2(TestUtils.SignedDoubleQNaN(), 345.6), double2(4.321, TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_double3() { TestUtils.AreEqual(double3(-42659.999, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), mad(double3(-123.45, TestUtils.SignedDoubleQNaN(), -123.45), double3(345.6, 345.6, TestUtils.SignedDoubleQNaN()), double3(4.321, 4.321, 4.321)), 1, false); TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), mad(double3(-123.45, -123.45, -123.45), double3(345.6, 345.6, 345.6), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void mad_double4() { TestUtils.AreEqual(double4(-42659.999, TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), mad(double4(-123.45, TestUtils.SignedDoubleQNaN(), -123.45, -123.45), double4(345.6, 345.6, TestUtils.SignedDoubleQNaN(), 345.6), double4(4.321, 4.321, 4.321, TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void fmod_float() { TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(float.NegativeInfinity, float.NegativeInfinity), 1, false); @@ -3643,7 +3643,7 @@ public static void fmod_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), fmod(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void fmod_float2() { TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), -323.4f), fmod(float2(float.NegativeInfinity, -323.4f), float2(float.NegativeInfinity, float.NegativeInfinity)), 1, false); @@ -3673,7 +3673,7 @@ public static void fmod_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void fmod_float3() { TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), -323.4f, TestUtils.SignedFloatZero()), fmod(float3(float.NegativeInfinity, -323.4f, TestUtils.SignedFloatZero()), float3(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); @@ -3695,7 +3695,7 @@ public static void fmod_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void fmod_float4() { TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), -323.4f, TestUtils.SignedFloatZero(), 0f), fmod(float4(float.NegativeInfinity, -323.4f, TestUtils.SignedFloatZero(), 0f), float4(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); @@ -3713,7 +3713,7 @@ public static void fmod_float4() TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), fmod(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void fmod_double() { TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(double.NegativeInfinity, double.NegativeInfinity), 1, false); @@ -3767,7 +3767,7 @@ public static void fmod_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), fmod(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void fmod_double2() { TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), -323.4), fmod(double2(double.NegativeInfinity, -323.4), double2(double.NegativeInfinity, double.NegativeInfinity)), 1, false); @@ -3797,7 +3797,7 @@ public static void fmod_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void fmod_double3() { TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), -323.4, TestUtils.SignedDoubleZero()), fmod(double3(double.NegativeInfinity, -323.4, TestUtils.SignedDoubleZero()), double3(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); @@ -3819,7 +3819,7 @@ public static void fmod_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void fmod_double4() { TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), -323.4, TestUtils.SignedDoubleZero(), 0.0), fmod(double4(double.NegativeInfinity, -323.4, TestUtils.SignedDoubleZero(), 0.0), double4(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); @@ -3837,7 +3837,7 @@ public static void fmod_double4() TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), fmod(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void pow_float() { TestUtils.AreEqual(0f, pow(float.NegativeInfinity, float.NegativeInfinity), 1, false); @@ -3887,7 +3887,7 @@ public static void pow_float() TestUtils.AreEqual(TestUtils.SignedFloatQNaN(), pow(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void pow_float2() { TestUtils.AreEqual(float2(0f, 0f), pow(float2(float.NegativeInfinity, -3.4f), float2(float.NegativeInfinity, float.NegativeInfinity)), 1, false); @@ -3915,7 +3915,7 @@ public static void pow_float2() TestUtils.AreEqual(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float2(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void pow_float3() { TestUtils.AreEqual(float3(0f, 0f, float.PositiveInfinity), pow(float3(float.NegativeInfinity, -3.4f, TestUtils.SignedFloatZero()), float3(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); @@ -3935,7 +3935,7 @@ public static void pow_float3() TestUtils.AreEqual(float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float3(3.4f, float.PositiveInfinity, TestUtils.SignedFloatQNaN()), float3(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void pow_float4() { TestUtils.AreEqual(float4(0f, 0f, float.PositiveInfinity, float.PositiveInfinity), pow(float4(float.NegativeInfinity, -3.4f, TestUtils.SignedFloatZero(), 0f), float4(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity)), 1, false); @@ -3952,7 +3952,7 @@ public static void pow_float4() TestUtils.AreEqual(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), pow(float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN()), float4(TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN(), TestUtils.SignedFloatQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void pow_double() { TestUtils.AreEqual(0.0, pow(double.NegativeInfinity, double.NegativeInfinity), 1, false); @@ -4002,7 +4002,7 @@ public static void pow_double() TestUtils.AreEqual(TestUtils.SignedDoubleQNaN(), pow(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void pow_double2() { TestUtils.AreEqual(double2(0.0, 0.0), pow(double2(double.NegativeInfinity, -3.4), double2(double.NegativeInfinity, double.NegativeInfinity)), 1, false); @@ -4030,7 +4030,7 @@ public static void pow_double2() TestUtils.AreEqual(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double2(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void pow_double3() { TestUtils.AreEqual(double3(0.0, 0.0, double.PositiveInfinity), pow(double3(double.NegativeInfinity, -3.4, TestUtils.SignedDoubleZero()), double3(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); @@ -4050,7 +4050,7 @@ public static void pow_double3() TestUtils.AreEqual(double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double3(3.4, double.PositiveInfinity, TestUtils.SignedDoubleQNaN()), double3(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void pow_double4() { TestUtils.AreEqual(double4(0.0, 0.0, double.PositiveInfinity, double.PositiveInfinity), pow(double4(double.NegativeInfinity, -3.4, TestUtils.SignedDoubleZero(), 0.0), double4(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)), 1, false); @@ -4067,7 +4067,7 @@ public static void pow_double4() TestUtils.AreEqual(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), pow(double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN()), double4(TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN(), TestUtils.SignedDoubleQNaN())), 1, false); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceilpow2_int() { TestUtils.AreEqual(0, ceilpow2(0)); @@ -4079,7 +4079,7 @@ public static void ceilpow2_int() TestUtils.AreEqual(0, ceilpow2(-2147483647)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceilpow2_int2() { TestUtils.AreEqual(int2(0, 1), ceilpow2(int2(0, 1))); @@ -4088,7 +4088,7 @@ public static void ceilpow2_int2() TestUtils.AreEqual(int2(0, 0), ceilpow2(int2(-2147483647, -2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceilpow2_int3() { TestUtils.AreEqual(int3(0, 1, 2), ceilpow2(int3(0, 1, 2))); @@ -4096,14 +4096,14 @@ public static void ceilpow2_int3() TestUtils.AreEqual(int3(0, 0, 0), ceilpow2(int3(-2147483647, -2147483647, -2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceilpow2_int4() { TestUtils.AreEqual(int4(0, 1, 2, 4), ceilpow2(int4(0, 1, 2, 3))); TestUtils.AreEqual(int4(1073741824, -2147483648, 0, 0), ceilpow2(int4(1019642234, 1823423423, -2147483647, -2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceilpow2_uint() { TestUtils.AreEqual(0u, ceilpow2(0u)); @@ -4115,7 +4115,7 @@ public static void ceilpow2_uint() TestUtils.AreEqual(0u, ceilpow2(4294967295u)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceilpow2_uint2() { TestUtils.AreEqual(uint2(0u, 1u), ceilpow2(uint2(0u, 1u))); @@ -4124,7 +4124,7 @@ public static void ceilpow2_uint2() TestUtils.AreEqual(uint2(0u, 0u), ceilpow2(uint2(4294967295u, 4294967295u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceilpow2_uint3() { TestUtils.AreEqual(uint3(0u, 1u, 2u), ceilpow2(uint3(0u, 1u, 2u))); @@ -4132,14 +4132,14 @@ public static void ceilpow2_uint3() TestUtils.AreEqual(uint3(0u, 0u, 0u), ceilpow2(uint3(4294967295u, 4294967295u, 4294967295u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceilpow2_uint4() { TestUtils.AreEqual(uint4(0u, 1u, 2u, 4u), ceilpow2(uint4(0u, 1u, 2u, 3u))); TestUtils.AreEqual(uint4(1073741824u, 2147483648u, 0u, 0u), ceilpow2(uint4(1019642234u, 1823423423u, 4294967295u, 4294967295u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceilpow2_long() { TestUtils.AreEqual(0L, ceilpow2(0L)); @@ -4155,7 +4155,7 @@ public static void ceilpow2_long() TestUtils.AreEqual(0L, ceilpow2(-100L)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceilpow2_ulong() { TestUtils.AreEqual(0UL, ceilpow2(0UL)); @@ -4171,7 +4171,7 @@ public static void ceilpow2_ulong() TestUtils.AreEqual(0UL, ceilpow2(10223372036854775808UL)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floorlog2_int() { TestUtils.AreEqual(0, floorlog2(1)); @@ -4185,7 +4185,7 @@ public static void floorlog2_int() TestUtils.AreEqual(30, floorlog2(2147483647)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floorlog2_int2() { TestUtils.AreEqual(int2(0, 1), floorlog2(int2(1, 2))); @@ -4195,7 +4195,7 @@ public static void floorlog2_int2() TestUtils.AreEqual(int2(30, 30), floorlog2(int2(2147483647, 2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floorlog2_int3() { TestUtils.AreEqual(int3(0, 1, 1), floorlog2(int3(1, 2, 3))); @@ -4203,7 +4203,7 @@ public static void floorlog2_int3() TestUtils.AreEqual(int3(15, 15, 30), floorlog2(int3(32768, 32769, 2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floorlog2_int4() { TestUtils.AreEqual(int4(0, 1, 1, 2), floorlog2(int4(1, 2, 3, 4))); @@ -4211,7 +4211,7 @@ public static void floorlog2_int4() TestUtils.AreEqual(int4(30, 30, 30, 30), floorlog2(int4(2147483647, 2147483647, 2147483647, 2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floorlog2_uint() { TestUtils.AreEqual(0, floorlog2(1u)); @@ -4225,7 +4225,7 @@ public static void floorlog2_uint() TestUtils.AreEqual(30, floorlog2(2147483647u)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floorlog2_uint2() { TestUtils.AreEqual(int2(0, 1), floorlog2(uint2(1u, 2u))); @@ -4235,7 +4235,7 @@ public static void floorlog2_uint2() TestUtils.AreEqual(int2(30, 30), floorlog2(uint2(2147483647u, 2147483647u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floorlog2_uint3() { TestUtils.AreEqual(int3(0, 1, 1), floorlog2(uint3(1u, 2u, 3u))); @@ -4243,7 +4243,7 @@ public static void floorlog2_uint3() TestUtils.AreEqual(int3(15, 15, 30), floorlog2(uint3(32768u, 32769u, 2147483647u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void floorlog2_uint4() { TestUtils.AreEqual(int4(0, 1, 1, 2), floorlog2(uint4(1u, 2u, 3u, 4u))); @@ -4251,7 +4251,7 @@ public static void floorlog2_uint4() TestUtils.AreEqual(int4(30, 30, 30, 30), floorlog2(uint4(2147483647u, 2147483647u, 2147483647u, 2147483647u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceillog2_int() { TestUtils.AreEqual(0, ceillog2(1)); @@ -4269,7 +4269,7 @@ public static void ceillog2_int() TestUtils.AreEqual(31, ceillog2(2147483647)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceillog2_int2() { TestUtils.AreEqual(int2(0, 1), ceillog2(int2(1, 2))); @@ -4281,7 +4281,7 @@ public static void ceillog2_int2() TestUtils.AreEqual(int2(31, 31), ceillog2(int2(2147483647, 2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceillog2_int3() { TestUtils.AreEqual(int3(0, 1, 2), ceillog2(int3(1, 2, 3))); @@ -4291,7 +4291,7 @@ public static void ceillog2_int3() TestUtils.AreEqual(int3(31, 31, 31), ceillog2(int3(2147483647, 2147483647, 2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceillog2_int4() { TestUtils.AreEqual(int4(0, 1, 2, 2), ceillog2(int4(1, 2, 3, 4))); @@ -4300,7 +4300,7 @@ public static void ceillog2_int4() TestUtils.AreEqual(int4(31, 31, 31, 31), ceillog2(int4(2147483647, 2147483647, 2147483647, 2147483647))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceillog2_uint() { TestUtils.AreEqual(0, ceillog2(1u)); @@ -4318,7 +4318,7 @@ public static void ceillog2_uint() TestUtils.AreEqual(32, ceillog2(4294967295u)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceillog2_uint2() { TestUtils.AreEqual(int2(0, 1), ceillog2(uint2(1u, 2u))); @@ -4330,7 +4330,7 @@ public static void ceillog2_uint2() TestUtils.AreEqual(int2(32, 32), ceillog2(uint2(4294967295u, 4294967295u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceillog2_uint3() { TestUtils.AreEqual(int3(0, 1, 2), ceillog2(uint3(1u, 2u, 3u))); @@ -4340,7 +4340,7 @@ public static void ceillog2_uint3() TestUtils.AreEqual(int3(32, 32, 32), ceillog2(uint3(4294967295u, 4294967295u, 4294967295u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ceillog2_uint4() { TestUtils.AreEqual(int4(0, 1, 2, 2), ceillog2(uint4(1u, 2u, 3u, 4u))); @@ -4349,7 +4349,7 @@ public static void ceillog2_uint4() TestUtils.AreEqual(int4(32, 32, 32, 32), ceillog2(uint4(4294967295u, 4294967295u, 4294967295u, 4294967295u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ispow2_int() { TestUtils.AreEqual(false, ispow2(-3)); @@ -4368,7 +4368,7 @@ public static void ispow2_int() TestUtils.AreEqual(false, ispow2(268431360)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ispow2_int2() { TestUtils.AreEqual(bool2(false, false), ispow2(int2(-3, -2))); @@ -4380,7 +4380,7 @@ public static void ispow2_int2() TestUtils.AreEqual(bool2(true, false), ispow2(int2(2097152, 268431360))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ispow2_int3() { TestUtils.AreEqual(bool3(false, false, false), ispow2(int3(-3, -2, -1))); @@ -4390,7 +4390,7 @@ public static void ispow2_int3() TestUtils.AreEqual(bool3(true, false, false), ispow2(int3(2097152, 268431360, 268431360))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ispow2_int4() { TestUtils.AreEqual(bool4(false, false, false, false), ispow2(int4(-3, -2, -1, 0))); @@ -4399,7 +4399,7 @@ public static void ispow2_int4() TestUtils.AreEqual(bool4(true, false, false, false), ispow2(int4(2097152, 268431360, 268431360, 268431360))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ispow2_uint() { TestUtils.AreEqual(false, ispow2(0u)); @@ -4416,7 +4416,7 @@ public static void ispow2_uint() TestUtils.AreEqual(false, ispow2(268431360u)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ispow2_uint2() { TestUtils.AreEqual(bool2(false, true), ispow2(uint2(0u, 1u))); @@ -4427,7 +4427,7 @@ public static void ispow2_uint2() TestUtils.AreEqual(bool2(false, false), ispow2(uint2(2097153u, 268431360u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ispow2_uint3() { TestUtils.AreEqual(bool3(false, true, true), ispow2(uint3(0u, 1u, 2u))); @@ -4436,7 +4436,7 @@ public static void ispow2_uint3() TestUtils.AreEqual(bool3(true, false, false), ispow2(uint3(2097152u, 2097153u, 268431360u))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ispow2_uint4() { TestUtils.AreEqual(bool4(false, true, true, false), ispow2(uint4(0u, 1u, 2u, 3u))); diff --git a/src/Tests/Tests/Shared/TestMatrix.cs b/src/Tests/Tests/Shared/TestMatrix.cs index 5fc6a37b..558ce482 100644 --- a/src/Tests/Tests/Shared/TestMatrix.cs +++ b/src/Tests/Tests/Shared/TestMatrix.cs @@ -7,7 +7,7 @@ namespace Unity.Mathematics.Tests [TestFixture] class TestMatrix { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_constructor_columns() { float2x2 a = float2x2(float2(1.0f, 2.0f), @@ -19,7 +19,7 @@ public static void float2x2_constructor_columns() TestUtils.AreEqual(4.0f, a.c1.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_constructor_columns() { float3x3 a = float3x3(float3(1.0f, 2.0f, 3.0f), @@ -37,7 +37,7 @@ public static void float3x3_constructor_columns() TestUtils.AreEqual(9.0f, a.c2.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_constructor_columns() { float4x4 a = float4x4(float4( 1.0f, 2.0f, 3.0f, 4.0f), @@ -63,7 +63,7 @@ public static void float4x4_constructor_columns() TestUtils.AreEqual(16.0f, a.c3.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_constructor_scalars() { float2x2 a = float2x2(1.0f, 2.0f, @@ -75,7 +75,7 @@ public static void float2x2_constructor_scalars() TestUtils.AreEqual(4.0f, a.c1.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_constructor_scalars() { float3x3 a = float3x3(1.0f, 2.0f, 3.0f, @@ -93,7 +93,7 @@ public static void float3x3_constructor_scalars() TestUtils.AreEqual(9.0f, a.c2.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_constructor_scalars() { float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, @@ -119,7 +119,7 @@ public static void float4x4_constructor_scalars() TestUtils.AreEqual(16.0f, a.c3.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_constructor_float3x3() { float3x3 rot = float3x3(1.0f, 2.0f, 3.0f, @@ -136,7 +136,7 @@ public static void float4x4_constructor_float3x3() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_constructor_quaternion() { float3x3 m = float3x3(normalize(quaternion(1.0f, 2.5f, 3.3f, 4.6f))); @@ -148,7 +148,7 @@ public static void float3x3_constructor_quaternion() TestUtils.AreEqual(r, m, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_constructor_quaternion_position() { float4x4 m = float4x4(normalize(quaternion(1.0f, 2.5f, 3.3f, 4.6f)), float3(1.0f, 2.0f, 3.0f)); @@ -161,7 +161,7 @@ public static void float4x4_constructor_quaternion_position() TestUtils.AreEqual(r, m, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_identity() { float2x2 a = float2x2.identity; @@ -171,7 +171,7 @@ public static void float2x2_identity() TestUtils.AreEqual(1.0f, a.c1.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_identity() { float3x3 a = float3x3.identity; @@ -186,7 +186,7 @@ public static void float3x3_identity() TestUtils.AreEqual(1.0f, a.c2.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_identity() { float4x4 a = float4x4.identity; @@ -208,7 +208,7 @@ public static void float4x4_identity() TestUtils.AreEqual(1.0f, a.c3.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_rotate() { float epsilon = 0.0001f; @@ -220,7 +220,7 @@ public static void float2x2_rotate() TestUtils.AreEqual(cos(angle), m.c1.y, epsilon); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_axis_angle() { float3 axis = normalize(float3(1.1f, 2.3f, -3.6f)); @@ -231,7 +231,7 @@ public static void float3x3_axis_angle() TestUtils.AreEqual(r, m, 0.00001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_axis_angle_consistency() { TestUtils.AreEqual(float3x3.RotateX(1.0f), float3x3.AxisAngle(float3(1, 0, 0), 1.0f), 0.001f); @@ -239,7 +239,7 @@ public static void float3x3_axis_angle_consistency() TestUtils.AreEqual(float3x3.RotateZ(1.0f), float3x3.AxisAngle(float3(0, 0, 1), 1.0f), 0.001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_rotate_x() { float epsilon = 0.0001f; @@ -256,7 +256,7 @@ public static void float3x3_rotate_x() TestUtils.AreEqual(cos(angle), m.c2.z, epsilon); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_rotate_y() { float epsilon = 0.0001f; @@ -273,7 +273,7 @@ public static void float3x3_rotate_y() TestUtils.AreEqual(cos(angle), m.c2.z, epsilon); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_rotate_z() { float epsilon = 0.0001f; @@ -290,7 +290,7 @@ public static void float3x3_rotate_z() TestUtils.AreEqual(1.0f, m.c2.z, epsilon); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_rotate_x_handedness() { float3 a = float3(0.0f, 0.3f, 0.7f); @@ -301,7 +301,7 @@ public static void float3x3_rotate_x_handedness() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_rotate_y_handedness() { float3 a = float3(0.3f, 0.0f, 0.7f); @@ -311,7 +311,7 @@ public static void float3x3_rotate_y_handedness() TestUtils.AreEqual(w > 0.0f, true); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_rotate_z_handedness() { float3 a = float3(0.3f, 0.7f, 0.0f); @@ -321,7 +321,7 @@ public static void float3x3_rotate_z_handedness() TestUtils.AreEqual(w > 0.0f, true); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_axis_angle() { float3 axis = normalize(float3(1.1f, 2.3f, -3.6f)); @@ -332,7 +332,7 @@ public static void float4x4_axis_angle() TestUtils.AreEqual(r, m, 0.00001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_axis_angle_consistency() { TestUtils.AreEqual(float4x4.RotateX(1.0f), float4x4.AxisAngle(float3(1, 0, 0), 1.0f), 0.001f); @@ -340,7 +340,7 @@ public static void float4x4_axis_angle_consistency() TestUtils.AreEqual(float4x4.RotateZ(1.0f), float4x4.AxisAngle(float3(0, 0, 1), 1.0f), 0.001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_rotate_x() { float epsilon = 0.0001f; @@ -364,7 +364,7 @@ public static void float4x4_rotate_x() TestUtils.AreEqual(1.0f, m.c3.w, epsilon); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_rotate_y() { float epsilon = 0.0001f; @@ -388,7 +388,7 @@ public static void float4x4_rotate_y() TestUtils.AreEqual(1.0f, m.c3.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_rotate_z() { float epsilon = 0.0001f; @@ -412,7 +412,7 @@ public static void float4x4_rotate_z() TestUtils.AreEqual(1.0f, m.c3.w, epsilon); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_rotate_x_handedness() { float3 a = float3(0.0f, 0.3f, 0.7f); @@ -423,7 +423,7 @@ public static void float4x4_rotate_x_handedness() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_rotate_y_handedness() { float3 a = float3(0.3f, 0.0f, 0.7f); @@ -433,7 +433,7 @@ public static void float4x4_rotate_y_handedness() TestUtils.AreEqual(w > 0.0f, true); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_rotate_z_handedness() { float3 a = float3(0.3f, 0.7f, 0.0f); @@ -480,7 +480,7 @@ public static void float4x4_rotate_z_handedness() static internal readonly float4x4 test4x4_zyx = new float4x4(test3x3_zyx, new float3(0, 0, 0)); - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_euler() { float3x3 m0_xyz = float3x3.EulerXYZ(test_angles); @@ -547,7 +547,7 @@ public static void float3x3_euler() TestUtils.AreEqual(test3x3_zyx, m3_zyx, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_euler() { float4x4 m0_xyz = float4x4.EulerXYZ(test_angles); @@ -614,7 +614,7 @@ public static void float4x4_euler() TestUtils.AreEqual(test4x4_zyx, m3_zyx, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_scale() { float2x2 m = float2x2(1.0f, 2.0f, @@ -635,7 +635,7 @@ public static void float2x2_scale() TestUtils.AreEqual(r1, c); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_scale() { float3x3 m = float3x3(1.0f, 2.0f, 3.0f, @@ -661,7 +661,7 @@ public static void float3x3_scale() TestUtils.AreEqual(r1, c); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_scale() { float4x4 m = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, @@ -688,7 +688,7 @@ public static void float4x4_scale() TestUtils.AreEqual(r1, c); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_matrix_mul() { // http://www.wolframalpha.com/input/?i=%5B%5B1,2%5D,%5B3,4%5D%5D*%5B%5B21,22%5D,%5B23,24%5D%5D @@ -706,7 +706,7 @@ public static void float2x2_matrix_mul() TestUtils.AreEqual(162.0f, c.c1.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_matrix_mul() { // http://www.wolframalpha.com/input/?i=%5B%5B1,2,3%5D,%5B4,5,6%5D,%5B7,8,9%5D%5D*%5B%5B21,22,23%5D,%5B24,25,26%5D,%5B27,28,29%5D%5D @@ -732,7 +732,7 @@ public static void float3x3_matrix_mul() TestUtils.AreEqual(630.0f, c.c2.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_matrix_mul() { // https://fogbugz.unity3d.com/f/cases/1041176/ @@ -769,7 +769,7 @@ public static void float4x4_matrix_mul() TestUtils.AreEqual(1760.0f, c.c3.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_transpose() { float2x2 a = float2x2(1.0f, 2.0f, @@ -783,7 +783,7 @@ public static void float2x2_transpose() TestUtils.AreEqual(4.0f, b.c1.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_transpose() { float3x3 a = float3x3(1.0f, 2.0f, 3.0f, @@ -803,7 +803,7 @@ public static void float3x3_transpose() TestUtils.AreEqual(9.0f, b.c2.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_transpose() { float4x4 a = float4x4( 1.0f, 2.0f, 3.0f, 4.0f, @@ -831,7 +831,7 @@ public static void float4x4_transpose() TestUtils.AreEqual(16.0f, b.c3.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_inverse() { float2x2 a = float2x2( 0.542968f, 0.867379f, @@ -850,7 +850,7 @@ public static void float2x2_inverse() TestUtils.AreEqual(r.c1.y, invA.c1.y, epsilon); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_inverse() { float3x3 a = float3x3( 0.542968f, 0.867379f, 0.526616f, @@ -877,7 +877,7 @@ public static void float3x3_inverse() TestUtils.AreEqual(r.c2.z, invA.c2.z, epsilon); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_inverse() { float4x4 a = float4x4( 0.542968f, 0.867379f, 0.526616f,-0.943083f, @@ -914,7 +914,7 @@ public static void float4x4_inverse() TestUtils.AreEqual(r.c3.w, invA.c3.w, epsilon); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x4_fastinverse() { float4x4 a = test4x4_xyz; @@ -931,7 +931,7 @@ public static void float3x4_fastinverse() TestUtils.AreEqual(invA.c3.xyz, fastInvB.c3.xyz, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_fastinverse() { float4x4 a = test4x4_xyz; @@ -943,7 +943,7 @@ public static void float4x4_fastinverse() TestUtils.AreEqual(invA, fastInvA, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2x2_determinant() { float2x2 a = float2x2(0.542968f, 0.867379f, @@ -953,7 +953,7 @@ public static void float2x2_determinant() TestUtils.AreEqual(-0.2610378f, det, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_determinant() { float3x3 a = float3x3( 0.542968f, 0.867379f, 0.526616f, @@ -964,7 +964,7 @@ public static void float3x3_determinant() TestUtils.AreEqual(0.06019618f, det, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_determinant() { float4x4 a = float4x4( 0.542968f, 0.867379f, 0.526616f, -0.943083f, @@ -976,7 +976,7 @@ public static void float4x4_determinant() TestUtils.AreEqual(0.5838502f, det, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_look_rotation() { float3 forward0 = normalize(float3(1.0f, 2.0f, 3.0f)); @@ -1012,7 +1012,7 @@ public static void float3x3_look_rotation() TestUtils.AreEqual(float3x3(quaternion.LookRotation(forward3, up3)), m3, 0.001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_look_rotation_safe() { float3 forward0 = float3(-3.2f, 2.3f, -1.3f) * 1e-10f; @@ -1029,7 +1029,7 @@ public static void float3x3_look_rotation_safe() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_lookat() { float4x4 m = float4x4.LookAt(float3(0.3f, -0.5f, 3.0f), float3(3.2f, -3.1f, 0.2f), normalize(float3(0.3f, 1.0f, -3.0f))); @@ -1043,7 +1043,7 @@ public static void float4x4_lookat() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_ortho() { float4x4 m = float4x4.Ortho(2.0f, 3.0f, -3.0f, 7.0f); @@ -1056,7 +1056,7 @@ public static void float4x4_ortho() TestUtils.AreEqual(r, m, 0.001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_orthoOffCenter() { float4x4 m = float4x4.OrthoOffCenter(-2.0f, 1.0f, -3.0f, -1.0f, -3.0f, 7.0f); @@ -1069,7 +1069,7 @@ public static void float4x4_orthoOffCenter() TestUtils.AreEqual(r, m, 0.001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_perspective() { float fovy = 1.6f; @@ -1098,7 +1098,7 @@ public static void float4x4_perspective() TestUtils.AreEqual(float3(1.0f, 1.0f, 1.0f), pp1.xyz, 0.001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_perspectiveOffCenter() { float fovy = 1.6f; @@ -1132,7 +1132,7 @@ public static void float4x4_perspectiveOffCenter() TestUtils.AreEqual(float3(-1.0f, 1.0f, 1.0f), pp2.xyz, 0.001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4x4_TRS() { float3 scale = float3(1.2f, -0.4f, 2.3f); @@ -1143,7 +1143,7 @@ public static void float4x4_TRS() TestUtils.AreEqual(r0, m0, 0.001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_constructor_float4x4() { var f4x4 = new float4x4(new float4(1, 2, 3, 4), new float4(5, 6, 7, 8), new float4(9, 10, 11, 12), new float4(13, 14, 15, 16)); @@ -1152,7 +1152,7 @@ public static void float3x3_constructor_float4x4() TestUtils.AreEqual(expected, new float3x3(f4x4)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_explicit_cast_float4x4() { var f4x4 = new float4x4(new float4(1, 2, 3, 4), new float4(5, 6, 7, 8), new float4(9, 10, 11, 12), new float4(13, 14, 15, 16)); @@ -1161,7 +1161,7 @@ public static void float3x3_explicit_cast_float4x4() TestUtils.AreEqual(expected, (float3x3)f4x4); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_from_float4x4_without_new() { var f4x4 = new float4x4(new float4(1, 2, 3, 4), new float4(5, 6, 7, 8), new float4(9, 10, 11, 12), new float4(13, 14, 15, 16)); @@ -1170,7 +1170,7 @@ public static void float3x3_from_float4x4_without_new() TestUtils.AreEqual(expected, float3x3(f4x4)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_pseudoinverse_non_singular() { const float kTolerance = 1e-5f; @@ -1191,7 +1191,7 @@ public static void float3x3_pseudoinverse_non_singular() TestUtils.AreEqual(expected, inverse(a), kTolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3x3_pseudoinverse_singular() { const float kTolerance = 1e-5f; diff --git a/src/Tests/Tests/Shared/TestMinMaxAABB.cs b/src/Tests/Tests/Shared/TestMinMaxAABB.cs index a08e52cd..7c5c5e8c 100644 --- a/src/Tests/Tests/Shared/TestMinMaxAABB.cs +++ b/src/Tests/Tests/Shared/TestMinMaxAABB.cs @@ -9,7 +9,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestMinMaxAABB { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_float3_trivial() { var aabb = new MinMaxAABB(); @@ -18,7 +18,7 @@ public static void Encapsulate_float3_trivial() TestUtils.AreEqual(float3.zero, aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_float3_new_max() { var aabb = new MinMaxAABB(); @@ -27,7 +27,7 @@ public static void Encapsulate_float3_new_max() TestUtils.AreEqual(new float3(1.0f), aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_float3_new_min() { var aabb = new MinMaxAABB(); @@ -36,7 +36,7 @@ public static void Encapsulate_float3_new_min() TestUtils.AreEqual(new float3(-1.0f), aabb.Min); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_float3_new_minx_maxyz() { var aabb = new MinMaxAABB(); @@ -45,7 +45,7 @@ public static void Encapsulate_float3_new_minx_maxyz() TestUtils.AreEqual(new float3(0.0f, 1.0f, 1.0f), aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_float3_new_minxy_maxz() { var aabb = new MinMaxAABB(); @@ -54,7 +54,7 @@ public static void Encapsulate_float3_new_minxy_maxz() TestUtils.AreEqual(new float3(0.0f, 0.0f, 1.0f), aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_float3_new_minxz_maxy() { var aabb = new MinMaxAABB(); @@ -63,7 +63,7 @@ public static void Encapsulate_float3_new_minxz_maxy() TestUtils.AreEqual(new float3(0.0f, 1.0f, 0.0f), aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_float3_new_minz_maxxy() { var aabb = new MinMaxAABB(); @@ -72,7 +72,7 @@ public static void Encapsulate_float3_new_minz_maxxy() TestUtils.AreEqual(new float3(1.0f, 1.0f, 0.0f), aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_float3_new_miny_maxxz() { var aabb = new MinMaxAABB(); @@ -81,7 +81,7 @@ public static void Encapsulate_float3_new_miny_maxxz() TestUtils.AreEqual(new float3(1.0f, 0.0f, 1.0f), aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_MinMaxAABB_trivial() { var aabb = new MinMaxAABB(); @@ -90,7 +90,7 @@ public static void Encapsulate_MinMaxAABB_trivial() TestUtils.AreEqual(float3.zero, aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_MinMaxAABB_new_max() { var aabb = new MinMaxAABB(); @@ -100,7 +100,7 @@ public static void Encapsulate_MinMaxAABB_new_max() TestUtils.AreEqual(p, aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_MinMaxAABB_new_min() { var aabb = new MinMaxAABB(); @@ -110,7 +110,7 @@ public static void Encapsulate_MinMaxAABB_new_min() TestUtils.AreEqual(p, aabb.Min); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_MinMaxAABB_new_minx_maxyz() { var aabb = new MinMaxAABB(); @@ -119,7 +119,7 @@ public static void Encapsulate_MinMaxAABB_new_minx_maxyz() TestUtils.AreEqual(new float3(0.0f, 1.0f, 1.0f), aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_MinMaxAABB_new_minxy_maxz() { var aabb = new MinMaxAABB(); @@ -128,7 +128,7 @@ public static void Encapsulate_MinMaxAABB_new_minxy_maxz() TestUtils.AreEqual(new float3(0.0f, 0.0f, 1.0f), aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_MinMaxAABB_new_minxz_maxy() { var aabb = new MinMaxAABB(); @@ -137,7 +137,7 @@ public static void Encapsulate_MinMaxAABB_new_minxz_maxy() TestUtils.AreEqual(new float3(0.0f, 1.0f, 0.0f), aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_MinMaxAABB_new_minz_maxxy() { var aabb = new MinMaxAABB(); @@ -146,7 +146,7 @@ public static void Encapsulate_MinMaxAABB_new_minz_maxxy() TestUtils.AreEqual(new float3(1.0f, 1.0f, 0.0f), aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Encapsulate_MinMaxAABB_new_miny_maxxz() { var aabb = new MinMaxAABB(); @@ -155,14 +155,14 @@ public static void Encapsulate_MinMaxAABB_new_miny_maxxz() TestUtils.AreEqual(new float3(1.0f, 0.0f, 1.0f), aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Equals_trivial() { MinMaxAABB aabb = new MinMaxAABB(); TestUtils.IsTrue(aabb.Equals(aabb)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Equals() { MinMaxAABB aabb1 = new MinMaxAABB { Min = new float3(-123.0f, 0.5182f, 20.0f), Max = new float3(1.0f, -1.0f, 0.99191f) }; @@ -171,7 +171,7 @@ public static void Equals() TestUtils.IsTrue(aabb2.Equals(aabb1)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Equals_diff_minx() { MinMaxAABB aabb1 = new MinMaxAABB(); @@ -180,7 +180,7 @@ public static void Equals_diff_minx() TestUtils.IsFalse(aabb2.Equals(aabb1)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Equals_diff_miny() { MinMaxAABB aabb1 = new MinMaxAABB(); @@ -189,7 +189,7 @@ public static void Equals_diff_miny() TestUtils.IsFalse(aabb2.Equals(aabb1)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Equals_diff_minz() { MinMaxAABB aabb1 = new MinMaxAABB(); @@ -198,7 +198,7 @@ public static void Equals_diff_minz() TestUtils.IsFalse(aabb2.Equals(aabb1)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Equals_diff_maxx() { MinMaxAABB aabb1 = new MinMaxAABB(); @@ -207,7 +207,7 @@ public static void Equals_diff_maxx() TestUtils.IsFalse(aabb2.Equals(aabb1)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Equals_diff_maxy() { MinMaxAABB aabb1 = new MinMaxAABB(); @@ -216,7 +216,7 @@ public static void Equals_diff_maxy() TestUtils.IsFalse(aabb2.Equals(aabb1)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Equals_diff_maxz() { MinMaxAABB aabb1 = new MinMaxAABB(); @@ -225,7 +225,7 @@ public static void Equals_diff_maxz() TestUtils.IsFalse(aabb2.Equals(aabb1)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void SurfaceArea() { var min = new float3(-47.989063262939453125f, 28.037994384765625f, -9.756519317626953125f); @@ -235,7 +235,7 @@ public static void SurfaceArea() TestUtils.AreEqual(14400.470703125f, aabb.SurfaceArea, 1, true); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Extents() { var min = new float3(48.152984619140625f, -33.58978271484375f, -37.498805999755859375f); @@ -246,7 +246,7 @@ public static void Extents() TestUtils.AreEqual(expected, aabb.Extents); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Center() { var min = new float3(47.902675628662109375f, -34.302494049072265625f, 22.7147884368896484375f); @@ -257,7 +257,7 @@ public static void Center() TestUtils.AreEqual(expected, aabb.Center); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void HalfExtents() { var min = new float3(-14.3485383987426757813f, 28.68161773681640625f, -40.28060150146484375f); @@ -268,7 +268,7 @@ public static void HalfExtents() TestUtils.AreEqual(expected, aabb.HalfExtents); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Constructor() { var min = new float3(38.95940399169921875f, -24.644245147705078125f, 27.7903194427490234375f); @@ -279,7 +279,7 @@ public static void Constructor() TestUtils.AreEqual(max, aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ContainsPoint() { var aabb = new MinMaxAABB(new float3(-1), new float3(1)); @@ -301,7 +301,7 @@ public static void ContainsPoint() TestUtils.IsFalse(aabb.Contains(new float3(-1.0f, -1.0f, -1.0f - EPSILON))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ContainsAabb_Trivial() { var aabb1 = new MinMaxAABB(); @@ -311,7 +311,7 @@ public static void ContainsAabb_Trivial() TestUtils.IsTrue(aabb2.Contains(aabb1)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ContainsAabb() { var aabb1 = new MinMaxAABB(new float3(-1.0f), new float3(1.0f)); @@ -321,7 +321,7 @@ public static void ContainsAabb() TestUtils.IsFalse(aabb2.Contains(aabb1)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ContainsAabb_BarelyNotContained() { var aabb1 = new MinMaxAABB(new float3(-1.0f), new float3(1.0f)); @@ -340,7 +340,7 @@ public static void ContainsAabb_BarelyNotContained() TestUtils.IsFalse(aabb1.Contains(aabb7)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Overlap_Trivial() { var aabb = new MinMaxAABB(); @@ -348,7 +348,7 @@ public static void Overlap_Trivial() TestUtils.IsTrue(aabb.Overlaps(aabb)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Overlap_Corner() { var aabb = new MinMaxAABB(new float3(-1.0f), new float3(1.0f)); @@ -389,7 +389,7 @@ public static void Overlap_Corner() TestUtils.IsTrue(cornerAabb8.Overlaps(aabb)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void NoOverlap_Corner() { var aabb = new MinMaxAABB(new float3(-1.0f), new float3(1.0f)); @@ -430,7 +430,7 @@ public static void NoOverlap_Corner() TestUtils.IsFalse(cornerAabb8.Overlaps(aabb)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Expand_PositiveDistance() { var aabb = new MinMaxAABB(new float3(-0.5f), new float3(0.5f)); @@ -440,7 +440,7 @@ public static void Expand_PositiveDistance() TestUtils.AreEqual(new float3(1.5f), aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Expand_NegativeDistance() { var aabb = new MinMaxAABB(new float3(-0.5f), new float3(0.5f)); @@ -450,7 +450,7 @@ public static void Expand_NegativeDistance() TestUtils.AreEqual(new float3(-0.5f), aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void CreateFromCenterAndExtents() { var center = new float3(-29.2458133697509765625f, 1.21094369888305664063f, 34.281322479248046875f); @@ -463,7 +463,7 @@ public static void CreateFromCenterAndExtents() TestUtils.AreEqual(expectedMax, aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void CreateFromCenterAndHalfExtents() { var center = new float3(-29.2458133697509765625f, 1.21094369888305664063f, 34.281322479248046875f); @@ -476,14 +476,14 @@ public static void CreateFromCenterAndHalfExtents() TestUtils.AreEqual(expectedMax, aabb.Max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void IsValid_Trivial() { TestUtils.IsTrue(new MinMaxAABB().IsValid); TestUtils.IsFalse(new MinMaxAABB(new float3(1.0f), new float3(-1.0f)).IsValid); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void IsValid_OneComponentInvalid() { TestUtils.IsFalse(new MinMaxAABB(float3.zero, new float3(-1.0f, 0.0f, 0.0f)).IsValid); @@ -494,7 +494,7 @@ public static void IsValid_OneComponentInvalid() TestUtils.IsFalse(new MinMaxAABB(new float3(0.0f, 0.0f, 1.0f), float3.zero).IsValid); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Transform_RigidTransform() { var t = new RigidTransform(quaternion.EulerXYZ(PI * 0.25f), new float3(1.0f, 1.0f, 1.0f)); @@ -507,7 +507,7 @@ public static void Transform_RigidTransform() TestUtils.AreEqual(expectedMax, aabb.Max, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Transform_float4x4() { var t = new float4x4(float3x3.EulerXYZ(PI * 0.25f), new float3(1.0f, 1.0f, 1.0f)); @@ -520,7 +520,7 @@ public static void Transform_float4x4() TestUtils.AreEqual(expectedMax, aabb.Max, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Transform_float3x3() { var t = float3x3.EulerXYZ(PI * 0.25f); diff --git a/src/Tests/Tests/Shared/TestPlane.cs b/src/Tests/Tests/Shared/TestPlane.cs index c79ecb0b..2fbd3251 100644 --- a/src/Tests/Tests/Shared/TestPlane.cs +++ b/src/Tests/Tests/Shared/TestPlane.cs @@ -10,7 +10,7 @@ public class TestPlane // An arbitrary tolerance. const float Tolerance = 0.0000025f; - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Empty() { var p = new Plane(); @@ -20,7 +20,7 @@ public static void Empty() TestUtils.AreEqual(0.0f, p.Distance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void GetNormal() { var p = new Plane { NormalAndDistance = new float4(1.0f, 2.0f, 3.0f, 4.0f) }; @@ -28,7 +28,7 @@ public static void GetNormal() TestUtils.AreEqual(new float3(1.0f, 2.0f, 3.0f), p.Normal); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void GetDistance() { var p = new Plane { NormalAndDistance = new float4(1.0f, 2.0f, 3.0f, 4.0f) }; @@ -36,7 +36,7 @@ public static void GetDistance() TestUtils.AreEqual(4.0f, p.Distance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void SetNormal() { var p = new Plane { NormalAndDistance = new float4(1.0f, 2.0f, 3.0f, 4.0f) }; @@ -45,7 +45,7 @@ public static void SetNormal() TestUtils.AreEqual(new float3(-1.0f, -2.0f, -3.0f), p.Normal); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void SetDistance() { var p = new Plane { NormalAndDistance = new float4(1.0f, 2.0f, 3.0f, 4.0f) }; @@ -54,7 +54,7 @@ public static void SetDistance() TestUtils.AreEqual(-4.0f, p.Distance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ConstructWithNormalAndDistance() { var n = math.normalize(new float3(4.0f, -5.0f, 6.0f)); @@ -66,7 +66,7 @@ public static void ConstructWithNormalAndDistance() TestUtils.AreEqual(d, p.Distance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ConstructWithCoefficients_NonUnitLengthNormal() { var abcd = new float4(4.0f, -5.0f, 6.0f, 123.0f); @@ -78,7 +78,7 @@ public static void ConstructWithCoefficients_NonUnitLengthNormal() TestUtils.AreEqual(expected.w, p.Distance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ConstructWithNormalAndPointInPlane_NegativeDistance() { var n = math.up(); @@ -90,7 +90,7 @@ public static void ConstructWithNormalAndPointInPlane_NegativeDistance() TestUtils.AreEqual(-1.0f, p.Distance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ConstructWithNormalAndPointInPlane_PositiveDistance() { var n = math.down(); @@ -102,7 +102,7 @@ public static void ConstructWithNormalAndPointInPlane_PositiveDistance() TestUtils.AreEqual(1.0f, p.Distance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ConstructWithNormalAndPointInPlane() { var normal = new float3(2.0f, 2.0f, 2.0f); @@ -116,7 +116,7 @@ public static void ConstructWithNormalAndPointInPlane() TestUtils.AreEqual(expectedD, p.Distance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ConstructWithTwoVectorsAndOrigin_Trivial() { var v1 = new float3(1.0f, 0.0f, 0.0f); @@ -126,7 +126,7 @@ public static void ConstructWithTwoVectorsAndOrigin_Trivial() TestUtils.AreEqual(new float4(0.0f, 0.0f, 1.0f, 0.0f), p); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ConstructWithTwoVectorsAndOrigin_NonZeroOrigin() { var v1 = new float3(5.0f, 0.0f, 0.0f); @@ -136,7 +136,7 @@ public static void ConstructWithTwoVectorsAndOrigin_NonZeroOrigin() TestUtils.AreEqual(new float4(0.0f, 0.0f, -1.0f, 1.0f), p); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void SignedDistanceToPoint() { var vInPlane1 = new float3(2.0f, 1.0f, -0.18f); @@ -152,7 +152,7 @@ public static void SignedDistanceToPoint() TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(pointInPlane - n), Tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void SignedDistanceToPointTrivial() { var p = new Plane(math.up(), 0.0f); @@ -174,7 +174,7 @@ public static void SignedDistanceToPointTrivial() TestUtils.AreEqual(-1.0f, p.SignedDistanceToPoint(math.down() + math.forward())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ProjectionTrivial() { var p = new Plane(math.up(), 0.0f); @@ -183,7 +183,7 @@ public static void ProjectionTrivial() TestUtils.AreEqual(expected, p.Projection(math.up() + expected)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Projection() { var normal = new float3(1.0f); @@ -195,7 +195,7 @@ public static void Projection() TestUtils.AreEqual(expected, p.Projection(expected), math.EPSILON); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void Flipped() { var normal = new float3(1.0f); @@ -207,7 +207,7 @@ public static void Flipped() TestUtils.AreEqual(new float4(expectedN, expectedD), p.Flipped, Tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void ImplicitToFloat4() { var normal = new float3(1.1f, -20.0f, 15.182f); @@ -220,7 +220,7 @@ public static void ImplicitToFloat4() TestUtils.AreEqual(new float4(expectedN, expectedD), p_as_float4, Tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void NormalizeFloat4() { var p = new float4(8.215876543024162e-01f, 2.786574280629829e-01f, 8.121669997361285e-01f, 9.352839276497152e-01f); @@ -229,7 +229,7 @@ public static void NormalizeFloat4() TestUtils.AreEqual(expected, Plane.Normalize(p), Tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void NormalizePlane() { var p = new Plane { NormalAndDistance = new float4(8.215876543024162e-01f, 2.786574280629829e-01f, 8.121669997361285e-01f, 9.352839276497152e-01f) }; @@ -241,7 +241,7 @@ public static void NormalizePlane() TestUtils.AreEqual(expected.w, normalized.Distance, Tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void CreateFromUnitNormalAndDistance() { var n = new float3(9.108767140247756e-02f, 3.966831912609620e-01f, 9.134251375397404e-01f); @@ -252,7 +252,7 @@ public static void CreateFromUnitNormalAndDistance() TestUtils.AreEqual(expected, p.NormalAndDistance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void CreateFromUnitNormalAndPointInPlane() { var n = new float3(4.724920516359185e-01f, 1.444614284194820e-01f, 8.694148358751899e-01f); @@ -263,4 +263,4 @@ public static void CreateFromUnitNormalAndPointInPlane() TestUtils.AreEqual(expected, p.NormalAndDistance, Tolerance); } } -} \ No newline at end of file +} diff --git a/src/Tests/Tests/Shared/TestQuaternion.cs b/src/Tests/Tests/Shared/TestQuaternion.cs index 0279de90..301725ee 100644 --- a/src/Tests/Tests/Shared/TestQuaternion.cs +++ b/src/Tests/Tests/Shared/TestQuaternion.cs @@ -7,7 +7,7 @@ namespace Unity.Mathematics.Tests [TestFixture] class TestQuaternion { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_basic_constructors() { quaternion q = quaternion(1.0f, 2.0f, 3.0f, 4.0f); @@ -23,7 +23,7 @@ public static void quaternion_basic_constructors() TestUtils.AreEqual(4.0f, q2.value.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_construct_from_matrix() { TestUtils.AreEqual(float3x3(quaternion(TestMatrix.test3x3_xyz)), TestMatrix.test3x3_xyz, 0.0001f); @@ -45,7 +45,7 @@ public static void quaternion_construct_from_matrix() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_construct_from_matrix3x3_torture() { Random rnd = new Random(0x12345678); @@ -58,7 +58,7 @@ public static void quaternion_construct_from_matrix3x3_torture() } } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_construct_from_matrix4x4_torture() { Random rnd = new Random(0x12345678); @@ -71,7 +71,7 @@ public static void quaternion_construct_from_matrix4x4_torture() } } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_axis_angle() { quaternion q = quaternion.AxisAngle(normalize(float3(1.0f, 2.0f, 3.0f)), 10.0f); @@ -80,7 +80,7 @@ public static void quaternion_axis_angle() TestUtils.AreEqual(r, q, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_axis_angle_consistency() { TestUtils.AreEqual(quaternion.RotateX(1.0f), quaternion.AxisAngle(float3(1, 0, 0), 1.0f), 0.001f); @@ -88,7 +88,7 @@ public static void quaternion_axis_angle_consistency() TestUtils.AreEqual(quaternion.RotateZ(1.0f), quaternion.AxisAngle(float3(0, 0, 1), 1.0f), 0.001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void euler_to_quaternion() { float3 test_angles = TestMatrix.test_angles; @@ -158,7 +158,7 @@ public static void euler_to_quaternion() TestUtils.AreEqual(TestMatrix.test3x3_zyx, m1_zyx, epsilon); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_rotateX() { float angle = 2.3f; @@ -168,7 +168,7 @@ public static void quaternion_rotateX() TestUtils.AreEqual(r, q, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_rotateY() { float angle = 2.3f; @@ -178,7 +178,7 @@ public static void quaternion_rotateY() TestUtils.AreEqual(r, q, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_rotateZ() { float angle = 2.3f; @@ -193,7 +193,7 @@ public static void quaternion_rotateZ() static internal readonly quaternion test_q2 = new quaternion(-0.2316205f, -0.6022133f, -0.7411857f, -0.1852964f); static internal readonly quaternion test_q3 = new quaternion(0.3619499f, 0.8352691f, -0.1392115f, 0.3897922f); - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_conjugate() { quaternion q = quaternion(1.0f, -2.0f, 3.0f, -4.0f); @@ -203,7 +203,7 @@ public static void quaternion_conjugate() TestUtils.AreEqual(r, cq); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_inverse() { quaternion q = quaternion(1.0f, -2.0f, 3.0f, -4.0f); @@ -213,7 +213,7 @@ public static void quaternion_inverse() TestUtils.AreEqual(quaternion.identity, qiq, 0.00001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_dot() { float dot01 = dot(test_q0, test_q1); @@ -223,7 +223,7 @@ public static void quaternion_dot() TestUtils.AreEqual(-0.5795583f, dot02, 0.00001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_nlerp() { quaternion r0 = nlerp(test_q0, test_q1, 0.3f); @@ -235,7 +235,7 @@ public static void quaternion_nlerp() TestUtils.AreEqual(quaternion(-0.4054004f, 0.06570576f, -0.7457358f, -0.5246059f), r2, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_slerp() { quaternion r0 = slerp(test_q0, test_q1, 0.3f); @@ -247,7 +247,7 @@ public static void quaternion_slerp() TestUtils.AreEqual(quaternion(0.2596942f, -0.4369303f, 0.7902023f, 0.34239f), r2, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_mul_vector() { float3x3 m = TestMatrix.test3x3_xyz; @@ -261,7 +261,7 @@ public static void quaternion_mul_vector() TestUtils.AreEqual(mvector, qvector, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_log_exp_identity() { quaternion q = quaternion(1.2f, -2.6f, 3.1f, 6.0f); @@ -270,7 +270,7 @@ public static void quaternion_log_exp_identity() TestUtils.AreEqual(q, exp_log_q, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_log_exp_rotation() { quaternion q = quaternion(TestMatrix.test3x3_xyz); @@ -280,7 +280,7 @@ public static void quaternion_log_exp_rotation() TestUtils.AreEqual(q3, t, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_unitlog_unitexp_rotation() { quaternion q = quaternion(TestMatrix.test3x3_xyz); @@ -290,7 +290,7 @@ public static void quaternion_unitlog_unitexp_rotation() TestUtils.AreEqual(q3, t, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_look_rotation() { // Exercise the 4 cases @@ -319,7 +319,7 @@ public static void quaternion_look_rotation() TestUtils.AreEqual(float3x3.LookRotation(forward3, up3), float3x3(q3), 0.001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_look_rotation_safe() { float3 forward0 = float3(-3.2f, 2.3f, -1.3f) * 1e-10f; @@ -381,7 +381,7 @@ public static void quaternion_angle() TestUtils.AreEqual(0f, angle); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_rotation_from_3x3_identity() { const float tolerance = 1e-5f; @@ -389,7 +389,7 @@ public static void quaternion_rotation_from_3x3_identity() TestUtils.AreEqual(quaternion.identity, q, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_rotation_from_3x3_with_uniform_scale() { const float tolerance = 1e-5f; @@ -401,7 +401,7 @@ public static void quaternion_rotation_from_3x3_with_uniform_scale() TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_rotation_from_3x3_with_nonuniform_scale() { const float tolerance = 1e-5f; @@ -413,7 +413,7 @@ public static void quaternion_rotation_from_3x3_with_nonuniform_scale() TestUtils.AreEqual(quaternion.identity, q, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_rotation_from_3x3_with_negative_scale_x() { const float tolerance = 1e-5f; @@ -425,7 +425,7 @@ public static void quaternion_rotation_from_3x3_with_negative_scale_x() TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_rotation_from_3x3_with_negative_scale_y() { const float tolerance = 1e-5f; @@ -437,7 +437,7 @@ public static void quaternion_rotation_from_3x3_with_negative_scale_y() TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_rotation_from_3x3_with_negative_scale_z() { const float tolerance = 1e-5f; @@ -449,7 +449,7 @@ public static void quaternion_rotation_from_3x3_with_negative_scale_z() TestUtils.AreEqual(0.0f, angle(actualQuaternion, expectedQuaternion) % PI * 2.0f, tolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_rotation_from_3x3_with_negative_nonuniform_scale() { const float tolerance = 1e-5f; diff --git a/src/Tests/Tests/Shared/TestRigidTransform.cs b/src/Tests/Tests/Shared/TestRigidTransform.cs index eacec9ed..ac0d8060 100644 --- a/src/Tests/Tests/Shared/TestRigidTransform.cs +++ b/src/Tests/Tests/Shared/TestRigidTransform.cs @@ -7,7 +7,7 @@ namespace Unity.Mathematics.Tests [TestFixture] class TestRigidTransform { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rigid_transform_construct_from_matrix() { float4x4 m4x4 = TestMatrix.test4x4_zyx; @@ -19,7 +19,7 @@ public static void rigid_transform_construct_from_matrix() TestUtils.AreEqual(m4x4, mq4x4, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rigid_transform_axisAngle() { RigidTransform q = RigidTransform.AxisAngle(normalize(float3(1.0f, 2.0f, 3.0f)), 10.0f); @@ -28,7 +28,7 @@ public static void rigid_transform_axisAngle() TestUtils.AreEqual(r, q, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rigid_transform_euler() { float3 test_angles = TestMatrix.test_angles; @@ -98,7 +98,7 @@ public static void rigid_transform_euler() TestUtils.AreEqual(TestMatrix.test3x3_zyx, m1_zyx, epsilon); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rigid_transform_rotateX() { float angle = 2.3f; @@ -108,7 +108,7 @@ public static void rigid_transform_rotateX() TestUtils.AreEqual(r, q, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rigid_transform_rotateY() { float angle = 2.3f; @@ -118,7 +118,7 @@ public static void rigid_transform_rotateY() TestUtils.AreEqual(r, q, 0.0001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rigid_transform_rotateZ() { float angle = 2.3f; @@ -133,7 +133,7 @@ public static void rigid_transform_rotateZ() static internal readonly quaternion test_q2 = new quaternion(-0.2316205f, -0.6022133f, -0.7411857f, -0.1852964f); static internal readonly quaternion test_q3 = new quaternion(0.3619499f, 0.8352691f, -0.1392115f, 0.3897922f); - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rigid_transform_inverse() { RigidTransform q = RigidTransform(quaternion(1.0f, -2.0f, 3.0f, -4.0f), float3(1,2,3)); @@ -143,7 +143,7 @@ public static void rigid_transform_inverse() TestUtils.AreEqual(RigidTransform.identity, qiq, 0.00001f); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void rigid_transform_mul_vector() { float4x4 m = TestMatrix.test4x4_xyz; diff --git a/src/Tests/Tests/Shared/TestSvd.cs b/src/Tests/Tests/Shared/TestSvd.cs index db889bd9..e75cf04f 100644 --- a/src/Tests/Tests/Shared/TestSvd.cs +++ b/src/Tests/Tests/Shared/TestSvd.cs @@ -48,7 +48,7 @@ static void ValidatePenrose2(in float3x3 a, in float3x3 b) static void ValidateSingular(in float3x3 a) => TestUtils.AreEqual(0.0f, math.determinant(a), k_SVDTolerance); - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void CanSVDInverseNonSingularFloat3x3() { var mat = math.float3x3( @@ -71,7 +71,7 @@ public static void CanSVDInverseNonSingularFloat3x3() TestUtils.AreEqual(1f, testIdentity.c2.z, k_SVDTolerance); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void CanSVDInverseFloat3x3With_NullColumn() { var mat = math.float3x3( @@ -89,7 +89,7 @@ public static void CanSVDInverseFloat3x3With_NullColumn() ValidatePenrose2(inv, mat); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void CanSVDInverseFloat3x3With_NullRow() { var mat = math.float3x3( @@ -107,7 +107,7 @@ public static void CanSVDInverseFloat3x3With_NullRow() ValidatePenrose2(inv, mat); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void CanSVDInverseFloat3x3With_LinearDependentColumn() { var mat = math.float3x3( @@ -125,7 +125,7 @@ public static void CanSVDInverseFloat3x3With_LinearDependentColumn() ValidatePenrose2(inv, mat); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void CanSVDInverseFloat3x3With_LinearDependentRow() { var mat = math.float3x3( @@ -143,7 +143,7 @@ public static void CanSVDInverseFloat3x3With_LinearDependentRow() ValidatePenrose2(inv, mat); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void CanSVDInverseFloat3x3With_RotatedZeroScale() { var m102030 = math.float3x3(quaternion.Euler(math.radians(10f), math.radians(20f), math.radians(30f))); @@ -160,7 +160,7 @@ public static void CanSVDInverseFloat3x3With_RotatedZeroScale() } // Case 928598: The errors appear, when GameObject has a child with ParticleSystem which is rotated along the y-axis to -180 and is moved - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void CanExtractSVDRotationFromFloat3x3With_X180_Y0_Z181() { var q = quaternion.Euler(math.radians(180f), math.radians(0f), math.radians(181f)); @@ -170,7 +170,7 @@ public static void CanExtractSVDRotationFromFloat3x3With_X180_Y0_Z181() } // Case 938548: Assertion failed on expression: 'CompareApproximately(det, 1.0F, .005f)' when scaling system to 0 on at least 2 axes - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void CanExtractSVDRotationFromFloat3x3With_ZeroScaleXY() { var q0 = quaternion.Euler(math.radians(10f), math.radians(20f), math.radians(30f)); @@ -182,4 +182,4 @@ public static void CanExtractSVDRotationFromFloat3x3With_ZeroScaleXY() TestUtils.AreEqual(0.0f, math.length(m0.c0 - m1.c0), k_SVDTolerance); } } -} \ No newline at end of file +} diff --git a/src/Tests/Tests/Shared/TestUint2.gen.cs b/src/Tests/Tests/Shared/TestUint2.gen.cs index 04620a33..d853e034 100644 --- a/src/Tests/Tests/Shared/TestUint2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2.gen.cs @@ -15,14 +15,14 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_zero() { TestUtils.AreEqual(0u, uint2.zero.x); TestUtils.AreEqual(0u, uint2.zero.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_constructor() { uint2 a = new uint2(1, 2); @@ -30,7 +30,7 @@ public static void uint2_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_scalar_constructor() { uint2 a = new uint2(17u); @@ -38,7 +38,7 @@ public static void uint2_scalar_constructor() TestUtils.AreEqual(17u, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_static_constructor() { uint2 a = uint2(1, 2); @@ -46,7 +46,7 @@ public static void uint2_static_constructor() TestUtils.AreEqual(2, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_static_scalar_constructor() { uint2 a = uint2(17u); @@ -54,7 +54,7 @@ public static void uint2_static_scalar_constructor() TestUtils.AreEqual(17u, a.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_equal_wide_wide() { uint2 a0 = uint2(2105871082, 35218899); @@ -78,7 +78,7 @@ public static void uint2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_equal_wide_scalar() { uint2 a0 = uint2(437822262, 2020661134); @@ -102,7 +102,7 @@ public static void uint2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -126,7 +126,7 @@ public static void uint2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_not_equal_wide_wide() { uint2 a0 = uint2(1977284100, 1293292704); @@ -150,7 +150,7 @@ public static void uint2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_not_equal_wide_scalar() { uint2 a0 = uint2(1038269360, 1427812625); @@ -174,7 +174,7 @@ public static void uint2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -198,7 +198,7 @@ public static void uint2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_less_wide_wide() { uint2 a0 = uint2(1486550609, 1779244308); @@ -222,7 +222,7 @@ public static void uint2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_less_wide_scalar() { uint2 a0 = uint2(796797557, 670113454); @@ -246,7 +246,7 @@ public static void uint2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_less_scalar_wide() { uint a0 = (186400299); @@ -270,7 +270,7 @@ public static void uint2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_greater_wide_wide() { uint2 a0 = uint2(2087717754, 1725569452); @@ -294,7 +294,7 @@ public static void uint2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_greater_wide_scalar() { uint2 a0 = uint2(1208626274, 239697208); @@ -318,7 +318,7 @@ public static void uint2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -342,7 +342,7 @@ public static void uint2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_less_equal_wide_wide() { uint2 a0 = uint2(154092149, 1515170149); @@ -366,7 +366,7 @@ public static void uint2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_less_equal_wide_scalar() { uint2 a0 = uint2(1479531977, 1427983411); @@ -390,7 +390,7 @@ public static void uint2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -414,7 +414,7 @@ public static void uint2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_greater_equal_wide_wide() { uint2 a0 = uint2(8538378, 2131749726); @@ -438,7 +438,7 @@ public static void uint2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_greater_equal_wide_scalar() { uint2 a0 = uint2(2049236663, 182691143); @@ -462,7 +462,7 @@ public static void uint2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -486,7 +486,7 @@ public static void uint2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_add_wide_wide() { uint2 a0 = uint2(2135171378, 21433296); @@ -510,7 +510,7 @@ public static void uint2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_add_wide_scalar() { uint2 a0 = uint2(665815972, 1783729250); @@ -534,7 +534,7 @@ public static void uint2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_add_scalar_wide() { uint a0 = (359966320); @@ -558,7 +558,7 @@ public static void uint2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_sub_wide_wide() { uint2 a0 = uint2(1410318491, 1097280168); @@ -582,7 +582,7 @@ public static void uint2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_sub_wide_scalar() { uint2 a0 = uint2(1508669340, 1594795463); @@ -606,7 +606,7 @@ public static void uint2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -630,7 +630,7 @@ public static void uint2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_mul_wide_wide() { uint2 a0 = uint2(61417577, 219585476); @@ -654,7 +654,7 @@ public static void uint2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_mul_wide_scalar() { uint2 a0 = uint2(871746615, 492532311); @@ -678,7 +678,7 @@ public static void uint2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -702,7 +702,7 @@ public static void uint2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_div_wide_wide() { uint2 a0 = uint2(333171510, 858154903); @@ -726,7 +726,7 @@ public static void uint2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_div_wide_scalar() { uint2 a0 = uint2(1433072926, 1073958635); @@ -750,7 +750,7 @@ public static void uint2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_div_scalar_wide() { uint a0 = (519165704); @@ -774,7 +774,7 @@ public static void uint2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_mod_wide_wide() { uint2 a0 = uint2(258342924, 1454754891); @@ -798,7 +798,7 @@ public static void uint2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_mod_wide_scalar() { uint2 a0 = uint2(560988938, 629524514); @@ -822,7 +822,7 @@ public static void uint2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -846,7 +846,7 @@ public static void uint2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_plus() { uint2 a0 = uint2(195392567, 222719748); @@ -866,7 +866,7 @@ public static void uint2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_neg() { uint2 a0 = uint2(1385088677, 94114564); @@ -886,7 +886,7 @@ public static void uint2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_prefix_inc() { uint2 a0 = uint2(780471723, 954741756); @@ -906,7 +906,7 @@ public static void uint2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_postfix_inc() { uint2 a0 = uint2(241865086, 2145821641); @@ -926,7 +926,7 @@ public static void uint2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_prefix_dec() { uint2 a0 = uint2(1331961415, 1612382200); @@ -946,7 +946,7 @@ public static void uint2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_postfix_dec() { uint2 a0 = uint2(1870005937, 1708534798); @@ -966,7 +966,7 @@ public static void uint2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_bitwise_and_wide_wide() { uint2 a0 = uint2(1055241304, 859321394); @@ -990,7 +990,7 @@ public static void uint2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_bitwise_and_wide_scalar() { uint2 a0 = uint2(1513158868, 284695609); @@ -1014,7 +1014,7 @@ public static void uint2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1038,7 +1038,7 @@ public static void uint2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_bitwise_or_wide_wide() { uint2 a0 = uint2(1920951869, 1750772852); @@ -1062,7 +1062,7 @@ public static void uint2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_bitwise_or_wide_scalar() { uint2 a0 = uint2(1295304853, 1307252624); @@ -1086,7 +1086,7 @@ public static void uint2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1110,7 +1110,7 @@ public static void uint2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_bitwise_xor_wide_wide() { uint2 a0 = uint2(1843655608, 362425681); @@ -1134,7 +1134,7 @@ public static void uint2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_bitwise_xor_wide_scalar() { uint2 a0 = uint2(169345668, 176087064); @@ -1158,7 +1158,7 @@ public static void uint2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1182,7 +1182,7 @@ public static void uint2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_left_shift() { uint2 a0 = uint2(1129100049, 829482269); @@ -1206,7 +1206,7 @@ public static void uint2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_right_shift() { uint2 a0 = uint2(809126085, 908563670); @@ -1230,7 +1230,7 @@ public static void uint2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_operator_bitwise_not() { uint2 a0 = uint2(111796841, 603562399); @@ -1250,7 +1250,7 @@ public static void uint2_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_shuffle_result_1() { uint2 a = uint2(0, 1); @@ -1262,7 +1262,7 @@ public static void uint2_shuffle_result_1() TestUtils.AreEqual((3), shuffle(a, b, ShuffleComponent.RightY)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_shuffle_result_2() { uint2 a = uint2(0, 1); @@ -1286,7 +1286,7 @@ public static void uint2_shuffle_result_2() TestUtils.AreEqual(uint2(3, 3), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.RightY)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_shuffle_result_3() { uint2 a = uint2(0, 1); @@ -1310,7 +1310,7 @@ public static void uint2_shuffle_result_3() TestUtils.AreEqual(uint3(3, 1, 1), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.LeftY)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_shuffle_result_4() { uint2 a = uint2(0, 1); diff --git a/src/Tests/Tests/Shared/TestUint2x2.gen.cs b/src/Tests/Tests/Shared/TestUint2x2.gen.cs index dd8ed7a4..012db8aa 100644 --- a/src/Tests/Tests/Shared/TestUint2x2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint2x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_zero() { TestUtils.AreEqual(0u, uint2x2.zero.c0.x); @@ -24,7 +24,7 @@ public static void uint2x2_zero() TestUtils.AreEqual(0u, uint2x2.zero.c1.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_identity() { TestUtils.AreEqual(1u, uint2x2.identity.c0.x); @@ -33,7 +33,7 @@ public static void uint2x2_identity() TestUtils.AreEqual(1u, uint2x2.identity.c1.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_equal_wide_wide() { uint2x2 a0 = uint2x2(2105871082, 35218899, 1550755093, 764676020); @@ -57,7 +57,7 @@ public static void uint2x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_equal_wide_scalar() { uint2x2 a0 = uint2x2(437822262, 2020661134, 541786900, 853113810); @@ -81,7 +81,7 @@ public static void uint2x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -105,7 +105,7 @@ public static void uint2x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_not_equal_wide_wide() { uint2x2 a0 = uint2x2(1977284100, 1293292704, 1547283851, 422428953); @@ -129,7 +129,7 @@ public static void uint2x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_not_equal_wide_scalar() { uint2x2 a0 = uint2x2(1038269360, 1427812625, 103361237, 1347017023); @@ -153,7 +153,7 @@ public static void uint2x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -177,7 +177,7 @@ public static void uint2x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_less_wide_wide() { uint2x2 a0 = uint2x2(1486550609, 1779244308, 1602148045, 1614085440); @@ -201,7 +201,7 @@ public static void uint2x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_less_wide_scalar() { uint2x2 a0 = uint2x2(796797557, 670113454, 933579492, 278884514); @@ -225,7 +225,7 @@ public static void uint2x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_less_scalar_wide() { uint a0 = (186400299); @@ -249,7 +249,7 @@ public static void uint2x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_greater_wide_wide() { uint2x2 a0 = uint2x2(2087717754, 1725569452, 1298066182, 1693943616); @@ -273,7 +273,7 @@ public static void uint2x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_greater_wide_scalar() { uint2x2 a0 = uint2x2(1208626274, 239697208, 1979453345, 1253474001); @@ -297,7 +297,7 @@ public static void uint2x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -321,7 +321,7 @@ public static void uint2x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_less_equal_wide_wide() { uint2x2 a0 = uint2x2(154092149, 1515170149, 1083970332, 785807178); @@ -345,7 +345,7 @@ public static void uint2x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_less_equal_wide_scalar() { uint2x2 a0 = uint2x2(1479531977, 1427983411, 415250630, 1245345407); @@ -369,7 +369,7 @@ public static void uint2x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -393,7 +393,7 @@ public static void uint2x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_greater_equal_wide_wide() { uint2x2 a0 = uint2x2(8538378, 2131749726, 265427108, 523609761); @@ -417,7 +417,7 @@ public static void uint2x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_greater_equal_wide_scalar() { uint2x2 a0 = uint2x2(2049236663, 182691143, 634973382, 1197012109); @@ -441,7 +441,7 @@ public static void uint2x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -465,7 +465,7 @@ public static void uint2x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_add_wide_wide() { uint2x2 a0 = uint2x2(2135171378, 21433296, 1954723494, 683604307); @@ -489,7 +489,7 @@ public static void uint2x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_add_wide_scalar() { uint2x2 a0 = uint2x2(665815972, 1783729250, 1591678394, 1284528538); @@ -513,7 +513,7 @@ public static void uint2x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_add_scalar_wide() { uint a0 = (359966320); @@ -537,7 +537,7 @@ public static void uint2x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_sub_wide_wide() { uint2x2 a0 = uint2x2(1410318491, 1097280168, 1827039044, 28881338); @@ -561,7 +561,7 @@ public static void uint2x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_sub_wide_scalar() { uint2x2 a0 = uint2x2(1508669340, 1594795463, 266707545, 643102647); @@ -585,7 +585,7 @@ public static void uint2x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -609,7 +609,7 @@ public static void uint2x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_mul_wide_wide() { uint2x2 a0 = uint2x2(61417577, 219585476, 1362520891, 1511084277); @@ -633,7 +633,7 @@ public static void uint2x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_mul_wide_scalar() { uint2x2 a0 = uint2x2(871746615, 492532311, 570557670, 2142306629); @@ -657,7 +657,7 @@ public static void uint2x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -681,7 +681,7 @@ public static void uint2x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_div_wide_wide() { uint2x2 a0 = uint2x2(333171510, 858154903, 1181365836, 671357749); @@ -705,7 +705,7 @@ public static void uint2x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_div_wide_scalar() { uint2x2 a0 = uint2x2(1433072926, 1073958635, 1195142312, 536596719); @@ -729,7 +729,7 @@ public static void uint2x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_div_scalar_wide() { uint a0 = (519165704); @@ -753,7 +753,7 @@ public static void uint2x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_mod_wide_wide() { uint2x2 a0 = uint2x2(258342924, 1454754891, 723352342, 1981431473); @@ -777,7 +777,7 @@ public static void uint2x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_mod_wide_scalar() { uint2x2 a0 = uint2x2(560988938, 629524514, 767711194, 434281967); @@ -801,7 +801,7 @@ public static void uint2x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -825,7 +825,7 @@ public static void uint2x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_plus() { uint2x2 a0 = uint2x2(195392567, 222719748, 1002351013, 1570765263); @@ -845,7 +845,7 @@ public static void uint2x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_neg() { uint2x2 a0 = uint2x2(1385088677, 94114564, 1350664872, 1458616659); @@ -865,7 +865,7 @@ public static void uint2x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_prefix_inc() { uint2x2 a0 = uint2x2(780471723, 954741756, 272723451, 2142862245); @@ -885,7 +885,7 @@ public static void uint2x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_postfix_inc() { uint2x2 a0 = uint2x2(241865086, 2145821641, 1596166022, 803592338); @@ -905,7 +905,7 @@ public static void uint2x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_prefix_dec() { uint2x2 a0 = uint2x2(1331961415, 1612382200, 1401591249, 2042075388); @@ -925,7 +925,7 @@ public static void uint2x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_postfix_dec() { uint2x2 a0 = uint2x2(1870005937, 1708534798, 704493460, 462940703); @@ -945,7 +945,7 @@ public static void uint2x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_bitwise_and_wide_wide() { uint2x2 a0 = uint2x2(1055241304, 859321394, 1088358961, 2090949513); @@ -969,7 +969,7 @@ public static void uint2x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_bitwise_and_wide_scalar() { uint2x2 a0 = uint2x2(1513158868, 284695609, 734595037, 1566510707); @@ -993,7 +993,7 @@ public static void uint2x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1017,7 +1017,7 @@ public static void uint2x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_bitwise_or_wide_wide() { uint2x2 a0 = uint2x2(1920951869, 1750772852, 1420019191, 732977093); @@ -1041,7 +1041,7 @@ public static void uint2x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_bitwise_or_wide_scalar() { uint2x2 a0 = uint2x2(1295304853, 1307252624, 350194630, 1128063578); @@ -1065,7 +1065,7 @@ public static void uint2x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1089,7 +1089,7 @@ public static void uint2x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_bitwise_xor_wide_wide() { uint2x2 a0 = uint2x2(1843655608, 362425681, 640805534, 1342040268); @@ -1113,7 +1113,7 @@ public static void uint2x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_bitwise_xor_wide_scalar() { uint2x2 a0 = uint2x2(169345668, 176087064, 2084362901, 1663924004); @@ -1137,7 +1137,7 @@ public static void uint2x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1161,7 +1161,7 @@ public static void uint2x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_left_shift() { uint2x2 a0 = uint2x2(1129100049, 829482269, 1571297368, 443753193); @@ -1185,7 +1185,7 @@ public static void uint2x2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_right_shift() { uint2x2 a0 = uint2x2(809126085, 908563670, 763568837, 1986717290); @@ -1209,7 +1209,7 @@ public static void uint2x2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x2_operator_bitwise_not() { uint2x2 a0 = uint2x2(111796841, 603562399, 745091931, 853183268); diff --git a/src/Tests/Tests/Shared/TestUint2x3.gen.cs b/src/Tests/Tests/Shared/TestUint2x3.gen.cs index 0dcca69a..ac053495 100644 --- a/src/Tests/Tests/Shared/TestUint2x3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint2x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_zero() { TestUtils.AreEqual(0u, uint2x3.zero.c0.x); @@ -26,7 +26,7 @@ public static void uint2x3_zero() TestUtils.AreEqual(0u, uint2x3.zero.c2.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_equal_wide_wide() { uint2x3 a0 = uint2x3(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098); @@ -50,7 +50,7 @@ public static void uint2x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_equal_wide_scalar() { uint2x3 a0 = uint2x3(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405); @@ -74,7 +74,7 @@ public static void uint2x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -98,7 +98,7 @@ public static void uint2x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_not_equal_wide_wide() { uint2x3 a0 = uint2x3(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892); @@ -122,7 +122,7 @@ public static void uint2x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_not_equal_wide_scalar() { uint2x3 a0 = uint2x3(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802); @@ -146,7 +146,7 @@ public static void uint2x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -170,7 +170,7 @@ public static void uint2x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_less_wide_wide() { uint2x3 a0 = uint2x3(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342); @@ -194,7 +194,7 @@ public static void uint2x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_less_wide_scalar() { uint2x3 a0 = uint2x3(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673); @@ -218,7 +218,7 @@ public static void uint2x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_less_scalar_wide() { uint a0 = (186400299); @@ -242,7 +242,7 @@ public static void uint2x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_greater_wide_wide() { uint2x3 a0 = uint2x3(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491); @@ -266,7 +266,7 @@ public static void uint2x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_greater_wide_scalar() { uint2x3 a0 = uint2x3(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635); @@ -290,7 +290,7 @@ public static void uint2x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -314,7 +314,7 @@ public static void uint2x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_less_equal_wide_wide() { uint2x3 a0 = uint2x3(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627); @@ -338,7 +338,7 @@ public static void uint2x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_less_equal_wide_scalar() { uint2x3 a0 = uint2x3(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632); @@ -362,7 +362,7 @@ public static void uint2x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -386,7 +386,7 @@ public static void uint2x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_greater_equal_wide_wide() { uint2x3 a0 = uint2x3(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564); @@ -410,7 +410,7 @@ public static void uint2x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_greater_equal_wide_scalar() { uint2x3 a0 = uint2x3(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469); @@ -434,7 +434,7 @@ public static void uint2x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -458,7 +458,7 @@ public static void uint2x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_add_wide_wide() { uint2x3 a0 = uint2x3(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995); @@ -482,7 +482,7 @@ public static void uint2x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_add_wide_scalar() { uint2x3 a0 = uint2x3(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732); @@ -506,7 +506,7 @@ public static void uint2x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_add_scalar_wide() { uint a0 = (359966320); @@ -530,7 +530,7 @@ public static void uint2x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_sub_wide_wide() { uint2x3 a0 = uint2x3(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868); @@ -554,7 +554,7 @@ public static void uint2x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_sub_wide_scalar() { uint2x3 a0 = uint2x3(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328); @@ -578,7 +578,7 @@ public static void uint2x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -602,7 +602,7 @@ public static void uint2x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_mul_wide_wide() { uint2x3 a0 = uint2x3(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871); @@ -626,7 +626,7 @@ public static void uint2x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_mul_wide_scalar() { uint2x3 a0 = uint2x3(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563); @@ -650,7 +650,7 @@ public static void uint2x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -674,7 +674,7 @@ public static void uint2x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_div_wide_wide() { uint2x3 a0 = uint2x3(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420); @@ -698,7 +698,7 @@ public static void uint2x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_div_wide_scalar() { uint2x3 a0 = uint2x3(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346); @@ -722,7 +722,7 @@ public static void uint2x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_div_scalar_wide() { uint a0 = (519165704); @@ -746,7 +746,7 @@ public static void uint2x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_mod_wide_wide() { uint2x3 a0 = uint2x3(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627); @@ -770,7 +770,7 @@ public static void uint2x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_mod_wide_scalar() { uint2x3 a0 = uint2x3(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846); @@ -794,7 +794,7 @@ public static void uint2x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -818,7 +818,7 @@ public static void uint2x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_plus() { uint2x3 a0 = uint2x3(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277); @@ -838,7 +838,7 @@ public static void uint2x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_neg() { uint2x3 a0 = uint2x3(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493); @@ -858,7 +858,7 @@ public static void uint2x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_prefix_inc() { uint2x3 a0 = uint2x3(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550); @@ -878,7 +878,7 @@ public static void uint2x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_postfix_inc() { uint2x3 a0 = uint2x3(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229); @@ -898,7 +898,7 @@ public static void uint2x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_prefix_dec() { uint2x3 a0 = uint2x3(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159); @@ -918,7 +918,7 @@ public static void uint2x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_postfix_dec() { uint2x3 a0 = uint2x3(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869); @@ -938,7 +938,7 @@ public static void uint2x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_bitwise_and_wide_wide() { uint2x3 a0 = uint2x3(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515); @@ -962,7 +962,7 @@ public static void uint2x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_bitwise_and_wide_scalar() { uint2x3 a0 = uint2x3(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838); @@ -986,7 +986,7 @@ public static void uint2x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1010,7 +1010,7 @@ public static void uint2x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_bitwise_or_wide_wide() { uint2x3 a0 = uint2x3(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930); @@ -1034,7 +1034,7 @@ public static void uint2x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_bitwise_or_wide_scalar() { uint2x3 a0 = uint2x3(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467); @@ -1058,7 +1058,7 @@ public static void uint2x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1082,7 +1082,7 @@ public static void uint2x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_bitwise_xor_wide_wide() { uint2x3 a0 = uint2x3(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850); @@ -1106,7 +1106,7 @@ public static void uint2x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_bitwise_xor_wide_scalar() { uint2x3 a0 = uint2x3(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661); @@ -1130,7 +1130,7 @@ public static void uint2x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1154,7 +1154,7 @@ public static void uint2x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_left_shift() { uint2x3 a0 = uint2x3(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593); @@ -1178,7 +1178,7 @@ public static void uint2x3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_right_shift() { uint2x3 a0 = uint2x3(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842); @@ -1202,7 +1202,7 @@ public static void uint2x3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x3_operator_bitwise_not() { uint2x3 a0 = uint2x3(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399); diff --git a/src/Tests/Tests/Shared/TestUint2x4.gen.cs b/src/Tests/Tests/Shared/TestUint2x4.gen.cs index 645d9554..f9a8f210 100644 --- a/src/Tests/Tests/Shared/TestUint2x4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint2x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint2x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_zero() { TestUtils.AreEqual(0u, uint2x4.zero.c0.x); @@ -28,7 +28,7 @@ public static void uint2x4_zero() TestUtils.AreEqual(0u, uint2x4.zero.c3.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_equal_wide_wide() { uint2x4 a0 = uint2x4(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316); @@ -52,7 +52,7 @@ public static void uint2x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_equal_wide_scalar() { uint2x4 a0 = uint2x4(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849); @@ -76,7 +76,7 @@ public static void uint2x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -100,7 +100,7 @@ public static void uint2x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_not_equal_wide_wide() { uint2x4 a0 = uint2x4(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074); @@ -124,7 +124,7 @@ public static void uint2x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_not_equal_wide_scalar() { uint2x4 a0 = uint2x4(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717); @@ -148,7 +148,7 @@ public static void uint2x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -172,7 +172,7 @@ public static void uint2x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_less_wide_wide() { uint2x4 a0 = uint2x4(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431); @@ -196,7 +196,7 @@ public static void uint2x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_less_wide_scalar() { uint2x4 a0 = uint2x4(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600); @@ -220,7 +220,7 @@ public static void uint2x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_less_scalar_wide() { uint a0 = (186400299); @@ -244,7 +244,7 @@ public static void uint2x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_greater_wide_wide() { uint2x4 a0 = uint2x4(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508); @@ -268,7 +268,7 @@ public static void uint2x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_greater_wide_scalar() { uint2x4 a0 = uint2x4(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098); @@ -292,7 +292,7 @@ public static void uint2x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -316,7 +316,7 @@ public static void uint2x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_less_equal_wide_wide() { uint2x4 a0 = uint2x4(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725); @@ -340,7 +340,7 @@ public static void uint2x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_less_equal_wide_scalar() { uint2x4 a0 = uint2x4(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307); @@ -364,7 +364,7 @@ public static void uint2x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -388,7 +388,7 @@ public static void uint2x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_greater_equal_wide_wide() { uint2x4 a0 = uint2x4(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970); @@ -412,7 +412,7 @@ public static void uint2x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_greater_equal_wide_scalar() { uint2x4 a0 = uint2x4(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187); @@ -436,7 +436,7 @@ public static void uint2x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -460,7 +460,7 @@ public static void uint2x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_add_wide_wide() { uint2x4 a0 = uint2x4(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062); @@ -484,7 +484,7 @@ public static void uint2x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_add_wide_scalar() { uint2x4 a0 = uint2x4(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017); @@ -508,7 +508,7 @@ public static void uint2x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_add_scalar_wide() { uint a0 = (359966320); @@ -532,7 +532,7 @@ public static void uint2x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_sub_wide_wide() { uint2x4 a0 = uint2x4(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215); @@ -556,7 +556,7 @@ public static void uint2x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_sub_wide_scalar() { uint2x4 a0 = uint2x4(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511); @@ -580,7 +580,7 @@ public static void uint2x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -604,7 +604,7 @@ public static void uint2x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_mul_wide_wide() { uint2x4 a0 = uint2x4(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644); @@ -628,7 +628,7 @@ public static void uint2x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_mul_wide_scalar() { uint2x4 a0 = uint2x4(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514); @@ -652,7 +652,7 @@ public static void uint2x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -676,7 +676,7 @@ public static void uint2x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_div_wide_wide() { uint2x4 a0 = uint2x4(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814); @@ -700,7 +700,7 @@ public static void uint2x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_div_wide_scalar() { uint2x4 a0 = uint2x4(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670); @@ -724,7 +724,7 @@ public static void uint2x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_div_scalar_wide() { uint a0 = (519165704); @@ -748,7 +748,7 @@ public static void uint2x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_mod_wide_wide() { uint2x4 a0 = uint2x4(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004); @@ -772,7 +772,7 @@ public static void uint2x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_mod_wide_scalar() { uint2x4 a0 = uint2x4(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916); @@ -796,7 +796,7 @@ public static void uint2x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -820,7 +820,7 @@ public static void uint2x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_plus() { uint2x4 a0 = uint2x4(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785); @@ -840,7 +840,7 @@ public static void uint2x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_neg() { uint2x4 a0 = uint2x4(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961); @@ -860,7 +860,7 @@ public static void uint2x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_prefix_inc() { uint2x4 a0 = uint2x4(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162); @@ -880,7 +880,7 @@ public static void uint2x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_postfix_inc() { uint2x4 a0 = uint2x4(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244); @@ -900,7 +900,7 @@ public static void uint2x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_prefix_dec() { uint2x4 a0 = uint2x4(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664); @@ -920,7 +920,7 @@ public static void uint2x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_postfix_dec() { uint2x4 a0 = uint2x4(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351); @@ -940,7 +940,7 @@ public static void uint2x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_bitwise_and_wide_wide() { uint2x4 a0 = uint2x4(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753); @@ -964,7 +964,7 @@ public static void uint2x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_bitwise_and_wide_scalar() { uint2x4 a0 = uint2x4(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908); @@ -988,7 +988,7 @@ public static void uint2x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1012,7 +1012,7 @@ public static void uint2x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_bitwise_or_wide_wide() { uint2x4 a0 = uint2x4(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323); @@ -1036,7 +1036,7 @@ public static void uint2x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_bitwise_or_wide_scalar() { uint2x4 a0 = uint2x4(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350); @@ -1060,7 +1060,7 @@ public static void uint2x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1084,7 +1084,7 @@ public static void uint2x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_bitwise_xor_wide_wide() { uint2x4 a0 = uint2x4(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658); @@ -1108,7 +1108,7 @@ public static void uint2x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_bitwise_xor_wide_scalar() { uint2x4 a0 = uint2x4(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783); @@ -1132,7 +1132,7 @@ public static void uint2x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1156,7 +1156,7 @@ public static void uint2x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_left_shift() { uint2x4 a0 = uint2x4(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862); @@ -1180,7 +1180,7 @@ public static void uint2x4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_right_shift() { uint2x4 a0 = uint2x4(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632); @@ -1204,7 +1204,7 @@ public static void uint2x4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2x4_operator_bitwise_not() { uint2x4 a0 = uint2x4(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135); diff --git a/src/Tests/Tests/Shared/TestUint3.gen.cs b/src/Tests/Tests/Shared/TestUint3.gen.cs index 67055e17..6443db9b 100644 --- a/src/Tests/Tests/Shared/TestUint3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_zero() { TestUtils.AreEqual(0u, uint3.zero.x); @@ -23,7 +23,7 @@ public static void uint3_zero() TestUtils.AreEqual(0u, uint3.zero.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_constructor() { uint3 a = new uint3(1, 2, 3); @@ -32,7 +32,7 @@ public static void uint3_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_scalar_constructor() { uint3 a = new uint3(17u); @@ -41,7 +41,7 @@ public static void uint3_scalar_constructor() TestUtils.AreEqual(17u, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_static_constructor() { uint3 a = uint3(1, 2, 3); @@ -50,7 +50,7 @@ public static void uint3_static_constructor() TestUtils.AreEqual(3, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_static_scalar_constructor() { uint3 a = uint3(17u); @@ -59,7 +59,7 @@ public static void uint3_static_scalar_constructor() TestUtils.AreEqual(17u, a.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_equal_wide_wide() { uint3 a0 = uint3(2105871082, 35218899, 1550755093); @@ -83,7 +83,7 @@ public static void uint3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_equal_wide_scalar() { uint3 a0 = uint3(437822262, 2020661134, 541786900); @@ -107,7 +107,7 @@ public static void uint3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -131,7 +131,7 @@ public static void uint3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_not_equal_wide_wide() { uint3 a0 = uint3(1977284100, 1293292704, 1547283851); @@ -155,7 +155,7 @@ public static void uint3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_not_equal_wide_scalar() { uint3 a0 = uint3(1038269360, 1427812625, 103361237); @@ -179,7 +179,7 @@ public static void uint3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -203,7 +203,7 @@ public static void uint3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_less_wide_wide() { uint3 a0 = uint3(1486550609, 1779244308, 1602148045); @@ -227,7 +227,7 @@ public static void uint3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_less_wide_scalar() { uint3 a0 = uint3(796797557, 670113454, 933579492); @@ -251,7 +251,7 @@ public static void uint3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_less_scalar_wide() { uint a0 = (186400299); @@ -275,7 +275,7 @@ public static void uint3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_greater_wide_wide() { uint3 a0 = uint3(2087717754, 1725569452, 1298066182); @@ -299,7 +299,7 @@ public static void uint3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_greater_wide_scalar() { uint3 a0 = uint3(1208626274, 239697208, 1979453345); @@ -323,7 +323,7 @@ public static void uint3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -347,7 +347,7 @@ public static void uint3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_less_equal_wide_wide() { uint3 a0 = uint3(154092149, 1515170149, 1083970332); @@ -371,7 +371,7 @@ public static void uint3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_less_equal_wide_scalar() { uint3 a0 = uint3(1479531977, 1427983411, 415250630); @@ -395,7 +395,7 @@ public static void uint3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -419,7 +419,7 @@ public static void uint3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_greater_equal_wide_wide() { uint3 a0 = uint3(8538378, 2131749726, 265427108); @@ -443,7 +443,7 @@ public static void uint3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_greater_equal_wide_scalar() { uint3 a0 = uint3(2049236663, 182691143, 634973382); @@ -467,7 +467,7 @@ public static void uint3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -491,7 +491,7 @@ public static void uint3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_add_wide_wide() { uint3 a0 = uint3(2135171378, 21433296, 1954723494); @@ -515,7 +515,7 @@ public static void uint3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_add_wide_scalar() { uint3 a0 = uint3(665815972, 1783729250, 1591678394); @@ -539,7 +539,7 @@ public static void uint3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_add_scalar_wide() { uint a0 = (359966320); @@ -563,7 +563,7 @@ public static void uint3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_sub_wide_wide() { uint3 a0 = uint3(1410318491, 1097280168, 1827039044); @@ -587,7 +587,7 @@ public static void uint3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_sub_wide_scalar() { uint3 a0 = uint3(1508669340, 1594795463, 266707545); @@ -611,7 +611,7 @@ public static void uint3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -635,7 +635,7 @@ public static void uint3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_mul_wide_wide() { uint3 a0 = uint3(61417577, 219585476, 1362520891); @@ -659,7 +659,7 @@ public static void uint3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_mul_wide_scalar() { uint3 a0 = uint3(871746615, 492532311, 570557670); @@ -683,7 +683,7 @@ public static void uint3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -707,7 +707,7 @@ public static void uint3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_div_wide_wide() { uint3 a0 = uint3(333171510, 858154903, 1181365836); @@ -731,7 +731,7 @@ public static void uint3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_div_wide_scalar() { uint3 a0 = uint3(1433072926, 1073958635, 1195142312); @@ -755,7 +755,7 @@ public static void uint3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_div_scalar_wide() { uint a0 = (519165704); @@ -779,7 +779,7 @@ public static void uint3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_mod_wide_wide() { uint3 a0 = uint3(258342924, 1454754891, 723352342); @@ -803,7 +803,7 @@ public static void uint3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_mod_wide_scalar() { uint3 a0 = uint3(560988938, 629524514, 767711194); @@ -827,7 +827,7 @@ public static void uint3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -851,7 +851,7 @@ public static void uint3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_plus() { uint3 a0 = uint3(195392567, 222719748, 1002351013); @@ -871,7 +871,7 @@ public static void uint3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_neg() { uint3 a0 = uint3(1385088677, 94114564, 1350664872); @@ -891,7 +891,7 @@ public static void uint3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_prefix_inc() { uint3 a0 = uint3(780471723, 954741756, 272723451); @@ -911,7 +911,7 @@ public static void uint3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_postfix_inc() { uint3 a0 = uint3(241865086, 2145821641, 1596166022); @@ -931,7 +931,7 @@ public static void uint3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_prefix_dec() { uint3 a0 = uint3(1331961415, 1612382200, 1401591249); @@ -951,7 +951,7 @@ public static void uint3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_postfix_dec() { uint3 a0 = uint3(1870005937, 1708534798, 704493460); @@ -971,7 +971,7 @@ public static void uint3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_bitwise_and_wide_wide() { uint3 a0 = uint3(1055241304, 859321394, 1088358961); @@ -995,7 +995,7 @@ public static void uint3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_bitwise_and_wide_scalar() { uint3 a0 = uint3(1513158868, 284695609, 734595037); @@ -1019,7 +1019,7 @@ public static void uint3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1043,7 +1043,7 @@ public static void uint3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_bitwise_or_wide_wide() { uint3 a0 = uint3(1920951869, 1750772852, 1420019191); @@ -1067,7 +1067,7 @@ public static void uint3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_bitwise_or_wide_scalar() { uint3 a0 = uint3(1295304853, 1307252624, 350194630); @@ -1091,7 +1091,7 @@ public static void uint3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1115,7 +1115,7 @@ public static void uint3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_bitwise_xor_wide_wide() { uint3 a0 = uint3(1843655608, 362425681, 640805534); @@ -1139,7 +1139,7 @@ public static void uint3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_bitwise_xor_wide_scalar() { uint3 a0 = uint3(169345668, 176087064, 2084362901); @@ -1163,7 +1163,7 @@ public static void uint3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1187,7 +1187,7 @@ public static void uint3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_left_shift() { uint3 a0 = uint3(1129100049, 829482269, 1571297368); @@ -1211,7 +1211,7 @@ public static void uint3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_right_shift() { uint3 a0 = uint3(809126085, 908563670, 763568837); @@ -1235,7 +1235,7 @@ public static void uint3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_operator_bitwise_not() { uint3 a0 = uint3(111796841, 603562399, 745091931); @@ -1255,7 +1255,7 @@ public static void uint3_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_shuffle_result_1() { uint3 a = uint3(0, 1, 2); @@ -1269,7 +1269,7 @@ public static void uint3_shuffle_result_1() TestUtils.AreEqual((5), shuffle(a, b, ShuffleComponent.RightZ)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_shuffle_result_2() { uint3 a = uint3(0, 1, 2); @@ -1293,7 +1293,7 @@ public static void uint3_shuffle_result_2() TestUtils.AreEqual(uint2(1, 2), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftZ)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_shuffle_result_3() { uint3 a = uint3(0, 1, 2); @@ -1317,7 +1317,7 @@ public static void uint3_shuffle_result_3() TestUtils.AreEqual(uint3(4, 0, 5), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftX, ShuffleComponent.RightZ)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_shuffle_result_4() { uint3 a = uint3(0, 1, 2); diff --git a/src/Tests/Tests/Shared/TestUint3x2.gen.cs b/src/Tests/Tests/Shared/TestUint3x2.gen.cs index 71742df7..0072a061 100644 --- a/src/Tests/Tests/Shared/TestUint3x2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint3x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_zero() { TestUtils.AreEqual(0u, uint3x2.zero.c0.x); @@ -26,7 +26,7 @@ public static void uint3x2_zero() TestUtils.AreEqual(0u, uint3x2.zero.c1.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_equal_wide_wide() { uint3x2 a0 = uint3x2(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098); @@ -50,7 +50,7 @@ public static void uint3x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_equal_wide_scalar() { uint3x2 a0 = uint3x2(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405); @@ -74,7 +74,7 @@ public static void uint3x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -98,7 +98,7 @@ public static void uint3x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_not_equal_wide_wide() { uint3x2 a0 = uint3x2(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892); @@ -122,7 +122,7 @@ public static void uint3x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_not_equal_wide_scalar() { uint3x2 a0 = uint3x2(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802); @@ -146,7 +146,7 @@ public static void uint3x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -170,7 +170,7 @@ public static void uint3x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_less_wide_wide() { uint3x2 a0 = uint3x2(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342); @@ -194,7 +194,7 @@ public static void uint3x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_less_wide_scalar() { uint3x2 a0 = uint3x2(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673); @@ -218,7 +218,7 @@ public static void uint3x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_less_scalar_wide() { uint a0 = (186400299); @@ -242,7 +242,7 @@ public static void uint3x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_greater_wide_wide() { uint3x2 a0 = uint3x2(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491); @@ -266,7 +266,7 @@ public static void uint3x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_greater_wide_scalar() { uint3x2 a0 = uint3x2(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635); @@ -290,7 +290,7 @@ public static void uint3x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -314,7 +314,7 @@ public static void uint3x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_less_equal_wide_wide() { uint3x2 a0 = uint3x2(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627); @@ -338,7 +338,7 @@ public static void uint3x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_less_equal_wide_scalar() { uint3x2 a0 = uint3x2(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632); @@ -362,7 +362,7 @@ public static void uint3x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -386,7 +386,7 @@ public static void uint3x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_greater_equal_wide_wide() { uint3x2 a0 = uint3x2(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564); @@ -410,7 +410,7 @@ public static void uint3x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_greater_equal_wide_scalar() { uint3x2 a0 = uint3x2(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469); @@ -434,7 +434,7 @@ public static void uint3x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -458,7 +458,7 @@ public static void uint3x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_add_wide_wide() { uint3x2 a0 = uint3x2(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995); @@ -482,7 +482,7 @@ public static void uint3x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_add_wide_scalar() { uint3x2 a0 = uint3x2(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732); @@ -506,7 +506,7 @@ public static void uint3x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_add_scalar_wide() { uint a0 = (359966320); @@ -530,7 +530,7 @@ public static void uint3x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_sub_wide_wide() { uint3x2 a0 = uint3x2(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868); @@ -554,7 +554,7 @@ public static void uint3x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_sub_wide_scalar() { uint3x2 a0 = uint3x2(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328); @@ -578,7 +578,7 @@ public static void uint3x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -602,7 +602,7 @@ public static void uint3x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_mul_wide_wide() { uint3x2 a0 = uint3x2(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871); @@ -626,7 +626,7 @@ public static void uint3x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_mul_wide_scalar() { uint3x2 a0 = uint3x2(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563); @@ -650,7 +650,7 @@ public static void uint3x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -674,7 +674,7 @@ public static void uint3x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_div_wide_wide() { uint3x2 a0 = uint3x2(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420); @@ -698,7 +698,7 @@ public static void uint3x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_div_wide_scalar() { uint3x2 a0 = uint3x2(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346); @@ -722,7 +722,7 @@ public static void uint3x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_div_scalar_wide() { uint a0 = (519165704); @@ -746,7 +746,7 @@ public static void uint3x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_mod_wide_wide() { uint3x2 a0 = uint3x2(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627); @@ -770,7 +770,7 @@ public static void uint3x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_mod_wide_scalar() { uint3x2 a0 = uint3x2(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846); @@ -794,7 +794,7 @@ public static void uint3x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -818,7 +818,7 @@ public static void uint3x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_plus() { uint3x2 a0 = uint3x2(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277); @@ -838,7 +838,7 @@ public static void uint3x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_neg() { uint3x2 a0 = uint3x2(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493); @@ -858,7 +858,7 @@ public static void uint3x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_prefix_inc() { uint3x2 a0 = uint3x2(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550); @@ -878,7 +878,7 @@ public static void uint3x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_postfix_inc() { uint3x2 a0 = uint3x2(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229); @@ -898,7 +898,7 @@ public static void uint3x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_prefix_dec() { uint3x2 a0 = uint3x2(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159); @@ -918,7 +918,7 @@ public static void uint3x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_postfix_dec() { uint3x2 a0 = uint3x2(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869); @@ -938,7 +938,7 @@ public static void uint3x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_bitwise_and_wide_wide() { uint3x2 a0 = uint3x2(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515); @@ -962,7 +962,7 @@ public static void uint3x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_bitwise_and_wide_scalar() { uint3x2 a0 = uint3x2(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838); @@ -986,7 +986,7 @@ public static void uint3x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1010,7 +1010,7 @@ public static void uint3x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_bitwise_or_wide_wide() { uint3x2 a0 = uint3x2(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930); @@ -1034,7 +1034,7 @@ public static void uint3x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_bitwise_or_wide_scalar() { uint3x2 a0 = uint3x2(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467); @@ -1058,7 +1058,7 @@ public static void uint3x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1082,7 +1082,7 @@ public static void uint3x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_bitwise_xor_wide_wide() { uint3x2 a0 = uint3x2(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850); @@ -1106,7 +1106,7 @@ public static void uint3x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_bitwise_xor_wide_scalar() { uint3x2 a0 = uint3x2(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661); @@ -1130,7 +1130,7 @@ public static void uint3x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1154,7 +1154,7 @@ public static void uint3x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_left_shift() { uint3x2 a0 = uint3x2(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593); @@ -1178,7 +1178,7 @@ public static void uint3x2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_right_shift() { uint3x2 a0 = uint3x2(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842); @@ -1202,7 +1202,7 @@ public static void uint3x2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x2_operator_bitwise_not() { uint3x2 a0 = uint3x2(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399); diff --git a/src/Tests/Tests/Shared/TestUint3x3.gen.cs b/src/Tests/Tests/Shared/TestUint3x3.gen.cs index 6e679bba..9e91fc32 100644 --- a/src/Tests/Tests/Shared/TestUint3x3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint3x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_zero() { TestUtils.AreEqual(0u, uint3x3.zero.c0.x); @@ -29,7 +29,7 @@ public static void uint3x3_zero() TestUtils.AreEqual(0u, uint3x3.zero.c2.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_identity() { TestUtils.AreEqual(1u, uint3x3.identity.c0.x); @@ -43,7 +43,7 @@ public static void uint3x3_identity() TestUtils.AreEqual(1u, uint3x3.identity.c2.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_equal_wide_wide() { uint3x3 a0 = uint3x3(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367); @@ -67,7 +67,7 @@ public static void uint3x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_equal_wide_scalar() { uint3x3 a0 = uint3x3(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998); @@ -91,7 +91,7 @@ public static void uint3x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -115,7 +115,7 @@ public static void uint3x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_not_equal_wide_wide() { uint3x3 a0 = uint3x3(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678); @@ -139,7 +139,7 @@ public static void uint3x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_not_equal_wide_scalar() { uint3x3 a0 = uint3x3(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423); @@ -163,7 +163,7 @@ public static void uint3x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -187,7 +187,7 @@ public static void uint3x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_less_wide_wide() { uint3x3 a0 = uint3x3(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312); @@ -211,7 +211,7 @@ public static void uint3x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_less_wide_scalar() { uint3x3 a0 = uint3x3(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597); @@ -235,7 +235,7 @@ public static void uint3x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_less_scalar_wide() { uint a0 = (186400299); @@ -259,7 +259,7 @@ public static void uint3x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_greater_wide_wide() { uint3x3 a0 = uint3x3(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133); @@ -283,7 +283,7 @@ public static void uint3x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_greater_wide_scalar() { uint3x3 a0 = uint3x3(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855); @@ -307,7 +307,7 @@ public static void uint3x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -331,7 +331,7 @@ public static void uint3x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_less_equal_wide_wide() { uint3x3 a0 = uint3x3(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541); @@ -355,7 +355,7 @@ public static void uint3x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_less_equal_wide_scalar() { uint3x3 a0 = uint3x3(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375); @@ -379,7 +379,7 @@ public static void uint3x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -403,7 +403,7 @@ public static void uint3x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_greater_equal_wide_wide() { uint3x3 a0 = uint3x3(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826); @@ -427,7 +427,7 @@ public static void uint3x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_greater_equal_wide_scalar() { uint3x3 a0 = uint3x3(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669); @@ -451,7 +451,7 @@ public static void uint3x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -475,7 +475,7 @@ public static void uint3x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_add_wide_wide() { uint3x3 a0 = uint3x3(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600); @@ -499,7 +499,7 @@ public static void uint3x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_add_wide_scalar() { uint3x3 a0 = uint3x3(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008); @@ -523,7 +523,7 @@ public static void uint3x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_add_scalar_wide() { uint a0 = (359966320); @@ -547,7 +547,7 @@ public static void uint3x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_sub_wide_wide() { uint3x3 a0 = uint3x3(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315); @@ -571,7 +571,7 @@ public static void uint3x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_sub_wide_scalar() { uint3x3 a0 = uint3x3(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113); @@ -595,7 +595,7 @@ public static void uint3x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -619,7 +619,7 @@ public static void uint3x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_mul_wide_wide() { uint3x3 a0 = uint3x3(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583); @@ -643,7 +643,7 @@ public static void uint3x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_mul_wide_scalar() { uint3x3 a0 = uint3x3(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059); @@ -667,7 +667,7 @@ public static void uint3x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -691,7 +691,7 @@ public static void uint3x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_div_wide_wide() { uint3x3 a0 = uint3x3(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195); @@ -715,7 +715,7 @@ public static void uint3x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_div_wide_scalar() { uint3x3 a0 = uint3x3(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136); @@ -739,7 +739,7 @@ public static void uint3x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_div_scalar_wide() { uint a0 = (519165704); @@ -763,7 +763,7 @@ public static void uint3x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_mod_wide_wide() { uint3x3 a0 = uint3x3(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101); @@ -787,7 +787,7 @@ public static void uint3x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_mod_wide_scalar() { uint3x3 a0 = uint3x3(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144); @@ -811,7 +811,7 @@ public static void uint3x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -835,7 +835,7 @@ public static void uint3x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_plus() { uint3x3 a0 = uint3x3(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671); @@ -855,7 +855,7 @@ public static void uint3x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_neg() { uint3x3 a0 = uint3x3(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525); @@ -875,7 +875,7 @@ public static void uint3x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_prefix_inc() { uint3x3 a0 = uint3x3(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994); @@ -895,7 +895,7 @@ public static void uint3x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_postfix_inc() { uint3x3 a0 = uint3x3(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247); @@ -915,7 +915,7 @@ public static void uint3x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_prefix_dec() { uint3x3 a0 = uint3x3(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745); @@ -935,7 +935,7 @@ public static void uint3x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_postfix_dec() { uint3x3 a0 = uint3x3(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889); @@ -955,7 +955,7 @@ public static void uint3x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_bitwise_and_wide_wide() { uint3x3 a0 = uint3x3(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656); @@ -979,7 +979,7 @@ public static void uint3x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_bitwise_and_wide_scalar() { uint3x3 a0 = uint3x3(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263); @@ -1003,7 +1003,7 @@ public static void uint3x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1027,7 +1027,7 @@ public static void uint3x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_bitwise_or_wide_wide() { uint3x3 a0 = uint3x3(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869); @@ -1051,7 +1051,7 @@ public static void uint3x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_bitwise_or_wide_scalar() { uint3x3 a0 = uint3x3(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307); @@ -1075,7 +1075,7 @@ public static void uint3x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1099,7 +1099,7 @@ public static void uint3x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_bitwise_xor_wide_wide() { uint3x3 a0 = uint3x3(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251); @@ -1123,7 +1123,7 @@ public static void uint3x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_bitwise_xor_wide_scalar() { uint3x3 a0 = uint3x3(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873); @@ -1147,7 +1147,7 @@ public static void uint3x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1171,7 +1171,7 @@ public static void uint3x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_left_shift() { uint3x3 a0 = uint3x3(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727); @@ -1195,7 +1195,7 @@ public static void uint3x3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_right_shift() { uint3x3 a0 = uint3x3(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393); @@ -1219,7 +1219,7 @@ public static void uint3x3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x3_operator_bitwise_not() { uint3x3 a0 = uint3x3(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628); diff --git a/src/Tests/Tests/Shared/TestUint3x4.gen.cs b/src/Tests/Tests/Shared/TestUint3x4.gen.cs index 00c414a7..4768c755 100644 --- a/src/Tests/Tests/Shared/TestUint3x4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint3x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint3x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_zero() { TestUtils.AreEqual(0u, uint3x4.zero.c0.x); @@ -32,7 +32,7 @@ public static void uint3x4_zero() TestUtils.AreEqual(0u, uint3x4.zero.c3.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_equal_wide_wide() { uint3x4 a0 = uint3x4(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367, 727143393, 2061243891, 184669837); @@ -56,7 +56,7 @@ public static void uint3x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_equal_wide_scalar() { uint3x4 a0 = uint3x4(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998, 691955848, 1926262965, 1851546137); @@ -80,7 +80,7 @@ public static void uint3x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -104,7 +104,7 @@ public static void uint3x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_not_equal_wide_wide() { uint3x4 a0 = uint3x4(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678, 13079405, 1413841590, 1076166545); @@ -128,7 +128,7 @@ public static void uint3x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_not_equal_wide_scalar() { uint3x4 a0 = uint3x4(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423, 484398043, 506946952, 226568494); @@ -152,7 +152,7 @@ public static void uint3x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -176,7 +176,7 @@ public static void uint3x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_less_wide_wide() { uint3x4 a0 = uint3x4(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312, 337757077, 1081797900, 1336745069); @@ -200,7 +200,7 @@ public static void uint3x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_less_wide_scalar() { uint3x4 a0 = uint3x4(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597, 1546212312, 1718582899, 1648393417); @@ -224,7 +224,7 @@ public static void uint3x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_less_scalar_wide() { uint a0 = (186400299); @@ -248,7 +248,7 @@ public static void uint3x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_greater_wide_wide() { uint3x4 a0 = uint3x4(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133, 1744374599, 821751047, 467646903); @@ -272,7 +272,7 @@ public static void uint3x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_greater_wide_scalar() { uint3x4 a0 = uint3x4(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855, 1433540517, 566635217, 1773305960); @@ -296,7 +296,7 @@ public static void uint3x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -320,7 +320,7 @@ public static void uint3x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_less_equal_wide_wide() { uint3x4 a0 = uint3x4(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541, 457043352, 1123282035, 1001842946); @@ -344,7 +344,7 @@ public static void uint3x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_less_equal_wide_scalar() { uint3x4 a0 = uint3x4(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375, 509818792, 1910488590, 85452501); @@ -368,7 +368,7 @@ public static void uint3x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -392,7 +392,7 @@ public static void uint3x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_greater_equal_wide_wide() { uint3x4 a0 = uint3x4(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826, 631221455, 1456286159, 961342752); @@ -416,7 +416,7 @@ public static void uint3x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_greater_equal_wide_scalar() { uint3x4 a0 = uint3x4(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669, 411667685, 1998610091, 4652390); @@ -440,7 +440,7 @@ public static void uint3x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -464,7 +464,7 @@ public static void uint3x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_add_wide_wide() { uint3x4 a0 = uint3x4(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600, 976898058, 1915056423, 121374462); @@ -488,7 +488,7 @@ public static void uint3x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_add_wide_scalar() { uint3x4 a0 = uint3x4(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008, 1246759684, 1088001167, 57252642); @@ -512,7 +512,7 @@ public static void uint3x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_add_scalar_wide() { uint a0 = (359966320); @@ -536,7 +536,7 @@ public static void uint3x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_sub_wide_wide() { uint3x4 a0 = uint3x4(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315, 2011295463, 48079003, 591379285); @@ -560,7 +560,7 @@ public static void uint3x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_sub_wide_scalar() { uint3x4 a0 = uint3x4(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113, 1108005498, 304369206, 999244508); @@ -584,7 +584,7 @@ public static void uint3x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -608,7 +608,7 @@ public static void uint3x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_mul_wide_wide() { uint3x4 a0 = uint3x4(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583, 1835691886, 385626539, 85934842); @@ -632,7 +632,7 @@ public static void uint3x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_mul_wide_scalar() { uint3x4 a0 = uint3x4(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059, 1186560810, 1584938026, 1357601203); @@ -656,7 +656,7 @@ public static void uint3x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -680,7 +680,7 @@ public static void uint3x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_div_wide_wide() { uint3x4 a0 = uint3x4(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195, 166625280, 1493729000, 1831739736); @@ -704,7 +704,7 @@ public static void uint3x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_div_wide_scalar() { uint3x4 a0 = uint3x4(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136, 25493909, 1196815948, 123300377); @@ -728,7 +728,7 @@ public static void uint3x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_div_scalar_wide() { uint a0 = (519165704); @@ -752,7 +752,7 @@ public static void uint3x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_mod_wide_wide() { uint3x4 a0 = uint3x4(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101, 17598216, 1474345080, 1681376293); @@ -776,7 +776,7 @@ public static void uint3x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_mod_wide_scalar() { uint3x4 a0 = uint3x4(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144, 1287035793, 1743722161, 475209785); @@ -800,7 +800,7 @@ public static void uint3x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -824,7 +824,7 @@ public static void uint3x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_plus() { uint3x4 a0 = uint3x4(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671, 1084131995, 195779102, 2131702223); @@ -844,7 +844,7 @@ public static void uint3x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_neg() { uint3x4 a0 = uint3x4(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525, 270503114, 1928771252, 1427605822); @@ -864,7 +864,7 @@ public static void uint3x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_prefix_inc() { uint3x4 a0 = uint3x4(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994, 1915989169, 1348278302, 129540735); @@ -884,7 +884,7 @@ public static void uint3x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_postfix_inc() { uint3x4 a0 = uint3x4(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247, 1384002775, 389844650, 1159795446); @@ -904,7 +904,7 @@ public static void uint3x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_prefix_dec() { uint3x4 a0 = uint3x4(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745, 2059077641, 1169239112, 1862369220); @@ -924,7 +924,7 @@ public static void uint3x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_postfix_dec() { uint3x4 a0 = uint3x4(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889, 862428933, 1401191870, 2080259851); @@ -944,7 +944,7 @@ public static void uint3x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_bitwise_and_wide_wide() { uint3x4 a0 = uint3x4(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656, 53199569, 1752363533, 1303061302); @@ -968,7 +968,7 @@ public static void uint3x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_bitwise_and_wide_scalar() { uint3x4 a0 = uint3x4(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263, 327392481, 1619794917, 2143619546); @@ -992,7 +992,7 @@ public static void uint3x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1016,7 +1016,7 @@ public static void uint3x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_bitwise_or_wide_wide() { uint3x4 a0 = uint3x4(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869, 1912038362, 1569990624, 1490718227); @@ -1040,7 +1040,7 @@ public static void uint3x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_bitwise_or_wide_scalar() { uint3x4 a0 = uint3x4(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307, 1050875188, 341855232, 1317039676); @@ -1064,7 +1064,7 @@ public static void uint3x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1088,7 +1088,7 @@ public static void uint3x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_bitwise_xor_wide_wide() { uint3x4 a0 = uint3x4(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251, 230477768, 1103646442, 1503102919); @@ -1112,7 +1112,7 @@ public static void uint3x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_bitwise_xor_wide_scalar() { uint3x4 a0 = uint3x4(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873, 835837496, 954341348, 1464576786); @@ -1136,7 +1136,7 @@ public static void uint3x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1160,7 +1160,7 @@ public static void uint3x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_left_shift() { uint3x4 a0 = uint3x4(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727, 849916599, 1271350845, 108441902); @@ -1184,7 +1184,7 @@ public static void uint3x4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_right_shift() { uint3x4 a0 = uint3x4(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393, 1923166649, 102096936, 400863878); @@ -1208,7 +1208,7 @@ public static void uint3x4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3x4_operator_bitwise_not() { uint3x4 a0 = uint3x4(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628, 787710759, 875964607, 96456785); diff --git a/src/Tests/Tests/Shared/TestUint4.gen.cs b/src/Tests/Tests/Shared/TestUint4.gen.cs index 833012cd..8d0b8a6b 100644 --- a/src/Tests/Tests/Shared/TestUint4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_zero() { TestUtils.AreEqual(0u, uint4.zero.x); @@ -24,7 +24,7 @@ public static void uint4_zero() TestUtils.AreEqual(0u, uint4.zero.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_constructor() { uint4 a = new uint4(1, 2, 3, 4); @@ -34,7 +34,7 @@ public static void uint4_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_scalar_constructor() { uint4 a = new uint4(17u); @@ -44,7 +44,7 @@ public static void uint4_scalar_constructor() TestUtils.AreEqual(17u, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_static_constructor() { uint4 a = uint4(1, 2, 3, 4); @@ -54,7 +54,7 @@ public static void uint4_static_constructor() TestUtils.AreEqual(4, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_static_scalar_constructor() { uint4 a = uint4(17u); @@ -64,7 +64,7 @@ public static void uint4_static_scalar_constructor() TestUtils.AreEqual(17u, a.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_equal_wide_wide() { uint4 a0 = uint4(2105871082, 35218899, 1550755093, 764676020); @@ -88,7 +88,7 @@ public static void uint4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_equal_wide_scalar() { uint4 a0 = uint4(437822262, 2020661134, 541786900, 853113810); @@ -112,7 +112,7 @@ public static void uint4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -136,7 +136,7 @@ public static void uint4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_not_equal_wide_wide() { uint4 a0 = uint4(1977284100, 1293292704, 1547283851, 422428953); @@ -160,7 +160,7 @@ public static void uint4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_not_equal_wide_scalar() { uint4 a0 = uint4(1038269360, 1427812625, 103361237, 1347017023); @@ -184,7 +184,7 @@ public static void uint4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -208,7 +208,7 @@ public static void uint4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_less_wide_wide() { uint4 a0 = uint4(1486550609, 1779244308, 1602148045, 1614085440); @@ -232,7 +232,7 @@ public static void uint4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_less_wide_scalar() { uint4 a0 = uint4(796797557, 670113454, 933579492, 278884514); @@ -256,7 +256,7 @@ public static void uint4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_less_scalar_wide() { uint a0 = (186400299); @@ -280,7 +280,7 @@ public static void uint4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_greater_wide_wide() { uint4 a0 = uint4(2087717754, 1725569452, 1298066182, 1693943616); @@ -304,7 +304,7 @@ public static void uint4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_greater_wide_scalar() { uint4 a0 = uint4(1208626274, 239697208, 1979453345, 1253474001); @@ -328,7 +328,7 @@ public static void uint4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -352,7 +352,7 @@ public static void uint4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_less_equal_wide_wide() { uint4 a0 = uint4(154092149, 1515170149, 1083970332, 785807178); @@ -376,7 +376,7 @@ public static void uint4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_less_equal_wide_scalar() { uint4 a0 = uint4(1479531977, 1427983411, 415250630, 1245345407); @@ -400,7 +400,7 @@ public static void uint4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -424,7 +424,7 @@ public static void uint4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_greater_equal_wide_wide() { uint4 a0 = uint4(8538378, 2131749726, 265427108, 523609761); @@ -448,7 +448,7 @@ public static void uint4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_greater_equal_wide_scalar() { uint4 a0 = uint4(2049236663, 182691143, 634973382, 1197012109); @@ -472,7 +472,7 @@ public static void uint4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -496,7 +496,7 @@ public static void uint4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_add_wide_wide() { uint4 a0 = uint4(2135171378, 21433296, 1954723494, 683604307); @@ -520,7 +520,7 @@ public static void uint4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_add_wide_scalar() { uint4 a0 = uint4(665815972, 1783729250, 1591678394, 1284528538); @@ -544,7 +544,7 @@ public static void uint4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_add_scalar_wide() { uint a0 = (359966320); @@ -568,7 +568,7 @@ public static void uint4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_sub_wide_wide() { uint4 a0 = uint4(1410318491, 1097280168, 1827039044, 28881338); @@ -592,7 +592,7 @@ public static void uint4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_sub_wide_scalar() { uint4 a0 = uint4(1508669340, 1594795463, 266707545, 643102647); @@ -616,7 +616,7 @@ public static void uint4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -640,7 +640,7 @@ public static void uint4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_mul_wide_wide() { uint4 a0 = uint4(61417577, 219585476, 1362520891, 1511084277); @@ -664,7 +664,7 @@ public static void uint4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_mul_wide_scalar() { uint4 a0 = uint4(871746615, 492532311, 570557670, 2142306629); @@ -688,7 +688,7 @@ public static void uint4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -712,7 +712,7 @@ public static void uint4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_div_wide_wide() { uint4 a0 = uint4(333171510, 858154903, 1181365836, 671357749); @@ -736,7 +736,7 @@ public static void uint4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_div_wide_scalar() { uint4 a0 = uint4(1433072926, 1073958635, 1195142312, 536596719); @@ -760,7 +760,7 @@ public static void uint4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_div_scalar_wide() { uint a0 = (519165704); @@ -784,7 +784,7 @@ public static void uint4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_mod_wide_wide() { uint4 a0 = uint4(258342924, 1454754891, 723352342, 1981431473); @@ -808,7 +808,7 @@ public static void uint4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_mod_wide_scalar() { uint4 a0 = uint4(560988938, 629524514, 767711194, 434281967); @@ -832,7 +832,7 @@ public static void uint4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -856,7 +856,7 @@ public static void uint4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_plus() { uint4 a0 = uint4(195392567, 222719748, 1002351013, 1570765263); @@ -876,7 +876,7 @@ public static void uint4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_neg() { uint4 a0 = uint4(1385088677, 94114564, 1350664872, 1458616659); @@ -896,7 +896,7 @@ public static void uint4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_prefix_inc() { uint4 a0 = uint4(780471723, 954741756, 272723451, 2142862245); @@ -916,7 +916,7 @@ public static void uint4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_postfix_inc() { uint4 a0 = uint4(241865086, 2145821641, 1596166022, 803592338); @@ -936,7 +936,7 @@ public static void uint4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_prefix_dec() { uint4 a0 = uint4(1331961415, 1612382200, 1401591249, 2042075388); @@ -956,7 +956,7 @@ public static void uint4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_postfix_dec() { uint4 a0 = uint4(1870005937, 1708534798, 704493460, 462940703); @@ -976,7 +976,7 @@ public static void uint4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_bitwise_and_wide_wide() { uint4 a0 = uint4(1055241304, 859321394, 1088358961, 2090949513); @@ -1000,7 +1000,7 @@ public static void uint4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_bitwise_and_wide_scalar() { uint4 a0 = uint4(1513158868, 284695609, 734595037, 1566510707); @@ -1024,7 +1024,7 @@ public static void uint4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1048,7 +1048,7 @@ public static void uint4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_bitwise_or_wide_wide() { uint4 a0 = uint4(1920951869, 1750772852, 1420019191, 732977093); @@ -1072,7 +1072,7 @@ public static void uint4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_bitwise_or_wide_scalar() { uint4 a0 = uint4(1295304853, 1307252624, 350194630, 1128063578); @@ -1096,7 +1096,7 @@ public static void uint4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1120,7 +1120,7 @@ public static void uint4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_bitwise_xor_wide_wide() { uint4 a0 = uint4(1843655608, 362425681, 640805534, 1342040268); @@ -1144,7 +1144,7 @@ public static void uint4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_bitwise_xor_wide_scalar() { uint4 a0 = uint4(169345668, 176087064, 2084362901, 1663924004); @@ -1168,7 +1168,7 @@ public static void uint4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1192,7 +1192,7 @@ public static void uint4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_left_shift() { uint4 a0 = uint4(1129100049, 829482269, 1571297368, 443753193); @@ -1216,7 +1216,7 @@ public static void uint4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_right_shift() { uint4 a0 = uint4(809126085, 908563670, 763568837, 1986717290); @@ -1240,7 +1240,7 @@ public static void uint4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_operator_bitwise_not() { uint4 a0 = uint4(111796841, 603562399, 745091931, 853183268); @@ -1260,7 +1260,7 @@ public static void uint4_operator_bitwise_not() TestUtils.AreEqual(r3, ~a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_shuffle_result_1() { uint4 a = uint4(0, 1, 2, 3); @@ -1276,7 +1276,7 @@ public static void uint4_shuffle_result_1() TestUtils.AreEqual((7), shuffle(a, b, ShuffleComponent.RightW)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_shuffle_result_2() { uint4 a = uint4(0, 1, 2, 3); @@ -1300,7 +1300,7 @@ public static void uint4_shuffle_result_2() TestUtils.AreEqual(uint2(1, 3), shuffle(a, b, ShuffleComponent.LeftY, ShuffleComponent.LeftW)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_shuffle_result_3() { uint4 a = uint4(0, 1, 2, 3); @@ -1324,7 +1324,7 @@ public static void uint4_shuffle_result_3() TestUtils.AreEqual(uint3(5, 1, 7), shuffle(a, b, ShuffleComponent.RightY, ShuffleComponent.LeftY, ShuffleComponent.RightW)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_shuffle_result_4() { uint4 a = uint4(0, 1, 2, 3); diff --git a/src/Tests/Tests/Shared/TestUint4x2.gen.cs b/src/Tests/Tests/Shared/TestUint4x2.gen.cs index 9d2bba1f..7f42bc6a 100644 --- a/src/Tests/Tests/Shared/TestUint4x2.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4x2.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint4x2 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_zero() { TestUtils.AreEqual(0u, uint4x2.zero.c0.x); @@ -28,7 +28,7 @@ public static void uint4x2_zero() TestUtils.AreEqual(0u, uint4x2.zero.c1.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_equal_wide_wide() { uint4x2 a0 = uint4x2(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316); @@ -52,7 +52,7 @@ public static void uint4x2_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_equal_wide_scalar() { uint4x2 a0 = uint4x2(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849); @@ -76,7 +76,7 @@ public static void uint4x2_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -100,7 +100,7 @@ public static void uint4x2_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_not_equal_wide_wide() { uint4x2 a0 = uint4x2(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074); @@ -124,7 +124,7 @@ public static void uint4x2_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_not_equal_wide_scalar() { uint4x2 a0 = uint4x2(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717); @@ -148,7 +148,7 @@ public static void uint4x2_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -172,7 +172,7 @@ public static void uint4x2_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_less_wide_wide() { uint4x2 a0 = uint4x2(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431); @@ -196,7 +196,7 @@ public static void uint4x2_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_less_wide_scalar() { uint4x2 a0 = uint4x2(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600); @@ -220,7 +220,7 @@ public static void uint4x2_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_less_scalar_wide() { uint a0 = (186400299); @@ -244,7 +244,7 @@ public static void uint4x2_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_greater_wide_wide() { uint4x2 a0 = uint4x2(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508); @@ -268,7 +268,7 @@ public static void uint4x2_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_greater_wide_scalar() { uint4x2 a0 = uint4x2(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098); @@ -292,7 +292,7 @@ public static void uint4x2_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -316,7 +316,7 @@ public static void uint4x2_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_less_equal_wide_wide() { uint4x2 a0 = uint4x2(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725); @@ -340,7 +340,7 @@ public static void uint4x2_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_less_equal_wide_scalar() { uint4x2 a0 = uint4x2(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307); @@ -364,7 +364,7 @@ public static void uint4x2_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -388,7 +388,7 @@ public static void uint4x2_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_greater_equal_wide_wide() { uint4x2 a0 = uint4x2(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970); @@ -412,7 +412,7 @@ public static void uint4x2_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_greater_equal_wide_scalar() { uint4x2 a0 = uint4x2(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187); @@ -436,7 +436,7 @@ public static void uint4x2_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -460,7 +460,7 @@ public static void uint4x2_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_add_wide_wide() { uint4x2 a0 = uint4x2(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062); @@ -484,7 +484,7 @@ public static void uint4x2_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_add_wide_scalar() { uint4x2 a0 = uint4x2(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017); @@ -508,7 +508,7 @@ public static void uint4x2_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_add_scalar_wide() { uint a0 = (359966320); @@ -532,7 +532,7 @@ public static void uint4x2_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_sub_wide_wide() { uint4x2 a0 = uint4x2(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215); @@ -556,7 +556,7 @@ public static void uint4x2_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_sub_wide_scalar() { uint4x2 a0 = uint4x2(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511); @@ -580,7 +580,7 @@ public static void uint4x2_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -604,7 +604,7 @@ public static void uint4x2_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_mul_wide_wide() { uint4x2 a0 = uint4x2(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644); @@ -628,7 +628,7 @@ public static void uint4x2_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_mul_wide_scalar() { uint4x2 a0 = uint4x2(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514); @@ -652,7 +652,7 @@ public static void uint4x2_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -676,7 +676,7 @@ public static void uint4x2_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_div_wide_wide() { uint4x2 a0 = uint4x2(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814); @@ -700,7 +700,7 @@ public static void uint4x2_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_div_wide_scalar() { uint4x2 a0 = uint4x2(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670); @@ -724,7 +724,7 @@ public static void uint4x2_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_div_scalar_wide() { uint a0 = (519165704); @@ -748,7 +748,7 @@ public static void uint4x2_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_mod_wide_wide() { uint4x2 a0 = uint4x2(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004); @@ -772,7 +772,7 @@ public static void uint4x2_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_mod_wide_scalar() { uint4x2 a0 = uint4x2(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916); @@ -796,7 +796,7 @@ public static void uint4x2_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -820,7 +820,7 @@ public static void uint4x2_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_plus() { uint4x2 a0 = uint4x2(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785); @@ -840,7 +840,7 @@ public static void uint4x2_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_neg() { uint4x2 a0 = uint4x2(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961); @@ -860,7 +860,7 @@ public static void uint4x2_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_prefix_inc() { uint4x2 a0 = uint4x2(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162); @@ -880,7 +880,7 @@ public static void uint4x2_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_postfix_inc() { uint4x2 a0 = uint4x2(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244); @@ -900,7 +900,7 @@ public static void uint4x2_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_prefix_dec() { uint4x2 a0 = uint4x2(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664); @@ -920,7 +920,7 @@ public static void uint4x2_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_postfix_dec() { uint4x2 a0 = uint4x2(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351); @@ -940,7 +940,7 @@ public static void uint4x2_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_bitwise_and_wide_wide() { uint4x2 a0 = uint4x2(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753); @@ -964,7 +964,7 @@ public static void uint4x2_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_bitwise_and_wide_scalar() { uint4x2 a0 = uint4x2(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908); @@ -988,7 +988,7 @@ public static void uint4x2_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1012,7 +1012,7 @@ public static void uint4x2_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_bitwise_or_wide_wide() { uint4x2 a0 = uint4x2(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323); @@ -1036,7 +1036,7 @@ public static void uint4x2_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_bitwise_or_wide_scalar() { uint4x2 a0 = uint4x2(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350); @@ -1060,7 +1060,7 @@ public static void uint4x2_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1084,7 +1084,7 @@ public static void uint4x2_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_bitwise_xor_wide_wide() { uint4x2 a0 = uint4x2(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658); @@ -1108,7 +1108,7 @@ public static void uint4x2_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_bitwise_xor_wide_scalar() { uint4x2 a0 = uint4x2(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783); @@ -1132,7 +1132,7 @@ public static void uint4x2_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1156,7 +1156,7 @@ public static void uint4x2_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_left_shift() { uint4x2 a0 = uint4x2(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862); @@ -1180,7 +1180,7 @@ public static void uint4x2_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_right_shift() { uint4x2 a0 = uint4x2(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632); @@ -1204,7 +1204,7 @@ public static void uint4x2_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x2_operator_bitwise_not() { uint4x2 a0 = uint4x2(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135); diff --git a/src/Tests/Tests/Shared/TestUint4x3.gen.cs b/src/Tests/Tests/Shared/TestUint4x3.gen.cs index bc2aba8a..f750426b 100644 --- a/src/Tests/Tests/Shared/TestUint4x3.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4x3.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint4x3 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_zero() { TestUtils.AreEqual(0u, uint4x3.zero.c0.x); @@ -32,7 +32,7 @@ public static void uint4x3_zero() TestUtils.AreEqual(0u, uint4x3.zero.c2.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_equal_wide_wide() { uint4x3 a0 = uint4x3(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367, 727143393, 2061243891, 184669837); @@ -56,7 +56,7 @@ public static void uint4x3_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_equal_wide_scalar() { uint4x3 a0 = uint4x3(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998, 691955848, 1926262965, 1851546137); @@ -80,7 +80,7 @@ public static void uint4x3_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -104,7 +104,7 @@ public static void uint4x3_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_not_equal_wide_wide() { uint4x3 a0 = uint4x3(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678, 13079405, 1413841590, 1076166545); @@ -128,7 +128,7 @@ public static void uint4x3_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_not_equal_wide_scalar() { uint4x3 a0 = uint4x3(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423, 484398043, 506946952, 226568494); @@ -152,7 +152,7 @@ public static void uint4x3_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -176,7 +176,7 @@ public static void uint4x3_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_less_wide_wide() { uint4x3 a0 = uint4x3(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312, 337757077, 1081797900, 1336745069); @@ -200,7 +200,7 @@ public static void uint4x3_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_less_wide_scalar() { uint4x3 a0 = uint4x3(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597, 1546212312, 1718582899, 1648393417); @@ -224,7 +224,7 @@ public static void uint4x3_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_less_scalar_wide() { uint a0 = (186400299); @@ -248,7 +248,7 @@ public static void uint4x3_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_greater_wide_wide() { uint4x3 a0 = uint4x3(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133, 1744374599, 821751047, 467646903); @@ -272,7 +272,7 @@ public static void uint4x3_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_greater_wide_scalar() { uint4x3 a0 = uint4x3(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855, 1433540517, 566635217, 1773305960); @@ -296,7 +296,7 @@ public static void uint4x3_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -320,7 +320,7 @@ public static void uint4x3_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_less_equal_wide_wide() { uint4x3 a0 = uint4x3(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541, 457043352, 1123282035, 1001842946); @@ -344,7 +344,7 @@ public static void uint4x3_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_less_equal_wide_scalar() { uint4x3 a0 = uint4x3(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375, 509818792, 1910488590, 85452501); @@ -368,7 +368,7 @@ public static void uint4x3_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -392,7 +392,7 @@ public static void uint4x3_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_greater_equal_wide_wide() { uint4x3 a0 = uint4x3(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826, 631221455, 1456286159, 961342752); @@ -416,7 +416,7 @@ public static void uint4x3_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_greater_equal_wide_scalar() { uint4x3 a0 = uint4x3(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669, 411667685, 1998610091, 4652390); @@ -440,7 +440,7 @@ public static void uint4x3_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -464,7 +464,7 @@ public static void uint4x3_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_add_wide_wide() { uint4x3 a0 = uint4x3(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600, 976898058, 1915056423, 121374462); @@ -488,7 +488,7 @@ public static void uint4x3_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_add_wide_scalar() { uint4x3 a0 = uint4x3(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008, 1246759684, 1088001167, 57252642); @@ -512,7 +512,7 @@ public static void uint4x3_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_add_scalar_wide() { uint a0 = (359966320); @@ -536,7 +536,7 @@ public static void uint4x3_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_sub_wide_wide() { uint4x3 a0 = uint4x3(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315, 2011295463, 48079003, 591379285); @@ -560,7 +560,7 @@ public static void uint4x3_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_sub_wide_scalar() { uint4x3 a0 = uint4x3(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113, 1108005498, 304369206, 999244508); @@ -584,7 +584,7 @@ public static void uint4x3_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -608,7 +608,7 @@ public static void uint4x3_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_mul_wide_wide() { uint4x3 a0 = uint4x3(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583, 1835691886, 385626539, 85934842); @@ -632,7 +632,7 @@ public static void uint4x3_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_mul_wide_scalar() { uint4x3 a0 = uint4x3(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059, 1186560810, 1584938026, 1357601203); @@ -656,7 +656,7 @@ public static void uint4x3_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -680,7 +680,7 @@ public static void uint4x3_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_div_wide_wide() { uint4x3 a0 = uint4x3(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195, 166625280, 1493729000, 1831739736); @@ -704,7 +704,7 @@ public static void uint4x3_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_div_wide_scalar() { uint4x3 a0 = uint4x3(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136, 25493909, 1196815948, 123300377); @@ -728,7 +728,7 @@ public static void uint4x3_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_div_scalar_wide() { uint a0 = (519165704); @@ -752,7 +752,7 @@ public static void uint4x3_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_mod_wide_wide() { uint4x3 a0 = uint4x3(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101, 17598216, 1474345080, 1681376293); @@ -776,7 +776,7 @@ public static void uint4x3_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_mod_wide_scalar() { uint4x3 a0 = uint4x3(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144, 1287035793, 1743722161, 475209785); @@ -800,7 +800,7 @@ public static void uint4x3_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -824,7 +824,7 @@ public static void uint4x3_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_plus() { uint4x3 a0 = uint4x3(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671, 1084131995, 195779102, 2131702223); @@ -844,7 +844,7 @@ public static void uint4x3_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_neg() { uint4x3 a0 = uint4x3(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525, 270503114, 1928771252, 1427605822); @@ -864,7 +864,7 @@ public static void uint4x3_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_prefix_inc() { uint4x3 a0 = uint4x3(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994, 1915989169, 1348278302, 129540735); @@ -884,7 +884,7 @@ public static void uint4x3_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_postfix_inc() { uint4x3 a0 = uint4x3(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247, 1384002775, 389844650, 1159795446); @@ -904,7 +904,7 @@ public static void uint4x3_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_prefix_dec() { uint4x3 a0 = uint4x3(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745, 2059077641, 1169239112, 1862369220); @@ -924,7 +924,7 @@ public static void uint4x3_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_postfix_dec() { uint4x3 a0 = uint4x3(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889, 862428933, 1401191870, 2080259851); @@ -944,7 +944,7 @@ public static void uint4x3_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_bitwise_and_wide_wide() { uint4x3 a0 = uint4x3(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656, 53199569, 1752363533, 1303061302); @@ -968,7 +968,7 @@ public static void uint4x3_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_bitwise_and_wide_scalar() { uint4x3 a0 = uint4x3(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263, 327392481, 1619794917, 2143619546); @@ -992,7 +992,7 @@ public static void uint4x3_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1016,7 +1016,7 @@ public static void uint4x3_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_bitwise_or_wide_wide() { uint4x3 a0 = uint4x3(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869, 1912038362, 1569990624, 1490718227); @@ -1040,7 +1040,7 @@ public static void uint4x3_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_bitwise_or_wide_scalar() { uint4x3 a0 = uint4x3(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307, 1050875188, 341855232, 1317039676); @@ -1064,7 +1064,7 @@ public static void uint4x3_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1088,7 +1088,7 @@ public static void uint4x3_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_bitwise_xor_wide_wide() { uint4x3 a0 = uint4x3(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251, 230477768, 1103646442, 1503102919); @@ -1112,7 +1112,7 @@ public static void uint4x3_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_bitwise_xor_wide_scalar() { uint4x3 a0 = uint4x3(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873, 835837496, 954341348, 1464576786); @@ -1136,7 +1136,7 @@ public static void uint4x3_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1160,7 +1160,7 @@ public static void uint4x3_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_left_shift() { uint4x3 a0 = uint4x3(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727, 849916599, 1271350845, 108441902); @@ -1184,7 +1184,7 @@ public static void uint4x3_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_right_shift() { uint4x3 a0 = uint4x3(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393, 1923166649, 102096936, 400863878); @@ -1208,7 +1208,7 @@ public static void uint4x3_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x3_operator_bitwise_not() { uint4x3 a0 = uint4x3(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628, 787710759, 875964607, 96456785); diff --git a/src/Tests/Tests/Shared/TestUint4x4.gen.cs b/src/Tests/Tests/Shared/TestUint4x4.gen.cs index 03234c47..b9fc3f5e 100644 --- a/src/Tests/Tests/Shared/TestUint4x4.gen.cs +++ b/src/Tests/Tests/Shared/TestUint4x4.gen.cs @@ -15,7 +15,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public class TestUint4x4 { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_zero() { TestUtils.AreEqual(0u, uint4x4.zero.c0.x); @@ -36,7 +36,7 @@ public static void uint4x4_zero() TestUtils.AreEqual(0u, uint4x4.zero.c3.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_identity() { TestUtils.AreEqual(1u, uint4x4.identity.c0.x); @@ -57,7 +57,7 @@ public static void uint4x4_identity() TestUtils.AreEqual(1u, uint4x4.identity.c3.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_equal_wide_wide() { uint4x4 a0 = uint4x4(2105871082, 35218899, 1550755093, 764676020, 606743782, 1208156098, 1023640014, 1038468316, 1416064367, 727143393, 2061243891, 184669837, 1303661760, 2044073738, 370395888, 1822916805); @@ -81,7 +81,7 @@ public static void uint4x4_operator_equal_wide_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_equal_wide_scalar() { uint4x4 a0 = uint4x4(437822262, 2020661134, 541786900, 853113810, 23716499, 179951405, 1409026299, 948838849, 953202998, 691955848, 1926262965, 1851546137, 712957637, 2028784869, 1049962241, 1836975611); @@ -105,7 +105,7 @@ public static void uint4x4_operator_equal_wide_scalar() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_equal_scalar_wide() { uint a0 = (542329200); @@ -129,7 +129,7 @@ public static void uint4x4_operator_equal_scalar_wide() TestUtils.AreEqual(r3, a3 == b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_not_equal_wide_wide() { uint4x4 a0 = uint4x4(1977284100, 1293292704, 1547283851, 422428953, 195833190, 1711544892, 5606053, 737069074, 647386678, 13079405, 1413841590, 1076166545, 1211445174, 1289303469, 1436402489, 1129570126); @@ -153,7 +153,7 @@ public static void uint4x4_operator_not_equal_wide_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_not_equal_wide_scalar() { uint4x4 a0 = uint4x4(1038269360, 1427812625, 103361237, 1347017023, 1523584313, 150442802, 660334527, 719113717, 262959423, 484398043, 506946952, 226568494, 507918242, 1702162286, 923269270, 166187260); @@ -177,7 +177,7 @@ public static void uint4x4_operator_not_equal_wide_scalar() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_not_equal_scalar_wide() { uint a0 = (1652127596); @@ -201,7 +201,7 @@ public static void uint4x4_operator_not_equal_scalar_wide() TestUtils.AreEqual(r3, a3 != b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_less_wide_wide() { uint4x4 a0 = uint4x4(1486550609, 1779244308, 1602148045, 1614085440, 1975613414, 942838342, 1092279031, 373677431, 1419098312, 337757077, 1081797900, 1336745069, 840685445, 1220554047, 2013681746, 192965012); @@ -225,7 +225,7 @@ public static void uint4x4_operator_less_wide_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_less_wide_scalar() { uint4x4 a0 = uint4x4(796797557, 670113454, 933579492, 278884514, 318174822, 1117630673, 741886928, 1990922600, 1030849597, 1546212312, 1718582899, 1648393417, 1857132231, 1909506562, 1294006045, 952084157); @@ -249,7 +249,7 @@ public static void uint4x4_operator_less_wide_scalar() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_less_scalar_wide() { uint a0 = (186400299); @@ -273,7 +273,7 @@ public static void uint4x4_operator_less_scalar_wide() TestUtils.AreEqual(r3, a3 < b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_greater_wide_wide() { uint4x4 a0 = uint4x4(2087717754, 1725569452, 1298066182, 1693943616, 1319019629, 70674491, 1042499725, 1002821508, 1021857133, 1744374599, 821751047, 467646903, 2029731638, 1377214212, 1207816926, 474621063); @@ -297,7 +297,7 @@ public static void uint4x4_operator_greater_wide_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_greater_wide_scalar() { uint4x4 a0 = uint4x4(1208626274, 239697208, 1979453345, 1253474001, 1590192876, 1487911635, 1673945595, 1662650098, 222749855, 1433540517, 566635217, 1773305960, 1850273578, 206147145, 325913453, 333381537); @@ -321,7 +321,7 @@ public static void uint4x4_operator_greater_wide_scalar() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_greater_scalar_wide() { uint a0 = (480938827); @@ -345,7 +345,7 @@ public static void uint4x4_operator_greater_scalar_wide() TestUtils.AreEqual(r3, a3 > b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_less_equal_wide_wide() { uint4x4 a0 = uint4x4(154092149, 1515170149, 1083970332, 785807178, 1401094881, 310537627, 868328962, 1990816725, 2035349541, 457043352, 1123282035, 1001842946, 1387761992, 195272789, 659549000, 888761458); @@ -369,7 +369,7 @@ public static void uint4x4_operator_less_equal_wide_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_less_equal_wide_scalar() { uint4x4 a0 = uint4x4(1479531977, 1427983411, 415250630, 1245345407, 1112546666, 1072990632, 1579912858, 101048307, 1070894375, 509818792, 1910488590, 85452501, 518127023, 1246249980, 1097326500, 1964410699); @@ -393,7 +393,7 @@ public static void uint4x4_operator_less_equal_wide_scalar() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_less_equal_scalar_wide() { uint a0 = (1899193992); @@ -417,7 +417,7 @@ public static void uint4x4_operator_less_equal_scalar_wide() TestUtils.AreEqual(r3, a3 <= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_greater_equal_wide_wide() { uint4x4 a0 = uint4x4(8538378, 2131749726, 265427108, 523609761, 994991818, 839709564, 101288202, 1886280970, 2032074826, 631221455, 1456286159, 961342752, 424526026, 788481984, 1662488497, 870326690); @@ -441,7 +441,7 @@ public static void uint4x4_operator_greater_equal_wide_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_greater_equal_wide_scalar() { uint4x4 a0 = uint4x4(2049236663, 182691143, 634973382, 1197012109, 439837565, 1367606469, 1108037359, 351147187, 1898505669, 411667685, 1998610091, 4652390, 996159180, 2111455181, 727766399, 96217144); @@ -465,7 +465,7 @@ public static void uint4x4_operator_greater_equal_wide_scalar() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_greater_equal_scalar_wide() { uint a0 = (1859811087); @@ -489,7 +489,7 @@ public static void uint4x4_operator_greater_equal_scalar_wide() TestUtils.AreEqual(r3, a3 >= b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_add_wide_wide() { uint4x4 a0 = uint4x4(2135171378, 21433296, 1954723494, 683604307, 1054212315, 1762680995, 1963655852, 1257853062, 2043493600, 976898058, 1915056423, 121374462, 1218855698, 700538222, 1702057277, 1788251699); @@ -513,7 +513,7 @@ public static void uint4x4_operator_add_wide_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_add_wide_scalar() { uint4x4 a0 = uint4x4(665815972, 1783729250, 1591678394, 1284528538, 977850224, 71069732, 1138577680, 1200356017, 565982008, 1246759684, 1088001167, 57252642, 678921480, 625943813, 512157429, 1470648741); @@ -537,7 +537,7 @@ public static void uint4x4_operator_add_wide_scalar() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_add_scalar_wide() { uint a0 = (359966320); @@ -561,7 +561,7 @@ public static void uint4x4_operator_add_scalar_wide() TestUtils.AreEqual(r3, a3 + b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_sub_wide_wide() { uint4x4 a0 = uint4x4(1410318491, 1097280168, 1827039044, 28881338, 328720965, 875487868, 212936325, 231977215, 1740021315, 2011295463, 48079003, 591379285, 1125909359, 1842588095, 848561896, 614448464); @@ -585,7 +585,7 @@ public static void uint4x4_operator_sub_wide_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_sub_wide_scalar() { uint4x4 a0 = uint4x4(1508669340, 1594795463, 266707545, 643102647, 287705008, 1475644328, 1113286221, 979450511, 2082174113, 1108005498, 304369206, 999244508, 1806482044, 1994553647, 2101812429, 1482736902); @@ -609,7 +609,7 @@ public static void uint4x4_operator_sub_wide_scalar() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_sub_scalar_wide() { uint a0 = (893369501); @@ -633,7 +633,7 @@ public static void uint4x4_operator_sub_scalar_wide() TestUtils.AreEqual(r3, a3 - b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_mul_wide_wide() { uint4x4 a0 = uint4x4(61417577, 219585476, 1362520891, 1511084277, 1481211272, 58211871, 1459591173, 567624644, 1169935583, 1835691886, 385626539, 85934842, 522856538, 278370196, 289217012, 2083410174); @@ -657,7 +657,7 @@ public static void uint4x4_operator_mul_wide_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_mul_wide_scalar() { uint4x4 a0 = uint4x4(871746615, 492532311, 570557670, 2142306629, 1610315153, 1526163563, 118471734, 257439514, 364291059, 1186560810, 1584938026, 1357601203, 638897141, 268562104, 1007838321, 1163240135); @@ -681,7 +681,7 @@ public static void uint4x4_operator_mul_wide_scalar() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_mul_scalar_wide() { uint a0 = (1152242766); @@ -705,7 +705,7 @@ public static void uint4x4_operator_mul_scalar_wide() TestUtils.AreEqual(r3, a3 * b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_div_wide_wide() { uint4x4 a0 = uint4x4(333171510, 858154903, 1181365836, 671357749, 1090606752, 803759420, 788404166, 296807814, 575260195, 166625280, 1493729000, 1831739736, 200852358, 129983172, 500176108, 472051781); @@ -729,7 +729,7 @@ public static void uint4x4_operator_div_wide_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_div_wide_scalar() { uint4x4 a0 = uint4x4(1433072926, 1073958635, 1195142312, 536596719, 1274375693, 464756346, 806462546, 906504670, 1380905136, 25493909, 1196815948, 123300377, 643754735, 2084019932, 2047825037, 458304263); @@ -753,7 +753,7 @@ public static void uint4x4_operator_div_wide_scalar() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_div_scalar_wide() { uint a0 = (519165704); @@ -777,7 +777,7 @@ public static void uint4x4_operator_div_scalar_wide() TestUtils.AreEqual(r3, a3 / b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_mod_wide_wide() { uint4x4 a0 = uint4x4(258342924, 1454754891, 723352342, 1981431473, 531756042, 716993627, 1667903349, 1331097004, 1776856101, 17598216, 1474345080, 1681376293, 813624265, 1617478722, 498370451, 780075943); @@ -801,7 +801,7 @@ public static void uint4x4_operator_mod_wide_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_mod_wide_scalar() { uint4x4 a0 = uint4x4(560988938, 629524514, 767711194, 434281967, 1399805893, 792916846, 1663690927, 598661916, 1776636144, 1287035793, 1743722161, 475209785, 327476870, 1617696916, 379853074, 477430114); @@ -825,7 +825,7 @@ public static void uint4x4_operator_mod_wide_scalar() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_mod_scalar_wide() { uint a0 = (933347930); @@ -849,7 +849,7 @@ public static void uint4x4_operator_mod_scalar_wide() TestUtils.AreEqual(r3, a3 % b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_plus() { uint4x4 a0 = uint4x4(195392567, 222719748, 1002351013, 1570765263, 109389333, 1515950277, 1689763402, 291471785, 264115671, 1084131995, 195779102, 2131702223, 715660442, 1995564647, 69731564, 1317851903); @@ -869,7 +869,7 @@ public static void uint4x4_operator_plus() TestUtils.AreEqual(r3, +a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_neg() { uint4x4 a0 = uint4x4(1385088677, 94114564, 1350664872, 1458616659, 2067164853, 218122493, 958484951, 270553961, 446497525, 270503114, 1928771252, 1427605822, 2051940607, 1434247484, 485368391, 908365416); @@ -889,7 +889,7 @@ public static void uint4x4_operator_neg() TestUtils.AreEqual(r3, -a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_prefix_inc() { uint4x4 a0 = uint4x4(780471723, 954741756, 272723451, 2142862245, 606294309, 1514814550, 250124151, 444189162, 1833356994, 1915989169, 1348278302, 129540735, 1584496757, 1170613526, 986715680, 1701179230); @@ -909,7 +909,7 @@ public static void uint4x4_operator_prefix_inc() TestUtils.AreEqual(r3, ++a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_postfix_inc() { uint4x4 a0 = uint4x4(241865086, 2145821641, 1596166022, 803592338, 529551271, 1656767229, 903047443, 1213663244, 1425753247, 1384002775, 389844650, 1159795446, 1343289659, 1227160199, 947635082, 137930180); @@ -929,7 +929,7 @@ public static void uint4x4_operator_postfix_inc() TestUtils.AreEqual(r3, a3++); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_prefix_dec() { uint4x4 a0 = uint4x4(1331961415, 1612382200, 1401591249, 2042075388, 1757136546, 1895858159, 1467742422, 578341664, 1336115745, 2059077641, 1169239112, 1862369220, 312317355, 1027543764, 1595492535, 1426262619); @@ -949,7 +949,7 @@ public static void uint4x4_operator_prefix_dec() TestUtils.AreEqual(r3, --a3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_postfix_dec() { uint4x4 a0 = uint4x4(1870005937, 1708534798, 704493460, 462940703, 2060593573, 228744869, 940247280, 1818778351, 1015253889, 862428933, 1401191870, 2080259851, 653673271, 140452688, 1928164223, 1760916301); @@ -969,7 +969,7 @@ public static void uint4x4_operator_postfix_dec() TestUtils.AreEqual(r3, a3--); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_bitwise_and_wide_wide() { uint4x4 a0 = uint4x4(1055241304, 859321394, 1088358961, 2090949513, 300561740, 651904515, 1331035868, 2012752753, 1298126656, 53199569, 1752363533, 1303061302, 1929998247, 1504941434, 470682792, 713577376); @@ -993,7 +993,7 @@ public static void uint4x4_operator_bitwise_and_wide_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_bitwise_and_wide_scalar() { uint4x4 a0 = uint4x4(1513158868, 284695609, 734595037, 1566510707, 1601252476, 84213838, 314333543, 430856908, 753481263, 327392481, 1619794917, 2143619546, 1873208293, 126982769, 651482651, 1383096952); @@ -1017,7 +1017,7 @@ public static void uint4x4_operator_bitwise_and_wide_scalar() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_bitwise_and_scalar_wide() { uint a0 = (477163326); @@ -1041,7 +1041,7 @@ public static void uint4x4_operator_bitwise_and_scalar_wide() TestUtils.AreEqual(r3, a3 & b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_bitwise_or_wide_wide() { uint4x4 a0 = uint4x4(1920951869, 1750772852, 1420019191, 732977093, 1169579447, 229437930, 1966721348, 2039812323, 113550869, 1912038362, 1569990624, 1490718227, 1686257697, 2137727522, 1569900650, 856504729); @@ -1065,7 +1065,7 @@ public static void uint4x4_operator_bitwise_or_wide_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_bitwise_or_wide_scalar() { uint4x4 a0 = uint4x4(1295304853, 1307252624, 350194630, 1128063578, 1774824542, 2085245467, 1988423804, 999162350, 2110327307, 1050875188, 341855232, 1317039676, 228656898, 41280811, 1536908787, 606786773); @@ -1089,7 +1089,7 @@ public static void uint4x4_operator_bitwise_or_wide_scalar() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_bitwise_or_scalar_wide() { uint a0 = (1768627592); @@ -1113,7 +1113,7 @@ public static void uint4x4_operator_bitwise_or_scalar_wide() TestUtils.AreEqual(r3, a3 | b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_bitwise_xor_wide_wide() { uint4x4 a0 = uint4x4(1843655608, 362425681, 640805534, 1342040268, 945678755, 980321850, 390165019, 1682422658, 303897251, 230477768, 1103646442, 1503102919, 26631152, 1016475570, 1862440929, 379588576); @@ -1137,7 +1137,7 @@ public static void uint4x4_operator_bitwise_xor_wide_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_bitwise_xor_wide_scalar() { uint4x4 a0 = uint4x4(169345668, 176087064, 2084362901, 1663924004, 193851255, 517476661, 905336222, 863800783, 365003873, 835837496, 954341348, 1464576786, 625604047, 1700827127, 2003392824, 1481813598); @@ -1161,7 +1161,7 @@ public static void uint4x4_operator_bitwise_xor_wide_scalar() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_bitwise_xor_scalar_wide() { uint a0 = (1361775641); @@ -1185,7 +1185,7 @@ public static void uint4x4_operator_bitwise_xor_scalar_wide() TestUtils.AreEqual(r3, a3 ^ b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_left_shift() { uint4x4 a0 = uint4x4(1129100049, 829482269, 1571297368, 443753193, 1872142968, 249554593, 892627436, 980302862, 62369727, 849916599, 1271350845, 108441902, 1959056531, 1779118882, 1451674188, 2082026915); @@ -1209,7 +1209,7 @@ public static void uint4x4_operator_left_shift() TestUtils.AreEqual(r3, a3 << b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_right_shift() { uint4x4 a0 = uint4x4(809126085, 908563670, 763568837, 1986717290, 1174507510, 646821842, 1242726074, 390811632, 1521420393, 1923166649, 102096936, 400863878, 667378673, 1611921244, 307750782, 479442287); @@ -1233,7 +1233,7 @@ public static void uint4x4_operator_right_shift() TestUtils.AreEqual(r3, a3 >> b3); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4x4_operator_bitwise_not() { uint4x4 a0 = uint4x4(111796841, 603562399, 745091931, 853183268, 1110916612, 381888399, 1891338755, 1506860135, 771210628, 787710759, 875964607, 96456785, 916013379, 203444882, 1172294211, 1020232736); diff --git a/src/Tests/Tests/TestMath2.cs b/src/Tests/Tests/TestMath2.cs index 7bbac675..02b48ddb 100644 --- a/src/Tests/Tests/TestMath2.cs +++ b/src/Tests/Tests/TestMath2.cs @@ -8,7 +8,7 @@ namespace Unity.Mathematics.Tests [TestFixture] public partial class TestMath { - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public unsafe void hash_blob() { byte[] testData = { @@ -61,7 +61,7 @@ public unsafe void hash_blob() } } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public unsafe void hash_blob_unaligned() { byte[] testData = { diff --git a/src/Tests/Tests/TestRandom.cs b/src/Tests/Tests/TestRandom.cs index 9de2112b..35bc9abd 100644 --- a/src/Tests/Tests/TestRandom.cs +++ b/src/Tests/Tests/TestRandom.cs @@ -115,14 +115,14 @@ private static double range_check(double x, double min, double max) } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool_uniform() { var rnd = new Random(0x6E624EB7u); ks_test((() => rnd.NextBool() ? 0.75 : 0.25), 2); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_uniform() { var rnd = new Random(0x6E624EB7u); @@ -130,14 +130,14 @@ public static void bool2_uniform() ks_test((() => rnd.NextBool2().y ? 0.75 : 0.25), 2); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool2_independent() { var rnd = new Random(0x6E624EB7u); r_test((() => select(double2(0.25), double2(0.75), rnd.NextBool2().xy))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_uniform() { var rnd = new Random(0x6E624EB7u); @@ -146,7 +146,7 @@ public static void bool3_uniform() ks_test((() => rnd.NextBool3().z ? 0.75 : 0.25), 2); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool3_independent() { var rnd = new Random(0x6E624EB7u); @@ -155,7 +155,7 @@ public static void bool3_independent() r_test((() => select(double2(0.25), double2(0.75), rnd.NextBool3().yz))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_uniform() { var rnd = new Random(0x6E624EB7u); @@ -165,7 +165,7 @@ public static void bool4_uniform() ks_test((() => rnd.NextBool4().w ? 0.75 : 0.25), 2); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void bool4_independent() { var rnd = new Random(0x6E624EB7u); @@ -177,21 +177,21 @@ public static void bool4_independent() r_test((() => select(double2(0.25), double2(0.75), rnd.NextBool4().zw))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); ks_test((() => ((rnd.NextInt() & 255u) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); ks_test((() => (((uint)rnd.NextInt() >> 24) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -199,7 +199,7 @@ public static void int_uniform_max() ks_test((() => (range_check(rnd.NextInt(max), 0, max) + 0.5) / max), max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int_uniform_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -207,7 +207,7 @@ public static void int_uniform_max_limit() ks_test((() => (range_check(rnd.NextInt(max), 0, max) + 0.5) / max), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -217,7 +217,7 @@ public static void int_uniform_min_max() ks_test((() => (range_check(rnd.NextInt(min, max), min, max) + 0.5 - min) / range), range); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -227,7 +227,7 @@ public static void int_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextInt(min, max), min, max) + 0.5 - min) / range), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -235,7 +235,7 @@ public static void int2_uniform_low_bits() ks_test((() => ((rnd.NextInt2().y & 255u) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -243,7 +243,7 @@ public static void int2_uniform_high_bits() ks_test((() => (((uint)rnd.NextInt2().y >> 24) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -252,7 +252,7 @@ public static void int2_uniform_max() ks_test((() => (range_check(rnd.NextInt2(max).y, 0, max) + 0.5) / max), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -263,7 +263,7 @@ public static void int2_uniform_min_max() ks_test((() => (range_check(rnd.NextInt2(min, max).y, min.y, max.y) + 0.5 - min.y) / range.y), range.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -274,21 +274,21 @@ public static void int2_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextInt2(min, max).y, min, max) + 0.5 - min) / range), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_independent_low_bits() { var rnd = new Random(0x6E624EB7u); r_test(() => (rnd.NextInt2().xy & 255)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int2_independent_high_bits() { var rnd = new Random(0x6E624EB7u); r_test(() => ((uint2)rnd.NextInt2().xy >> 24)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -297,7 +297,7 @@ public static void int3_uniform_low_bits() ks_test((() => ((rnd.NextInt3().z & 255u) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -306,7 +306,7 @@ public static void int3_uniform_high_bits() ks_test((() => (((uint)rnd.NextInt3().z >> 24) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -316,7 +316,7 @@ public static void int3_uniform_max() ks_test((() => ((uint)range_check(rnd.NextInt3(max).z, 0, max.z) + 0.5) / max.z), max.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_uniform_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -326,7 +326,7 @@ public static void int3_uniform_max_limit() ks_test((() => ((uint)range_check(rnd.NextInt3(max).z, 0, max) + 0.5) / max), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -338,7 +338,7 @@ public static void int3_uniform_min_max() ks_test((() => (range_check(rnd.NextInt3(min, max).z, min.z, max.z) + 0.5 - min.z) / range.z), range.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -350,7 +350,7 @@ public static void int3_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextInt3(min, max).z, min, max) + 0.5 - min) / range), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_independent_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -359,7 +359,7 @@ public static void int3_independent_low_bits() r_test(() => (rnd.NextInt3().yz & 255)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int3_independent_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -368,7 +368,7 @@ public static void int3_independent_high_bits() r_test(() => ((uint2)rnd.NextInt3().yz >> 24)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -378,7 +378,7 @@ public static void int4_uniform_low_bits() ks_test((() => ((rnd.NextInt4().w & 255u) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -388,7 +388,7 @@ public static void int4_uniform_high_bits() ks_test((() => (((uint)rnd.NextInt4().w >> 24) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -399,7 +399,7 @@ public static void int4_uniform_max() ks_test((() => (range_check(rnd.NextInt4(max).w, 0, max.w) + 0.5) / max.w), max.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_uniform_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -410,7 +410,7 @@ public static void int4_uniform_max_limit() ks_test((() => (range_check(rnd.NextInt4(max).w, 0, max) + 0.5) / max), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -423,7 +423,7 @@ public static void int4_uniform_min_max() ks_test((() => (range_check(rnd.NextInt4(min, max).w, min.w, max.w) + 0.5 - min.w) / range.w), range.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -436,7 +436,7 @@ public static void int4_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextInt4(min, max).w, min, max) + 0.5 - min) / range), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_independent_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -448,7 +448,7 @@ public static void int4_independent_low_bits() r_test(() => (rnd.NextUInt4().zw & 255)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void int4_independent_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -461,21 +461,21 @@ public static void int4_independent_high_bits() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); ks_test((() => ((rnd.NextUInt() & 255u) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); ks_test((() => ((rnd.NextUInt() >> 24) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -483,7 +483,7 @@ public static void uint_uniform_max() ks_test((() => (rnd.NextUInt(max) + 0.5) / max), (int)max); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint_uniform_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -491,7 +491,7 @@ public static void uint_uniform_max_limit() ks_test((() => (rnd.NextUInt(max) + 0.5) / max), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -501,7 +501,7 @@ public static void uint_uniform_min_max() ks_test((() => (range_check(rnd.NextUInt(min, max), min, max) + 0.5 - min) / range), (int)range); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -509,7 +509,7 @@ public static void uint_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextUInt(0, max), 0, max) + 0.5) / max), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -517,7 +517,7 @@ public static void uint2_uniform_low_bits() ks_test((() => ((rnd.NextUInt2().y & 255u) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -525,7 +525,7 @@ public static void uint2_uniform_high_bits() ks_test((() => ((rnd.NextUInt2().y >> 24) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -534,7 +534,7 @@ public static void uint2_uniform_max() ks_test((() => (rnd.NextUInt2(max).y + 0.5) / max.y), (int)max.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_uniform_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -543,7 +543,7 @@ public static void uint2_uniform_max_limit() ks_test((() => (rnd.NextUInt2(max).y + 0.5) / max), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -554,7 +554,7 @@ public static void uint2_uniform_min_max() ks_test((() => (range_check(rnd.NextUInt2(min, max).y, min.y, max.y) + 0.5 - min.y) / range.y), (int)range.y); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -563,21 +563,21 @@ public static void uint2_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextUInt2(0, max).y, 0, max) + 0.5) / max), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_independent_low_bits() { var rnd = new Random(0x6E624EB7u); r_test(() => (rnd.NextUInt2().xy & 255)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint2_independent_high_bits() { var rnd = new Random(0x6E624EB7u); r_test(() => (rnd.NextUInt2().xy >> 24)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -586,7 +586,7 @@ public static void uint3_uniform_low_bits() ks_test((() => ((rnd.NextUInt3().z & 255u) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -595,7 +595,7 @@ public static void uint3_uniform_high_bits() ks_test((() => ((rnd.NextUInt3().z >> 24) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -605,7 +605,7 @@ public static void uint3_uniform_max() ks_test((() => (rnd.NextUInt3(max).z + 0.5) / max.z), (int)max.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_uniform_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -615,7 +615,7 @@ public static void uint3_uniform_max_limit() ks_test((() => (rnd.NextUInt3(max).z + 0.5) / max), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -627,7 +627,7 @@ public static void uint3_uniform_min_max() ks_test((() => (range_check(rnd.NextUInt3(min, max).z, min.z, max.z) + 0.5 - min.z) / range.z), (int)range.z); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -637,7 +637,7 @@ public static void uint3_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextUInt3(0, max).z, 0, max) + 0.5) / max), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_independent_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -646,7 +646,7 @@ public static void uint3_independent_low_bits() r_test(() => (rnd.NextUInt3().yz & 255)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint3_independent_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -655,7 +655,7 @@ public static void uint3_independent_high_bits() r_test(() => (rnd.NextUInt3().yz >> 24)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -665,7 +665,7 @@ public static void uint4_uniform_low_bits() ks_test((() => ((rnd.NextUInt4().w & 255u) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_uniform_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -675,7 +675,7 @@ public static void uint4_uniform_high_bits() ks_test((() => ((rnd.NextUInt4().w >> 24) + 0.5) / 256.0), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -686,7 +686,7 @@ public static void uint4_uniform_max() ks_test((() => (rnd.NextUInt4(max).w + 0.5) / max.w), (int)max.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_uniform_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -697,7 +697,7 @@ public static void uint4_uniform_max_limit() ks_test((() => (rnd.NextUInt4(max).w + 0.5) / max), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -710,7 +710,7 @@ public static void uint4_uniform_min_max() ks_test((() => (range_check(rnd.NextUInt4(min, max).w, min.w, max.w) + 0.5 - min.w) / range.w), (int)range.w); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_uniform_min_max_limit() { var rnd = new Random(0x6E624EB7u); @@ -721,7 +721,7 @@ public static void uint4_uniform_min_max_limit() ks_test((() => (range_check(rnd.NextUInt4(0, max).w, 0, max) + 0.5) / max), 256); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_independent_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -733,7 +733,7 @@ public static void uint4_independent_low_bits() r_test(() => (rnd.NextUInt4().zw & 255)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void uint4_independent_high_bits() { var rnd = new Random(0x6E624EB7u); @@ -745,21 +745,21 @@ public static void uint4_independent_high_bits() r_test(() => (rnd.NextUInt4().zw >> 24)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float_uniform() { var rnd = new Random(0x6E624EB7u); ks_test((() => range_check01(rnd.NextFloat()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); ks_test((() => frac(rnd.NextFloat() * 65536.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -767,7 +767,7 @@ public static void float_uniform_max() ks_test((() => range_check(rnd.NextFloat(max), 0.0f, max) / max)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -777,7 +777,7 @@ public static void float_uniform_min_max() ks_test((() => (range_check(rnd.NextFloat(min, max), min, max) -min) / range)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_uniform() { var rnd = new Random(0x6E624EB7u); @@ -785,7 +785,7 @@ public static void float2_uniform() ks_test((() => range_check01(rnd.NextFloat2().y))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -793,7 +793,7 @@ public static void float2_uniform_low_bits() ks_test((() => frac(rnd.NextFloat2().y * 65536.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -802,7 +802,7 @@ public static void float2_uniform_max() ks_test((() => range_check(rnd.NextFloat2(max).y, 0.0f, max.y) / max.y)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -813,14 +813,14 @@ public static void float2_uniform_min_max() ks_test((() => (range_check(rnd.NextFloat2(min, max).y, min.y, max.y) - min.y) / range.y)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_independent() { var rnd = new Random(0x6E624EB7u); r_test((() => rnd.NextFloat2())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_uniform() { var rnd = new Random(0x6E624EB7u); @@ -829,7 +829,7 @@ public static void float3_uniform() ks_test((() => range_check01(rnd.NextFloat3().z))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -838,7 +838,7 @@ public static void float3_uniform_low_bits() ks_test((() => frac(rnd.NextFloat3().z * 65536.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -848,7 +848,7 @@ public static void float3_uniform_max() ks_test((() => range_check(rnd.NextFloat3(max).z, 0.0f, max.z) / max.z)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -860,7 +860,7 @@ public static void float3_uniform_min_max() ks_test((() => (range_check(rnd.NextFloat3(min, max).z, min.z, max.z) - min.z) / range.z)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_independent() { var rnd = new Random(0x6E624EB7u); @@ -869,7 +869,7 @@ public static void float3_independent() r_test((() => rnd.NextFloat3().yz)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_uniform() { var rnd = new Random(0x6E624EB7u); @@ -879,7 +879,7 @@ public static void float4_uniform() ks_test((() => range_check01(rnd.NextFloat4().w))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -889,7 +889,7 @@ public static void float4_uniform_low_bits() ks_test((() => frac(rnd.NextFloat4().w * 65536.0f))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -900,7 +900,7 @@ public static void float4_uniform_max() ks_test((() => range_check(rnd.NextFloat4(max).w, 0.0f, max.w) / max.w)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -913,7 +913,7 @@ public static void float4_uniform_min_max() ks_test((() => (range_check(rnd.NextFloat4(min, max).w, min.w, max.w) - min.w) / range.w)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float4_independent() { var rnd = new Random(0x6E624EB7u); @@ -925,21 +925,21 @@ public static void float4_independent() r_test((() => rnd.NextFloat4().zw)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double_uniform() { var rnd = new Random(0x6E624EB7u); ks_test((() => range_check01(rnd.NextDouble()))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); ks_test((() => frac(rnd.NextDouble() * 35184372088832.0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -947,7 +947,7 @@ public static void double_uniform_max() ks_test((() => range_check(rnd.NextDouble(max), 0.0, max) / max)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -957,7 +957,7 @@ public static void double_uniform_min_max() ks_test((() => (range_check(rnd.NextDouble(min, max), min, max) - min) / range)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_uniform() { var rnd = new Random(0x6E624EB7u); @@ -965,7 +965,7 @@ public static void double2_uniform() ks_test((() => range_check01(rnd.NextDouble2().y))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -973,7 +973,7 @@ public static void double2_uniform_low_bits() ks_test((() => frac(rnd.NextDouble2().y * 35184372088832.0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -982,7 +982,7 @@ public static void double2_uniform_max() ks_test((() => range_check(rnd.NextDouble2(max).y, 0.0, max.y) / max.y)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -993,14 +993,14 @@ public static void double2_uniform_min_max() ks_test((() => (range_check(rnd.NextDouble2(min, max).y, min.y, max.y) - min.y) / range.y)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_independent() { var rnd = new Random(0x6E624EB7u); r_test((() => rnd.NextDouble2())); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_uniform() { var rnd = new Random(0x6E624EB7u); @@ -1009,7 +1009,7 @@ public static void double3_uniform() ks_test((() => range_check01(rnd.NextDouble3().z))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -1018,7 +1018,7 @@ public static void double3_uniform_low_bits() ks_test((() => frac(rnd.NextDouble3().z * 35184372088832.0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -1028,7 +1028,7 @@ public static void double3_uniform_max() ks_test((() => range_check(rnd.NextDouble3(max).z, 0.0, max.z) / max.z)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -1041,7 +1041,7 @@ public static void double3_uniform_min_max() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_independent() { var rnd = new Random(0x6E624EB7u); @@ -1050,7 +1050,7 @@ public static void double3_independent() r_test((() => rnd.NextDouble3().yz)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_uniform() { var rnd = new Random(0x6E624EB7u); @@ -1060,7 +1060,7 @@ public static void double4_uniform() ks_test((() => range_check01(rnd.NextDouble4().w))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_uniform_low_bits() { var rnd = new Random(0x6E624EB7u); @@ -1070,7 +1070,7 @@ public static void double4_uniform_low_bits() ks_test((() => frac(rnd.NextDouble4().w * 35184372088832.0))); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_uniform_max() { var rnd = new Random(0x6E624EB7u); @@ -1081,7 +1081,7 @@ public static void double4_uniform_max() ks_test((() => range_check(rnd.NextDouble4(max).w, 0.0, max.w) / max.w)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_uniform_min_max() { var rnd = new Random(0x6E624EB7u); @@ -1094,7 +1094,7 @@ public static void double4_uniform_min_max() ks_test((() => (range_check(rnd.NextDouble4(min, max).w, min.w, max.w) - min.w) / range.w)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double4_independent() { var rnd = new Random(0x6E624EB7u); @@ -1106,7 +1106,7 @@ public static void double4_independent() r_test((() => rnd.NextDouble4().zw)); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float2_direction() { var rnd = new Random(0x6E624EB7u); @@ -1117,7 +1117,7 @@ public static void float2_direction() }); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double2_direction() { var rnd = new Random(0x6E624EB7u); @@ -1129,7 +1129,7 @@ public static void double2_direction() } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void float3_direction() { var rnd = new Random(0x6E624EB7u); @@ -1145,7 +1145,7 @@ public static void float3_direction() }); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void double3_direction() { var rnd = new Random(0x6E624EB7u); @@ -1161,7 +1161,7 @@ public static void double3_direction() }); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void quaternion_rotation() { var rnd = new Random(0x6E624EB7u); @@ -1183,7 +1183,7 @@ public static void quaternion_rotation() }); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void consecutive_seeds_r_test() { // Check that drawing 1 number from many consecutive seeds has no correlation. @@ -1195,7 +1195,7 @@ public static void consecutive_seeds_r_test() } } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void consecutive_seeds_r_test2() { // Check that drawing 1 number from many consecutive seeds has no correlation. @@ -1207,7 +1207,7 @@ public static void consecutive_seeds_r_test2() } } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void consecutive_seeds_ks_test() { // Check that drawing 1 number from many consecutive seeds matches our expected distribution. @@ -1215,7 +1215,7 @@ public static void consecutive_seeds_ks_test() ks_test(() => Random.CreateFromIndex(seed++).NextDouble()); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void consecutive_seeds_ks_test2() { // Check that drawing 1 number from many consecutive seeds matches our expected distribution. @@ -1223,7 +1223,7 @@ public static void consecutive_seeds_ks_test2() ks_test(() => Random.CreateFromIndex(seed++).NextDouble()); } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void similar_seeds() { // Check to see that two consecutive seeds have no correlation when drawing @@ -1236,7 +1236,7 @@ public static void similar_seeds() } } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void similar_seeds2() { // Check to see that two consecutive seeds have no correlation when drawing @@ -1249,7 +1249,7 @@ public static void similar_seeds2() } } - [TestCompiler /* For Burst testing */, TestCase /* For player builds */] + [TestCompiler] public static void wang_hash() { TestUtils.AreEqual(3232319850u, Random.WangHash(0u)); diff --git a/src/Unity.Mathematics.CodeGen~/VectorGenerator.cs b/src/Unity.Mathematics.CodeGen~/VectorGenerator.cs index 778b2c25..c53afabc 100644 --- a/src/Unity.Mathematics.CodeGen~/VectorGenerator.cs +++ b/src/Unity.Mathematics.CodeGen~/VectorGenerator.cs @@ -2075,7 +2075,7 @@ private void BeginTest(StringBuilder str, string name, bool testCompiler = true) { if (testCompiler) { - str.Append("\t\t[TestCompiler /* For Burst testing */, TestCase /* For player builds */]\n"); + str.Append("\t\t[TestCompiler]\n"); } else { From 6a9b25e77840d5ad66c0bb52a7414287fbc341cc Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Wed, 10 Jan 2024 16:13:21 -0800 Subject: [PATCH 422/437] Update bokken images for CI --- .yamato/upm-ci.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index 2a554b38..9335ec46 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -1,28 +1,28 @@ build_platforms: - name: windows type: Unity::VM - image: sdet/burst-devimage:stable + image: package-ci/win10:v4 flavor: b1.large - name: linux - image: package-ci/ubuntu:stable + image: package-ci/ubuntu-22.04:v4 type: Unity::VM flavor: b1.large - name: macOS - image: burst/burst_mac:stable + image: package-ci/macos-13:v4 type: Unity::VM::osx flavor: b1.large upmci_platforms: - name: windows type: Unity::VM - image: package-ci/win10:stable + image: package-ci/win10:v4 flavor: b1.large - name: linux - image: package-ci/ubuntu:stable + image: package-ci/ubuntu-22.04:v4 type: Unity::VM flavor: b1.large - name: macOS - image: package-ci/mac:stable + image: package-ci/macos-13:v4 type: Unity::VM::osx flavor: b1.large @@ -85,7 +85,7 @@ package_tests_minimal: validate_package_minimal: name: Validate Package Linux Minimal agent: - image: package-ci/ubuntu:stable + image: package-ci/ubuntu-22.04:v4 type: Unity::VM flavor: b1.large commands: @@ -135,7 +135,7 @@ publish: name: Publish agent: type: Unity::VM - image: package-ci/win10:stable + image: package-ci/win10:v4 flavor: b1.large variables: UPMCI_ENABLE_PACKAGE_SIGNING: 1 @@ -158,7 +158,7 @@ promote: name: Promote agent: type: Unity::VM - image: package-ci/win10:stable + image: package-ci/win10:v4 flavor: b1.large variables: UPMCI_PROMOTION: 1 From 5fe7e8653c7285265eb3dfe5bee551b2a8c46b2e Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Wed, 10 Jan 2024 16:46:19 -0800 Subject: [PATCH 423/437] Update package verification package and re-add internals visible to for testing --- .../Packages/manifest.json | 16 ++++++++-------- src/Unity.Mathematics/Properties/AssemblyInfo.cs | 5 +++++ .../Properties/AssemblyInfo.cs.meta | 11 +---------- 3 files changed, 14 insertions(+), 18 deletions(-) create mode 100644 src/Unity.Mathematics/Properties/AssemblyInfo.cs diff --git a/Unity.Mathematics.TestProject/Packages/manifest.json b/Unity.Mathematics.TestProject/Packages/manifest.json index e40c4a4b..932cc93d 100644 --- a/Unity.Mathematics.TestProject/Packages/manifest.json +++ b/Unity.Mathematics.TestProject/Packages/manifest.json @@ -1,15 +1,15 @@ { "dependencies": { - "com.unity.ai.navigation": "1.1.4", - "com.unity.burst": "1.8.7", - "com.unity.ide.rider": "3.0.24", - "com.unity.ide.visualstudio": "2.0.18", - "com.unity.ide.vscode": "1.2.5", + "com.unity.ai.navigation": "2.0.0", + "com.unity.burst": "1.8.11", + "com.unity.ide.rider": "3.0.27", + "com.unity.ide.visualstudio": "2.0.22", "com.unity.mathematics": "file:../../src", - "com.unity.package-validation-suite": "0.8.1-preview", + "com.unity.package-validation-suite": "0.62.0-preview", "com.unity.properties": "2.1.0-exp.3", - "com.unity.test-framework": "1.1.33", - "com.unity.test-framework.performance": "2.8.0-preview" + "com.unity.test-framework": "1.3.9", + "com.unity.test-framework.performance": "3.0.3", + "com.unity.modules.accessibility": "1.0.0" }, "testables": [ "com.unity.mathematics" diff --git a/src/Unity.Mathematics/Properties/AssemblyInfo.cs b/src/Unity.Mathematics/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..582cdee0 --- /dev/null +++ b/src/Unity.Mathematics/Properties/AssemblyInfo.cs @@ -0,0 +1,5 @@ +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: InternalsVisibleTo("Unity.Mathematics.Tests")] +[assembly: InternalsVisibleTo("Unity.Mathematics.PerformanceTests")] diff --git a/src/Unity.Mathematics/Properties/AssemblyInfo.cs.meta b/src/Unity.Mathematics/Properties/AssemblyInfo.cs.meta index 8b36ead0..048f3093 100644 --- a/src/Unity.Mathematics/Properties/AssemblyInfo.cs.meta +++ b/src/Unity.Mathematics/Properties/AssemblyInfo.cs.meta @@ -1,11 +1,2 @@ fileFormatVersion: 2 -guid: 512db12834bb1f645a5c18af6c16e398 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: +guid: fb0d7ffc71c40bd49a849e6427f80cb5 \ No newline at end of file From aa5b4ca36fce0c30c3c2e50d223f55f75b7c9945 Mon Sep 17 00:00:00 2001 From: Jonathan Mankin Date: Thu, 11 Jan 2024 10:34:23 -0800 Subject: [PATCH 424/437] prep for release --- src/CHANGELOG.md | 2 +- src/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index f51a25d0..3cb929f3 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [Unreleased] +## [1.3.2] - 2024-01-11 ### Fixed * Fixed `math.hash` crash when using IL2CPP builds on Arm 32 bit devices. diff --git a/src/package.json b/src/package.json index 5e0509b2..f8870fc2 100755 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "com.unity.mathematics", "displayName": "Mathematics", - "version": "1.3.1", + "version": "1.3.2", "unity": "2018.3", "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax.", "keywords": [ From 47ef6321a25c7ba609d4de0b45b0902f4eb9565d Mon Sep 17 00:00:00 2001 From: Jonathan Mankin Date: Thu, 11 Jan 2024 12:39:00 -0800 Subject: [PATCH 425/437] change minimum unity version --- src/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/package.json b/src/package.json index f8870fc2..9944d6fe 100755 --- a/src/package.json +++ b/src/package.json @@ -2,7 +2,7 @@ "name": "com.unity.mathematics", "displayName": "Mathematics", "version": "1.3.2", - "unity": "2018.3", + "unity": "2021.3", "description": "Unity's C# SIMD math library providing vector types and math functions with a shader like syntax.", "keywords": [ "unity" From b7986ef8e6ce35cab339222b81027785e30a53c0 Mon Sep 17 00:00:00 2001 From: Jonathan Mankin Date: Thu, 11 Jan 2024 12:58:09 -0800 Subject: [PATCH 426/437] Update CHANGELOG.md --- src/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 3cb929f3..484b5af3 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -5,6 +5,7 @@ ### Fixed * Fixed `math.hash` crash when using IL2CPP builds on Arm 32 bit devices. * Fixed obsolete method usage warnings for `MatrixDrawer.CanCacheInspectorGUI` and `PrimitiveVectorDrawer.CanCacheInspectorGUI` in UNITY_2023_2_OR_NEWER. +* Updated minimum editor version to 2021.3 ## [1.3.1] - 2023-07-12 From 1695a8503482a3131be78cc26308a93f82c05b04 Mon Sep 17 00:00:00 2001 From: Jonathan Mankin Date: Thu, 11 Jan 2024 14:31:59 -0800 Subject: [PATCH 427/437] update validation exceptions Need an exception due to us updating the minimum unity version to a supported Unity Version. --- src/ValidationExceptions.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ValidationExceptions.json b/src/ValidationExceptions.json index e8a81512..3406ed9e 100644 --- a/src/ValidationExceptions.json +++ b/src/ValidationExceptions.json @@ -1,5 +1,10 @@ { "ErrorExceptions": [ + { + "ValidationTest": "Package Unity Version Validation", + "ExceptionMessage": "The Unity version requirement is more strict than in the previous version of the package. Increment the minor version of the package to leave patch versions available for previous version. Read more about this error and potential solutions at https://docs.unity3d.com/Packages/com.unity.package-validation-suite@latest/index.html?preview=1&subfolder=/manual/package_unity_version_validation_error.html#the-unity-version-requirement-is-more-strict-than-in-the-previous-version-of-the-package", + "PackageVersion": "1.3.2" + } ], "WarningExceptions": [] } \ No newline at end of file From 09c5980bd9588718743e64ace3b76f069486765e Mon Sep 17 00:00:00 2001 From: Gregory Labute Date: Fri, 15 Aug 2025 13:36:31 -0400 Subject: [PATCH 428/437] Update PostNormalizedVectorDrawer.cs tooltip display --- .../PostNormalizedVectorDrawer.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Unity.Mathematics.Editor/PostNormalizedVectorDrawer.cs b/src/Unity.Mathematics.Editor/PostNormalizedVectorDrawer.cs index d4189eda..eaa2a07d 100644 --- a/src/Unity.Mathematics.Editor/PostNormalizedVectorDrawer.cs +++ b/src/Unity.Mathematics.Editor/PostNormalizedVectorDrawer.cs @@ -12,8 +12,10 @@ class PostNormalizedVectorDrawer : PrimitiveVectorDrawer { static class Content { - public static readonly string tooltip = - L10n.Tr("Values you enter will be post-normalized. You will see the normalized result if you change selection and view the values again."); + public static readonly GUIContent Tooltip = new ( + string.Empty, + L10n.Tr("Values you enter will be post-normalized. You will see the normalized result if you " + + "change selection and view the values again.")); } class VectorPropertyGUIData @@ -181,8 +183,12 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten return; } + // Avoid polluting the passed-in GUIContent - it might be static and shared. if (string.IsNullOrEmpty(label.tooltip)) - label.tooltip = Content.tooltip; + { + Content.Tooltip.text = label.text; + label = Content.Tooltip; + } guiData.RebuildIfDirty(); guiData.ApplyPreNormalizedValues(); From 4a423cc5dae8532391e57c37ab81dab12a64ea15 Mon Sep 17 00:00:00 2001 From: Gregory Labute Date: Mon, 25 Aug 2025 21:24:50 -0400 Subject: [PATCH 429/437] PrimitiveVectorDrawer doesn't change passed-in GUIContent (#251) * PrimitiveVectorDrawer doesn't change passed-in GUIContent * Update PrimitiveVectorDrawer.cs * Fix compile error. --------- Co-authored-by: Dale Kim <3121968+unpacklo@users.noreply.github.com> --- src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs b/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs index cde01f38..5353bdcb 100644 --- a/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs +++ b/src/Unity.Mathematics.Editor/PrimitiveVectorDrawer.cs @@ -36,8 +36,8 @@ static class Content public static readonly string doNotNormalizeCompatibility = L10n.Tr( $"{typeof(DoNotNormalizeAttribute).Name} only works with {typeof(quaternion)} and primitive vector types." ); - public static readonly string doNotNormalizeTooltip = - L10n.Tr("This value is not normalized, which may produce unexpected results."); + public static readonly GUIContent doNotNormalizeContent = new GUIContent("", + L10n.Tr("This value is not normalized, which may produce unexpected results.")); public static readonly GUIContent[] labels2 = { new GUIContent("X"), new GUIContent("Y") }; public static readonly GUIContent[] labels3 = { new GUIContent("X"), new GUIContent("Y"), new GUIContent("Z") }; @@ -89,8 +89,10 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten } if (attribute is DoNotNormalizeAttribute && string.IsNullOrEmpty(label.tooltip)) - label.tooltip = Content.doNotNormalizeTooltip; - + { + Content.doNotNormalizeContent.text = label.text; + label = Content.doNotNormalizeContent; + } label = EditorGUI.BeginProperty(position, label, property); var valuesIterator = property.FindPropertyRelative(startIter); MultiPropertyField(position, subLabels, valuesIterator, label); From 00913ffa65b5a596a8c2b0700ae4bd715d3a1e44 Mon Sep 17 00:00:00 2001 From: Peter Lu <68305151+plu-unity@users.noreply.github.com> Date: Mon, 5 Jan 2026 17:42:31 -0500 Subject: [PATCH 430/437] Update upm-ci.yml to reflect currently supported editor versions for the package --- .yamato/upm-ci.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index 9335ec46..9b98958e 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -27,24 +27,24 @@ upmci_platforms: flavor: b1.large validate_editor_versions: - - version: "2021.3" - display_name: "2021.3" - version: "2022.3" display_name: "2022.3" - - version: "2023.1" - display_name: "2023.1" - - version: "trunk" - display_name: "trunk" + - version: "6000.0" + display_name: "6000.0" + - version: "6000.3" + display_name: "6000.3" + - version: "6000.4" + display_name: "6000.4" package_tests_editor_versions: - - version: "2021.3" - display_name: "2021.3" - version: "2022.3" display_name: "2022.3" - - version: "2023.1" - display_name: "2023.1" - - version: "trunk" - display_name: "trunk" + - version: "6000.0" + display_name: "6000.0" + - version: "6000.3" + display_name: "6000.3" + - version: "6000.4" + display_name: "6000.4" --- {% for platform in upmci_platforms %} From 3d6a653c29cfb4d2f54185b3832a985bed887222 Mon Sep 17 00:00:00 2001 From: Peter Lu <68305151+plu-unity@users.noreply.github.com> Date: Mon, 5 Jan 2026 23:26:13 -0500 Subject: [PATCH 431/437] Update some 2021.3 editor job dependencies in upm-ci.yml to 6000.3 --- .yamato/upm-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index 9b98958e..3675e42d 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -79,7 +79,7 @@ package_tests_minimal: name: Package tests minimal dependencies: {% for platform in upmci_platforms %} - - .yamato/upm-ci.yml#package_tests_{{platform.name}}_2021.3 + - .yamato/upm-ci.yml#package_tests_{{platform.name}}_6000.3 {% endfor %} validate_package_minimal: @@ -91,7 +91,7 @@ validate_package_minimal: commands: - npm install upm-ci-utils@stable --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm -g - upm-ci package pack --package-path src/ - - upm-ci package test --package-path src/ --unity-version 2021.3 + - upm-ci package test --package-path src/ --unity-version 6000.3 artifacts: packages: paths: From 4a4ece972005c927d6804ee6d6e4ff6961bff22d Mon Sep 17 00:00:00 2001 From: Peter Lu Date: Fri, 17 Jul 2026 20:04:29 -0400 Subject: [PATCH 432/437] Added a remark to NextFloatX and NextDoubleX methods with a min and max parameter. The affine (min, max) overloads compute the result as value * (max - min) + min. Floating-point rounding (round-half-to-even) can in rare cases return exactly max instead of a value strictly below it, so the [min, max) interval is the intent rather than a hard guarantee. --- src/Unity.Mathematics/random.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Unity.Mathematics/random.cs b/src/Unity.Mathematics/random.cs index 3c94b6e3..a6c77d5c 100644 --- a/src/Unity.Mathematics/random.cs +++ b/src/Unity.Mathematics/random.cs @@ -468,6 +468,7 @@ public float4 NextFloat4() /// The minimum value to generate, inclusive. /// The maximum value to generate, exclusive. /// A uniformly random float value in the range [min, max). + /// The result is computed as `NextFloat() * (max - min) + min`, so floating-point rounding can in rare cases return a value equal to `max` rather than strictly less than it. Clamp the result if you require a value strictly less than `max`. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float NextFloat(float min, float max) { return NextFloat() * (max - min) + min; } @@ -475,6 +476,7 @@ public float4 NextFloat4() /// The componentwise minimum value to generate, inclusive. /// The componentwise maximum value to generate, exclusive. /// A uniformly random float2 value in the range [min, max). + /// Each component is computed as `NextFloat() * (max - min) + min`, so floating-point rounding can in rare cases return a component equal to the corresponding component of `max` rather than strictly less than it. Clamp the result if you require components strictly less than `max`. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float2 NextFloat2(float2 min, float2 max) { return NextFloat2() * (max - min) + min; } @@ -482,6 +484,7 @@ public float4 NextFloat4() /// The componentwise minimum value to generate, inclusive. /// The componentwise maximum value to generate, exclusive. /// A uniformly random float3 value in the range [min, max). + /// Each component is computed as `NextFloat() * (max - min) + min`, so floating-point rounding can in rare cases return a component equal to the corresponding component of `max` rather than strictly less than it. Clamp the result if you require components strictly less than `max`. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float3 NextFloat3(float3 min, float3 max) { return NextFloat3() * (max - min) + min; } @@ -489,6 +492,7 @@ public float4 NextFloat4() /// The componentwise minimum value to generate, inclusive. /// The componentwise maximum value to generate, exclusive. /// A uniformly random float4 value in the range [min, max). + /// Each component is computed as `NextFloat() * (max - min) + min`, so floating-point rounding can in rare cases return a component equal to the corresponding component of `max` rather than strictly less than it. Clamp the result if you require components strictly less than `max`. [MethodImpl(MethodImplOptions.AggressiveInlining)] public float4 NextFloat4(float4 min, float4 max) { return NextFloat4() * (max - min) + min; } @@ -572,6 +576,7 @@ public double4 NextDouble4() /// The minimum value to generate, inclusive. /// The maximum value to generate, exclusive. /// A uniformly random double value in the range [min, max). + /// The result is computed as `NextDouble() * (max - min) + min`, so floating-point rounding can in rare cases return a value equal to `max` rather than strictly less than it. Clamp the result if you require a value strictly less than `max`. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double NextDouble(double min, double max) { return NextDouble() * (max - min) + min; } @@ -579,6 +584,7 @@ public double4 NextDouble4() /// The componentwise minimum value to generate, inclusive. /// The componentwise maximum value to generate, exclusive. /// A uniformly random double2 value in the range [min, max). + /// Each component is computed as `NextDouble() * (max - min) + min`, so floating-point rounding can in rare cases return a component equal to the corresponding component of `max` rather than strictly less than it. Clamp the result if you require components strictly less than `max`. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double2 NextDouble2(double2 min, double2 max) { return NextDouble2() * (max - min) + min; } @@ -586,6 +592,7 @@ public double4 NextDouble4() /// The componentwise minimum value to generate, inclusive. /// The componentwise maximum value to generate, exclusive. /// A uniformly random double3 value in the range [min, max). + /// Each component is computed as `NextDouble() * (max - min) + min`, so floating-point rounding can in rare cases return a component equal to the corresponding component of `max` rather than strictly less than it. Clamp the result if you require components strictly less than `max`. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double3 NextDouble3(double3 min, double3 max) { return NextDouble3() * (max - min) + min; } @@ -593,6 +600,7 @@ public double4 NextDouble4() /// The componentwise minimum value to generate, inclusive. /// The componentwise maximum value to generate, exclusive. /// A uniformly random double4 value in the range [min, max). + /// Each component is computed as `NextDouble() * (max - min) + min`, so floating-point rounding can in rare cases return a component equal to the corresponding component of `max` rather than strictly less than it. Clamp the result if you require components strictly less than `max`. [MethodImpl(MethodImplOptions.AggressiveInlining)] public double4 NextDouble4(double4 min, double4 max) { return NextDouble4() * (max - min) + min; } From f37f578a7cc32f599f96cdab007c88d12b6c8605 Mon Sep 17 00:00:00 2001 From: Peter Lu Date: Fri, 17 Jul 2026 20:06:27 -0400 Subject: [PATCH 433/437] -Added a unreleased changelog version and entry for the documentation port -Removed the ValidationExceptions.json entry needed for the last package release --- src/CHANGELOG.md | 3 +++ src/ValidationExceptions.json | 8 +------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 484b5af3..595ffd52 100755 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## [Unreleased] +* Added a documentation remark for Random NextFloat and NextDouble methods with a min and max parameter. + ## [1.3.2] - 2024-01-11 ### Fixed diff --git a/src/ValidationExceptions.json b/src/ValidationExceptions.json index 3406ed9e..c9391d89 100644 --- a/src/ValidationExceptions.json +++ b/src/ValidationExceptions.json @@ -1,10 +1,4 @@ { - "ErrorExceptions": [ - { - "ValidationTest": "Package Unity Version Validation", - "ExceptionMessage": "The Unity version requirement is more strict than in the previous version of the package. Increment the minor version of the package to leave patch versions available for previous version. Read more about this error and potential solutions at https://docs.unity3d.com/Packages/com.unity.package-validation-suite@latest/index.html?preview=1&subfolder=/manual/package_unity_version_validation_error.html#the-unity-version-requirement-is-more-strict-than-in-the-previous-version-of-the-package", - "PackageVersion": "1.3.2" - } - ], + "ErrorExceptions": [], "WarningExceptions": [] } \ No newline at end of file From 6ffc2a46a14f4666ac19048356b57ebe3701ebea Mon Sep 17 00:00:00 2001 From: Peter Lu Date: Fri, 17 Jul 2026 20:09:43 -0400 Subject: [PATCH 434/437] Removing out of support editors from package validation YML --- .yamato/upm-ci.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index 3675e42d..27b41405 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -27,24 +27,16 @@ upmci_platforms: flavor: b1.large validate_editor_versions: - - version: "2022.3" - display_name: "2022.3" - version: "6000.0" display_name: "6000.0" - version: "6000.3" display_name: "6000.3" - - version: "6000.4" - display_name: "6000.4" package_tests_editor_versions: - - version: "2022.3" - display_name: "2022.3" - version: "6000.0" display_name: "6000.0" - version: "6000.3" display_name: "6000.3" - - version: "6000.4" - display_name: "6000.4" --- {% for platform in upmci_platforms %} From 5141def0a12e24c58e565224971a52bd47ce62a9 Mon Sep 17 00:00:00 2001 From: Jonathan Mankin Date: Thu, 11 Jan 2024 14:31:59 -0800 Subject: [PATCH 435/437] update validation exceptions Need an exception due to us updating the minimum unity version to a supported Unity Version. --- src/ValidationExceptions.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ValidationExceptions.json b/src/ValidationExceptions.json index c9391d89..3406ed9e 100644 --- a/src/ValidationExceptions.json +++ b/src/ValidationExceptions.json @@ -1,4 +1,10 @@ { - "ErrorExceptions": [], + "ErrorExceptions": [ + { + "ValidationTest": "Package Unity Version Validation", + "ExceptionMessage": "The Unity version requirement is more strict than in the previous version of the package. Increment the minor version of the package to leave patch versions available for previous version. Read more about this error and potential solutions at https://docs.unity3d.com/Packages/com.unity.package-validation-suite@latest/index.html?preview=1&subfolder=/manual/package_unity_version_validation_error.html#the-unity-version-requirement-is-more-strict-than-in-the-previous-version-of-the-package", + "PackageVersion": "1.3.2" + } + ], "WarningExceptions": [] } \ No newline at end of file From 045e4fb3cf48447eda190cba82ac7ad410c1a08c Mon Sep 17 00:00:00 2001 From: "christopher.sexton" Date: Wed, 5 Aug 2026 10:20:33 +0200 Subject: [PATCH 436/437] Fix copy-paste error in floor descriptions: round up -> down --- src/Unity.Mathematics/math.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Unity.Mathematics/math.cs b/src/Unity.Mathematics/math.cs index a1b4800d..b17d04fe 100644 --- a/src/Unity.Mathematics/math.cs +++ b/src/Unity.Mathematics/math.cs @@ -2511,7 +2511,7 @@ public static bool4 ispow2(uint4 x) public static double4 asin(double4 x) { return new double4(asin(x.x), asin(x.y), asin(x.z), asin(x.w)); } - /// Returns the result of rounding a float value up to the nearest integral value less or equal to the original value. + /// Returns the result of rounding a float value down to the nearest integral value less or equal to the original value. /// Input value. /// The round down to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -2536,7 +2536,7 @@ public static bool4 ispow2(uint4 x) public static float4 floor(float4 x) { return new float4(floor(x.x), floor(x.y), floor(x.z), floor(x.w)); } - /// Returns the result of rounding a double value up to the nearest integral value less or equal to the original value. + /// Returns the result of rounding a double value down to the nearest integral value less or equal to the original value. /// Input value. /// The round down to nearest integral value of the input. [MethodImpl(MethodImplOptions.AggressiveInlining)] From 73b0776667829a6b65d53a8e003ee8f2d241f8f4 Mon Sep 17 00:00:00 2001 From: "christopher.sexton" Date: Wed, 5 Aug 2026 14:04:35 +0200 Subject: [PATCH 437/437] Add notice on migration of docs from 6.5 --- src/Documentation~/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Documentation~/index.md b/src/Documentation~/index.md index f158d0db..0b61abb2 100644 --- a/src/Documentation~/index.md +++ b/src/Documentation~/index.md @@ -16,6 +16,9 @@ Plus elementary functions: You can install the Mathematics package through Unity's Package Manager. For more information, see the Unity User Manual documentation on [Adding and removing packages](https://docs.unity3d.com/Manual/upm-ui-actions.html). +>[!IMPORTANT] +>From Unity 6.5, Unity Mathematics is a built-in module of the core Editor and Engine and its APIs are available to user code by default in the `Unity.Mathematics` namespace, with no package installation required. Accordingly, from Unity 6.5 the Unity Mathematics API documentation is part of the [core Scripting API reference](https://docs.unity3d.com/ScriptReference/Unity.Mathematics.math.html), and the user manual is integrated with [the core Unity user manual](https://docs.unity3d.com/Manual/unity-mathematics.html). + ### Editor config Unity Mathematics uses [editorconfig](http://editorconfig.org/) to keep files formatted for EOL and spaces.